Skip to content

tinom9/safe-multichain-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnosis Safe Multichain Wallet

Deploy GnosisSafeL2 wallets at multiple chains with the same address.

Using version v1.3.0.

Set-up

Install dependencies.

yarn

Usage via TS code

Call deploy at src/index.ts.

First, add your function call.

// src/index.ts

deploy({
  chains: ["arbitrumSepolia", "sepolia", "polygonAmoy", "avalancheFuji"],
  privateKey: process.env.PRIVATE_KEY as `0x${string}`,
  owners: ["0xYourFirstOwner", "0xYourSecondOwner"],
  threshold: 2n,
  nonce: 1337n,
})
  .then(() => process.exit())
  .catch((e) => {
    console.error(e)
    process.exit(1)
  })

Then, execute it.

yarn ts-node src/index.ts

Usage via CLI

yarn cli calculate-address -o 0xYourFirstOwner 0xYourSecondOwner -t 2 -n 1337
yarn cli find-vanity-address -o 0xYourFirstOwner 0xYourSecondOwner -t 2 -v abc123
yarn cli deploy \
  -c arbitrumSepolia sepolia polygonAmoy avalancheFuji \
  -o 0xYourFirstOwner 0xYourSecondOwner \
  -t 2 \
  -n 1337 \
  -k 0xYourPrivateKey
yarn cli deploy \
  -c arbitrumSepolia sepolia polygonAmoy avalancheFuji \
  -o 0xYourFirstOwner 0xYourSecondOwner \
  -t 2 \
  -n 1337 \
  -m 'test test test test test test test test test test test junk'

About

Deploy Gnosis Safe wallets at multiple chains with the same address

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors