@0xtorch/evm 0.0.129 → 0.0.131

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.
Files changed (64) hide show
  1. package/_cjs/chain/definitions/base.js +5 -0
  2. package/_cjs/chain/definitions/base.js.map +1 -1
  3. package/_cjs/chain/definitions/ethereum.js +5 -0
  4. package/_cjs/chain/definitions/ethereum.js.map +1 -1
  5. package/_cjs/chain/definitions/fantom.js +5 -0
  6. package/_cjs/chain/definitions/fantom.js.map +1 -1
  7. package/_cjs/chain/definitions/polygonZkEvm.js +5 -0
  8. package/_cjs/chain/definitions/polygonZkEvm.js.map +1 -1
  9. package/_cjs/chain/definitions/tcgVerse.js +1 -1
  10. package/_cjs/chain/definitions/tcgVerse.js.map +1 -1
  11. package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeLog.js +1 -4
  12. package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeLog.js.map +1 -1
  13. package/_esm/chain/definitions/base.js +5 -6
  14. package/_esm/chain/definitions/base.js.map +1 -1
  15. package/_esm/chain/definitions/ethereum.js +5 -6
  16. package/_esm/chain/definitions/ethereum.js.map +1 -1
  17. package/_esm/chain/definitions/fantom.js +5 -6
  18. package/_esm/chain/definitions/fantom.js.map +1 -1
  19. package/_esm/chain/definitions/polygonZkEvm.js +5 -6
  20. package/_esm/chain/definitions/polygonZkEvm.js.map +1 -1
  21. package/_esm/chain/definitions/tcgVerse.js +1 -1
  22. package/_esm/chain/definitions/tcgVerse.js.map +1 -1
  23. package/_esm/logic/analyzeTransaction/decodeTransaction/decodeLog.js +1 -4
  24. package/_esm/logic/analyzeTransaction/decodeTransaction/decodeLog.js.map +1 -1
  25. package/_types/chain/definitions/base.d.ts.map +1 -1
  26. package/_types/chain/definitions/ethereum.d.ts.map +1 -1
  27. package/_types/chain/definitions/fantom.d.ts.map +1 -1
  28. package/_types/chain/definitions/polygonZkEvm.d.ts.map +1 -1
  29. package/_types/chain/viemChains/chainVerse.d.ts +2 -0
  30. package/_types/chain/viemChains/chainVerse.d.ts.map +1 -1
  31. package/_types/chain/viemChains/defiVerse.d.ts +2 -0
  32. package/_types/chain/viemChains/defiVerse.d.ts.map +1 -1
  33. package/_types/chain/viemChains/geekVerse.d.ts +2 -0
  34. package/_types/chain/viemChains/geekVerse.d.ts.map +1 -1
  35. package/_types/chain/viemChains/gesoVerse.d.ts +2 -0
  36. package/_types/chain/viemChains/gesoVerse.d.ts.map +1 -1
  37. package/_types/chain/viemChains/homeVerse.d.ts +2 -0
  38. package/_types/chain/viemChains/homeVerse.d.ts.map +1 -1
  39. package/_types/chain/viemChains/mchVerse.d.ts +2 -0
  40. package/_types/chain/viemChains/mchVerse.d.ts.map +1 -1
  41. package/_types/chain/viemChains/saakuru.d.ts +2 -0
  42. package/_types/chain/viemChains/saakuru.d.ts.map +1 -1
  43. package/_types/chain/viemChains/soneium.d.ts +45 -44
  44. package/_types/chain/viemChains/soneium.d.ts.map +1 -1
  45. package/_types/chain/viemChains/sonic.d.ts +1 -0
  46. package/_types/chain/viemChains/sonic.d.ts.map +1 -1
  47. package/_types/chain/viemChains/tcgVerse.d.ts +2 -0
  48. package/_types/chain/viemChains/tcgVerse.d.ts.map +1 -1
  49. package/_types/logic/analyzeTransaction/createActions/json/schema.d.ts +45 -45
  50. package/_types/logic/analyzeTransaction/decodeTransaction/decodeLog.d.ts.map +1 -1
  51. package/_types/types/erc1155.d.ts +3 -3
  52. package/_types/types/erc20.d.ts +3 -3
  53. package/_types/types/erc721.d.ts +3 -3
  54. package/_types/types/internalTransaction.d.ts +3 -3
  55. package/_types/types/transactionDecoded.d.ts +12 -74
  56. package/_types/types/transactionDecoded.d.ts.map +1 -1
  57. package/_types/types/transactionIndex.d.ts +3 -3
  58. package/chain/definitions/base.ts +5 -6
  59. package/chain/definitions/ethereum.ts +5 -6
  60. package/chain/definitions/fantom.ts +5 -6
  61. package/chain/definitions/polygonZkEvm.ts +5 -6
  62. package/chain/definitions/tcgVerse.ts +1 -1
  63. package/logic/analyzeTransaction/decodeTransaction/decodeLog.ts +1 -4
  64. package/package.json +6 -6
