{"repo":"bnb-chain/bsc-genesis-contract","free":true,"listed":false,"github":"https://github.com/bnb-chain/bsc-genesis-contract","clone":"git clone https://github.com/bnb-chain/bsc-genesis-contract.git","description":"The genesis contracts of BNB Smart Chain.","language":"Solidity","stars":775,"topics":["smart-contracts","bnb","bsc"],"license":null,"category":"blockchain-web3","readme_excerpt":"bsc-genesis-contracts This repo hold all the genesis contracts on BNB Smart chain. More details in doc-site. Prepare Install node.js dependency: Install foundry: Install poetry: Tips: You can manage multi version of Node: Unit test You can get a free archive node endpoint from https://nodereal.io/. Run forge test: Flatten all system contracts All system contracts will be flattened and output into ${workspace}/contracts/flattened/ . How to generate genesis file 1. Edit init holders.js file to alloc the initial BNB holder. 2. Edit validators.js file to alloc the initial validator set. 3. Edit system contracts setting as needed. 4. Run node scripts/generate-genesis.js will generate genesis.json How to generate mainnet/testnet/dev genesis file Check the genesis.json file, and you can get the exact compiled bytecode for different network. ( poetry run python -m scripts.generate --help for more details) You can refer to generate:dev in package.json for more details about how to custom params for local dev-net. update ABI files How to update contract interface for test BEP-171 unlock bot License The library is licensed under the Apache License, Version 2.0, also included in our repository in the LICENSE file.","default_branch":null,"files":null,"tree":[],"storefront":"/r/bnb-chain","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bnb-chain/bsc-genesis-contract/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}