@graphprotocol/graph-cli 0.90.0-alpha-20241127142903-f137c43 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -5
- package/dist/command-helpers/abi.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.90.0
|
|
3
|
+
## 0.90.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
### Patch Changes
|
|
12
12
|
|
|
13
|
-
- [#
|
|
14
|
-
[`
|
|
15
|
-
Thanks [@
|
|
16
|
-
|
|
13
|
+
- [#1771](https://github.com/graphprotocol/graph-tooling/pull/1771)
|
|
14
|
+
[`93271b0`](https://github.com/graphprotocol/graph-tooling/commit/93271b07116752c74419720a39c1fdbd460c078d)
|
|
15
|
+
Thanks [@0237h](https://github.com/0237h)! - Support parsing full path contract name from block
|
|
16
|
+
explorers
|
|
17
|
+
|
|
18
|
+
- [#1774](https://github.com/graphprotocol/graph-tooling/pull/1774)
|
|
19
|
+
[`5d9f0c9`](https://github.com/graphprotocol/graph-tooling/commit/5d9f0c9c9d714d95ed455deb02137ea5440f3e2d)
|
|
20
|
+
Thanks [@0237h](https://github.com/0237h)! - Add new chains: `abstract-testnet`, `corn` and
|
|
21
|
+
`corn-testnet`
|
|
17
22
|
|
|
18
23
|
- [#1767](https://github.com/graphprotocol/graph-tooling/pull/1767)
|
|
19
24
|
[`6f2cb45`](https://github.com/graphprotocol/graph-tooling/commit/6f2cb45e5a07d8de2946a485763feb0b1bcfd4f0)
|
|
@@ -94,7 +94,11 @@ exports.fetchSourceCodeFromEtherscan = fetchSourceCodeFromEtherscan;
|
|
|
94
94
|
const getContractNameForAddress = async (network, address) => {
|
|
95
95
|
try {
|
|
96
96
|
const contractSourceCode = await (0, exports.fetchSourceCodeFromEtherscan)(network, address);
|
|
97
|
-
|
|
97
|
+
let contractName = contractSourceCode.result[0].ContractName;
|
|
98
|
+
// Some explorers will return the full path of the contract instead of just the name
|
|
99
|
+
// Example: contracts/SyncSwapRouter.sol:SyncSwapRouter
|
|
100
|
+
if (contractName.includes(':'))
|
|
101
|
+
contractName = contractName.substring(contractName.lastIndexOf(':') + 1);
|
|
98
102
|
logger('Successfully getContractNameForAddress. contractName: %s', contractName);
|
|
99
103
|
return contractName;
|
|
100
104
|
}
|
package/oclif.manifest.json
CHANGED