@@ -25,7 +25,7 @@ export declare const internalTransactionSchema: z.ZodObject<{
25
25
  contractAddress?: string | undefined;
26
26
  }>;
27
27
  export type InternalTransaction = z.infer<typeof internalTransactionSchema>;
28
- export declare const internalTransactionWithIndexSchema: z.ZodObject<z.objectUtil.extendShape<{
28
+ export declare const internalTransactionWithIndexSchema: z.ZodObject<{
29
29
  contractAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
30
30
  from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
31
31
  gas: z.ZodEffects<z.ZodString, bigint, string>;
@@ -33,10 +33,10 @@ export declare const internalTransactionWithIndexSchema: z.ZodObject<z.objectUti
33
33
  to: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
34
34
  txHash: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
35
35
  value: z.ZodEffects<z.ZodString, bigint, string>;
36
- }, {
36
+ } & {
37
37
  blockNumber: z.ZodNumber;
38
38
  timestamp: z.ZodNumber;
39
- }>, "strip", z.ZodTypeAny, {
39
+ }, "strip", z.ZodTypeAny, {
40
40
  from: `0x${Lowercase<string>}`;
41
41
  value: bigint;
42
42
  gas: bigint;
@@ -33,72 +33,11 @@ declare const functionSchema: z.ZodObject<{
33
33
  interface: string;
34
34
  }>;
35
35
  export type TransactionFunction = z.infer<typeof functionSchema>;
36
- export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendShape<{
36
+ export declare const transactionDecodedSchema: z.ZodObject<{
37
37
  blockNumber: z.ZodNumber;
38
38
  chainId: z.ZodNumber;
39
39
  contractAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
40
40
  effectiveGasPrice: z.ZodEffects<z.ZodString, bigint, string>;
41
- erc20Transfers: z.ZodArray<z.ZodObject<{
42
- address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
43
- from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
44
- logIndex: z.ZodNumber;
45
- to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
46
- value: z.ZodEffects<z.ZodString, bigint, string>;
47
- }, "strip", z.ZodTypeAny, {
48
- address: `0x${Lowercase<string>}`;
49
- from: `0x${Lowercase<string>}`;
50
- to: `0x${Lowercase<string>}`;
51
- value: bigint;
52
- logIndex: number;
53
- }, {
54
- address: string;
55
- from: string;
56
- to: string;
57
- value: string;
58
- logIndex: number;
59
- }>, "many">;
60
- erc721Transfers: z.ZodArray<z.ZodObject<{
61
- address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
62
- from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
63
- logIndex: z.ZodNumber;
64
- to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
65
- tokenId: z.ZodEffects<z.ZodString, bigint, string>;
66
- }, "strip", z.ZodTypeAny, {
67
- address: `0x${Lowercase<string>}`;
68
- from: `0x${Lowercase<string>}`;
69
- to: `0x${Lowercase<string>}`;
70
- tokenId: bigint;
71
- logIndex: number;
72
- }, {
73
- address: string;
74
- from: string;
75
- to: string;
76
- tokenId: string;
77
- logIndex: number;
78
- }>, "many">;
79
- erc1155Transfers: z.ZodArray<z.ZodObject<{
80
- address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
81
- from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
82
- logIndex: z.ZodNumber;
83
- to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
84
- tokenId: z.ZodEffects<z.ZodString, bigint, string>;
85
- value: z.ZodEffects<z.ZodString, bigint, string>;
86
- }, "strip", z.ZodTypeAny, {
87
- address: `0x${Lowercase<string>}`;
88
- from: `0x${Lowercase<string>}`;
89
- to: `0x${Lowercase<string>}`;
90
- value: bigint;
91
- tokenId: bigint;
92
- logIndex: number;
93
- }, {
94
- address: string;
95
- from: string;
96
- to: string;
97
- value: string;
98
- tokenId: string;
99
- logIndex: number;
100
- }>, "many">;
101
- from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
102
41
  gasUsed: z.ZodEffects<z.ZodString, bigint, string>;
103
42
  hash: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
104
43
  input: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
@@ -179,16 +118,15 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
179
118
  }>, "many">;
180
119
  status: z.ZodUnion<[z.ZodLiteral<"success">, z.ZodLiteral<"reverted">]>;
181
120
  timestamp: z.ZodNumber;
182
- to: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
183
121
  value: z.ZodEffects<z.ZodString, bigint, string>;
184
- }, {
185
- erc20Transfers: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
122
+ } & {
123
+ erc20Transfers: z.ZodArray<z.ZodObject<{
186
124
  address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
187
125
  from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
188
126
  logIndex: z.ZodNumber;
189
127
  to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
190
128
  value: z.ZodEffects<z.ZodString, bigint, string>;
191
- }, {
129
+ } & {
192
130
  token: z.ZodObject<{
193
131
  address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
194
132
  name: z.ZodString;
@@ -274,7 +212,7 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
274
212
  priceDatasourceId?: string | undefined;
275
213
  };
276
214
  }>;
277
- }>, "strip", z.ZodTypeAny, {
215
+ }, "strip", z.ZodTypeAny, {
278
216
  address: `0x${Lowercase<string>}`;
279
217
  from: `0x${Lowercase<string>}`;
280
218
  to: `0x${Lowercase<string>}`;
@@ -325,13 +263,13 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
325
263
  };
326
264
  };
327
265
  }>, "many">;
