ox 1.0.0-beta.13 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tempo/TransactionRequest.d.ts +14 -0
- package/dist/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/tempo/TransactionRequest.js +64 -27
- package/dist/tempo/TransactionRequest.js.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +44 -0
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.d.ts +77 -0
- package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.js +78 -11
- package/dist/zod/tempo/TransactionRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/tempo/TransactionRequest.test.ts +174 -1
- package/src/tempo/TransactionRequest.ts +82 -29
- package/src/version.ts +1 -1
- package/src/zod/tempo/TransactionRequest.ts +83 -13
- package/src/zod/tempo/_test/TransactionRequest.test.ts +44 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Address from '../core/Address.js';
|
|
1
2
|
import type * as Errors from '../core/Errors.js';
|
|
2
3
|
import * as Hex from '../core/Hex.js';
|
|
3
4
|
import type { Compute } from '../core/internal/types.js';
|
|
@@ -5,11 +6,20 @@ import * as Signature from '../core/Signature.js';
|
|
|
5
6
|
import * as ox_TransactionRequest from '../core/TransactionRequest.js';
|
|
6
7
|
import * as AuthorizationTempo from './AuthorizationTempo.js';
|
|
7
8
|
import * as KeyAuthorization from './KeyAuthorization.js';
|
|
9
|
+
import type * as MultisigConfig from './MultisigConfig.js';
|
|
8
10
|
import * as SignatureEnvelope from './SignatureEnvelope.js';
|
|
9
11
|
import * as TokenId from './TokenId.js';
|
|
10
12
|
import * as TxEnvelopeTempo from './TxEnvelopeTempo.js';
|
|
11
13
|
import type { Call } from './TxEnvelopeTempo.js';
|
|
12
14
|
type KeyType = 'secp256k1' | 'p256' | 'webAuthn';
|
|
15
|
+
/**
|
|
16
|
+
* Bootstrap multisig config hint for node-side gas modeling (TIP-1061).
|
|
17
|
+
* The node prices multisig gas from it during simulation, and ignores it
|
|
18
|
+
* for registered senders.
|
|
19
|
+
*/
|
|
20
|
+
export type MultisigInit = Compute<MultisigConfig.Config & {
|
|
21
|
+
salt: Hex.Hex;
|
|
22
|
+
}>;
|
|
13
23
|
/**
|
|
14
24
|
* A Transaction Request that is generic to all transaction types.
|
|
15
25
|
*
|
|
@@ -21,12 +31,16 @@ type KeyType = 'secp256k1' | 'p256' | 'webAuthn';
|
|
|
21
31
|
export type TransactionRequest<bigintType = bigint, numberType = number, type extends string = string> = Compute<Omit<ox_TransactionRequest.TransactionRequest<bigintType, numberType, type>, 'authorizationList'> & {
|
|
22
32
|
authorizationList?: AuthorizationTempo.ListSigned<bigintType, numberType> | undefined;
|
|
23
33
|
calls?: readonly Call<bigintType>[] | undefined;
|
|
34
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
24
35
|
feePayerSignature?: Signature.Signature<true, numberType> | null | undefined;
|
|
25
36
|
keyAuthorization?: KeyAuthorization.KeyAuthorization<true> | undefined;
|
|
26
37
|
keyData?: Hex.Hex | undefined;
|
|
38
|
+
keyId?: Address.Address | undefined;
|
|
27
39
|
keyType?: KeyType | undefined;
|
|
28
40
|
feePayer?: boolean | undefined;
|
|
29
41
|
feeToken?: TokenId.TokenIdOrAddress | undefined;
|
|
42
|
+
multisigInit?: MultisigInit | undefined;
|
|
43
|
+
multisigSignatureCount?: number | undefined;
|
|
30
44
|
nonceKey?: 'random' | bigintType | undefined;
|
|
31
45
|
signature?: SignatureEnvelope.SignatureEnvelope<numberType> | undefined;
|
|
32
46
|
validBefore?: numberType | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../src/tempo/TransactionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,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AkB,CACpC,GAAG,CAAC,GAAG,GAAG,MAAM,GAAG,MAAM,EACzB,GAAG,CAAC,GAAG,GAAG,MAAM,CACjB,CAAA;IAED,KAAY,SAAS,GACjB,kBAAkB,CAAC,SAAS,CAAC,SAAS,GACtC,GAAG,CAAC,UAAU,CAAC,SAAS,GACxB,MAAM,CAAC,eAAe,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,GAAE,UAAU,CAAC,OAAY,GAC/B,eAAe,CAAC,eAAe,CAqEjC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,KAAK,OAAO,GAAG;QACb,8DAA8D;QAC9D,iBAAiB,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAA;QAC1D,6CAA6C;QAC7C,SAAS,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAA;KACrD,CAAA;IAED,KAAK,SAAS,GACV,eAAe,CAAC,IAAI,CAAC,SAAS,GAC9B,GAAG,CAAC,MAAM,CAAC,SAAS,GACpB,GAAG,CAAC,QAAQ,CAAC,SAAS,GACtB,MAAM,CAAC,eAAe,CAAA;CAC3B"}
|
|
@@ -124,6 +124,20 @@ export function toRpc(request) {
|
|
|
124
124
|
...request,
|
|
125
125
|
authorizationList: undefined,
|
|
126
126
|
});
|
|
127
|
+
const tempo = typeof request.calls !== 'undefined' ||
|
|
128
|
+
typeof request.capabilities !== 'undefined' ||
|
|
129
|
+
typeof request.feePayer !== 'undefined' ||
|
|
130
|
+
typeof request.feeToken !== 'undefined' ||
|
|
131
|
+
typeof request.keyAuthorization !== 'undefined' ||
|
|
132
|
+
typeof request.keyData !== 'undefined' ||
|
|
133
|
+
typeof request.keyId !== 'undefined' ||
|
|
134
|
+
typeof request.keyType !== 'undefined' ||
|
|
135
|
+
typeof request.multisigInit !== 'undefined' ||
|
|
136
|
+
typeof request.multisigSignatureCount !== 'undefined' ||
|
|
137
|
+
typeof request.nonceKey !== 'undefined' ||
|
|
138
|
+
typeof request.validBefore !== 'undefined' ||
|
|
139
|
+
typeof request.validAfter !== 'undefined' ||
|
|
140
|
+
request.type === 'tempo';
|
|
127
141
|
if (request.authorizationList)
|
|
128
142
|
request_rpc.authorizationList = AuthorizationTempo.toRpcList(request.authorizationList);
|
|
129
143
|
if (request.signature)
|
|
@@ -136,18 +150,36 @@ export function toRpc(request) {
|
|
|
136
150
|
value: call.value ? Quantity.fromNumberish(call.value) : '0x',
|
|
137
151
|
data: call.data ?? '0x',
|
|
138
152
|
}));
|
|
139
|
-
else if (request.to || request.data || request.value)
|
|
153
|
+
else if (request.to || request.data || request.value || tempo)
|
|
140
154
|
request_rpc.calls = [
|
|
141
155
|
{
|
|
142
|
-
to: request.to
|
|
156
|
+
to: request.to ||
|
|
157
|
+
(tempo && (!request.data || request.data === '0x')
|
|
158
|
+
? '0x0000000000000000000000000000000000000000'
|
|
159
|
+
: undefined),
|
|
143
160
|
value: request.value ? Quantity.fromNumberish(request.value) : '0x',
|
|
144
161
|
data: request.data ?? '0x',
|
|
145
162
|
},
|
|
146
163
|
];
|
|
147
|
-
if (typeof request.feeToken !== 'undefined'
|
|
164
|
+
if (typeof request.feeToken !== 'undefined' &&
|
|
165
|
+
!(request.feePayer === true && !request.feePayerSignature))
|
|
148
166
|
request_rpc.feeToken = TokenId.toAddress(request.feeToken);
|
|
149
167
|
if (request.keyAuthorization)
|
|
150
168
|
request_rpc.keyAuthorization = KeyAuthorization.toRpc(request.keyAuthorization);
|
|
169
|
+
if (typeof request.capabilities !== 'undefined')
|
|
170
|
+
request_rpc.capabilities = request.capabilities;
|
|
171
|
+
if (typeof request.feePayer !== 'undefined')
|
|
172
|
+
request_rpc.feePayer = request.feePayer;
|
|
173
|
+
if (typeof request.keyData !== 'undefined')
|
|
174
|
+
request_rpc.keyData = shimKeyData(request.keyData);
|
|
175
|
+
if (typeof request.keyId !== 'undefined')
|
|
176
|
+
request_rpc.keyId = request.keyId;
|
|
177
|
+
if (typeof request.keyType !== 'undefined')
|
|
178
|
+
request_rpc.keyType = request.keyType;
|
|
179
|
+
if (typeof request.multisigInit !== 'undefined')
|
|
180
|
+
request_rpc.multisigInit = request.multisigInit;
|
|
181
|
+
if (typeof request.multisigSignatureCount !== 'undefined')
|
|
182
|
+
request_rpc.multisigSignatureCount = request.multisigSignatureCount;
|
|
151
183
|
if (typeof request.validBefore !== 'undefined')
|
|
152
184
|
request_rpc.validBefore = Quantity.fromNumberish(request.validBefore);
|
|
153
185
|
if (typeof request.validAfter !== 'undefined')
|
|
@@ -161,14 +193,7 @@ export function toRpc(request) {
|
|
|
161
193
|
})();
|
|
162
194
|
if (nonceKey)
|
|
163
195
|
request_rpc.nonceKey = nonceKey;
|
|
164
|
-
if (
|
|
165
|
-
typeof request.feePayer !== 'undefined' ||
|
|
166
|
-
typeof request.feeToken !== 'undefined' ||
|
|
167
|
-
typeof request.keyAuthorization !== 'undefined' ||
|
|
168
|
-
typeof request.nonceKey !== 'undefined' ||
|
|
169
|
-
typeof request.validBefore !== 'undefined' ||
|
|
170
|
-
typeof request.validAfter !== 'undefined' ||
|
|
171
|
-
request.type === 'tempo') {
|
|
196
|
+
if (tempo) {
|
|
172
197
|
request_rpc.type = Transaction.toRpcType.tempo;
|
|
173
198
|
delete request_rpc.data;
|
|
174
199
|
delete request_rpc.input;
|
|
@@ -205,21 +230,19 @@ export function toEnvelope(request, options = {}) {
|
|
|
205
230
|
const calls = (() => {
|
|
206
231
|
if (request.calls)
|
|
207
232
|
return request.calls;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
];
|
|
222
|
-
return [];
|
|
233
|
+
const to = request.to ||
|
|
234
|
+
(!request.data || request.data === '0x'
|
|
235
|
+
? '0x0000000000000000000000000000000000000000'
|
|
236
|
+
: undefined);
|
|
237
|
+
return [
|
|
238
|
+
{
|
|
239
|
+
...(typeof to !== 'undefined' ? { to } : {}),
|
|
240
|
+
...(typeof request.data !== 'undefined' ? { data: request.data } : {}),
|
|
241
|
+
...(typeof request.value !== 'undefined'
|
|
242
|
+
? { value: request.value }
|
|
243
|
+
: {}),
|
|
244
|
+
},
|
|
245
|
+
];
|
|
223
246
|
})();
|
|
224
247
|
const nonceKey = (() => {
|
|
225
248
|
if (request.nonceKey === 'random')
|
|
@@ -240,7 +263,9 @@ export function toEnvelope(request, options = {}) {
|
|
|
240
263
|
: {}),
|
|
241
264
|
...(typeof request.feePayerSignature !== 'undefined'
|
|
242
265
|
? { feePayerSignature: request.feePayerSignature }
|
|
243
|
-
:
|
|
266
|
+
: request.feePayer
|
|
267
|
+
? { feePayerSignature: null }
|
|
268
|
+
: {}),
|
|
244
269
|
...(typeof request.feeToken !== 'undefined'
|
|
245
270
|
? { feeToken: request.feeToken }
|
|
246
271
|
: {}),
|
|
@@ -269,4 +294,16 @@ export function toEnvelope(request, options = {}) {
|
|
|
269
294
|
};
|
|
270
295
|
return TxEnvelopeTempo.from(input, options);
|
|
271
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Shims key data longer than 4 bytes into a 2-byte big-endian length hint.
|
|
299
|
+
* The node's gas estimator only accepts 1, 2, or 4-byte key data as a
|
|
300
|
+
* signature-size hint; anything else silently falls back to the default.
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
function shimKeyData(data) {
|
|
304
|
+
const byteLength = Hex.size(data);
|
|
305
|
+
if (byteLength <= 4)
|
|
306
|
+
return data;
|
|
307
|
+
return Hex.fromNumber(byteLength, { size: 2 });
|
|
308
|
+
}
|
|
272
309
|
//# sourceMappingURL=TransactionRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../src/tempo/TransactionRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../src/tempo/TransactionRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAA;AAExD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AAmEvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,OAAO,CAAC,OAAY;IAClC,MAAM,EAAE,iBAAiB,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IACjD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAC5C,IAAW,CACU,CAAA;IAEvB,IAAI,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;QACrC,QAAQ,CAAC,IAAI;YACX,WAAW,CAAC,WAAW,CACrB,OAAO,CAAC,IAA4C,CACrD,IAAI,QAAQ,CAAC,IAAI,CAAA;IAEtB,IAAI,OAAO,CAAC,iBAAiB;QAC3B,QAAQ,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,WAAW,CACzD,OAAO,CAAC,iBAAiB,CAC1B,CAAA;IACH,IAAI,OAAO,CAAC,SAAS;QACnB,QAAQ,CAAC,SAAS,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACn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WAAW,KAAK,WAAW;YAC5C,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;YACtC,CAAC,CAAC,EAAE,CAAC;KACR,CAAA;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAoC,CAAA;AAChF,CAAC;AAiBD;;;;;GAKG;AACH,SAAS,WAAW,CAAC,IAAa;IAChC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjC,IAAI,UAAU,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAChC,OAAO,GAAG,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAA;AAChD,CAAC"}
|
|
@@ -73,6 +73,7 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
73
73
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
74
74
|
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
75
75
|
}, z.core.$strip>>>>;
|
|
76
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
76
77
|
chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
77
78
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
78
79
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -145,10 +146,20 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
145
146
|
}, z.core.$strip>]>;
|
|
146
147
|
}, z.core.$strip>>;
|
|
147
148
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
149
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
148
150
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
149
151
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
150
152
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
151
153
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
154
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
155
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
156
|
+
threshold: z.ZodMiniNumber<number>;
|
|
157
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
158
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
159
|
+
weight: z.ZodMiniNumber<number>;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
152
163
|
nonce: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
153
164
|
nonceKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
154
165
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -269,6 +280,7 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
269
280
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
270
281
|
value: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
271
282
|
}, z.core.$strip>>>>;
|
|
283
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
272
284
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
273
285
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
274
286
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -353,10 +365,20 @@ export declare const tempo_simulateV1: import("../internal/rpcSchemas/from.js").
|
|
|
353
365
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
354
366
|
}, z.core.$strip>>;
|
|
355
367
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
368
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
356
369
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
357
370
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
358
371
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
359
372
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
373
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
374
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
375
|
+
threshold: z.ZodMiniNumber<number>;
|
|
376
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
377
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
378
|
+
weight: z.ZodMiniNumber<number>;
|
|
379
|
+
}, z.core.$strip>>>;
|
|
380
|
+
}, z.core.$strip>>;
|
|
381
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
360
382
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
361
383
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
362
384
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -985,6 +1007,7 @@ export declare const Tempo: {
|
|
|
985
1007
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
986
1008
|
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
987
1009
|
}, z.core.$strip>>>>;
|
|
1010
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
988
1011
|
chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
989
1012
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
990
1013
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -1057,10 +1080,20 @@ export declare const Tempo: {
|
|
|
1057
1080
|
}, z.core.$strip>]>;
|
|
1058
1081
|
}, z.core.$strip>>;
|
|
1059
1082
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1083
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1060
1084
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1061
1085
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1062
1086
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1063
1087
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1088
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1089
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1090
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1091
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1092
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1093
|
+
weight: z.ZodMiniNumber<number>;
|
|
1094
|
+
}, z.core.$strip>>>;
|
|
1095
|
+
}, z.core.$strip>>;
|
|
1096
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1064
1097
|
nonce: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1065
1098
|
nonceKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1066
1099
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1181,6 +1214,7 @@ export declare const Tempo: {
|
|
|
1181
1214
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1182
1215
|
value: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1183
1216
|
}, z.core.$strip>>>>;
|
|
1217
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1184
1218
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1185
1219
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1186
1220
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -1265,10 +1299,20 @@ export declare const Tempo: {
|
|
|
1265
1299
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
1266
1300
|
}, z.core.$strip>>;
|
|
1267
1301
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1302
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1268
1303
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1269
1304
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1270
1305
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1271
1306
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1307
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1308
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1309
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1310
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1311
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1312
|
+
weight: z.ZodMiniNumber<number>;
|
|
1313
|
+
}, z.core.$strip>>>;
|
|
1314
|
+
}, z.core.$strip>>;
|
|
1315
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1272
1316
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1273
1317
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
1274
1318
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RpcSchemaTempo.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/RpcSchemaTempo.ts"],"names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAA"}
|
|
@@ -56,6 +56,7 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
56
56
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
57
57
|
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
58
58
|
}, z.core.$strip>>>>;
|
|
59
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
59
60
|
chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
60
61
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
61
62
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -128,10 +129,20 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
128
129
|
}, z.core.$strip>]>;
|
|
129
130
|
}, z.core.$strip>>;
|
|
130
131
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
132
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
131
133
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
132
134
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
133
135
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
134
136
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
137
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
138
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
139
|
+
threshold: z.ZodMiniNumber<number>;
|
|
140
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
141
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
142
|
+
weight: z.ZodMiniNumber<number>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
135
146
|
nonce: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
136
147
|
nonceKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
137
148
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -254,6 +265,7 @@ export declare const Domain: z.ZodMiniObject<{
|
|
|
254
265
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
255
266
|
value: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
256
267
|
}, z.core.$strip>>>>;
|
|
268
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
257
269
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
258
270
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
259
271
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -338,10 +350,20 @@ export declare const Domain: z.ZodMiniObject<{
|
|
|
338
350
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
339
351
|
}, z.core.$strip>>;
|
|
340
352
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
353
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
341
354
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
342
355
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
343
356
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
344
357
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
358
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
359
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
360
|
+
threshold: z.ZodMiniNumber<number>;
|
|
361
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
362
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
363
|
+
weight: z.ZodMiniNumber<number>;
|
|
364
|
+
}, z.core.$strip>>>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
345
367
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
346
368
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
347
369
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -478,6 +500,7 @@ export declare const DomainToRpc: z.ZodMiniObject<{
|
|
|
478
500
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
479
501
|
value: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
480
502
|
}, z.core.$strip>>>>;
|
|
503
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
481
504
|
chainId: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat]>>;
|
|
482
505
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
483
506
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -562,10 +585,20 @@ export declare const DomainToRpc: z.ZodMiniObject<{
|
|
|
562
585
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
563
586
|
}, z.core.$strip>>;
|
|
564
587
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
588
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
565
589
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
566
590
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
567
591
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
568
592
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
593
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
594
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
595
|
+
threshold: z.ZodMiniNumber<number>;
|
|
596
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
597
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
598
|
+
weight: z.ZodMiniNumber<number>;
|
|
599
|
+
}, z.core.$strip>>>;
|
|
600
|
+
}, z.core.$strip>>;
|
|
601
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
569
602
|
nonce: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
570
603
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>, z.ZodMiniLiteral<"random">]>>;
|
|
571
604
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -688,6 +721,7 @@ export declare const TransactionRequest: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
688
721
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
689
722
|
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
690
723
|
}, z.core.$strip>>>>;
|
|
724
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
691
725
|
chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
692
726
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
693
727
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -760,10 +794,20 @@ export declare const TransactionRequest: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
760
794
|
}, z.core.$strip>]>;
|
|
761
795
|
}, z.core.$strip>>;
|
|
762
796
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
797
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
763
798
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
764
799
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
765
800
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
766
801
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
802
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
803
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
804
|
+
threshold: z.ZodMiniNumber<number>;
|
|
805
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
806
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
807
|
+
weight: z.ZodMiniNumber<number>;
|
|
808
|
+
}, z.core.$strip>>>;
|
|
809
|
+
}, z.core.$strip>>;
|
|
810
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
767
811
|
nonce: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
768
812
|
nonceKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
769
813
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -884,6 +928,7 @@ export declare const TransactionRequest: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
884
928
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
885
929
|
value: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
886
930
|
}, z.core.$strip>>>>;
|
|
931
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
887
932
|
chainId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
888
933
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
889
934
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -968,10 +1013,20 @@ export declare const TransactionRequest: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
968
1013
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
969
1014
|
}, z.core.$strip>>;
|
|
970
1015
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1016
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
971
1017
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
972
1018
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
973
1019
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
974
1020
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
1021
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1022
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1023
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1024
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1025
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1026
|
+
weight: z.ZodMiniNumber<number>;
|
|
1027
|
+
}, z.core.$strip>>>;
|
|
1028
|
+
}, z.core.$strip>>;
|
|
1029
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
975
1030
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
976
1031
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBigInt<bigint>, z.ZodMiniLiteral<"random">]>>;
|
|
977
1032
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1094,6 +1149,7 @@ export declare const TransactionRequestToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1094
1149
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1095
1150
|
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1096
1151
|
}, z.core.$strip>>>>;
|
|
1152
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1097
1153
|
chainId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1098
1154
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1099
1155
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -1166,10 +1222,20 @@ export declare const TransactionRequestToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1166
1222
|
}, z.core.$strip>]>;
|
|
1167
1223
|
}, z.core.$strip>>;
|
|
1168
1224
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1225
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1169
1226
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1170
1227
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1171
1228
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1172
1229
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1230
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1231
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1232
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1233
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1234
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1235
|
+
weight: z.ZodMiniNumber<number>;
|
|
1236
|
+
}, z.core.$strip>>>;
|
|
1237
|
+
}, z.core.$strip>>;
|
|
1238
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1173
1239
|
nonce: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1174
1240
|
nonceKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1175
1241
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1290,6 +1356,7 @@ export declare const TransactionRequestToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1290
1356
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1291
1357
|
value: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
1292
1358
|
}, z.core.$strip>>>>;
|
|
1359
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1293
1360
|
chainId: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat]>>;
|
|
1294
1361
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1295
1362
|
feePayer: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -1374,10 +1441,20 @@ export declare const TransactionRequestToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
1374
1441
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>;
|
|
1375
1442
|
}, z.core.$strip>>;
|
|
1376
1443
|
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1444
|
+
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1377
1445
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1378
1446
|
maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
1379
1447
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
1380
1448
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
1449
|
+
multisigInit: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1450
|
+
salt: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1451
|
+
threshold: z.ZodMiniNumber<number>;
|
|
1452
|
+
owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1453
|
+
owner: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1454
|
+
weight: z.ZodMiniNumber<number>;
|
|
1455
|
+
}, z.core.$strip>>>;
|
|
1456
|
+
}, z.core.$strip>>;
|
|
1457
|
+
multisigSignatureCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1381
1458
|
nonce: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
1382
1459
|
nonceKey: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>, z.ZodMiniLiteral<"random">]>>;
|
|
1383
1460
|
r: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/TransactionRequest.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../../src/zod/tempo/TransactionRequest.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAyD7B,4CAA4C;AAC5C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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