@waiaas/core 2.11.0-rc → 2.11.0-rc.13

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.
Files changed (97) hide show
  1. package/dist/caip/asset-resolve.d.ts +39 -0
  2. package/dist/caip/asset-resolve.d.ts.map +1 -0
  3. package/dist/caip/asset-resolve.js +33 -0
  4. package/dist/caip/asset-resolve.js.map +1 -0
  5. package/dist/caip/index.d.ts +2 -0
  6. package/dist/caip/index.d.ts.map +1 -1
  7. package/dist/caip/index.js +4 -0
  8. package/dist/caip/index.js.map +1 -1
  9. package/dist/caip/response-enrichment.d.ts +70 -0
  10. package/dist/caip/response-enrichment.d.ts.map +1 -0
  11. package/dist/caip/response-enrichment.js +132 -0
  12. package/dist/caip/response-enrichment.js.map +1 -0
  13. package/dist/enums/chain.d.ts.map +1 -1
  14. package/dist/enums/chain.js +8 -0
  15. package/dist/enums/chain.js.map +1 -1
  16. package/dist/enums/index.d.ts +1 -0
  17. package/dist/enums/index.d.ts.map +1 -1
  18. package/dist/enums/index.js +1 -0
  19. package/dist/enums/index.js.map +1 -1
  20. package/dist/enums/notification.d.ts +2 -2
  21. package/dist/enums/notification.d.ts.map +1 -1
  22. package/dist/enums/notification.js +6 -0
  23. package/dist/enums/notification.js.map +1 -1
  24. package/dist/enums/policy.d.ts +2 -2
  25. package/dist/enums/policy.d.ts.map +1 -1
  26. package/dist/enums/policy.js +2 -0
  27. package/dist/enums/policy.js.map +1 -1
  28. package/dist/enums/signing-scheme.d.ts +16 -0
  29. package/dist/enums/signing-scheme.d.ts.map +1 -0
  30. package/dist/enums/signing-scheme.js +22 -0
  31. package/dist/enums/signing-scheme.js.map +1 -0
  32. package/dist/enums/transaction.d.ts +2 -2
  33. package/dist/enums/transaction.d.ts.map +1 -1
  34. package/dist/enums/transaction.js +1 -0
  35. package/dist/enums/transaction.js.map +1 -1
  36. package/dist/erc8128/types.d.ts +6 -6
  37. package/dist/errors/error-codes.d.ts +45 -2
  38. package/dist/errors/error-codes.d.ts.map +1 -1
  39. package/dist/errors/error-codes.js +46 -1
  40. package/dist/errors/error-codes.js.map +1 -1
  41. package/dist/events/event-bus.d.ts +4 -0
  42. package/dist/events/event-bus.d.ts.map +1 -1
  43. package/dist/events/event-bus.js +7 -0
  44. package/dist/events/event-bus.js.map +1 -1
  45. package/dist/i18n/en.d.ts.map +1 -1
  46. package/dist/i18n/en.js +13 -0
  47. package/dist/i18n/en.js.map +1 -1
  48. package/dist/i18n/ko.d.ts.map +1 -1
  49. package/dist/i18n/ko.js +13 -0
  50. package/dist/i18n/ko.js.map +1 -1
  51. package/dist/index.d.ts +5 -4
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +9 -3
  54. package/dist/index.js.map +1 -1
  55. package/dist/interfaces/action-provider.types.d.ts +57 -12
  56. package/dist/interfaces/action-provider.types.d.ts.map +1 -1
  57. package/dist/interfaces/action-provider.types.js +5 -1
  58. package/dist/interfaces/action-provider.types.js.map +1 -1
  59. package/dist/interfaces/index.d.ts +2 -2
  60. package/dist/interfaces/index.d.ts.map +1 -1
  61. package/dist/interfaces/index.js +1 -1
  62. package/dist/interfaces/index.js.map +1 -1
  63. package/dist/interfaces/nft-indexer.types.d.ts +4 -4
  64. package/dist/interfaces/perp-provider.types.d.ts +2 -2
  65. package/dist/interfaces/x402.types.d.ts +6 -6
  66. package/dist/schemas/audit.schema.d.ts +13 -13
  67. package/dist/schemas/audit.schema.d.ts.map +1 -1
  68. package/dist/schemas/audit.schema.js +3 -1
  69. package/dist/schemas/audit.schema.js.map +1 -1
  70. package/dist/schemas/credential.schema.d.ts +102 -0
  71. package/dist/schemas/credential.schema.d.ts.map +1 -0
  72. package/dist/schemas/credential.schema.js +54 -0
  73. package/dist/schemas/credential.schema.js.map +1 -0
  74. package/dist/schemas/incoming-transaction.schema.d.ts +2 -2
  75. package/dist/schemas/index.d.ts +2 -1
  76. package/dist/schemas/index.d.ts.map +1 -1
  77. package/dist/schemas/index.js +4 -0
  78. package/dist/schemas/index.js.map +1 -1
  79. package/dist/schemas/policy.schema.d.ts +14 -14
  80. package/dist/schemas/resolved-action.schema.d.ts +718 -0
  81. package/dist/schemas/resolved-action.schema.d.ts.map +1 -0
  82. package/dist/schemas/resolved-action.schema.js +136 -0
  83. package/dist/schemas/resolved-action.schema.js.map +1 -0
  84. package/dist/schemas/signing-protocol.d.ts +2 -2
  85. package/dist/schemas/signing-protocol.d.ts.map +1 -1
  86. package/dist/schemas/signing-protocol.js +12 -0
  87. package/dist/schemas/signing-protocol.js.map +1 -1
  88. package/dist/schemas/simulation.schema.d.ts +6 -6
  89. package/dist/schemas/transaction.schema.d.ts +432 -277
  90. package/dist/schemas/transaction.schema.d.ts.map +1 -1
  91. package/dist/schemas/transaction.schema.js +74 -25
  92. package/dist/schemas/transaction.schema.js.map +1 -1
  93. package/dist/schemas/userop.schema.d.ts +273 -166
  94. package/dist/schemas/userop.schema.d.ts.map +1 -1
  95. package/dist/schemas/webhook.schema.d.ts +8 -8
  96. package/dist/schemas/webhook.schema.d.ts.map +1 -1
  97. package/package.json +2 -2
