Super easy to use sdk to interact with a safe contract
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);