A collection of smart contracts for Gem Wallet.
- bsc/hub_reader: A contract that simplify interacting with BSC Staking Hub
- Install Foundry and you're good to go.
- Configure
.env
file with yourBSC_RPC_URL
andBSCSCAN_API_KEY
, 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
cd bsc/hub_reader
forge script script/HubReader.s.sol:HubReaderScript --rpc-url "$BSC_RPC_URL" --broadcast --verify -vvvv