1.0.0 • Published 2 years ago
safe-sdk-wrapper v1.0.0
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);
1.0.0
2 years ago