328
- erc721Transfers: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
266
+ erc721Transfers: z.ZodArray<z.ZodObject<{
329
267
  address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
330
268
  from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
331
269
  logIndex: z.ZodNumber;
332
270
  to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
333
271
  tokenId: z.ZodEffects<z.ZodString, bigint, string>;
334
- }, {
272
+ } & {
335
273
  token: z.ZodObject<{
336
274
  type: z.ZodLiteral<"Nft">;
337
275
  id: z.ZodString;
@@ -354,7 +292,7 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
354
292
  image?: string | undefined;
355
293
  metadata?: string | undefined;
356
294
  }>;
357
- }>, "strip", z.ZodTypeAny, {
295
+ }, "strip", z.ZodTypeAny, {
358
296
  address: `0x${Lowercase<string>}`;
359
297
  from: `0x${Lowercase<string>}`;
360
298
  to: `0x${Lowercase<string>}`;
@@ -383,14 +321,14 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
383
321
  metadata?: string | undefined;
384
322
  };
385
323
  }>, "many">;
386
- erc1155Transfers: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
324
+ erc1155Transfers: z.ZodArray<z.ZodObject<{
387
325
  address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
388
326
  from: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
389
327
  logIndex: z.ZodNumber;
390
328
  to: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
391
329
  tokenId: z.ZodEffects<z.ZodString, bigint, string>;
392
330
  value: z.ZodEffects<z.ZodString, bigint, string>;
393
- }, {
331
+ } & {
394
332
  token: z.ZodObject<{
395
333
  type: z.ZodLiteral<"Nft">;
396
334
  id: z.ZodString;
@@ -413,7 +351,7 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
413
351
  image?: string | undefined;
414
352
  metadata?: string | undefined;
415
353
  }>;
416
- }>, "strip", z.ZodTypeAny, {
354
+ }, "strip", z.ZodTypeAny, {
417
355
  address: `0x${Lowercase<string>}`;
418
356
  from: `0x${Lowercase<string>}`;
419
357
  to: `0x${Lowercase<string>}`;
@@ -521,7 +459,7 @@ export declare const transactionDecodedSchema: z.ZodObject<z.objectUtil.extendSh
521
459
  app?: string | undefined;
522
460
  abi?: string | undefined;
523
461
  }>>;
