@0xtorch/evm 0.0.163 → 0.0.165
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/megaEth.js +16 -0
- package/_cjs/chain/definitions/megaEth.js.map +1 -1
- package/_cjs/chain/definitions/scroll.js +14 -14
- package/_cjs/chain/definitions/scroll.js.map +1 -1
- package/_esm/chain/definitions/megaEth.js +28 -0
- package/_esm/chain/definitions/megaEth.js.map +1 -1
- package/_esm/chain/definitions/scroll.js +15 -15
- package/_esm/chain/definitions/scroll.js.map +1 -1
- package/_types/chain/definitions/megaEth.d.ts.map +1 -1
- package/_types/chain/definitions/scroll.d.ts +1 -3
- package/_types/chain/definitions/scroll.d.ts.map +1 -1
- package/_types/logic/analyzeTransaction/createActions/json/schema.d.ts +12383 -12383
- package/_types/types/address.d.ts +2 -2
- package/_types/types/transactionDecoded.d.ts +8 -8
- package/chain/definitions/megaEth.ts +28 -0
- package/chain/definitions/scroll.ts +8 -13
- package/package.json +3 -3
|
@@ -9,17 +9,17 @@ export declare const evmAddressSchema: z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
address: `0x${Lowercase<string>}`;
|
|
11
11
|
chainId: number;
|
|
12
|
+
abi?: string | undefined;
|
|
12
13
|
label?: string | undefined;
|
|
13
14
|
isSpam?: boolean | undefined;
|
|
14
15
|
app?: string | undefined;
|
|
15
|
-
abi?: string | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
address: string;
|
|
18
18
|
chainId: number;
|
|
19
|
+
abi?: string | undefined;
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
isSpam?: boolean | undefined;
|
|
21
22
|
app?: string | undefined;
|
|
22
|
-
abi?: string | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export type EvmAddress = z.infer<typeof evmAddressSchema>;
|
|
25
25
|
//# sourceMappingURL=address.d.ts.map
|
|
@@ -392,17 +392,17 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
393
|
address: `0x${Lowercase<string>}`;
|
|
394
394
|
chainId: number;
|
|
395
|
+
abi?: string | undefined;
|
|
395
396
|
label?: string | undefined;
|
|
396
397
|
isSpam?: boolean | undefined;
|
|
397
398
|
app?: string | undefined;
|
|
398
|
-
abi?: string | undefined;
|
|
399
399
|
}, {
|
|
400
400
|
address: string;
|
|
401
401
|
chainId: number;
|
|
402
|
+
abi?: string | undefined;
|
|
402
403
|
label?: string | undefined;
|
|
403
404
|
isSpam?: boolean | undefined;
|
|
404
405
|
app?: string | undefined;
|
|
405
|
-
abi?: string | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
function: z.ZodOptional<z.ZodObject<{
|
|
408
408
|
args: z.ZodArray<z.ZodObject<{
|
|
@@ -447,26 +447,26 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
448
|
address: `0x${Lowercase<string>}`;
|
|
449
449
|
chainId: number;
|
|
450
|
+
abi?: string | undefined;
|
|
450
451
|
label?: string | undefined;
|
|
451
452
|
isSpam?: boolean | undefined;
|
|
452
453
|
app?: string | undefined;
|
|
453
|
-
abi?: string | undefined;
|
|
454
454
|
}, {
|
|
455
455
|
address: string;
|
|
456
456
|
chainId: number;
|
|
457
|
+
abi?: string | undefined;
|
|
457
458
|
label?: string | undefined;
|
|
458
459
|
isSpam?: boolean | undefined;
|
|
459
460
|
app?: string | undefined;
|
|
460
|
-
abi?: string | undefined;
|
|
461
461
|
}>>;
|
|
462
462
|
}, "strip", z.ZodTypeAny, {
|
|
463
463
|
from: {
|
|
464
464
|
address: `0x${Lowercase<string>}`;
|
|
465
465
|
chainId: number;
|
|
466
|
+
abi?: string | undefined;
|
|
466
467
|
label?: string | undefined;
|
|
467
468
|
isSpam?: boolean | undefined;
|
|
468
469
|
app?: string | undefined;
|
|
469
|
-
abi?: string | undefined;
|
|
470
470
|
};
|
|
471
471
|
value: bigint;
|
|
472
472
|
hash: `0x${Lowercase<string>}`;
|
|
@@ -569,20 +569,20 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
569
569
|
to?: {
|
|
570
570
|
address: `0x${Lowercase<string>}`;
|
|
571
571
|
chainId: number;
|
|
572
|
+
abi?: string | undefined;
|
|
572
573
|
label?: string | undefined;
|
|
573
574
|
isSpam?: boolean | undefined;
|
|
574
575
|
app?: string | undefined;
|
|
575
|
-
abi?: string | undefined;
|
|
576
576
|
} | undefined;
|
|
577
577
|
contractAddress?: `0x${Lowercase<string>}` | undefined;
|
|
578
578
|
}, {
|
|
579
579
|
from: {
|
|
580
580
|
address: string;
|
|
581
581
|
chainId: number;
|
|
582
|
+
abi?: string | undefined;
|
|
582
583
|
label?: string | undefined;
|
|
583
584
|
isSpam?: boolean | undefined;
|
|
584
585
|
app?: string | undefined;
|
|
585
|
-
abi?: string | undefined;
|
|
586
586
|
};
|
|
587
587
|
value: string;
|
|
588
588
|
hash: string;
|
|
@@ -685,10 +685,10 @@ export declare const transactionDecodedSchema: z.ZodObject<{
|
|
|
685
685
|
to?: {
|
|
686
686
|
address: string;
|
|
687
687
|
chainId: number;
|
|
688
|
+
abi?: string | undefined;
|
|
688
689
|
label?: string | undefined;
|
|
689
690
|
isSpam?: boolean | undefined;
|
|
690
691
|
app?: string | undefined;
|
|
691
|
-
abi?: string | undefined;
|
|
692
692
|
} | undefined;
|
|
693
693
|
contractAddress?: string | undefined;
|
|
694
694
|
}>;
|
|
@@ -65,8 +65,36 @@ export const megaEthHttpRpcs: HttpRpc[] = [
|
|
|
65
65
|
getLogsIsUsable: true,
|
|
66
66
|
getLogsMaxBlockRange: 10_000n,
|
|
67
67
|
},
|
|
68
|
+
{
|
|
69
|
+
url: 'https://rpc-megaeth-mainnet.globalstake.io',
|
|
70
|
+
getLogsIsUsable: true,
|
|
71
|
+
getLogsMaxBlockRange: 10_000n,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
url: 'https://1rpc.io/megaeth',
|
|
75
|
+
getLogsIsUsable: true,
|
|
76
|
+
getLogsMaxBlockRange: 10_000n,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
url: 'https://4326.rpc.thirdweb.com',
|
|
80
|
+
getLogsIsUsable: true,
|
|
81
|
+
getLogsMaxBlockRange: 1_000n,
|
|
82
|
+
},
|
|
83
|
+
// getLogs is silently capped at 1000 results
|
|
84
|
+
// {
|
|
85
|
+
// url: 'https://megaeth.blockscout.com/api/eth-rpc',
|
|
86
|
+
// getLogsIsUsable: true,
|
|
87
|
+
// getLogsMaxBlockRange: 1_000n,
|
|
88
|
+
// },
|
|
89
|
+
// Free tier rate limit / no historical getLogs
|
|
90
|
+
// {
|
|
91
|
+
// url: 'https://megaeth.drpc.org',
|
|
92
|
+
// getLogsIsUsable: true,
|
|
93
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
94
|
+
// },
|
|
68
95
|
]
|
|
69
96
|
|
|
70
97
|
export const megaEthWebsocketRpcUrls: readonly string[] = [
|
|
71
98
|
'wss://mainnet.megaeth.com/ws',
|
|
99
|
+
'wss://megaeth.drpc.org',
|
|
72
100
|
]
|
|
@@ -2,33 +2,28 @@ import { ethereum } from '@0xtorch/core'
|
|
|
2
2
|
import { scroll } 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
9
|
export const createScrollChain = ({
|
|
10
|
-
explorerApiKey: apiKey,
|
|
11
10
|
explorerProxyUrl: proxyUrl,
|
|
12
|
-
explorerPageSize: pageSize,
|
|
13
11
|
}: {
|
|
14
|
-
explorerApiKey?: string
|
|
15
12
|
explorerProxyUrl?: string
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
createScrollChainCustom({
|
|
13
|
+
}) => {
|
|
14
|
+
return createScrollChainCustom({
|
|
19
15
|
client: createClient({
|
|
20
16
|
chain: scroll,
|
|
21
17
|
httpRpcs: scrollHttpRpcs,
|
|
22
18
|
}),
|
|
23
|
-
explorer:
|
|
24
|
-
name: '
|
|
25
|
-
baseUrl: 'https://
|
|
26
|
-
|
|
27
|
-
apiKey,
|
|
19
|
+
explorer: createBlockscout({
|
|
20
|
+
name: 'Scroll Blockscout',
|
|
21
|
+
baseUrl: 'https://scroll.blockscout.com',
|
|
22
|
+
apiBaseUrl: 'https://scroll.blockscout.com/api',
|
|
28
23
|
proxyUrl,
|
|
29
|
-
pageSize,
|
|
30
24
|
}),
|
|
31
25
|
})
|
|
26
|
+
}
|
|
32
27
|
|
|
33
28
|
type CreateScrollChainParameters = {
|
|
34
29
|
client: Client
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/evm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.165",
|
|
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.68",
|
|
42
42
|
"abitype": "^1.0.9",
|
|
43
|
-
"viem": "^2.47.
|
|
43
|
+
"viem": "^2.47.11",
|
|
44
44
|
"zod": "^3.24.4"
|
|
45
45
|
}
|
|
46
46
|
}
|