ox 1.8.6 → 1.8.8
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 +35 -0
- package/dist/core/internal/abiItem.d.ts.map +1 -1
- package/dist/core/internal/abiItem.js +3 -2
- package/dist/core/internal/abiItem.js.map +1 -1
- 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 +16 -16
- package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/tempo/KeyAuthorization.js +10 -9
- 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/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/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/core/_test/AbiEvent.test.ts +7 -0
- package/src/core/_test/AbiFunction.test.ts +3 -0
- package/src/core/_test/AbiItem.test.ts +20 -0
- package/src/core/internal/abiItem.ts +3 -2
- 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 +6 -6
- package/src/tempo/KeyAuthorization.test.ts +52 -36
- package/src/tempo/KeyAuthorization.ts +29 -27
- 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/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/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
|
@@ -95,7 +95,7 @@ export declare const TxEnvelopeTempo: z.ZodMiniObject<{
|
|
|
95
95
|
}, z.core.$strip>;
|
|
96
96
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
97
97
|
}, z.core.$strip>]>>>;
|
|
98
|
-
type: z.ZodMiniLiteral<"
|
|
98
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
99
99
|
}, z.core.$strip>]>>;
|
|
100
100
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
101
101
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -191,7 +191,7 @@ export declare const TxEnvelopeTempo: z.ZodMiniObject<{
|
|
|
191
191
|
}, z.core.$strip>;
|
|
192
192
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
193
193
|
}, z.core.$strip>]>>>;
|
|
194
|
-
type: z.ZodMiniLiteral<"
|
|
194
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
195
195
|
}, z.core.$strip>]>;
|
|
196
196
|
}, z.core.$strip>>>>;
|
|
197
197
|
calls: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -305,9 +305,9 @@ export declare const TxEnvelopeTempo: z.ZodMiniObject<{
|
|
|
305
305
|
}, z.core.$strip>;
|
|
306
306
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
307
307
|
}, z.core.$strip>]>>>;
|
|
308
|
-
type: z.ZodMiniLiteral<"
|
|
308
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
309
309
|
}, z.core.$strip>]>;
|
|
310
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"
|
|
310
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
|
|
311
311
|
witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
312
312
|
}, z.core.$strip>>;
|
|
313
313
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
@@ -406,7 +406,7 @@ export declare const Signed: z.ZodMiniObject<{
|
|
|
406
406
|
}, z.core.$strip>;
|
|
407
407
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
408
408
|
}, z.core.$strip>]>>>;
|
|
409
|
-
type: z.ZodMiniLiteral<"
|
|
409
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
410
410
|
}, z.core.$strip>]>;
|
|
411
411
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
412
412
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -502,7 +502,7 @@ export declare const Signed: z.ZodMiniObject<{
|
|
|
502
502
|
}, z.core.$strip>;
|
|
503
503
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
504
504
|
}, z.core.$strip>]>>>;
|
|
505
|
-
type: z.ZodMiniLiteral<"
|
|
505
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
506
506
|
}, z.core.$strip>]>;
|
|
507
507
|
}, z.core.$strip>>>>;
|
|
508
508
|
calls: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -616,9 +616,9 @@ export declare const Signed: z.ZodMiniObject<{
|
|
|
616
616
|
}, z.core.$strip>;
|
|
617
617
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
618
618
|
}, z.core.$strip>]>>>;
|
|
619
|
-
type: z.ZodMiniLiteral<"
|
|
619
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
620
620
|
}, z.core.$strip>]>;
|
|
621
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"
|
|
621
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
|
|
622
622
|
witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
623
623
|
}, z.core.$strip>>;
|
|
624
624
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
@@ -717,7 +717,7 @@ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${st
|
|
|
717
717
|
}, z.core.$strip>;
|
|
718
718
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
719
719
|
}, z.core.$strip>]>>>;
|
|
720
|
-
type: z.ZodMiniLiteral<"
|
|
720
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
721
721
|
}, z.core.$strip>]>;
|
|
722
722
|
accessList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
723
723
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
@@ -813,7 +813,7 @@ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${st
|
|
|
813
813
|
}, z.core.$strip>;
|
|
814
814
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
815
815
|
}, z.core.$strip>]>>>;
|
|
816
|
-
type: z.ZodMiniLiteral<"
|
|
816
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
817
817
|
}, z.core.$strip>]>;
|
|
818
818
|
}, z.core.$strip>>>>;
|
|
819
819
|
calls: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -927,9 +927,9 @@ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${st
|
|
|
927
927
|
}, z.core.$strip>;
|
|
928
928
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
929
929
|
}, z.core.$strip>]>>>;
|
|
930
|
-
type: z.ZodMiniLiteral<"
|
|
930
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
931
931
|
}, z.core.$strip>]>;
|
|
932
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"
|
|
932
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>, z.ZodMiniLiteral<"configurable">]>;
|
|
933
933
|
witness: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
934
934
|
}, z.core.$strip>>;
|
|
935
935
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
@@ -105,7 +105,7 @@ export declare const Signed: z.ZodMiniObject<{
|
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
107
107
|
}, z.core.$strip>]>>>;
|
|
108
|
-
type: z.ZodMiniLiteral<"
|
|
108
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
109
109
|
}, z.core.$strip>]>;
|
|
110
110
|
version: z.ZodMiniLiteral<0>;
|
|
111
111
|
zoneId: z.ZodMiniNumber<number>;
|
|
@@ -201,7 +201,7 @@ export declare const ZoneRpcAuthentication: z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
201
201
|
}, z.core.$strip>;
|
|
202
202
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
203
203
|
}, z.core.$strip>]>>>;
|
|
204
|
-
type: z.ZodMiniLiteral<"
|
|
204
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
205
205
|
}, z.core.$strip>]>;
|
|
206
206
|
version: z.ZodMiniLiteral<0>;
|
|
207
207
|
zoneId: z.ZodMiniNumber<number>;
|
|
@@ -304,7 +304,7 @@ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${st
|
|
|
304
304
|
}, z.core.$strip>;
|
|
305
305
|
type: z.ZodMiniLiteral<"webAuthn">;
|
|
306
306
|
}, z.core.$strip>]>>>;
|
|
307
|
-
type: z.ZodMiniLiteral<"
|
|
307
|
+
type: z.ZodMiniLiteral<"configurable">;
|
|
308
308
|
}, z.core.$strip>]>;
|
|
309
309
|
version: z.ZodMiniLiteral<0>;
|
|
310
310
|
zoneId: z.ZodMiniNumber<number>;
|
package/dist/zod/tempo/z.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export * as AccountConfig from './AccountConfig.js';
|
|
2
|
+
export * as AccountOperation from './AccountOperation.js';
|
|
3
|
+
export * as AccountSimulation from './AccountSimulation.js';
|
|
1
4
|
export * as AuthorizationTempo from './AuthorizationTempo.js';
|
|
2
5
|
export * as KeyAuthorization from './KeyAuthorization.js';
|
|
3
|
-
export * as MultisigConfig from './MultisigConfig.js';
|
|
4
|
-
export * as MultisigOperation from './MultisigOperation.js';
|
|
5
|
-
export * as MultisigSimulation from './MultisigSimulation.js';
|
|
6
6
|
export * as PoolId from './PoolId.js';
|
|
7
7
|
export * as RpcSchemaTempo from './RpcSchemaTempo.js';
|
|
8
8
|
export * as SignatureEnvelope from './SignatureEnvelope.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/z.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"z.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/z.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA"}
|
package/dist/zod/tempo/z.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
export * as AccountConfig from './AccountConfig.js';
|
|
3
|
+
export * as AccountOperation from './AccountOperation.js';
|
|
4
|
+
export * as AccountSimulation from './AccountSimulation.js';
|
|
2
5
|
export * as AuthorizationTempo from './AuthorizationTempo.js';
|
|
3
6
|
export * as KeyAuthorization from './KeyAuthorization.js';
|
|
4
|
-
export * as MultisigConfig from './MultisigConfig.js';
|
|
5
|
-
export * as MultisigOperation from './MultisigOperation.js';
|
|
6
|
-
export * as MultisigSimulation from './MultisigSimulation.js';
|
|
7
7
|
export * as PoolId from './PoolId.js';
|
|
8
8
|
export * as RpcSchemaTempo from './RpcSchemaTempo.js';
|
|
9
9
|
export * as SignatureEnvelope from './SignatureEnvelope.js';
|
package/dist/zod/tempo/z.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z.js","sourceRoot":"","sources":["../../../src/zod/tempo/z.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"z.js","sourceRoot":"","sources":["../../../src/zod/tempo/z.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ox",
|
|
3
3
|
"description": "Ethereum Standard Library",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.8",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"license": "MIT",
|
|
@@ -599,6 +599,21 @@
|
|
|
599
599
|
"types": "./dist/tempo/index.d.ts",
|
|
600
600
|
"default": "./dist/tempo/index.js"
|
|
601
601
|
},
|
|
602
|
+
"./tempo/AccountConfig": {
|
|
603
|
+
"src": "./src/tempo/AccountConfig.ts",
|
|
604
|
+
"types": "./dist/tempo/AccountConfig.d.ts",
|
|
605
|
+
"default": "./dist/tempo/AccountConfig.js"
|
|
606
|
+
},
|
|
607
|
+
"./tempo/AccountOperation": {
|
|
608
|
+
"src": "./src/tempo/AccountOperation.ts",
|
|
609
|
+
"types": "./dist/tempo/AccountOperation.d.ts",
|
|
610
|
+
"default": "./dist/tempo/AccountOperation.js"
|
|
611
|
+
},
|
|
612
|
+
"./tempo/AccountSimulation": {
|
|
613
|
+
"src": "./src/tempo/AccountSimulation.ts",
|
|
614
|
+
"types": "./dist/tempo/AccountSimulation.d.ts",
|
|
615
|
+
"default": "./dist/tempo/AccountSimulation.js"
|
|
616
|
+
},
|
|
602
617
|
"./tempo/AuthorizationTempo": {
|
|
603
618
|
"src": "./src/tempo/AuthorizationTempo.ts",
|
|
604
619
|
"types": "./dist/tempo/AuthorizationTempo.d.ts",
|
|
@@ -619,21 +634,6 @@
|
|
|
619
634
|
"types": "./dist/tempo/KeyAuthorization.d.ts",
|
|
620
635
|
"default": "./dist/tempo/KeyAuthorization.js"
|
|
621
636
|
},
|
|
622
|
-
"./tempo/MultisigConfig": {
|
|
623
|
-
"src": "./src/tempo/MultisigConfig.ts",
|
|
624
|
-
"types": "./dist/tempo/MultisigConfig.d.ts",
|
|
625
|
-
"default": "./dist/tempo/MultisigConfig.js"
|
|
626
|
-
},
|
|
627
|
-
"./tempo/MultisigOperation": {
|
|
628
|
-
"src": "./src/tempo/MultisigOperation.ts",
|
|
629
|
-
"types": "./dist/tempo/MultisigOperation.d.ts",
|
|
630
|
-
"default": "./dist/tempo/MultisigOperation.js"
|
|
631
|
-
},
|
|
632
|
-
"./tempo/MultisigSimulation": {
|
|
633
|
-
"src": "./src/tempo/MultisigSimulation.ts",
|
|
634
|
-
"types": "./dist/tempo/MultisigSimulation.d.ts",
|
|
635
|
-
"default": "./dist/tempo/MultisigSimulation.js"
|
|
636
|
-
},
|
|
637
637
|
"./tempo/Period": {
|
|
638
638
|
"src": "./src/tempo/Period.ts",
|
|
639
639
|
"types": "./dist/tempo/Period.d.ts",
|
|
@@ -1059,6 +1059,21 @@
|
|
|
1059
1059
|
"types": "./dist/zod/z.d.ts",
|
|
1060
1060
|
"default": "./dist/zod/z.js"
|
|
1061
1061
|
},
|
|
1062
|
+
"./zod/tempo/AccountConfig": {
|
|
1063
|
+
"src": "./src/zod/tempo/AccountConfig.ts",
|
|
1064
|
+
"types": "./dist/zod/tempo/AccountConfig.d.ts",
|
|
1065
|
+
"default": "./dist/zod/tempo/AccountConfig.js"
|
|
1066
|
+
},
|
|
1067
|
+
"./zod/tempo/AccountOperation": {
|
|
1068
|
+
"src": "./src/zod/tempo/AccountOperation.ts",
|
|
1069
|
+
"types": "./dist/zod/tempo/AccountOperation.d.ts",
|
|
1070
|
+
"default": "./dist/zod/tempo/AccountOperation.js"
|
|
1071
|
+
},
|
|
1072
|
+
"./zod/tempo/AccountSimulation": {
|
|
1073
|
+
"src": "./src/zod/tempo/AccountSimulation.ts",
|
|
1074
|
+
"types": "./dist/zod/tempo/AccountSimulation.d.ts",
|
|
1075
|
+
"default": "./dist/zod/tempo/AccountSimulation.js"
|
|
1076
|
+
},
|
|
1062
1077
|
"./zod/tempo/AuthorizationTempo": {
|
|
1063
1078
|
"src": "./src/zod/tempo/AuthorizationTempo.ts",
|
|
1064
1079
|
"types": "./dist/zod/tempo/AuthorizationTempo.d.ts",
|
|
@@ -1069,21 +1084,6 @@
|
|
|
1069
1084
|
"types": "./dist/zod/tempo/KeyAuthorization.d.ts",
|
|
1070
1085
|
"default": "./dist/zod/tempo/KeyAuthorization.js"
|
|
1071
1086
|
},
|
|
1072
|
-
"./zod/tempo/MultisigConfig": {
|
|
1073
|
-
"src": "./src/zod/tempo/MultisigConfig.ts",
|
|
1074
|
-
"types": "./dist/zod/tempo/MultisigConfig.d.ts",
|
|
1075
|
-
"default": "./dist/zod/tempo/MultisigConfig.js"
|
|
1076
|
-
},
|
|
1077
|
-
"./zod/tempo/MultisigOperation": {
|
|
1078
|
-
"src": "./src/zod/tempo/MultisigOperation.ts",
|
|
1079
|
-
"types": "./dist/zod/tempo/MultisigOperation.d.ts",
|
|
1080
|
-
"default": "./dist/zod/tempo/MultisigOperation.js"
|
|
1081
|
-
},
|
|
1082
|
-
"./zod/tempo/MultisigSimulation": {
|
|
1083
|
-
"src": "./src/zod/tempo/MultisigSimulation.ts",
|
|
1084
|
-
"types": "./dist/zod/tempo/MultisigSimulation.d.ts",
|
|
1085
|
-
"default": "./dist/zod/tempo/MultisigSimulation.js"
|
|
1086
|
-
},
|
|
1087
1087
|
"./zod/tempo/PoolId": {
|
|
1088
1088
|
"src": "./src/zod/tempo/PoolId.ts",
|
|
1089
1089
|
"types": "./dist/zod/tempo/PoolId.d.ts",
|
|
@@ -1929,6 +1929,13 @@ describe('fromAbi', () => {
|
|
|
1929
1929
|
|
|
1930
1930
|
describe('getSelector', () => {
|
|
1931
1931
|
test('default', () => {
|
|
1932
|
+
expect(
|
|
1933
|
+
AbiEvent.getSelector(
|
|
1934
|
+
'event Transfer( address indexed from, address indexed to, uint256 value)',
|
|
1935
|
+
),
|
|
1936
|
+
).toEqual(
|
|
1937
|
+
'0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
|
|
1938
|
+
)
|
|
1932
1939
|
expect(
|
|
1933
1940
|
AbiEvent.getSelector(
|
|
1934
1941
|
'event Transfer(address indexed from, address indexed to, uint256 value)',
|
|
@@ -1133,6 +1133,9 @@ describe('getSelector', () => {
|
|
|
1133
1133
|
expect(
|
|
1134
1134
|
AbiFunction.getSelector('function ownerOf(uint256 tokenId)'),
|
|
1135
1135
|
).toEqual('0x6352211e')
|
|
1136
|
+
expect(
|
|
1137
|
+
AbiFunction.getSelector('function ownerOf( uint256 tokenId )'),
|
|
1138
|
+
).toEqual('0x6352211e')
|
|
1136
1139
|
expect(AbiFunction.getSelector('ownerOf(uint256)')).toEqual('0x6352211e')
|
|
1137
1140
|
expect(
|
|
1138
1141
|
AbiFunction.getSelector('processInvestment(address,uint256,bool)'),
|
|
@@ -1763,6 +1763,26 @@ describe('getSignature', () => {
|
|
|
1763
1763
|
expect(normalizeSignature('event Bar()')).toBe('Bar()')
|
|
1764
1764
|
})
|
|
1765
1765
|
|
|
1766
|
+
test('leading space after opening parenthesis', () => {
|
|
1767
|
+
expect(normalizeSignature('function foo( uint256 a )')).toBe(
|
|
1768
|
+
'foo(uint256)',
|
|
1769
|
+
)
|
|
1770
|
+
expect(normalizeSignature('foo( uint256 a, address b)')).toBe(
|
|
1771
|
+
'foo(uint256,address)',
|
|
1772
|
+
)
|
|
1773
|
+
expect(
|
|
1774
|
+
normalizeSignature(
|
|
1775
|
+
'event Transfer( address indexed from, address indexed to, uint256 value)',
|
|
1776
|
+
),
|
|
1777
|
+
).toBe('Transfer(address,address,uint256)')
|
|
1778
|
+
expect(normalizeSignature('function foo(( uint256 a, bool b) c)')).toBe(
|
|
1779
|
+
'foo((uint256,bool))',
|
|
1780
|
+
)
|
|
1781
|
+
expect(
|
|
1782
|
+
normalizeSignature('function foo( ( uint256 a, bool b)[] c)'),
|
|
1783
|
+
).toBe('foo((uint256,bool)[])')
|
|
1784
|
+
})
|
|
1785
|
+
|
|
1766
1786
|
test('function bar(uint foo)', () => {
|
|
1767
1787
|
expect(normalizeSignature('function bar(uint foo)')).toBe('bar(uint)')
|
|
1768
1788
|
})
|
|
@@ -530,8 +530,9 @@ export function normalizeSignature(signature: string): string {
|
|
|
530
530
|
|
|
531
531
|
// Ignore spaces
|
|
532
532
|
if (char === ' ') {
|
|
533
|
-
//
|
|
534
|
-
|
|
533
|
+
// A space directly after a `(` or `,` separator is leading whitespace.
|
|
534
|
+
// Otherwise, it ends the type, so we want to deactivate.
|
|
535
|
+
if (!current.endsWith(',') && !current.endsWith('(')) {
|
|
535
536
|
current = ''
|
|
536
537
|
active = false
|
|
537
538
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expectTypeOf, test } from 'vp/test'
|
|
2
|
-
import * as
|
|
2
|
+
import * as AccountConfig from './AccountConfig.js'
|
|
3
3
|
|
|
4
4
|
const input = {
|
|
5
5
|
owners: [
|
|
@@ -9,41 +9,51 @@ const input = {
|
|
|
9
9
|
},
|
|
10
10
|
],
|
|
11
11
|
threshold: 1,
|
|
12
|
-
} as const satisfies
|
|
12
|
+
} as const satisfies AccountConfig.Input
|
|
13
13
|
|
|
14
14
|
test('from returns a complete configuration', () => {
|
|
15
|
-
const config =
|
|
16
|
-
const numeric =
|
|
17
|
-
const zero =
|
|
15
|
+
const config = AccountConfig.from(input)
|
|
16
|
+
const numeric = AccountConfig.from({ ...input, version: 1 })
|
|
17
|
+
const zero = AccountConfig.from({ ...input, version: 0 })
|
|
18
18
|
|
|
19
|
-
expectTypeOf(config).toMatchTypeOf<
|
|
19
|
+
expectTypeOf(config).toMatchTypeOf<AccountConfig.Config>()
|
|
20
20
|
expectTypeOf(config.version).toEqualTypeOf<0n>()
|
|
21
21
|
expectTypeOf(numeric.version).toEqualTypeOf<bigint>()
|
|
22
22
|
expectTypeOf(zero.version).toEqualTypeOf<0n>()
|
|
23
23
|
})
|
|
24
24
|
|
|
25
|
+
test('update returns the next complete configuration', () => {
|
|
26
|
+
const config = AccountConfig.update(AccountConfig.from(input), {
|
|
27
|
+
owners: input.owners,
|
|
28
|
+
threshold: 1,
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
expectTypeOf(config).toEqualTypeOf<AccountConfig.Config>()
|
|
32
|
+
expectTypeOf(config.version).toEqualTypeOf<bigint>()
|
|
33
|
+
})
|
|
34
|
+
|
|
25
35
|
test('RPC configurations use hexadecimal versions', () => {
|
|
26
|
-
const rpc =
|
|
36
|
+
const rpc = AccountConfig.toRpc(AccountConfig.from(input))
|
|
27
37
|
|
|
28
|
-
expectTypeOf(rpc).toEqualTypeOf<
|
|
38
|
+
expectTypeOf(rpc).toEqualTypeOf<AccountConfig.Rpc>()
|
|
29
39
|
expectTypeOf(rpc.version).toEqualTypeOf<`0x${string}`>()
|
|
30
40
|
})
|
|
31
41
|
|
|
32
42
|
test('complete configurations require a version', () => {
|
|
33
43
|
// @ts-expect-error Complete configurations include their version.
|
|
34
|
-
const config:
|
|
44
|
+
const config: AccountConfig.Config = input
|
|
35
45
|
|
|
36
|
-
expectTypeOf(config).toEqualTypeOf<
|
|
46
|
+
expectTypeOf(config).toEqualTypeOf<AccountConfig.Config>()
|
|
37
47
|
})
|
|
38
48
|
|
|
39
49
|
test('sign payloads take the version from config', () => {
|
|
40
|
-
|
|
50
|
+
AccountConfig.getSignPayload({
|
|
41
51
|
account: '0x2222222222222222222222222222222222222222',
|
|
42
52
|
config: { version: 1 },
|
|
43
53
|
payload: '0x1234',
|
|
44
54
|
})
|
|
45
55
|
|
|
46
|
-
|
|
56
|
+
AccountConfig.getSignPayload({
|
|
47
57
|
account: '0x2222222222222222222222222222222222222222',
|
|
48
58
|
// @ts-expect-error A configuration version is required.
|
|
49
59
|
config: {},
|