524
- }>, "strip", z.ZodTypeAny, {
462
+ }, "strip", z.ZodTypeAny, {
525
463
  from: {
526
464
  address: `0x${Lowercase<string>}`;
527
465
  chainId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"transactionDecoded.d.ts","sourceRoot":"","sources":["../../types/transactionDecoded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BATrB,CAAC;gCAGG,CAAC;;+BAIC,CAAC;gCAEvB,CAAA;;;;;;;;;;;;+BAMM,CAAA;gCAGG,CAAC;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAH9O,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
1
+ {"version":3,"file":"transactionDecoded.d.ts","sourceRoot":"","sources":["../../types/transactionDecoded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BATrB,CAAC;gCAGG,CAAC;;+BAIC,CAAC;gCAEvB,CAAA;;;;;;;;;;;;+BAMM,CAAA;gCAGG,CAAC;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAJ1O,CAAA;gCAGG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAC0L,CAAC;gCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAH9O,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { z } from 'zod';
2
- declare const transactionIndexSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
2
+ declare const transactionIndexSchema: z.ZodObject<Pick<{
3
3
  blockNumber: z.ZodNumber;
4
4
  chainId: z.ZodNumber;
5
5
  contractAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
@@ -147,10 +147,10 @@ declare const transactionIndexSchema: z.ZodObject<z.objectUtil.extendShape<Pick<
147
147
  timestamp: z.ZodNumber;
148
148
  to: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
149
149
  value: z.ZodEffects<z.ZodString, bigint, string>;
150
- }, "hash" | "blockNumber" | "timestamp">, {
150
+ }, "hash" | "blockNumber" | "timestamp"> & {
151
151
  input: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>>;
152
152
  value: z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
153
- }>, "strip", z.ZodTypeAny, {
153
+ }, "strip", z.ZodTypeAny, {
154
154
  hash: `0x${Lowercase<string>}`;
155
155
  blockNumber: number;
156
156
  timestamp: number;
@@ -128,12 +128,11 @@ export const baseHttpRpcs: HttpRpc[] = [
128
128
  getLogsIsUsable: true,
129
129
  getLogsMaxBlockRange: 2000n,
130
130
  },
131
- // Endpoint is not working in cloudflare
132
- // {
133
- // url: 'https://endpoints.omniatech.io/v1/base/mainnet/public',
134
- // getLogsIsUsable: true,
135
- // getLogsMaxBlockRange: 10_000n,
136
- // },
131
+ {
132
+ url: 'https://endpoints.omniatech.io/v1/base/mainnet/public',
133
+ getLogsIsUsable: true,
134
+ getLogsMaxBlockRange: 10_000n,
135
+ },
137
136
  {
138
137
  url: 'https://base.api.onfinality.io/public',
139
138
  getLogsIsUsable: true,
@@ -59,12 +59,11 @@ export const createEthereumChainCustom = ({
59
59
  })
60
60
 
61
61
  export const ethereumHttpRpcs: HttpRpc[] = [
62
- // Endpoint is not working in cloudflare
63
- // {
64
- // url: 'https://endpoints.omniatech.io/v1/eth/mainnet/public',
65
- // getLogsIsUsable: true,
66
- // getLogsMaxBlockRange: 8000n,
67
- // },
62
+ {
63
+ url: 'https://endpoints.omniatech.io/v1/eth/mainnet/public',
64
+ getLogsIsUsable: true,
65
+ getLogsMaxBlockRange: 8000n,
66
+ },
68
67
  {
69
68
  url: 'https://rpc.ankr.com/eth',
70
69
  getLogsIsUsable: true,
@@ -96,12 +96,11 @@ export const fantomHttpRpcs: HttpRpc[] = [
96
96
  getLogsIsUsable: true,
97
97
  getLogsMaxBlockRange: 4000n,
98
98
  },
99
- // Endpoint is not working in cloudflare
100
- // {
101
- // url: 'https://endpoints.omniatech.io/v1/fantom/mainnet/public',
102
- // getLogsIsUsable: true,
103
- // getLogsMaxBlockRange: 3000n,
104
- // },
99
+ {
100
+ url: 'https://endpoints.omniatech.io/v1/fantom/mainnet/public',
101
+ getLogsIsUsable: true,
102
+ getLogsMaxBlockRange: 3000n,
103
+ },
105
104
  {
106
105
  url: 'https://fantom.rpc.thirdweb.com/',
107
106
  getLogsIsUsable: true,
@@ -91,12 +91,11 @@ export const polygonZkEvmHttpRpcs: HttpRpc[] = [
91
91
  getLogsIsUsable: true,
92
92
  getLogsMaxBlockRange: 10_000n,
93
93
  },
94
- // Endpoint is not working in cloudflare
95
- // {
96
- // url: 'https://endpoints.omniatech.io/v1/polygon-zkevm/mainnet/public',
97
- // getLogsIsUsable: false,
98
- // getLogsMaxBlockRange: 0n,
99
- // },
94
+ {
95
+ url: 'https://endpoints.omniatech.io/v1/polygon-zkevm/mainnet/public',
96
+ getLogsIsUsable: false,
97
+ getLogsMaxBlockRange: 0n,
98
+ },
100
99
  // Endpoint is not working
101
100
  // {
102
101
  // url: 'https://node.histori.xyz/polygon-zkevm-mainnet/8ry9f6t9dct1se2hlagxnd9n2a',
@@ -52,7 +52,7 @@ export const createTcgVerseChainCustom = ({
52
52
 
53
53
  export const tcgVerseHttpRpcs: HttpRpc[] = [
54
54
  {
55
- url: 'https://rpc.tcgverse.xyz',
55
+ url: 'https://rep-rpc.tcgverse.xyz',
56
56
  getLogsIsUsable: false,
57
57
  getLogsMaxBlockRange: 0n,
58
58
  },
@@ -44,7 +44,7 @@ export const decodeLogByAddressAbi = (
44
44
  console.debug(parsedAbi.error)
45
45
  return undefined
46
46
  }
47
- const abi = parsedAbi.data
47
+ const abi = parsedAbi.data.filter((v) => v.type === 'event')
48
48
  const decodedLog = decodeEventLog({
49
49
  abi,
50
50
  topics: log.topics as [Hex, ...Hex[]] | [],
@@ -54,9 +54,6 @@ export const decodeLogByAddressAbi = (
54
54
  abi,
55
55
  name: decodedLog.eventName,
56
56
  })
57
- if (abiItem.type !== 'event') {
58
- return undefined
59
- }
60
57
  return {
61
58
  ...log,
62
59
  eventName: decodedLog.eventName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/evm",
3
- "version": "0.0.129",
3
+ "version": "0.0.131",
4
4
  "description": "Cryptorch EVM extension",
5
5
  "keywords": [
6
6
  "cryptorch",
@@ -37,10 +37,10 @@
37
37
  "!tsconfig.build.json"
38
38
  ],
39
39
  "dependencies": {
40
- "@0xtorch/big-decimal": "^0.0.13",
41
- "@0xtorch/core": "^0.0.60",
42
- "abitype": "^1.0.6",
43
- "viem": "2.21.18",
44
- "zod": "3.23.8"
40
+ "@0xtorch/big-decimal": "^0.0.14",
41
+ "@0xtorch/core": "^0.0.63",
42
+ "abitype": "^1.0.8",
43
+ "viem": "^2.29.2",
44
+ "zod": "^3.24.4"
45
45
  }
46
46
  }