ox 1.7.2 → 1.7.4
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 +27 -0
- package/dist/tempo/KeyAuthorization.d.ts +1 -1
- package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/tempo/MultisigOperation.d.ts +42 -26
- package/dist/tempo/MultisigOperation.d.ts.map +1 -1
- package/dist/tempo/MultisigOperation.js +78 -48
- package/dist/tempo/MultisigOperation.js.map +1 -1
- package/dist/tempo/MultisigSimulation.d.ts +132 -0
- package/dist/tempo/MultisigSimulation.d.ts.map +1 -0
- package/dist/tempo/MultisigSimulation.js +140 -0
- package/dist/tempo/MultisigSimulation.js.map +1 -0
- package/dist/tempo/RpcSchemaTempo.d.ts +20 -10
- package/dist/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.d.ts +9 -20
- package/dist/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.js +12 -18
- package/dist/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/tempo/TransactionRequest.d.ts +6 -6
- 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/index.d.ts +4 -4
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +4 -4
- package/dist/tempo/index.js.map +1 -1
- package/dist/zod/tempo/AuthorizationTempo.d.ts +10 -130
- package/dist/zod/tempo/AuthorizationTempo.d.ts.map +1 -1
- package/dist/zod/tempo/KeyAuthorization.d.ts +5 -65
- package/dist/zod/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/zod/tempo/MultisigOperation.d.ts +0 -10
- package/dist/zod/tempo/MultisigOperation.d.ts.map +1 -1
- package/dist/zod/tempo/MultisigOperation.js +0 -3
- package/dist/zod/tempo/MultisigOperation.js.map +1 -1
- package/dist/zod/tempo/{MultisigWitness.d.ts → MultisigSimulation.d.ts} +17 -49
- package/dist/zod/tempo/MultisigSimulation.d.ts.map +1 -0
- package/dist/zod/tempo/{MultisigWitness.js → MultisigSimulation.js} +26 -24
- package/dist/zod/tempo/MultisigSimulation.js.map +1 -0
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +83 -204
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.js +19 -10
- package/dist/zod/tempo/RpcSchemaTempo.js.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.d.ts +3 -39
- package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.js +4 -14
- package/dist/zod/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +18 -234
- package/dist/zod/tempo/Transaction.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.d.ts +36 -192
- package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.js +10 -10
- package/dist/zod/tempo/TransactionRequest.js.map +1 -1
- package/dist/zod/tempo/z.d.ts +1 -1
- package/dist/zod/tempo/z.d.ts.map +1 -1
- package/dist/zod/tempo/z.js +1 -1
- package/dist/zod/tempo/z.js.map +1 -1
- package/package.json +9 -9
- package/src/tempo/AuthorizationTempo.test.ts +4 -0
- package/src/tempo/KeyAuthorization.test-d.ts +1 -12
- package/src/tempo/KeyAuthorization.test.ts +44 -3
- package/src/tempo/KeyAuthorization.ts +3 -3
- package/src/tempo/MultisigOperation.test-d.ts +8 -6
- package/src/tempo/MultisigOperation.test.ts +236 -169
- package/src/tempo/MultisigOperation.ts +122 -83
- package/src/tempo/MultisigSimulation.test-d.ts +33 -0
- package/src/tempo/MultisigSimulation.test.ts +283 -0
- package/src/tempo/MultisigSimulation.ts +266 -0
- package/src/tempo/RpcSchemaTempo.test-d.ts +45 -10
- package/src/tempo/RpcSchemaTempo.ts +15 -6
- package/src/tempo/SignatureEnvelope.test-d.ts +3 -59
- package/src/tempo/SignatureEnvelope.test.ts +61 -51
- package/src/tempo/SignatureEnvelope.ts +27 -44
- package/src/tempo/Transaction.test.ts +61 -0
- package/src/tempo/TransactionRequest.test-d.ts +7 -7
- package/src/tempo/TransactionRequest.test.ts +129 -208
- package/src/tempo/TransactionRequest.ts +16 -12
- package/src/tempo/index.ts +4 -4
- package/src/tempo/multisig.e2e.test.ts +51 -1
- package/src/version.ts +1 -1
- package/src/zod/tempo/MultisigOperation.ts +0 -3
- package/src/zod/tempo/{MultisigWitness.ts → MultisigSimulation.ts} +39 -42
- package/src/zod/tempo/RpcSchemaTempo.ts +20 -10
- package/src/zod/tempo/SignatureEnvelope.ts +11 -35
- package/src/zod/tempo/TransactionRequest.ts +14 -14
- package/src/zod/tempo/_test/KeyAuthorization.test.ts +2 -15
- package/src/zod/tempo/_test/MultisigOperation.test.ts +0 -2
- package/src/zod/tempo/_test/MultisigSimulation.test-d.ts +13 -0
- package/src/zod/tempo/_test/MultisigSimulation.test.ts +78 -0
- package/src/zod/tempo/_test/RpcSchemaTempo.test-d.ts +19 -2
- package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +46 -4
- package/src/zod/tempo/_test/SignatureEnvelope.test.ts +58 -112
- package/src/zod/tempo/_test/TransactionRequest.test.ts +19 -160
- package/src/zod/tempo/z.ts +1 -1
- package/dist/tempo/MultisigWitness.d.ts +0 -106
- package/dist/tempo/MultisigWitness.d.ts.map +0 -1
- package/dist/tempo/MultisigWitness.js +0 -118
- package/dist/tempo/MultisigWitness.js.map +0 -1
- package/dist/zod/tempo/MultisigWitness.d.ts.map +0 -1
- package/dist/zod/tempo/MultisigWitness.js.map +0 -1
- package/src/tempo/MultisigWitness.test-d.ts +0 -42
- package/src/tempo/MultisigWitness.test.ts +0 -288
- package/src/tempo/MultisigWitness.ts +0 -210
- package/src/zod/tempo/_test/MultisigWitness.test-d.ts +0 -13
- package/src/zod/tempo/_test/MultisigWitness.test.ts +0 -149
|
@@ -58,19 +58,7 @@ 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.
|
|
62
|
-
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
63
|
-
config: z.ZodMiniObject<{
|
|
64
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
65
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
66
|
-
weight: z.ZodMiniNumber<number>;
|
|
67
|
-
}, z.core.$strip>>>;
|
|
68
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
69
|
-
threshold: z.ZodMiniNumber<number>;
|
|
70
|
-
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
71
|
-
}, z.core.$strip>;
|
|
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[]>>>;
|
|
73
|
-
}, z.core.$strict>]>;
|
|
61
|
+
}, z.core.$strip>]>, z.ZodMiniTemplateLiteral<`0x${string}`>]>;
|
|
74
62
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
75
63
|
}, z.core.$strip>;
|
|
76
64
|
/** Token spending limit schema. */
|
|
@@ -395,19 +383,7 @@ export declare const KeyAuthorization: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
395
383
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
396
384
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
397
385
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
398
|
-
}, z.core.$strip>]>, z.
|
|
399
|
-
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
400
|
-
config: z.ZodMiniObject<{
|
|
401
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
402
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
403
|
-
weight: z.ZodMiniNumber<number>;
|
|
404
|
-
}, z.core.$strip>>>;
|
|
405
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
406
|
-
threshold: z.ZodMiniNumber<number>;
|
|
407
|
-
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
408
|
-
}, z.core.$strip>;
|
|
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[]>>>;
|
|
410
|
-
}, z.core.$strict>]>;
|
|
386
|
+
}, z.core.$strip>]>, z.ZodMiniTemplateLiteral<`0x${string}`>]>;
|
|
411
387
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
412
388
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
413
389
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -580,19 +556,7 @@ export declare const KeyAuthorizationToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
580
556
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
581
557
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
582
558
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
583
|
-
}, z.core.$strip>]>, z.
|
|
584
|
-
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
585
|
-
config: z.ZodMiniObject<{
|
|
586
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
587
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
588
|
-
weight: z.ZodMiniNumber<number>;
|
|
589
|
-
}, z.core.$strip>>>;
|
|
590
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
591
|
-
threshold: z.ZodMiniNumber<number>;
|
|
592
|
-
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
593
|
-
}, z.core.$strip>;
|
|
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[]>>>;
|
|
595
|
-
}, z.core.$strict>]>;
|
|
559
|
+
}, z.core.$strip>]>, z.ZodMiniTemplateLiteral<`0x${string}`>]>;
|
|
596
560
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
597
561
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
598
562
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -765,19 +729,7 @@ export declare const Signed: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
765
729
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
766
730
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
767
731
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
768
|
-
}, z.core.$strip>]>, z.
|
|
769
|
-
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
770
|
-
config: z.ZodMiniObject<{
|
|
771
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
772
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
773
|
-
weight: z.ZodMiniNumber<number>;
|
|
774
|
-
}, z.core.$strip>>>;
|
|
775
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
776
|
-
threshold: z.ZodMiniNumber<number>;
|
|
777
|
-
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
778
|
-
}, z.core.$strip>;
|
|
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[]>>>;
|
|
780
|
-
}, z.core.$strict>]>;
|
|
732
|
+
}, z.core.$strip>]>, z.ZodMiniTemplateLiteral<`0x${string}`>]>;
|
|
781
733
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
782
734
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
783
735
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -950,19 +902,7 @@ export declare const SignedToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
950
902
|
s: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
951
903
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
952
904
|
webauthnData: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
953
|
-
}, z.core.$strip>]>, z.
|
|
954
|
-
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
955
|
-
config: z.ZodMiniObject<{
|
|
956
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
957
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
958
|
-
weight: z.ZodMiniNumber<number>;
|
|
959
|
-
}, z.core.$strip>>>;
|
|
960
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
961
|
-
threshold: z.ZodMiniNumber<number>;
|
|
962
|
-
version: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
963
|
-
}, z.core.$strip>;
|
|
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[]>>>;
|
|
965
|
-
}, z.core.$strict>]>;
|
|
905
|
+
}, z.core.$strip>]>, z.ZodMiniTemplateLiteral<`0x${string}`>]>;
|
|
966
906
|
witness: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
967
907
|
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
968
908
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAG3B,CAAA;AAEF,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAGhC,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAmB,CAAA;AAEtC,sFAAsF;AACtF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAwB,CAAA"}
|
|
@@ -20,10 +20,8 @@ export declare const Base: z.ZodMiniObject<{
|
|
|
20
20
|
threshold: z.ZodMiniNumber<number>;
|
|
21
21
|
version: z.ZodMiniBigInt<bigint>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
-
configVersion: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
24
23
|
createdAt: z.ZodMiniNumber<number>;
|
|
25
24
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
26
|
-
init: z.ZodMiniBoolean<boolean>;
|
|
27
25
|
signatureCount: z.ZodMiniNumber<number>;
|
|
28
26
|
threshold: z.ZodMiniNumber<number>;
|
|
29
27
|
updatedAt: z.ZodMiniNumber<number>;
|
|
@@ -56,10 +54,8 @@ export declare const TransactionOperation: z.ZodMiniObject<{
|
|
|
56
54
|
threshold: z.ZodMiniNumber<number>;
|
|
57
55
|
version: z.ZodMiniBigInt<bigint>;
|
|
58
56
|
}, z.core.$strip>>;
|
|
59
|
-
configVersion: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
60
57
|
createdAt: z.ZodMiniNumber<number>;
|
|
61
58
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
62
|
-
init: z.ZodMiniBoolean<boolean>;
|
|
63
59
|
signatureCount: z.ZodMiniNumber<number>;
|
|
64
60
|
threshold: z.ZodMiniNumber<number>;
|
|
65
61
|
updatedAt: z.ZodMiniNumber<number>;
|
|
@@ -89,10 +85,8 @@ export declare const KeyAuthorizationOperation: z.ZodMiniObject<{
|
|
|
89
85
|
threshold: z.ZodMiniNumber<number>;
|
|
90
86
|
version: z.ZodMiniBigInt<bigint>;
|
|
91
87
|
}, z.core.$strip>>;
|
|
92
|
-
configVersion: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
93
88
|
createdAt: z.ZodMiniNumber<number>;
|
|
94
89
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
95
|
-
init: z.ZodMiniBoolean<boolean>;
|
|
96
90
|
signatureCount: z.ZodMiniNumber<number>;
|
|
97
91
|
threshold: z.ZodMiniNumber<number>;
|
|
98
92
|
updatedAt: z.ZodMiniNumber<number>;
|
|
@@ -125,10 +119,8 @@ export declare const Operation: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
125
119
|
threshold: z.ZodMiniNumber<number>;
|
|
126
120
|
version: z.ZodMiniBigInt<bigint>;
|
|
127
121
|
}, z.core.$strip>>;
|
|
128
|
-
configVersion: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
129
122
|
createdAt: z.ZodMiniNumber<number>;
|
|
130
123
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
131
|
-
init: z.ZodMiniBoolean<boolean>;
|
|
132
124
|
signatureCount: z.ZodMiniNumber<number>;
|
|
133
125
|
threshold: z.ZodMiniNumber<number>;
|
|
134
126
|
updatedAt: z.ZodMiniNumber<number>;
|
|
@@ -156,10 +148,8 @@ export declare const Operation: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
156
148
|
threshold: z.ZodMiniNumber<number>;
|
|
157
149
|
version: z.ZodMiniBigInt<bigint>;
|
|
158
150
|
}, z.core.$strip>>;
|
|
159
|
-
configVersion: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
160
151
|
createdAt: z.ZodMiniNumber<number>;
|
|
161
152
|
hash: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
162
|
-
init: z.ZodMiniBoolean<boolean>;
|
|
163
153
|
signatureCount: z.ZodMiniNumber<number>;
|
|
164
154
|
threshold: z.ZodMiniNumber<number>;
|
|
165
155
|
updatedAt: z.ZodMiniNumber<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultisigOperation.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigOperation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultisigOperation.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigOperation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AA0B7B,wDAAwD;AACxD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAA;AAE1C,sDAAsD;AACtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAclB,CAAA;AAEf,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAA;AAEf,kEAAkE;AAClE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGpB,CAAA"}
|
|
@@ -3,7 +3,6 @@ import * as core_MultisigOperation from '../../tempo/MultisigOperation.js';
|
|
|
3
3
|
import * as z_Address from '../Address.js';
|
|
4
4
|
import * as z_Hash from '../Hash.js';
|
|
5
5
|
import * as z_Hex from '../Hex.js';
|
|
6
|
-
import * as z_Uint from '../Uint.js';
|
|
7
6
|
import * as z from 'zod/mini';
|
|
8
7
|
import * as z_MultisigConfig from './MultisigConfig.js';
|
|
9
8
|
function baseFields() {
|
|
@@ -11,10 +10,8 @@ function baseFields() {
|
|
|
11
10
|
account: z_Address.Address,
|
|
12
11
|
approvals: z.readonly(z.array(z_Hex.Hex)),
|
|
13
12
|
config: z_MultisigConfig.MultisigConfig,
|
|
14
|
-
configVersion: z_Uint.Uint64,
|
|
15
13
|
createdAt: z.number(),
|
|
16
14
|
hash: z_Hash.Hash,
|
|
17
|
-
init: z.boolean(),
|
|
18
15
|
signatureCount: z.number(),
|
|
19
16
|
threshold: z.number(),
|
|
20
17
|
updatedAt: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultisigOperation.js","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigOperation.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAA;AAC1E,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,
|
|
1
|
+
{"version":3,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,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,GAAG,UAAU,EAAE;IACf,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC;QACd,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QACpB,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QACvB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;KACrB,CAAC;IACF,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;IACrC,WAAW,EAAE,KAAK,CAAC,GAAG;IACtB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CAC/B,CAAC;KACD,KAAK,CAAC,KAAK,CAAC,CAAA;AAEf,4DAA4D;AAC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,GAAG,UAAU,EAAE;IACf,gBAAgB,EAAE,KAAK,CAAC,GAAG;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACpC,CAAC;KACD,KAAK,CAAC,KAAK,CAAC,CAAA;AAEf,kEAAkE;AAClE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/B,oBAAoB;IACpB,yBAAyB;CAC1B,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
-
/** Native multisig simulation
|
|
2
|
+
/** Native multisig simulation spec schema. */
|
|
3
3
|
export declare const Domain: z.ZodMiniObject<{
|
|
4
4
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
5
5
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -8,8 +8,7 @@ export declare const Domain: z.ZodMiniObject<{
|
|
|
8
8
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
9
9
|
type: z.ZodMiniLiteral<"primitive">;
|
|
10
10
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
11
|
-
|
|
12
|
-
witness: z.ZodMiniObject<{
|
|
11
|
+
spec: z.ZodMiniObject<{
|
|
13
12
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
14
13
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
15
14
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -26,6 +25,7 @@ export declare const Domain: z.ZodMiniObject<{
|
|
|
26
25
|
version: z.ZodMiniBigInt<bigint>;
|
|
27
26
|
}, z.core.$strip>;
|
|
28
27
|
}, z.core.$strip>;
|
|
28
|
+
type: z.ZodMiniLiteral<"multisig">;
|
|
29
29
|
}, z.core.$strip>]>>>;
|
|
30
30
|
config: z.ZodMiniObject<{
|
|
31
31
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -37,8 +37,8 @@ export declare const Domain: z.ZodMiniObject<{
|
|
|
37
37
|
version: z.ZodMiniBigInt<bigint>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
|
-
/** Codec decoding an RPC multisig
|
|
41
|
-
export declare const
|
|
40
|
+
/** Codec decoding an RPC multisig simulation spec into its domain representation. */
|
|
41
|
+
export declare const MultisigSimulation: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
42
42
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
43
43
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
44
44
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -46,34 +46,18 @@ export declare const MultisigWitness: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
46
46
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
47
47
|
type: z.ZodMiniLiteral<"primitive">;
|
|
48
48
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
49
|
-
|
|
50
|
-
witness: z.ZodMiniObject<{
|
|
49
|
+
spec: z.ZodMiniObject<{
|
|
51
50
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
52
51
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
53
52
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
54
53
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
55
54
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
56
55
|
}, z.core.$strip>>>;
|
|
57
|
-
config: z.
|
|
58
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
59
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
60
|
-
weight: z.ZodMiniNumber<number>;
|
|
61
|
-
}, z.core.$strip>>>;
|
|
62
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
63
|
-
threshold: z.ZodMiniNumber<number>;
|
|
64
|
-
version: z.ZodMiniNumber<number>;
|
|
65
|
-
}, z.core.$strip>;
|
|
56
|
+
config: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
66
57
|
}, z.core.$strip>;
|
|
58
|
+
type: z.ZodMiniLiteral<"multisig">;
|
|
67
59
|
}, z.core.$strip>]>>>;
|
|
68
|
-
config: z.
|
|
69
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
70
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
71
|
-
weight: z.ZodMiniNumber<number>;
|
|
72
|
-
}, z.core.$strip>>>;
|
|
73
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
74
|
-
threshold: z.ZodMiniNumber<number>;
|
|
75
|
-
version: z.ZodMiniNumber<number>;
|
|
76
|
-
}, z.core.$strip>;
|
|
60
|
+
config: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
77
61
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
78
62
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
79
63
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -82,8 +66,7 @@ export declare const MultisigWitness: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
82
66
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
83
67
|
type: z.ZodMiniLiteral<"primitive">;
|
|
84
68
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
85
|
-
|
|
86
|
-
witness: z.ZodMiniObject<{
|
|
69
|
+
spec: z.ZodMiniObject<{
|
|
87
70
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
88
71
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
89
72
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -100,6 +83,7 @@ export declare const MultisigWitness: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
100
83
|
version: z.ZodMiniBigInt<bigint>;
|
|
101
84
|
}, z.core.$strip>;
|
|
102
85
|
}, z.core.$strip>;
|
|
86
|
+
type: z.ZodMiniLiteral<"multisig">;
|
|
103
87
|
}, z.core.$strip>]>>>;
|
|
104
88
|
config: z.ZodMiniObject<{
|
|
105
89
|
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -111,7 +95,7 @@ export declare const MultisigWitness: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
111
95
|
version: z.ZodMiniBigInt<bigint>;
|
|
112
96
|
}, z.core.$strip>;
|
|
113
97
|
}, z.core.$strip>>;
|
|
114
|
-
/** RPC native multisig simulation
|
|
98
|
+
/** RPC native multisig simulation spec schema. */
|
|
115
99
|
export declare const Rpc: z.ZodMiniObject<{
|
|
116
100
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
117
101
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -120,33 +104,17 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
120
104
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
121
105
|
type: z.ZodMiniLiteral<"primitive">;
|
|
122
106
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
123
|
-
|
|
124
|
-
witness: z.ZodMiniObject<{
|
|
107
|
+
spec: z.ZodMiniObject<{
|
|
125
108
|
account: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
126
109
|
approvals: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
127
110
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
128
111
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
129
112
|
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
130
113
|
}, z.core.$strip>>>;
|
|
131
|
-
config: z.
|
|
132
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
133
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
134
|
-
weight: z.ZodMiniNumber<number>;
|
|
135
|
-
}, z.core.$strip>>>;
|
|
136
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
137
|
-
threshold: z.ZodMiniNumber<number>;
|
|
138
|
-
version: z.ZodMiniNumber<number>;
|
|
139
|
-
}, z.core.$strip>;
|
|
114
|
+
config: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
140
115
|
}, z.core.$strip>;
|
|
116
|
+
type: z.ZodMiniLiteral<"multisig">;
|
|
141
117
|
}, z.core.$strip>]>>>;
|
|
142
|
-
config: z.
|
|
143
|
-
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
144
|
-
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
145
|
-
weight: z.ZodMiniNumber<number>;
|
|
146
|
-
}, z.core.$strip>>>;
|
|
147
|
-
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
148
|
-
threshold: z.ZodMiniNumber<number>;
|
|
149
|
-
version: z.ZodMiniNumber<number>;
|
|
150
|
-
}, z.core.$strip>;
|
|
118
|
+
config: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
151
119
|
}, z.core.$strip>;
|
|
152
|
-
//# sourceMappingURL=
|
|
120
|
+
//# sourceMappingURL=MultisigSimulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultisigSimulation.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigSimulation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAqC7B,8CAA8C;AAC9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBjB,CAAA;AA+BF,qFAAqF;AACrF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7B,CAAA;AAEF,kDAAkD;AAClD,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;iBAAO,CAAA"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
2
|
import * as core_MultisigConfig from '../../tempo/MultisigConfig.js';
|
|
3
|
-
import * as
|
|
3
|
+
import * as core_MultisigSimulation from '../../tempo/MultisigSimulation.js';
|
|
4
4
|
import * as z_Address from '../Address.js';
|
|
5
5
|
import * as z_Hex from '../Hex.js';
|
|
6
6
|
import * as z from 'zod/mini';
|
|
7
7
|
import * as z_MultisigConfig from './MultisigConfig.js';
|
|
8
8
|
import * as z_SignatureEnvelope from './SignatureEnvelope.js';
|
|
9
|
-
const ConfigRpc = z
|
|
10
|
-
.object({
|
|
11
|
-
owners: z.readonly(z.array(z_MultisigConfig.Owner)),
|
|
12
|
-
salt: z_Hex.Hex,
|
|
13
|
-
threshold: z.number(),
|
|
14
|
-
version: z.number(),
|
|
15
|
-
})
|
|
16
|
-
.check(z.refine((value) => core_MultisigConfig.validate(value), 'expected valid native multisig configuration'));
|
|
17
9
|
const NestedPrimitiveApproval = z.object({
|
|
18
10
|
keyData: z.optional(z_Hex.Hex),
|
|
19
11
|
keyType: z.optional(z_SignatureEnvelope.Type),
|
|
@@ -25,52 +17,62 @@ const PrimitiveApproval = z.object({
|
|
|
25
17
|
owner: z_Address.Address,
|
|
26
18
|
type: z.literal('primitive'),
|
|
27
19
|
});
|
|
28
|
-
const
|
|
20
|
+
const NestedSpec = z.object({
|
|
29
21
|
account: z_Address.Address,
|
|
30
22
|
approvals: z.readonly(z
|
|
31
23
|
.array(NestedPrimitiveApproval)
|
|
32
24
|
.check(z.maxLength(core_MultisigConfig.maxSignatures))),
|
|
33
25
|
config: z_MultisigConfig.Config,
|
|
34
26
|
});
|
|
35
|
-
const
|
|
27
|
+
const NestedSpecRpc = z.object({
|
|
36
28
|
account: z_Address.Address,
|
|
37
29
|
approvals: z.readonly(z
|
|
38
30
|
.array(NestedPrimitiveApproval)
|
|
39
31
|
.check(z.maxLength(core_MultisigConfig.maxSignatures))),
|
|
40
|
-
config:
|
|
32
|
+
config: z_Hex.Hex,
|
|
41
33
|
});
|
|
42
|
-
/** Native multisig simulation
|
|
34
|
+
/** Native multisig simulation spec schema. */
|
|
43
35
|
export const Domain = z.object({
|
|
44
36
|
account: z_Address.Address,
|
|
45
37
|
approvals: z.readonly(z
|
|
46
38
|
.array(z.union([
|
|
47
39
|
PrimitiveApproval,
|
|
48
40
|
z.object({
|
|
41
|
+
spec: NestedSpec,
|
|
49
42
|
type: z.literal('multisig'),
|
|
50
|
-
witness: NestedWitness,
|
|
51
43
|
}),
|
|
52
44
|
]))
|
|
53
45
|
.check(z.maxLength(core_MultisigConfig.maxSignatures))),
|
|
54
46
|
config: z_MultisigConfig.Config,
|
|
55
47
|
});
|
|
56
|
-
const Rpc_ = z
|
|
48
|
+
const Rpc_ = z
|
|
49
|
+
.object({
|
|
57
50
|
account: z_Address.Address,
|
|
58
51
|
approvals: z.readonly(z
|
|
59
52
|
.array(z.union([
|
|
60
53
|
PrimitiveApproval,
|
|
61
54
|
z.object({
|
|
55
|
+
spec: NestedSpecRpc,
|
|
62
56
|
type: z.literal('multisig'),
|
|
63
|
-
witness: NestedWitnessRpc,
|
|
64
57
|
}),
|
|
65
58
|
]))
|
|
66
59
|
.check(z.maxLength(core_MultisigConfig.maxSignatures))),
|
|
67
|
-
config:
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
config: z_Hex.Hex,
|
|
61
|
+
})
|
|
62
|
+
.check(z.refine((value) => {
|
|
63
|
+
try {
|
|
64
|
+
core_MultisigSimulation.fromRpc(value);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
}, 'expected valid native multisig simulation spec'));
|
|
71
|
+
/** Codec decoding an RPC multisig simulation spec into its domain representation. */
|
|
72
|
+
export const MultisigSimulation = z.codec(Rpc_, Domain, {
|
|
73
|
+
decode: (value) => core_MultisigSimulation.fromRpc(value),
|
|
74
|
+
encode: (value) => core_MultisigSimulation.toRpc(value),
|
|
73
75
|
});
|
|
74
|
-
/** RPC native multisig simulation
|
|
76
|
+
/** RPC native multisig simulation spec schema. */
|
|
75
77
|
export const Rpc = Rpc_;
|
|
76
|
-
//# sourceMappingURL=
|
|
78
|
+
//# sourceMappingURL=MultisigSimulation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultisigSimulation.js","sourceRoot":"","sources":["../../../src/zod/tempo/MultisigSimulation.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,mBAAmB,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAA;AAC5E,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAA;AAE7D,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC;IAC7C,KAAK,EAAE,SAAS,CAAC,OAAO;CACzB,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,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