safe-sdk-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published


SAFE-SDK-WRAPPER

Super easy to use sdk to interact with a safe contract

Deploy a new safe:

import { Factory } from "...";

const provider = new ethers.providers.JsonRpcProvider("https://...");

const factory = await Factory.create({ provider });

const saltNonce = 1; 
const threshold = 2

const owners = ["0x...", "0x...", "0x.."];

const opts = {
        owners,
        threshold,
        saltNonce,
};

const address = await factory.calculateProxyAddress(opts);

console.log("address ->", address);

Readme

Keywords

none

Package Sidebar

Install

npm i safe-sdk-wrapper

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

197 kB

Total Files

65

Last publish

Collaborators

  • xboxue