GithubHelp home page GithubHelp logo

mhmdabdilahpour / bnbx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stader-labs/bnbx

0.0 0.0 0.0 2.11 MB

Binance liquid staking solution

Home Page: https://bnbchain.staderlabs.com/liquid-staking/bnbx

Shell 0.31% JavaScript 0.59% Ruby 4.52% TypeScript 61.95% Dockerfile 0.92% Solidity 31.71%

bnbx's Introduction

bnbX

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix

Deploying

To deploy contracts, run:

NODE_ENV=main npx hardhat deployBnbXProxy <admin> --network <network>
NODE_ENV=main npx hardhat upgradeBnbXProxy <proxyAddress> --network <network>
NODE_ENV=main npx hardhat deployBnbXImpl --network <network>

NODE_ENV=main npx hardhat deployStakeManagerProxy <bnbX> <admin> <manager> <tokenHub> <bcDepositWallet> <bot> <feeBps> --network <network>
NODE_ENV=main npx hardhat upgradeStakeManagerProxy <proxyAddress> --network <network>
NODE_ENV=main npx hardhat deployStakeManagerImpl --network <network>

NODE_ENV=main npx hardhat deployReferralContract <admin> <trustedForwarder> --network <network>
NODE_ENV=main npx hardhat upgradeReferralContract <proxyAddress> --network <network>

Verifying on etherscan

npx hardhat verify <address> <...args> --network <network>

Integration

Smart contract integration guide is at link

bnbx's People

Contributors

dependabot[bot] avatar dulguun-staderlabs avatar galacticminter avatar manoj9april avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.