viem 2.0.0-beta.0 → 2.0.0-beta.2
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 +62 -0
- package/README.md +4 -0
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js +2 -2
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +2 -1
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +23 -35
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/celo/serializers.js +20 -38
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/celo/utils.js +44 -0
- package/_cjs/chains/celo/utils.js.map +1 -0
- package/_cjs/chains/definitions/astar.js +29 -0
- package/_cjs/chains/definitions/astar.js.map +1 -0
- package/_cjs/chains/definitions/gnosis.js +4 -1
- package/_cjs/chains/definitions/gnosis.js.map +1 -1
- package/_cjs/chains/definitions/gnosisChiado.js +10 -1
- package/_cjs/chains/definitions/gnosisChiado.js.map +1 -1
- package/_cjs/chains/definitions/kava.js +29 -0
- package/_cjs/chains/definitions/kava.js.map +1 -0
- package/_cjs/chains/definitions/kavaTestnet.js +32 -0
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/neonDevnet.js +1 -1
- package/_cjs/chains/definitions/neonDevnet.js.map +1 -1
- package/_cjs/chains/definitions/neonMainnet.js +27 -0
- package/_cjs/chains/definitions/neonMainnet.js.map +1 -0
- package/_cjs/chains/definitions/scrollSepolia.js +0 -1
- package/_cjs/chains/definitions/scrollSepolia.js.map +1 -1
- package/_cjs/chains/definitions/tenet.js +23 -0
- package/_cjs/chains/definitions/tenet.js.map +1 -0
- package/_cjs/chains/index.js +14 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/zksync/formatters.js +6 -2
- package/_cjs/chains/zksync/formatters.js.map +1 -1
- package/_cjs/errors/contract.js +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/encoding.js +1 -37
- package/_cjs/errors/encoding.js.map +1 -1
- package/_cjs/errors/estimateGas.js +1 -1
- package/_cjs/errors/estimateGas.js.map +1 -1
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/transaction.js +1 -1
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +5 -9
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/hash/getFunctionSignature.js +9 -9
- package/_cjs/utils/hash/getFunctionSignature.js.map +1 -1
- package/_cjs/utils/hash/normalizeSignature.js +48 -0
- package/_cjs/utils/hash/normalizeSignature.js.map +1 -0
- package/_cjs/utils/index.js +3 -10
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +14 -5
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js +2 -2
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js +2 -1
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/chains/celo/formatters.js +23 -35
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/serializers.js +19 -44
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/celo/utils.js +39 -0
- package/_esm/chains/celo/utils.js.map +1 -0
- package/_esm/chains/definitions/astar.js +26 -0
- package/_esm/chains/definitions/astar.js.map +1 -0
- package/_esm/chains/definitions/gnosis.js +4 -1
- package/_esm/chains/definitions/gnosis.js.map +1 -1
- package/_esm/chains/definitions/gnosisChiado.js +10 -1
- package/_esm/chains/definitions/gnosisChiado.js.map +1 -1
- package/_esm/chains/definitions/kava.js +26 -0
- package/_esm/chains/definitions/kava.js.map +1 -0
- package/_esm/chains/definitions/kavaTestnet.js +29 -0
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -0
- package/_esm/chains/definitions/neonDevnet.js +1 -1
- package/_esm/chains/definitions/neonDevnet.js.map +1 -1
- package/_esm/chains/definitions/neonMainnet.js +24 -0
- package/_esm/chains/definitions/neonMainnet.js.map +1 -0
- package/_esm/chains/definitions/scrollSepolia.js +0 -1
- package/_esm/chains/definitions/scrollSepolia.js.map +1 -1
- package/_esm/chains/definitions/tenet.js +20 -0
- package/_esm/chains/definitions/tenet.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/zksync/formatters.js +6 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/errors/contract.js +1 -1
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/encoding.js +0 -36
- package/_esm/errors/encoding.js.map +1 -1
- package/_esm/errors/estimateGas.js +1 -1
- package/_esm/errors/estimateGas.js.map +1 -1
- package/_esm/errors/node.js +11 -22
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +18 -36
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/transaction.js +1 -1
- package/_esm/errors/transaction.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +2 -4
- package/_esm/index.js.map +1 -1
- package/_esm/utils/hash/getFunctionSignature.js +9 -9
- package/_esm/utils/hash/getFunctionSignature.js.map +1 -1
- package/_esm/utils/hash/normalizeSignature.js +51 -0
- package/_esm/utils/hash/normalizeSignature.js.map +1 -0
- package/_esm/utils/index.js +1 -7
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +17 -5
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_types/actions/index.d.ts +1 -5
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -3
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +6 -6
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +3 -2
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +13 -9
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/celo/utils.d.ts +7 -0
- package/_types/chains/celo/utils.d.ts.map +1 -0
- package/_types/chains/definitions/astar.d.ts +36 -0
- package/_types/chains/definitions/astar.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +7 -7
- package/_types/chains/definitions/celoAlfajores.d.ts +7 -7
- package/_types/chains/definitions/celoCannoli.d.ts +7 -7
- package/_types/chains/definitions/gnosis.d.ts +1 -0
- package/_types/chains/definitions/gnosis.d.ts.map +1 -1
- package/_types/chains/definitions/gnosisChiado.d.ts +7 -8
- package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -1
- package/_types/chains/definitions/kava.d.ts +36 -0
- package/_types/chains/definitions/kava.d.ts.map +1 -0
- package/_types/chains/definitions/kavaTestnet.d.ts +36 -0
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/neonDevnet.d.ts +1 -1
- package/_types/chains/definitions/neonMainnet.d.ts +31 -0
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/scrollSepolia.d.ts +0 -1
- package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/tenet.d.ts +38 -0
- package/_types/chains/definitions/tenet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/types.d.ts +7 -7
- package/_types/chains/zksync/types.d.ts.map +1 -1
- package/_types/errors/encoding.d.ts +0 -33
- package/_types/errors/encoding.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +5 -25
- package/_types/index.d.ts.map +1 -1
- package/_types/types/contract.d.ts +6 -6
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/hash/getFunctionSignature.d.ts +4 -5
- package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -1
- package/_types/utils/hash/normalizeSignature.d.ts +6 -0
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -0
- package/_types/utils/index.d.ts +1 -7
- package/_types/utils/index.d.ts.map +1 -1
- package/actions/index.ts +0 -4
- package/actions/public/getBlockNumber.ts +2 -4
- package/actions/public/watchContractEvent.ts +2 -1
- package/chains/celo/formatters.ts +24 -37
- package/chains/celo/serializers.ts +23 -59
- package/chains/celo/types.ts +30 -21
- package/chains/celo/utils.ts +68 -0
- package/chains/definitions/astar.ts +26 -0
- package/chains/definitions/gnosis.ts +4 -1
- package/chains/definitions/gnosisChiado.ts +10 -1
- package/chains/definitions/kava.ts +26 -0
- package/chains/definitions/kavaTestnet.ts +29 -0
- package/chains/definitions/neonDevnet.ts +1 -1
- package/chains/definitions/neonMainnet.ts +24 -0
- package/chains/definitions/scrollSepolia.ts +0 -1
- package/chains/definitions/tenet.ts +20 -0
- package/chains/index.ts +5 -0
- package/chains/zksync/formatters.ts +6 -2
- package/chains/zksync/types.ts +7 -7
- package/errors/contract.ts +1 -1
- package/errors/encoding.ts +0 -43
- package/errors/estimateGas.ts +1 -1
- package/errors/transaction.ts +1 -1
- package/errors/version.ts +1 -1
- package/index.ts +0 -26
- package/package.json +2 -1
- package/types/contract.ts +4 -20
- package/utils/hash/getFunctionSignature.ts +11 -21
- package/utils/hash/normalizeSignature.ts +64 -0
- package/utils/index.ts +0 -15
- package/utils/transaction/serializeTransaction.ts +17 -4
- package/_cjs/utils/contract/extractFunctionParts.js +0 -31
- package/_cjs/utils/contract/extractFunctionParts.js.map +0 -1
- package/_esm/utils/contract/extractFunctionParts.js +0 -24
- package/_esm/utils/contract/extractFunctionParts.js.map +0 -1
- package/_types/utils/contract/extractFunctionParts.d.ts +0 -18
- package/_types/utils/contract/extractFunctionParts.d.ts.map +0 -1
- package/utils/contract/extractFunctionParts.ts +0 -37
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,67 @@
|
|
1
1
|
# viem
|
2
2
|
|
3
|
+
## 1.18.9
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1464](https://github.com/wagmi-dev/viem/pull/1464) [`32098af0`](https://github.com/wagmi-dev/viem/commit/32098af0378c47a4032155f8947f88f9990cd25d) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where `getFunctionSignature`/`getFunctionSelector` would not parse nested tuples in string-based signatures.
|
8
|
+
|
9
|
+
## 1.18.8
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [`46213902`](https://github.com/wagmi-dev/viem/commit/462139026e4e36dd98e4c1da5ff7669f7ffb98ee) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where `chain.nativeCurrency` could be undefined.
|
14
|
+
|
15
|
+
## 1.18.7
|
16
|
+
|
17
|
+
### Patch Changes
|
18
|
+
|
19
|
+
- [`95991301`](https://github.com/wagmi-dev/viem/commit/95991301c9eb4a3f2a1bcff8ab36d95ff964e13c) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `watchContractEvent` fallback was not scoping events to the provided `eventName`.
|
20
|
+
|
21
|
+
- [#1453](https://github.com/wagmi-dev/viem/pull/1453) [`e40006aa`](https://github.com/wagmi-dev/viem/commit/e40006aad1941d9c77dfd68b07f1acb99f7c8883) Thanks [@0xRaghu](https://github.com/0xRaghu)! - Added Kava Testnet chain.
|
22
|
+
|
23
|
+
## 1.18.6
|
24
|
+
|
25
|
+
### Patch Changes
|
26
|
+
|
27
|
+
- [#1448](https://github.com/wagmi-dev/viem/pull/1448) [`c2fab4a7`](https://github.com/wagmi-dev/viem/commit/c2fab4a78878d46c6aad403f1ad54677632542eb) Thanks [@jxom](https://github.com/jxom)! - Fixed zkSync formatters.
|
28
|
+
|
29
|
+
- [#1434](https://github.com/wagmi-dev/viem/pull/1434) [`c0da695a`](https://github.com/wagmi-dev/viem/commit/c0da695a76225c7f24ca263f9109e34d8cd93dba) Thanks [@nicolasbrugneaux](https://github.com/nicolasbrugneaux)! - Fixed an issue where Celo CIP64 transactions were being recognized as EIP1559 transactions.
|
30
|
+
|
31
|
+
## 1.18.5
|
32
|
+
|
33
|
+
### Patch Changes
|
34
|
+
|
35
|
+
- [#1438](https://github.com/wagmi-dev/viem/pull/1438) [`8e52fcb8`](https://github.com/wagmi-dev/viem/commit/8e52fcb8565a9fadce4da31e924894881804f9d2) Thanks [@jxom](https://github.com/jxom)! - Fixed legacy EIP-155 transaction serializing.
|
36
|
+
|
37
|
+
## 1.18.4
|
38
|
+
|
39
|
+
### Patch Changes
|
40
|
+
|
41
|
+
- [#1423](https://github.com/wagmi-dev/viem/pull/1423) [`c164bfc6`](https://github.com/wagmi-dev/viem/commit/c164bfc6b8beb4243fbe9d222bd03de2814637b2) Thanks [@CJskii](https://github.com/CJskii)! - Updated Klaytn RPC URL.
|
42
|
+
|
43
|
+
- [#1423](https://github.com/wagmi-dev/viem/pull/1423) [`c164bfc6`](https://github.com/wagmi-dev/viem/commit/c164bfc6b8beb4243fbe9d222bd03de2814637b2) Thanks [@CJskii](https://github.com/CJskii)! - Added Astar chain
|
44
|
+
|
45
|
+
- [#1435](https://github.com/wagmi-dev/viem/pull/1435) [`08e6a68f`](https://github.com/wagmi-dev/viem/commit/08e6a68f25736c6517b4f5d567a8ff9b3b59bc11) Thanks [@tmm](https://github.com/tmm)! - Fixed protected action types
|
46
|
+
|
47
|
+
- [#1432](https://github.com/wagmi-dev/viem/pull/1432) [`33631fb2`](https://github.com/wagmi-dev/viem/commit/33631fb2ac281d5804a596c6390b10403cbcfa72) Thanks [@pcdotfan](https://github.com/pcdotfan)! - Removed Scroll Sepolia WebSocket URLs.
|
48
|
+
|
49
|
+
- [#1423](https://github.com/wagmi-dev/viem/pull/1423) [`c164bfc6`](https://github.com/wagmi-dev/viem/commit/c164bfc6b8beb4243fbe9d222bd03de2814637b2) Thanks [@CJskii](https://github.com/CJskii)! - Added Tenet chain
|
50
|
+
|
51
|
+
- [#1423](https://github.com/wagmi-dev/viem/pull/1423) [`c164bfc6`](https://github.com/wagmi-dev/viem/commit/c164bfc6b8beb4243fbe9d222bd03de2814637b2) Thanks [@CJskii](https://github.com/CJskii)! - Add Kava chain
|
52
|
+
|
53
|
+
- [#1423](https://github.com/wagmi-dev/viem/pull/1423) [`c164bfc6`](https://github.com/wagmi-dev/viem/commit/c164bfc6b8beb4243fbe9d222bd03de2814637b2) Thanks [@CJskii](https://github.com/CJskii)! - Added Core Dao chain
|
54
|
+
|
55
|
+
## 1.18.3
|
56
|
+
|
57
|
+
### Patch Changes
|
58
|
+
|
59
|
+
- [#1424](https://github.com/wagmi-dev/viem/pull/1424) [`a0052303`](https://github.com/wagmi-dev/viem/commit/a0052303f4b6892fac55c2035fe5675890e4d5bf) Thanks [@filoozom](https://github.com/filoozom)! - Added WebSocket RPCs for Gnosis Chain and Chiado
|
60
|
+
|
61
|
+
- [#1431](https://github.com/wagmi-dev/viem/pull/1431) [`2244017d`](https://github.com/wagmi-dev/viem/commit/2244017d7603f2253b4faaf6c543c8c7a04f7595) Thanks [@filoozom](https://github.com/filoozom)! - Added the multicall address for Chiado
|
62
|
+
|
63
|
+
- [#1426](https://github.com/wagmi-dev/viem/pull/1426) [`c81141a5`](https://github.com/wagmi-dev/viem/commit/c81141a5402d9114856c6a706782085905dbfb13) Thanks [@mnedelchev-vn](https://github.com/mnedelchev-vn)! - Added Neon Mainnet chain.
|
64
|
+
|
3
65
|
## 1.18.2
|
4
66
|
|
5
67
|
### Patch Changes
|
package/README.md
CHANGED
@@ -79,6 +79,10 @@ const client = createPublicClient({
|
|
79
79
|
const blockNumber = await client.getBlockNumber();
|
80
80
|
```
|
81
81
|
|
82
|
+
## Documentation
|
83
|
+
|
84
|
+
[Head to the documentation](https://viem.sh/docs/getting-started.html) to read and learn more about viem.
|
85
|
+
|
82
86
|
## Community
|
83
87
|
|
84
88
|
Check out the following places for more viem-related content:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;;AAAA,2DAK+B;AAD7B,iHAAA,aAAa,OAAA;AAEf,yDAK8B;AAD5B,+GAAA,YAAY,OAAA;AAEd,qDAK4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,6DAKgC;AAD9B,mHAAA,cAAc,OAAA;AAEhB,qDAK4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,4CAKyB;AADvB,+FAAA,IAAI,OAAA;AAEN,sEAIsC;AADpC,yHAAA,iBAAiB,OAAA;AAEnB,sFAK8C;AAD5C,yIAAA,yBAAyB,OAAA;AAE3B,sEAKsC;AADpC,yHAAA,iBAAiB,OAAA;AAEnB,gGAImD;AADjD,mJAAA,8BAA8B,OAAA;AAEhC,0EAKwC;AADtC,6HAAA,mBAAmB,OAAA;AAErB,wEAKuC;AADrC,2HAAA,kBAAkB,OAAA;AAEpB,4FAKiD;AAD/C,+IAAA,4BAA4B,OAAA;AAE9B,0DAKgC;AAD9B,6GAAA,WAAW,OAAA;AAEb,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,oDAK6B;AAD3B,uGAAA,QAAQ,OAAA;AAEV,gEAKmC;AADjC,mHAAA,cAAc,OAAA;AAEhB,oFAK6C;AAD3C,uIAAA,wBAAwB,OAAA;AAE1B,0DAKgC;AAD9B,6GAAA,WAAW,OAAA;AAEb,wDAI+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,8DAKkC;AADhC,iHAAA,aAAa,OAAA;AAEf,oEAKqC;AADnC,uHAAA,gBAAgB,OAAA;AAElB,8DAKkC;AADhC,iHAAA,aAAa,OAAA;AAEf,0DAIgC;AAD9B,6GAAA,WAAW,OAAA;AAEb,kDAK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AA;AAEjB,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,8DAKkC;AADhC,iHAAA,aAAa,OAAA;AAEf,kEAKoC;AADlC,qHAAA,eAAe,OAAA;AAEjB,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,wEAKuC;AADrC,2HAAA,kBAAkB,OAAA;AAEpB,8DAKkC;AADhC,iHAAA,aAAa,OAAA"}
|
@@ -7,10 +7,10 @@ function getBlockNumberCache(id) {
|
|
7
7
|
return (0, withCache_js_1.getCache)(cacheKey(id));
|
8
8
|
}
|
9
9
|
exports.getBlockNumberCache = getBlockNumberCache;
|
10
|
-
async function getBlockNumber(client, { cacheTime = client.cacheTime
|
10
|
+
async function getBlockNumber(client, { cacheTime = client.cacheTime } = {}) {
|
11
11
|
const blockNumberHex = await (0, withCache_js_1.withCache)(() => client.request({
|
12
12
|
method: 'eth_blockNumber',
|
13
|
-
}), { cacheKey: cacheKey(client.uid), cacheTime
|
13
|
+
}), { cacheKey: cacheKey(client.uid), cacheTime });
|
14
14
|
return BigInt(blockNumberHex);
|
15
15
|
}
|
16
16
|
exports.getBlockNumber = getBlockNumber;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getBlockNumber.js","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":";;;AAKA,mEAAsE;
|
1
|
+
{"version":3,"file":"getBlockNumber.js","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":";;;AAKA,mEAAsE;AAWtE,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,eAAe,EAAE,EAAE,CAAA;AAEpD,SAAgB,mBAAmB,CAAC,EAAU;IAC5C,OAAO,IAAA,uBAAQ,EAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAA;AAC/B,CAAC;AAFD,kDAEC;AAyBM,KAAK,UAAU,cAAc,CAClC,MAAiC,EACjC,EAAE,SAAS,GAAG,MAAM,CAAC,SAAS,KAA+B,EAAE;IAE/D,MAAM,cAAc,GAAG,MAAM,IAAA,wBAAS,EACpC,GAAG,EAAE,CACH,MAAM,CAAC,OAAO,CAAC;QACb,MAAM,EAAE,iBAAiB;KAC1B,CAAC,EACJ,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,CAC9C,CAAA;IACD,OAAO,MAAM,CAAC,cAAc,CAAC,CAAA;AAC/B,CAAC;AAZD,wCAYC"}
|
@@ -59,7 +59,8 @@ function watchContractEvent(client, parameters) {
|
|
59
59
|
logs = await (0, getAction_js_1.getAction)(client, getContractEvents_js_1.getContractEvents)({
|
60
60
|
abi,
|
61
61
|
address,
|
62
|
-
args
|
62
|
+
args,
|
63
|
+
eventName,
|
63
64
|
fromBlock: previousBlockNumber + 1n,
|
64
65
|
toBlock: blockNumber,
|
65
66
|
strict,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"watchContractEvent.js","sourceRoot":"","sources":["../../../actions/public/watchContractEvent.ts"],"names":[],"mappings":";;;AAQA,gDAG4B;AAC5B,gDAA0D;AAQ1D,yEAAkE;AAClE,+EAG6C;AAC7C,0DAAyD;AACzD,2DAAoD;AACpD,uDAAuE;AACvE,iDAA0C;AAC1C,2DAA6E;AAC7E,iFAA0E;AAC1E,2DAAoD;AACpD,iEAG+B;AAC/B,+DAAwD;AACxD,6DAAsD;AA4FtD,SAAgB,kBAAkB,CAOhC,MAAgC,EAChC,UAA2E;IAE3E,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,KAAK,GAAG,IAAI,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EAAE,KAAK,EACX,eAAe,GAAG,MAAM,CAAC,eAAe,EACxC,MAAM,EAAE,OAAO,GAChB,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GACjB,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,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,IAAA,wBAAS,EACpB,MAAM,EACN,wCAAiB,CAClB,CAAC;gCACA,GAAG;gCACH,OAAO;gCACP,IAAI,
|
1
|
+
{"version":3,"file":"watchContractEvent.js","sourceRoot":"","sources":["../../../actions/public/watchContractEvent.ts"],"names":[],"mappings":";;;AAQA,gDAG4B;AAC5B,gDAA0D;AAQ1D,yEAAkE;AAClE,+EAG6C;AAC7C,0DAAyD;AACzD,2DAAoD;AACpD,uDAAuE;AACvE,iDAA0C;AAC1C,2DAA6E;AAC7E,iFAA0E;AAC1E,2DAAoD;AACpD,iEAG+B;AAC/B,+DAAwD;AACxD,6DAAsD;AA4FtD,SAAgB,kBAAkB,CAOhC,MAAgC,EAChC,UAA2E;IAE3E,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,KAAK,GAAG,IAAI,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EAAE,KAAK,EACX,eAAe,GAAG,MAAM,CAAC,eAAe,EACxC,MAAM,EAAE,OAAO,GAChB,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GACjB,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,WAAW,CAAA;IAE9E,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC7B,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC;YAC3B,oBAAoB;YACpB,OAAO;YACP,IAAI;YACJ,KAAK;YACL,MAAM,CAAC,GAAG;YACV,SAAS;YACT,eAAe;SAChB,CAAC,CAAA;QACF,MAAM,MAAM,GAAG,OAAO,IAAI,KAAK,CAAA;QAE/B,OAAO,IAAA,oBAAO,EAAC,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YACvD,IAAI,mBAA2B,CAAA;YAC/B,IAAI,MAAmD,CAAA;YACvD,IAAI,WAAW,GAAG,KAAK,CAAA;YAE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CAAC,CAAA;aACxB;QACH,CAAC,CAAC,EAAE,CAAA;QACJ,OAAO,WAAW,CAAA;IACpB,CAAC,CAAA;IAED,OAAO,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,sBAAsB,EAAE,CAAA;AACvE,CAAC;AA1LD,gDA0LC"}
|
@@ -7,22 +7,7 @@ const block_js_1 = require("../../utils/formatters/block.js");
|
|
7
7
|
const transaction_js_1 = require("../../utils/formatters/transaction.js");
|
8
8
|
const transactionReceipt_js_1 = require("../../utils/formatters/transactionReceipt.js");
|
9
9
|
const transactionRequest_js_1 = require("../../utils/formatters/transactionRequest.js");
|
10
|
-
|
11
|
-
if (args.type === 'cip64')
|
12
|
-
return true;
|
13
|
-
if (args.type)
|
14
|
-
return false;
|
15
|
-
return ('feeCurrency' in args &&
|
16
|
-
args.gatewayFee === undefined &&
|
17
|
-
args.gatewayFeeRecipient === undefined);
|
18
|
-
}
|
19
|
-
function isTransactionRequestCIP42(args) {
|
20
|
-
if (args.type === 'cip42')
|
21
|
-
return true;
|
22
|
-
if (args.type)
|
23
|
-
return false;
|
24
|
-
return args.gatewayFee !== undefined || args.gatewayFeeRecipient !== undefined;
|
25
|
-
}
|
10
|
+
const utils_js_1 = require("./utils.js");
|
26
11
|
exports.formattersCelo = {
|
27
12
|
block: (0, block_js_1.defineBlock)({
|
28
13
|
exclude: ['difficulty', 'gasLimit', 'mixHash', 'nonce', 'uncles'],
|
@@ -51,15 +36,18 @@ exports.formattersCelo = {
|
|
51
36
|
}),
|
52
37
|
transaction: (0, transaction_js_1.defineTransaction)({
|
53
38
|
format(args) {
|
39
|
+
const transaction = { feeCurrency: args.feeCurrency };
|
54
40
|
if (args.type === '0x7b')
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
41
|
+
transaction.type = 'cip64';
|
42
|
+
else {
|
43
|
+
if (args.type === '0x7c')
|
44
|
+
transaction.type = 'cip42';
|
45
|
+
transaction.gatewayFee = args.gatewayFee
|
46
|
+
? (0, fromHex_js_1.hexToBigInt)(args.gatewayFee)
|
47
|
+
: null;
|
48
|
+
transaction.gatewayFeeRecipient = args.gatewayFeeRecipient;
|
49
|
+
}
|
50
|
+
return transaction;
|
63
51
|
},
|
64
52
|
}),
|
65
53
|
transactionReceipt: (0, transactionReceipt_js_1.defineTransactionReceipt)({
|
@@ -73,20 +61,20 @@ exports.formattersCelo = {
|
|
73
61
|
}),
|
74
62
|
transactionRequest: (0, transactionRequest_js_1.defineTransactionRequest)({
|
75
63
|
format(args) {
|
76
|
-
if (isTransactionRequestCIP64(args))
|
77
|
-
return {
|
78
|
-
type: '0x7b',
|
79
|
-
feeCurrency: args.feeCurrency,
|
80
|
-
};
|
81
64
|
const request = {
|
82
65
|
feeCurrency: args.feeCurrency,
|
83
|
-
gatewayFee: typeof args.gatewayFee !== 'undefined'
|
84
|
-
? (0, toHex_js_1.numberToHex)(args.gatewayFee)
|
85
|
-
: undefined,
|
86
|
-
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
87
66
|
};
|
88
|
-
if (
|
89
|
-
request.type = '
|
67
|
+
if ((0, utils_js_1.isCIP64)(args))
|
68
|
+
request.type = '0x7b';
|
69
|
+
else {
|
70
|
+
if ((0, utils_js_1.isCIP42)(args))
|
71
|
+
request.type = '0x7c';
|
72
|
+
request.gatewayFee =
|
73
|
+
typeof args.gatewayFee !== 'undefined'
|
74
|
+
? (0, toHex_js_1.numberToHex)(args.gatewayFee)
|
75
|
+
: undefined;
|
76
|
+
request.gatewayFeeRecipient = args.gatewayFeeRecipient;
|
77
|
+
}
|
90
78
|
return request;
|
91
79
|
},
|
92
80
|
}),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../chains/celo/formatters.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAC7D,4DAA2D;AAC3D,8DAA6D;AAC7D,0EAG8C;AAC9C,wFAAu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BAAmB,CAAA;aACvD;YAED,OAAO,OAAO,CAAA;QAChB,CAAC;KACF,CAAC;CACgC,CAAA"}
|
@@ -12,11 +12,12 @@ const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
|
12
12
|
const toRlp_js_1 = require("../../utils/encoding/toRlp.js");
|
13
13
|
const serializeAccessList_js_1 = require("../../utils/transaction/serializeAccessList.js");
|
14
14
|
const serializeTransaction_js_1 = require("../../utils/transaction/serializeTransaction.js");
|
15
|
+
const utils_js_1 = require("./utils.js");
|
15
16
|
const serializeTransactionCelo = (tx, signature) => {
|
16
|
-
if (isCIP64(tx)) {
|
17
|
+
if ((0, utils_js_1.isCIP64)(tx)) {
|
17
18
|
return serializeTransactionCIP64(tx, signature);
|
18
19
|
}
|
19
|
-
else if (isCIP42(tx)) {
|
20
|
+
else if ((0, utils_js_1.isCIP42)(tx)) {
|
20
21
|
return serializeTransactionCIP42(tx, signature);
|
21
22
|
}
|
22
23
|
else {
|
@@ -65,7 +66,7 @@ function serializeTransactionCIP64(transaction, signature) {
|
|
65
66
|
value ? (0, toHex_js_1.toHex)(value) : '0x',
|
66
67
|
data ?? '0x',
|
67
68
|
(0, serializeAccessList_js_1.serializeAccessList)(accessList),
|
68
|
-
feeCurrency
|
69
|
+
feeCurrency,
|
69
70
|
];
|
70
71
|
if (signature) {
|
71
72
|
serializedTransaction.push(signature.v === 27n ? '0x' : (0, toHex_js_1.toHex)(1), (0, trim_js_1.trim)(signature.r), (0, trim_js_1.trim)(signature.s));
|
@@ -75,29 +76,7 @@ function serializeTransactionCIP64(transaction, signature) {
|
|
75
76
|
(0, toRlp_js_1.toRlp)(serializedTransaction),
|
76
77
|
]);
|
77
78
|
}
|
78
|
-
|
79
|
-
if (transaction.type === 'cip42')
|
80
|
-
return true;
|
81
|
-
if (transaction.type)
|
82
|
-
return false;
|
83
|
-
return ('maxFeePerGas' in transaction &&
|
84
|
-
'maxPriorityFeePerGas' in transaction &&
|
85
|
-
('feeCurrency' in transaction ||
|
86
|
-
'gatewayFee' in transaction ||
|
87
|
-
'gatewayFeeRecipient' in transaction));
|
88
|
-
}
|
89
|
-
function isCIP64(transaction) {
|
90
|
-
if (transaction.type === 'cip64')
|
91
|
-
return true;
|
92
|
-
if (transaction.type)
|
93
|
-
return false;
|
94
|
-
return ('maxFeePerGas' in transaction &&
|
95
|
-
'maxPriorityFeePerGas' in transaction &&
|
96
|
-
'feeCurrency' in transaction &&
|
97
|
-
!('gatewayFee' in transaction) &&
|
98
|
-
!('gatewayFeeRecipient' in transaction));
|
99
|
-
}
|
100
|
-
const MAX_MAX_FEE_PER_GAS = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
|
79
|
+
const MAX_MAX_FEE_PER_GAS = 2n ** 256n - 1n;
|
101
80
|
function assertTransactionCIP42(transaction) {
|
102
81
|
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to, feeCurrency, gatewayFee, gatewayFeeRecipient, } = transaction;
|
103
82
|
if (chainId <= 0)
|
@@ -106,20 +85,23 @@ function assertTransactionCIP42(transaction) {
|
|
106
85
|
throw new address_js_1.InvalidAddressError({ address: to });
|
107
86
|
if (gasPrice)
|
108
87
|
throw new base_js_1.BaseError('`gasPrice` is not a valid CIP-42 Transaction attribute.');
|
109
|
-
if (maxFeePerGas && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
88
|
+
if ((0, utils_js_1.isPresent)(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
110
89
|
throw new node_js_1.FeeCapTooHighError({ maxFeePerGas });
|
111
|
-
if (maxPriorityFeePerGas &&
|
112
|
-
maxFeePerGas &&
|
90
|
+
if ((0, utils_js_1.isPresent)(maxPriorityFeePerGas) &&
|
91
|
+
(0, utils_js_1.isPresent)(maxFeePerGas) &&
|
113
92
|
maxPriorityFeePerGas > maxFeePerGas)
|
114
93
|
throw new node_js_1.TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
115
|
-
if ((gatewayFee &&
|
116
|
-
(gatewayFeeRecipient &&
|
94
|
+
if (((0, utils_js_1.isPresent)(gatewayFee) && (0, utils_js_1.isEmpty)(gatewayFeeRecipient)) ||
|
95
|
+
((0, utils_js_1.isPresent)(gatewayFeeRecipient) && (0, utils_js_1.isEmpty)(gatewayFee))) {
|
117
96
|
throw new base_js_1.BaseError('`gatewayFee` and `gatewayFeeRecipient` must be provided together.');
|
118
97
|
}
|
119
|
-
if (feeCurrency && !
|
98
|
+
if ((0, utils_js_1.isPresent)(feeCurrency) && !(0, isAddress_js_1.isAddress)(feeCurrency)) {
|
120
99
|
throw new base_js_1.BaseError('`feeCurrency` MUST be a token address for CIP-42 transactions.');
|
121
100
|
}
|
122
|
-
if (
|
101
|
+
if ((0, utils_js_1.isPresent)(gatewayFeeRecipient) && !(0, isAddress_js_1.isAddress)(gatewayFeeRecipient)) {
|
102
|
+
throw new address_js_1.InvalidAddressError(gatewayFeeRecipient);
|
103
|
+
}
|
104
|
+
if ((0, utils_js_1.isEmpty)(feeCurrency) && (0, utils_js_1.isEmpty)(gatewayFeeRecipient)) {
|
123
105
|
throw new base_js_1.BaseError('Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.');
|
124
106
|
}
|
125
107
|
}
|
@@ -132,16 +114,16 @@ function assertTransactionCIP64(transaction) {
|
|
132
114
|
throw new address_js_1.InvalidAddressError({ address: to });
|
133
115
|
if (gasPrice)
|
134
116
|
throw new base_js_1.BaseError('`gasPrice` is not a valid CIP-64 Transaction attribute.');
|
135
|
-
if (maxFeePerGas && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
117
|
+
if ((0, utils_js_1.isPresent)(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
136
118
|
throw new node_js_1.FeeCapTooHighError({ maxFeePerGas });
|
137
|
-
if (maxPriorityFeePerGas &&
|
138
|
-
maxFeePerGas &&
|
119
|
+
if ((0, utils_js_1.isPresent)(maxPriorityFeePerGas) &&
|
120
|
+
(0, utils_js_1.isPresent)(maxFeePerGas) &&
|
139
121
|
maxPriorityFeePerGas > maxFeePerGas)
|
140
122
|
throw new node_js_1.TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
141
|
-
if (feeCurrency && !feeCurrency?.startsWith('0x')) {
|
123
|
+
if ((0, utils_js_1.isPresent)(feeCurrency) && !feeCurrency?.startsWith('0x')) {
|
142
124
|
throw new base_js_1.BaseError('`feeCurrency` MUST be a token address for CIP-64 transactions.');
|
143
125
|
}
|
144
|
-
if (
|
126
|
+
if ((0, utils_js_1.isEmpty)(feeCurrency)) {
|
145
127
|
throw new base_js_1.BaseError('`feeCurrency` must be provided for CIP-64 transactions.');
|
146
128
|
}
|
147
129
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../../chains/celo/serializers.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,kDAAgD;AAChD,oDAA2D;AAC3D,kDAA8E;AAI9E,mEAA4D;AAC5D,0DAAsD;AACtD,sDAA+C;AAC/C,4DAAqD;AACrD,4DAAqD;AACrD,2FAAoF;AACpF,6FAGwD;
|
1
|
+
{"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../../chains/celo/serializers.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,kDAAgD;AAChD,oDAA2D;AAC3D,kDAA8E;AAI9E,mEAA4D;AAC5D,0DAAsD;AACtD,sDAA+C;AAC/C,4DAAqD;AACrD,4DAAqD;AACrD,2FAAoF;AACpF,6FAGwD;AAQxD,yCAAiE;AAE1D,MAAM,wBAAwB,GAEjC,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE;IACpB,IAAI,IAAA,kBAAO,EAAC,EAAE,CAAC,EAAE;QACf,OAAO,yBAAyB,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;KAChD;SAAM,IAAI,IAAA,kBAAO,EAAC,EAAE,CAAC,EAAE;QACtB,OAAO,yBAAyB,CAAC,EA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BAAkB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;IAChD,IACE,IAAA,oBAAS,EAAC,oBAAoB,CAAC;QAC/B,IAAA,oBAAS,EAAC,YAAY,CAAC;QACvB,oBAAoB,GAAG,YAAY;QAEnC,MAAM,IAAI,6BAAmB,CAAC,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAA;IAEvE,IAAI,IAAA,oBAAS,EAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE;QAC5D,MAAM,IAAI,mBAAS,CACjB,gEAAgE,CACjE,CAAA;KACF;IAED,IAAI,IAAA,kBAAO,EAAC,WAAW,CAAC,EAAE;QACxB,MAAM,IAAI,mBAAS,CACjB,yDAAyD,CAC1D,CAAA;KACF;AACH,CAAC;AAxCD,wDAwCC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isCIP64 = exports.isCIP42 = exports.isEIP1559 = exports.isPresent = exports.isEmpty = void 0;
|
4
|
+
const trim_js_1 = require("../../utils/data/trim.js");
|
5
|
+
function isEmpty(value) {
|
6
|
+
return (value === 0 ||
|
7
|
+
value === 0n ||
|
8
|
+
value === undefined ||
|
9
|
+
value === null ||
|
10
|
+
value === '0' ||
|
11
|
+
value === '' ||
|
12
|
+
(typeof value === 'string' &&
|
13
|
+
((0, trim_js_1.trim)(value).toLowerCase() === '0x' ||
|
14
|
+
(0, trim_js_1.trim)(value).toLowerCase() === '0x00')));
|
15
|
+
}
|
16
|
+
exports.isEmpty = isEmpty;
|
17
|
+
function isPresent(value) {
|
18
|
+
return !isEmpty(value);
|
19
|
+
}
|
20
|
+
exports.isPresent = isPresent;
|
21
|
+
function isEIP1559(transaction) {
|
22
|
+
return (isPresent(transaction.maxFeePerGas) &&
|
23
|
+
isPresent(transaction.maxPriorityFeePerGas));
|
24
|
+
}
|
25
|
+
exports.isEIP1559 = isEIP1559;
|
26
|
+
function isCIP42(transaction) {
|
27
|
+
if (transaction.type)
|
28
|
+
return transaction.type === 'cip42';
|
29
|
+
return (isEIP1559(transaction) &&
|
30
|
+
(isPresent(transaction.feeCurrency) ||
|
31
|
+
isPresent(transaction.gatewayFeeRecipient) ||
|
32
|
+
isPresent(transaction.gatewayFee)));
|
33
|
+
}
|
34
|
+
exports.isCIP42 = isCIP42;
|
35
|
+
function isCIP64(transaction) {
|
36
|
+
if (transaction.type)
|
37
|
+
return transaction.type === 'cip64';
|
38
|
+
return (isEIP1559(transaction) &&
|
39
|
+
isPresent(transaction.feeCurrency) &&
|
40
|
+
isEmpty(transaction.gatewayFee) &&
|
41
|
+
isEmpty(transaction.gatewayFeeRecipient));
|
42
|
+
}
|
43
|
+
exports.isCIP64 = isCIP64;
|
44
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../chains/celo/utils.ts"],"names":[],"mappings":";;;AACA,sDAA+C;AAQ/C,SAAgB,OAAO,CACrB,KAA2C;IAE3C,OAAO,CACL,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,EAAE;QACZ,KAAK,KAAK,SAAS;QACnB,KAAK,KAAK,IAAI;QACd,KAAK,KAAK,GAAG;QACb,KAAK,KAAK,EAAE;QACZ,CAAC,OAAO,KAAK,KAAK,QAAQ;YACxB,CAAC,IAAA,cAAI,EAAC,KAAgB,CAAC,CAAC,WAAW,EAAE,KAAK,IAAI;gBAC5C,IAAA,cAAI,EAAC,KAAgB,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC,CACtD,CAAA;AACH,CAAC;AAdD,0BAcC;AAED,SAAgB,SAAS,CACvB,KAA2C;IAE3C,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AACxB,CAAC;AAJD,8BAIC;AAED,SAAgB,SAAS,CACvB,WAAiE;IAEjE,OAAO,CACL,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC;QACnC,SAAS,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAC5C,CAAA;AACH,CAAC;AAPD,8BAOC;AAGD,SAAgB,OAAO,CACrB,WAAiE;IAGjE,IAAI,WAAW,CAAC,IAAI;QAAE,OAAO,WAAW,CAAC,IAAI,KAAK,OAAO,CAAA;IAEzD,OAAO,CACL,SAAS,CAAC,WAAW,CAAC;QACtB,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC;YACjC,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC;YAC1C,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CACrC,CAAA;AACH,CAAC;AAZD,0BAYC;AAED,SAAgB,OAAO,CACrB,WAAiE;IAGjE,IAAI,WAAW,CAAC,IAAI;QAAE,OAAO,WAAW,CAAC,IAAI,KAAK,OAAO,CAAA;IAEzD,OAAO,CACL,SAAS,CAAC,WAAW,CAAC;QACtB,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC;QAClC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;QAC/B,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CACzC,CAAA;AACH,CAAC;AAZD,0BAYC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.astar = void 0;
|
4
|
+
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
+
exports.astar = (0, defineChain_js_1.defineChain)({
|
6
|
+
id: 592,
|
7
|
+
name: 'Astar',
|
8
|
+
network: 'astar-mainnet',
|
9
|
+
nativeCurrency: {
|
10
|
+
name: 'Astar',
|
11
|
+
symbol: 'ASTR',
|
12
|
+
decimals: 18,
|
13
|
+
},
|
14
|
+
rpcUrls: {
|
15
|
+
public: { http: ['https://astar.api.onfinality.io/public'] },
|
16
|
+
default: { http: ['https://astar.api.onfinality.io/public'] },
|
17
|
+
},
|
18
|
+
blockExplorers: {
|
19
|
+
default: { name: 'Astar Subscan', url: 'https://astar.subscan.io' },
|
20
|
+
},
|
21
|
+
contracts: {
|
22
|
+
multicall3: {
|
23
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
24
|
+
blockCreated: 761794,
|
25
|
+
},
|
26
|
+
},
|
27
|
+
testnet: false,
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=astar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"astar.js","sourceRoot":"","sources":["../../../chains/definitions/astar.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAAC;IAC7C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,eAAe;IACxB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,wCAAwC,CAAC,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,wCAAwC,CAAC,EAAE;KAC9D;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,0BAA0B,EAAE;KACpE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,MAAM;SACrB;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
|
@@ -11,7 +11,10 @@ exports.gnosis = (0, defineChain_js_1.defineChain)({
|
|
11
11
|
symbol: 'xDAI',
|
12
12
|
},
|
13
13
|
rpcUrls: {
|
14
|
-
default: {
|
14
|
+
default: {
|
15
|
+
http: ['https://rpc.gnosischain.com'],
|
16
|
+
webSocket: ['wss://rpc.gnosischain.com/wss'],
|
17
|
+
},
|
15
18
|
},
|
16
19
|
blockExplorers: {
|
17
20
|
default: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gnosis.js","sourceRoot":"","sources":["../../../chains/definitions/gnosis.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,MAAM,GAAiB,IAAA,4BAAW,EAAC;IAC9C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"gnosis.js","sourceRoot":"","sources":["../../../chains/definitions/gnosis.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,MAAM,GAAiB,IAAA,4BAAW,EAAC;IAC9C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,6BAA6B,CAAC;YACrC,SAAS,EAAE,CAAC,+BAA+B,CAAC;SAC7C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,uBAAuB;YAC7B,GAAG,EAAE,qCAAqC;SAC3C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC,CAAA"}
|
@@ -11,7 +11,10 @@ exports.gnosisChiado = (0, defineChain_js_1.defineChain)({
|
|
11
11
|
symbol: 'xDAI',
|
12
12
|
},
|
13
13
|
rpcUrls: {
|
14
|
-
default: {
|
14
|
+
default: {
|
15
|
+
http: ['https://rpc.chiadochain.net'],
|
16
|
+
webSocket: ['wss://rpc.chiadochain.net/wss'],
|
17
|
+
},
|
15
18
|
},
|
16
19
|
blockExplorers: {
|
17
20
|
default: {
|
@@ -19,6 +22,12 @@ exports.gnosisChiado = (0, defineChain_js_1.defineChain)({
|
|
19
22
|
url: 'https://blockscout.chiadochain.net',
|
20
23
|
},
|
21
24
|
},
|
25
|
+
contracts: {
|
26
|
+
multicall3: {
|
27
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
28
|
+
blockCreated: 4967313,
|
29
|
+
},
|
30
|
+
},
|
22
31
|
testnet: true,
|
23
32
|
});
|
24
33
|
//# sourceMappingURL=gnosisChiado.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gnosisChiado.js","sourceRoot":"","sources":["../../../chains/definitions/gnosisChiado.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,YAAY,GAAiB,IAAA,4BAAW,EAAC;IACpD,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,eAAe;IACrB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"gnosisChiado.js","sourceRoot":"","sources":["../../../chains/definitions/gnosisChiado.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,YAAY,GAAiB,IAAA,4BAAW,EAAC;IACpD,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,eAAe;IACrB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,6BAA6B,CAAC;YACrC,SAAS,EAAE,CAAC,+BAA+B,CAAC;SAC7C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,oCAAoC;SAC1C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.kava = void 0;
|
4
|
+
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
+
exports.kava = (0, defineChain_js_1.defineChain)({
|
6
|
+
id: 2222,
|
7
|
+
name: 'Kava EVM',
|
8
|
+
network: 'kava-mainnet',
|
9
|
+
nativeCurrency: {
|
10
|
+
name: 'Kava',
|
11
|
+
symbol: 'KAVA',
|
12
|
+
decimals: 18,
|
13
|
+
},
|
14
|
+
rpcUrls: {
|
15
|
+
public: { http: ['https://evm.kava.io'] },
|
16
|
+
default: { http: ['https://evm.kava.io'] },
|
17
|
+
},
|
18
|
+
blockExplorers: {
|
19
|
+
default: { name: 'Kava EVM Explorer', url: 'https://kavascan.com' },
|
20
|
+
},
|
21
|
+
contracts: {
|
22
|
+
multicall3: {
|
23
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
24
|
+
blockCreated: 3661165,
|
25
|
+
},
|
26
|
+
},
|
27
|
+
testnet: false,
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=kava.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"kava.js","sourceRoot":"","sources":["../../../chains/definitions/kava.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,IAAI,GAAiB,IAAA,4BAAW,EAAC;IAC5C,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,qBAAqB,CAAC,EAAE;QACzC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,qBAAqB,CAAC,EAAE;KAC3C;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,sBAAsB,EAAE;KACpE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.kavaTestnet = void 0;
|
4
|
+
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
+
exports.kavaTestnet = (0, defineChain_js_1.defineChain)({
|
6
|
+
id: 2221,
|
7
|
+
name: 'Kava EVM Testnet',
|
8
|
+
network: 'kava-testnet',
|
9
|
+
nativeCurrency: {
|
10
|
+
name: 'Kava',
|
11
|
+
symbol: 'KAVA',
|
12
|
+
decimals: 18,
|
13
|
+
},
|
14
|
+
rpcUrls: {
|
15
|
+
public: { http: ['https://evm.testnet.kava.io'] },
|
16
|
+
default: { http: ['https://evm.testnet.kava.io'] },
|
17
|
+
},
|
18
|
+
blockExplorers: {
|
19
|
+
default: {
|
20
|
+
name: 'Kava EVM Testnet Explorer',
|
21
|
+
url: 'https://testnet.kavascan.com/',
|
22
|
+
},
|
23
|
+
},
|
24
|
+
contracts: {
|
25
|
+
multicall3: {
|
26
|
+
address: '0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6',
|
27
|
+
blockCreated: 7242179,
|
28
|
+
},
|
29
|
+
},
|
30
|
+
testnet: true,
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=kavaTestnet.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"kavaTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/kavaTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,WAAW,GAAiB,IAAA,4BAAW,EAAC;IACnD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,6BAA6B,CAAC,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,6BAA6B,CAAC,EAAE;KACnD;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,2BAA2B;YACjC,GAAG,EAAE,+BAA+B;SACrC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"neonDevnet.js","sourceRoot":"","sources":["../../../chains/definitions/neonDevnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,EAAE,EAAE,SAAW;IACf,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,4BAA4B,CAAC;SACrC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"neonDevnet.js","sourceRoot":"","sources":["../../../chains/definitions/neonDevnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,EAAE,EAAE,SAAW;IACf,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,4BAA4B,CAAC;SACrC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,6BAA6B;SACnC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,SAAS;SACxB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|