Skip to content

Commit

Permalink
qr drop for community
Browse files Browse the repository at this point in the history
  • Loading branch information
galekseev committed Sep 20, 2023
1 parent a0ecf06 commit fb64ddf
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 1 deletion.
33 changes: 33 additions & 0 deletions deploy/qr/deploy_qr_29.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// const { assert } = require('chai');
const hre = require('hardhat');
const { getChainId } = hre;

// change number
const VERSION = 29;

module.exports = async ({ deployments, getNamedAccounts }) => {
console.log('running deploy script: deploy script ' + VERSION.toString());
console.log('network id ', await getChainId());

const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

// 1inch address, merkle root, tree height
const args = ['0x111111111117dC0aa78b770fA6A738034120C302', '0x7554f23dc98f9f225e2346a6b5a16f0b', 8];

const deployScriptName = 'MerkleDrop128-' + VERSION.toString();
const merkleDrop128 = await deploy(deployScriptName, {
contract: 'SignatureMerkleDrop128',
from: deployer,
args,
});

if (await getChainId() !== '31337') {
await hre.run('verify:verify', {
address: merkleDrop128.address,
constructorArguments: args,
});
}
};

module.exports.skip = async () => true;
354 changes: 354 additions & 0 deletions deployments/mainnet/MerkleDrop128-29.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/.latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
28
29

0 comments on commit fb64ddf

Please sign in to comment.