ox 1.0.0-beta.1 → 1.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/dist/core/RpcSchema.d.ts +5 -3
- package/dist/core/RpcSchema.d.ts.map +1 -1
- package/dist/zod/RpcSchema.d.ts +91 -29
- package/dist/zod/RpcSchema.d.ts.map +1 -1
- package/dist/zod/RpcSchema.js +75 -12
- package/dist/zod/RpcSchema.js.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.d.ts +12 -12
- package/dist/zod/internal/rpcSchemas/Eth.d.ts.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.js +14 -12
- package/dist/zod/internal/rpcSchemas/Eth.js.map +1 -1
- package/package.json +1 -1
- package/src/core/RpcSchema.ts +5 -3
- package/src/version.ts +1 -1
- package/src/zod/RpcSchema.ts +108 -17
- package/src/zod/_test/RpcSchema.test-d.ts +27 -9
- package/src/zod/_test/RpcSchema.test.ts +86 -22
- package/src/zod/internal/rpcSchemas/Eth.ts +14 -12
- package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +1 -1
package/dist/core/RpcSchema.d.ts
CHANGED
|
@@ -253,8 +253,10 @@ export type FromViem<schema extends readonly ViemSchemaItem[]> = {
|
|
|
253
253
|
* Converts a record of Zod `params`/`returns` schemas (keyed by method name) to
|
|
254
254
|
* an Ox {@link ox#RpcSchema.Generic} (union of `{ Request, ReturnType }`).
|
|
255
255
|
*
|
|
256
|
-
* Each method's name comes from its key
|
|
257
|
-
*
|
|
256
|
+
* Each method's name comes from its key. Both `params` and `ReturnType` are
|
|
257
|
+
* derived from the Zod schema's input (wire) type, since raw JSON-RPC clients
|
|
258
|
+
* send and receive wire values. Decode wire results to their native
|
|
259
|
+
* representation explicitly via {@link ox#zod/RpcSchema.decodeReturns}.
|
|
258
260
|
*
|
|
259
261
|
* @example
|
|
260
262
|
* ```ts twoslash
|
|
@@ -271,7 +273,7 @@ export type FromZod<namespace extends FromZod.Namespace> = {
|
|
|
271
273
|
method: method;
|
|
272
274
|
params: z.input<namespace[method]['params']>;
|
|
273
275
|
};
|
|
274
|
-
ReturnType: z.
|
|
276
|
+
ReturnType: z.input<namespace[method]['returns']>;
|
|
275
277
|
}>;
|
|
276
278
|
}[keyof namespace & string];
|
|
277
279
|
export declare namespace FromZod {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchema.d.ts","sourceRoot":"","sources":["../../src/core/RpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEhE,YAAY,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAA;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,IAAI,CAAC,MAAM,SAAS,OAAO,KAAK,MAAM,CAErD;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,CACrB,MAAM,SAAS,OAAO,EACtB,UAAU,SAAS,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,IACtE,OAAO,CAAC;IACV,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IAC3C,UAAU,EAAE,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAClD,CAAC,CAAA;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,cAAc,CACxB,MAAM,SAAS,OAAO,EACtB,UAAU,SAAS,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,IACtE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;IAAE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 @@ export type { Item } from './internal/rpcSchemas/from.js';
|
|
|
13
13
|
* - A record of `{ params, returns }` keyed by method name, returning a
|
|
14
14
|
* normalized `RpcSchema.Namespace` (each method's name is taken from its key
|
|
15
15
|
* and its `request` schema is derived). The result is usable with the
|
|
16
|
-
* `RpcSchema.
|
|
16
|
+
* `RpcSchema.decode*`/`RpcSchema.encode*` methods and as a schema for
|
|
17
|
+
* `Provider`/`RpcTransport`.
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ### Single Method
|
|
@@ -24,7 +25,7 @@ export type { Item } from './internal/rpcSchemas/from.js';
|
|
|
24
25
|
* const eth_blockNumber = z.RpcSchema.from({
|
|
25
26
|
* method: 'eth_blockNumber',
|
|
26
27
|
* params: z.optional(z.tuple([])),
|
|
27
|
-
* returns: z.Hex.Hex
|
|
28
|
+
* returns: z.Hex.Hex
|
|
28
29
|
* })
|
|
29
30
|
* ```
|
|
30
31
|
*
|
|
@@ -38,11 +39,15 @@ export type { Item } from './internal/rpcSchemas/from.js';
|
|
|
38
39
|
* ...z.RpcSchema.Eth,
|
|
39
40
|
* abe_foo: {
|
|
40
41
|
* params: z.tuple([z.number()]),
|
|
41
|
-
* returns: z.string()
|
|
42
|
-
* }
|
|
42
|
+
* returns: z.string()
|
|
43
|
+
* }
|
|
43
44
|
* })
|
|
44
45
|
*
|
|
45
|
-
* const params = z.RpcSchema.
|
|
46
|
+
* const params = z.RpcSchema.decodeParams(
|
|
47
|
+
* schema,
|
|
48
|
+
* 'abe_foo',
|
|
49
|
+
* [123]
|
|
50
|
+
* )
|
|
46
51
|
* ```
|
|
47
52
|
*/
|
|
48
53
|
export declare function from<const method extends string, params extends z.ZodMiniType, returns extends z.ZodMiniType>(parameters: {
|
|
@@ -295,8 +300,8 @@ export declare const Default: {
|
|
|
295
300
|
}, z.core.$strip>;
|
|
296
301
|
}, z.core.$strip>], null>, z.ZodMiniBoolean<boolean>>;
|
|
297
302
|
eth_accounts: Item<"eth_accounts", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
298
|
-
eth_blobBaseFee: Item<"eth_blobBaseFee", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
299
|
-
eth_blockNumber: Item<"eth_blockNumber", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
303
|
+
eth_blobBaseFee: Item<"eth_blobBaseFee", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
304
|
+
eth_blockNumber: Item<"eth_blockNumber", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
300
305
|
eth_call: Item<"eth_call", z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
301
306
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
302
307
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -424,7 +429,7 @@ export declare const Default: {
|
|
|
424
429
|
movePrecompileToAddress: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
425
430
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
426
431
|
}, z.core.$strip>]>>], null>]>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
427
|
-
eth_chainId: Item<"eth_chainId", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
432
|
+
eth_chainId: Item<"eth_chainId", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
428
433
|
eth_coinbase: Item<"eth_coinbase", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
429
434
|
eth_estimateGas: Item<"eth_estimateGas", z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
430
435
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -552,14 +557,14 @@ export declare const Default: {
|
|
|
552
557
|
code: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
553
558
|
movePrecompileToAddress: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
554
559
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
555
|
-
}, z.core.$strip>]>>], null>]>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
560
|
+
}, z.core.$strip>]>>], null>]>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
556
561
|
eth_feeHistory: Item<"eth_feeHistory", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>, z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniNumber<number>>, z.ZodMiniUndefined]>], null>, z.ZodMiniObject<{
|
|
557
562
|
baseFeePerGas: z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
558
563
|
gasUsedRatio: z.ZodMiniArray<z.ZodMiniNumber<number>>;
|
|
559
564
|
oldestBlock: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
560
565
|
reward: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>>>;
|
|
561
566
|
}, z.core.$strip>>;
|
|
562
|
-
eth_gasPrice: Item<"eth_gasPrice", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
567
|
+
eth_gasPrice: Item<"eth_gasPrice", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
563
568
|
eth_getBalance: Item<"eth_getBalance", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
564
569
|
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
565
570
|
blockHash: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
@@ -568,7 +573,7 @@ export declare const Default: {
|
|
|
568
573
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
569
574
|
blockNumber: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
570
575
|
requireCanonical: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
571
|
-
}, z.core.$strip>]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
576
|
+
}, z.core.$strip>]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
572
577
|
eth_getBlockByHash: Item<"eth_getBlockByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBoolean<boolean>], null>, z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
573
578
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
574
579
|
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -1431,8 +1436,8 @@ export declare const Default: {
|
|
|
1431
1436
|
}, z.core.$strip>>>>;
|
|
1432
1437
|
withdrawalsRoot: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1433
1438
|
}, z.core.$strip>]>>>;
|
|
1434
|
-
eth_getBlockTransactionCountByHash: Item<"eth_getBlockTransactionCountByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
1435
|
-
eth_getBlockTransactionCountByNumber: Item<"eth_getBlockTransactionCountByNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
1439
|
+
eth_getBlockTransactionCountByHash: Item<"eth_getBlockTransactionCountByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
1440
|
+
eth_getBlockTransactionCountByNumber: Item<"eth_getBlockTransactionCountByNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
1436
1441
|
eth_getCode: Item<"eth_getCode", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1437
1442
|
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
1438
1443
|
blockHash: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
@@ -2425,7 +2430,7 @@ export declare const Default: {
|
|
|
2425
2430
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2426
2431
|
blockNumber: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
2427
2432
|
requireCanonical: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2428
|
-
}, z.core.$strip>]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2433
|
+
}, z.core.$strip>]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2429
2434
|
eth_getTransactionReceipt: Item<"eth_getTransactionReceipt", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniNullable<z.ZodMiniObject<{
|
|
2430
2435
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
2431
2436
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -2456,9 +2461,9 @@ export declare const Default: {
|
|
|
2456
2461
|
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>;
|
|
2457
2462
|
type: z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
2458
2463
|
}, z.core.$strip>>>;
|
|
2459
|
-
eth_getUncleCountByBlockHash: Item<"eth_getUncleCountByBlockHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2460
|
-
eth_getUncleCountByBlockNumber: Item<"eth_getUncleCountByBlockNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2461
|
-
eth_maxPriorityFeePerGas: Item<"eth_maxPriorityFeePerGas", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2464
|
+
eth_getUncleCountByBlockHash: Item<"eth_getUncleCountByBlockHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2465
|
+
eth_getUncleCountByBlockNumber: Item<"eth_getUncleCountByBlockNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2466
|
+
eth_maxPriorityFeePerGas: Item<"eth_maxPriorityFeePerGas", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
2462
2467
|
eth_newBlockFilter: Item<"eth_newBlockFilter", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
2463
2468
|
eth_newFilter: Item<"eth_newFilter", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2464
2469
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -3025,13 +3030,15 @@ export declare const Default: {
|
|
|
3025
3030
|
*/
|
|
3026
3031
|
export declare function parseItem<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method): namespace[method];
|
|
3027
3032
|
/**
|
|
3028
|
-
*
|
|
3033
|
+
* Decodes (wire → native) the `params` for a method on a namespace. Use on the
|
|
3034
|
+
* receiving side (e.g. a server) to coerce incoming wire params into their
|
|
3035
|
+
* native representation.
|
|
3029
3036
|
*
|
|
3030
3037
|
* @example
|
|
3031
3038
|
* ```ts twoslash
|
|
3032
3039
|
* import { z } from 'ox/zod'
|
|
3033
3040
|
*
|
|
3034
|
-
* const params = z.RpcSchema.
|
|
3041
|
+
* const params = z.RpcSchema.decodeParams(
|
|
3035
3042
|
* z.RpcSchema.Eth,
|
|
3036
3043
|
* 'eth_getBlockByNumber',
|
|
3037
3044
|
* ['0x1', true]
|
|
@@ -3040,15 +3047,36 @@ export declare function parseItem<const namespace extends Namespace, method exte
|
|
|
3040
3047
|
*
|
|
3041
3048
|
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
3042
3049
|
*/
|
|
3043
|
-
export declare function
|
|
3050
|
+
export declare function decodeParams<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method, params: z.input<namespace[method]['params']>): z.output<namespace[method]['params']>;
|
|
3051
|
+
/**
|
|
3052
|
+
* Encodes (native → wire) the `params` for a method on a namespace. Use on the
|
|
3053
|
+
* sending side (e.g. a client) to serialize native params into the wire shape
|
|
3054
|
+
* a JSON-RPC endpoint expects.
|
|
3055
|
+
*
|
|
3056
|
+
* @example
|
|
3057
|
+
* ```ts twoslash
|
|
3058
|
+
* import { z } from 'ox/zod'
|
|
3059
|
+
*
|
|
3060
|
+
* const params = z.RpcSchema.encodeParams(
|
|
3061
|
+
* z.RpcSchema.Eth,
|
|
3062
|
+
* 'eth_getBlockByNumber',
|
|
3063
|
+
* [1n, true]
|
|
3064
|
+
* )
|
|
3065
|
+
* ```
|
|
3066
|
+
*
|
|
3067
|
+
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
3068
|
+
*/
|
|
3069
|
+
export declare function encodeParams<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method, params: z.output<namespace[method]['params']>): z.input<namespace[method]['params']>;
|
|
3044
3070
|
/**
|
|
3045
|
-
*
|
|
3071
|
+
* Decodes (wire → native) the `returns` value for a method on a namespace. Use
|
|
3072
|
+
* on the receiving side (e.g. a client) to coerce a wire result into its native
|
|
3073
|
+
* representation.
|
|
3046
3074
|
*
|
|
3047
3075
|
* @example
|
|
3048
3076
|
* ```ts twoslash
|
|
3049
3077
|
* import { z } from 'ox/zod'
|
|
3050
3078
|
*
|
|
3051
|
-
* const result = z.RpcSchema.
|
|
3079
|
+
* const result = z.RpcSchema.decodeReturns(
|
|
3052
3080
|
* z.RpcSchema.Eth,
|
|
3053
3081
|
* 'eth_blockNumber',
|
|
3054
3082
|
* '0x1b4'
|
|
@@ -3057,24 +3085,58 @@ export declare function parseParams<const namespace extends Namespace, method ex
|
|
|
3057
3085
|
*
|
|
3058
3086
|
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
3059
3087
|
*/
|
|
3060
|
-
export declare function
|
|
3088
|
+
export declare function decodeReturns<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method, returns: z.input<namespace[method]['returns']>): z.output<namespace[method]['returns']>;
|
|
3089
|
+
/**
|
|
3090
|
+
* Encodes (native → wire) the `returns` value for a method on a namespace. Use
|
|
3091
|
+
* on the sending side (e.g. a server) to serialize a native result into the
|
|
3092
|
+
* wire shape.
|
|
3093
|
+
*
|
|
3094
|
+
* @example
|
|
3095
|
+
* ```ts twoslash
|
|
3096
|
+
* import { z } from 'ox/zod'
|
|
3097
|
+
*
|
|
3098
|
+
* const result = z.RpcSchema.encodeReturns(
|
|
3099
|
+
* z.RpcSchema.Eth,
|
|
3100
|
+
* 'eth_blockNumber',
|
|
3101
|
+
* 436n
|
|
3102
|
+
* )
|
|
3103
|
+
* ```
|
|
3104
|
+
*
|
|
3105
|
+
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
3106
|
+
*/
|
|
3107
|
+
export declare function encodeReturns<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method, returns: z.output<namespace[method]['returns']>): z.input<namespace[method]['returns']>;
|
|
3061
3108
|
/**
|
|
3062
|
-
*
|
|
3063
|
-
* a namespace, dispatching on `method`.
|
|
3109
|
+
* Decodes (wire → native) a full JSON-RPC request (`{ method, params }`)
|
|
3110
|
+
* against a namespace, dispatching on `method`.
|
|
3064
3111
|
*
|
|
3065
3112
|
* @example
|
|
3066
3113
|
* ```ts twoslash
|
|
3067
3114
|
* import { z } from 'ox/zod'
|
|
3068
3115
|
*
|
|
3069
|
-
* const request = z.RpcSchema.
|
|
3116
|
+
* const request = z.RpcSchema.decodeRequest(z.RpcSchema.Eth, {
|
|
3070
3117
|
* method: 'eth_getBlockByNumber',
|
|
3071
3118
|
* params: ['0x1', true]
|
|
3072
3119
|
* })
|
|
3073
3120
|
* ```
|
|
3074
3121
|
*/
|
|
3075
|
-
export declare function
|
|
3122
|
+
export declare function decodeRequest<const namespace extends Namespace>(namespace: namespace, request: RequestInput<namespace>): RequestOutput<namespace>;
|
|
3123
|
+
/**
|
|
3124
|
+
* Encodes (native → wire) a full JSON-RPC request (`{ method, params }`)
|
|
3125
|
+
* against a namespace, dispatching on `method`.
|
|
3126
|
+
*
|
|
3127
|
+
* @example
|
|
3128
|
+
* ```ts twoslash
|
|
3129
|
+
* import { z } from 'ox/zod'
|
|
3130
|
+
*
|
|
3131
|
+
* const request = z.RpcSchema.encodeRequest(z.RpcSchema.Eth, {
|
|
3132
|
+
* method: 'eth_getBlockByNumber',
|
|
3133
|
+
* params: [1n, true]
|
|
3134
|
+
* })
|
|
3135
|
+
* ```
|
|
3136
|
+
*/
|
|
3137
|
+
export declare function encodeRequest<const namespace extends Namespace>(namespace: namespace, request: RequestOutput<namespace>): RequestInput<namespace>;
|
|
3076
3138
|
/**
|
|
3077
|
-
* Alias for `RpcSchema.
|
|
3139
|
+
* Alias for `RpcSchema.decodeRequest`.
|
|
3078
3140
|
*
|
|
3079
3141
|
* @example
|
|
3080
3142
|
* ```ts twoslash
|
|
@@ -3089,7 +3151,7 @@ export declare function parseRequest<const namespace extends Namespace>(namespac
|
|
|
3089
3151
|
* })
|
|
3090
3152
|
* ```
|
|
3091
3153
|
*/
|
|
3092
|
-
export declare const parse: typeof
|
|
3154
|
+
export declare const parse: typeof decodeRequest;
|
|
3093
3155
|
/** Wire (input) request envelope for a namespace. */
|
|
3094
3156
|
export type RequestInput<namespace extends Namespace> = {
|
|
3095
3157
|
[method in MethodName<namespace>]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchema.d.ts","sourceRoot":"","sources":["../../src/zod/RpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAA;AAEnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,YAAY,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAEzD
|
|
1
|
+
{"version":3,"file":"RpcSchema.d.ts","sourceRoot":"","sources":["../../src/zod/RpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAA;AAEnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,YAAY,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,IAAI,CAClB,KAAK,CAAC,MAAM,SAAS,MAAM,EAC3B,MAAM,SAAS,CAAC,CAAC,WAAW,EAC5B,OAAO,S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,SAAS,CAAC,CAAC,CAAA;AAExB,0DAA0D;AAC1D,qBAAa,mBAAoB,SAAQ,MAAM,CAAC,SAAS;IACvD,SAAkB,IAAI,mCAAkC;gBAE5C,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAG3C"}
|
package/dist/zod/RpcSchema.js
CHANGED
|
@@ -50,13 +50,15 @@ export function parseItem(namespace, method) {
|
|
|
50
50
|
return item;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Decodes (wire → native) the `params` for a method on a namespace. Use on the
|
|
54
|
+
* receiving side (e.g. a server) to coerce incoming wire params into their
|
|
55
|
+
* native representation.
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
58
|
* ```ts twoslash
|
|
57
59
|
* import { z } from 'ox/zod'
|
|
58
60
|
*
|
|
59
|
-
* const params = z.RpcSchema.
|
|
61
|
+
* const params = z.RpcSchema.decodeParams(
|
|
60
62
|
* z.RpcSchema.Eth,
|
|
61
63
|
* 'eth_getBlockByNumber',
|
|
62
64
|
* ['0x1', true]
|
|
@@ -65,17 +67,40 @@ export function parseItem(namespace, method) {
|
|
|
65
67
|
*
|
|
66
68
|
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
67
69
|
*/
|
|
68
|
-
export function
|
|
70
|
+
export function decodeParams(namespace, method, params) {
|
|
69
71
|
return z.decode(parseItem(namespace, method).params, params);
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* Encodes (native → wire) the `params` for a method on a namespace. Use on the
|
|
75
|
+
* sending side (e.g. a client) to serialize native params into the wire shape
|
|
76
|
+
* a JSON-RPC endpoint expects.
|
|
73
77
|
*
|
|
74
78
|
* @example
|
|
75
79
|
* ```ts twoslash
|
|
76
80
|
* import { z } from 'ox/zod'
|
|
77
81
|
*
|
|
78
|
-
* const
|
|
82
|
+
* const params = z.RpcSchema.encodeParams(
|
|
83
|
+
* z.RpcSchema.Eth,
|
|
84
|
+
* 'eth_getBlockByNumber',
|
|
85
|
+
* [1n, true]
|
|
86
|
+
* )
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
90
|
+
*/
|
|
91
|
+
export function encodeParams(namespace, method, params) {
|
|
92
|
+
return z.encode(parseItem(namespace, method).params, params);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Decodes (wire → native) the `returns` value for a method on a namespace. Use
|
|
96
|
+
* on the receiving side (e.g. a client) to coerce a wire result into its native
|
|
97
|
+
* representation.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts twoslash
|
|
101
|
+
* import { z } from 'ox/zod'
|
|
102
|
+
*
|
|
103
|
+
* const result = z.RpcSchema.decodeReturns(
|
|
79
104
|
* z.RpcSchema.Eth,
|
|
80
105
|
* 'eth_blockNumber',
|
|
81
106
|
* '0x1b4'
|
|
@@ -84,28 +109,66 @@ export function parseParams(namespace, method, params) {
|
|
|
84
109
|
*
|
|
85
110
|
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
86
111
|
*/
|
|
87
|
-
export function
|
|
112
|
+
export function decodeReturns(namespace, method, returns) {
|
|
88
113
|
return z.decode(parseItem(namespace, method).returns, returns);
|
|
89
114
|
}
|
|
90
115
|
/**
|
|
91
|
-
*
|
|
92
|
-
* a
|
|
116
|
+
* Encodes (native → wire) the `returns` value for a method on a namespace. Use
|
|
117
|
+
* on the sending side (e.g. a server) to serialize a native result into the
|
|
118
|
+
* wire shape.
|
|
93
119
|
*
|
|
94
120
|
* @example
|
|
95
121
|
* ```ts twoslash
|
|
96
122
|
* import { z } from 'ox/zod'
|
|
97
123
|
*
|
|
98
|
-
* const
|
|
124
|
+
* const result = z.RpcSchema.encodeReturns(
|
|
125
|
+
* z.RpcSchema.Eth,
|
|
126
|
+
* 'eth_blockNumber',
|
|
127
|
+
* 436n
|
|
128
|
+
* )
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @throws `RpcSchema.MethodNotFoundError` if the method does not exist.
|
|
132
|
+
*/
|
|
133
|
+
export function encodeReturns(namespace, method, returns) {
|
|
134
|
+
return z.encode(parseItem(namespace, method).returns, returns);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Decodes (wire → native) a full JSON-RPC request (`{ method, params }`)
|
|
138
|
+
* against a namespace, dispatching on `method`.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts twoslash
|
|
142
|
+
* import { z } from 'ox/zod'
|
|
143
|
+
*
|
|
144
|
+
* const request = z.RpcSchema.decodeRequest(z.RpcSchema.Eth, {
|
|
99
145
|
* method: 'eth_getBlockByNumber',
|
|
100
146
|
* params: ['0x1', true]
|
|
101
147
|
* })
|
|
102
148
|
* ```
|
|
103
149
|
*/
|
|
104
|
-
export function
|
|
150
|
+
export function decodeRequest(namespace, request) {
|
|
105
151
|
return z.decode(requestSchema(namespace), request);
|
|
106
152
|
}
|
|
107
153
|
/**
|
|
108
|
-
*
|
|
154
|
+
* Encodes (native → wire) a full JSON-RPC request (`{ method, params }`)
|
|
155
|
+
* against a namespace, dispatching on `method`.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts twoslash
|
|
159
|
+
* import { z } from 'ox/zod'
|
|
160
|
+
*
|
|
161
|
+
* const request = z.RpcSchema.encodeRequest(z.RpcSchema.Eth, {
|
|
162
|
+
* method: 'eth_getBlockByNumber',
|
|
163
|
+
* params: [1n, true]
|
|
164
|
+
* })
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
export function encodeRequest(namespace, request) {
|
|
168
|
+
return z.encode(requestSchema(namespace), request);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Alias for `RpcSchema.decodeRequest`.
|
|
109
172
|
*
|
|
110
173
|
* @example
|
|
111
174
|
* ```ts twoslash
|
|
@@ -120,7 +183,7 @@ export function parseRequest(namespace, request) {
|
|
|
120
183
|
* })
|
|
121
184
|
* ```
|
|
122
185
|
*/
|
|
123
|
-
export const parse =
|
|
186
|
+
export const parse = decodeRequest;
|
|
124
187
|
/** Thrown when a method does not exist on a namespace. */
|
|
125
188
|
export class MethodNotFoundError extends Errors.BaseError {
|
|
126
189
|
name = 'RpcSchema.MethodNotFoundError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchema.js","sourceRoot":"","sources":["../../src/zod/RpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAA;AACnD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"RpcSchema.js","sourceRoot":"","sources":["../../src/zod/RpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAA;AACnD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AA8D7B,kDAAkD;AAClD,MAAM,UAAU,IAAI,CAClB,KAEkB;IAElB,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;QAClC,OAAO,QAAQ,CAAC,KAAuC,CAAC,CAAA;IAC1D,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC9D,MAAM;QACN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,IAAI,GAAG,+BAA+B,CAAA;IAExD,YAAY,EAAE,MAAM,EAAsB;QACxC,KAAK,CAAC,YAAY,MAAM,kCAAkC,CAAC,CAAA;IAC7D,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
2
|
export declare const eth_accounts: import("./from.js").Item<"eth_accounts", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
3
|
-
export declare const eth_blobBaseFee: import("./from.js").Item<"eth_blobBaseFee", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
4
|
-
export declare const eth_blockNumber: import("./from.js").Item<"eth_blockNumber", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
3
|
+
export declare const eth_blobBaseFee: import("./from.js").Item<"eth_blobBaseFee", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
4
|
+
export declare const eth_blockNumber: import("./from.js").Item<"eth_blockNumber", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
5
5
|
export declare const eth_call: import("./from.js").Item<"eth_call", z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
6
6
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
7
7
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -129,7 +129,7 @@ export declare const eth_call: import("./from.js").Item<"eth_call", z.ZodMiniUni
|
|
|
129
129
|
movePrecompileToAddress: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
130
130
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
131
131
|
}, z.core.$strip>]>>], null>]>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
132
|
-
export declare const eth_chainId: import("./from.js").Item<"eth_chainId", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
132
|
+
export declare const eth_chainId: import("./from.js").Item<"eth_chainId", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
133
133
|
export declare const eth_coinbase: import("./from.js").Item<"eth_coinbase", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
134
134
|
export declare const eth_estimateGas: import("./from.js").Item<"eth_estimateGas", z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
135
135
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -257,14 +257,14 @@ export declare const eth_estimateGas: import("./from.js").Item<"eth_estimateGas"
|
|
|
257
257
|
code: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
258
258
|
movePrecompileToAddress: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
259
259
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
260
|
-
}, z.core.$strip>]>>], null>]>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
260
|
+
}, z.core.$strip>]>>], null>]>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
261
261
|
export declare const eth_feeHistory: import("./from.js").Item<"eth_feeHistory", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>, z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniNumber<number>>, z.ZodMiniUndefined]>], null>, z.ZodMiniObject<{
|
|
262
262
|
baseFeePerGas: z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
263
263
|
gasUsedRatio: z.ZodMiniArray<z.ZodMiniNumber<number>>;
|
|
264
264
|
oldestBlock: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
265
265
|
reward: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>>>;
|
|
266
266
|
}, z.core.$strip>>;
|
|
267
|
-
export declare const eth_gasPrice: import("./from.js").Item<"eth_gasPrice", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
267
|
+
export declare const eth_gasPrice: import("./from.js").Item<"eth_gasPrice", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
268
268
|
export declare const eth_getBalance: import("./from.js").Item<"eth_getBalance", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
269
269
|
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
270
270
|
blockHash: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
@@ -273,7 +273,7 @@ export declare const eth_getBalance: import("./from.js").Item<"eth_getBalance",
|
|
|
273
273
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
274
274
|
blockNumber: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
275
275
|
requireCanonical: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
276
|
-
}, z.core.$strip>]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
276
|
+
}, z.core.$strip>]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
277
277
|
export declare const eth_getBlockByHash: import("./from.js").Item<"eth_getBlockByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBoolean<boolean>], null>, z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
278
278
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
279
279
|
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -1136,8 +1136,8 @@ export declare const eth_getBlockByNumber: import("./from.js").Item<"eth_getBloc
|
|
|
1136
1136
|
}, z.core.$strip>>>>;
|
|
1137
1137
|
withdrawalsRoot: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1138
1138
|
}, z.core.$strip>]>>>;
|
|
1139
|
-
export declare const eth_getBlockTransactionCountByHash: import("./from.js").Item<"eth_getBlockTransactionCountByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
1140
|
-
export declare const eth_getBlockTransactionCountByNumber: import("./from.js").Item<"eth_getBlockTransactionCountByNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
1139
|
+
export declare const eth_getBlockTransactionCountByHash: import("./from.js").Item<"eth_getBlockTransactionCountByHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
1140
|
+
export declare const eth_getBlockTransactionCountByNumber: import("./from.js").Item<"eth_getBlockTransactionCountByNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
1141
1141
|
export declare const eth_getCode: import("./from.js").Item<"eth_getCode", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1142
1142
|
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
1143
1143
|
blockHash: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
@@ -2130,7 +2130,7 @@ export declare const eth_getTransactionCount: import("./from.js").Item<"eth_getT
|
|
|
2130
2130
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2131
2131
|
blockNumber: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
2132
2132
|
requireCanonical: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2133
|
-
}, z.core.$strip>]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2133
|
+
}, z.core.$strip>]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2134
2134
|
export declare const eth_getTransactionReceipt: import("./from.js").Item<"eth_getTransactionReceipt", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniNullable<z.ZodMiniObject<{
|
|
2135
2135
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
2136
2136
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -2161,9 +2161,9 @@ export declare const eth_getTransactionReceipt: import("./from.js").Item<"eth_ge
|
|
|
2161
2161
|
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>;
|
|
2162
2162
|
type: z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
2163
2163
|
}, z.core.$strip>>>;
|
|
2164
|
-
export declare const eth_getUncleCountByBlockHash: import("./from.js").Item<"eth_getUncleCountByBlockHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2165
|
-
export declare const eth_getUncleCountByBlockNumber: import("./from.js").Item<"eth_getUncleCountByBlockNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2166
|
-
export declare const eth_maxPriorityFeePerGas: import("./from.js").Item<"eth_maxPriorityFeePerGas", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}
|
|
2164
|
+
export declare const eth_getUncleCountByBlockHash: import("./from.js").Item<"eth_getUncleCountByBlockHash", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2165
|
+
export declare const eth_getUncleCountByBlockNumber: import("./from.js").Item<"eth_getUncleCountByBlockNumber", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"latest">, z.ZodMiniLiteral<"earliest">, z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"safe">, z.ZodMiniLiteral<"finalized">]>]>], null>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
2166
|
+
export declare const eth_maxPriorityFeePerGas: import("./from.js").Item<"eth_maxPriorityFeePerGas", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
2167
2167
|
export declare const eth_newBlockFilter: import("./from.js").Item<"eth_newBlockFilter", z.ZodMiniOptional<z.ZodMiniTuple<[], null>>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
2168
2168
|
export declare const eth_newFilter: import("./from.js").Item<"eth_newFilter", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2169
2169
|
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Eth.d.ts","sourceRoot":"","sources":["../../../../src/zod/internal/rpcSchemas/Eth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Eth.d.ts","sourceRoot":"","sources":["../../../../src/zod/internal/rpcSchemas/Eth.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAwC7B,eAAO,MAAM,YAAY,gJAIvB,CAAA;AAEF,eAAO,MAAM,eAAe,4KAI1B,CAAA;AAEF,eAAO,MAAM,eAAe,4KAI1B,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAInB,CAAA;AAEF,eAAO,MAAM,WAAW,sKAItB,CAAA;AAEF,eAAO,MAAM,YAAY,gIAIvB,CAAA;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