Skip to content

arjunaskykok/gnosis-safe-web3-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The code sample of how to use the Gnosis Safe SDK

Getting Started

Deploy the Gnosis Safe smart contract:

$ git clone https://github.com/gnosis/safe-contracts/
$ cd safe-contracts
$ git checkout v1.3.0-libs.0
$ yarn add hardhat
$ npx hardhat node

Notice where GnosisSafeProxyFactory, GnosisSafe, MultiSend are deployed from the output of the npx hardhat node command. Make sure they are the same as MULTI_SEND_ADDRESS, SAFE_MASTER_COPY_ADDRESS, SAFE_PROXY_FACTORY_ADDRESS on the .env file from this repository. Then open a new terminal.

Clone this repository, install dependencies, and run the code:

$ git clone https://github.com/arjunaskykok/gnosis-safe-web3-startup
$ cd gnosis-safe-web3-startup
$ yarn install
$ node index.js
Fund raising.
Initial balance of the treasury: 10.0 ETH
Buying a yacht.
Final balance of the treasury: 7.0 ETH

About

The code for the tutorial on how to use the Gnosis Safe SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published