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
.env
using.env.example
rpcs (if needed) and etherscan values, if you need to deploy the contract, you need to setPRIVATE_KEY
as well.
forge build
forge 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