-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from 1inch/deploy/kyc-nft
[SC-1230] Deploy KycNFT
- Loading branch information
Showing
15 changed files
with
8,705 additions
and
1 deletion.
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,31 @@ | ||
const hre = require('hardhat'); | ||
const { getChainId, network } = hre; | ||
const { deployAndGetContractWithCreate3, deployAndGetContract } = require('@1inch/solidity-utils'); | ||
|
||
module.exports = async ({ getNamedAccounts, deployments }) => { | ||
console.log('running deploy script: kyc-nft'); | ||
console.log('network id ', await getChainId()); | ||
|
||
if (network.name.indexOf('zksync') !== -1) { | ||
// Deploy on zkSync-like networks without create3 | ||
const { deployer } = await getNamedAccounts(); | ||
await deployAndGetContract({ | ||
contractName: 'KycNFT', | ||
constructorArgs: ['Resolver Access Token', 'RES', '0x56E44874F624EbDE6efCc783eFD685f0FBDC6dcF'], | ||
deployments, | ||
deployer, | ||
}); | ||
} else { | ||
// Deploy with create3 | ||
await deployAndGetContractWithCreate3({ | ||
contractName: 'KycNFT', | ||
constructorArgs: ['Resolver Access Token', 'RES', '0x56E44874F624EbDE6efCc783eFD685f0FBDC6dcF'], | ||
create3Deployer: '0xD935a2bb926019E0ed6fb31fbD5b1Bbb7c05bf65', | ||
salt: '0x6a836dae74a446aa8cb5d26951222246d1cad2d4a744b961f7986bf35f4d35d7', | ||
deployments, | ||
skipVerify: network.name === 'klaytn', | ||
}); | ||
} | ||
}; | ||
|
||
module.exports.skip = async () => true; |
Oops, something went wrong.