-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e028df
commit ee2b37f
Showing
3 changed files
with
36 additions
and
5 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 |
---|---|---|
|
@@ -37,3 +37,4 @@ yarn-error.log* | |
#Hardhat files | ||
cache | ||
artifacts | ||
.openzeppelin |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//to run this on testnet: | ||
// $ npx hardhat run scripts/deploy-gns.js | ||
|
||
const hardhat = require('hardhat') | ||
|
||
async function main() { | ||
await hre.run('compile') | ||
const network = hardhat.config.networks[hardhat.config.defaultNetwork] | ||
const NFT = await hardhat.ethers.getContractFactory('GryphNamespaces') | ||
const nft = await hardhat.upgrades.UpgradeProxy(network.contracts.namespaces, NFT) | ||
await nft.deployed() | ||
console.log('Proxy contract updated to (update .env):', nft.address) | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().then(() => process.exit(0)).catch(error => { | ||
console.error(error) | ||
process.exit(1) | ||
}); | ||
|
||
//$ npx hardhat verify --network testnet 0xCFe522301C7246401387003156dFb7cd4826Bd3b "https://ipfs.io/ipfs/bafkreicw32mefimobvabviirb7rao45r3kpy5zdudiputyubcmp2gag4xa" | ||
//$ npx hardhat verify --network mainnet |