A collection of smart contracts for Gem Wallet.
- src/hub_reader: A contract that simplify interacting with BSC Staking Hub
- src/stargate: A contract that allow to do onchain calls on destination chain after Stargate Bridge
- Install Foundry and you're good to go.
- Configure
.envusing.env.examplerpcs (if needed) and etherscan values, if you need to deploy the contract, you need to setPRIVATE_KEYas well.
forge buildforge test --rpc-url <your_rpc_url># deploy hub_reader
just deploy-hub-reader# deploy stargate to all supported chains
just deploy-stargate# deploy stargate to specific chain
just deploy-stargate optimism