verify BEBadge contract
This commit is contained in:
parent
03609e77fe
commit
3b4c620250
@ -30691,8 +30691,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"links": {},
|
"links": {},
|
||||||
"address": "0x24d88d25EC6A240aC836fD405d73081102e434EE",
|
"address": "0x3F13F83E6363D97d0353cAAfACA08B05D9BF3637",
|
||||||
"transactionHash": "0x1b721becfd16ffbe515588246b11d394a001d28ab96d368f74ef4aee2fd75814"
|
"transactionHash": "0xf7aaa4ea7b15bb309a17ccf705cf0015f89148abf1f432a4be39834b21cb1ef6"
|
||||||
},
|
},
|
||||||
"80001": {
|
"80001": {
|
||||||
"events": {
|
"events": {
|
||||||
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -21,7 +21,7 @@
|
|||||||
"prettier-plugin-solidity": "^1.0.0-beta.24",
|
"prettier-plugin-solidity": "^1.0.0-beta.24",
|
||||||
"truffle": "^5.4.23",
|
"truffle": "^5.4.23",
|
||||||
"truffle-plugin-stdjsonin": "github:mhrsalehi/truffle-plugin-stdjsonin",
|
"truffle-plugin-stdjsonin": "github:mhrsalehi/truffle-plugin-stdjsonin",
|
||||||
"truffle-plugin-verify": "^0.5.25"
|
"truffle-plugin-verify": "^0.5.33"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
@ -20636,9 +20636,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/truffle-plugin-verify": {
|
"node_modules/truffle-plugin-verify": {
|
||||||
"version": "0.5.25",
|
"version": "0.5.33",
|
||||||
"resolved": "https://registry.npmmirror.com/truffle-plugin-verify/-/truffle-plugin-verify-0.5.25.tgz",
|
"resolved": "https://registry.npmjs.org/truffle-plugin-verify/-/truffle-plugin-verify-0.5.33.tgz",
|
||||||
"integrity": "sha512-LWx1mPKSP+eiiE0/VgTL9tixVdnHXwhd7eVV3zBhyuR1sJwecvEMrRbDqxDz9fAzcDzXyf43xmsi/MaR2h1EVg==",
|
"integrity": "sha512-NonyWylAVAjqHsvBe61iUpWmHQoN6wvz7OaNzIfyHO8+O5ZErPT/lhv+zRT31OLeFOanM403FySY3A/kzpl6fg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
@ -41516,9 +41516,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"truffle-plugin-verify": {
|
"truffle-plugin-verify": {
|
||||||
"version": "0.5.25",
|
"version": "0.5.33",
|
||||||
"resolved": "https://registry.npmmirror.com/truffle-plugin-verify/-/truffle-plugin-verify-0.5.25.tgz",
|
"resolved": "https://registry.npmjs.org/truffle-plugin-verify/-/truffle-plugin-verify-0.5.33.tgz",
|
||||||
"integrity": "sha512-LWx1mPKSP+eiiE0/VgTL9tixVdnHXwhd7eVV3zBhyuR1sJwecvEMrRbDqxDz9fAzcDzXyf43xmsi/MaR2h1EVg==",
|
"integrity": "sha512-NonyWylAVAjqHsvBe61iUpWmHQoN6wvz7OaNzIfyHO8+O5ZErPT/lhv+zRT31OLeFOanM403FySY3A/kzpl6fg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"prettier-plugin-solidity": "^1.0.0-beta.24",
|
"prettier-plugin-solidity": "^1.0.0-beta.24",
|
||||||
"truffle": "^5.4.23",
|
"truffle": "^5.4.23",
|
||||||
"truffle-plugin-stdjsonin": "github:mhrsalehi/truffle-plugin-stdjsonin",
|
"truffle-plugin-stdjsonin": "github:mhrsalehi/truffle-plugin-stdjsonin",
|
||||||
"truffle-plugin-verify": "^0.5.25"
|
"truffle-plugin-verify": "^0.5.33"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@openzeppelin/contracts": "^4.5.0",
|
"@openzeppelin/contracts": "^4.5.0",
|
||||||
|
12
readme.md
12
readme.md
@ -4,4 +4,14 @@
|
|||||||
hero √ 0x0EB362BD40F2288fF25A6Ee1b487cB0cb4638e0D
|
hero √ 0x0EB362BD40F2288fF25A6Ee1b487cB0cb4638e0D
|
||||||
weapon √ 0x29F67A372AC1c6AcF478A564992D421FE20F2cc8
|
weapon √ 0x29F67A372AC1c6AcF478A564992D421FE20F2cc8
|
||||||
chip √ 0x54B6ED7EDe9355b471985439421Aa1DC7Da6Dc20
|
chip √ 0x54B6ED7EDe9355b471985439421Aa1DC7Da6Dc20
|
||||||
Box √ 0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4
|
Box √ 0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4
|
||||||
|
|
||||||
|
|
||||||
|
[verify arbitrum one contract]
|
||||||
|
使用truffle-plugin-verify插件可以直接verify contract
|
||||||
|
插件地址:https://github.com/rkalis/truffle-plugin-verify
|
||||||
|
1.使用命令(示例):
|
||||||
|
truffle run verify BEBadge.sol --network arbitrum_one --verifiers=arbiscan
|
||||||
|
2.注意事项:
|
||||||
|
(1).verify使用的artifact file,名字格式为:***.sol.json,比如:BEBadge.sol.json
|
||||||
|
(2).在json文件中,必须确保要verify的合约地址以及对应的txhash与链上一致(在deploy过程的最后有可能会出错,导致地址没写入,这是需要手动录入)
|
@ -36,11 +36,12 @@ const arbOneAddr = fs.readFileSync(".addr").toString().trim();
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
"truffle-plugin-stdjsonin",
|
"truffle-plugin-stdjsonin",
|
||||||
"truffle-contract-size",
|
// "truffle-contract-size",
|
||||||
"truffle-plugin-verify",
|
"truffle-plugin-verify",
|
||||||
],
|
],
|
||||||
api_keys: {
|
api_keys: {
|
||||||
etherscan: "ZI9HI3VFZRD346JSRET35Y6AAVGYFGNZ85",
|
etherscan: "ZI9HI3VFZRD346JSRET35Y6AAVGYFGNZ85",
|
||||||
|
arbiscan: "3SCUKX6V2I9FJH65EXSDX2MVDIJZYV7MNU"
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Networks define how you connect to your ethereum client and let you set the
|
* Networks define how you connect to your ethereum client and let you set the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user