Gemini Smart wallet contracts
Repository for Gemini smart wallet contracts
Local Setup
$ curl -L https://foundry.paradigm.xyz | bash
$ foundryup
$ npm run init
- Select the
foundry.toml
as Soldeer configuration file.
Build
$ npm run build:contract
Deploy
To deploy your own version of the contract factory
- Create a
.env
file in the root of the package (i.e. /packages/contract
)
- Copy the contents of
.env.example
to .env
- Update private key and factory owner to your own private key and EOA
- Source the
.env
config file
$ source .env
- Compile and dryrun against a chain
$ npm run deploy:dryrun $RPC_URL
- (If no error in previous steps) deploy and verify to a chain
You need to get etherscan api for the chain
$ npm run deploy $RPC_URL
NOTES:
- You can only deploy the same set of contract factory once per account
- Can deploy new set of factory if there are any changes in the factory