@0xtorch/evm 0.0.158 → 0.0.160
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/_cjs/chain/definitions/plasma.js +63 -0
- package/_cjs/chain/definitions/plasma.js.map +1 -0
- package/_cjs/chain/definitions/zkSyncEra.js +4 -6
- package/_cjs/chain/definitions/zkSyncEra.js.map +1 -1
- package/_cjs/chain/index.js +7 -7
- package/_cjs/chain/index.js.map +1 -1
- package/_cjs/index.js +7 -7
- package/_cjs/index.js.map +1 -1
- package/_esm/chain/definitions/plasma.js +58 -0
- package/_esm/chain/definitions/plasma.js.map +1 -0
- package/_esm/chain/definitions/zkSyncEra.js +5 -7
- package/_esm/chain/definitions/zkSyncEra.js.map +1 -1
- package/_esm/chain/index.js +1 -1
- package/_esm/chain/index.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/chain/definitions/plasma.d.ts +18 -0
- package/_types/chain/definitions/plasma.d.ts.map +1 -0
- package/_types/chain/definitions/zkSyncEra.d.ts +3 -5
- package/_types/chain/definitions/zkSyncEra.d.ts.map +1 -1
- package/_types/chain/index.d.ts +1 -1
- package/_types/chain/index.d.ts.map +1 -1
- package/_types/chain/viemChains/chainVerse.d.ts +9 -0
- package/_types/chain/viemChains/chainVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/defiVerse.d.ts +9 -0
- package/_types/chain/viemChains/defiVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/geekVerse.d.ts +9 -0
- package/_types/chain/viemChains/geekVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/gesoVerse.d.ts +9 -0
- package/_types/chain/viemChains/gesoVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/homeVerse.d.ts +9 -0
- package/_types/chain/viemChains/homeVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/hyperEvm.d.ts +9 -0
- package/_types/chain/viemChains/hyperEvm.d.ts.map +1 -1
- package/_types/chain/viemChains/mchVerse.d.ts +9 -0
- package/_types/chain/viemChains/mchVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/saakuru.d.ts +9 -0
- package/_types/chain/viemChains/saakuru.d.ts.map +1 -1
- package/_types/chain/viemChains/tcgVerse.d.ts +9 -0
- package/_types/chain/viemChains/tcgVerse.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/logic/analyzeTransaction/createActions/json/schema.d.ts +19285 -19285
- package/_types/types/erc1155.d.ts +2 -2
- package/_types/types/erc20.d.ts +2 -2
- package/_types/types/erc20.d.ts.map +1 -1
- package/_types/types/erc721.d.ts +2 -2
- package/_types/types/transactionDecoded.d.ts +16 -16
- package/_types/types/transactionDecoded.d.ts.map +1 -1
- package/_types/types/transactionDetail.d.ts +4 -4
- package/chain/definitions/plasma.ts +81 -0
- package/chain/definitions/zkSyncEra.ts +10 -16
- package/chain/index.ts +6 -6
- package/index.ts +4 -4
- package/package.json +3 -3
- package/_cjs/chain/definitions/sophon.js +0 -61
- package/_cjs/chain/definitions/sophon.js.map +0 -1
- package/_esm/chain/definitions/sophon.js +0 -56
- package/_esm/chain/definitions/sophon.js.map +0 -1
- package/_types/chain/definitions/sophon.d.ts +0 -18
- package/_types/chain/definitions/sophon.d.ts.map +0 -1
- package/chain/definitions/sophon.ts +0 -80
|
@@ -59,7 +59,6 @@ export declare const erc1155TokenTransferSchema: z.ZodObject<{
|
|
|
59
59
|
to: `0x${Lowercase<string>}`;
|
|
60
60
|
value: bigint;
|
|
61
61
|
tokenId: bigint;
|
|
62
|
-
logIndex: number;
|
|
63
62
|
token: {
|
|
64
63
|
type: "Nft";
|
|
65
64
|
id: string;
|
|
@@ -68,13 +67,13 @@ export declare const erc1155TokenTransferSchema: z.ZodObject<{
|
|
|
68
67
|
image?: string | undefined;
|
|
69
68
|
metadata?: string | undefined;
|
|
70
69
|
};
|
|
70
|
+
logIndex: number;
|
|
71
71
|
}, {
|
|
72
72
|
address: string;
|
|
73
73
|
from: string;
|
|
74
74
|
to: string;
|
|
75
75
|
value: string;
|
|
76
76
|
tokenId: string;
|
|
77
|
-
logIndex: number;
|
|
78
77
|
token: {
|
|
79
78
|
type: "Nft";
|
|
80
79
|
id: string;
|
|
@@ -83,6 +82,7 @@ export declare const erc1155TokenTransferSchema: z.ZodObject<{
|
|
|
83
82
|
image?: string | undefined;
|
|
84
83
|
metadata?: string | undefined;
|
|
85
84
|
};
|
|
85
|
+
logIndex: number;
|
|
86
86
|
}>;
|
|
87
87
|
export type Erc1155TokenTransfer = z.infer<typeof erc1155TokenTransferSchema>;
|
|
88
88
|
export type Erc1155NftId = `evm_1155_${number}_${LowerHex}_${bigint}`;
|
package/_types/types/erc20.d.ts
CHANGED
|
@@ -200,7 +200,6 @@ export declare const erc20TokenTransferSchema: z.ZodObject<{
|
|
|
200
200
|
from: `0x${Lowercase<string>}`;
|
|
201
201
|
to: `0x${Lowercase<string>}`;
|
|
202
202
|
value: bigint;
|
|
203
|
-
logIndex: number;
|
|
204
203
|
token: {
|
|
205
204
|
symbol: string;
|
|
206
205
|
address: `0x${Lowercase<string>}`;
|
|
@@ -220,12 +219,12 @@ export declare const erc20TokenTransferSchema: z.ZodObject<{
|
|
|
220
219
|
priceDatasourceId?: string | undefined;
|
|
221
220
|
};
|
|
222
221
|
};
|
|
222
|
+
logIndex: number;
|
|
223
223
|
}, {
|
|
224
224
|
address: string;
|
|
225
225
|
from: string;
|
|
226
226
|
to: string;
|
|
227
227
|
value: string;
|
|
228
|
-
logIndex: number;
|
|
229
228
|
token: {
|
|
230
229
|
symbol: string;
|
|
231
230
|
address: string;
|
|
@@ -245,6 +244,7 @@ export declare const erc20TokenTransferSchema: z.ZodObject<{
|
|
|
245
244
|
priceDatasourceId?: string | undefined;
|
|
246
245
|
};
|
|
247
246
|
};
|
|
247
|
+
logIndex: number;
|
|
248
248
|
}>;
|
|
249
249
|
export type Erc20Token = z.infer<typeof erc20TokenSchema>;
|
|
250
250
|
export type Erc20Transfer = z.infer<typeof erc20TransferSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../types/erc20.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;uBAU1B,CAAC;wBACU,CAAC;;uBAEV,CAAC;wBAGW,CAAC;;;;;;;;;;;;uBASU,CAAC;wBAA0C,CAAC;;;;;;;;;;;uBAAoQ,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;uBAA5V,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;uBAAoQ,CAAC;wBAA0C,CAAC;;;;EAnBtX,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;2BANlC,CAAC;4BACU,CAAC;;2BAEV,CAAC;4BAGW,CAAC;;;;;;;;;;;;2BASU,CAAC;4BAA0C,CAAC;;;;;;;;;;;2BAAoQ,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;2BAA5V,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;2BAAoQ,CAAC;4BAA0C,CAAC
|
|
1
|
+
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../types/erc20.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;uBAU1B,CAAC;wBACU,CAAC;;uBAEV,CAAC;wBAGW,CAAC;;;;;;;;;;;;uBASU,CAAC;wBAA0C,CAAC;;;;;;;;;;;uBAAoQ,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;uBAA5V,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;uBAAoQ,CAAC;wBAA0C,CAAC;;;;EAnBtX,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;2BANlC,CAAC;4BACU,CAAC;;2BAEV,CAAC;4BAGW,CAAC;;;;;;;;;;;;2BASU,CAAC;4BAA0C,CAAC;;;;;;;;;;;2BAAoQ,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;2BAA5V,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;2BAAoQ,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;2BAA5V,CAAC;4BAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;2BAAoQ,CAAC;4BAA0C,CAAC;;;;;;EAPtX,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
package/_types/types/erc721.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ export declare const erc721TokenTransferSchema: z.ZodObject<{
|
|
|
54
54
|
from: `0x${Lowercase<string>}`;
|
|
55
55
|
to: `0x${Lowercase<string>}`;
|
|
56
56
|
tokenId: bigint;
|
|
57
|
-
logIndex: number;
|
|
58
57
|
token: {
|
|
59
58
|
type: "Nft";
|
|
60
59
|
id: string;
|
|
@@ -63,12 +62,12 @@ export declare const erc721TokenTransferSchema: z.ZodObject<{
|
|
|
63
62
|
image?: string | undefined;
|
|
64
63
|
metadata?: string | undefined;
|
|
65
64
|
};
|
|
65
|
+
logIndex: number;
|
|
66
66
|
}, {
|
|
67
67
|
address: string;
|
|
68
68
|
from: string;
|
|
69
69
|
to: string;
|
|
70
70
|
tokenId: string;
|
|
71
|
-
logIndex: number;
|
|
72
71
|
token: {
|
|
73
72
|
type: "Nft";
|
|
74
73
|
id: string;
|
|
@@ -77,6 +76,7 @@ export declare const erc721TokenTransferSchema: z.ZodObject<{
|
|
|
77
76
|
image?: string | undefined;
|
|
78
77
|
metadata?: string | undefined;
|
|
79
78
|
};
|
|
79
|
+
logIndex: number;
|
|
80
80
|
}>;
|
|
81
81
|
export type Erc721TokenTransfer = z.infer<typeof erc721TokenTransferSchema>;
|
|
82
82
|
export type Erc721NftId = `evm_721_${number}_${LowerHex}_${bigint}`;
|
|
@@ -217,7 +217,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
217
217
|
from: `0x${Lowercase<string>}`;
|
|
218
218
|
to: `0x${Lowercase<string>}`;
|
|
219
219
|
value: bigint;
|
|
220
|
-
logIndex: number;
|
|
221
220
|
token: {
|
|
222
221
|
symbol: string;
|
|
223
222
|
address: `0x${Lowercase<string>}`;
|
|
@@ -237,12 +236,12 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
237
236
|
priceDatasourceId?: string | undefined;
|
|
238
237
|
};
|
|
239
238
|
};
|
|
239
|
+
logIndex: number;
|
|
240
240
|
}, {
|
|
241
241
|
address: string;
|
|
242
242
|
from: string;
|
|
243
243
|
to: string;
|
|
244
244
|
value: string;
|
|
245
|
-
logIndex: number;
|
|
246
245
|
token: {
|
|
247
246
|
symbol: string;
|
|
248
247
|
address: string;
|
|
@@ -262,6 +261,7 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
262
261
|
priceDatasourceId?: string | undefined;
|
|
263
262
|
};
|
|
264
263
|
};
|
|
264
|
+
logIndex: number;
|
|
265
265
|
}>, "many">;
|
|
266
266
|
erc721Transfers: z.ZodArray<z.ZodObject<{
|
|
267
267
|
address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
@@ -297,7 +297,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
297
297
|
from: `0x${Lowercase<string>}`;
|
|
298
298
|
to: `0x${Lowercase<string>}`;
|
|
299
299
|
tokenId: bigint;
|
|
300
|
-
logIndex: number;
|
|
301
300
|
token: {
|
|
302
301
|
type: "Nft";
|
|
303
302
|
id: string;
|
|
@@ -306,12 +305,12 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
306
305
|
image?: string | undefined;
|
|
307
306
|
metadata?: string | undefined;
|
|
308
307
|
};
|
|
308
|
+
logIndex: number;
|
|
309
309
|
}, {
|
|
310
310
|
address: string;
|
|
311
311
|
from: string;
|
|
312
312
|
to: string;
|
|
313
313
|
tokenId: string;
|
|
314
|
-
logIndex: number;
|
|
315
314
|
token: {
|
|
316
315
|
type: "Nft";
|
|
317
316
|
id: string;
|
|
@@ -320,6 +319,7 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
320
319
|
image?: string | undefined;
|
|
321
320
|
metadata?: string | undefined;
|
|
322
321
|
};
|
|
322
|
+
logIndex: number;
|
|
323
323
|
}>, "many">;
|
|
324
324
|
erc1155Transfers: z.ZodArray<z.ZodObject<{
|
|
325
325
|
address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
@@ -357,7 +357,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
357
357
|
to: `0x${Lowercase<string>}`;
|
|
358
358
|
value: bigint;
|
|
359
359
|
tokenId: bigint;
|
|
360
|
-
logIndex: number;
|
|
361
360
|
token: {
|
|
362
361
|
type: "Nft";
|
|
363
362
|
id: string;
|
|
@@ -366,13 +365,13 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
366
365
|
image?: string | undefined;
|
|
367
366
|
metadata?: string | undefined;
|
|
368
367
|
};
|
|
368
|
+
logIndex: number;
|
|
369
369
|
}, {
|
|
370
370
|
address: string;
|
|
371
371
|
from: string;
|
|
372
372
|
to: string;
|
|
373
373
|
value: string;
|
|
374
374
|
tokenId: string;
|
|
375
|
-
logIndex: number;
|
|
376
375
|
token: {
|
|
377
376
|
type: "Nft";
|
|
378
377
|
id: string;
|
|
@@ -381,6 +380,7 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
381
380
|
image?: string | undefined;
|
|
382
381
|
metadata?: string | undefined;
|
|
383
382
|
};
|
|
383
|
+
logIndex: number;
|
|
384
384
|
}>, "many">;
|
|
385
385
|
from: z.ZodObject<{
|
|
386
386
|
chainId: z.ZodNumber;
|
|
@@ -469,7 +469,9 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
469
469
|
abi?: string | undefined;
|
|
470
470
|
};
|
|
471
471
|
value: bigint;
|
|
472
|
+
hash: `0x${Lowercase<string>}`;
|
|
472
473
|
chainId: number;
|
|
474
|
+
input: `0x${Lowercase<string>}`;
|
|
473
475
|
status: "success" | "reverted";
|
|
474
476
|
logs: {
|
|
475
477
|
address: `0x${Lowercase<string>}`;
|
|
@@ -490,7 +492,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
490
492
|
from: `0x${Lowercase<string>}`;
|
|
491
493
|
to: `0x${Lowercase<string>}`;
|
|
492
494
|
value: bigint;
|
|
493
|
-
logIndex: number;
|
|
494
495
|
token: {
|
|
495
496
|
symbol: string;
|
|
496
497
|
address: `0x${Lowercase<string>}`;
|
|
@@ -510,13 +511,13 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
510
511
|
priceDatasourceId?: string | undefined;
|
|
511
512
|
};
|
|
512
513
|
};
|
|
514
|
+
logIndex: number;
|
|
513
515
|
}[];
|
|
514
516
|
erc721Transfers: {
|
|
515
517
|
address: `0x${Lowercase<string>}`;
|
|
516
518
|
from: `0x${Lowercase<string>}`;
|
|
517
519
|
to: `0x${Lowercase<string>}`;
|
|
518
520
|
tokenId: bigint;
|
|
519
|
-
logIndex: number;
|
|
520
521
|
token: {
|
|
521
522
|
type: "Nft";
|
|
522
523
|
id: string;
|
|
@@ -525,6 +526,7 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
525
526
|
image?: string | undefined;
|
|
526
527
|
metadata?: string | undefined;
|
|
527
528
|
};
|
|
529
|
+
logIndex: number;
|
|
528
530
|
}[];
|
|
529
531
|
erc1155Transfers: {
|
|
530
532
|
address: `0x${Lowercase<string>}`;
|
|
@@ -532,7 +534,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
532
534
|
to: `0x${Lowercase<string>}`;
|
|
533
535
|
value: bigint;
|
|
534
536
|
tokenId: bigint;
|
|
535
|
-
logIndex: number;
|
|
536
537
|
token: {
|
|
537
538
|
type: "Nft";
|
|
538
539
|
id: string;
|
|
@@ -541,13 +542,12 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
541
542
|
image?: string | undefined;
|
|
542
543
|
metadata?: string | undefined;
|
|
543
544
|
};
|
|
545
|
+
logIndex: number;
|
|
544
546
|
}[];
|
|
545
|
-
hash: `0x${Lowercase<string>}`;
|
|
546
547
|
blockNumber: number;
|
|
547
548
|
timestamp: number;
|
|
548
549
|
effectiveGasPrice: bigint;
|
|
549
550
|
gasUsed: bigint;
|
|
550
|
-
input: `0x${Lowercase<string>}`;
|
|
551
551
|
internalTransactions: {
|
|
552
552
|
from: `0x${Lowercase<string>}`;
|
|
553
553
|
value: bigint;
|
|
@@ -585,7 +585,9 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
585
585
|
abi?: string | undefined;
|
|
586
586
|
};
|
|
587
587
|
value: string;
|
|
588
|
+
hash: string;
|
|
588
589
|
chainId: number;
|
|
590
|
+
input: string;
|
|
589
591
|
status: "success" | "reverted";
|
|
590
592
|
logs: {
|
|
591
593
|
address: string;
|
|
@@ -606,7 +608,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
606
608
|
from: string;
|
|
607
609
|
to: string;
|
|
608
610
|
value: string;
|
|
609
|
-
logIndex: number;
|
|
610
611
|
token: {
|
|
611
612
|
symbol: string;
|
|
612
613
|
address: string;
|
|
@@ -626,13 +627,13 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
626
627
|
priceDatasourceId?: string | undefined;
|
|
627
628
|
};
|
|
628
629
|
};
|
|
630
|
+
logIndex: number;
|
|
629
631
|
}[];
|
|
630
632
|
erc721Transfers: {
|
|
631
633
|
address: string;
|
|
632
634
|
from: string;
|
|
633
635
|
to: string;
|
|
634
636
|
tokenId: string;
|
|
635
|
-
logIndex: number;
|
|
636
637
|
token: {
|
|
637
638
|
type: "Nft";
|
|
638
639
|
id: string;
|
|
@@ -641,6 +642,7 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
641
642
|
image?: string | undefined;
|
|
642
643
|
metadata?: string | undefined;
|
|
643
644
|
};
|
|
645
|
+
logIndex: number;
|
|
644
646
|
}[];
|
|
645
647
|
erc1155Transfers: {
|
|
646
648
|
address: string;
|
|
@@ -648,7 +650,6 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
648
650
|
to: string;
|
|
649
651
|
value: string;
|
|
650
652
|
tokenId: string;
|
|
651
|
-
logIndex: number;
|
|
652
653
|
token: {
|
|
653
654
|
type: "Nft";
|
|
654
655
|
id: string;
|
|
@@ -657,13 +658,12 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
657
658
|
image?: string | undefined;
|
|
658
659
|
metadata?: string | undefined;
|
|
659
660
|
};
|
|
661
|
+
logIndex: number;
|
|
660
662
|
}[];
|
|
661
|
-
hash: string;
|
|
662
663
|
blockNumber: number;
|
|
663
664
|
timestamp: number;
|
|
664
665
|
effectiveGasPrice: string;
|
|
665
666
|
gasUsed: string;
|
|
666
|
-
input: string;
|
|
667
667
|
internalTransactions: {
|
|
668
668
|
from: string;
|
|
669
669
|
value: string;
|
|
@@ -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
|
|
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"}
|
|
@@ -150,7 +150,9 @@ export declare const transactionDetailSchema: z.ZodObject<{
|
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
151
|
from: `0x${Lowercase<string>}`;
|
|
152
152
|
value: bigint;
|
|
153
|
+
hash: `0x${Lowercase<string>}`;
|
|
153
154
|
chainId: number;
|
|
155
|
+
input: `0x${Lowercase<string>}`;
|
|
154
156
|
status: "success" | "reverted";
|
|
155
157
|
logs: {
|
|
156
158
|
address: `0x${Lowercase<string>}`;
|
|
@@ -188,12 +190,10 @@ export declare const transactionDetailSchema: z.ZodObject<{
|
|
|
188
190
|
tokenId: bigint;
|
|
189
191
|
logIndex: number;
|
|
190
192
|
}[];
|
|
191
|
-
hash: `0x${Lowercase<string>}`;
|
|
192
193
|
blockNumber: number;
|
|
193
194
|
timestamp: number;
|
|
194
195
|
effectiveGasPrice: bigint;
|
|
195
196
|
gasUsed: bigint;
|
|
196
|
-
input: `0x${Lowercase<string>}`;
|
|
197
197
|
internalTransactions: {
|
|
198
198
|
from: `0x${Lowercase<string>}`;
|
|
199
199
|
value: bigint;
|
|
@@ -208,7 +208,9 @@ export declare const transactionDetailSchema: z.ZodObject<{
|
|
|
208
208
|
}, {
|
|
209
209
|
from: string;
|
|
210
210
|
value: string;
|
|
211
|
+
hash: string;
|
|
211
212
|
chainId: number;
|
|
213
|
+
input: string;
|
|
212
214
|
status: "success" | "reverted";
|
|
213
215
|
logs: {
|
|
214
216
|
address: string;
|
|
@@ -246,12 +248,10 @@ export declare const transactionDetailSchema: z.ZodObject<{
|
|
|
246
248
|
tokenId: string;
|
|
247
249
|
logIndex: number;
|
|
248
250
|
}[];
|
|
249
|
-
hash: string;
|
|
250
251
|
blockNumber: number;
|
|
251
252
|
timestamp: number;
|
|
252
253
|
effectiveGasPrice: string;
|
|
253
254
|
gasUsed: string;
|
|
254
|
-
input: string;
|
|
255
255
|
internalTransactions: {
|
|
256
256
|
from: string;
|
|
257
257
|
value: string;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { plasma } from 'viem/chains'
|
|
2
|
+
import { type Client, createClient } from '../../client'
|
|
3
|
+
import type { Explorer } from '../../explorer'
|
|
4
|
+
import { createEtherscanV2 } from '../../explorer'
|
|
5
|
+
import type { Chain } from '../types/chain'
|
|
6
|
+
import type { HttpRpc } from '../types/rpc'
|
|
7
|
+
|
|
8
|
+
export const createPlasmaChain = ({
|
|
9
|
+
explorerApiKey: apiKey,
|
|
10
|
+
explorerProxyUrl: proxyUrl,
|
|
11
|
+
explorerPageSize: pageSize,
|
|
12
|
+
}: {
|
|
13
|
+
explorerApiKey?: string
|
|
14
|
+
explorerProxyUrl?: string
|
|
15
|
+
explorerPageSize?: number
|
|
16
|
+
}) =>
|
|
17
|
+
createPlasmaChainCustom({
|
|
18
|
+
client: createClient({
|
|
19
|
+
chain: plasma,
|
|
20
|
+
httpRpcs: plasmaHttpRpcs,
|
|
21
|
+
}),
|
|
22
|
+
explorer: createEtherscanV2({
|
|
23
|
+
name: 'Plasmascan',
|
|
24
|
+
baseUrl: 'https://plasmascan.to',
|
|
25
|
+
chainId: 9745,
|
|
26
|
+
apiKey,
|
|
27
|
+
proxyUrl,
|
|
28
|
+
pageSize,
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
type CreatePlasmaChainParameters = {
|
|
33
|
+
client: Client
|
|
34
|
+
explorer: Explorer
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const createPlasmaChainCustom = ({
|
|
38
|
+
client,
|
|
39
|
+
explorer,
|
|
40
|
+
}: CreatePlasmaChainParameters): Chain => ({
|
|
41
|
+
id: 9745,
|
|
42
|
+
network: 'plasma',
|
|
43
|
+
name: 'Plasma',
|
|
44
|
+
nativeToken: {
|
|
45
|
+
name: 'Plasma',
|
|
46
|
+
symbol: 'XPL',
|
|
47
|
+
decimals: 18,
|
|
48
|
+
currency: {
|
|
49
|
+
symbol: 'XPL',
|
|
50
|
+
type: 'CryptoCurrency',
|
|
51
|
+
id: 'plasma',
|
|
52
|
+
name: 'Plasma',
|
|
53
|
+
updatedAt: 0,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
wrappedTokenAddresses: new Set([
|
|
57
|
+
'0x6100e367285b01f48d07953803a2d8dca5d19873',
|
|
58
|
+
]),
|
|
59
|
+
explorer,
|
|
60
|
+
client,
|
|
61
|
+
blockTime: 1000,
|
|
62
|
+
coingeckoId: 'plasma',
|
|
63
|
+
defillamaId: undefined,
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
export const plasmaHttpRpcs: HttpRpc[] = [
|
|
67
|
+
{
|
|
68
|
+
url: 'https://plasma.drpc.org',
|
|
69
|
+
getLogsIsUsable: true,
|
|
70
|
+
getLogsMaxBlockRange: 10_000n,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
url: 'https://rpc.plasma.to',
|
|
74
|
+
getLogsIsUsable: true,
|
|
75
|
+
getLogsMaxBlockRange: 10_000n,
|
|
76
|
+
},
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
export const plasmaWebsocketRpcUrls: readonly string[] = [
|
|
80
|
+
'wss://plasma.drpc.org',
|
|
81
|
+
]
|
|
@@ -2,39 +2,33 @@ import { ethereum } from '@0xtorch/core'
|
|
|
2
2
|
import { zksync } from 'viem/chains'
|
|
3
3
|
import { type Client, createClient } from '../../client'
|
|
4
4
|
import type { Explorer } from '../../explorer'
|
|
5
|
-
import {
|
|
5
|
+
import { createBlockscout } from '../../explorer'
|
|
6
6
|
import type { Chain } from '../types/chain'
|
|
7
7
|
import type { HttpRpc } from '../types/rpc'
|
|
8
8
|
|
|
9
|
+
type CreateZkSyncEraChainParameters = {
|
|
10
|
+
client: Client
|
|
11
|
+
explorer: Explorer
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
export const createZkSyncEraChain = ({
|
|
10
|
-
explorerApiKey: apiKey,
|
|
11
15
|
explorerProxyUrl: proxyUrl,
|
|
12
|
-
explorerPageSize: pageSize,
|
|
13
16
|
}: {
|
|
14
|
-
explorerApiKey?: string
|
|
15
17
|
explorerProxyUrl?: string
|
|
16
|
-
|
|
17
|
-
}) =>
|
|
18
|
+
}): Chain =>
|
|
18
19
|
createZkSyncEraChainCustom({
|
|
19
20
|
client: createClient({
|
|
20
21
|
chain: zksync,
|
|
21
22
|
httpRpcs: zksyncEraHttpRpcs,
|
|
22
23
|
}),
|
|
23
|
-
explorer:
|
|
24
|
+
explorer: createBlockscout({
|
|
24
25
|
name: 'zkSync Era Explorer',
|
|
25
|
-
baseUrl: 'https://
|
|
26
|
-
|
|
27
|
-
apiKey,
|
|
26
|
+
baseUrl: 'https://zksync.blockscout.com',
|
|
27
|
+
apiBaseUrl: 'https://zksync.blockscout.com/api',
|
|
28
28
|
proxyUrl,
|
|
29
|
-
pageSize,
|
|
30
29
|
}),
|
|
31
30
|
})
|
|
32
31
|
|
|
33
|
-
type CreateZkSyncEraChainParameters = {
|
|
34
|
-
client: Client
|
|
35
|
-
explorer: Explorer
|
|
36
|
-
}
|
|
37
|
-
|
|
38
32
|
export const createZkSyncEraChainCustom = ({
|
|
39
33
|
client,
|
|
40
34
|
explorer,
|
package/chain/index.ts
CHANGED
|
@@ -220,6 +220,12 @@ export {
|
|
|
220
220
|
optimismHttpRpcs,
|
|
221
221
|
optimismWebsocketRpcUrls,
|
|
222
222
|
} from './definitions/optimism'
|
|
223
|
+
export {
|
|
224
|
+
createPlasmaChain,
|
|
225
|
+
createPlasmaChainCustom,
|
|
226
|
+
plasmaHttpRpcs,
|
|
227
|
+
plasmaWebsocketRpcUrls,
|
|
228
|
+
} from './definitions/plasma'
|
|
223
229
|
export {
|
|
224
230
|
createPolygonPosChain,
|
|
225
231
|
createPolygonPosChainCustom,
|
|
@@ -268,12 +274,6 @@ export {
|
|
|
268
274
|
sonicHttpRpcs,
|
|
269
275
|
sonicWebsocketRpcUrls,
|
|
270
276
|
} from './definitions/sonic'
|
|
271
|
-
export {
|
|
272
|
-
createSophonChain,
|
|
273
|
-
createSophonChainCustom,
|
|
274
|
-
sophonHttpRpcs,
|
|
275
|
-
sophonWebsocketRpcUrls,
|
|
276
|
-
} from './definitions/sophon'
|
|
277
277
|
export {
|
|
278
278
|
createSwellChain,
|
|
279
279
|
createSwellChainCustom,
|
package/index.ts
CHANGED
|
@@ -102,6 +102,8 @@ export {
|
|
|
102
102
|
createOpBnbChainCustom,
|
|
103
103
|
createOptimismChain,
|
|
104
104
|
createOptimismChainCustom,
|
|
105
|
+
createPlasmaChain,
|
|
106
|
+
createPlasmaChainCustom,
|
|
105
107
|
createPolygonPosChain,
|
|
106
108
|
createPolygonPosChainCustom,
|
|
107
109
|
createPolygonZkEvmChain,
|
|
@@ -118,8 +120,6 @@ export {
|
|
|
118
120
|
createSoneiumChainCustom,
|
|
119
121
|
createSonicChain,
|
|
120
122
|
createSonicChainCustom,
|
|
121
|
-
createSophonChain,
|
|
122
|
-
createSophonChainCustom,
|
|
123
123
|
createSwellChain,
|
|
124
124
|
createSwellChainCustom,
|
|
125
125
|
createTaikoChain,
|
|
@@ -186,6 +186,8 @@ export {
|
|
|
186
186
|
opBnbWebsocketRpcUrls,
|
|
187
187
|
optimismHttpRpcs,
|
|
188
188
|
optimismWebsocketRpcUrls,
|
|
189
|
+
plasmaHttpRpcs,
|
|
190
|
+
plasmaWebsocketRpcUrls,
|
|
189
191
|
polygonPosHttpRpcs,
|
|
190
192
|
polygonPosWebsocketRpcUrls,
|
|
191
193
|
polygonZkEvmHttpRpcs,
|
|
@@ -202,8 +204,6 @@ export {
|
|
|
202
204
|
soneiumWebsocketRpcUrls,
|
|
203
205
|
sonicHttpRpcs,
|
|
204
206
|
sonicWebsocketRpcUrls,
|
|
205
|
-
sophonHttpRpcs,
|
|
206
|
-
sophonWebsocketRpcUrls,
|
|
207
207
|
swellHttpRpcs,
|
|
208
208
|
swellWebsocketRpcUrls,
|
|
209
209
|
taikoHttpRpcs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/evm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.160",
|
|
4
4
|
"description": "Cryptorch EVM extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cryptorch",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@0xtorch/big-decimal": "^0.0.14",
|
|
41
|
-
"@0xtorch/core": "^0.0.
|
|
41
|
+
"@0xtorch/core": "^0.0.67",
|
|
42
42
|
"abitype": "^1.0.9",
|
|
43
|
-
"viem": "^2.
|
|
43
|
+
"viem": "^2.43.2",
|
|
44
44
|
"zod": "^3.24.4"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sophonWebsocketRpcUrls = exports.sophonHttpRpcs = exports.createSophonChainCustom = exports.createSophonChain = void 0;
|
|
4
|
-
const chains_1 = require("viem/chains");
|
|
5
|
-
const client_1 = require("../../client");
|
|
6
|
-
const explorer_1 = require("../../explorer");
|
|
7
|
-
const createSophonChain = ({ explorerApiKey: apiKey, explorerProxyUrl: proxyUrl, explorerPageSize: pageSize, }) => (0, exports.createSophonChainCustom)({
|
|
8
|
-
client: (0, client_1.createClient)({
|
|
9
|
-
chain: chains_1.sophon,
|
|
10
|
-
httpRpcs: exports.sophonHttpRpcs,
|
|
11
|
-
}),
|
|
12
|
-
explorer: (0, explorer_1.createEtherscanV2)({
|
|
13
|
-
name: 'Sophscan',
|
|
14
|
-
baseUrl: 'https://sophscan.xyz',
|
|
15
|
-
chainId: 50_104,
|
|
16
|
-
apiKey,
|
|
17
|
-
proxyUrl,
|
|
18
|
-
pageSize,
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
|
-
exports.createSophonChain = createSophonChain;
|
|
22
|
-
const createSophonChainCustom = ({ client, explorer, }) => ({
|
|
23
|
-
id: 50_104,
|
|
24
|
-
network: 'sophon',
|
|
25
|
-
name: 'Sophon',
|
|
26
|
-
nativeToken: {
|
|
27
|
-
name: 'Sophon',
|
|
28
|
-
symbol: 'SOPH',
|
|
29
|
-
decimals: 18,
|
|
30
|
-
currency: {
|
|
31
|
-
symbol: 'SOPH',
|
|
32
|
-
type: 'CryptoCurrency',
|
|
33
|
-
id: 'sophon',
|
|
34
|
-
name: 'Sophon',
|
|
35
|
-
updatedAt: 0,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
wrappedTokenAddresses: new Set([
|
|
39
|
-
'0x2b1a859de6a55c553520d7780bc5805712b128f9',
|
|
40
|
-
]),
|
|
41
|
-
explorer,
|
|
42
|
-
client,
|
|
43
|
-
blockTime: undefined,
|
|
44
|
-
coingeckoId: 'sophon',
|
|
45
|
-
defillamaId: undefined,
|
|
46
|
-
});
|
|
47
|
-
exports.createSophonChainCustom = createSophonChainCustom;
|
|
48
|
-
exports.sophonHttpRpcs = [
|
|
49
|
-
{
|
|
50
|
-
url: 'https://rpc.sophon.xyz',
|
|
51
|
-
getLogsIsUsable: true,
|
|
52
|
-
getLogsMaxBlockRange: 10000n,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
url: 'https://rpc-quicknode.sophon.xyz',
|
|
56
|
-
getLogsIsUsable: true,
|
|
57
|
-
getLogsMaxBlockRange: 10000n,
|
|
58
|
-
},
|
|
59
|
-
];
|
|
60
|
-
exports.sophonWebsocketRpcUrls = [];
|
|
61
|
-
//# sourceMappingURL=sophon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sophon.js","sourceRoot":"","sources":["../../../chain/definitions/sophon.ts"],"names":[],"mappings":";;;AAAA,wCAAoC;AAEpC,yCAA2C;AAE3C,6CAAkD;AAI3C,MAAM,iBAAiB,GAAG,CAAC,EAChC,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,QAAQ,EAC1B,gBAAgB,EAAE,QAAQ,GAK3B,EAAS,EAAE,CACV,IAAA,+BAAuB,EAAC;IACtB,MAAM,EAAE,IAAA,qBAAY,EAAC;QACnB,KAAK,EAAE,eAAM;QACb,QAAQ,EAAE,sBAAc;KACzB,CAAC;IACF,QAAQ,EAAE,IAAA,4BAAiB,EAAC;QAC1B,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,sBAAsB;QAC/B,OAAO,EAAE,MAAM;QACf,MAAM;QACN,QAAQ;QACR,QAAQ;KACT,CAAC;CACH,CAAC,CAAA;AAtBS,QAAA,iBAAiB,qBAsB1B;AAOG,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,QAAQ,GAC0B,EAAS,EAAE,CAAC,CAAC;IAC/C,EAAE,EAAE,MAAM;IACV,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gBAAgB;YACtB,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;KACF;IACD,qBAAqB,EAAE,IAAI,GAAG,CAAC;QAC7B,4CAA4C;KAC7C,CAAC;IACF,QAAQ;IACR,MAAM;IACN,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AA3BW,QAAA,uBAAuB,2BA2BlC;AAEW,QAAA,cAAc,GAAc;IACvC;QACE,GAAG,EAAE,wBAAwB;QAC7B,eAAe,EAAE,IAAI;QACrB,oBAAoB,EAAE,MAAO;KAC9B;IACD;QACE,GAAG,EAAE,kCAAkC;QACvC,eAAe,EAAE,IAAI;QACrB,oBAAoB,EAAE,MAAO;KAC9B;CACF,CAAA;AAEY,QAAA,sBAAsB,GAAa,EAAE,CAAA"}
|