# Deployment 6 ## Kovan Deployment ``` /Users/amin/.nvm/versions/node/v14.18.1/bin/node /Users/amin/.nvm/versions/node/v14.18.1/lib/node_modules/npm/bin/npm-cli.js run deploy:kovan --scripts-prepend-node-path=auto > hardhat-project@ deploy:kovan /Users/amin/Work/giveth/giv-token-contracts > HARDHAT_NETWORK=kovan ts-node deployments/mainnet/2_tokenDistro_Unipools.js 1640190600 0x6c16216484069C19530a57762AD6630fB678D00E 2000000000 0x77c3a14a9dffaa4b4b94f4f274cdbeb0518be24d 10000000 0x02653cae0cad6b3cd73e7dbc4f7a3ce6693c3ed7 2500000 2500000 ####################### ##### Deployments ##### ####################### Deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 totalTokens: 2000000000.0 startTime: 1640190600 cliffPeriod: 0 duration: 157680000 initialPercentage: 1000 tokenAddress: 0x6c16216484069C19530a57762AD6630fB678D00E LMDuration: 1209600 cancelable: false ####################### ##### TokenDistro ##### ####################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 totalTokens: 2000000000.0 startTime: 1640190600 cliffPeriod: 0 duration: 157680000 initialPercentage: 1000 tokenAddress: 0x6c16216484069C19530a57762AD6630fB678D00E cancelable: false ######################## TokenDistro deployed to: 0x373bAa19E92F6204b461b791094012fd259996F4 ####################### ##### Check ##### ####################### TokenDistro - totalTokens: 2000000000.0 TokenDistro - startTime: 1640190600 TokenDistro - cliffPeriod: 1640190600 TokenDistro - duration: 157680000 TokenDistro - initialAmount: 200000000000000000000000000 TokenDistro - token: 0x6c16216484069C19530a57762AD6630fB678D00E TokenDistro - cancelable: false This smartcontract needs: 2000000000.0 Tokens token.mint("0x373bAa19E92F6204b461b791094012fd259996F4","2000000000000000000000000000") ###################################################### ####### 50GIV/ETH - Uni Mainnet 10000000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x373bAa19E92F6204b461b791094012fd259996F4 uni staker: 0x1f98407aaB862CdDeF78Ed252D6f557aA5b0f00d duration: 1209600 ############################################## GIVETH_UNI_REWARD deployed to: 0x6397b874BC81c4c9bEb8D8f2a0fd121b304F21B2 ############################################## TokenDistro - assign: giveth_uni_reward 10000000 The new incentiveId will be 0x7d9c478e7de7f19cf0dcd77b255ce5619af4a2e5fa4f6569912ef2c695d0fd65 Key: { startTime: '1640190600', endTime: '1655915400', pool: '0x77c3a14A9dFfaA4B4B94f4F274cdBeb0518bE24d', rewardToken: '0x6397b874BC81c4c9bEb8D8f2a0fd121b304F21B2', refundee: '0x5f672d71399d8cDbA64f596394b4f4381247E025' } Creating incentive in tx 0x0f6fd895bf658566fa7833b49278182935672e4ba76783b12350946140623b4d... ####################### ##### Check ##### ####################### giveth_uni_reward(tokenDistro,duration,periodFinish,uni): giveth_uni_reward - tokenDistro: 0x373bAa19E92F6204b461b791094012fd259996F4 uniswap v3 staker - balance of giveth_uni_reward: 10000000.0 ###################################################### ####### 80GIV/ETH - Bal Mainnet 2500000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x373bAa19E92F6204b461b791094012fd259996F4 uni: 0x02653cAe0caD6b3cd73E7DBc4f7A3cE6693C3ed7 duration: 1209600 ############################################## GIVETH_BAL deployed to: 0xc3092EeED159be05dF1c103e3CaAC3DacAe1EdF9 ############################################## TokenDistro - assign: giveth_uni_reward 2500000 ####################### ##### Check ##### ####################### giveth_bal(tokenDistro,duration,periodFinish,uni): giveth_bal - tokenDistro: 0x373bAa19E92F6204b461b791094012fd259996F4 giveth_bal - duration: 1209600 giveth_bal - periodFinish: 0 giveth_bal - uni: 0x02653cAe0caD6b3cd73E7DBc4f7A3cE6693C3ed7 ###################################################### ####### GIVstaking ETH Mainnet 2500000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x373bAa19E92F6204b461b791094012fd259996F4 uni: 0x6c16216484069C19530a57762AD6630fB678D00E duration: 1209600 ############################################## UNIGIV deployed to: 0xDfdBDA44b2b9C113475a372c078aAC1279C4d7BE ############################################## TokenDistro - assign: giveth_uni_reward 2500000 ####################### ##### Check ##### ####################### unigiv(tokenDistro,duration,periodFinish,uni): unigiv - tokenDistro: 0x373bAa19E92F6204b461b791094012fd259996F4 unigiv - duration: 1209600 unigiv - periodFinish: 0 unigiv - uni: 0x6c16216484069C19530a57762AD6630fB678D00E ####################### ##### Final checks ### ####################### tokenDistro.balances(tokenDistro.address) allocated: 1985000000.0 claimed: 0.0 tokenDistro.balances(giveth_uni_reward.address) allocated: 10000000.0 claimed: 0.0 tokenDistro.balances(giveth_bal.address) allocated: 2500000.0 claimed: 0.0 tokenDistro.balances(unigiv.address) allocated: 2500000.0 claimed: 0.0 tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),giveth_uni_reward.address) true tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),giveth_bal.address) true tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),unigiv.address) true ╭───────────────────────────────────────────────────────────────╮ │ │ │ New major version of npm available! 6.14.15 → 8.3.0 │ │ Changelog: https://github.com/npm/cli/releases/tag/v8.3.0 │ │ Run npm install -g npm to update! │ │ │ ╰───────────────────────────────────────────────────────────────╯ Process finished with exit code 0 ``` ## xDai Deployment ``` /Users/amin/.nvm/versions/node/v14.18.1/bin/node /Users/amin/.nvm/versions/node/v14.18.1/lib/node_modules/npm/bin/npm-cli.js run deploy:xDAI --scripts-prepend-node-path=auto > hardhat-project@ deploy:xDAI /Users/amin/Work/giveth/giv-token-contracts > HARDHAT_NETWORK=xDAI ts-node deployments/xDAI/1_tokenDistro_merkleDistro_Unipool.js 1640190600 0x780FE5de651a3ea62E572f591BF848cFEBaf2163 2000000000 0xE5021d9B578b84f7D272CFDE3E8B58c0Bf37B402 10000000 0x0346B748Ce9bdd42995452b5D30b46c296336f07 2500000 0x642c18755aa5a2bf6861349327d2448813b992ba 7500000 ####################### ##### Deployments ##### ####################### Deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 totalTokens: 2000000000.0 startTime: 1640190600 cliffPeriod: 0 duration: 157680000 initialPercentage: 1000 tokenAddress: 0x780FE5de651a3ea62E572f591BF848cFEBaf2163 LMDuration: 1209600 cancelable: true merkletree_file: ./files/merkle_distributor_xdai_result.json merkleTokens: 170499973.0 ####################### ##### TokenDistro ##### ####################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 totalTokens: 2000000000.0 startTime: 1640190600 cliffPeriod: 0 duration: 157680000 initialPercentage: 1000 tokenAddress: 0x780FE5de651a3ea62E572f591BF848cFEBaf2163 cancelable: true ######################## TokenDistro deployed to: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be ####################### ##### Check ##### ####################### TokenDistro - totalTokens: 2000000000.0 TokenDistro - startTime: 1640190600 TokenDistro - cliffPeriod: 1640190600 TokenDistro - duration: 157680000 TokenDistro - initialAmount: 200000000000000000000000000 TokenDistro - token: 0x780FE5de651a3ea62E572f591BF848cFEBaf2163 TokenDistro - cancelable: true This smartcontract needs: 2000000000.0 Tokens token.mint("0x74B557bec1A496a8E9BE57e9A1530A15364C87Be","2000000000000000000000000000") ######################## ##### MerkleDistro ##### ######################## deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 distroAddress: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be merkletree_file: ./files/merkle_distributor_xdai_result.json ####################### MerkleDistro deployed to: 0x06BA4122FC4F3AbCdAFD2fF1dD83A88A63842309 ####################### TokenDistro - assign: MerkleDistro 170499973000000000000000000 ####################### ##### Check ##### ####################### MerkleDistro - _tokenDistro: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be MerkleDistro - _merkleRoot: 0xa9a75db9768557dbbe7df77b5ebca731f20b9b1cadfc207f8fdc3974680d5cb3 ###################################################### ####### 50GIV/HNY - honeyswap - xDai 10000000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be uni: 0xE5021d9B578b84f7D272CFDE3E8B58c0Bf37B402 duration: 1209600 ############################################## GIVHNY_XDAI deployed to: 0x34F8Cc88b872f13d32084464af56f1052A2eF0f6 ############################################## TokenDistro - assign: givhny_xdai 10000000 ####################### ##### Check ##### ####################### givhny_xdai(tokenDistro,duration,periodFinish,uni): givhny_xdai - tokenDistro: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be givhny_xdai - duration: 1209600 givhny_xdai - periodFinish: 0 givhny_xdai - uni: 0xE5021d9B578b84f7D272CFDE3E8B58c0Bf37B402 ###################################################### ####### 50GIV/WETH - honeyswap - xDai 2500000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be uni: 0x0346B748Ce9bdd42995452b5D30b46c296336f07 duration: 1209600 ############################################## GIVHNY_XDAI deployed to: 0x448d5E09620752f031Ea629993050f8581118438 ############################################## TokenDistro - assign: givhny_xdai 2500000 ####################### ##### Check ##### ####################### givweth_xdai(tokenDistro,duration,periodFinish,uni): givweth_xdai - tokenDistro: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be givweth_xdai - duration: 1209600 givweth_xdai - periodFinish: 0 givweth_xdai - uni: 0x0346B748Ce9bdd42995452b5D30b46c296336f07 ###################################################### ####### GIVstaking xDai - xDai - 7500000 ####### ###################################################### deployer: 0x5f672d71399d8cDbA64f596394b4f4381247E025 tokenDistribution: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be uni: 0x780FE5de651a3ea62E572f591BF848cFEBaf2163 duration: 1209600 ############################################## UNIGIV deployed to: 0x898Baa558A401e59Cb2aA77bb8b2D89978Cf506F ############################################## TokenDistro - assign: givhny_xdai 7500000 ####################### ##### Check ##### ####################### unigiv(tokenDistro,duration,periodFinish,uni): unigiv - tokenDistro: 0x74B557bec1A496a8E9BE57e9A1530A15364C87Be unigiv - duration: 1209600 unigiv - periodFinish: 0 ####################### ##### Final checks ### ####################### tokenDistro.balances(tokenDistro.address) allocated: 1809500027.0 claimed: 0.0 tokenDistro.balances(merkleDistro.address) allocated: 170499973.0 claimed: 0.0 tokenDistro.balances(givhny_xdai.address) allocated: 10000000.0 claimed: 0.0 tokenDistro.balances(givweth_xdai.address) allocated: 2500000.0 claimed: 0.0 tokenDistro.balances(unigiv.address) allocated: 7500000.0 claimed: 0.0 tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),merkleDistro.address) true tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),givhny_xdai.address) true tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),givweth_xdai.address) true tokenDistro.hasRole(tokenDistro.DISTRIBUTOR_ROLE(),unigiv.address) true Process finished with exit code 0 ```