ox 1.8.5 → 1.8.7
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/CHANGELOG.md +37 -0
- package/dist/tempo/{MultisigConfig.d.ts → AccountConfig.d.ts} +116 -63
- package/dist/tempo/AccountConfig.d.ts.map +1 -0
- package/dist/tempo/{MultisigConfig.js → AccountConfig.js} +109 -55
- package/dist/tempo/AccountConfig.js.map +1 -0
- package/dist/tempo/{MultisigOperation.d.ts → AccountOperation.d.ts} +62 -62
- package/dist/tempo/AccountOperation.d.ts.map +1 -0
- package/dist/tempo/{MultisigOperation.js → AccountOperation.js} +64 -64
- package/dist/tempo/AccountOperation.js.map +1 -0
- package/dist/tempo/{MultisigSimulation.d.ts → AccountSimulation.d.ts} +21 -21
- package/dist/tempo/AccountSimulation.d.ts.map +1 -0
- package/dist/tempo/{MultisigSimulation.js → AccountSimulation.js} +20 -20
- package/dist/tempo/AccountSimulation.js.map +1 -0
- package/dist/tempo/KeyAuthorization.d.ts +37 -27
- package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/tempo/KeyAuthorization.js +17 -19
- package/dist/tempo/KeyAuthorization.js.map +1 -1
- package/dist/tempo/RpcSchemaTempo.d.ts +13 -13
- package/dist/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.d.ts +36 -33
- package/dist/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.js +77 -77
- package/dist/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/tempo/TokenRole.d.ts +4 -2
- package/dist/tempo/TokenRole.d.ts.map +1 -1
- package/dist/tempo/TokenRole.js +4 -1
- package/dist/tempo/TokenRole.js.map +1 -1
- package/dist/tempo/TransactionRequest.d.ts +11 -9
- package/dist/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/tempo/TransactionRequest.js +14 -10
- package/dist/tempo/TransactionRequest.js.map +1 -1
- package/dist/tempo/index.d.ts +56 -54
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +56 -54
- package/dist/tempo/index.js.map +1 -1
- package/dist/zod/tempo/{MultisigConfig.d.ts → AccountConfig.d.ts} +6 -6
- package/dist/zod/tempo/AccountConfig.d.ts.map +1 -0
- package/dist/zod/tempo/{MultisigConfig.js → AccountConfig.js} +12 -12
- package/dist/zod/tempo/AccountConfig.js.map +1 -0
- package/dist/zod/tempo/{MultisigOperation.d.ts → AccountOperation.d.ts} +5 -5
- package/dist/zod/tempo/AccountOperation.d.ts.map +1 -0
- package/dist/zod/tempo/{MultisigOperation.js → AccountOperation.js} +10 -10
- package/dist/zod/tempo/AccountOperation.js.map +1 -0
- package/dist/zod/tempo/{MultisigSimulation.d.ts → AccountSimulation.d.ts} +5 -5
- package/dist/zod/tempo/AccountSimulation.d.ts.map +1 -0
- package/dist/zod/tempo/AccountSimulation.js +44 -0
- package/dist/zod/tempo/AccountSimulation.js.map +1 -0
- package/dist/zod/tempo/AuthorizationTempo.d.ts +10 -10
- package/dist/zod/tempo/KeyAuthorization.d.ts +12 -12
- package/dist/zod/tempo/KeyAuthorization.js +6 -6
- package/dist/zod/tempo/KeyAuthorization.js.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +59 -59
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.js +28 -28
- package/dist/zod/tempo/RpcSchemaTempo.js.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.d.ts +7 -7
- package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.js +22 -16
- package/dist/zod/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/zod/tempo/TokenRole.d.ts +1 -1
- package/dist/zod/tempo/TokenRole.d.ts.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +24 -24
- package/dist/zod/tempo/TransactionRequest.d.ts +84 -84
- package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.js +26 -17
- package/dist/zod/tempo/TransactionRequest.js.map +1 -1
- package/dist/zod/tempo/TxEnvelopeTempo.d.ts +12 -12
- package/dist/zod/tempo/ZoneRpcAuthentication.d.ts +3 -3
- package/dist/zod/tempo/z.d.ts +3 -3
- package/dist/zod/tempo/z.d.ts.map +1 -1
- package/dist/zod/tempo/z.js +3 -3
- package/dist/zod/tempo/z.js.map +1 -1
- package/package.json +31 -31
- package/src/tempo/{MultisigConfig.test-d.ts → AccountConfig.test-d.ts} +22 -12
- package/src/tempo/{MultisigConfig.test.ts → AccountConfig.test.ts} +155 -37
- package/src/tempo/{MultisigConfig.ts → AccountConfig.ts} +138 -66
- package/src/tempo/AccountOperation.test-d.ts +79 -0
- package/src/tempo/{MultisigOperation.test.ts → AccountOperation.test.ts} +97 -97
- package/src/tempo/{MultisigOperation.ts → AccountOperation.ts} +95 -97
- package/src/tempo/{MultisigSimulation.test-d.ts → AccountSimulation.test-d.ts} +7 -9
- package/src/tempo/{MultisigSimulation.test.ts → AccountSimulation.test.ts} +28 -28
- package/src/tempo/{MultisigSimulation.ts → AccountSimulation.ts} +28 -30
- package/src/tempo/KeyAuthorization.test-d.ts +15 -6
- package/src/tempo/KeyAuthorization.test.ts +117 -37
- package/src/tempo/KeyAuthorization.ts +68 -59
- package/src/tempo/RpcSchemaTempo.test-d.ts +19 -19
- package/src/tempo/RpcSchemaTempo.ts +13 -13
- package/src/tempo/SignatureEnvelope.test-d.ts +7 -7
- package/src/tempo/SignatureEnvelope.test.ts +34 -34
- package/src/tempo/SignatureEnvelope.ts +112 -108
- package/src/tempo/TokenRole.ts +4 -1
- package/src/tempo/Transaction.test.ts +4 -4
- package/src/tempo/TransactionRequest.test-d.ts +17 -6
- package/src/tempo/TransactionRequest.test.ts +32 -17
- package/src/tempo/TransactionRequest.ts +27 -19
- package/src/tempo/{multisig.e2e.test.ts → configurableAccounts.e2e.test.ts} +16 -16
- package/src/tempo/e2e.test.ts +32 -20
- package/src/tempo/index.ts +56 -54
- package/src/version.ts +1 -1
- package/src/zod/tempo/{MultisigConfig.ts → AccountConfig.ts} +12 -12
- package/src/zod/tempo/{MultisigOperation.ts → AccountOperation.ts} +9 -9
- package/src/zod/tempo/AccountSimulation.ts +53 -0
- package/src/zod/tempo/KeyAuthorization.ts +8 -8
- package/src/zod/tempo/RpcSchemaTempo.ts +28 -28
- package/src/zod/tempo/SignatureEnvelope.ts +23 -17
- package/src/zod/tempo/TransactionRequest.ts +29 -18
- package/src/zod/tempo/_test/AccountConfig.test-d.ts +13 -0
- package/src/zod/tempo/_test/{MultisigConfig.test.ts → AccountConfig.test.ts} +7 -7
- package/src/zod/tempo/_test/AccountOperation.test-d.ts +27 -0
- package/src/zod/tempo/_test/{MultisigOperation.test.ts → AccountOperation.test.ts} +9 -9
- package/src/zod/tempo/_test/AccountSimulation.test-d.ts +13 -0
- package/src/zod/tempo/_test/{MultisigSimulation.test.ts → AccountSimulation.test.ts} +13 -13
- package/src/zod/tempo/_test/KeyAuthorization.test.ts +9 -9
- package/src/zod/tempo/_test/RpcSchemaTempo.test-d.ts +27 -27
- package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +16 -18
- package/src/zod/tempo/_test/SignatureEnvelope.test-d.ts +5 -5
- package/src/zod/tempo/_test/SignatureEnvelope.test.ts +12 -9
- package/src/zod/tempo/_test/TransactionRequest.test.ts +28 -8
- package/src/zod/tempo/z.ts +3 -3
- package/dist/tempo/MultisigConfig.d.ts.map +0 -1
- package/dist/tempo/MultisigConfig.js.map +0 -1
- package/dist/tempo/MultisigOperation.d.ts.map +0 -1
- package/dist/tempo/MultisigOperation.js.map +0 -1
- package/dist/tempo/MultisigSimulation.d.ts.map +0 -1
- package/dist/tempo/MultisigSimulation.js.map +0 -1
- package/dist/zod/tempo/MultisigConfig.d.ts.map +0 -1
- package/dist/zod/tempo/MultisigConfig.js.map +0 -1
- package/dist/zod/tempo/MultisigOperation.d.ts.map +0 -1
- package/dist/zod/tempo/MultisigOperation.js.map +0 -1
- package/dist/zod/tempo/MultisigSimulation.d.ts.map +0 -1
- package/dist/zod/tempo/MultisigSimulation.js +0 -44
- package/dist/zod/tempo/MultisigSimulation.js.map +0 -1
- package/src/tempo/MultisigOperation.test-d.ts +0 -79
- package/src/zod/tempo/MultisigSimulation.ts +0 -53
- package/src/zod/tempo/_test/MultisigConfig.test-d.ts +0 -13
- package/src/zod/tempo/_test/MultisigOperation.test-d.ts +0 -27
- package/src/zod/tempo/_test/MultisigSimulation.test-d.ts +0 -13
|
@@ -34,11 +34,11 @@ export const Rpc = z
|
|
|
34
34
|
limits: z.optional(z.nullable(z.readonly(z.array(RpcTokenLimit)))),
|
|
35
35
|
signature: z.union([
|
|
36
36
|
z_SignatureEnvelope.PrimitiveRpc,
|
|
37
|
-
z_SignatureEnvelope.
|
|
37
|
+
z_SignatureEnvelope.ConfigurableRpc,
|
|
38
38
|
]),
|
|
39
39
|
witness: z.optional(z.nullable(z_Hex.Hex)),
|
|
40
40
|
})
|
|
41
|
-
.check(z.refine((value) => value.keyType !== 'multisig' || value.account != null, '
|
|
41
|
+
.check(z.refine((value) => value.keyType !== 'multisig' || value.account != null, 'configurable account key grants require a parent account binding'));
|
|
42
42
|
/** Token spending limit schema. */
|
|
43
43
|
export const TokenLimit = z.object({
|
|
44
44
|
limit: z.bigint(),
|
|
@@ -65,9 +65,9 @@ const domainShape = {
|
|
|
65
65
|
scopes: z.optional(z.readonly(z.array(Scope))),
|
|
66
66
|
signature: z.union([
|
|
67
67
|
z_SignatureEnvelope.Primitive,
|
|
68
|
-
z_SignatureEnvelope.
|
|
68
|
+
z_SignatureEnvelope.Configurable,
|
|
69
69
|
]),
|
|
70
|
-
type: z.union([z_SignatureEnvelope.Type, z.literal('
|
|
70
|
+
type: z.union([z_SignatureEnvelope.Type, z.literal('configurable')]),
|
|
71
71
|
witness: z.optional(z_Hex.Hex),
|
|
72
72
|
};
|
|
73
73
|
/** Decoded key authorization schema. */
|
|
@@ -77,7 +77,7 @@ export const Domain = z
|
|
|
77
77
|
account: z.optional(z_Address.Address),
|
|
78
78
|
isAdmin: z.optional(z.boolean()),
|
|
79
79
|
})
|
|
80
|
-
.check(z.refine((value) => value.type !== '
|
|
80
|
+
.check(z.refine((value) => value.type !== 'configurable' || value.account != null, 'configurable account key grants require a parent account binding'));
|
|
81
81
|
const domainToRpcShape = {
|
|
82
82
|
...domainShape,
|
|
83
83
|
chainId: uintBigintNumberish(),
|
|
@@ -91,7 +91,7 @@ export const DomainToRpc = z
|
|
|
91
91
|
account: z.optional(z_Address.Address),
|
|
92
92
|
isAdmin: z.optional(z.boolean()),
|
|
93
93
|
})
|
|
94
|
-
.check(z.refine((value) => value.type !== '
|
|
94
|
+
.check(z.refine((value) => value.type !== 'configurable' || value.account != null, 'configurable account key grants require a parent account binding'));
|
|
95
95
|
/** Codec decoding an RPC key authorization into a signed key authorization. */
|
|
96
96
|
export const KeyAuthorization = z.codec(Rpc, Domain, {
|
|
97
97
|
decode: (value) => core_KeyAuthorization.fromRpc(value),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyAuthorization.js","sourceRoot":"","sources":["../../../src/zod/tempo/KeyAuthorization.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAA;AAE7D,uCAAuC;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC,GAAG;IAChB,MAAM,EAAE,CAAC,CAA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Ac,CAAU;CACxE,CAAC,CAAA;AAEF,uCAAuC;AACvC,MAAM,CAAC,MAAM,MAAM,GAAG,gBAAgB,CAAA;AAEtC,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG,qBAAqB,CAAA"}
|
|
@@ -183,6 +183,22 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
183
183
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
184
184
|
storageKeys: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
185
185
|
}, z.core.$strip>>>>;
|
|
186
|
+
accountSimulation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
187
|
+
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
188
|
+
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
189
|
+
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
190
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
191
|
+
}, z.core.$strict>>>;
|
|
192
|
+
config: z.ZodMiniObject<{
|
|
193
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
194
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
195
|
+
weight: z.ZodMiniNumber<number>;
|
|
196
|
+
}, z.core.$strip>>>;
|
|
197
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
198
|
+
threshold: z.ZodMiniNumber<number>;
|
|
199
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
186
202
|
authorizationList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
187
203
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
188
204
|
chainId: z.ZodMiniNumber<number>;
|
|
@@ -273,7 +289,7 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
273
289
|
}, z.core.$strip>;
|
|
274
290
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
275
291
|
}, z.core.$strip>]>>>;
|
|
276
|
-
type: z.ZodMiniLiteral<"
|
|
292
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
277
293
|
}, z.core.$strip>]>;
|
|
278
294
|
}, z.core.$strip>>>>;
|
|
279
295
|
blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
@@ -394,14 +410,14 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
394
410
|
}, z.core.$strip>;
|
|
395
411
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
396
412
|
}, z.core.$strip>]>>>;
|
|
397
|
-
type: z.ZodMiniLiteral<"
|
|
413
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
398
414
|
}, z.core.$strip>]>;
|
|
399
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"
|
|
415
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
|
|
400
416
|
witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
401
417
|
}, z.core.$strip>>;
|
|
402
418
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
403
419
|
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
404
|
-
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">, z.ZodMiniLiteral<"
|
|
420
|
+
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">, z.ZodMiniLiteral<"configurable">]>>;
|
|
405
421
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
406
422
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
407
423
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
@@ -421,22 +437,6 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
421
437
|
version: z.ZodMiniBigInt<bigint>;
|
|
422
438
|
}, z.core.$strip>;
|
|
423
439
|
}, z.core.$strip>>;
|
|
424
|
-
multisigSimulation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
425
|
-
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
426
|
-
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
427
|
-
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
428
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
429
|
-
}, z.core.$strict>>>;
|
|
430
|
-
config: z.ZodMiniObject<{
|
|
431
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
432
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
433
|
-
weight: z.ZodMiniNumber<number>;
|
|
434
|
-
}, z.core.$strip>>>;
|
|
435
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
436
|
-
threshold: z.ZodMiniNumber<number>;
|
|
437
|
-
version: z.ZodMiniBigInt<bigint>;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
}, z.core.$strip>>;
|
|
440
440
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
441
441
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
442
442
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -527,7 +527,7 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
527
527
|
}, z.core.$strip>;
|
|
528
528
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
529
529
|
}, z.core.$strip>]>>>;
|
|
530
|
-
type: z.ZodMiniLiteral<"
|
|
530
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
531
531
|
}, z.core.$strip>]>>;
|
|
532
532
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
533
533
|
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1290,6 +1290,22 @@ export declare const Tempo: {
|
|
|
1290
1290
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1291
1291
|
storageKeys: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
1292
1292
|
}, z.core.$strip>>>>;
|
|
1293
|
+
accountSimulation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1294
|
+
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1295
|
+
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1296
|
+
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1297
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1298
|
+
}, z.core.$strict>>>;
|
|
1299
|
+
config: z.ZodMiniObject<{
|
|
1300
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1301
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1302
|
+
weight: z.ZodMiniNumber<number>;
|
|
1303
|
+
}, z.core.$strip>>>;
|
|
1304
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1305
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1306
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
1307
|
+
}, z.core.$strip>;
|
|
1308
|
+
}, z.core.$strip>>;
|
|
1293
1309
|
authorizationList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1294
1310
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1295
1311
|
chainId: z.ZodMiniNumber<number>;
|
|
@@ -1380,7 +1396,7 @@ export declare const Tempo: {
|
|
|
1380
1396
|
}, z.core.$strip>;
|
|
1381
1397
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
1382
1398
|
}, z.core.$strip>]>>>;
|
|
1383
|
-
type: z.ZodMiniLiteral<"
|
|
1399
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
1384
1400
|
}, z.core.$strip>]>;
|
|
1385
1401
|
}, z.core.$strip>>>>;
|
|
1386
1402
|
blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
@@ -1501,14 +1517,14 @@ export declare const Tempo: {
|
|
|
1501
1517
|
}, z.core.$strip>;
|
|
1502
1518
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
1503
1519
|
}, z.core.$strip>]>>>;
|
|
1504
|
-
type: z.ZodMiniLiteral<"
|
|
1520
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
1505
1521
|
}, z.core.$strip>]>;
|
|
1506
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"
|
|
1522
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
|
|
1507
1523
|
witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1508
1524
|
}, z.core.$strip>>;
|
|
1509
1525
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1510
1526
|
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1511
|
-
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">, z.ZodMiniLiteral<"
|
|
1527
|
+
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">, z.ZodMiniLiteral<"configurable">]>>;
|
|
1512
1528
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1513
1529
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1514
1530
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
@@ -1528,22 +1544,6 @@ export declare const Tempo: {
|
|
|
1528
1544
|
version: z.ZodMiniBigInt<bigint>;
|
|
1529
1545
|
}, z.core.$strip>;
|
|
1530
1546
|
}, z.core.$strip>>;
|
|
1531
|
-
multisigSimulation: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1532
|
-
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1533
|
-
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1534
|
-
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1535
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1536
|
-
}, z.core.$strict>>>;
|
|
1537
|
-
config: z.ZodMiniObject<{
|
|
1538
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1539
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1540
|
-
weight: z.ZodMiniNumber<number>;
|
|
1541
|
-
}, z.core.$strip>>>;
|
|
1542
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1543
|
-
threshold: z.ZodMiniNumber<number>;
|
|
1544
|
-
version: z.ZodMiniBigInt<bigint>;
|
|
1545
|
-
}, z.core.$strip>;
|
|
1546
|
-
}, z.core.$strip>>;
|
|
1547
1547
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1548
1548
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
1549
1549
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1634,7 +1634,7 @@ export declare const Tempo: {
|
|
|
1634
1634
|
}, z.core.$strip>;
|
|
1635
1635
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
1636
1636
|
}, z.core.$strip>]>>>;
|
|
1637
|
-
type: z.ZodMiniLiteral<"
|
|
1637
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
1638
1638
|
}, z.core.$strip>]>>;
|
|
1639
1639
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
1640
1640
|
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -2213,8 +2213,8 @@ export declare const Tempo: {
|
|
|
2213
2213
|
}, z.core.$strip>>;
|
|
2214
2214
|
}, z.core.$strip>>;
|
|
2215
2215
|
};
|
|
2216
|
-
/** Schema for the `
|
|
2217
|
-
export declare const
|
|
2216
|
+
/** Schema for the `account_approveKeyAuthorization` JSON-RPC method. */
|
|
2217
|
+
export declare const account_approveKeyAuthorization: import("../internal/rpcSchemas/from.js").Item<"account_approveKeyAuthorization", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2218
2218
|
keyAuthorization: z.ZodMiniObject<{
|
|
2219
2219
|
account: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
2220
2220
|
allowedCalls: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -2290,10 +2290,10 @@ export declare const multisig_approveKeyAuthorization: import("../internal/rpcSc
|
|
|
2290
2290
|
updatedAt: z.ZodMiniNumber<number>;
|
|
2291
2291
|
weight: z.ZodMiniNumber<number>;
|
|
2292
2292
|
}, z.core.$strip>>;
|
|
2293
|
-
/** Schema for the `
|
|
2294
|
-
export declare const
|
|
2295
|
-
/** Schema for the `
|
|
2296
|
-
export declare const
|
|
2293
|
+
/** Schema for the `account_approveRawTransaction` JSON-RPC method. */
|
|
2294
|
+
export declare const account_approveRawTransaction: import("../internal/rpcSchemas/from.js").Item<"account_approveRawTransaction", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
2295
|
+
/** Schema for the `account_approveRawTransactionSync` JSON-RPC method. */
|
|
2296
|
+
export declare const account_approveRawTransactionSync: import("../internal/rpcSchemas/from.js").Item<"account_approveRawTransactionSync", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniOptional<z.ZodMiniNumber<number>>], null>, z.ZodMiniObject<{
|
|
2297
2297
|
expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
2298
2298
|
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
|
|
2299
2299
|
submissionId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -2326,8 +2326,8 @@ export declare const multisig_approveRawTransactionSync: import("../internal/rpc
|
|
|
2326
2326
|
updatedAt: z.ZodMiniNumber<number>;
|
|
2327
2327
|
weight: z.ZodMiniNumber<number>;
|
|
2328
2328
|
}, z.core.$strip>>;
|
|
2329
|
-
/** Schema for the `
|
|
2330
|
-
export declare const
|
|
2329
|
+
/** Schema for the `account_getConfig` JSON-RPC method. */
|
|
2330
|
+
export declare const account_getConfig: import("../internal/rpcSchemas/from.js").Item<"account_getConfig", z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
2331
2331
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2332
2332
|
}, z.core.$strip>], null>, z.ZodMiniNullable<z.ZodMiniObject<{
|
|
2333
2333
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -2338,8 +2338,8 @@ export declare const multisig_getConfig: import("../internal/rpcSchemas/from.js"
|
|
|
2338
2338
|
threshold: z.ZodMiniNumber<number>;
|
|
2339
2339
|
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2340
2340
|
}, z.core.$strip>>>;
|
|
2341
|
-
/** Schema for the `
|
|
2342
|
-
export declare const
|
|
2341
|
+
/** Schema for the `account_getOperation` JSON-RPC method. */
|
|
2342
|
+
export declare const account_getOperation: import("../internal/rpcSchemas/from.js").Item<"account_getOperation", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2343
2343
|
expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
2344
2344
|
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
|
|
2345
2345
|
submissionId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -2401,9 +2401,9 @@ export declare const multisig_getOperation: import("../internal/rpcSchemas/from.
|
|
|
2401
2401
|
updatedAt: z.ZodMiniNumber<number>;
|
|
2402
2402
|
weight: z.ZodMiniNumber<number>;
|
|
2403
2403
|
}, z.core.$strip>]>>>;
|
|
2404
|
-
/** JSON-RPC method schemas for the `
|
|
2405
|
-
export declare const
|
|
2406
|
-
|
|
2404
|
+
/** JSON-RPC method schemas for the `account_` namespace. */
|
|
2405
|
+
export declare const Account: {
|
|
2406
|
+
account_approveKeyAuthorization: import("../internal/rpcSchemas/from.js").Item<"account_approveKeyAuthorization", z.ZodMiniTuple<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2407
2407
|
keyAuthorization: z.ZodMiniObject<{
|
|
2408
2408
|
account: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
2409
2409
|
allowedCalls: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -2479,8 +2479,8 @@ export declare const Multisig: {
|
|
|
2479
2479
|
updatedAt: z.ZodMiniNumber<number>;
|
|
2480
2480
|
weight: z.ZodMiniNumber<number>;
|
|
2481
2481
|
}, z.core.$strip>>;
|
|
2482
|
-
|
|
2483
|
-
|
|
2482
|
+
account_approveRawTransaction: import("../internal/rpcSchemas/from.js").Item<"account_approveRawTransaction", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
2483
|
+
account_approveRawTransactionSync: import("../internal/rpcSchemas/from.js").Item<"account_approveRawTransactionSync", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniOptional<z.ZodMiniNumber<number>>], null>, z.ZodMiniObject<{
|
|
2484
2484
|
expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
2485
2485
|
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
|
|
2486
2486
|
submissionId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -2513,7 +2513,7 @@ export declare const Multisig: {
|
|
|
2513
2513
|
updatedAt: z.ZodMiniNumber<number>;
|
|
2514
2514
|
weight: z.ZodMiniNumber<number>;
|
|
2515
2515
|
}, z.core.$strip>>;
|
|
2516
|
-
|
|
2516
|
+
account_getConfig: import("../internal/rpcSchemas/from.js").Item<"account_getConfig", z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
2517
2517
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2518
2518
|
}, z.core.$strip>], null>, z.ZodMiniNullable<z.ZodMiniObject<{
|
|
2519
2519
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -2524,7 +2524,7 @@ export declare const Multisig: {
|
|
|
2524
2524
|
threshold: z.ZodMiniNumber<number>;
|
|
2525
2525
|
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
2526
2526
|
}, z.core.$strip>>>;
|
|
2527
|
-
|
|
2527
|
+
account_getOperation: import("../internal/rpcSchemas/from.js").Item<"account_getOperation", z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
2528
2528
|
expiresAt: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
2529
2529
|
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pending">, z.ZodMiniLiteral<"submitting">, z.ZodMiniLiteral<"success">]>;
|
|
2530
2530
|
submissionId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchemaTempo.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/RpcSchemaTempo.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAmB7B,yDAAyD;AACzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAA;AAEzC,wEAAwE;AACxE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAS1C,CAAA;AAEF,sEAAsE;AACtE,eAAO,MAAM,6BAA6B,mMAIxC,CAAA;AAEF,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAI5C,CAAA;AAEF,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB;;;;;;;;;;mBAI5B,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAI/B,CAAA;AAEF,4DAA4D;AAC5D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnB,CAAA"}
|
|
@@ -7,9 +7,9 @@ import * as z_Log from '../Log.js';
|
|
|
7
7
|
import * as z_StateOverrides from '../StateOverrides.js';
|
|
8
8
|
import { from } from '../internal/rpcSchemas/from.js';
|
|
9
9
|
import * as z from 'zod/mini';
|
|
10
|
+
import * as z_AccountConfig from './AccountConfig.js';
|
|
10
11
|
import * as z_KeyAuthorization from './KeyAuthorization.js';
|
|
11
|
-
import * as
|
|
12
|
-
import * as z_MultisigOperation from './MultisigOperation.js';
|
|
12
|
+
import * as z_AccountOperation from './AccountOperation.js';
|
|
13
13
|
import * as z_TransactionRequest from './TransactionRequest.js';
|
|
14
14
|
const BlockNumberOrTagOrIdentifier = z.union([
|
|
15
15
|
z_Block.Number,
|
|
@@ -61,47 +61,47 @@ export const tempo_simulateV1 = from({
|
|
|
61
61
|
});
|
|
62
62
|
/** JSON-RPC method schemas for the `tempo_` namespace. */
|
|
63
63
|
export const Tempo = { tempo_simulateV1 };
|
|
64
|
-
/** Schema for the `
|
|
65
|
-
export const
|
|
66
|
-
method: '
|
|
64
|
+
/** Schema for the `account_approveKeyAuthorization` JSON-RPC method. */
|
|
65
|
+
export const account_approveKeyAuthorization = from({
|
|
66
|
+
method: 'account_approveKeyAuthorization',
|
|
67
67
|
params: z.tuple([
|
|
68
68
|
z.union([
|
|
69
69
|
z.object({ keyAuthorization: z_KeyAuthorization.Rpc }),
|
|
70
70
|
z.object({ hash: z_Hex.Hex, signature: z_Hex.Hex }),
|
|
71
71
|
]),
|
|
72
72
|
]),
|
|
73
|
-
returns:
|
|
73
|
+
returns: z_AccountOperation.KeyAuthorizationOperation,
|
|
74
74
|
});
|
|
75
|
-
/** Schema for the `
|
|
76
|
-
export const
|
|
77
|
-
method: '
|
|
75
|
+
/** Schema for the `account_approveRawTransaction` JSON-RPC method. */
|
|
76
|
+
export const account_approveRawTransaction = from({
|
|
77
|
+
method: 'account_approveRawTransaction',
|
|
78
78
|
params: z.tuple([z_Hex.Hex]),
|
|
79
79
|
returns: z_Hex.Hex,
|
|
80
80
|
});
|
|
81
|
-
/** Schema for the `
|
|
82
|
-
export const
|
|
83
|
-
method: '
|
|
81
|
+
/** Schema for the `account_approveRawTransactionSync` JSON-RPC method. */
|
|
82
|
+
export const account_approveRawTransactionSync = from({
|
|
83
|
+
method: 'account_approveRawTransactionSync',
|
|
84
84
|
params: z.tuple([z_Hex.Hex, z.optional(z.number())]),
|
|
85
|
-
returns:
|
|
85
|
+
returns: z_AccountOperation.TransactionOperation,
|
|
86
86
|
});
|
|
87
|
-
/** Schema for the `
|
|
88
|
-
export const
|
|
89
|
-
method: '
|
|
87
|
+
/** Schema for the `account_getConfig` JSON-RPC method. */
|
|
88
|
+
export const account_getConfig = from({
|
|
89
|
+
method: 'account_getConfig',
|
|
90
90
|
params: z.tuple([z.object({ address: z_Address.Address })]),
|
|
91
|
-
returns: z.nullable(
|
|
91
|
+
returns: z.nullable(z_AccountConfig.Rpc),
|
|
92
92
|
});
|
|
93
|
-
/** Schema for the `
|
|
94
|
-
export const
|
|
95
|
-
method: '
|
|
93
|
+
/** Schema for the `account_getOperation` JSON-RPC method. */
|
|
94
|
+
export const account_getOperation = from({
|
|
95
|
+
method: 'account_getOperation',
|
|
96
96
|
params: z.tuple([z_Hex.Hex]),
|
|
97
|
-
returns: z.nullable(
|
|
97
|
+
returns: z.nullable(z_AccountOperation.Operation),
|
|
98
98
|
});
|
|
99
|
-
/** JSON-RPC method schemas for the `
|
|
100
|
-
export const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
/** JSON-RPC method schemas for the `account_` namespace. */
|
|
100
|
+
export const Account = {
|
|
101
|
+
account_approveKeyAuthorization,
|
|
102
|
+
account_approveRawTransaction,
|
|
103
|
+
account_approveRawTransactionSync,
|
|
104
|
+
account_getConfig,
|
|
105
|
+
account_getOperation,
|
|
106
106
|
};
|
|
107
107
|
//# sourceMappingURL=RpcSchemaTempo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchemaTempo.js","sourceRoot":"","sources":["../../../src/zod/tempo/RpcSchemaTempo.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,OAAO,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,gBAAgB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">]>>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
/** RPC
|
|
70
|
-
export declare const
|
|
69
|
+
/** RPC configurable account signature envelope schema. */
|
|
70
|
+
export declare const ConfigurableRpc: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
71
71
|
/** RPC signature envelope schema. */
|
|
72
72
|
export declare const Rpc: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
73
73
|
r: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -180,8 +180,8 @@ export declare const Keychain: z.ZodMiniObject<{
|
|
|
180
180
|
userAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
181
181
|
version: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"v1">, z.ZodMiniLiteral<"v2">]>>;
|
|
182
182
|
}, z.core.$strip>;
|
|
183
|
-
/**
|
|
184
|
-
export declare const
|
|
183
|
+
/** Configurable account signature envelope schema. */
|
|
184
|
+
export declare const Configurable: z.ZodMiniObject<{
|
|
185
185
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
186
186
|
config: z.ZodMiniObject<{
|
|
187
187
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -227,7 +227,7 @@ export declare const Multisig: z.ZodMiniObject<{
|
|
|
227
227
|
}, z.core.$strip>;
|
|
228
228
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
229
229
|
}, z.core.$strip>]>>>;
|
|
230
|
-
type: z.ZodMiniLiteral<"
|
|
230
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
231
231
|
}, z.core.$strip>;
|
|
232
232
|
/** Decoded signature envelope schema. */
|
|
233
233
|
export declare const Domain: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -316,7 +316,7 @@ export declare const Domain: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
316
316
|
}, z.core.$strip>;
|
|
317
317
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
318
318
|
}, z.core.$strip>]>>>;
|
|
319
|
-
type: z.ZodMiniLiteral<"
|
|
319
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
320
320
|
}, z.core.$strip>]>;
|
|
321
321
|
/** Codec decoding an RPC signature envelope into a signature envelope. */
|
|
322
322
|
export declare const SignatureEnvelope: z.ZodMiniCodec<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -431,7 +431,7 @@ export declare const SignatureEnvelope: z.ZodMiniCodec<z.ZodMiniUnion<readonly [
|
|
|
431
431
|
}, z.core.$strip>;
|
|
432
432
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
433
433
|
}, z.core.$strip>]>>>;
|
|
434
|
-
type: z.ZodMiniLiteral<"
|
|
434
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
435
435
|
}, z.core.$strip>]>>;
|
|
436
436
|
/** Hex-encoded serialized signature envelope schema. */
|
|
437
437
|
export declare const Serialized: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureEnvelope.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/SignatureEnvelope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAA;AAM1E,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,0CAA0C;AAC1C,eAAO,MAAM,IAAI,kHAIf,CAAA;AAEF,yCAAyC;AACzC,eAAO,MAAM,eAAe,2EAA8C,CAAA;AAE1E,sCAAsC;AACtC,eAAO,MAAM,SAAS;;;;iBAMpB,CAAA;AAeF,+CAA+C;AAC/C,eAAO,MAAM,YAAY;;;;;;iBAMvB,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,OAAO;;;;;;;iBAOlB,CAAA;AAEF,8CAA8C;AAC9C,eAAO,MAAM,WAAW;;;;;;;iBAOtB,CAAA;AAEF,+CAA+C;AAC/C,eAAO,MAAM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0C;AAC1C,eAAO,MAAM,QAAQ;;;;;;iBAiBlB,CAAA;AAEH,sDAAsD;AACtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBtB,CAAA;AAEH,yCAAyC;AACzC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAMjB,CAAA;AAEF,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAG5B,CAAA;AAEF,wDAAwD;AACxD,eAAO,MAAM,UAAU,yCAAY,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
2
|
import * as core_SignatureEnvelope from '../../tempo/SignatureEnvelope.js';
|
|
3
3
|
import * as core_Hex from '../../core/Hex.js';
|
|
4
|
-
import * as
|
|
4
|
+
import * as core_AccountConfig from '../../tempo/AccountConfig.js';
|
|
5
5
|
import * as z_Address from '../Address.js';
|
|
6
6
|
import * as z_Hex from '../Hex.js';
|
|
7
|
-
import * as
|
|
7
|
+
import * as z_AccountConfig from './AccountConfig.js';
|
|
8
8
|
import * as z from 'zod/mini';
|
|
9
9
|
/** Signature envelope key type schema. */
|
|
10
10
|
export const Type = z.union([
|
|
@@ -79,9 +79,9 @@ export const KeychainRpc = z
|
|
|
79
79
|
catch {
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
|
-
}, '
|
|
83
|
-
/** RPC
|
|
84
|
-
export const
|
|
82
|
+
}, 'configurable access keys require keychain V2'));
|
|
83
|
+
/** RPC configurable account signature envelope schema. */
|
|
84
|
+
export const ConfigurableRpc = z_Hex.Hex.check(z.refine((value) => {
|
|
85
85
|
try {
|
|
86
86
|
core_SignatureEnvelope.fromRpc(value);
|
|
87
87
|
return true;
|
|
@@ -89,14 +89,14 @@ export const MultisigRpc = z_Hex.Hex.check(z.refine((value) => {
|
|
|
89
89
|
catch {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
|
-
}, 'expected valid
|
|
92
|
+
}, 'expected valid configurable account signature'));
|
|
93
93
|
/** RPC signature envelope schema. */
|
|
94
94
|
export const Rpc = z.union([
|
|
95
95
|
Secp256k1Rpc,
|
|
96
96
|
P256Rpc,
|
|
97
97
|
WebAuthnRpc,
|
|
98
98
|
KeychainRpc,
|
|
99
|
-
|
|
99
|
+
ConfigurableRpc,
|
|
100
100
|
]);
|
|
101
101
|
/** secp256k1 signature envelope schema. */
|
|
102
102
|
export const Secp256k1 = z.object({
|
|
@@ -132,21 +132,27 @@ export const Keychain = z
|
|
|
132
132
|
userAddress: z_Address.Address,
|
|
133
133
|
version: z.optional(KeychainVersion),
|
|
134
134
|
})
|
|
135
|
-
.check(z.refine((value) => core_SignatureEnvelope.validate(value), '
|
|
136
|
-
/**
|
|
137
|
-
export const
|
|
135
|
+
.check(z.refine((value) => core_SignatureEnvelope.validate(value), 'configurable access keys require keychain V2'));
|
|
136
|
+
/** Configurable account signature envelope schema. */
|
|
137
|
+
export const Configurable = z
|
|
138
138
|
.object({
|
|
139
139
|
account: z_Address.Address,
|
|
140
|
-
config:
|
|
140
|
+
config: z_AccountConfig.Config,
|
|
141
141
|
signatures: z.readonly(z
|
|
142
142
|
.array(Primitive)
|
|
143
|
-
.check(z.minLength(1), z.maxLength(
|
|
144
|
-
type: z.literal('
|
|
143
|
+
.check(z.minLength(1), z.maxLength(core_AccountConfig.maxSignatures))),
|
|
144
|
+
type: z.literal('configurable'),
|
|
145
145
|
})
|
|
146
146
|
// Keep invalid recursive approvals inside Zod's issue path.
|
|
147
|
-
.check(z.refine((value) => core_SignatureEnvelope.validate(value), 'expected valid
|
|
147
|
+
.check(z.refine((value) => core_SignatureEnvelope.validate(value), 'expected valid configurable account signature'));
|
|
148
148
|
/** Decoded signature envelope schema. */
|
|
149
|
-
export const Domain = z.union([
|
|
149
|
+
export const Domain = z.union([
|
|
150
|
+
Secp256k1,
|
|
151
|
+
P256,
|
|
152
|
+
WebAuthn,
|
|
153
|
+
Keychain,
|
|
154
|
+
Configurable,
|
|
155
|
+
]);
|
|
150
156
|
/** Codec decoding an RPC signature envelope into a signature envelope. */
|
|
151
157
|
export const SignatureEnvelope = z.codec(Rpc, Domain, {
|
|
152
158
|
decode: (value) => fromRpc(value),
|
|
@@ -243,7 +249,7 @@ function toRpc(value) {
|
|
|
243
249
|
webauthnData: core_Hex.concat(webAuthn.metadata.authenticatorData, core_Hex.fromString(webAuthn.metadata.clientDataJSON)),
|
|
244
250
|
};
|
|
245
251
|
}
|
|
246
|
-
if (value.type === '
|
|
252
|
+
if (value.type === 'configurable')
|
|
247
253
|
return core_SignatureEnvelope.toRpc(value);
|
|
248
254
|
const keychain = value;
|
|
249
255
|
return {
|