Skip to content

Commit

Permalink
Use returned display link if available (#161)
Browse files Browse the repository at this point in the history
* Use returned display link if exists

* Bump up hardhat tenderly version

* Bupm up hardhat-tenderly version to 1.8.0

* updated examples/contract-verification/package.json

* Version packages

---------

Co-authored-by: dule-git <dusank98@gmail.com>
  • Loading branch information
veljko-matic and dule-git authored Nov 10, 2023
1 parent 03b7c96 commit a563356
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .changeset/thin-masks-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tenderly": minor
"@tenderly/hardhat-tenderly": minor
---

Return valid display link
4 changes: 2 additions & 2 deletions examples/contract-verification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^5.6.9",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typechain": "^8.1.0",
"typescript": "^4.8.3"
},
"dependencies": {
"@nomiclabs/hardhat-ethers": "^2.1.0",
"@tenderly/hardhat-tenderly": "^1.5.3",
"@tenderly/hardhat-tenderly": "^1.7.7",
"dotenv": "^16.0.1",
"ethers": "^5.7.1",
"hardhat": "^2.10.2"
}
}
28 changes: 17 additions & 11 deletions examples/contract-verification/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -783,20 +783,20 @@
"@sentry/types" "5.30.0"
tslib "^1.9.3"

"@tenderly/hardhat-tenderly@^1.3.2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@tenderly/hardhat-tenderly/-/hardhat-tenderly-1.3.2.tgz#9ee69ba1fb8650d18160c637e8e487d938f6dcea"
integrity sha512-0kE0gv8RIu0N5JXKCCfYcydsMgGgj8z3qCvbeD/ynBKwOBvbFB+NZFRyTHNopbeaUKO7Q3bGFau8vS1B0EWS0g==
"@tenderly/hardhat-tenderly@^1.7.7":
version "1.7.7"
resolved "https://registry.yarnpkg.com/@tenderly/hardhat-tenderly/-/hardhat-tenderly-1.7.7.tgz#b320ee6bea3779e4781eb0299a3a816cbdc83def"
integrity sha512-p/jLzRPpoD7J0LGvUFEQjgniDzmP5AzfTgy41qqzyjhOsW0voe7wZI8lXjadl5MEr7rAXN1iH3VncT13qG6+Zw==
dependencies:
"@ethersproject/bignumber" "^5.7.0"
"@nomiclabs/hardhat-ethers" "^2.1.1"
axios "^0.27.2"
ethers "^5.7.0"
fs-extra "^10.1.0"
hardhat "^2.10.2"
hardhat-deploy "^0.11.14"
js-yaml "^4.1.0"
tenderly "^0.0.3"
tenderly "^0.5.3"
tslog "^4.3.1"

"@tsconfig/node10@^1.0.7":
version "1.0.9"
Expand Down Expand Up @@ -2133,7 +2133,7 @@ ethereumjs-util@^7.1.4:
ethereum-cryptography "^0.1.3"
rlp "^2.2.4"

ethers@^5.5.3, ethers@^5.6.9, ethers@^5.7.0:
ethers@^5.5.3, ethers@^5.7.0, ethers@^5.7.1:
version "5.7.2"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e"
integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==
Expand Down Expand Up @@ -4039,10 +4039,10 @@ table@^6.8.0:
string-width "^4.2.3"
strip-ansi "^6.0.1"

tenderly@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/tenderly/-/tenderly-0.0.3.tgz#8c85e287e080073502420d5c6f13f4762d0f59cd"
integrity sha512-dVf2uxrIOeLDRNDEXcQlV2xJt50TIx8zGQKlNj1deYTV3FYu2L0zheHBHaDU12GqAff2iiGYk+fKqFkK0bB0+w==
tenderly@^0.5.3:
version "0.5.3"
resolved "https://registry.yarnpkg.com/tenderly/-/tenderly-0.5.3.tgz#115653ff33fc33e3be41ab7dd669fdbe0f28a6fb"
integrity sha512-sR+sbZKZzt3b2+moXJsrkBvbava1/4mGulIfuZw8bwr2OpCH8N00dME1t89JC8RjVnQjy4VewVFHyWANdn5zYQ==
dependencies:
axios "^0.27.2"
cli-table3 "^0.6.2"
Expand All @@ -4052,6 +4052,7 @@ tenderly@^0.0.3:
js-yaml "^4.1.0"
open "^8.4.0"
prompts "^2.4.2"
tslog "^4.4.0"

text-table@^0.2.0:
version "0.2.0"
Expand Down Expand Up @@ -4126,6 +4127,11 @@ tslib@^1.8.1, tslib@^1.9.3:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

tslog@^4.3.1, tslog@^4.4.0:
version "4.9.2"
resolved "https://registry.yarnpkg.com/tslog/-/tslog-4.9.2.tgz#35de3a073784dfe3849caeaa028010c7a62b7f4a"
integrity sha512-wBM+LRJoNl34Bdu8mYEFxpvmOUedpNUwMNQB/NcuPIZKwdDde6xLHUev3bBjXQU7gdurX++X/YE7gLH8eXYsiQ==

tsort@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/tsort/-/tsort-0.0.1.tgz#e2280f5e817f8bf4275657fd0f9aebd44f5a2786"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ export class TenderlyService {
if (response.results.verified_contracts !== undefined && response.results.verified_contracts !== null) {
for (const verifiedContract of response.results.verified_contracts) {
const contractLink = `${TENDERLY_DASHBOARD_BASE_URL}/${username}/${tenderlyProject}/fork/${forkID}`;
const logMsg = `Contract ${verifiedContract.address} verified. You can view the contract at the fork: ${contractLink}`;
let logMsg = `Contract ${verifiedContract.address} verified. You can view the contract at the fork: ${contractLink}`;
if (response.display_link != undefined && response.display_link != '') {
logMsg = `Contract ${verifiedContract.address} verified. You can view the contract at: ${response.display_link}`;
}
console.log(logMsg);
logger.trace(logMsg);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// autogenerated by prebuild.js
export const HARDHAT_TENDERLY_VERSION = '1.7.5';
export const HARDHAT_TENDERLY_VERSION = '1.8.0';

0 comments on commit a563356

Please sign in to comment.