Open oberstet opened 3 years ago
Docker:
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ make build_ganache_docker
cd docker && \
docker build \
-t crossbario/crossbarfx-blockchain:21.1.1 \
-t crossbario/crossbarfx-blockchain:latest \
-f Dockerfile.ganache \
.
Sending build context to Docker daemon 1.788MB
Step 1/3 : FROM trufflesuite/ganache-cli:v6.12.2
---> 9924d0bf3f13
Step 2/3 : COPY ./data /blockchain
---> b8fa73c57e22
Step 3/3 : ENTRYPOINT [ "node", "/app/ganache-core.docker.cli.js", "--accounts", "20", "--defaultBalanceEther", "10000", "--mnemonic", "myth like bonus scare over problem client lizard pioneer submit female collect", "--gasLimit", "10000000000", "--gasPrice", "8000000000", "--port", "1545", "--networkId", "5777", "--db", "/blockchain" ]
---> Running in 98621a266f01
Removing intermediate container 98621a266f01
---> 87d1a63bd373
Successfully built 87d1a63bd373
Successfully tagged crossbario/crossbarfx-blockchain:21.1.1
Successfully tagged crossbario/crossbarfx-blockchain:latest
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ make publish_ganache_docker
docker push crossbario/crossbarfx-blockchain:21.1.1
The push refers to repository [docker.io/crossbario/crossbarfx-blockchain]
8235ee4035a8: Pushed
f2b3fbc62f29: Mounted from trufflesuite/ganache-cli
e9289282e635: Mounted from trufflesuite/ganache-cli
a668afb0f92a: Mounted from trufflesuite/ganache-cli
f5728ecf7d08: Mounted from trufflesuite/ganache-cli
0fcbbeeeb0d7: Mounted from trufflesuite/ganache-cli
21.1.1: digest: sha256:5155b25c18dde8bd149ef01a7e2bd72f29b00d3bb76322cfb3b5d942f84d3ebd size: 1578
docker push crossbario/crossbarfx-blockchain:latest
The push refers to repository [docker.io/crossbario/crossbarfx-blockchain]
8235ee4035a8: Layer already exists
f2b3fbc62f29: Layer already exists
e9289282e635: Layer already exists
a668afb0f92a: Layer already exists
f5728ecf7d08: Layer already exists
0fcbbeeeb0d7: Layer already exists
latest: digest: sha256:5155b25c18dde8bd149ef01a7e2bd72f29b00d3bb76322cfb3b5d942f84d3ebd size: 1578
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$
Verification on Etherscan. The following work:
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRToken --network rinkeby
Verifying XBRToken
Pass - Verified: https://rinkeby.etherscan.io/address/0x87D89D00B0051E760b23a1eb7F87D38082773b55#contracts
Successfully verified 1 contract(s).
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRMarket --network rinkeby
Verifying XBRMarket
Pass - Verified: https://rinkeby.etherscan.io/address/0xF7acf1C4CB4a9550B8969576573C2688B48988C2#contracts
Successfully verified 1 contract(s).
But these fail - no clue why:
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRChannel --network rinkeby
Verifying XBRChannel
Fail - Unable to verify
Failed to verify 1 contract(s): XBRChannel
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRCatalog --network rinkeby
Verifying XBRCatalog
Fail - Unable to verify
Failed to verify 1 contract(s): XBRCatalog
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRDomain --network rinkeby
Verifying XBRDomain
Fail - Unable to verify
Failed to verify 1 contract(s): XBRDomain
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRMaintained --network rinkeby
Verifying XBRMaintained
No instance of contract XBRMaintained found for network id 4
Failed to verify 1 contract(s): XBRMaintained
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ truffle run verify XBRTypes --network rinkeby
Verifying XBRTypes
Fail - Unable to verify
Failed to verify 1 contract(s): XBRTypes
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$
https://github.com/gnosis/verify-on-etherscan https://info.etherscan.com/contract-troubleshooting-unable-verify-contract-source/ https://info.etherscan.com/contract-verification-constructor-arguments/
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ npx truffle run verify --network rinkeby --optimize --optimize-runs 200 --verbose ./contracts/ XBRDomain
Verifying XBRDomain
Fail - Unable to verify
Failed to verify 1 contract(s): XBRDomain
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$ make verify_etherscan_1
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRToken --network rinkeby
Verifying XBRToken
Contract source code already verified: https://rinkeby.etherscan.io/address/0x87D89D00B0051E760b23a1eb7F87D38082773b55#contracts
Successfully verified 1 contract(s).
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRNetwork --network rinkeby
Verifying XBRNetwork
Fail - Unable to verify
Failed to verify 1 contract(s): XBRNetwork
Makefile:158: recipe for target 'verify_etherscan_1' failed
make: [verify_etherscan_1] Error 1 (ignoriert)
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRCatalog --network rinkeby
Verifying XBRCatalog
Fail - Unable to verify
Failed to verify 1 contract(s): XBRCatalog
Makefile:158: recipe for target 'verify_etherscan_1' failed
make: [verify_etherscan_1] Error 1 (ignoriert)
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRDomain --network rinkeby
Verifying XBRDomain
Fail - Unable to verify
Failed to verify 1 contract(s): XBRDomain
Makefile:158: recipe for target 'verify_etherscan_1' failed
make: [verify_etherscan_1] Error 1 (ignoriert)
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRMarket --network rinkeby
Verifying XBRMarket
Contract source code already verified: https://rinkeby.etherscan.io/address/0xF7acf1C4CB4a9550B8969576573C2688B48988C2#contracts
Successfully verified 1 contract(s).
/home/oberstet/scm/crossbario/xbr-protocol/node_modules/.bin/truffle run verify XBRChannel --network rinkeby
Verifying XBRChannel
Fail - Unable to verify
Failed to verify 1 contract(s): XBRChannel
Makefile:158: recipe for target 'verify_etherscan_1' failed
make: [verify_etherscan_1] Error 1 (ignoriert)
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/xbr-protocol$
0xf766Dc789CF04CD18aE75af2c5fAf2DA6650Ff57