safe-sdk-wrapper
v1.0.0
Published
Interacts with safe contracts.
Downloads
2
Readme
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);