@waiaas/core 2.6.0 → 2.7.0-rc

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.
@@ -1,4 +1,30 @@
1
1
  import { z } from 'zod';
2
+ /** Gas condition for conditional execution. At least one of maxGasPrice or maxPriorityFee required. */
3
+ export declare const GasConditionSchema: z.ZodEffects<z.ZodObject<{
4
+ /** EVM: baseFee + priorityFee upper bound in wei. */
5
+ maxGasPrice: z.ZodOptional<z.ZodString>;
6
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
7
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
8
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
9
+ timeout: z.ZodOptional<z.ZodNumber>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ maxGasPrice?: string | undefined;
12
+ maxPriorityFee?: string | undefined;
13
+ timeout?: number | undefined;
14
+ }, {
15
+ maxGasPrice?: string | undefined;
16
+ maxPriorityFee?: string | undefined;
17
+ timeout?: number | undefined;
18
+ }>, {
19
+ maxGasPrice?: string | undefined;
20
+ maxPriorityFee?: string | undefined;
21
+ timeout?: number | undefined;
22
+ }, {
23
+ maxGasPrice?: string | undefined;
24
+ maxPriorityFee?: string | undefined;
25
+ timeout?: number | undefined;
26
+ }>;
27
+ export type GasCondition = z.infer<typeof GasConditionSchema>;
2
28
  export declare const TransactionSchema: z.ZodObject<{
3
29
  id: z.ZodString;
4
30
  walletId: z.ZodString;
@@ -68,6 +94,30 @@ export declare const SendTransactionRequestSchema: z.ZodObject<{
68
94
  export type SendTransactionRequest = z.infer<typeof SendTransactionRequestSchema>;
69
95
  /** Type 1: TRANSFER -- native token transfer (SOL/ETH). */
70
96
  export declare const TransferRequestSchema: z.ZodObject<{
97
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
98
+ /** EVM: baseFee + priorityFee upper bound in wei. */
99
+ maxGasPrice: z.ZodOptional<z.ZodString>;
100
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
101
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
102
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
103
+ timeout: z.ZodOptional<z.ZodNumber>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ maxGasPrice?: string | undefined;
106
+ maxPriorityFee?: string | undefined;
107
+ timeout?: number | undefined;
108
+ }, {
109
+ maxGasPrice?: string | undefined;
110
+ maxPriorityFee?: string | undefined;
111
+ timeout?: number | undefined;
112
+ }>, {
113
+ maxGasPrice?: string | undefined;
114
+ maxPriorityFee?: string | undefined;
115
+ timeout?: number | undefined;
116
+ }, {
117
+ maxGasPrice?: string | undefined;
118
+ maxPriorityFee?: string | undefined;
119
+ timeout?: number | undefined;
120
+ }>>;
71
121
  type: z.ZodLiteral<"TRANSFER">;
72
122
  to: z.ZodString;
73
123
  amount: z.ZodString;
@@ -79,16 +129,50 @@ export declare const TransferRequestSchema: z.ZodObject<{
79
129
  to: string;
80
130
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
81
131
  memo?: string | undefined;
132
+ gasCondition?: {
133
+ maxGasPrice?: string | undefined;
134
+ maxPriorityFee?: string | undefined;
135
+ timeout?: number | undefined;
136
+ } | undefined;
82
137
  }, {
83
138
  type: "TRANSFER";
84
139
  amount: string;
85
140
  to: string;
86
141
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
87
142
  memo?: string | undefined;
143
+ gasCondition?: {
144
+ maxGasPrice?: string | undefined;
145
+ maxPriorityFee?: string | undefined;
146
+ timeout?: number | undefined;
147
+ } | undefined;
88
148
  }>;
89
149
  export type TransferRequestInput = z.infer<typeof TransferRequestSchema>;
90
150
  /** Type 2: TOKEN_TRANSFER -- SPL/ERC-20 token transfer. */
91
151
  export declare const TokenTransferRequestSchema: z.ZodObject<{
152
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
153
+ /** EVM: baseFee + priorityFee upper bound in wei. */
154
+ maxGasPrice: z.ZodOptional<z.ZodString>;
155
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
156
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
157
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
158
+ timeout: z.ZodOptional<z.ZodNumber>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ maxGasPrice?: string | undefined;
161
+ maxPriorityFee?: string | undefined;
162
+ timeout?: number | undefined;
163
+ }, {
164
+ maxGasPrice?: string | undefined;
165
+ maxPriorityFee?: string | undefined;
166
+ timeout?: number | undefined;
167
+ }>, {
168
+ maxGasPrice?: string | undefined;
169
+ maxPriorityFee?: string | undefined;
170
+ timeout?: number | undefined;
171
+ }, {
172
+ maxGasPrice?: string | undefined;
173
+ maxPriorityFee?: string | undefined;
174
+ timeout?: number | undefined;
175
+ }>>;
92
176
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
93
177
  to: z.ZodString;
94
178
  amount: z.ZodString;
@@ -132,6 +216,11 @@ export declare const TokenTransferRequestSchema: z.ZodObject<{
132
216
  to: string;
133
217
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
134
218
  memo?: string | undefined;
219
+ gasCondition?: {
220
+ maxGasPrice?: string | undefined;
221
+ maxPriorityFee?: string | undefined;
222
+ timeout?: number | undefined;
223
+ } | undefined;
135
224
  }, {
136
225
  type: "TOKEN_TRANSFER";
137
226
  token: {
@@ -144,10 +233,39 @@ export declare const TokenTransferRequestSchema: z.ZodObject<{
144
233
  to: string;
145
234
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
146
235
  memo?: string | undefined;
236
+ gasCondition?: {
237
+ maxGasPrice?: string | undefined;
238
+ maxPriorityFee?: string | undefined;
239
+ timeout?: number | undefined;
240
+ } | undefined;
147
241
  }>;
148
242
  export type TokenTransferRequest = z.infer<typeof TokenTransferRequestSchema>;
149
243
  /** Type 3: CONTRACT_CALL -- arbitrary contract invocation. */
150
244
  export declare const ContractCallRequestSchema: z.ZodObject<{
245
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
246
+ /** EVM: baseFee + priorityFee upper bound in wei. */
247
+ maxGasPrice: z.ZodOptional<z.ZodString>;
248
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
249
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
250
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
251
+ timeout: z.ZodOptional<z.ZodNumber>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ maxGasPrice?: string | undefined;
254
+ maxPriorityFee?: string | undefined;
255
+ timeout?: number | undefined;
256
+ }, {
257
+ maxGasPrice?: string | undefined;
258
+ maxPriorityFee?: string | undefined;
259
+ timeout?: number | undefined;
260
+ }>, {
261
+ maxGasPrice?: string | undefined;
262
+ maxPriorityFee?: string | undefined;
263
+ timeout?: number | undefined;
264
+ }, {
265
+ maxGasPrice?: string | undefined;
266
+ maxPriorityFee?: string | undefined;
267
+ timeout?: number | undefined;
268
+ }>>;
151
269
  type: z.ZodLiteral<"CONTRACT_CALL">;
152
270
  to: z.ZodString;
153
271
  calldata: z.ZodOptional<z.ZodString>;
@@ -176,6 +294,11 @@ export declare const ContractCallRequestSchema: z.ZodObject<{
176
294
  to: string;
177
295
  value?: string | undefined;
178
296
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
297
+ gasCondition?: {
298
+ maxGasPrice?: string | undefined;
299
+ maxPriorityFee?: string | undefined;
300
+ timeout?: number | undefined;
301
+ } | undefined;
179
302
  calldata?: string | undefined;
180
303
  abi?: Record<string, unknown>[] | undefined;
181
304
  programId?: string | undefined;
@@ -191,6 +314,11 @@ export declare const ContractCallRequestSchema: z.ZodObject<{
191
314
  to: string;
192
315
  value?: string | undefined;
193
316
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
317
+ gasCondition?: {
318
+ maxGasPrice?: string | undefined;
319
+ maxPriorityFee?: string | undefined;
320
+ timeout?: number | undefined;
321
+ } | undefined;
194
322
  calldata?: string | undefined;
195
323
  abi?: Record<string, unknown>[] | undefined;
196
324
  programId?: string | undefined;
@@ -205,6 +333,30 @@ export declare const ContractCallRequestSchema: z.ZodObject<{
205
333
  export type ContractCallRequest = z.infer<typeof ContractCallRequestSchema>;
206
334
  /** Type 4: APPROVE -- token spending approval (ERC-20 approve / SPL delegate). */
207
335
  export declare const ApproveRequestSchema: z.ZodObject<{
336
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
337
+ /** EVM: baseFee + priorityFee upper bound in wei. */
338
+ maxGasPrice: z.ZodOptional<z.ZodString>;
339
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
340
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
341
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
342
+ timeout: z.ZodOptional<z.ZodNumber>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ maxGasPrice?: string | undefined;
345
+ maxPriorityFee?: string | undefined;
346
+ timeout?: number | undefined;
347
+ }, {
348
+ maxGasPrice?: string | undefined;
349
+ maxPriorityFee?: string | undefined;
350
+ timeout?: number | undefined;
351
+ }>, {
352
+ maxGasPrice?: string | undefined;
353
+ maxPriorityFee?: string | undefined;
354
+ timeout?: number | undefined;
355
+ }, {
356
+ maxGasPrice?: string | undefined;
357
+ maxPriorityFee?: string | undefined;
358
+ timeout?: number | undefined;
359
+ }>>;
208
360
  type: z.ZodLiteral<"APPROVE">;
209
361
  spender: z.ZodString;
210
362
  token: z.ZodEffects<z.ZodObject<{
@@ -246,6 +398,11 @@ export declare const ApproveRequestSchema: z.ZodObject<{
246
398
  amount: string;
247
399
  spender: string;
248
400
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
401
+ gasCondition?: {
402
+ maxGasPrice?: string | undefined;
403
+ maxPriorityFee?: string | undefined;
404
+ timeout?: number | undefined;
405
+ } | undefined;
249
406
  }, {
250
407
  type: "APPROVE";
251
408
  token: {
@@ -257,12 +414,65 @@ export declare const ApproveRequestSchema: z.ZodObject<{
257
414
  amount: string;
258
415
  spender: string;
259
416
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
417
+ gasCondition?: {
418
+ maxGasPrice?: string | undefined;
419
+ maxPriorityFee?: string | undefined;
420
+ timeout?: number | undefined;
421
+ } | undefined;
260
422
  }>;
261
423
  export type ApproveRequest = z.infer<typeof ApproveRequestSchema>;
262
424
  /** Type 5: BATCH -- multiple instructions in a single transaction. */
263
425
  export declare const BatchRequestSchema: z.ZodObject<{
426
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
427
+ /** EVM: baseFee + priorityFee upper bound in wei. */
428
+ maxGasPrice: z.ZodOptional<z.ZodString>;
429
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
430
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
431
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
432
+ timeout: z.ZodOptional<z.ZodNumber>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ maxGasPrice?: string | undefined;
435
+ maxPriorityFee?: string | undefined;
436
+ timeout?: number | undefined;
437
+ }, {
438
+ maxGasPrice?: string | undefined;
439
+ maxPriorityFee?: string | undefined;
440
+ timeout?: number | undefined;
441
+ }>, {
442
+ maxGasPrice?: string | undefined;
443
+ maxPriorityFee?: string | undefined;
444
+ timeout?: number | undefined;
445
+ }, {
446
+ maxGasPrice?: string | undefined;
447
+ maxPriorityFee?: string | undefined;
448
+ timeout?: number | undefined;
449
+ }>>;
264
450
  type: z.ZodLiteral<"BATCH">;
265
451
  instructions: z.ZodArray<z.ZodUnion<[z.ZodObject<Omit<{
452
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
453
+ /** EVM: baseFee + priorityFee upper bound in wei. */
454
+ maxGasPrice: z.ZodOptional<z.ZodString>;
455
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
456
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
457
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
458
+ timeout: z.ZodOptional<z.ZodNumber>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ maxGasPrice?: string | undefined;
461
+ maxPriorityFee?: string | undefined;
462
+ timeout?: number | undefined;
463
+ }, {
464
+ maxGasPrice?: string | undefined;
465
+ maxPriorityFee?: string | undefined;
466
+ timeout?: number | undefined;
467
+ }>, {
468
+ maxGasPrice?: string | undefined;
469
+ maxPriorityFee?: string | undefined;
470
+ timeout?: number | undefined;
471
+ }, {
472
+ maxGasPrice?: string | undefined;
473
+ maxPriorityFee?: string | undefined;
474
+ timeout?: number | undefined;
475
+ }>>;
266
476
  type: z.ZodLiteral<"TRANSFER">;
267
477
  to: z.ZodString;
268
478
  amount: z.ZodString;
@@ -273,12 +483,46 @@ export declare const BatchRequestSchema: z.ZodObject<{
273
483
  to: string;
274
484
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
275
485
  memo?: string | undefined;
486
+ gasCondition?: {
487
+ maxGasPrice?: string | undefined;
488
+ maxPriorityFee?: string | undefined;
489
+ timeout?: number | undefined;
490
+ } | undefined;
276
491
  }, {
277
492
  amount: string;
278
493
  to: string;
279
494
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
280
495
  memo?: string | undefined;
496
+ gasCondition?: {
497
+ maxGasPrice?: string | undefined;
498
+ maxPriorityFee?: string | undefined;
499
+ timeout?: number | undefined;
500
+ } | undefined;
281
501
  }>, z.ZodObject<Omit<{
502
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
503
+ /** EVM: baseFee + priorityFee upper bound in wei. */
504
+ maxGasPrice: z.ZodOptional<z.ZodString>;
505
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
506
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
507
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
508
+ timeout: z.ZodOptional<z.ZodNumber>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ maxGasPrice?: string | undefined;
511
+ maxPriorityFee?: string | undefined;
512
+ timeout?: number | undefined;
513
+ }, {
514
+ maxGasPrice?: string | undefined;
515
+ maxPriorityFee?: string | undefined;
516
+ timeout?: number | undefined;
517
+ }>, {
518
+ maxGasPrice?: string | undefined;
519
+ maxPriorityFee?: string | undefined;
520
+ timeout?: number | undefined;
521
+ }, {
522
+ maxGasPrice?: string | undefined;
523
+ maxPriorityFee?: string | undefined;
524
+ timeout?: number | undefined;
525
+ }>>;
282
526
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
283
527
  to: z.ZodString;
284
528
  amount: z.ZodString;
@@ -321,6 +565,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
321
565
  to: string;
322
566
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
323
567
  memo?: string | undefined;
568
+ gasCondition?: {
569
+ maxGasPrice?: string | undefined;
570
+ maxPriorityFee?: string | undefined;
571
+ timeout?: number | undefined;
572
+ } | undefined;
324
573
  }, {
325
574
  token: {
326
575
  symbol: string;
@@ -332,7 +581,36 @@ export declare const BatchRequestSchema: z.ZodObject<{
332
581
  to: string;
333
582
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
334
583
  memo?: string | undefined;
584
+ gasCondition?: {
585
+ maxGasPrice?: string | undefined;
586
+ maxPriorityFee?: string | undefined;
587
+ timeout?: number | undefined;
588
+ } | undefined;
335
589
  }>, z.ZodObject<Omit<{
590
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
591
+ /** EVM: baseFee + priorityFee upper bound in wei. */
592
+ maxGasPrice: z.ZodOptional<z.ZodString>;
593
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
594
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
595
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
596
+ timeout: z.ZodOptional<z.ZodNumber>;
597
+ }, "strip", z.ZodTypeAny, {
598
+ maxGasPrice?: string | undefined;
599
+ maxPriorityFee?: string | undefined;
600
+ timeout?: number | undefined;
601
+ }, {
602
+ maxGasPrice?: string | undefined;
603
+ maxPriorityFee?: string | undefined;
604
+ timeout?: number | undefined;
605
+ }>, {
606
+ maxGasPrice?: string | undefined;
607
+ maxPriorityFee?: string | undefined;
608
+ timeout?: number | undefined;
609
+ }, {
610
+ maxGasPrice?: string | undefined;
611
+ maxPriorityFee?: string | undefined;
612
+ timeout?: number | undefined;
613
+ }>>;
336
614
  type: z.ZodLiteral<"CONTRACT_CALL">;
337
615
  to: z.ZodString;
338
616
  calldata: z.ZodOptional<z.ZodString>;
@@ -360,6 +638,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
360
638
  to: string;
361
639
  value?: string | undefined;
362
640
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
641
+ gasCondition?: {
642
+ maxGasPrice?: string | undefined;
643
+ maxPriorityFee?: string | undefined;
644
+ timeout?: number | undefined;
645
+ } | undefined;
363
646
  calldata?: string | undefined;
364
647
  abi?: Record<string, unknown>[] | undefined;
365
648
  programId?: string | undefined;
@@ -374,6 +657,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
374
657
  to: string;
375
658
  value?: string | undefined;
376
659
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
660
+ gasCondition?: {
661
+ maxGasPrice?: string | undefined;
662
+ maxPriorityFee?: string | undefined;
663
+ timeout?: number | undefined;
664
+ } | undefined;
377
665
  calldata?: string | undefined;
378
666
  abi?: Record<string, unknown>[] | undefined;
379
667
  programId?: string | undefined;
@@ -385,6 +673,30 @@ export declare const BatchRequestSchema: z.ZodObject<{
385
673
  }[] | undefined;
386
674
  actionProvider?: string | undefined;
387
675
  }>, z.ZodObject<Omit<{
676
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
677
+ /** EVM: baseFee + priorityFee upper bound in wei. */
678
+ maxGasPrice: z.ZodOptional<z.ZodString>;
679
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
680
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
681
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
682
+ timeout: z.ZodOptional<z.ZodNumber>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ maxGasPrice?: string | undefined;
685
+ maxPriorityFee?: string | undefined;
686
+ timeout?: number | undefined;
687
+ }, {
688
+ maxGasPrice?: string | undefined;
689
+ maxPriorityFee?: string | undefined;
690
+ timeout?: number | undefined;
691
+ }>, {
692
+ maxGasPrice?: string | undefined;
693
+ maxPriorityFee?: string | undefined;
694
+ timeout?: number | undefined;
695
+ }, {
696
+ maxGasPrice?: string | undefined;
697
+ maxPriorityFee?: string | undefined;
698
+ timeout?: number | undefined;
699
+ }>>;
388
700
  type: z.ZodLiteral<"APPROVE">;
389
701
  spender: z.ZodString;
390
702
  token: z.ZodEffects<z.ZodObject<{
@@ -425,6 +737,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
425
737
  amount: string;
426
738
  spender: string;
427
739
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
740
+ gasCondition?: {
741
+ maxGasPrice?: string | undefined;
742
+ maxPriorityFee?: string | undefined;
743
+ timeout?: number | undefined;
744
+ } | undefined;
428
745
  }, {
429
746
  token: {
430
747
  symbol: string;
@@ -435,6 +752,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
435
752
  amount: string;
436
753
  spender: string;
437
754
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
755
+ gasCondition?: {
756
+ maxGasPrice?: string | undefined;
757
+ maxPriorityFee?: string | undefined;
758
+ timeout?: number | undefined;
759
+ } | undefined;
438
760
  }>]>, "many">;
439
761
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
440
762
  }, "strip", z.ZodTypeAny, {
@@ -444,6 +766,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
444
766
  to: string;
445
767
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
446
768
  memo?: string | undefined;
769
+ gasCondition?: {
770
+ maxGasPrice?: string | undefined;
771
+ maxPriorityFee?: string | undefined;
772
+ timeout?: number | undefined;
773
+ } | undefined;
447
774
  } | {
448
775
  token: {
449
776
  symbol: string;
@@ -455,10 +782,20 @@ export declare const BatchRequestSchema: z.ZodObject<{
455
782
  to: string;
456
783
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
457
784
  memo?: string | undefined;
785
+ gasCondition?: {
786
+ maxGasPrice?: string | undefined;
787
+ maxPriorityFee?: string | undefined;
788
+ timeout?: number | undefined;
789
+ } | undefined;
458
790
  } | {
459
791
  to: string;
460
792
  value?: string | undefined;
461
793
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
794
+ gasCondition?: {
795
+ maxGasPrice?: string | undefined;
796
+ maxPriorityFee?: string | undefined;
797
+ timeout?: number | undefined;
798
+ } | undefined;
462
799
  calldata?: string | undefined;
463
800
  abi?: Record<string, unknown>[] | undefined;
464
801
  programId?: string | undefined;
@@ -479,8 +816,18 @@ export declare const BatchRequestSchema: z.ZodObject<{
479
816
  amount: string;
480
817
  spender: string;
481
818
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
819
+ gasCondition?: {
820
+ maxGasPrice?: string | undefined;
821
+ maxPriorityFee?: string | undefined;
822
+ timeout?: number | undefined;
823
+ } | undefined;
482
824
  })[];
483
825
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
826
+ gasCondition?: {
827
+ maxGasPrice?: string | undefined;
828
+ maxPriorityFee?: string | undefined;
829
+ timeout?: number | undefined;
830
+ } | undefined;
484
831
  }, {
485
832
  type: "BATCH";
486
833
  instructions: ({
@@ -488,6 +835,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
488
835
  to: string;
489
836
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
490
837
  memo?: string | undefined;
838
+ gasCondition?: {
839
+ maxGasPrice?: string | undefined;
840
+ maxPriorityFee?: string | undefined;
841
+ timeout?: number | undefined;
842
+ } | undefined;
491
843
  } | {
492
844
  token: {
493
845
  symbol: string;
@@ -499,10 +851,20 @@ export declare const BatchRequestSchema: z.ZodObject<{
499
851
  to: string;
500
852
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
501
853
  memo?: string | undefined;
854
+ gasCondition?: {
855
+ maxGasPrice?: string | undefined;
856
+ maxPriorityFee?: string | undefined;
857
+ timeout?: number | undefined;
858
+ } | undefined;
502
859
  } | {
503
860
  to: string;
504
861
  value?: string | undefined;
505
862
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
863
+ gasCondition?: {
864
+ maxGasPrice?: string | undefined;
865
+ maxPriorityFee?: string | undefined;
866
+ timeout?: number | undefined;
867
+ } | undefined;
506
868
  calldata?: string | undefined;
507
869
  abi?: Record<string, unknown>[] | undefined;
508
870
  programId?: string | undefined;
@@ -523,8 +885,18 @@ export declare const BatchRequestSchema: z.ZodObject<{
523
885
  amount: string;
524
886
  spender: string;
525
887
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
888
+ gasCondition?: {
889
+ maxGasPrice?: string | undefined;
890
+ maxPriorityFee?: string | undefined;
891
+ timeout?: number | undefined;
892
+ } | undefined;
526
893
  })[];
527
894
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
895
+ gasCondition?: {
896
+ maxGasPrice?: string | undefined;
897
+ maxPriorityFee?: string | undefined;
898
+ timeout?: number | undefined;
899
+ } | undefined;
528
900
  }>;
529
901
  export type BatchRequest = z.infer<typeof BatchRequestSchema>;
530
902
  /**
@@ -532,6 +904,30 @@ export type BatchRequest = z.infer<typeof BatchRequestSchema>;
532
904
  * Identifies the correct schema variant via the `type` field.
533
905
  */
534
906
  export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
907
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
908
+ /** EVM: baseFee + priorityFee upper bound in wei. */
909
+ maxGasPrice: z.ZodOptional<z.ZodString>;
910
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
911
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
912
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
913
+ timeout: z.ZodOptional<z.ZodNumber>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ maxGasPrice?: string | undefined;
916
+ maxPriorityFee?: string | undefined;
917
+ timeout?: number | undefined;
918
+ }, {
919
+ maxGasPrice?: string | undefined;
920
+ maxPriorityFee?: string | undefined;
921
+ timeout?: number | undefined;
922
+ }>, {
923
+ maxGasPrice?: string | undefined;
924
+ maxPriorityFee?: string | undefined;
925
+ timeout?: number | undefined;
926
+ }, {
927
+ maxGasPrice?: string | undefined;
928
+ maxPriorityFee?: string | undefined;
929
+ timeout?: number | undefined;
930
+ }>>;
535
931
  type: z.ZodLiteral<"TRANSFER">;
536
932
  to: z.ZodString;
537
933
  amount: z.ZodString;
@@ -543,13 +939,47 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
543
939
  to: string;
544
940
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
545
941
  memo?: string | undefined;
942
+ gasCondition?: {
943
+ maxGasPrice?: string | undefined;
944
+ maxPriorityFee?: string | undefined;
945
+ timeout?: number | undefined;
946
+ } | undefined;
546
947
  }, {
547
948
  type: "TRANSFER";
548
949
  amount: string;
549
950
  to: string;
550
951
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
551
952
  memo?: string | undefined;
953
+ gasCondition?: {
954
+ maxGasPrice?: string | undefined;
955
+ maxPriorityFee?: string | undefined;
956
+ timeout?: number | undefined;
957
+ } | undefined;
552
958
  }>, z.ZodObject<{
959
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
960
+ /** EVM: baseFee + priorityFee upper bound in wei. */
961
+ maxGasPrice: z.ZodOptional<z.ZodString>;
962
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
963
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
964
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
965
+ timeout: z.ZodOptional<z.ZodNumber>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ maxGasPrice?: string | undefined;
968
+ maxPriorityFee?: string | undefined;
969
+ timeout?: number | undefined;
970
+ }, {
971
+ maxGasPrice?: string | undefined;
972
+ maxPriorityFee?: string | undefined;
973
+ timeout?: number | undefined;
974
+ }>, {
975
+ maxGasPrice?: string | undefined;
976
+ maxPriorityFee?: string | undefined;
977
+ timeout?: number | undefined;
978
+ }, {
979
+ maxGasPrice?: string | undefined;
980
+ maxPriorityFee?: string | undefined;
981
+ timeout?: number | undefined;
982
+ }>>;
553
983
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
554
984
  to: z.ZodString;
555
985
  amount: z.ZodString;
@@ -593,6 +1023,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
593
1023
  to: string;
594
1024
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
595
1025
  memo?: string | undefined;
1026
+ gasCondition?: {
1027
+ maxGasPrice?: string | undefined;
1028
+ maxPriorityFee?: string | undefined;
1029
+ timeout?: number | undefined;
1030
+ } | undefined;
596
1031
  }, {
597
1032
  type: "TOKEN_TRANSFER";
598
1033
  token: {
@@ -605,7 +1040,36 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
605
1040
  to: string;
606
1041
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
607
1042
  memo?: string | undefined;
1043
+ gasCondition?: {
1044
+ maxGasPrice?: string | undefined;
1045
+ maxPriorityFee?: string | undefined;
1046
+ timeout?: number | undefined;
1047
+ } | undefined;
608
1048
  }>, z.ZodObject<{
1049
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1050
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1051
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1052
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1053
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1054
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1055
+ timeout: z.ZodOptional<z.ZodNumber>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ maxGasPrice?: string | undefined;
1058
+ maxPriorityFee?: string | undefined;
1059
+ timeout?: number | undefined;
1060
+ }, {
1061
+ maxGasPrice?: string | undefined;
1062
+ maxPriorityFee?: string | undefined;
1063
+ timeout?: number | undefined;
1064
+ }>, {
1065
+ maxGasPrice?: string | undefined;
1066
+ maxPriorityFee?: string | undefined;
1067
+ timeout?: number | undefined;
1068
+ }, {
1069
+ maxGasPrice?: string | undefined;
1070
+ maxPriorityFee?: string | undefined;
1071
+ timeout?: number | undefined;
1072
+ }>>;
609
1073
  type: z.ZodLiteral<"CONTRACT_CALL">;
610
1074
  to: z.ZodString;
611
1075
  calldata: z.ZodOptional<z.ZodString>;
@@ -634,6 +1098,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
634
1098
  to: string;
635
1099
  value?: string | undefined;
636
1100
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1101
+ gasCondition?: {
1102
+ maxGasPrice?: string | undefined;
1103
+ maxPriorityFee?: string | undefined;
1104
+ timeout?: number | undefined;
1105
+ } | undefined;
637
1106
  calldata?: string | undefined;
638
1107
  abi?: Record<string, unknown>[] | undefined;
639
1108
  programId?: string | undefined;
@@ -649,6 +1118,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
649
1118
  to: string;
650
1119
  value?: string | undefined;
651
1120
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1121
+ gasCondition?: {
1122
+ maxGasPrice?: string | undefined;
1123
+ maxPriorityFee?: string | undefined;
1124
+ timeout?: number | undefined;
1125
+ } | undefined;
652
1126
  calldata?: string | undefined;
653
1127
  abi?: Record<string, unknown>[] | undefined;
654
1128
  programId?: string | undefined;
@@ -660,6 +1134,30 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
660
1134
  }[] | undefined;
661
1135
  actionProvider?: string | undefined;
662
1136
  }>, z.ZodObject<{
1137
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1138
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1139
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1140
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1141
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1142
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1143
+ timeout: z.ZodOptional<z.ZodNumber>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ maxGasPrice?: string | undefined;
1146
+ maxPriorityFee?: string | undefined;
1147
+ timeout?: number | undefined;
1148
+ }, {
1149
+ maxGasPrice?: string | undefined;
1150
+ maxPriorityFee?: string | undefined;
1151
+ timeout?: number | undefined;
1152
+ }>, {
1153
+ maxGasPrice?: string | undefined;
1154
+ maxPriorityFee?: string | undefined;
1155
+ timeout?: number | undefined;
1156
+ }, {
1157
+ maxGasPrice?: string | undefined;
1158
+ maxPriorityFee?: string | undefined;
1159
+ timeout?: number | undefined;
1160
+ }>>;
663
1161
  type: z.ZodLiteral<"APPROVE">;
664
1162
  spender: z.ZodString;
665
1163
  token: z.ZodEffects<z.ZodObject<{
@@ -701,6 +1199,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
701
1199
  amount: string;
702
1200
  spender: string;
703
1201
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1202
+ gasCondition?: {
1203
+ maxGasPrice?: string | undefined;
1204
+ maxPriorityFee?: string | undefined;
1205
+ timeout?: number | undefined;
1206
+ } | undefined;
704
1207
  }, {
705
1208
  type: "APPROVE";
706
1209
  token: {
@@ -712,9 +1215,62 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
712
1215
  amount: string;
713
1216
  spender: string;
714
1217
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1218
+ gasCondition?: {
1219
+ maxGasPrice?: string | undefined;
1220
+ maxPriorityFee?: string | undefined;
1221
+ timeout?: number | undefined;
1222
+ } | undefined;
715
1223
  }>, z.ZodObject<{
1224
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1225
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1226
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1227
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1228
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1229
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1230
+ timeout: z.ZodOptional<z.ZodNumber>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ maxGasPrice?: string | undefined;
1233
+ maxPriorityFee?: string | undefined;
1234
+ timeout?: number | undefined;
1235
+ }, {
1236
+ maxGasPrice?: string | undefined;
1237
+ maxPriorityFee?: string | undefined;
1238
+ timeout?: number | undefined;
1239
+ }>, {
1240
+ maxGasPrice?: string | undefined;
1241
+ maxPriorityFee?: string | undefined;
1242
+ timeout?: number | undefined;
1243
+ }, {
1244
+ maxGasPrice?: string | undefined;
1245
+ maxPriorityFee?: string | undefined;
1246
+ timeout?: number | undefined;
1247
+ }>>;
716
1248
  type: z.ZodLiteral<"BATCH">;
717
1249
  instructions: z.ZodArray<z.ZodUnion<[z.ZodObject<Omit<{
1250
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1251
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1252
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1253
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1254
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1255
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1256
+ timeout: z.ZodOptional<z.ZodNumber>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ maxGasPrice?: string | undefined;
1259
+ maxPriorityFee?: string | undefined;
1260
+ timeout?: number | undefined;
1261
+ }, {
1262
+ maxGasPrice?: string | undefined;
1263
+ maxPriorityFee?: string | undefined;
1264
+ timeout?: number | undefined;
1265
+ }>, {
1266
+ maxGasPrice?: string | undefined;
1267
+ maxPriorityFee?: string | undefined;
1268
+ timeout?: number | undefined;
1269
+ }, {
1270
+ maxGasPrice?: string | undefined;
1271
+ maxPriorityFee?: string | undefined;
1272
+ timeout?: number | undefined;
1273
+ }>>;
718
1274
  type: z.ZodLiteral<"TRANSFER">;
719
1275
  to: z.ZodString;
720
1276
  amount: z.ZodString;
@@ -725,12 +1281,46 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
725
1281
  to: string;
726
1282
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
727
1283
  memo?: string | undefined;
1284
+ gasCondition?: {
1285
+ maxGasPrice?: string | undefined;
1286
+ maxPriorityFee?: string | undefined;
1287
+ timeout?: number | undefined;
1288
+ } | undefined;
728
1289
  }, {
729
1290
  amount: string;
730
1291
  to: string;
731
1292
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
732
1293
  memo?: string | undefined;
1294
+ gasCondition?: {
1295
+ maxGasPrice?: string | undefined;
1296
+ maxPriorityFee?: string | undefined;
1297
+ timeout?: number | undefined;
1298
+ } | undefined;
733
1299
  }>, z.ZodObject<Omit<{
1300
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1301
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1302
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1303
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1304
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1305
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1306
+ timeout: z.ZodOptional<z.ZodNumber>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ maxGasPrice?: string | undefined;
1309
+ maxPriorityFee?: string | undefined;
1310
+ timeout?: number | undefined;
1311
+ }, {
1312
+ maxGasPrice?: string | undefined;
1313
+ maxPriorityFee?: string | undefined;
1314
+ timeout?: number | undefined;
1315
+ }>, {
1316
+ maxGasPrice?: string | undefined;
1317
+ maxPriorityFee?: string | undefined;
1318
+ timeout?: number | undefined;
1319
+ }, {
1320
+ maxGasPrice?: string | undefined;
1321
+ maxPriorityFee?: string | undefined;
1322
+ timeout?: number | undefined;
1323
+ }>>;
734
1324
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
735
1325
  to: z.ZodString;
736
1326
  amount: z.ZodString;
@@ -773,6 +1363,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
773
1363
  to: string;
774
1364
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
775
1365
  memo?: string | undefined;
1366
+ gasCondition?: {
1367
+ maxGasPrice?: string | undefined;
1368
+ maxPriorityFee?: string | undefined;
1369
+ timeout?: number | undefined;
1370
+ } | undefined;
776
1371
  }, {
777
1372
  token: {
778
1373
  symbol: string;
@@ -784,7 +1379,36 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
784
1379
  to: string;
785
1380
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
786
1381
  memo?: string | undefined;
1382
+ gasCondition?: {
1383
+ maxGasPrice?: string | undefined;
1384
+ maxPriorityFee?: string | undefined;
1385
+ timeout?: number | undefined;
1386
+ } | undefined;
787
1387
  }>, z.ZodObject<Omit<{
1388
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1389
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1390
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1391
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1392
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1393
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1394
+ timeout: z.ZodOptional<z.ZodNumber>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ maxGasPrice?: string | undefined;
1397
+ maxPriorityFee?: string | undefined;
1398
+ timeout?: number | undefined;
1399
+ }, {
1400
+ maxGasPrice?: string | undefined;
1401
+ maxPriorityFee?: string | undefined;
1402
+ timeout?: number | undefined;
1403
+ }>, {
1404
+ maxGasPrice?: string | undefined;
1405
+ maxPriorityFee?: string | undefined;
1406
+ timeout?: number | undefined;
1407
+ }, {
1408
+ maxGasPrice?: string | undefined;
1409
+ maxPriorityFee?: string | undefined;
1410
+ timeout?: number | undefined;
1411
+ }>>;
788
1412
  type: z.ZodLiteral<"CONTRACT_CALL">;
789
1413
  to: z.ZodString;
790
1414
  calldata: z.ZodOptional<z.ZodString>;
@@ -812,6 +1436,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
812
1436
  to: string;
813
1437
  value?: string | undefined;
814
1438
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1439
+ gasCondition?: {
1440
+ maxGasPrice?: string | undefined;
1441
+ maxPriorityFee?: string | undefined;
1442
+ timeout?: number | undefined;
1443
+ } | undefined;
815
1444
  calldata?: string | undefined;
816
1445
  abi?: Record<string, unknown>[] | undefined;
817
1446
  programId?: string | undefined;
@@ -826,6 +1455,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
826
1455
  to: string;
827
1456
  value?: string | undefined;
828
1457
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1458
+ gasCondition?: {
1459
+ maxGasPrice?: string | undefined;
1460
+ maxPriorityFee?: string | undefined;
1461
+ timeout?: number | undefined;
1462
+ } | undefined;
829
1463
  calldata?: string | undefined;
830
1464
  abi?: Record<string, unknown>[] | undefined;
831
1465
  programId?: string | undefined;
@@ -837,6 +1471,30 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
837
1471
  }[] | undefined;
838
1472
  actionProvider?: string | undefined;
839
1473
  }>, z.ZodObject<Omit<{
1474
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1475
+ /** EVM: baseFee + priorityFee upper bound in wei. */
1476
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1477
+ /** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
1478
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1479
+ /** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
1480
+ timeout: z.ZodOptional<z.ZodNumber>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ maxGasPrice?: string | undefined;
1483
+ maxPriorityFee?: string | undefined;
1484
+ timeout?: number | undefined;
1485
+ }, {
1486
+ maxGasPrice?: string | undefined;
1487
+ maxPriorityFee?: string | undefined;
1488
+ timeout?: number | undefined;
1489
+ }>, {
1490
+ maxGasPrice?: string | undefined;
1491
+ maxPriorityFee?: string | undefined;
1492
+ timeout?: number | undefined;
1493
+ }, {
1494
+ maxGasPrice?: string | undefined;
1495
+ maxPriorityFee?: string | undefined;
1496
+ timeout?: number | undefined;
1497
+ }>>;
840
1498
  type: z.ZodLiteral<"APPROVE">;
841
1499
  spender: z.ZodString;
842
1500
  token: z.ZodEffects<z.ZodObject<{
@@ -877,6 +1535,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
877
1535
  amount: string;
878
1536
  spender: string;
879
1537
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1538
+ gasCondition?: {
1539
+ maxGasPrice?: string | undefined;
1540
+ maxPriorityFee?: string | undefined;
1541
+ timeout?: number | undefined;
1542
+ } | undefined;
880
1543
  }, {
881
1544
  token: {
882
1545
  symbol: string;
@@ -887,6 +1550,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
887
1550
  amount: string;
888
1551
  spender: string;
889
1552
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1553
+ gasCondition?: {
1554
+ maxGasPrice?: string | undefined;
1555
+ maxPriorityFee?: string | undefined;
1556
+ timeout?: number | undefined;
1557
+ } | undefined;
890
1558
  }>]>, "many">;
891
1559
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
892
1560
  }, "strip", z.ZodTypeAny, {
@@ -896,6 +1564,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
896
1564
  to: string;
897
1565
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
898
1566
  memo?: string | undefined;
1567
+ gasCondition?: {
1568
+ maxGasPrice?: string | undefined;
1569
+ maxPriorityFee?: string | undefined;
1570
+ timeout?: number | undefined;
1571
+ } | undefined;
899
1572
  } | {
900
1573
  token: {
901
1574
  symbol: string;
@@ -907,10 +1580,20 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
907
1580
  to: string;
908
1581
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
909
1582
  memo?: string | undefined;
1583
+ gasCondition?: {
1584
+ maxGasPrice?: string | undefined;
1585
+ maxPriorityFee?: string | undefined;
1586
+ timeout?: number | undefined;
1587
+ } | undefined;
910
1588
  } | {
911
1589
  to: string;
912
1590
  value?: string | undefined;
913
1591
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1592
+ gasCondition?: {
1593
+ maxGasPrice?: string | undefined;
1594
+ maxPriorityFee?: string | undefined;
1595
+ timeout?: number | undefined;
1596
+ } | undefined;
914
1597
  calldata?: string | undefined;
915
1598
  abi?: Record<string, unknown>[] | undefined;
916
1599
  programId?: string | undefined;
@@ -931,8 +1614,18 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
931
1614
  amount: string;
932
1615
  spender: string;
933
1616
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1617
+ gasCondition?: {
1618
+ maxGasPrice?: string | undefined;
1619
+ maxPriorityFee?: string | undefined;
1620
+ timeout?: number | undefined;
1621
+ } | undefined;
934
1622
  })[];
935
1623
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1624
+ gasCondition?: {
1625
+ maxGasPrice?: string | undefined;
1626
+ maxPriorityFee?: string | undefined;
1627
+ timeout?: number | undefined;
1628
+ } | undefined;
936
1629
  }, {
937
1630
  type: "BATCH";
938
1631
  instructions: ({
@@ -940,6 +1633,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
940
1633
  to: string;
941
1634
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
942
1635
  memo?: string | undefined;
1636
+ gasCondition?: {
1637
+ maxGasPrice?: string | undefined;
1638
+ maxPriorityFee?: string | undefined;
1639
+ timeout?: number | undefined;
1640
+ } | undefined;
943
1641
  } | {
944
1642
  token: {
945
1643
  symbol: string;
@@ -951,10 +1649,20 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
951
1649
  to: string;
952
1650
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
953
1651
  memo?: string | undefined;
1652
+ gasCondition?: {
1653
+ maxGasPrice?: string | undefined;
1654
+ maxPriorityFee?: string | undefined;
1655
+ timeout?: number | undefined;
1656
+ } | undefined;
954
1657
  } | {
955
1658
  to: string;
956
1659
  value?: string | undefined;
957
1660
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1661
+ gasCondition?: {
1662
+ maxGasPrice?: string | undefined;
1663
+ maxPriorityFee?: string | undefined;
1664
+ timeout?: number | undefined;
1665
+ } | undefined;
958
1666
  calldata?: string | undefined;
959
1667
  abi?: Record<string, unknown>[] | undefined;
960
1668
  programId?: string | undefined;
@@ -975,8 +1683,18 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
975
1683
  amount: string;
976
1684
  spender: string;
977
1685
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1686
+ gasCondition?: {
1687
+ maxGasPrice?: string | undefined;
1688
+ maxPriorityFee?: string | undefined;
1689
+ timeout?: number | undefined;
1690
+ } | undefined;
978
1691
  })[];
979
1692
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
1693
+ gasCondition?: {
1694
+ maxGasPrice?: string | undefined;
1695
+ maxPriorityFee?: string | undefined;
1696
+ timeout?: number | undefined;
1697
+ } | undefined;
980
1698
  }>]>;
981
1699
  export type TransactionRequest = z.infer<typeof TransactionRequestSchema>;
982
1700
  //# sourceMappingURL=transaction.schema.d.ts.map