Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 674 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 674 Bytes

Smart Contracts

A collection of smart contracts for Gem Wallet.

  • bsc/hub_reader: A contract that simplify interacting with BSC Staking Hub

Development

  1. Install Foundry and you're good to go.
  2. Configure .env file with your BSC_RPC_URL and BSCSCAN_API_KEY, if you need to deploy the contract, you need to set PRIVATE_KEY as well.

Usage

Build

forge build

Test

forge test --rpc-url <your_rpc_url>

Deploy

# deploy hub_reader
cd bsc/hub_reader
forge script script/HubReader.s.sol:HubReaderScript --rpc-url "$BSC_RPC_URL" --broadcast --verify -vvvv