-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. QR drops for Melbourne, Lisbon+Istanbul, Community distribution 2. Script fixes 3. Deploy script upgrade
- Loading branch information
Showing
10 changed files
with
1,287 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// const { assert } = require('chai'); | ||
const { deployAndGetContract } = require('@1inch/solidity-utils'); | ||
const hre = require('hardhat'); | ||
const { getChainId } = hre; | ||
|
||
// change number | ||
const VERSION = 30; | ||
|
||
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', '0xda1ca6d8cacfb49efbcc261127e6b884', 9]; | ||
|
||
const deployScriptName = 'MerkleDrop128-' + VERSION.toString(); | ||
await deployAndGetContract({ | ||
contractName: 'SignatureMerkleDrop128', | ||
constructorArgs: args, | ||
deployments, | ||
deployer, | ||
deploymentName: deployScriptName, | ||
}); | ||
}; | ||
|
||
module.exports.skip = async () => true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// const { assert } = require('chai'); | ||
const { deployAndGetContract } = require('@1inch/solidity-utils'); | ||
const hre = require('hardhat'); | ||
const { getChainId } = hre; | ||
|
||
// change number | ||
const VERSION = 31; | ||
|
||
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', '0x31f7c27ee4bb56915c674c4d386027ce', 10]; | ||
|
||
const deployScriptName = 'MerkleDrop128-' + VERSION.toString(); | ||
await deployAndGetContract({ | ||
contractName: 'SignatureMerkleDrop128', | ||
constructorArgs: args, | ||
deployments, | ||
deployer, | ||
deploymentName: deployScriptName, | ||
}); | ||
}; | ||
|
||
module.exports.skip = async () => true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// const { assert } = require('chai'); | ||
const { deployAndGetContract } = require('@1inch/solidity-utils'); | ||
const hre = require('hardhat'); | ||
const { getChainId } = hre; | ||
|
||
// change number | ||
const VERSION = 32; | ||
|
||
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', '0x5eb75cc30626dc3f940842c5bf49f60b', 7]; | ||
|
||
const deployScriptName = 'MerkleDrop128-' + VERSION.toString(); | ||
await deployAndGetContract({ | ||
contractName: 'SignatureMerkleDrop128', | ||
constructorArgs: args, | ||
deployments, | ||
deployer, | ||
deploymentName: deployScriptName, | ||
}); | ||
}; | ||
|
||
module.exports.skip = async () => true; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
deployments/mainnet/solcInputs/47fea3388df766f91a2a4fe8b98baa6b.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
29 | ||
32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters