Skip to content

Commit

Permalink
redeploy airdropper
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhe8x committed Feb 22, 2024
1 parent d0feaee commit d8fa532
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
22 changes: 22 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ task('publishRoot', 'verify and publish contracts on etherscan')
l2bridge,
],
});

//Airdropper
console.log(`verify Settings`);
await hre.run('verify:verify', {
address: deployment.AirdropperLite.address,
constructorArguments: [deployment.AirdropperLite.innerAddress, deployment.ProxyAdmin.address, []],
});
await hre.run('verify:verify', {
address: deployment.AirdropperLite.innerAddress,
constructorArguments: [],
});
} catch (err) {
console.log(err);
}
Expand Down Expand Up @@ -144,6 +155,17 @@ task('publishChild', 'verify and publish contracts on etherscan')
contract: 'contracts/l2/L2SQToken.sol:L2SQToken',
});

//Airdropper
console.log(`verify Settings`);
await hre.run('verify:verify', {
address: deployment.Airdropper.address,
constructorArguments: [deployment.Airdropper.innerAddress, deployment.ProxyAdmin.address, []],
});
await hre.run('verify:verify', {
address: deployment.Airdropper.innerAddress,
constructorArguments: [],
});

//VSQToken
await hre.run('verify:verify', {
address: deployment.VSQToken.address,
Expand Down
12 changes: 6 additions & 6 deletions publish/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,6 @@
"bytecodeHash": "fe93463de735091579de9d3ebe7ade0afe8b11c6eb9fd30afd7fb01471f6ca48",
"lastUpdate": "Wed, 14 Feb 2024 02:44:25 GMT"
},
"Airdropper": {
"innerAddress": "",
"address": "0xB193ee30DB10bF8811dd0fa35cb25ECe86074363",
"bytecodeHash": "8c88264d2c5e72733c71eace444c0b5b88c26c8e762f3050461ea21c7b36f476",
"lastUpdate": "Wed, 14 Feb 2024 02:44:33 GMT"
},
"RewardsBooster": {
"innerAddress": "0x95401e156FE62527a1BE003e0b6929503FD32165",
"address": "0x7F138D57A5e05b6FBF3bCAdDa9a1252354245464",
Expand All @@ -211,6 +205,12 @@
"address": "0x20E4B978b930ce17a499C33BbF958b5b920F70E1",
"bytecodeHash": "6ae9a679327f3f2f426b72cc08d27e7aadb5be64d06c99a1f53dea428c4e43fd",
"lastUpdate": "Wed, 21 Feb 2024 03:17:52 GMT"
},
"Airdropper": {
"innerAddress": "0x69092f49fC684e8E40524301015BdEeb2aaa431A",
"address": "0x8611F6647C57339b994aE5C1BB7cD8b101eB4716",
"bytecodeHash": "122b9796060b8325d5f2fc93d3d6ffe3f362cb676fcae9c225f15f8796de0d56",
"lastUpdate": "Thu, 22 Feb 2024 13:16:16 GMT"
}
}
}
2 changes: 1 addition & 1 deletion scripts/config/contracts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
SQToken: [utils.parseEther('10000000000')], // initial supply 10 billion
VTSQToken: [], // initial supply 0
Staking: [1209600, 1e3], // lockPeriod: 14 days, unbondFeeRate: 10e3/10e6=0.001=0.1%
Airdropper: ['0xC3b9127ceBfFe170616502FaEE3c0bC7822F15BD'], // settle destination
Airdropper: ['0x31E99bdA5939bA2e7528707507b017f43b67F89B'], // settle destination
EraManager: [604800], // 7 day
PurchaseOfferMarket: [1e5, '0x31E99bdA5939bA2e7528707507b017f43b67F89B'], // _penaltyRate: 1e5/1e6=0.1=10%, _penaltyDestination: treasury
IndexerRegistry: [utils.parseEther('200000')], // _minimumStakingAmount: 200,000 SQT
Expand Down

0 comments on commit d8fa532

Please sign in to comment.