Skip to content

Latest commit

 

History

History
85 lines (71 loc) · 4.93 KB

README.md

File metadata and controls

85 lines (71 loc) · 4.93 KB

token-lottery

Current contract address

Kovan

Binance Testnet

Binance Mainnet

Current User address (testnet)

  • Proxy admin: 0xad1F66Acea98733D63cd8FC522118e4014Cb3F79
  • Lottery owner: 0xa11cec4fF714C34775318544e97842344A9F3aDc
  • Lottery admin: 0xa11cec4fF714C34775318544e97842344A9F3aDc

Current User address (mainnet)

  • Proxy admin: 0xca0272Aaa436E53a6Cc755454812d5A802bBFCE6
  • Lottery owner: 0xca1cca8f5637c9566d8C719C899440A88AF7D874
  • Lottery admin: 0xca1cca8f5637c9566d8C719C899440A88AF7D874

The BUSD Token has minted and transfer to Admin address (1000B BUSD)

How to deploy

  • clone this repository git clone https://github.com/nanmcpe/token-lottery
  • enter to directory cd token-lottery
  • run npm install
  • add secret file vi .secret
{
    "infuraProjectId": "",
    "privateKeys": [
        "",
        "",
        "",
        ""
        ],
    "privateKeysGanache": [
        "",
        "",
        "",
        ""
        ],
    "etherApiKey": "",
    "bscApiKey": ""
}
  • run truffle compile
  • edit file vi ./node_modules/request/request.js on line 852, hard coded timeout to 120000

For Kovan

  • run truffle migrate --network kovan
  • run npm run verify BUSD --network kovan
  • run npm run verify LotteryNFT --network kovan
  • run npm run verify Lottery --network kovan
  • run npm run verify LotteryUpgradeProxy --network kovan
  • verify proxy: go to https://kovan.etherscan.io/proxyContractChecker and enter LotteryUpgradeProxy address

For Binance Testnet

  • run truffle migrate --network binanceTestnet
  • run npm run verify BUSD --network binanceTestnet
  • run npm run verify LotteryNFT --network binanceTestnet
  • run npm run verify Lottery --network binanceTestnet
  • run npm run verify LotteryUpgradeProxy --network binanceTestnet
  • verify proxy: go to https://testnet.bscscan.com/proxyContractChecker and enter LotteryUpgradeProxy address

Miscellaneous

ABI Encoded Data for deploying proxy: 0x11e42065000000000000000000000000322e4612792dcdd60a50f9802c823e7b51ef1e31000000000000000000000000ddd7dfffcd69969f058322b22296ce3fe65c0e7b0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000a11cec4ff714c34775318544e97842344a9f3adc000000000000000000000000a11cec4ff714c34775318544e97842344a9f3adc

ABI Encoded Constructor Arguments for verify contract on both etherscan and bscscan (not necessary if using truffle run verify) 000000000000000000000000d778c0ec9362f6742f5490cda76a349402715875000000000000000000000000ad1f66acea98733d63cd8fc522118e4014cb3f79000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c411e42065000000000000000000000000c3d992c84aa12d1fb078f0a3c9470a4ddc3e4a74000000000000000000000000411a6f3805dd17694fd287adec28d9ce9de3789d0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000a11cec4ff714c34775318544e97842344a9f3adc000000000000000000000000a11cec4ff714c34775318544e97842344a9f3adc00000000000000000000000000000000000000000000000000000000

Tools: https://abi.hashex.org/