@0xtorch/evm 0.0.13 → 0.0.15
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/analyzer/json/components/comment.js +3 -0
- package/_cjs/analyzer/json/components/comment.js.map +1 -1
- package/_cjs/analyzer/json/components/id.js +3 -0
- package/_cjs/analyzer/json/components/id.js.map +1 -1
- package/_cjs/analyzer/json/generator.js +2 -591
- package/_cjs/analyzer/json/generator.js.map +1 -1
- package/_cjs/analyzer/json/schemas/generator.js +5 -0
- package/_cjs/analyzer/json/schemas/generator.js.map +1 -1
- package/_esm/analyzer/json/components/comment.js +3 -0
- package/_esm/analyzer/json/components/comment.js.map +1 -1
- package/_esm/analyzer/json/components/id.js +3 -0
- package/_esm/analyzer/json/components/id.js.map +1 -1
- package/_esm/analyzer/json/generator.js +4 -644
- package/_esm/analyzer/json/generator.js.map +1 -1
- package/_esm/analyzer/json/schemas/generator.js +6 -0
- package/_esm/analyzer/json/schemas/generator.js.map +1 -1
- package/_types/analyzer/json/components/comment.d.ts.map +1 -1
- package/_types/analyzer/json/components/id.d.ts.map +1 -1
- package/_types/analyzer/json/generator.d.ts.map +1 -1
- package/_types/analyzer/json/schemas/generator.d.ts +12 -0
- package/_types/analyzer/json/schemas/generator.d.ts.map +1 -1
- package/analyzer/json/components/comment.ts +3 -0
- package/analyzer/json/components/id.ts +3 -0
- package/analyzer/json/generator.ts +6 -909
- package/analyzer/json/schemas/generator.ts +7 -0
- package/package.json +2 -2
|
@@ -16,6 +16,11 @@ const valueComponentSchema = z.object({
|
|
|
16
16
|
type: z.literal('value'),
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
+
/** evm chainId 取得 component */
|
|
20
|
+
const chainIdComponentSchema = z.object({
|
|
21
|
+
type: z.literal('chainId'),
|
|
22
|
+
})
|
|
23
|
+
|
|
19
24
|
/** log argument 取得 component */
|
|
20
25
|
export const logArgumentRawComponentSchema = z.object({
|
|
21
26
|
type: z.literal('log'),
|
|
@@ -173,6 +178,7 @@ export const commentComponentSchema = z.union([
|
|
|
173
178
|
z.string(),
|
|
174
179
|
z.number(),
|
|
175
180
|
z.bigint(),
|
|
181
|
+
chainIdComponentSchema,
|
|
176
182
|
transactionAddressComponentSchema,
|
|
177
183
|
valueComponentSchema,
|
|
178
184
|
logArgumentComponentSchema,
|
|
@@ -183,6 +189,7 @@ export const idComponentSchema = z.union([
|
|
|
183
189
|
z.string(),
|
|
184
190
|
z.number(),
|
|
185
191
|
z.bigint(),
|
|
192
|
+
chainIdComponentSchema,
|
|
186
193
|
transactionAddressComponentSchema,
|
|
187
194
|
valueComponentSchema,
|
|
188
195
|
logArgumentComponentSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/evm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Cryptorch EVM extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cryptorch",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@0xtorch/big-decimal": "^0.0.9",
|
|
41
|
-
"@0xtorch/core": "^0.0.
|
|
41
|
+
"@0xtorch/core": "^0.0.16",
|
|
42
42
|
"@supercharge/promise-pool": "^3.1.1",
|
|
43
43
|
"viem": "^2.9.16",
|
|
44
44
|
"zod": "^3.22.4"
|