@@ -95,15 +95,17 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
95
95
  }>>;
96
96
  type: z.ZodLiteral<"TRANSFER">;
97
97
  to: z.ZodString;
98
- amount: z.ZodString;
98
+ amount: z.ZodOptional<z.ZodString>;
99
+ humanAmount: z.ZodOptional<z.ZodString>;
99
100
  memo: z.ZodOptional<z.ZodString>;
100
101
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
101
102
  }, "strip", z.ZodTypeAny, {
102
103
  type: "TRANSFER";
103
- amount: string;
104
104
  to: string;
105
105
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
106
+ amount?: string | undefined;
106
107
  memo?: string | undefined;
108
+ humanAmount?: string | undefined;
107
109
  gasCondition?: {
108
110
  maxGasPrice?: string | undefined;
109
111
  maxPriorityFee?: string | undefined;
@@ -111,10 +113,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
111
113
  } | undefined;
112
114
  }, {
113
115
  type: "TRANSFER";
114
- amount: string;
115
116
  to: string;
116
117
  network?: unknown;
118
+ amount?: string | undefined;
117
119
  memo?: string | undefined;
120
+ humanAmount?: string | undefined;
118
121
  gasCondition?: {
119
122
  maxGasPrice?: string | undefined;
120
123
  maxPriorityFee?: string | undefined;
@@ -144,47 +147,49 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
144
147
  }>>;
145
148
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
146
149
  to: z.ZodString;
147
- amount: z.ZodString;
150
+ amount: z.ZodOptional<z.ZodString>;
151
+ humanAmount: z.ZodOptional<z.ZodString>;
148
152
  token: z.ZodEffects<z.ZodObject<{
149
- address: z.ZodString;
150
- decimals: z.ZodNumber;
151
- symbol: z.ZodString;
153
+ address: z.ZodOptional<z.ZodString>;
154
+ decimals: z.ZodOptional<z.ZodNumber>;
155
+ symbol: z.ZodOptional<z.ZodString>;
152
156
  assetId: z.ZodOptional<z.ZodString>;
153
157
  }, "strip", z.ZodTypeAny, {
154
- symbol: string;
155
- address: string;
156
- decimals: number;
158
+ symbol?: string | undefined;
157
159
  assetId?: string | undefined;
160
+ address?: string | undefined;
161
+ decimals?: number | undefined;
158
162
  }, {
159
- symbol: string;
160
- address: string;
161
- decimals: number;
163
+ symbol?: string | undefined;
162
164
  assetId?: string | undefined;
165
+ address?: string | undefined;
166
+ decimals?: number | undefined;
163
167
  }>, {
164
- symbol: string;
165
- address: string;
166
- decimals: number;
168
+ symbol?: string | undefined;
167
169
  assetId?: string | undefined;
170
+ address?: string | undefined;
171
+ decimals?: number | undefined;
168
172
  }, {
169
- symbol: string;
170
- address: string;
171
- decimals: number;
173
+ symbol?: string | undefined;
172
174
  assetId?: string | undefined;
175
+ address?: string | undefined;
176
+ decimals?: number | undefined;
173
177
  }>;
174
178
  memo: z.ZodOptional<z.ZodString>;
175
179
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
176
180
  }, "strip", z.ZodTypeAny, {
177
181
  type: "TOKEN_TRANSFER";
178
182
  token: {
179
- symbol: string;
180
- address: string;
181
- decimals: number;
183
+ symbol?: string | undefined;
182
184
  assetId?: string | undefined;
185
+ address?: string | undefined;
186
+ decimals?: number | undefined;
183
187
  };
184
- amount: string;
185
188
  to: string;
186
189
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
190
+ amount?: string | undefined;
187
191
  memo?: string | undefined;
192
+ humanAmount?: string | undefined;
188
193
  gasCondition?: {
189
194
  maxGasPrice?: string | undefined;
190
195
  maxPriorityFee?: string | undefined;
@@ -193,15 +198,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
193
198
  }, {
194
199
  type: "TOKEN_TRANSFER";
195
200
  token: {
196
- symbol: string;
197
- address: string;
198
- decimals: number;
201
+ symbol?: string | undefined;
199
202
  assetId?: string | undefined;
203
+ address?: string | undefined;
204
+ decimals?: number | undefined;
200
205
  };
201
- amount: string;
202
206
  to: string;
203
207
  network?: unknown;
208
+ amount?: string | undefined;
204
209
  memo?: string | undefined;
210
+ humanAmount?: string | undefined;
205
211
  gasCondition?: {
206
212
  maxGasPrice?: string | undefined;
207
213
  maxPriorityFee?: string | undefined;
@@ -288,8 +294,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
288
294
  }, "strip", z.ZodTypeAny, {
289
295
  type: "CONTRACT_CALL";
290
296
  to: string;
291
- value?: string | undefined;
292
297
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
298
+ value?: string | undefined;
293
299
  gasCondition?: {
294
300
  maxGasPrice?: string | undefined;
295
301
  maxPriorityFee?: string | undefined;
@@ -318,8 +324,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
318
324
  }, {
319
325
  type: "CONTRACT_CALL";
320
326
  to: string;
321
- value?: string | undefined;
322
327
  network?: unknown;
328
+ value?: string | undefined;
323
329
  gasCondition?: {
324
330
  maxGasPrice?: string | undefined;
325
331
  maxPriorityFee?: string | undefined;
@@ -370,32 +376,33 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
370
376
  type: z.ZodLiteral<"APPROVE">;
371
377
  spender: z.ZodString;
372
378
  token: z.ZodEffects<z.ZodObject<{
373
- address: z.ZodString;
374
- decimals: z.ZodNumber;
375
- symbol: z.ZodString;
379
+ address: z.ZodOptional<z.ZodString>;
380
+ decimals: z.ZodOptional<z.ZodNumber>;
381
+ symbol: z.ZodOptional<z.ZodString>;
376
382
  assetId: z.ZodOptional<z.ZodString>;
377
383
  }, "strip", z.ZodTypeAny, {
378
- symbol: string;
379
- address: string;
380
- decimals: number;
384
+ symbol?: string | undefined;
381
385
  assetId?: string | undefined;
386
+ address?: string | undefined;
387
+ decimals?: number | undefined;
382
388
  }, {
383
- symbol: string;
384
- address: string;
385
- decimals: number;
389
+ symbol?: string | undefined;
386
390
  assetId?: string | undefined;
391
+ address?: string | undefined;
392
+ decimals?: number | undefined;
387
393
  }>, {
388
- symbol: string;
389
- address: string;
390
- decimals: number;
394
+ symbol?: string | undefined;
391
395
  assetId?: string | undefined;
396
+ address?: string | undefined;
397
+ decimals?: number | undefined;
392
398
  }, {
393
- symbol: string;
394
- address: string;
395
- decimals: number;
399
+ symbol?: string | undefined;
396
400
  assetId?: string | undefined;
401
+ address?: string | undefined;
402
+ decimals?: number | undefined;
397
403
  }>;
398
- amount: z.ZodString;
404
+ amount: z.ZodOptional<z.ZodString>;
405
+ humanAmount: z.ZodOptional<z.ZodString>;
399
406
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
400
407
  nft: z.ZodOptional<z.ZodObject<{
401
408
  tokenId: z.ZodString;
@@ -410,14 +417,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
410
417
  }, "strip", z.ZodTypeAny, {
411
418
  type: "APPROVE";
412
419
  token: {
413
- symbol: string;
414
- address: string;
415
- decimals: number;
420
+ symbol?: string | undefined;
416
421
  assetId?: string | undefined;
422
+ address?: string | undefined;
423
+ decimals?: number | undefined;
417
424
  };
418
- amount: string;
419
425
  spender: string;
420
426
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
427
+ amount?: string | undefined;
428
+ humanAmount?: string | undefined;
421
429
  gasCondition?: {
422
430
  maxGasPrice?: string | undefined;
423
431
  maxPriorityFee?: string | undefined;
@@ -430,14 +438,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
430
438
  }, {
431
439
  type: "APPROVE";
432
440
  token: {
433
- symbol: string;
434
- address: string;
435
- decimals: number;
441
+ symbol?: string | undefined;
436
442
  assetId?: string | undefined;
443
+ address?: string | undefined;
444
+ decimals?: number | undefined;
437
445
  };
438
- amount: string;
439
446
  spender: string;
440
447
  network?: unknown;
448
+ amount?: string | undefined;
449
+ humanAmount?: string | undefined;
441
450
  gasCondition?: {
442
451
  maxGasPrice?: string | undefined;
443
452
  maxPriorityFee?: string | undefined;
@@ -494,24 +503,27 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
494
503
  }>>;
495
504
  type: z.ZodLiteral<"TRANSFER">;
496
505
  to: z.ZodString;
497
- amount: z.ZodString;
506
+ amount: z.ZodOptional<z.ZodString>;
507
+ humanAmount: z.ZodOptional<z.ZodString>;
498
508
  memo: z.ZodOptional<z.ZodString>;
499
509
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
500
510
  }, "type">, "strip", z.ZodTypeAny, {
501
- amount: string;
502
511
  to: string;
503
512
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
513
+ amount?: string | undefined;
504
514
  memo?: string | undefined;
515
+ humanAmount?: string | undefined;
505
516
  gasCondition?: {
506
517
  maxGasPrice?: string | undefined;
507
518
  maxPriorityFee?: string | undefined;
508
519
  timeout?: number | undefined;
509
520
  } | undefined;
510
521
  }, {
511
- amount: string;
512
522
  to: string;
513
523
  network?: unknown;
524
+ amount?: string | undefined;
514
525
  memo?: string | undefined;
526
+ humanAmount?: string | undefined;
515
527
  gasCondition?: {
516
528
  maxGasPrice?: string | undefined;
517
529
  maxPriorityFee?: string | undefined;
@@ -541,46 +553,48 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
541
553
  }>>;
542
554
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
543
555
  to: z.ZodString;
544
- amount: z.ZodString;
556
+ amount: z.ZodOptional<z.ZodString>;
557
+ humanAmount: z.ZodOptional<z.ZodString>;
545
558
  token: z.ZodEffects<z.ZodObject<{
546
- address: z.ZodString;
547
- decimals: z.ZodNumber;
548
- symbol: z.ZodString;
559
+ address: z.ZodOptional<z.ZodString>;
560
+ decimals: z.ZodOptional<z.ZodNumber>;
561
+ symbol: z.ZodOptional<z.ZodString>;
549
562
  assetId: z.ZodOptional<z.ZodString>;
550
563
  }, "strip", z.ZodTypeAny, {
551
- symbol: string;
552
- address: string;
553
- decimals: number;
564
+ symbol?: string | undefined;
554
565
  assetId?: string | undefined;
566
+ address?: string | undefined;
567
+ decimals?: number | undefined;
555
568
  }, {
556
- symbol: string;
557
- address: string;
558
- decimals: number;
569
+ symbol?: string | undefined;
559
570
  assetId?: string | undefined;
571
+ address?: string | undefined;
572
+ decimals?: number | undefined;
560
573
  }>, {
561
- symbol: string;
562
- address: string;
563
- decimals: number;
574
+ symbol?: string | undefined;
564
575
  assetId?: string | undefined;
576
+ address?: string | undefined;
577
+ decimals?: number | undefined;
565
578
  }, {
566
- symbol: string;
567
- address: string;
568
- decimals: number;
579
+ symbol?: string | undefined;
569
580
  assetId?: string | undefined;
581
+ address?: string | undefined;
582
+ decimals?: number | undefined;
570
583
  }>;
571
584
  memo: z.ZodOptional<z.ZodString>;
572
585
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
573
586
  }, "type">, "strip", z.ZodTypeAny, {
574
587
  token: {
575
- symbol: string;
576
- address: string;
577
- decimals: number;
588
+ symbol?: string | undefined;
578
589
  assetId?: string | undefined;
590
+ address?: string | undefined;
591
+ decimals?: number | undefined;
579
592
  };
580
- amount: string;
581
593
  to: string;
582
594
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
595
+ amount?: string | undefined;
583
596
  memo?: string | undefined;
597
+ humanAmount?: string | undefined;
584
598
  gasCondition?: {
585
599
  maxGasPrice?: string | undefined;
586
600
  maxPriorityFee?: string | undefined;
@@ -588,15 +602,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
588
602
  } | undefined;
589
603
  }, {
590
604
  token: {
591
- symbol: string;
592
- address: string;
593
- decimals: number;
605
+ symbol?: string | undefined;
594
606
  assetId?: string | undefined;
607
+ address?: string | undefined;
608
+ decimals?: number | undefined;
595
609
  };
596
- amount: string;
597
610
  to: string;
598
611
  network?: unknown;
612
+ amount?: string | undefined;
599
613
  memo?: string | undefined;
614
+ humanAmount?: string | undefined;
600
615
  gasCondition?: {
601
616
  maxGasPrice?: string | undefined;
602
617
  maxPriorityFee?: string | undefined;
@@ -682,8 +697,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
682
697
  actionName: z.ZodOptional<z.ZodString>;
683
698
  }, "type">, "strip", z.ZodTypeAny, {
684
699
  to: string;
685
- value?: string | undefined;
686
700
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
701
+ value?: string | undefined;
687
702
  gasCondition?: {
688
703
  maxGasPrice?: string | undefined;
689
704
  maxPriorityFee?: string | undefined;
@@ -711,8 +726,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
711
726
  actionName?: string | undefined;
712
727
  }, {
713
728
  to: string;
714
- value?: string | undefined;
715
729
  network?: unknown;
730
+ value?: string | undefined;
716
731
  gasCondition?: {
717
732
  maxGasPrice?: string | undefined;
718
733
  maxPriorityFee?: string | undefined;
@@ -763,32 +778,33 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
763
778
  type: z.ZodLiteral<"APPROVE">;
764
779
  spender: z.ZodString;
765
780
  token: z.ZodEffects<z.ZodObject<{
766
- address: z.ZodString;
767
- decimals: z.ZodNumber;
768
- symbol: z.ZodString;
781
+ address: z.ZodOptional<z.ZodString>;
782
+ decimals: z.ZodOptional<z.ZodNumber>;
783
+ symbol: z.ZodOptional<z.ZodString>;
769
784
  assetId: z.ZodOptional<z.ZodString>;
770
785
  }, "strip", z.ZodTypeAny, {
771
- symbol: string;
772
- address: string;
773
- decimals: number;
786
+ symbol?: string | undefined;
774
787
  assetId?: string | undefined;
788
+ address?: string | undefined;
789
+ decimals?: number | undefined;
775
790
  }, {
776
- symbol: string;
777
- address: string;
778
- decimals: number;
791
+ symbol?: string | undefined;
779
792
  assetId?: string | undefined;
793
+ address?: string | undefined;
794
+ decimals?: number | undefined;
780
795
  }>, {
781
- symbol: string;
782
- address: string;
783
- decimals: number;
796
+ symbol?: string | undefined;
784
797
  assetId?: string | undefined;
798
+ address?: string | undefined;
799
+ decimals?: number | undefined;
785
800
  }, {
786
- symbol: string;
787
- address: string;
788
- decimals: number;
801
+ symbol?: string | undefined;
789
802
  assetId?: string | undefined;
803
+ address?: string | undefined;
804
+ decimals?: number | undefined;
790
805
  }>;
791
- amount: z.ZodString;
806
+ amount: z.ZodOptional<z.ZodString>;
807
+ humanAmount: z.ZodOptional<z.ZodString>;
792
808
  network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
793
809
  nft: z.ZodOptional<z.ZodObject<{
794
810
  tokenId: z.ZodString;
@@ -802,14 +818,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
802
818
  }>>;
803
819
  }, "type">, "strip", z.ZodTypeAny, {
804
820
  token: {
805
- symbol: string;
806
- address: string;
807
- decimals: number;
821
+ symbol?: string | undefined;
808
822
  assetId?: string | undefined;
823
+ address?: string | undefined;
824
+ decimals?: number | undefined;
809
825
  };
810
- amount: string;
811
826
  spender: string;
812
827
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
828
+ amount?: string | undefined;
829
+ humanAmount?: string | undefined;
813
830
  gasCondition?: {
814
831
  maxGasPrice?: string | undefined;
815
832
  maxPriorityFee?: string | undefined;
@@ -821,14 +838,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
821
838
  } | undefined;
822
839
  }, {
823
840
  token: {
824
- symbol: string;
825
- address: string;
826
- decimals: number;
841
+ symbol?: string | undefined;
827
842
  assetId?: string | undefined;
843
+ address?: string | undefined;
844
+ decimals?: number | undefined;
828
845
  };
829
- amount: string;
830
846
  spender: string;
831
847
  network?: unknown;
848
+ amount?: string | undefined;
849
+ humanAmount?: string | undefined;
832
850
  gasCondition?: {
833
851
  maxGasPrice?: string | undefined;
834
852
  maxPriorityFee?: string | undefined;
@@ -843,10 +861,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
843
861
  }, "strip", z.ZodTypeAny, {
844
862
  type: "BATCH";
845
863
  instructions: ({
846
- amount: string;
847
864
  to: string;
848
865
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
866
+ amount?: string | undefined;
849
867
  memo?: string | undefined;
868
+ humanAmount?: string | undefined;
850
869
  gasCondition?: {
851
870
  maxGasPrice?: string | undefined;
852
871
  maxPriorityFee?: string | undefined;
@@ -854,15 +873,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
854
873
  } | undefined;
855
874
  } | {
856
875
  token: {
857
- symbol: string;
858
- address: string;
859
- decimals: number;
876
+ symbol?: string | undefined;
860
877
  assetId?: string | undefined;
878
+ address?: string | undefined;
879
+ decimals?: number | undefined;
861
880
  };
862
- amount: string;
863
881
  to: string;
864
882
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
883
+ amount?: string | undefined;
865
884
  memo?: string | undefined;
885
+ humanAmount?: string | undefined;
866
886
  gasCondition?: {
867
887
  maxGasPrice?: string | undefined;
868
888
  maxPriorityFee?: string | undefined;
@@ -870,8 +890,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
870
890
  } | undefined;
871
891
  } | {
872
892
  to: string;
873
- value?: string | undefined;
874
893
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
894
+ value?: string | undefined;
875
895
  gasCondition?: {
876
896
  maxGasPrice?: string | undefined;
877
897
  maxPriorityFee?: string | undefined;
@@ -899,14 +919,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
899
919
  actionName?: string | undefined;
900
920
  } | {
901
921
  token: {
902
- symbol: string;
903
- address: string;
904
- decimals: number;
922
+ symbol?: string | undefined;
905
923
  assetId?: string | undefined;
924
+ address?: string | undefined;
925
+ decimals?: number | undefined;
906
926
  };
907
- amount: string;
908
927
  spender: string;
909
928
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
929
+ amount?: string | undefined;
930
+ humanAmount?: string | undefined;
910
931
  gasCondition?: {
911
932
  maxGasPrice?: string | undefined;
912
933
  maxPriorityFee?: string | undefined;
@@ -926,10 +947,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
926
947
  }, {
927
948
  type: "BATCH";
928
949
  instructions: ({
929
- amount: string;
930
950
  to: string;
931
951
  network?: unknown;
952
+ amount?: string | undefined;
932
953
  memo?: string | undefined;
954
+ humanAmount?: string | undefined;
933
955
  gasCondition?: {
934
956
  maxGasPrice?: string | undefined;
935
957
  maxPriorityFee?: string | undefined;
@@ -937,15 +959,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
937
959
  } | undefined;
938
960
  } | {
939
961
  token: {
940
- symbol: string;
941
- address: string;
942
- decimals: number;
962
+ symbol?: string | undefined;
943
963
  assetId?: string | undefined;
964
+ address?: string | undefined;
965
+ decimals?: number | undefined;
944
966
  };
945
- amount: string;
946
967
  to: string;
947
968
  network?: unknown;
969
+ amount?: string | undefined;
948
970
  memo?: string | undefined;
971
+ humanAmount?: string | undefined;
949
972
  gasCondition?: {
950
973
  maxGasPrice?: string | undefined;
951
974
  maxPriorityFee?: string | undefined;
@@ -953,8 +976,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
953
976
  } | undefined;
954
977
  } | {
955
978
  to: string;
956
- value?: string | undefined;
957
979
  network?: unknown;
980
+ value?: string | undefined;
958
981
  gasCondition?: {
959
982
  maxGasPrice?: string | undefined;
960
983
  maxPriorityFee?: string | undefined;
@@ -982,14 +1005,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
982
1005
  actionName?: string | undefined;
983
1006
  } | {
984
1007
  token: {
985
- symbol: string;
986
- address: string;
987
- decimals: number;
1008
+ symbol?: string | undefined;
988
1009
  assetId?: string | undefined;
1010
+ address?: string | undefined;
1011
+ decimals?: number | undefined;
989
1012
  };
990
- amount: string;
991
1013
  spender: string;
992
1014
  network?: unknown;
1015
+ amount?: string | undefined;
1016
+ humanAmount?: string | undefined;
993
1017
  gasCondition?: {
994
1018
  maxGasPrice?: string | undefined;
995
1019
  maxPriorityFee?: string | undefined;
@@ -1080,16 +1104,66 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1080
1104
  maxPriorityFee?: string | undefined;
1081
1105
  timeout?: number | undefined;
1082
1106
  } | undefined;
1107
+ }>, z.ZodObject<{
1108
+ gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1109
+ maxGasPrice: z.ZodOptional<z.ZodString>;
1110
+ maxPriorityFee: z.ZodOptional<z.ZodString>;
1111
+ timeout: z.ZodOptional<z.ZodNumber>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ maxGasPrice?: string | undefined;
1114
+ maxPriorityFee?: string | undefined;
1115
+ timeout?: number | undefined;
1116
+ }, {
1117
+ maxGasPrice?: string | undefined;
1118
+ maxPriorityFee?: string | undefined;
1119
+ timeout?: number | undefined;
1120
+ }>, {
1121
+ maxGasPrice?: string | undefined;
1122
+ maxPriorityFee?: string | undefined;
1123
+ timeout?: number | undefined;
1124
+ }, {
1125
+ maxGasPrice?: string | undefined;
1126
+ maxPriorityFee?: string | undefined;
1127
+ timeout?: number | undefined;
1128
+ }>>;
1129
+ type: z.ZodLiteral<"CONTRACT_DEPLOY">;
1130
+ bytecode: z.ZodString;
1131
+ constructorArgs: z.ZodOptional<z.ZodString>;
1132
+ value: z.ZodOptional<z.ZodString>;
1133
+ network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ type: "CONTRACT_DEPLOY";
1136
+ bytecode: string;
1137
+ network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1138
+ value?: string | undefined;
1139
+ gasCondition?: {
1140
+ maxGasPrice?: string | undefined;
1141
+ maxPriorityFee?: string | undefined;
1142
+ timeout?: number | undefined;
1143
+ } | undefined;
1144
+ constructorArgs?: string | undefined;
1145
+ }, {
1146
+ type: "CONTRACT_DEPLOY";
1147
+ bytecode: string;
1148
+ network?: unknown;
1149
+ value?: string | undefined;
1150
+ gasCondition?: {
1151
+ maxGasPrice?: string | undefined;
1152
+ maxPriorityFee?: string | undefined;
1153
+ timeout?: number | undefined;
1154
+ } | undefined;
1155
+ constructorArgs?: string | undefined;
1083
1156
  }>]>;
1084
1157
  network: z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>;
1085
1158
  }, "strip", z.ZodTypeAny, {
1086
1159
  network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet";
1087
1160
  request: {
1088
1161
  type: "TRANSFER";
1089
- amount: string;
1090
1162
  to: string;
1091
1163
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1164
+ amount?: string | undefined;
1092
1165
  memo?: string | undefined;
1166
+ humanAmount?: string | undefined;
1093
1167
  gasCondition?: {
1094
1168
  maxGasPrice?: string | undefined;
1095
1169
  maxPriorityFee?: string | undefined;
@@ -1098,15 +1172,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1098
1172
  } | {
1099
1173
  type: "TOKEN_TRANSFER";
1100
1174
  token: {
1101
- symbol: string;
1102
- address: string;
1103
- decimals: number;
1175
+ symbol?: string | undefined;
1104
1176
  assetId?: string | undefined;
1177
+ address?: string | undefined;
1178
+ decimals?: number | undefined;
1105
1179
  };
1106
- amount: string;
1107
1180
  to: string;
1108
1181
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1182
+ amount?: string | undefined;
1109
1183
  memo?: string | undefined;
1184
+ humanAmount?: string | undefined;
1110
1185
  gasCondition?: {
1111
1186
  maxGasPrice?: string | undefined;
1112
1187
  maxPriorityFee?: string | undefined;
@@ -1115,8 +1190,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1115
1190
  } | {
1116
1191
  type: "CONTRACT_CALL";
1117
1192
  to: string;
1118
- value?: string | undefined;
1119
1193
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1194
+ value?: string | undefined;
1120
1195
  gasCondition?: {
1121
1196
  maxGasPrice?: string | undefined;
1122
1197
  maxPriorityFee?: string | undefined;
@@ -1145,14 +1220,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1145
1220
  } | {
1146
1221
  type: "APPROVE";
1147
1222
  token: {
1148
- symbol: string;
1149
- address: string;
1150
- decimals: number;
1223
+ symbol?: string | undefined;
1151
1224
  assetId?: string | undefined;
1225
+ address?: string | undefined;
1226
+ decimals?: number | undefined;
1152
1227
  };
1153
- amount: string;
1154
1228
  spender: string;
1155
1229
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1230
+ amount?: string | undefined;
1231
+ humanAmount?: string | undefined;
1156
1232
  gasCondition?: {
1157
1233
  maxGasPrice?: string | undefined;
1158
1234
  maxPriorityFee?: string | undefined;
@@ -1165,10 +1241,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1165
1241
  } | {
1166
1242
  type: "BATCH";
1167
1243
  instructions: ({
1168
- amount: string;
1169
1244
  to: string;
1170
1245
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1246
+ amount?: string | undefined;
1171
1247
  memo?: string | undefined;
1248
+ humanAmount?: string | undefined;
1172
1249
  gasCondition?: {
1173
1250
  maxGasPrice?: string | undefined;
1174
1251
  maxPriorityFee?: string | undefined;
@@ -1176,15 +1253,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1176
1253
  } | undefined;
1177
1254
  } | {
1178
1255
  token: {
1179
- symbol: string;
1180
- address: string;
1181
- decimals: number;
1256
+ symbol?: string | undefined;
1182
1257
  assetId?: string | undefined;
1258
+ address?: string | undefined;
1259
+ decimals?: number | undefined;
1183
1260
  };
1184
- amount: string;
1185
1261
  to: string;
1186
1262
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1263
+ amount?: string | undefined;
1187
1264
  memo?: string | undefined;
1265
+ humanAmount?: string | undefined;
1188
1266
  gasCondition?: {
1189
1267
  maxGasPrice?: string | undefined;
1190
1268
  maxPriorityFee?: string | undefined;
@@ -1192,8 +1270,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1192
1270
  } | undefined;
1193
1271
  } | {
1194
1272
  to: string;
1195
- value?: string | undefined;
1196
1273
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1274
+ value?: string | undefined;
1197
1275
  gasCondition?: {
1198
1276
  maxGasPrice?: string | undefined;
1199
1277
  maxPriorityFee?: string | undefined;
@@ -1221,14 +1299,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1221
1299
  actionName?: string | undefined;
1222
1300
  } | {
1223
1301
  token: {
1224
- symbol: string;
1225
- address: string;
1226
- decimals: number;
1302
+ symbol?: string | undefined;
1227
1303
  assetId?: string | undefined;
1304
+ address?: string | undefined;
1305
+ decimals?: number | undefined;
1228
1306
  };
1229
- amount: string;
1230
1307
  spender: string;
1231
1308
  network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1309
+ amount?: string | undefined;
1310
+ humanAmount?: string | undefined;
1232
1311
  gasCondition?: {
1233
1312
  maxGasPrice?: string | undefined;
1234
1313
  maxPriorityFee?: string | undefined;
@@ -1261,15 +1340,27 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1261
1340
  maxPriorityFee?: string | undefined;
1262
1341
  timeout?: number | undefined;
1263
1342
  } | undefined;
1343
+ } | {
1344
+ type: "CONTRACT_DEPLOY";
1345
+ bytecode: string;
1346
+ network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
1347
+ value?: string | undefined;
1348
+ gasCondition?: {
1349
+ maxGasPrice?: string | undefined;
1350
+ maxPriorityFee?: string | undefined;
1351
+ timeout?: number | undefined;
1352
+ } | undefined;
1353
+ constructorArgs?: string | undefined;
1264
1354
  };
1265
1355
  }, {
1266
1356
  network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet";
1267
1357
  request: {
1268
1358
  type: "TRANSFER";
1269
- amount: string;
1270
1359
  to: string;
1271
1360
  network?: unknown;
1361
+ amount?: string | undefined;
1272
1362
  memo?: string | undefined;
1363
+ humanAmount?: string | undefined;
1273
1364
  gasCondition?: {
1274
1365
  maxGasPrice?: string | undefined;
1275
1366
  maxPriorityFee?: string | undefined;
@@ -1278,15 +1369,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1278
1369
  } | {
1279
1370
  type: "TOKEN_TRANSFER";
1280
1371
  token: {
1281
- symbol: string;
1282
- address: string;
1283
- decimals: number;
1372
+ symbol?: string | undefined;
1284
1373
  assetId?: string | undefined;
1374
+ address?: string | undefined;
1375
+ decimals?: number | undefined;
1285
1376
  };
1286
- amount: string;
1287
1377
  to: string;
1288
1378
  network?: unknown;
1379
+ amount?: string | undefined;
1289
1380
  memo?: string | undefined;
1381
+ humanAmount?: string | undefined;
1290
1382
  gasCondition?: {
1291
1383
  maxGasPrice?: string | undefined;
1292
1384
  maxPriorityFee?: string | undefined;
@@ -1295,8 +1387,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1295
1387
  } | {
1296
1388
  type: "CONTRACT_CALL";
1297
1389
  to: string;
1298
- value?: string | undefined;
1299
1390
  network?: unknown;
1391
+ value?: string | undefined;
1300
1392
  gasCondition?: {
1301
1393
  maxGasPrice?: string | undefined;
1302
1394
  maxPriorityFee?: string | undefined;
@@ -1325,14 +1417,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1325
1417
  } | {
1326
1418
  type: "APPROVE";
1327
1419
  token: {
1328
- symbol: string;
1329
- address: string;
1330
- decimals: number;
1420
+ symbol?: string | undefined;
1331
1421
  assetId?: string | undefined;
1422
+ address?: string | undefined;
1423
+ decimals?: number | undefined;
1332
1424
  };
1333
- amount: string;
1334
1425
  spender: string;
1335
1426
  network?: unknown;
1427
+ amount?: string | undefined;
1428
+ humanAmount?: string | undefined;
1336
1429
  gasCondition?: {
1337
1430
  maxGasPrice?: string | undefined;
1338
1431
  maxPriorityFee?: string | undefined;
@@ -1345,10 +1438,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1345
1438
  } | {
1346
1439
  type: "BATCH";
1347
1440
  instructions: ({
1348
- amount: string;
1349
1441
  to: string;
1350
1442
  network?: unknown;
1443
+ amount?: string | undefined;
1351
1444
  memo?: string | undefined;
1445
+ humanAmount?: string | undefined;
1352
1446
  gasCondition?: {
1353
1447
  maxGasPrice?: string | undefined;
1354
1448
  maxPriorityFee?: string | undefined;
@@ -1356,15 +1450,16 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1356
1450
  } | undefined;
1357
1451
  } | {
1358
1452
  token: {
1359
- symbol: string;
1360
- address: string;
1361
- decimals: number;
1453
+ symbol?: string | undefined;
1362
1454
  assetId?: string | undefined;
1455
+ address?: string | undefined;
1456
+ decimals?: number | undefined;
1363
1457
  };
1364
- amount: string;
1365
1458
  to: string;
1366
1459
  network?: unknown;
1460
+ amount?: string | undefined;
1367
1461
  memo?: string | undefined;
1462
+ humanAmount?: string | undefined;
1368
1463
  gasCondition?: {
1369
1464
  maxGasPrice?: string | undefined;
1370
1465
  maxPriorityFee?: string | undefined;
@@ -1372,8 +1467,8 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1372
1467
  } | undefined;
1373
1468
  } | {
1374
1469
  to: string;
1375
- value?: string | undefined;
1376
1470
  network?: unknown;
1471
+ value?: string | undefined;
1377
1472
  gasCondition?: {
1378
1473
  maxGasPrice?: string | undefined;
1379
1474
  maxPriorityFee?: string | undefined;
@@ -1401,14 +1496,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1401
1496
  actionName?: string | undefined;
1402
1497
  } | {
1403
1498
  token: {
1404
- symbol: string;
1405
- address: string;
1406
- decimals: number;
1499
+ symbol?: string | undefined;
1407
1500
  assetId?: string | undefined;
1501
+ address?: string | undefined;
1502
+ decimals?: number | undefined;
1408
1503
  };
1409
- amount: string;
1410
1504
  spender: string;
1411
1505
  network?: unknown;
1506
+ amount?: string | undefined;
1507
+ humanAmount?: string | undefined;
1412
1508
  gasCondition?: {
1413
1509
  maxGasPrice?: string | undefined;
1414
1510
  maxPriorityFee?: string | undefined;
@@ -1441,6 +1537,17 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
1441
1537
  maxPriorityFee?: string | undefined;
1442
1538
  timeout?: number | undefined;
1443
1539
  } | undefined;
1540
+ } | {
1541
+ type: "CONTRACT_DEPLOY";
1542
+ bytecode: string;
1543
+ network?: unknown;
1544
+ value?: string | undefined;
1545
+ gasCondition?: {
1546
+ maxGasPrice?: string | undefined;
1547
+ maxPriorityFee?: string | undefined;
1548
+ timeout?: number | undefined;
1549
+ } | undefined;
1550
+ constructorArgs?: string | undefined;
1444
1551
  };
1445
1552
  }>;
1446
1553
  export type UserOpBuildRequest = z.infer<typeof UserOpBuildRequestSchema>;