Skip to content

Staking contract for EVM compatible Blockchains like Ethereum, BSC, Polygon

Notifications You must be signed in to change notification settings

abhi3700/evm_contracts_staking

Repository files navigation

Staking contract

Staking contract with unstaking features based on different levels

About

  • It's a staking contract.
  • For more, refer Wiki.

Installation

$ npm install

Usage

Build

$ npx hardhat compile

Test

$ npx hardhat test

Deploying contracts to localhost Hardhat EVM

localhost

// on terminal-1
$ npx hardhat node

// on terminal-2
$ npx hardhat run deployment/hardhat/deploy.ts --network localhost

Deploying contracts to Testnet (Public)

ETH Testnet - Rinkeby

  • Environment variables
    • Create a .env file with its values:
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=<true_or_false>
  • Deploy the contracts
$ npx hardhat run deployment/testnet/rinkeby/deploy.ts  --network rinkeby

Deploying contracts to Mainnet

ETH Mainnet

  • Environment variables
    • Create a .env file with its values:
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=<true_or_false>
  • Deploy the token on one-chain
$ npx hardhat run deployment/testnet/ETH/deploy.ts  --network mainnet

About

Staking contract for EVM compatible Blockchains like Ethereum, BSC, Polygon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published