Skip to content

gemwalletcom/contracts

Repository files navigation

Smart Contracts

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

Development

  1. Install Foundry and you're good to go.
  2. Configure .env using .env.example rpcs (if needed) and etherscan values, 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
just deploy-hub-reader
# deploy stargate to all supported chains
just deploy-stargate
# deploy stargate to specific chain
just deploy-stargate optimism

About

A collection of smart contracts for Gem Wallet.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published