From d8fa53204be4c0dd99b5b68f330da75f3e355543 Mon Sep 17 00:00:00 2001 From: Ian He <39037239+ianhe8x@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:17:42 +0800 Subject: [PATCH] redeploy airdropper --- hardhat.config.ts | 22 ++++++++++++++++++++++ publish/mainnet.json | 12 ++++++------ scripts/config/contracts.config.ts | 2 +- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index e614cb79..4e9e0442 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -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); } @@ -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, diff --git a/publish/mainnet.json b/publish/mainnet.json index 4ea838f8..c2e229f1 100644 --- a/publish/mainnet.json +++ b/publish/mainnet.json @@ -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", @@ -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" } } } \ No newline at end of file diff --git a/scripts/config/contracts.config.ts b/scripts/config/contracts.config.ts index e7265b33..d7362608 100644 --- a/scripts/config/contracts.config.ts +++ b/scripts/config/contracts.config.ts @@ -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