ox 1.7.0 → 1.7.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/CHANGELOG.md +21 -0
- package/dist/core/Hash.js +1 -1
- package/dist/core/Hash.js.map +1 -1
- package/dist/core/Siwe.d.ts.map +1 -1
- package/dist/core/Siwe.js +45 -6
- package/dist/core/Siwe.js.map +1 -1
- package/dist/tempo/KeyAuthorization.d.ts +1 -1
- package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/tempo/MultisigConfig.d.ts +151 -83
- package/dist/tempo/MultisigConfig.d.ts.map +1 -1
- package/dist/tempo/MultisigConfig.js +164 -86
- package/dist/tempo/MultisigConfig.js.map +1 -1
- package/dist/tempo/MultisigOperation.d.ts +324 -0
- package/dist/tempo/MultisigOperation.d.ts.map +1 -0
- package/dist/tempo/MultisigOperation.js +809 -0
- package/dist/tempo/MultisigOperation.js.map +1 -0
- package/dist/tempo/MultisigWitness.d.ts +106 -0
- package/dist/tempo/MultisigWitness.d.ts.map +1 -0
- package/dist/tempo/MultisigWitness.js +118 -0
- package/dist/tempo/MultisigWitness.js.map +1 -0
- package/dist/tempo/RpcSchemaTempo.d.ts +35 -0
- package/dist/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.d.ts +60 -80
- package/dist/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.js +87 -146
- package/dist/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/tempo/TransactionRequest.d.ts +9 -17
- package/dist/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/tempo/TransactionRequest.js +7 -7
- package/dist/tempo/TransactionRequest.js.map +1 -1
- package/dist/tempo/TxEnvelopeTempo.d.ts +3 -2
- package/dist/tempo/TxEnvelopeTempo.d.ts.map +1 -1
- package/dist/tempo/TxEnvelopeTempo.js +3 -2
- package/dist/tempo/TxEnvelopeTempo.js.map +1 -1
- package/dist/tempo/index.d.ts +22 -2
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +22 -2
- package/dist/tempo/index.js.map +1 -1
- package/dist/zod/tempo/AuthorizationTempo.d.ts +110 -110
- package/dist/zod/tempo/AuthorizationTempo.d.ts.map +1 -1
- package/dist/zod/tempo/KeyAuthorization.d.ts +90 -83
- package/dist/zod/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/zod/tempo/MultisigConfig.d.ts +31 -2
- package/dist/zod/tempo/MultisigConfig.d.ts.map +1 -1
- package/dist/zod/tempo/MultisigConfig.js +26 -3
- package/dist/zod/tempo/MultisigConfig.js.map +1 -1
- package/dist/zod/tempo/MultisigOperation.d.ts +168 -0
- package/dist/zod/tempo/MultisigOperation.d.ts.map +1 -0
- package/dist/zod/tempo/MultisigOperation.js +65 -0
- package/dist/zod/tempo/MultisigOperation.js.map +1 -0
- package/dist/zod/tempo/MultisigWitness.d.ts +152 -0
- package/dist/zod/tempo/MultisigWitness.d.ts.map +1 -0
- package/dist/zod/tempo/MultisigWitness.js +76 -0
- package/dist/zod/tempo/MultisigWitness.js.map +1 -0
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +607 -102
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.js +38 -0
- package/dist/zod/tempo/RpcSchemaTempo.js.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.d.ts +33 -33
- package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.js +9 -16
- package/dist/zod/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +228 -222
- package/dist/zod/tempo/Transaction.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.d.ts +379 -176
- package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.js +11 -22
- package/dist/zod/tempo/TransactionRequest.js.map +1 -1
- package/dist/zod/tempo/TxEnvelopeTempo.d.ts +60 -48
- package/dist/zod/tempo/TxEnvelopeTempo.d.ts.map +1 -1
- package/dist/zod/tempo/ZoneRpcAuthentication.d.ts +15 -12
- package/dist/zod/tempo/ZoneRpcAuthentication.d.ts.map +1 -1
- package/dist/zod/tempo/z.d.ts +2 -0
- package/dist/zod/tempo/z.d.ts.map +1 -1
- package/dist/zod/tempo/z.js +2 -0
- package/dist/zod/tempo/z.js.map +1 -1
- package/package.json +21 -1
- package/src/core/Hash.ts +1 -1
- package/src/core/Siwe.ts +45 -5
- package/src/core/_test/Hash.test.ts +15 -0
- package/src/core/_test/Siwe.test.ts +98 -0
- package/src/tempo/KeyAuthorization.test-d.ts +13 -1
- package/src/tempo/KeyAuthorization.test.ts +65 -0
- package/src/tempo/KeyAuthorization.ts +1 -1
- package/src/tempo/MultisigConfig.test-d.ts +52 -0
- package/src/tempo/MultisigConfig.test.ts +288 -227
- package/src/tempo/MultisigConfig.ts +275 -104
- package/src/tempo/MultisigOperation.test-d.ts +77 -0
- package/src/tempo/MultisigOperation.test.ts +1883 -0
- package/src/tempo/MultisigOperation.ts +1254 -0
- package/src/tempo/MultisigWitness.test-d.ts +42 -0
- package/src/tempo/MultisigWitness.test.ts +288 -0
- package/src/tempo/MultisigWitness.ts +210 -0
- package/src/tempo/RpcSchemaTempo.test-d.ts +56 -0
- package/src/tempo/RpcSchemaTempo.ts +37 -0
- package/src/tempo/SignatureEnvelope.test-d.ts +63 -46
- package/src/tempo/SignatureEnvelope.test.ts +523 -500
- package/src/tempo/SignatureEnvelope.ts +172 -242
- package/src/tempo/TransactionRequest.test-d.ts +11 -0
- package/src/tempo/TransactionRequest.test.ts +285 -33
- package/src/tempo/TransactionRequest.ts +15 -20
- package/src/tempo/TxEnvelopeTempo.test-d.ts +7 -0
- package/src/tempo/TxEnvelopeTempo.test.ts +25 -0
- package/src/tempo/TxEnvelopeTempo.ts +5 -3
- package/src/tempo/index.ts +22 -2
- package/src/tempo/multisig.e2e.test.ts +113 -86
- package/src/version.ts +1 -1
- package/src/zod/tempo/MultisigConfig.ts +29 -3
- package/src/zod/tempo/MultisigOperation.ts +69 -0
- package/src/zod/tempo/MultisigWitness.ts +101 -0
- package/src/zod/tempo/RpcSchemaTempo.ts +43 -0
- package/src/zod/tempo/SignatureEnvelope.ts +20 -38
- package/src/zod/tempo/TransactionRequest.ts +17 -26
- package/src/zod/tempo/_test/KeyAuthorization.test.ts +11 -0
- package/src/zod/tempo/_test/MultisigConfig.test-d.ts +13 -0
- package/src/zod/tempo/_test/MultisigConfig.test.ts +13 -2
- package/src/zod/tempo/_test/MultisigOperation.test-d.ts +27 -0
- package/src/zod/tempo/_test/MultisigOperation.test.ts +68 -0
- package/src/zod/tempo/_test/MultisigWitness.test-d.ts +13 -0
- package/src/zod/tempo/_test/MultisigWitness.test.ts +149 -0
- package/src/zod/tempo/_test/RpcSchemaTempo.test-d.ts +31 -0
- package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +41 -0
- package/src/zod/tempo/_test/SignatureEnvelope.test-d.ts +1 -1
- package/src/zod/tempo/_test/SignatureEnvelope.test.ts +25 -34
- package/src/zod/tempo/_test/TransactionRequest.test.ts +176 -8
- package/src/zod/tempo/z.ts +2 -0
|
@@ -58,20 +58,19 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
58
58
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
59
59
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
60
60
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
61
|
-
}, z.core.$strip>]>, z.
|
|
61
|
+
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
62
62
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
63
|
-
|
|
64
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
65
|
-
init: z.ZodMiniObject<{
|
|
66
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
67
|
-
threshold: z.ZodMiniNumber<number>;
|
|
63
|
+
config: z.ZodMiniObject<{
|
|
68
64
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
69
65
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
70
66
|
weight: z.ZodMiniNumber<number>;
|
|
71
67
|
}, z.core.$strip>>>;
|
|
68
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
69
|
+
threshold: z.ZodMiniNumber<number>;
|
|
70
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
72
71
|
}, z.core.$strip>;
|
|
73
72
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[]>>>;
|
|
74
|
-
}, z.core.$strict>]
|
|
73
|
+
}, z.core.$strict>]>;
|
|
75
74
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
76
75
|
}, z.core.$strip>;
|
|
77
76
|
/** Token spending limit schema. */
|
|
@@ -145,14 +144,15 @@ export declare const Domain: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
145
144
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
146
145
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
147
146
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
148
|
-
|
|
149
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
150
|
-
threshold: z.ZodMiniNumber<number>;
|
|
147
|
+
config: z.ZodMiniObject<{
|
|
151
148
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
152
149
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
153
150
|
weight: z.ZodMiniNumber<number>;
|
|
154
151
|
}, z.core.$strip>>>;
|
|
155
|
-
|
|
152
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
153
|
+
threshold: z.ZodMiniNumber<number>;
|
|
154
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
156
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
157
157
|
type: z.ZodMiniLiteral<"multisig">;
|
|
158
158
|
}, z.core.$strip>]>;
|
|
@@ -208,14 +208,15 @@ export declare const Domain: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
208
208
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
209
209
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
210
210
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
211
|
-
|
|
212
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
213
|
-
threshold: z.ZodMiniNumber<number>;
|
|
211
|
+
config: z.ZodMiniObject<{
|
|
214
212
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
215
213
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
216
214
|
weight: z.ZodMiniNumber<number>;
|
|
217
215
|
}, z.core.$strip>>>;
|
|
218
|
-
|
|
216
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
217
|
+
threshold: z.ZodMiniNumber<number>;
|
|
218
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
219
|
+
}, z.core.$strip>;
|
|
219
220
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
220
221
|
type: z.ZodMiniLiteral<"multisig">;
|
|
221
222
|
}, z.core.$strip>]>;
|
|
@@ -275,14 +276,15 @@ export declare const DomainToRpc: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
275
276
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
276
277
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
277
278
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
278
|
-
|
|
279
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
280
|
-
threshold: z.ZodMiniNumber<number>;
|
|
279
|
+
config: z.ZodMiniObject<{
|
|
281
280
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
282
281
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
283
282
|
weight: z.ZodMiniNumber<number>;
|
|
284
283
|
}, z.core.$strip>>>;
|
|
285
|
-
|
|
284
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
285
|
+
threshold: z.ZodMiniNumber<number>;
|
|
286
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
287
|
+
}, z.core.$strip>;
|
|
286
288
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
287
289
|
type: z.ZodMiniLiteral<"multisig">;
|
|
288
290
|
}, z.core.$strip>]>;
|
|
@@ -338,14 +340,15 @@ export declare const DomainToRpc: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
338
340
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
339
341
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
340
342
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
341
|
-
|
|
342
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
343
|
-
threshold: z.ZodMiniNumber<number>;
|
|
343
|
+
config: z.ZodMiniObject<{
|
|
344
344
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
345
345
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
346
346
|
weight: z.ZodMiniNumber<number>;
|
|
347
347
|
}, z.core.$strip>>>;
|
|
348
|
-
|
|
348
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
349
|
+
threshold: z.ZodMiniNumber<number>;
|
|
350
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
351
|
+
}, z.core.$strip>;
|
|
349
352
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
350
353
|
type: z.ZodMiniLiteral<"multisig">;
|
|
351
354
|
}, z.core.$strip>]>;
|
|
@@ -392,20 +395,19 @@ export declare const KeyAuthorization: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
392
395
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
393
396
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
394
397
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
395
|
-
}, z.core.$strip>]>, z.
|
|
398
|
+
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
396
399
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
397
|
-
|
|
398
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
399
|
-
init: z.ZodMiniObject<{
|
|
400
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
401
|
-
threshold: z.ZodMiniNumber<number>;
|
|
400
|
+
config: z.ZodMiniObject<{
|
|
402
401
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
403
402
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
404
403
|
weight: z.ZodMiniNumber<number>;
|
|
405
404
|
}, z.core.$strip>>>;
|
|
405
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
406
|
+
threshold: z.ZodMiniNumber<number>;
|
|
407
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
406
408
|
}, z.core.$strip>;
|
|
407
409
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[]>>>;
|
|
408
|
-
}, z.core.$strict>]
|
|
410
|
+
}, z.core.$strict>]>;
|
|
409
411
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
410
412
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
411
413
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -459,14 +461,15 @@ export declare const KeyAuthorization: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
459
461
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
460
462
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
461
463
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
462
|
-
|
|
463
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
464
|
-
threshold: z.ZodMiniNumber<number>;
|
|
464
|
+
config: z.ZodMiniObject<{
|
|
465
465
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
466
466
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
467
467
|
weight: z.ZodMiniNumber<number>;
|
|
468
468
|
}, z.core.$strip>>>;
|
|
469
|
-
|
|
469
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
470
|
+
threshold: z.ZodMiniNumber<number>;
|
|
471
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
472
|
+
}, z.core.$strip>;
|
|
470
473
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
471
474
|
type: z.ZodMiniLiteral<"multisig">;
|
|
472
475
|
}, z.core.$strip>]>;
|
|
@@ -522,14 +525,15 @@ export declare const KeyAuthorization: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
522
525
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
523
526
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
524
527
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
525
|
-
|
|
526
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
527
|
-
threshold: z.ZodMiniNumber<number>;
|
|
528
|
+
config: z.ZodMiniObject<{
|
|
528
529
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
529
530
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
530
531
|
weight: z.ZodMiniNumber<number>;
|
|
531
532
|
}, z.core.$strip>>>;
|
|
532
|
-
|
|
533
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
534
|
+
threshold: z.ZodMiniNumber<number>;
|
|
535
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
536
|
+
}, z.core.$strip>;
|
|
533
537
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
534
538
|
type: z.ZodMiniLiteral<"multisig">;
|
|
535
539
|
}, z.core.$strip>]>;
|
|
@@ -576,20 +580,19 @@ export declare const KeyAuthorizationToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
576
580
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
577
581
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
578
582
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
579
|
-
}, z.core.$strip>]>, z.
|
|
583
|
+
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
580
584
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
581
|
-
|
|
582
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
583
|
-
init: z.ZodMiniObject<{
|
|
584
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
585
|
-
threshold: z.ZodMiniNumber<number>;
|
|
585
|
+
config: z.ZodMiniObject<{
|
|
586
586
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
587
587
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
588
588
|
weight: z.ZodMiniNumber<number>;
|
|
589
589
|
}, z.core.$strip>>>;
|
|
590
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
591
|
+
threshold: z.ZodMiniNumber<number>;
|
|
592
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
590
593
|
}, z.core.$strip>;
|
|
591
594
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[]>>>;
|
|
592
|
-
}, z.core.$strict>]
|
|
595
|
+
}, z.core.$strict>]>;
|
|
593
596
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
594
597
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
595
598
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -643,14 +646,15 @@ export declare const KeyAuthorizationToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
643
646
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
644
647
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
645
648
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
646
|
-
|
|
647
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
648
|
-
threshold: z.ZodMiniNumber<number>;
|
|
649
|
+
config: z.ZodMiniObject<{
|
|
649
650
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
650
651
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
651
652
|
weight: z.ZodMiniNumber<number>;
|
|
652
653
|
}, z.core.$strip>>>;
|
|
653
|
-
|
|
654
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
655
|
+
threshold: z.ZodMiniNumber<number>;
|
|
656
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
657
|
+
}, z.core.$strip>;
|
|
654
658
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
655
659
|
type: z.ZodMiniLiteral<"multisig">;
|
|
656
660
|
}, z.core.$strip>]>;
|
|
@@ -706,14 +710,15 @@ export declare const KeyAuthorizationToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
706
710
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
707
711
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
708
712
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
709
|
-
|
|
710
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
711
|
-
threshold: z.ZodMiniNumber<number>;
|
|
713
|
+
config: z.ZodMiniObject<{
|
|
712
714
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
713
715
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
714
716
|
weight: z.ZodMiniNumber<number>;
|
|
715
717
|
}, z.core.$strip>>>;
|
|
716
|
-
|
|
718
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
719
|
+
threshold: z.ZodMiniNumber<number>;
|
|
720
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
721
|
+
}, z.core.$strip>;
|
|
717
722
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
718
723
|
type: z.ZodMiniLiteral<"multisig">;
|
|
719
724
|
}, z.core.$strip>]>;
|
|
@@ -760,20 +765,19 @@ export declare const Signed: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
760
765
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
761
766
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
762
767
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
763
|
-
}, z.core.$strip>]>, z.
|
|
768
|
+
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
764
769
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
765
|
-
|
|
766
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
767
|
-
init: z.ZodMiniObject<{
|
|
768
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
769
|
-
threshold: z.ZodMiniNumber<number>;
|
|
770
|
+
config: z.ZodMiniObject<{
|
|
770
771
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
771
772
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
772
773
|
weight: z.ZodMiniNumber<number>;
|
|
773
774
|
}, z.core.$strip>>>;
|
|
775
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
776
|
+
threshold: z.ZodMiniNumber<number>;
|
|
777
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
774
778
|
}, z.core.$strip>;
|
|
775
779
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[]>>>;
|
|
776
|
-
}, z.core.$strict>]
|
|
780
|
+
}, z.core.$strict>]>;
|
|
777
781
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
778
782
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
779
783
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -827,14 +831,15 @@ export declare const Signed: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
827
831
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
828
832
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
829
833
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
830
|
-
|
|
831
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
832
|
-
threshold: z.ZodMiniNumber<number>;
|
|
834
|
+
config: z.ZodMiniObject<{
|
|
833
835
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
834
836
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
835
837
|
weight: z.ZodMiniNumber<number>;
|
|
836
838
|
}, z.core.$strip>>>;
|
|
837
|
-
|
|
839
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
840
|
+
threshold: z.ZodMiniNumber<number>;
|
|
841
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
842
|
+
}, z.core.$strip>;
|
|
838
843
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
839
844
|
type: z.ZodMiniLiteral<"multisig">;
|
|
840
845
|
}, z.core.$strip>]>;
|
|
@@ -890,14 +895,15 @@ export declare const Signed: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
890
895
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
891
896
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
892
897
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
893
|
-
|
|
894
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
895
|
-
threshold: z.ZodMiniNumber<number>;
|
|
898
|
+
config: z.ZodMiniObject<{
|
|
896
899
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
897
900
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
898
901
|
weight: z.ZodMiniNumber<number>;
|
|
899
902
|
}, z.core.$strip>>>;
|
|
900
|
-
|
|
903
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
904
|
+
threshold: z.ZodMiniNumber<number>;
|
|
905
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
906
|
+
}, z.core.$strip>;
|
|
901
907
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
902
908
|
type: z.ZodMiniLiteral<"multisig">;
|
|
903
909
|
}, z.core.$strip>]>;
|
|
@@ -944,20 +950,19 @@ export declare const SignedToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
944
950
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
945
951
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
946
952
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
947
|
-
}, z.core.$strip>]>, z.
|
|
953
|
+
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
948
954
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
949
|
-
|
|
950
|
-
}, z.core.$strict>, z.ZodMiniObject<{
|
|
951
|
-
init: z.ZodMiniObject<{
|
|
952
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
953
|
-
threshold: z.ZodMiniNumber<number>;
|
|
955
|
+
config: z.ZodMiniObject<{
|
|
954
956
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
955
957
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
956
958
|
weight: z.ZodMiniNumber<number>;
|
|
957
959
|
}, z.core.$strip>>>;
|
|
960
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
961
|
+
threshold: z.ZodMiniNumber<number>;
|
|
962
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
958
963
|
}, z.core.$strip>;
|
|
959
964
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[], readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelopeRpc[]>>>;
|
|
960
|
-
}, z.core.$strict>]
|
|
965
|
+
}, z.core.$strict>]>;
|
|
961
966
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
962
967
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
963
968
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -1011,14 +1016,15 @@ export declare const SignedToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1011
1016
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
1012
1017
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
1013
1018
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1014
|
-
|
|
1015
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1016
|
-
threshold: z.ZodMiniNumber<number>;
|
|
1019
|
+
config: z.ZodMiniObject<{
|
|
1017
1020
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1018
1021
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1019
1022
|
weight: z.ZodMiniNumber<number>;
|
|
1020
1023
|
}, z.core.$strip>>>;
|
|
1021
|
-
|
|
1024
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1025
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1026
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
1027
|
+
}, z.core.$strip>;
|
|
1022
1028
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
1023
1029
|
type: z.ZodMiniLiteral<"multisig">;
|
|
1024
1030
|
}, z.core.$strip>]>;
|
|
@@ -1074,14 +1080,15 @@ export declare const SignedToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1074
1080
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
1075
1081
|
}, z.core.$strip>]>, z.ZodMiniObject<{
|
|
1076
1082
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1077
|
-
|
|
1078
|
-
salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1079
|
-
threshold: z.ZodMiniNumber<number>;
|
|
1083
|
+
config: z.ZodMiniObject<{
|
|
1080
1084
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1081
1085
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1082
1086
|
weight: z.ZodMiniNumber<number>;
|
|
1083
1087
|
}, z.core.$strip>>>;
|
|
1084
|
-
|
|
1088
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1089
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1090
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
1091
|
+
}, z.core.$strip>;
|
|
1085
1092
|
signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>;
|
|
1086
1093
|
type: z.ZodMiniLiteral<"multisig">;
|
|
1087
1094
|
}, z.core.$strip>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyAuthorization.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/KeyAuthorization.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAa7B,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;iBAIxB,CAAA;AAEF,gCAAgC;AAChC,eAAO,MAAM,eAAe;;;iBAG1B,CAAA;AAEF,6BAA6B;AAC7B,eAAO,MAAM,YAAY;;;;;;iBAGvB,CAAA;AAEF,oCAAoC;AACpC,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"KeyAuthorization.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/KeyAuthorization.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAa7B,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;iBAIxB,CAAA;AAEF,gCAAgC;AAChC,eAAO,MAAM,eAAe;;;iBAG1B,CAAA;AAEF,6BAA6B;AAC7B,eAAO,MAAM,YAAY;;;;;;iBAGvB,CAAA;AAEF,oCAAoC;AACpC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWd,CAAA;AAEF,mCAAmC;AACnC,eAAO,MAAM,UAAU;;;;iBAIrB,CAAA;AAEF,kFAAkF;AAClF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAEF,yBAAyB;AACzB,eAAO,MAAM,KAAK;;;;iBAIhB,CAAA;AAaF,4FAA4F;AAC5F,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAOjB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAwB,CAAA"}
|
|
@@ -4,13 +4,42 @@ export declare const Owner: z.ZodMiniObject<{
|
|
|
4
4
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
5
5
|
weight: z.ZodMiniNumber<number>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
/** Native multisig configuration schema. */
|
|
7
|
+
/** Native multisig configuration domain schema. */
|
|
8
8
|
export declare const Config: z.ZodMiniObject<{
|
|
9
|
-
|
|
9
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
10
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
11
|
+
weight: z.ZodMiniNumber<number>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
10
14
|
threshold: z.ZodMiniNumber<number>;
|
|
15
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
/** Native multisig configuration RPC schema. */
|
|
18
|
+
export declare const Rpc: z.ZodMiniObject<{
|
|
11
19
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
12
20
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
13
21
|
weight: z.ZodMiniNumber<number>;
|
|
14
22
|
}, z.core.$strip>>>;
|
|
23
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
24
|
+
threshold: z.ZodMiniNumber<number>;
|
|
25
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
15
26
|
}, z.core.$strip>;
|
|
27
|
+
/** Codec decoding an RPC multisig configuration into a domain configuration. */
|
|
28
|
+
export declare const MultisigConfig: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
29
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
30
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
31
|
+
weight: z.ZodMiniNumber<number>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
34
|
+
threshold: z.ZodMiniNumber<number>;
|
|
35
|
+
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
36
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
37
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
38
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
39
|
+
weight: z.ZodMiniNumber<number>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
42
|
+
threshold: z.ZodMiniNumber<number>;
|
|
43
|
+
version: z.ZodMiniBigInt<bigint>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
16
45
|
//# sourceMappingURL=MultisigConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultisigConfig.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,6BAA6B;AAC7B,eAAO,MAAM,KAAK;;;iBAGhB,CAAA;AAEF,
|
|
1
|
+
{"version":3,"file":"MultisigConfig.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,6BAA6B;AAC7B,eAAO,MAAM,KAAK;;;iBAGhB,CAAA;AAEF,mDAAmD;AACnD,eAAO,MAAM,MAAM;;;;;;;;iBAYhB,CAAA;AAEH,gDAAgD;AAChD,eAAO,MAAM,GAAG;;;;;;;;iBAgBb,CAAA;AAEH,gFAAgF;AAChF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;kBAGzB,CAAA"}
|
|
@@ -8,12 +8,35 @@ export const Owner = z.object({
|
|
|
8
8
|
owner: z_Address.Address,
|
|
9
9
|
weight: z.number(),
|
|
10
10
|
});
|
|
11
|
-
/** Native multisig configuration schema. */
|
|
11
|
+
/** Native multisig configuration domain schema. */
|
|
12
12
|
export const Config = z
|
|
13
13
|
.object({
|
|
14
|
-
salt: z.optional(z_Hex.Hex),
|
|
15
|
-
threshold: z.number(),
|
|
16
14
|
owners: z.readonly(z.array(Owner)),
|
|
15
|
+
salt: z_Hex.Hex,
|
|
16
|
+
threshold: z.number(),
|
|
17
|
+
version: z.bigint(),
|
|
17
18
|
})
|
|
18
19
|
.check(z.refine((value) => core_MultisigConfig.validate(value), 'expected valid native multisig configuration'));
|
|
20
|
+
/** Native multisig configuration RPC schema. */
|
|
21
|
+
export const Rpc = z
|
|
22
|
+
.object({
|
|
23
|
+
owners: z.readonly(z.array(Owner)),
|
|
24
|
+
salt: z_Hex.Hex,
|
|
25
|
+
threshold: z.number(),
|
|
26
|
+
version: z_Hex.Hex,
|
|
27
|
+
})
|
|
28
|
+
.check(z.refine((value) => {
|
|
29
|
+
try {
|
|
30
|
+
core_MultisigConfig.fromRpc(value);
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}, 'expected valid native multisig configuration'));
|
|
37
|
+
/** Codec decoding an RPC multisig configuration into a domain configuration. */
|
|
38
|
+
export const MultisigConfig = z.codec(Rpc, Config, {
|
|
39
|
+
decode: (value) => core_MultisigConfig.fromRpc(value),
|
|
40
|
+
encode: (value) => core_MultisigConfig.toRpc(value),
|
|
41
|
+
});
|
|
19
42
|
//# sourceMappingURL=MultisigConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultisigConfig.js","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigConfig.ts"],"names":[],"mappings":"AAAA,m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