@zkp2p/cash 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IntentStatus, C as CashPayoutInfo, a as IntentEntity, b as CashBuyerProfile, c as CashDepositInput, d as CreateDepositParamsArg, e as CashOrder, f as CashFill, g as CashCapabilities, h as CashoutResult, i as CashEstimate, P as PrepareResult, j as CashPreparedStep, T as TopUpResult, W as WithdrawResult } from './createCashClient-iHuGgjH_.js';
2
- export { k as CASH_ATTRIBUTION_CODE, l as CashAsset, m as CashChain, n as CashClient, o as CashClientOptions, p as CashFillEta, q as CashLeg, r as CashNextAction, s as CashOrderState, t as CashPayout, u as CashPayoutPricing, v as CashPlatformCapability, w as CashPreparedStepKind, x as CashSourceCapabilities, y as CashoutInput, z as CashoutOptions, A as CuratorPayeeDataInput, E as EstimateInput, M as MIN_CASHOUT_AMOUNT, O as OrdersOptions, R as RECOMMENDED_MIN_CASHOUT_AMOUNT, B as RelayExecutionResult, D as RelayOptions, F as RelayQuote, G as RelayQuoteInput, H as RelaySourceInput, J as RelayStatus, S as SignerOptions, K as WatchOptions, L as WithdrawOptions, N as buildCapabilities, Q as createCashClient } from './createCashClient-iHuGgjH_.js';
1
+ import { I as IntentStatus, C as CashPayoutInfo, a as IntentEntity, b as CashBuyerProfile, c as CashDepositInput, d as CreateDepositParamsArg, e as CashOrder, f as CashFill, g as CashCapabilities, h as CashoutResult, i as CashEstimate, P as PrepareResult, j as CashPreparedStep, R as RelayExecutionResult, k as RelayQuote, l as RelayStatus, m as CashSourceCapabilities, T as TopUpResult, W as WithdrawResult } from './createCashClient-jUA_GNdh.js';
2
+ export { n as CASH_ATTRIBUTION_CODE, o as CashAsset, p as CashChain, q as CashClient, r as CashClientOptions, s as CashFillEta, t as CashLeg, u as CashNextAction, v as CashOrderState, w as CashPayout, x as CashPayoutPricing, y as CashPlatformCapability, z as CashPreparedStepKind, A as CashoutInput, B as CashoutOptions, D as CuratorPayeeDataInput, E as EstimateInput, M as MIN_CASHOUT_AMOUNT, O as OrdersOptions, F as RECOMMENDED_MIN_CASHOUT_AMOUNT, G as RelayOptions, H as RelayQuoteInput, J as RelaySourceInput, K as RelayTransaction, S as SignerOptions, L as WatchOptions, N as WithdrawOptions, Q as buildCapabilities, U as createCashClient } from './createCashClient-jUA_GNdh.js';
3
3
  import { PaymentMethodCatalog, CurrencyType, OracleAdapterOverrides, OnchainCurrency, Zkp2pClient, PreparedTransaction } from '@zkp2p/sdk';
4
4
  export { CurrencyType, PreparedTransaction, RuntimeEnv } from '@zkp2p/sdk';
5
5
  import { Log, Abi } from 'viem';
@@ -10,17 +10,58 @@ import '@relayprotocol/relay-sdk';
10
10
  * Typed errors - every failure carries a `code`, whether it is `retryable`,
11
11
  * and a `remediation` sentence so agents can self-drive recovery.
12
12
  */
13
- type CashErrorCode = 'ORACLE_UNSUPPORTED_CURRENCY' | 'UNSUPPORTED_PLATFORM' | 'AMOUNT_BELOW_MINIMUM' | 'ACTIVE_INTENT_BLOCKS_WITHDRAWAL' | 'NOTHING_TO_WITHDRAW' | 'INSUFFICIENT_AVAILABLE_FUNDS' | 'ORDER_NOT_ACTIVE' | 'ESCROW_PAUSED' | 'INDEXER_LAG' | 'ORDER_NOT_FOUND' | 'PAYEE_REGISTRATION_FAILED' | 'PAYEE_VERIFICATION_REQUIRED' | 'SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE' | 'SOURCE_RECIPIENT_MISMATCH' | 'DEPOSIT_RESOLUTION_FAILED' | 'ALLOWANCE_NOT_VISIBLE' | 'SIGNER_REQUIRED' | 'WATCH_TIMEOUT' | 'TRANSACTION_FAILED';
13
+ type CashErrorCode = 'ORACLE_UNSUPPORTED_CURRENCY' | 'ORACLE_READ_FAILED' | 'UNSUPPORTED_PLATFORM' | 'UNSUPPORTED_PLATFORM_CURRENCY' | 'AMOUNT_BELOW_MINIMUM' | 'INVALID_INTENT_AMOUNT_RANGE' | 'ACTIVE_INTENT_BLOCKS_WITHDRAWAL' | 'NOTHING_TO_WITHDRAW' | 'INSUFFICIENT_AVAILABLE_FUNDS' | 'INSUFFICIENT_TOKEN_BALANCE' | 'ORDER_NOT_ACTIVE' | 'INVALID_DEPOSIT_ID' | 'ESCROW_PAUSED' | 'INDEXER_LAG' | 'INDEXER_UNAVAILABLE' | 'ORDER_NOT_FOUND' | 'PAYEE_REGISTRATION_FAILED' | 'PAYEE_VERIFICATION_REQUIRED' | 'SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE' | 'SOURCE_RECIPIENT_MISMATCH' | 'SOURCE_CAPABILITIES_FAILED' | 'SOURCE_QUOTE_FAILED' | 'SOURCE_EXECUTION_FAILED' | 'SOURCE_STATUS_FAILED' | 'SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED' | 'SOURCE_CASHOUT_SUBMISSION_UNKNOWN' | 'SOURCE_CASHOUT_STATUS_UNKNOWN' | 'DEPOSIT_RESOLUTION_FAILED' | 'ALLOWANCE_NOT_VISIBLE' | 'SIGNER_REQUIRED' | 'SIGNER_CHAIN_MISMATCH' | 'SIGNER_CHAIN_UNAVAILABLE' | 'WATCH_TIMEOUT' | 'TRANSACTION_FAILED' | 'TRANSACTION_SUBMISSION_UNKNOWN' | 'TRANSACTION_STATUS_UNKNOWN';
14
14
  interface CashErrorShape {
15
15
  code: CashErrorCode;
16
16
  message: string;
17
17
  retryable: boolean;
18
18
  remediation: string;
19
+ recovery?: CashErrorRecovery;
19
20
  }
21
+ interface CashSourceRecoveryBase {
22
+ /** Guaranteed Base USDC output available for the retry, as a decimal bigint string. */
23
+ amount: string;
24
+ requestId?: string;
25
+ txHashes: string[];
26
+ transactions?: {
27
+ origin: Array<{
28
+ hash: string;
29
+ chainId: number;
30
+ isBatchTx?: boolean | undefined;
31
+ }>;
32
+ destination: Array<{
33
+ hash: string;
34
+ chainId: number;
35
+ isBatchTx?: boolean | undefined;
36
+ }>;
37
+ };
38
+ }
39
+ type CashErrorRecovery = (CashSourceRecoveryBase & {
40
+ kind: 'retry-base-usdc-cashout';
41
+ }) | (CashSourceRecoveryBase & {
42
+ kind: 'inspect-base-cashout-transaction';
43
+ depositTxHash: string;
44
+ }) | (CashSourceRecoveryBase & {
45
+ kind: 'inspect-base-cashout-submission';
46
+ depositor: string;
47
+ }) | {
48
+ kind: 'inspect-relay-route';
49
+ requestId?: string;
50
+ txHashes: string[];
51
+ transactions?: CashSourceRecoveryBase['transactions'];
52
+ } | {
53
+ kind: 'inspect-base-operation-submission';
54
+ operation: string;
55
+ } | {
56
+ kind: 'inspect-base-transaction';
57
+ transactionHash: string;
58
+ operation: string;
59
+ };
20
60
  declare class CashError extends Error implements CashErrorShape {
21
61
  readonly code: CashErrorCode;
22
62
  readonly retryable: boolean;
23
63
  readonly remediation: string;
64
+ readonly recovery?: CashErrorRecovery;
24
65
  constructor(shape: CashErrorShape, options?: {
25
66
  cause?: unknown;
26
67
  });
@@ -31,23 +72,59 @@ declare function isCashError(value: unknown): value is CashError;
31
72
  /** Factory helpers keep call sites one-liners and remediation copy consistent. */
32
73
  declare const errors: {
33
74
  oracleUnsupportedCurrency: (currency: string) => CashError;
75
+ oracleReadFailed: (currency: string, cause?: unknown) => CashError;
34
76
  unsupportedPlatform: (platform: string) => CashError;
77
+ unsupportedPlatformCurrency: (platform: string, currency: string) => CashError;
35
78
  amountBelowMinimum: (amount: bigint, min: bigint) => CashError;
79
+ invalidIntentAmountRange: (amount: bigint, min: bigint, max: bigint) => CashError;
36
80
  activeIntentBlocksWithdrawal: (depositId: string) => CashError;
37
81
  insufficientAvailableFunds: (depositId: string, requested: bigint, available: bigint) => CashError;
82
+ insufficientTokenBalance: (requiredAmount?: bigint) => CashError;
38
83
  orderNotActive: (depositId: string) => CashError;
84
+ invalidDepositId: (depositId: string, cause?: unknown) => CashError;
39
85
  nothingToWithdraw: (depositId: string) => CashError;
40
86
  indexerLag: (depositId: string) => CashError;
41
87
  orderNotFound: (depositId: string) => CashError;
88
+ indexerUnavailable: (operation: string, cause?: unknown) => CashError;
42
89
  payeeRegistrationFailed: (cause: unknown) => CashError;
43
90
  payeeVerificationRequired: (platform: string, cause?: unknown) => CashError;
44
91
  sourceRouteUnsupportedInPrepare: () => CashError;
45
92
  sourceRecipientMismatch: (recipient: string, owner: string) => CashError;
46
- allowanceNotVisible: (amount: bigint) => CashError;
93
+ sourceCapabilitiesFailed: (cause?: unknown) => CashError;
94
+ sourceQuoteFailed: (cause?: unknown) => CashError;
95
+ sourceExecutionFailed: (cause?: unknown, evidence?: {
96
+ requestId?: string;
97
+ txHashes: string[];
98
+ transactions?: CashSourceRecoveryBase["transactions"];
99
+ }) => CashError;
100
+ sourceStatusFailed: (requestId: string, cause?: unknown) => CashError;
101
+ sourceRouteCompletedCashoutFailed: (source: {
102
+ amount: bigint;
103
+ requestId?: string;
104
+ txHashes: string[];
105
+ transactions?: CashSourceRecoveryBase["transactions"];
106
+ }, cause?: unknown) => CashError;
107
+ sourceCashoutSubmissionUnknown: (source: {
108
+ amount: bigint;
109
+ requestId?: string;
110
+ txHashes: string[];
111
+ transactions?: CashSourceRecoveryBase["transactions"];
112
+ }, depositor: string, cause?: unknown) => CashError;
113
+ sourceCashoutStatusUnknown: (source: {
114
+ amount: bigint;
115
+ requestId?: string;
116
+ txHashes: string[];
117
+ transactions?: CashSourceRecoveryBase["transactions"];
118
+ }, depositTxHash: string, cause?: unknown) => CashError;
119
+ allowanceNotVisible: (amount: bigint, cause?: unknown) => CashError;
47
120
  depositResolutionFailed: (txHash: string) => CashError;
48
121
  signerRequired: (verb: string) => CashError;
122
+ signerChainMismatch: (verb: string, expectedChainId: number, actualChainId: number) => CashError;
123
+ signerChainUnavailable: (verb: string, expectedChainId: number, cause?: unknown) => CashError;
49
124
  watchTimeout: (depositId: string, timeoutMs: number) => CashError;
50
125
  transactionFailed: (txHash: string, cause?: unknown) => CashError;
126
+ transactionSubmissionUnknown: (operation: string, cause?: unknown, recovery?: CashErrorRecovery) => CashError;
127
+ transactionStatusUnknown: (txHash: string, cause?: unknown, operation?: string) => CashError;
51
128
  escrowPaused: () => CashError;
52
129
  /** Generic fallback for an on-chain call that failed for an unrecognized reason. */
53
130
  chainCallFailed: (verb: string, cause?: unknown) => CashError;
@@ -263,6 +340,300 @@ declare function parseCompositeDepositId(compositeId: string): {
263
340
  */
264
341
 
265
342
  declare const bigintString: z.ZodString;
343
+ declare const nonNegativeBigintString: z.ZodString;
344
+ declare const relayTransactionJsonSchema: z.ZodObject<{
345
+ hash: z.ZodString;
346
+ chainId: z.ZodNumber;
347
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ chainId: number;
350
+ hash: string;
351
+ isBatchTx?: boolean | undefined;
352
+ }, {
353
+ chainId: number;
354
+ hash: string;
355
+ isBatchTx?: boolean | undefined;
356
+ }>;
357
+ declare const relayTransactionsJsonSchema: z.ZodObject<{
358
+ origin: z.ZodArray<z.ZodObject<{
359
+ hash: z.ZodString;
360
+ chainId: z.ZodNumber;
361
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ chainId: number;
364
+ hash: string;
365
+ isBatchTx?: boolean | undefined;
366
+ }, {
367
+ chainId: number;
368
+ hash: string;
369
+ isBatchTx?: boolean | undefined;
370
+ }>, "many">;
371
+ destination: z.ZodArray<z.ZodObject<{
372
+ hash: z.ZodString;
373
+ chainId: z.ZodNumber;
374
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ chainId: number;
377
+ hash: string;
378
+ isBatchTx?: boolean | undefined;
379
+ }, {
380
+ chainId: number;
381
+ hash: string;
382
+ isBatchTx?: boolean | undefined;
383
+ }>, "many">;
384
+ }, "strict", z.ZodTypeAny, {
385
+ destination: {
386
+ chainId: number;
387
+ hash: string;
388
+ isBatchTx?: boolean | undefined;
389
+ }[];
390
+ origin: {
391
+ chainId: number;
392
+ hash: string;
393
+ isBatchTx?: boolean | undefined;
394
+ }[];
395
+ }, {
396
+ destination: {
397
+ chainId: number;
398
+ hash: string;
399
+ isBatchTx?: boolean | undefined;
400
+ }[];
401
+ origin: {
402
+ chainId: number;
403
+ hash: string;
404
+ isBatchTx?: boolean | undefined;
405
+ }[];
406
+ }>;
407
+ declare const cashAssetJsonSchema: z.ZodObject<{
408
+ chainId: z.ZodNumber;
409
+ address: z.ZodString;
410
+ symbol: z.ZodString;
411
+ decimals: z.ZodNumber;
412
+ name: z.ZodOptional<z.ZodString>;
413
+ isNative: z.ZodOptional<z.ZodBoolean>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ symbol: string;
416
+ chainId: number;
417
+ address: string;
418
+ decimals: number;
419
+ name?: string | undefined;
420
+ isNative?: boolean | undefined;
421
+ }, {
422
+ symbol: string;
423
+ chainId: number;
424
+ address: string;
425
+ decimals: number;
426
+ name?: string | undefined;
427
+ isNative?: boolean | undefined;
428
+ }>;
429
+ declare const cashChainJsonSchema: z.ZodObject<{
430
+ id: z.ZodNumber;
431
+ name: z.ZodString;
432
+ displayName: z.ZodString;
433
+ disabled: z.ZodBoolean;
434
+ depositEnabled: z.ZodBoolean;
435
+ blockProductionLagging: z.ZodBoolean;
436
+ vmType: z.ZodOptional<z.ZodString>;
437
+ tokens: z.ZodArray<z.ZodObject<{
438
+ chainId: z.ZodNumber;
439
+ address: z.ZodString;
440
+ symbol: z.ZodString;
441
+ decimals: z.ZodNumber;
442
+ name: z.ZodOptional<z.ZodString>;
443
+ isNative: z.ZodOptional<z.ZodBoolean>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ symbol: string;
446
+ chainId: number;
447
+ address: string;
448
+ decimals: number;
449
+ name?: string | undefined;
450
+ isNative?: boolean | undefined;
451
+ }, {
452
+ symbol: string;
453
+ chainId: number;
454
+ address: string;
455
+ decimals: number;
456
+ name?: string | undefined;
457
+ isNative?: boolean | undefined;
458
+ }>, "many">;
459
+ }, "strip", z.ZodTypeAny, {
460
+ id: number;
461
+ name: string;
462
+ disabled: boolean;
463
+ tokens: {
464
+ symbol: string;
465
+ chainId: number;
466
+ address: string;
467
+ decimals: number;
468
+ name?: string | undefined;
469
+ isNative?: boolean | undefined;
470
+ }[];
471
+ displayName: string;
472
+ depositEnabled: boolean;
473
+ blockProductionLagging: boolean;
474
+ vmType?: string | undefined;
475
+ }, {
476
+ id: number;
477
+ name: string;
478
+ disabled: boolean;
479
+ tokens: {
480
+ symbol: string;
481
+ chainId: number;
482
+ address: string;
483
+ decimals: number;
484
+ name?: string | undefined;
485
+ isNative?: boolean | undefined;
486
+ }[];
487
+ displayName: string;
488
+ depositEnabled: boolean;
489
+ blockProductionLagging: boolean;
490
+ vmType?: string | undefined;
491
+ }>;
492
+ declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
493
+ destination: z.ZodObject<{
494
+ chainId: z.ZodNumber;
495
+ address: z.ZodString;
496
+ symbol: z.ZodString;
497
+ decimals: z.ZodNumber;
498
+ name: z.ZodOptional<z.ZodString>;
499
+ isNative: z.ZodOptional<z.ZodBoolean>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ symbol: string;
502
+ chainId: number;
503
+ address: string;
504
+ decimals: number;
505
+ name?: string | undefined;
506
+ isNative?: boolean | undefined;
507
+ }, {
508
+ symbol: string;
509
+ chainId: number;
510
+ address: string;
511
+ decimals: number;
512
+ name?: string | undefined;
513
+ isNative?: boolean | undefined;
514
+ }>;
515
+ chains: z.ZodArray<z.ZodObject<{
516
+ id: z.ZodNumber;
517
+ name: z.ZodString;
518
+ displayName: z.ZodString;
519
+ disabled: z.ZodBoolean;
520
+ depositEnabled: z.ZodBoolean;
521
+ blockProductionLagging: z.ZodBoolean;
522
+ vmType: z.ZodOptional<z.ZodString>;
523
+ tokens: z.ZodArray<z.ZodObject<{
524
+ chainId: z.ZodNumber;
525
+ address: z.ZodString;
526
+ symbol: z.ZodString;
527
+ decimals: z.ZodNumber;
528
+ name: z.ZodOptional<z.ZodString>;
529
+ isNative: z.ZodOptional<z.ZodBoolean>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ symbol: string;
532
+ chainId: number;
533
+ address: string;
534
+ decimals: number;
535
+ name?: string | undefined;
536
+ isNative?: boolean | undefined;
537
+ }, {
538
+ symbol: string;
539
+ chainId: number;
540
+ address: string;
541
+ decimals: number;
542
+ name?: string | undefined;
543
+ isNative?: boolean | undefined;
544
+ }>, "many">;
545
+ }, "strip", z.ZodTypeAny, {
546
+ id: number;
547
+ name: string;
548
+ disabled: boolean;
549
+ tokens: {
550
+ symbol: string;
551
+ chainId: number;
552
+ address: string;
553
+ decimals: number;
554
+ name?: string | undefined;
555
+ isNative?: boolean | undefined;
556
+ }[];
557
+ displayName: string;
558
+ depositEnabled: boolean;
559
+ blockProductionLagging: boolean;
560
+ vmType?: string | undefined;
561
+ }, {
562
+ id: number;
563
+ name: string;
564
+ disabled: boolean;
565
+ tokens: {
566
+ symbol: string;
567
+ chainId: number;
568
+ address: string;
569
+ decimals: number;
570
+ name?: string | undefined;
571
+ isNative?: boolean | undefined;
572
+ }[];
573
+ displayName: string;
574
+ depositEnabled: boolean;
575
+ blockProductionLagging: boolean;
576
+ vmType?: string | undefined;
577
+ }>, "many">;
578
+ source: z.ZodLiteral<"relay-sdk">;
579
+ asOf: z.ZodNumber;
580
+ }, "strip", z.ZodTypeAny, {
581
+ chains: {
582
+ id: number;
583
+ name: string;
584
+ disabled: boolean;
585
+ tokens: {
586
+ symbol: string;
587
+ chainId: number;
588
+ address: string;
589
+ decimals: number;
590
+ name?: string | undefined;
591
+ isNative?: boolean | undefined;
592
+ }[];
593
+ displayName: string;
594
+ depositEnabled: boolean;
595
+ blockProductionLagging: boolean;
596
+ vmType?: string | undefined;
597
+ }[];
598
+ source: "relay-sdk";
599
+ destination: {
600
+ symbol: string;
601
+ chainId: number;
602
+ address: string;
603
+ decimals: number;
604
+ name?: string | undefined;
605
+ isNative?: boolean | undefined;
606
+ };
607
+ asOf: number;
608
+ }, {
609
+ chains: {
610
+ id: number;
611
+ name: string;
612
+ disabled: boolean;
613
+ tokens: {
614
+ symbol: string;
615
+ chainId: number;
616
+ address: string;
617
+ decimals: number;
618
+ name?: string | undefined;
619
+ isNative?: boolean | undefined;
620
+ }[];
621
+ displayName: string;
622
+ depositEnabled: boolean;
623
+ blockProductionLagging: boolean;
624
+ vmType?: string | undefined;
625
+ }[];
626
+ source: "relay-sdk";
627
+ destination: {
628
+ symbol: string;
629
+ chainId: number;
630
+ address: string;
631
+ decimals: number;
632
+ name?: string | undefined;
633
+ isNative?: boolean | undefined;
634
+ };
635
+ asOf: number;
636
+ }>;
266
637
  declare const cashOrderStateSchema: z.ZodEnum<["awaiting-buyer", "matched", "delivering", "delivered", "returned"]>;
267
638
  declare const cashNextActionSchema: z.ZodEnum<["wait", "withdraw"]>;
268
639
  declare const intentStatusSchema: z.ZodEnum<["SIGNALED", "FULFILLED", "PRUNED", "MANUALLY_RELEASED"]>;
@@ -792,7 +1163,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
792
1163
  }>, "many">;
793
1164
  raw: z.ZodUnknown;
794
1165
  }, "strip", z.ZodTypeAny, {
795
- destination: {
1166
+ source: {
796
1167
  symbol: string;
797
1168
  chainId: number;
798
1169
  address: string;
@@ -800,7 +1171,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
800
1171
  name?: string | undefined;
801
1172
  isNative?: boolean | undefined;
802
1173
  };
803
- source: {
1174
+ destination: {
804
1175
  symbol: string;
805
1176
  chainId: number;
806
1177
  address: string;
@@ -816,13 +1187,13 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
816
1187
  }[];
817
1188
  inputAmount: string;
818
1189
  outputAmount: string;
819
- rate?: number | undefined;
820
1190
  requestId?: string | undefined;
821
- timeEstimateSeconds?: number | undefined;
822
1191
  fees?: unknown;
1192
+ rate?: number | undefined;
1193
+ timeEstimateSeconds?: number | undefined;
823
1194
  raw?: unknown;
824
1195
  }, {
825
- destination: {
1196
+ source: {
826
1197
  symbol: string;
827
1198
  chainId: number;
828
1199
  address: string;
@@ -830,7 +1201,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
830
1201
  name?: string | undefined;
831
1202
  isNative?: boolean | undefined;
832
1203
  };
833
- source: {
1204
+ destination: {
834
1205
  symbol: string;
835
1206
  chainId: number;
836
1207
  address: string;
@@ -846,10 +1217,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
846
1217
  }[];
847
1218
  inputAmount: string;
848
1219
  outputAmount: string;
849
- rate?: number | undefined;
850
1220
  requestId?: string | undefined;
851
- timeEstimateSeconds?: number | undefined;
852
1221
  fees?: unknown;
1222
+ rate?: number | undefined;
1223
+ timeEstimateSeconds?: number | undefined;
853
1224
  raw?: unknown;
854
1225
  }>;
855
1226
  }, "strip", z.ZodTypeAny, {
@@ -864,7 +1235,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
864
1235
  };
865
1236
  inputAmount: string;
866
1237
  relayQuote: {
867
- destination: {
1238
+ source: {
868
1239
  symbol: string;
869
1240
  chainId: number;
870
1241
  address: string;
@@ -872,7 +1243,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
872
1243
  name?: string | undefined;
873
1244
  isNative?: boolean | undefined;
874
1245
  };
875
- source: {
1246
+ destination: {
876
1247
  symbol: string;
877
1248
  chainId: number;
878
1249
  address: string;
@@ -888,10 +1259,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
888
1259
  }[];
889
1260
  inputAmount: string;
890
1261
  outputAmount: string;
891
- rate?: number | undefined;
892
1262
  requestId?: string | undefined;
893
- timeEstimateSeconds?: number | undefined;
894
1263
  fees?: unknown;
1264
+ rate?: number | undefined;
1265
+ timeEstimateSeconds?: number | undefined;
895
1266
  raw?: unknown;
896
1267
  };
897
1268
  }, {
@@ -906,7 +1277,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
906
1277
  };
907
1278
  inputAmount: string;
908
1279
  relayQuote: {
909
- destination: {
1280
+ source: {
910
1281
  symbol: string;
911
1282
  chainId: number;
912
1283
  address: string;
@@ -914,7 +1285,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
914
1285
  name?: string | undefined;
915
1286
  isNative?: boolean | undefined;
916
1287
  };
917
- source: {
1288
+ destination: {
918
1289
  symbol: string;
919
1290
  chainId: number;
920
1291
  address: string;
@@ -930,10 +1301,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
930
1301
  }[];
931
1302
  inputAmount: string;
932
1303
  outputAmount: string;
933
- rate?: number | undefined;
934
1304
  requestId?: string | undefined;
935
- timeEstimateSeconds?: number | undefined;
936
1305
  fees?: unknown;
1306
+ rate?: number | undefined;
1307
+ timeEstimateSeconds?: number | undefined;
937
1308
  raw?: unknown;
938
1309
  };
939
1310
  }>>;
@@ -966,7 +1337,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
966
1337
  };
967
1338
  inputAmount: string;
968
1339
  relayQuote: {
969
- destination: {
1340
+ source: {
970
1341
  symbol: string;
971
1342
  chainId: number;
972
1343
  address: string;
@@ -974,7 +1345,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
974
1345
  name?: string | undefined;
975
1346
  isNative?: boolean | undefined;
976
1347
  };
977
- source: {
1348
+ destination: {
978
1349
  symbol: string;
979
1350
  chainId: number;
980
1351
  address: string;
@@ -990,10 +1361,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
990
1361
  }[];
991
1362
  inputAmount: string;
992
1363
  outputAmount: string;
993
- rate?: number | undefined;
994
1364
  requestId?: string | undefined;
995
- timeEstimateSeconds?: number | undefined;
996
1365
  fees?: unknown;
1366
+ rate?: number | undefined;
1367
+ timeEstimateSeconds?: number | undefined;
997
1368
  raw?: unknown;
998
1369
  };
999
1370
  } | undefined;
@@ -1022,7 +1393,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
1022
1393
  };
1023
1394
  inputAmount: string;
1024
1395
  relayQuote: {
1025
- destination: {
1396
+ source: {
1026
1397
  symbol: string;
1027
1398
  chainId: number;
1028
1399
  address: string;
@@ -1030,7 +1401,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
1030
1401
  name?: string | undefined;
1031
1402
  isNative?: boolean | undefined;
1032
1403
  };
1033
- source: {
1404
+ destination: {
1034
1405
  symbol: string;
1035
1406
  chainId: number;
1036
1407
  address: string;
@@ -1046,10 +1417,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
1046
1417
  }[];
1047
1418
  inputAmount: string;
1048
1419
  outputAmount: string;
1049
- rate?: number | undefined;
1050
1420
  requestId?: string | undefined;
1051
- timeEstimateSeconds?: number | undefined;
1052
1421
  fees?: unknown;
1422
+ rate?: number | undefined;
1423
+ timeEstimateSeconds?: number | undefined;
1053
1424
  raw?: unknown;
1054
1425
  };
1055
1426
  } | undefined;
@@ -1076,15 +1447,265 @@ declare const preparedTransactionJsonSchema: z.ZodObject<{
1076
1447
  to: string;
1077
1448
  value: string;
1078
1449
  }>;
1079
- declare const cashPreparedStepJsonSchema: z.ZodObject<{
1080
- kind: z.ZodEnum<["approve", "createDeposit", "pruneExpiredIntents", "withdrawDeposit", "removeFunds", "addFunds"]>;
1081
- description: z.ZodString;
1450
+ declare const relayQuoteJsonSchema: z.ZodObject<{
1451
+ requestId: z.ZodOptional<z.ZodString>;
1452
+ source: z.ZodObject<{
1453
+ chainId: z.ZodNumber;
1454
+ address: z.ZodString;
1455
+ symbol: z.ZodString;
1456
+ decimals: z.ZodNumber;
1457
+ name: z.ZodOptional<z.ZodString>;
1458
+ isNative: z.ZodOptional<z.ZodBoolean>;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ symbol: string;
1461
+ chainId: number;
1462
+ address: string;
1463
+ decimals: number;
1464
+ name?: string | undefined;
1465
+ isNative?: boolean | undefined;
1466
+ }, {
1467
+ symbol: string;
1468
+ chainId: number;
1469
+ address: string;
1470
+ decimals: number;
1471
+ name?: string | undefined;
1472
+ isNative?: boolean | undefined;
1473
+ }>;
1474
+ destination: z.ZodObject<{
1475
+ chainId: z.ZodNumber;
1476
+ address: z.ZodString;
1477
+ symbol: z.ZodString;
1478
+ decimals: z.ZodNumber;
1479
+ name: z.ZodOptional<z.ZodString>;
1480
+ isNative: z.ZodOptional<z.ZodBoolean>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ symbol: string;
1483
+ chainId: number;
1484
+ address: string;
1485
+ decimals: number;
1486
+ name?: string | undefined;
1487
+ isNative?: boolean | undefined;
1488
+ }, {
1489
+ symbol: string;
1490
+ chainId: number;
1491
+ address: string;
1492
+ decimals: number;
1493
+ name?: string | undefined;
1494
+ isNative?: boolean | undefined;
1495
+ }>;
1496
+ inputAmount: z.ZodString;
1497
+ outputAmount: z.ZodString;
1498
+ rate: z.ZodOptional<z.ZodNumber>;
1499
+ timeEstimateSeconds: z.ZodOptional<z.ZodNumber>;
1500
+ fees: z.ZodOptional<z.ZodUnknown>;
1501
+ txs: z.ZodArray<z.ZodObject<{
1502
+ to: z.ZodString;
1503
+ data: z.ZodString;
1504
+ value: z.ZodString;
1505
+ chainId: z.ZodNumber;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ chainId: number;
1508
+ data: string;
1509
+ to: string;
1510
+ value: string;
1511
+ }, {
1512
+ chainId: number;
1513
+ data: string;
1514
+ to: string;
1515
+ value: string;
1516
+ }>, "many">;
1517
+ raw: z.ZodUnknown;
1082
1518
  }, "strip", z.ZodTypeAny, {
1083
- kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
1084
- description: string;
1085
- }, {
1086
- kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
1087
- description: string;
1519
+ source: {
1520
+ symbol: string;
1521
+ chainId: number;
1522
+ address: string;
1523
+ decimals: number;
1524
+ name?: string | undefined;
1525
+ isNative?: boolean | undefined;
1526
+ };
1527
+ destination: {
1528
+ symbol: string;
1529
+ chainId: number;
1530
+ address: string;
1531
+ decimals: number;
1532
+ name?: string | undefined;
1533
+ isNative?: boolean | undefined;
1534
+ };
1535
+ txs: {
1536
+ chainId: number;
1537
+ data: string;
1538
+ to: string;
1539
+ value: string;
1540
+ }[];
1541
+ inputAmount: string;
1542
+ outputAmount: string;
1543
+ requestId?: string | undefined;
1544
+ fees?: unknown;
1545
+ rate?: number | undefined;
1546
+ timeEstimateSeconds?: number | undefined;
1547
+ raw?: unknown;
1548
+ }, {
1549
+ source: {
1550
+ symbol: string;
1551
+ chainId: number;
1552
+ address: string;
1553
+ decimals: number;
1554
+ name?: string | undefined;
1555
+ isNative?: boolean | undefined;
1556
+ };
1557
+ destination: {
1558
+ symbol: string;
1559
+ chainId: number;
1560
+ address: string;
1561
+ decimals: number;
1562
+ name?: string | undefined;
1563
+ isNative?: boolean | undefined;
1564
+ };
1565
+ txs: {
1566
+ chainId: number;
1567
+ data: string;
1568
+ to: string;
1569
+ value: string;
1570
+ }[];
1571
+ inputAmount: string;
1572
+ outputAmount: string;
1573
+ requestId?: string | undefined;
1574
+ fees?: unknown;
1575
+ rate?: number | undefined;
1576
+ timeEstimateSeconds?: number | undefined;
1577
+ raw?: unknown;
1578
+ }>;
1579
+ declare const relayStatusJsonSchema: z.ZodObject<{
1580
+ requestId: z.ZodString;
1581
+ status: z.ZodEnum<["refund", "waiting", "depositing", "failure", "pending", "submitted", "success"]>;
1582
+ details: z.ZodOptional<z.ZodString>;
1583
+ inTxHashes: z.ZodArray<z.ZodString, "many">;
1584
+ txHashes: z.ZodArray<z.ZodString, "many">;
1585
+ updatedAt: z.ZodOptional<z.ZodNumber>;
1586
+ originChainId: z.ZodOptional<z.ZodNumber>;
1587
+ destinationChainId: z.ZodOptional<z.ZodNumber>;
1588
+ quoteCreatedAt: z.ZodOptional<z.ZodNumber>;
1589
+ raw: z.ZodUnknown;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ status: "refund" | "waiting" | "depositing" | "failure" | "pending" | "submitted" | "success";
1592
+ requestId: string;
1593
+ txHashes: string[];
1594
+ inTxHashes: string[];
1595
+ updatedAt?: number | undefined;
1596
+ details?: string | undefined;
1597
+ destinationChainId?: number | undefined;
1598
+ originChainId?: number | undefined;
1599
+ raw?: unknown;
1600
+ quoteCreatedAt?: number | undefined;
1601
+ }, {
1602
+ status: "refund" | "waiting" | "depositing" | "failure" | "pending" | "submitted" | "success";
1603
+ requestId: string;
1604
+ txHashes: string[];
1605
+ inTxHashes: string[];
1606
+ updatedAt?: number | undefined;
1607
+ details?: string | undefined;
1608
+ destinationChainId?: number | undefined;
1609
+ originChainId?: number | undefined;
1610
+ raw?: unknown;
1611
+ quoteCreatedAt?: number | undefined;
1612
+ }>;
1613
+ declare const relayExecutionResultJsonSchema: z.ZodObject<{
1614
+ requestId: z.ZodOptional<z.ZodString>;
1615
+ txHashes: z.ZodArray<z.ZodString, "many">;
1616
+ transactions: z.ZodOptional<z.ZodObject<{
1617
+ origin: z.ZodArray<z.ZodObject<{
1618
+ hash: z.ZodString;
1619
+ chainId: z.ZodNumber;
1620
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ chainId: number;
1623
+ hash: string;
1624
+ isBatchTx?: boolean | undefined;
1625
+ }, {
1626
+ chainId: number;
1627
+ hash: string;
1628
+ isBatchTx?: boolean | undefined;
1629
+ }>, "many">;
1630
+ destination: z.ZodArray<z.ZodObject<{
1631
+ hash: z.ZodString;
1632
+ chainId: z.ZodNumber;
1633
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ chainId: number;
1636
+ hash: string;
1637
+ isBatchTx?: boolean | undefined;
1638
+ }, {
1639
+ chainId: number;
1640
+ hash: string;
1641
+ isBatchTx?: boolean | undefined;
1642
+ }>, "many">;
1643
+ }, "strict", z.ZodTypeAny, {
1644
+ destination: {
1645
+ chainId: number;
1646
+ hash: string;
1647
+ isBatchTx?: boolean | undefined;
1648
+ }[];
1649
+ origin: {
1650
+ chainId: number;
1651
+ hash: string;
1652
+ isBatchTx?: boolean | undefined;
1653
+ }[];
1654
+ }, {
1655
+ destination: {
1656
+ chainId: number;
1657
+ hash: string;
1658
+ isBatchTx?: boolean | undefined;
1659
+ }[];
1660
+ origin: {
1661
+ chainId: number;
1662
+ hash: string;
1663
+ isBatchTx?: boolean | undefined;
1664
+ }[];
1665
+ }>>;
1666
+ quote: z.ZodUnknown;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ txHashes: string[];
1669
+ transactions?: {
1670
+ destination: {
1671
+ chainId: number;
1672
+ hash: string;
1673
+ isBatchTx?: boolean | undefined;
1674
+ }[];
1675
+ origin: {
1676
+ chainId: number;
1677
+ hash: string;
1678
+ isBatchTx?: boolean | undefined;
1679
+ }[];
1680
+ } | undefined;
1681
+ requestId?: string | undefined;
1682
+ quote?: unknown;
1683
+ }, {
1684
+ txHashes: string[];
1685
+ transactions?: {
1686
+ destination: {
1687
+ chainId: number;
1688
+ hash: string;
1689
+ isBatchTx?: boolean | undefined;
1690
+ }[];
1691
+ origin: {
1692
+ chainId: number;
1693
+ hash: string;
1694
+ isBatchTx?: boolean | undefined;
1695
+ }[];
1696
+ } | undefined;
1697
+ requestId?: string | undefined;
1698
+ quote?: unknown;
1699
+ }>;
1700
+ declare const cashPreparedStepJsonSchema: z.ZodObject<{
1701
+ kind: z.ZodEnum<["approve", "createDeposit", "pruneExpiredIntents", "withdrawDeposit", "removeFunds", "addFunds"]>;
1702
+ description: z.ZodString;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
1705
+ description: string;
1706
+ }, {
1707
+ kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
1708
+ description: string;
1088
1709
  }>;
1089
1710
  declare const cashoutResultJsonSchema: z.ZodObject<{
1090
1711
  depositId: z.ZodString;
@@ -1344,13 +1965,87 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
1344
1965
  amount: z.ZodString;
1345
1966
  requestId: z.ZodOptional<z.ZodString>;
1346
1967
  txHashes: z.ZodArray<z.ZodString, "many">;
1968
+ transactions: z.ZodOptional<z.ZodObject<{
1969
+ origin: z.ZodArray<z.ZodObject<{
1970
+ hash: z.ZodString;
1971
+ chainId: z.ZodNumber;
1972
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ chainId: number;
1975
+ hash: string;
1976
+ isBatchTx?: boolean | undefined;
1977
+ }, {
1978
+ chainId: number;
1979
+ hash: string;
1980
+ isBatchTx?: boolean | undefined;
1981
+ }>, "many">;
1982
+ destination: z.ZodArray<z.ZodObject<{
1983
+ hash: z.ZodString;
1984
+ chainId: z.ZodNumber;
1985
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ chainId: number;
1988
+ hash: string;
1989
+ isBatchTx?: boolean | undefined;
1990
+ }, {
1991
+ chainId: number;
1992
+ hash: string;
1993
+ isBatchTx?: boolean | undefined;
1994
+ }>, "many">;
1995
+ }, "strict", z.ZodTypeAny, {
1996
+ destination: {
1997
+ chainId: number;
1998
+ hash: string;
1999
+ isBatchTx?: boolean | undefined;
2000
+ }[];
2001
+ origin: {
2002
+ chainId: number;
2003
+ hash: string;
2004
+ isBatchTx?: boolean | undefined;
2005
+ }[];
2006
+ }, {
2007
+ destination: {
2008
+ chainId: number;
2009
+ hash: string;
2010
+ isBatchTx?: boolean | undefined;
2011
+ }[];
2012
+ origin: {
2013
+ chainId: number;
2014
+ hash: string;
2015
+ isBatchTx?: boolean | undefined;
2016
+ }[];
2017
+ }>>;
1347
2018
  }, "strip", z.ZodTypeAny, {
1348
2019
  amount: string;
1349
2020
  txHashes: string[];
2021
+ transactions?: {
2022
+ destination: {
2023
+ chainId: number;
2024
+ hash: string;
2025
+ isBatchTx?: boolean | undefined;
2026
+ }[];
2027
+ origin: {
2028
+ chainId: number;
2029
+ hash: string;
2030
+ isBatchTx?: boolean | undefined;
2031
+ }[];
2032
+ } | undefined;
1350
2033
  requestId?: string | undefined;
1351
2034
  }, {
1352
2035
  amount: string;
1353
2036
  txHashes: string[];
2037
+ transactions?: {
2038
+ destination: {
2039
+ chainId: number;
2040
+ hash: string;
2041
+ isBatchTx?: boolean | undefined;
2042
+ }[];
2043
+ origin: {
2044
+ chainId: number;
2045
+ hash: string;
2046
+ isBatchTx?: boolean | undefined;
2047
+ }[];
2048
+ } | undefined;
1354
2049
  requestId?: string | undefined;
1355
2050
  }>>;
1356
2051
  }, "strip", z.ZodTypeAny, {
@@ -1416,6 +2111,18 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
1416
2111
  source?: {
1417
2112
  amount: string;
1418
2113
  txHashes: string[];
2114
+ transactions?: {
2115
+ destination: {
2116
+ chainId: number;
2117
+ hash: string;
2118
+ isBatchTx?: boolean | undefined;
2119
+ }[];
2120
+ origin: {
2121
+ chainId: number;
2122
+ hash: string;
2123
+ isBatchTx?: boolean | undefined;
2124
+ }[];
2125
+ } | undefined;
1419
2126
  requestId?: string | undefined;
1420
2127
  } | undefined;
1421
2128
  }, {
@@ -1481,6 +2188,18 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
1481
2188
  source?: {
1482
2189
  amount: string;
1483
2190
  txHashes: string[];
2191
+ transactions?: {
2192
+ destination: {
2193
+ chainId: number;
2194
+ hash: string;
2195
+ isBatchTx?: boolean | undefined;
2196
+ }[];
2197
+ origin: {
2198
+ chainId: number;
2199
+ hash: string;
2200
+ isBatchTx?: boolean | undefined;
2201
+ }[];
2202
+ } | undefined;
1484
2203
  requestId?: string | undefined;
1485
2204
  } | undefined;
1486
2205
  }>;
@@ -1753,6 +2472,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1753
2472
  blockProductionLagging: boolean;
1754
2473
  vmType?: string | undefined;
1755
2474
  }[];
2475
+ source: "relay-sdk";
1756
2476
  destination: {
1757
2477
  symbol: string;
1758
2478
  chainId: number;
@@ -1761,7 +2481,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1761
2481
  name?: string | undefined;
1762
2482
  isNative?: boolean | undefined;
1763
2483
  };
1764
- source: "relay-sdk";
1765
2484
  asOf: number;
1766
2485
  }, {
1767
2486
  chains: {
@@ -1781,6 +2500,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1781
2500
  blockProductionLagging: boolean;
1782
2501
  vmType?: string | undefined;
1783
2502
  }[];
2503
+ source: "relay-sdk";
1784
2504
  destination: {
1785
2505
  symbol: string;
1786
2506
  chainId: number;
@@ -1789,7 +2509,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1789
2509
  name?: string | undefined;
1790
2510
  isNative?: boolean | undefined;
1791
2511
  };
1792
- source: "relay-sdk";
1793
2512
  asOf: number;
1794
2513
  }>>;
1795
2514
  }, "strip", z.ZodTypeAny, {
@@ -1819,6 +2538,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1819
2538
  blockProductionLagging: boolean;
1820
2539
  vmType?: string | undefined;
1821
2540
  }[];
2541
+ source: "relay-sdk";
1822
2542
  destination: {
1823
2543
  symbol: string;
1824
2544
  chainId: number;
@@ -1827,7 +2547,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1827
2547
  name?: string | undefined;
1828
2548
  isNative?: boolean | undefined;
1829
2549
  };
1830
- source: "relay-sdk";
1831
2550
  asOf: number;
1832
2551
  } | undefined;
1833
2552
  }, {
@@ -1857,6 +2576,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1857
2576
  blockProductionLagging: boolean;
1858
2577
  vmType?: string | undefined;
1859
2578
  }[];
2579
+ source: "relay-sdk";
1860
2580
  destination: {
1861
2581
  symbol: string;
1862
2582
  chainId: number;
@@ -1865,7 +2585,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1865
2585
  name?: string | undefined;
1866
2586
  isNative?: boolean | undefined;
1867
2587
  };
1868
- source: "relay-sdk";
1869
2588
  asOf: number;
1870
2589
  } | undefined;
1871
2590
  }>;
@@ -1921,14 +2640,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1921
2640
  address: string;
1922
2641
  decimals: number;
1923
2642
  };
1924
- destination: {
1925
- chainId: number;
1926
- token: {
1927
- symbol: "USDC";
1928
- address: string;
1929
- decimals: number;
1930
- };
1931
- };
1932
2643
  source: {
1933
2644
  default: {
1934
2645
  chainId: number;
@@ -1956,6 +2667,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1956
2667
  blockProductionLagging: boolean;
1957
2668
  vmType?: string | undefined;
1958
2669
  }[];
2670
+ source: "relay-sdk";
1959
2671
  destination: {
1960
2672
  symbol: string;
1961
2673
  chainId: number;
@@ -1964,10 +2676,17 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1964
2676
  name?: string | undefined;
1965
2677
  isNative?: boolean | undefined;
1966
2678
  };
1967
- source: "relay-sdk";
1968
2679
  asOf: number;
1969
2680
  } | undefined;
1970
2681
  };
2682
+ destination: {
2683
+ chainId: number;
2684
+ token: {
2685
+ symbol: "USDC";
2686
+ address: string;
2687
+ decimals: number;
2688
+ };
2689
+ };
1971
2690
  environment: "production" | "preproduction" | "staging";
1972
2691
  currencies: string[];
1973
2692
  platforms: {
@@ -1992,14 +2711,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
1992
2711
  address: string;
1993
2712
  decimals: number;
1994
2713
  };
1995
- destination: {
1996
- chainId: number;
1997
- token: {
1998
- symbol: "USDC";
1999
- address: string;
2000
- decimals: number;
2001
- };
2002
- };
2003
2714
  source: {
2004
2715
  default: {
2005
2716
  chainId: number;
@@ -2027,6 +2738,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2027
2738
  blockProductionLagging: boolean;
2028
2739
  vmType?: string | undefined;
2029
2740
  }[];
2741
+ source: "relay-sdk";
2030
2742
  destination: {
2031
2743
  symbol: string;
2032
2744
  chainId: number;
@@ -2035,10 +2747,17 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2035
2747
  name?: string | undefined;
2036
2748
  isNative?: boolean | undefined;
2037
2749
  };
2038
- source: "relay-sdk";
2039
2750
  asOf: number;
2040
2751
  } | undefined;
2041
2752
  };
2753
+ destination: {
2754
+ chainId: number;
2755
+ token: {
2756
+ symbol: "USDC";
2757
+ address: string;
2758
+ decimals: number;
2759
+ };
2760
+ };
2042
2761
  environment: "production" | "preproduction" | "staging";
2043
2762
  currencies: string[];
2044
2763
  platforms: {
@@ -2052,21 +2771,937 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2052
2771
  kind: "oracle-market-rate";
2053
2772
  };
2054
2773
  }>;
2055
- declare const cashErrorJsonSchema: z.ZodObject<{
2056
- code: z.ZodString;
2057
- message: z.ZodString;
2058
- retryable: z.ZodBoolean;
2059
- remediation: z.ZodString;
2060
- }, "strip", z.ZodTypeAny, {
2061
- code: string;
2062
- message: string;
2063
- retryable: boolean;
2064
- remediation: string;
2774
+ declare const cashErrorRecoveryJsonSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2775
+ kind: z.ZodLiteral<"retry-base-usdc-cashout">;
2776
+ amount: z.ZodString;
2777
+ requestId: z.ZodOptional<z.ZodString>;
2778
+ txHashes: z.ZodArray<z.ZodString, "many">;
2779
+ transactions: z.ZodOptional<z.ZodObject<{
2780
+ origin: z.ZodArray<z.ZodObject<{
2781
+ hash: z.ZodString;
2782
+ chainId: z.ZodNumber;
2783
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2784
+ }, "strip", z.ZodTypeAny, {
2785
+ chainId: number;
2786
+ hash: string;
2787
+ isBatchTx?: boolean | undefined;
2788
+ }, {
2789
+ chainId: number;
2790
+ hash: string;
2791
+ isBatchTx?: boolean | undefined;
2792
+ }>, "many">;
2793
+ destination: z.ZodArray<z.ZodObject<{
2794
+ hash: z.ZodString;
2795
+ chainId: z.ZodNumber;
2796
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ chainId: number;
2799
+ hash: string;
2800
+ isBatchTx?: boolean | undefined;
2801
+ }, {
2802
+ chainId: number;
2803
+ hash: string;
2804
+ isBatchTx?: boolean | undefined;
2805
+ }>, "many">;
2806
+ }, "strict", z.ZodTypeAny, {
2807
+ destination: {
2808
+ chainId: number;
2809
+ hash: string;
2810
+ isBatchTx?: boolean | undefined;
2811
+ }[];
2812
+ origin: {
2813
+ chainId: number;
2814
+ hash: string;
2815
+ isBatchTx?: boolean | undefined;
2816
+ }[];
2817
+ }, {
2818
+ destination: {
2819
+ chainId: number;
2820
+ hash: string;
2821
+ isBatchTx?: boolean | undefined;
2822
+ }[];
2823
+ origin: {
2824
+ chainId: number;
2825
+ hash: string;
2826
+ isBatchTx?: boolean | undefined;
2827
+ }[];
2828
+ }>>;
2829
+ }, "strict", z.ZodTypeAny, {
2830
+ amount: string;
2831
+ kind: "retry-base-usdc-cashout";
2832
+ txHashes: string[];
2833
+ transactions?: {
2834
+ destination: {
2835
+ chainId: number;
2836
+ hash: string;
2837
+ isBatchTx?: boolean | undefined;
2838
+ }[];
2839
+ origin: {
2840
+ chainId: number;
2841
+ hash: string;
2842
+ isBatchTx?: boolean | undefined;
2843
+ }[];
2844
+ } | undefined;
2845
+ requestId?: string | undefined;
2065
2846
  }, {
2066
- code: string;
2067
- message: string;
2068
- retryable: boolean;
2069
- remediation: string;
2847
+ amount: string;
2848
+ kind: "retry-base-usdc-cashout";
2849
+ txHashes: string[];
2850
+ transactions?: {
2851
+ destination: {
2852
+ chainId: number;
2853
+ hash: string;
2854
+ isBatchTx?: boolean | undefined;
2855
+ }[];
2856
+ origin: {
2857
+ chainId: number;
2858
+ hash: string;
2859
+ isBatchTx?: boolean | undefined;
2860
+ }[];
2861
+ } | undefined;
2862
+ requestId?: string | undefined;
2863
+ }>, z.ZodObject<{
2864
+ kind: z.ZodLiteral<"inspect-base-cashout-transaction">;
2865
+ depositTxHash: z.ZodString;
2866
+ amount: z.ZodString;
2867
+ requestId: z.ZodOptional<z.ZodString>;
2868
+ txHashes: z.ZodArray<z.ZodString, "many">;
2869
+ transactions: z.ZodOptional<z.ZodObject<{
2870
+ origin: z.ZodArray<z.ZodObject<{
2871
+ hash: z.ZodString;
2872
+ chainId: z.ZodNumber;
2873
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2874
+ }, "strip", z.ZodTypeAny, {
2875
+ chainId: number;
2876
+ hash: string;
2877
+ isBatchTx?: boolean | undefined;
2878
+ }, {
2879
+ chainId: number;
2880
+ hash: string;
2881
+ isBatchTx?: boolean | undefined;
2882
+ }>, "many">;
2883
+ destination: z.ZodArray<z.ZodObject<{
2884
+ hash: z.ZodString;
2885
+ chainId: z.ZodNumber;
2886
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2887
+ }, "strip", z.ZodTypeAny, {
2888
+ chainId: number;
2889
+ hash: string;
2890
+ isBatchTx?: boolean | undefined;
2891
+ }, {
2892
+ chainId: number;
2893
+ hash: string;
2894
+ isBatchTx?: boolean | undefined;
2895
+ }>, "many">;
2896
+ }, "strict", z.ZodTypeAny, {
2897
+ destination: {
2898
+ chainId: number;
2899
+ hash: string;
2900
+ isBatchTx?: boolean | undefined;
2901
+ }[];
2902
+ origin: {
2903
+ chainId: number;
2904
+ hash: string;
2905
+ isBatchTx?: boolean | undefined;
2906
+ }[];
2907
+ }, {
2908
+ destination: {
2909
+ chainId: number;
2910
+ hash: string;
2911
+ isBatchTx?: boolean | undefined;
2912
+ }[];
2913
+ origin: {
2914
+ chainId: number;
2915
+ hash: string;
2916
+ isBatchTx?: boolean | undefined;
2917
+ }[];
2918
+ }>>;
2919
+ }, "strict", z.ZodTypeAny, {
2920
+ amount: string;
2921
+ kind: "inspect-base-cashout-transaction";
2922
+ txHashes: string[];
2923
+ depositTxHash: string;
2924
+ transactions?: {
2925
+ destination: {
2926
+ chainId: number;
2927
+ hash: string;
2928
+ isBatchTx?: boolean | undefined;
2929
+ }[];
2930
+ origin: {
2931
+ chainId: number;
2932
+ hash: string;
2933
+ isBatchTx?: boolean | undefined;
2934
+ }[];
2935
+ } | undefined;
2936
+ requestId?: string | undefined;
2937
+ }, {
2938
+ amount: string;
2939
+ kind: "inspect-base-cashout-transaction";
2940
+ txHashes: string[];
2941
+ depositTxHash: string;
2942
+ transactions?: {
2943
+ destination: {
2944
+ chainId: number;
2945
+ hash: string;
2946
+ isBatchTx?: boolean | undefined;
2947
+ }[];
2948
+ origin: {
2949
+ chainId: number;
2950
+ hash: string;
2951
+ isBatchTx?: boolean | undefined;
2952
+ }[];
2953
+ } | undefined;
2954
+ requestId?: string | undefined;
2955
+ }>, z.ZodObject<{
2956
+ kind: z.ZodLiteral<"inspect-base-cashout-submission">;
2957
+ depositor: z.ZodString;
2958
+ amount: z.ZodString;
2959
+ requestId: z.ZodOptional<z.ZodString>;
2960
+ txHashes: z.ZodArray<z.ZodString, "many">;
2961
+ transactions: z.ZodOptional<z.ZodObject<{
2962
+ origin: z.ZodArray<z.ZodObject<{
2963
+ hash: z.ZodString;
2964
+ chainId: z.ZodNumber;
2965
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2966
+ }, "strip", z.ZodTypeAny, {
2967
+ chainId: number;
2968
+ hash: string;
2969
+ isBatchTx?: boolean | undefined;
2970
+ }, {
2971
+ chainId: number;
2972
+ hash: string;
2973
+ isBatchTx?: boolean | undefined;
2974
+ }>, "many">;
2975
+ destination: z.ZodArray<z.ZodObject<{
2976
+ hash: z.ZodString;
2977
+ chainId: z.ZodNumber;
2978
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ chainId: number;
2981
+ hash: string;
2982
+ isBatchTx?: boolean | undefined;
2983
+ }, {
2984
+ chainId: number;
2985
+ hash: string;
2986
+ isBatchTx?: boolean | undefined;
2987
+ }>, "many">;
2988
+ }, "strict", z.ZodTypeAny, {
2989
+ destination: {
2990
+ chainId: number;
2991
+ hash: string;
2992
+ isBatchTx?: boolean | undefined;
2993
+ }[];
2994
+ origin: {
2995
+ chainId: number;
2996
+ hash: string;
2997
+ isBatchTx?: boolean | undefined;
2998
+ }[];
2999
+ }, {
3000
+ destination: {
3001
+ chainId: number;
3002
+ hash: string;
3003
+ isBatchTx?: boolean | undefined;
3004
+ }[];
3005
+ origin: {
3006
+ chainId: number;
3007
+ hash: string;
3008
+ isBatchTx?: boolean | undefined;
3009
+ }[];
3010
+ }>>;
3011
+ }, "strict", z.ZodTypeAny, {
3012
+ amount: string;
3013
+ depositor: string;
3014
+ kind: "inspect-base-cashout-submission";
3015
+ txHashes: string[];
3016
+ transactions?: {
3017
+ destination: {
3018
+ chainId: number;
3019
+ hash: string;
3020
+ isBatchTx?: boolean | undefined;
3021
+ }[];
3022
+ origin: {
3023
+ chainId: number;
3024
+ hash: string;
3025
+ isBatchTx?: boolean | undefined;
3026
+ }[];
3027
+ } | undefined;
3028
+ requestId?: string | undefined;
3029
+ }, {
3030
+ amount: string;
3031
+ depositor: string;
3032
+ kind: "inspect-base-cashout-submission";
3033
+ txHashes: string[];
3034
+ transactions?: {
3035
+ destination: {
3036
+ chainId: number;
3037
+ hash: string;
3038
+ isBatchTx?: boolean | undefined;
3039
+ }[];
3040
+ origin: {
3041
+ chainId: number;
3042
+ hash: string;
3043
+ isBatchTx?: boolean | undefined;
3044
+ }[];
3045
+ } | undefined;
3046
+ requestId?: string | undefined;
3047
+ }>, z.ZodObject<{
3048
+ kind: z.ZodLiteral<"inspect-relay-route">;
3049
+ requestId: z.ZodOptional<z.ZodString>;
3050
+ txHashes: z.ZodArray<z.ZodString, "many">;
3051
+ transactions: z.ZodOptional<z.ZodObject<{
3052
+ origin: z.ZodArray<z.ZodObject<{
3053
+ hash: z.ZodString;
3054
+ chainId: z.ZodNumber;
3055
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3056
+ }, "strip", z.ZodTypeAny, {
3057
+ chainId: number;
3058
+ hash: string;
3059
+ isBatchTx?: boolean | undefined;
3060
+ }, {
3061
+ chainId: number;
3062
+ hash: string;
3063
+ isBatchTx?: boolean | undefined;
3064
+ }>, "many">;
3065
+ destination: z.ZodArray<z.ZodObject<{
3066
+ hash: z.ZodString;
3067
+ chainId: z.ZodNumber;
3068
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3069
+ }, "strip", z.ZodTypeAny, {
3070
+ chainId: number;
3071
+ hash: string;
3072
+ isBatchTx?: boolean | undefined;
3073
+ }, {
3074
+ chainId: number;
3075
+ hash: string;
3076
+ isBatchTx?: boolean | undefined;
3077
+ }>, "many">;
3078
+ }, "strict", z.ZodTypeAny, {
3079
+ destination: {
3080
+ chainId: number;
3081
+ hash: string;
3082
+ isBatchTx?: boolean | undefined;
3083
+ }[];
3084
+ origin: {
3085
+ chainId: number;
3086
+ hash: string;
3087
+ isBatchTx?: boolean | undefined;
3088
+ }[];
3089
+ }, {
3090
+ destination: {
3091
+ chainId: number;
3092
+ hash: string;
3093
+ isBatchTx?: boolean | undefined;
3094
+ }[];
3095
+ origin: {
3096
+ chainId: number;
3097
+ hash: string;
3098
+ isBatchTx?: boolean | undefined;
3099
+ }[];
3100
+ }>>;
3101
+ }, "strict", z.ZodTypeAny, {
3102
+ kind: "inspect-relay-route";
3103
+ txHashes: string[];
3104
+ transactions?: {
3105
+ destination: {
3106
+ chainId: number;
3107
+ hash: string;
3108
+ isBatchTx?: boolean | undefined;
3109
+ }[];
3110
+ origin: {
3111
+ chainId: number;
3112
+ hash: string;
3113
+ isBatchTx?: boolean | undefined;
3114
+ }[];
3115
+ } | undefined;
3116
+ requestId?: string | undefined;
3117
+ }, {
3118
+ kind: "inspect-relay-route";
3119
+ txHashes: string[];
3120
+ transactions?: {
3121
+ destination: {
3122
+ chainId: number;
3123
+ hash: string;
3124
+ isBatchTx?: boolean | undefined;
3125
+ }[];
3126
+ origin: {
3127
+ chainId: number;
3128
+ hash: string;
3129
+ isBatchTx?: boolean | undefined;
3130
+ }[];
3131
+ } | undefined;
3132
+ requestId?: string | undefined;
3133
+ }>, z.ZodObject<{
3134
+ kind: z.ZodLiteral<"inspect-base-operation-submission">;
3135
+ operation: z.ZodString;
3136
+ }, "strict", z.ZodTypeAny, {
3137
+ kind: "inspect-base-operation-submission";
3138
+ operation: string;
3139
+ }, {
3140
+ kind: "inspect-base-operation-submission";
3141
+ operation: string;
3142
+ }>, z.ZodObject<{
3143
+ kind: z.ZodLiteral<"inspect-base-transaction">;
3144
+ transactionHash: z.ZodString;
3145
+ operation: z.ZodString;
3146
+ }, "strict", z.ZodTypeAny, {
3147
+ kind: "inspect-base-transaction";
3148
+ transactionHash: string;
3149
+ operation: string;
3150
+ }, {
3151
+ kind: "inspect-base-transaction";
3152
+ transactionHash: string;
3153
+ operation: string;
3154
+ }>]>;
3155
+ declare const cashErrorJsonSchema: z.ZodObject<{
3156
+ code: z.ZodEnum<["ORACLE_UNSUPPORTED_CURRENCY", "ORACLE_READ_FAILED", "UNSUPPORTED_PLATFORM", "UNSUPPORTED_PLATFORM_CURRENCY", "AMOUNT_BELOW_MINIMUM", "INVALID_INTENT_AMOUNT_RANGE", "ACTIVE_INTENT_BLOCKS_WITHDRAWAL", "NOTHING_TO_WITHDRAW", "INSUFFICIENT_AVAILABLE_FUNDS", "INSUFFICIENT_TOKEN_BALANCE", "ORDER_NOT_ACTIVE", "INVALID_DEPOSIT_ID", "ESCROW_PAUSED", "INDEXER_LAG", "INDEXER_UNAVAILABLE", "ORDER_NOT_FOUND", "PAYEE_REGISTRATION_FAILED", "PAYEE_VERIFICATION_REQUIRED", "SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE", "SOURCE_RECIPIENT_MISMATCH", "SOURCE_CAPABILITIES_FAILED", "SOURCE_QUOTE_FAILED", "SOURCE_EXECUTION_FAILED", "SOURCE_STATUS_FAILED", "SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED", "SOURCE_CASHOUT_SUBMISSION_UNKNOWN", "SOURCE_CASHOUT_STATUS_UNKNOWN", "DEPOSIT_RESOLUTION_FAILED", "ALLOWANCE_NOT_VISIBLE", "SIGNER_REQUIRED", "SIGNER_CHAIN_MISMATCH", "SIGNER_CHAIN_UNAVAILABLE", "WATCH_TIMEOUT", "TRANSACTION_FAILED", "TRANSACTION_SUBMISSION_UNKNOWN", "TRANSACTION_STATUS_UNKNOWN"]>;
3157
+ message: z.ZodString;
3158
+ retryable: z.ZodBoolean;
3159
+ remediation: z.ZodString;
3160
+ recovery: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3161
+ kind: z.ZodLiteral<"retry-base-usdc-cashout">;
3162
+ amount: z.ZodString;
3163
+ requestId: z.ZodOptional<z.ZodString>;
3164
+ txHashes: z.ZodArray<z.ZodString, "many">;
3165
+ transactions: z.ZodOptional<z.ZodObject<{
3166
+ origin: z.ZodArray<z.ZodObject<{
3167
+ hash: z.ZodString;
3168
+ chainId: z.ZodNumber;
3169
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3170
+ }, "strip", z.ZodTypeAny, {
3171
+ chainId: number;
3172
+ hash: string;
3173
+ isBatchTx?: boolean | undefined;
3174
+ }, {
3175
+ chainId: number;
3176
+ hash: string;
3177
+ isBatchTx?: boolean | undefined;
3178
+ }>, "many">;
3179
+ destination: z.ZodArray<z.ZodObject<{
3180
+ hash: z.ZodString;
3181
+ chainId: z.ZodNumber;
3182
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3183
+ }, "strip", z.ZodTypeAny, {
3184
+ chainId: number;
3185
+ hash: string;
3186
+ isBatchTx?: boolean | undefined;
3187
+ }, {
3188
+ chainId: number;
3189
+ hash: string;
3190
+ isBatchTx?: boolean | undefined;
3191
+ }>, "many">;
3192
+ }, "strict", z.ZodTypeAny, {
3193
+ destination: {
3194
+ chainId: number;
3195
+ hash: string;
3196
+ isBatchTx?: boolean | undefined;
3197
+ }[];
3198
+ origin: {
3199
+ chainId: number;
3200
+ hash: string;
3201
+ isBatchTx?: boolean | undefined;
3202
+ }[];
3203
+ }, {
3204
+ destination: {
3205
+ chainId: number;
3206
+ hash: string;
3207
+ isBatchTx?: boolean | undefined;
3208
+ }[];
3209
+ origin: {
3210
+ chainId: number;
3211
+ hash: string;
3212
+ isBatchTx?: boolean | undefined;
3213
+ }[];
3214
+ }>>;
3215
+ }, "strict", z.ZodTypeAny, {
3216
+ amount: string;
3217
+ kind: "retry-base-usdc-cashout";
3218
+ txHashes: string[];
3219
+ transactions?: {
3220
+ destination: {
3221
+ chainId: number;
3222
+ hash: string;
3223
+ isBatchTx?: boolean | undefined;
3224
+ }[];
3225
+ origin: {
3226
+ chainId: number;
3227
+ hash: string;
3228
+ isBatchTx?: boolean | undefined;
3229
+ }[];
3230
+ } | undefined;
3231
+ requestId?: string | undefined;
3232
+ }, {
3233
+ amount: string;
3234
+ kind: "retry-base-usdc-cashout";
3235
+ txHashes: string[];
3236
+ transactions?: {
3237
+ destination: {
3238
+ chainId: number;
3239
+ hash: string;
3240
+ isBatchTx?: boolean | undefined;
3241
+ }[];
3242
+ origin: {
3243
+ chainId: number;
3244
+ hash: string;
3245
+ isBatchTx?: boolean | undefined;
3246
+ }[];
3247
+ } | undefined;
3248
+ requestId?: string | undefined;
3249
+ }>, z.ZodObject<{
3250
+ kind: z.ZodLiteral<"inspect-base-cashout-transaction">;
3251
+ depositTxHash: z.ZodString;
3252
+ amount: z.ZodString;
3253
+ requestId: z.ZodOptional<z.ZodString>;
3254
+ txHashes: z.ZodArray<z.ZodString, "many">;
3255
+ transactions: z.ZodOptional<z.ZodObject<{
3256
+ origin: z.ZodArray<z.ZodObject<{
3257
+ hash: z.ZodString;
3258
+ chainId: z.ZodNumber;
3259
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3260
+ }, "strip", z.ZodTypeAny, {
3261
+ chainId: number;
3262
+ hash: string;
3263
+ isBatchTx?: boolean | undefined;
3264
+ }, {
3265
+ chainId: number;
3266
+ hash: string;
3267
+ isBatchTx?: boolean | undefined;
3268
+ }>, "many">;
3269
+ destination: z.ZodArray<z.ZodObject<{
3270
+ hash: z.ZodString;
3271
+ chainId: z.ZodNumber;
3272
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ chainId: number;
3275
+ hash: string;
3276
+ isBatchTx?: boolean | undefined;
3277
+ }, {
3278
+ chainId: number;
3279
+ hash: string;
3280
+ isBatchTx?: boolean | undefined;
3281
+ }>, "many">;
3282
+ }, "strict", z.ZodTypeAny, {
3283
+ destination: {
3284
+ chainId: number;
3285
+ hash: string;
3286
+ isBatchTx?: boolean | undefined;
3287
+ }[];
3288
+ origin: {
3289
+ chainId: number;
3290
+ hash: string;
3291
+ isBatchTx?: boolean | undefined;
3292
+ }[];
3293
+ }, {
3294
+ destination: {
3295
+ chainId: number;
3296
+ hash: string;
3297
+ isBatchTx?: boolean | undefined;
3298
+ }[];
3299
+ origin: {
3300
+ chainId: number;
3301
+ hash: string;
3302
+ isBatchTx?: boolean | undefined;
3303
+ }[];
3304
+ }>>;
3305
+ }, "strict", z.ZodTypeAny, {
3306
+ amount: string;
3307
+ kind: "inspect-base-cashout-transaction";
3308
+ txHashes: string[];
3309
+ depositTxHash: string;
3310
+ transactions?: {
3311
+ destination: {
3312
+ chainId: number;
3313
+ hash: string;
3314
+ isBatchTx?: boolean | undefined;
3315
+ }[];
3316
+ origin: {
3317
+ chainId: number;
3318
+ hash: string;
3319
+ isBatchTx?: boolean | undefined;
3320
+ }[];
3321
+ } | undefined;
3322
+ requestId?: string | undefined;
3323
+ }, {
3324
+ amount: string;
3325
+ kind: "inspect-base-cashout-transaction";
3326
+ txHashes: string[];
3327
+ depositTxHash: string;
3328
+ transactions?: {
3329
+ destination: {
3330
+ chainId: number;
3331
+ hash: string;
3332
+ isBatchTx?: boolean | undefined;
3333
+ }[];
3334
+ origin: {
3335
+ chainId: number;
3336
+ hash: string;
3337
+ isBatchTx?: boolean | undefined;
3338
+ }[];
3339
+ } | undefined;
3340
+ requestId?: string | undefined;
3341
+ }>, z.ZodObject<{
3342
+ kind: z.ZodLiteral<"inspect-base-cashout-submission">;
3343
+ depositor: z.ZodString;
3344
+ amount: z.ZodString;
3345
+ requestId: z.ZodOptional<z.ZodString>;
3346
+ txHashes: z.ZodArray<z.ZodString, "many">;
3347
+ transactions: z.ZodOptional<z.ZodObject<{
3348
+ origin: z.ZodArray<z.ZodObject<{
3349
+ hash: z.ZodString;
3350
+ chainId: z.ZodNumber;
3351
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ chainId: number;
3354
+ hash: string;
3355
+ isBatchTx?: boolean | undefined;
3356
+ }, {
3357
+ chainId: number;
3358
+ hash: string;
3359
+ isBatchTx?: boolean | undefined;
3360
+ }>, "many">;
3361
+ destination: z.ZodArray<z.ZodObject<{
3362
+ hash: z.ZodString;
3363
+ chainId: z.ZodNumber;
3364
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3365
+ }, "strip", z.ZodTypeAny, {
3366
+ chainId: number;
3367
+ hash: string;
3368
+ isBatchTx?: boolean | undefined;
3369
+ }, {
3370
+ chainId: number;
3371
+ hash: string;
3372
+ isBatchTx?: boolean | undefined;
3373
+ }>, "many">;
3374
+ }, "strict", z.ZodTypeAny, {
3375
+ destination: {
3376
+ chainId: number;
3377
+ hash: string;
3378
+ isBatchTx?: boolean | undefined;
3379
+ }[];
3380
+ origin: {
3381
+ chainId: number;
3382
+ hash: string;
3383
+ isBatchTx?: boolean | undefined;
3384
+ }[];
3385
+ }, {
3386
+ destination: {
3387
+ chainId: number;
3388
+ hash: string;
3389
+ isBatchTx?: boolean | undefined;
3390
+ }[];
3391
+ origin: {
3392
+ chainId: number;
3393
+ hash: string;
3394
+ isBatchTx?: boolean | undefined;
3395
+ }[];
3396
+ }>>;
3397
+ }, "strict", z.ZodTypeAny, {
3398
+ amount: string;
3399
+ depositor: string;
3400
+ kind: "inspect-base-cashout-submission";
3401
+ txHashes: string[];
3402
+ transactions?: {
3403
+ destination: {
3404
+ chainId: number;
3405
+ hash: string;
3406
+ isBatchTx?: boolean | undefined;
3407
+ }[];
3408
+ origin: {
3409
+ chainId: number;
3410
+ hash: string;
3411
+ isBatchTx?: boolean | undefined;
3412
+ }[];
3413
+ } | undefined;
3414
+ requestId?: string | undefined;
3415
+ }, {
3416
+ amount: string;
3417
+ depositor: string;
3418
+ kind: "inspect-base-cashout-submission";
3419
+ txHashes: string[];
3420
+ transactions?: {
3421
+ destination: {
3422
+ chainId: number;
3423
+ hash: string;
3424
+ isBatchTx?: boolean | undefined;
3425
+ }[];
3426
+ origin: {
3427
+ chainId: number;
3428
+ hash: string;
3429
+ isBatchTx?: boolean | undefined;
3430
+ }[];
3431
+ } | undefined;
3432
+ requestId?: string | undefined;
3433
+ }>, z.ZodObject<{
3434
+ kind: z.ZodLiteral<"inspect-relay-route">;
3435
+ requestId: z.ZodOptional<z.ZodString>;
3436
+ txHashes: z.ZodArray<z.ZodString, "many">;
3437
+ transactions: z.ZodOptional<z.ZodObject<{
3438
+ origin: z.ZodArray<z.ZodObject<{
3439
+ hash: z.ZodString;
3440
+ chainId: z.ZodNumber;
3441
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3442
+ }, "strip", z.ZodTypeAny, {
3443
+ chainId: number;
3444
+ hash: string;
3445
+ isBatchTx?: boolean | undefined;
3446
+ }, {
3447
+ chainId: number;
3448
+ hash: string;
3449
+ isBatchTx?: boolean | undefined;
3450
+ }>, "many">;
3451
+ destination: z.ZodArray<z.ZodObject<{
3452
+ hash: z.ZodString;
3453
+ chainId: z.ZodNumber;
3454
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3455
+ }, "strip", z.ZodTypeAny, {
3456
+ chainId: number;
3457
+ hash: string;
3458
+ isBatchTx?: boolean | undefined;
3459
+ }, {
3460
+ chainId: number;
3461
+ hash: string;
3462
+ isBatchTx?: boolean | undefined;
3463
+ }>, "many">;
3464
+ }, "strict", z.ZodTypeAny, {
3465
+ destination: {
3466
+ chainId: number;
3467
+ hash: string;
3468
+ isBatchTx?: boolean | undefined;
3469
+ }[];
3470
+ origin: {
3471
+ chainId: number;
3472
+ hash: string;
3473
+ isBatchTx?: boolean | undefined;
3474
+ }[];
3475
+ }, {
3476
+ destination: {
3477
+ chainId: number;
3478
+ hash: string;
3479
+ isBatchTx?: boolean | undefined;
3480
+ }[];
3481
+ origin: {
3482
+ chainId: number;
3483
+ hash: string;
3484
+ isBatchTx?: boolean | undefined;
3485
+ }[];
3486
+ }>>;
3487
+ }, "strict", z.ZodTypeAny, {
3488
+ kind: "inspect-relay-route";
3489
+ txHashes: string[];
3490
+ transactions?: {
3491
+ destination: {
3492
+ chainId: number;
3493
+ hash: string;
3494
+ isBatchTx?: boolean | undefined;
3495
+ }[];
3496
+ origin: {
3497
+ chainId: number;
3498
+ hash: string;
3499
+ isBatchTx?: boolean | undefined;
3500
+ }[];
3501
+ } | undefined;
3502
+ requestId?: string | undefined;
3503
+ }, {
3504
+ kind: "inspect-relay-route";
3505
+ txHashes: string[];
3506
+ transactions?: {
3507
+ destination: {
3508
+ chainId: number;
3509
+ hash: string;
3510
+ isBatchTx?: boolean | undefined;
3511
+ }[];
3512
+ origin: {
3513
+ chainId: number;
3514
+ hash: string;
3515
+ isBatchTx?: boolean | undefined;
3516
+ }[];
3517
+ } | undefined;
3518
+ requestId?: string | undefined;
3519
+ }>, z.ZodObject<{
3520
+ kind: z.ZodLiteral<"inspect-base-operation-submission">;
3521
+ operation: z.ZodString;
3522
+ }, "strict", z.ZodTypeAny, {
3523
+ kind: "inspect-base-operation-submission";
3524
+ operation: string;
3525
+ }, {
3526
+ kind: "inspect-base-operation-submission";
3527
+ operation: string;
3528
+ }>, z.ZodObject<{
3529
+ kind: z.ZodLiteral<"inspect-base-transaction">;
3530
+ transactionHash: z.ZodString;
3531
+ operation: z.ZodString;
3532
+ }, "strict", z.ZodTypeAny, {
3533
+ kind: "inspect-base-transaction";
3534
+ transactionHash: string;
3535
+ operation: string;
3536
+ }, {
3537
+ kind: "inspect-base-transaction";
3538
+ transactionHash: string;
3539
+ operation: string;
3540
+ }>]>>;
3541
+ }, "strict", z.ZodTypeAny, {
3542
+ message: string;
3543
+ code: "ORACLE_UNSUPPORTED_CURRENCY" | "ORACLE_READ_FAILED" | "UNSUPPORTED_PLATFORM" | "UNSUPPORTED_PLATFORM_CURRENCY" | "AMOUNT_BELOW_MINIMUM" | "INVALID_INTENT_AMOUNT_RANGE" | "ACTIVE_INTENT_BLOCKS_WITHDRAWAL" | "NOTHING_TO_WITHDRAW" | "INSUFFICIENT_AVAILABLE_FUNDS" | "INSUFFICIENT_TOKEN_BALANCE" | "ORDER_NOT_ACTIVE" | "INVALID_DEPOSIT_ID" | "ESCROW_PAUSED" | "INDEXER_LAG" | "INDEXER_UNAVAILABLE" | "ORDER_NOT_FOUND" | "PAYEE_REGISTRATION_FAILED" | "PAYEE_VERIFICATION_REQUIRED" | "SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE" | "SOURCE_RECIPIENT_MISMATCH" | "SOURCE_CAPABILITIES_FAILED" | "SOURCE_QUOTE_FAILED" | "SOURCE_EXECUTION_FAILED" | "SOURCE_STATUS_FAILED" | "SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED" | "SOURCE_CASHOUT_SUBMISSION_UNKNOWN" | "SOURCE_CASHOUT_STATUS_UNKNOWN" | "DEPOSIT_RESOLUTION_FAILED" | "ALLOWANCE_NOT_VISIBLE" | "SIGNER_REQUIRED" | "SIGNER_CHAIN_MISMATCH" | "SIGNER_CHAIN_UNAVAILABLE" | "WATCH_TIMEOUT" | "TRANSACTION_FAILED" | "TRANSACTION_SUBMISSION_UNKNOWN" | "TRANSACTION_STATUS_UNKNOWN";
3544
+ retryable: boolean;
3545
+ remediation: string;
3546
+ recovery?: {
3547
+ amount: string;
3548
+ kind: "retry-base-usdc-cashout";
3549
+ txHashes: string[];
3550
+ transactions?: {
3551
+ destination: {
3552
+ chainId: number;
3553
+ hash: string;
3554
+ isBatchTx?: boolean | undefined;
3555
+ }[];
3556
+ origin: {
3557
+ chainId: number;
3558
+ hash: string;
3559
+ isBatchTx?: boolean | undefined;
3560
+ }[];
3561
+ } | undefined;
3562
+ requestId?: string | undefined;
3563
+ } | {
3564
+ amount: string;
3565
+ kind: "inspect-base-cashout-transaction";
3566
+ txHashes: string[];
3567
+ depositTxHash: string;
3568
+ transactions?: {
3569
+ destination: {
3570
+ chainId: number;
3571
+ hash: string;
3572
+ isBatchTx?: boolean | undefined;
3573
+ }[];
3574
+ origin: {
3575
+ chainId: number;
3576
+ hash: string;
3577
+ isBatchTx?: boolean | undefined;
3578
+ }[];
3579
+ } | undefined;
3580
+ requestId?: string | undefined;
3581
+ } | {
3582
+ amount: string;
3583
+ depositor: string;
3584
+ kind: "inspect-base-cashout-submission";
3585
+ txHashes: string[];
3586
+ transactions?: {
3587
+ destination: {
3588
+ chainId: number;
3589
+ hash: string;
3590
+ isBatchTx?: boolean | undefined;
3591
+ }[];
3592
+ origin: {
3593
+ chainId: number;
3594
+ hash: string;
3595
+ isBatchTx?: boolean | undefined;
3596
+ }[];
3597
+ } | undefined;
3598
+ requestId?: string | undefined;
3599
+ } | {
3600
+ kind: "inspect-relay-route";
3601
+ txHashes: string[];
3602
+ transactions?: {
3603
+ destination: {
3604
+ chainId: number;
3605
+ hash: string;
3606
+ isBatchTx?: boolean | undefined;
3607
+ }[];
3608
+ origin: {
3609
+ chainId: number;
3610
+ hash: string;
3611
+ isBatchTx?: boolean | undefined;
3612
+ }[];
3613
+ } | undefined;
3614
+ requestId?: string | undefined;
3615
+ } | {
3616
+ kind: "inspect-base-operation-submission";
3617
+ operation: string;
3618
+ } | {
3619
+ kind: "inspect-base-transaction";
3620
+ transactionHash: string;
3621
+ operation: string;
3622
+ } | undefined;
3623
+ }, {
3624
+ message: string;
3625
+ code: "ORACLE_UNSUPPORTED_CURRENCY" | "ORACLE_READ_FAILED" | "UNSUPPORTED_PLATFORM" | "UNSUPPORTED_PLATFORM_CURRENCY" | "AMOUNT_BELOW_MINIMUM" | "INVALID_INTENT_AMOUNT_RANGE" | "ACTIVE_INTENT_BLOCKS_WITHDRAWAL" | "NOTHING_TO_WITHDRAW" | "INSUFFICIENT_AVAILABLE_FUNDS" | "INSUFFICIENT_TOKEN_BALANCE" | "ORDER_NOT_ACTIVE" | "INVALID_DEPOSIT_ID" | "ESCROW_PAUSED" | "INDEXER_LAG" | "INDEXER_UNAVAILABLE" | "ORDER_NOT_FOUND" | "PAYEE_REGISTRATION_FAILED" | "PAYEE_VERIFICATION_REQUIRED" | "SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE" | "SOURCE_RECIPIENT_MISMATCH" | "SOURCE_CAPABILITIES_FAILED" | "SOURCE_QUOTE_FAILED" | "SOURCE_EXECUTION_FAILED" | "SOURCE_STATUS_FAILED" | "SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED" | "SOURCE_CASHOUT_SUBMISSION_UNKNOWN" | "SOURCE_CASHOUT_STATUS_UNKNOWN" | "DEPOSIT_RESOLUTION_FAILED" | "ALLOWANCE_NOT_VISIBLE" | "SIGNER_REQUIRED" | "SIGNER_CHAIN_MISMATCH" | "SIGNER_CHAIN_UNAVAILABLE" | "WATCH_TIMEOUT" | "TRANSACTION_FAILED" | "TRANSACTION_SUBMISSION_UNKNOWN" | "TRANSACTION_STATUS_UNKNOWN";
3626
+ retryable: boolean;
3627
+ remediation: string;
3628
+ recovery?: {
3629
+ amount: string;
3630
+ kind: "retry-base-usdc-cashout";
3631
+ txHashes: string[];
3632
+ transactions?: {
3633
+ destination: {
3634
+ chainId: number;
3635
+ hash: string;
3636
+ isBatchTx?: boolean | undefined;
3637
+ }[];
3638
+ origin: {
3639
+ chainId: number;
3640
+ hash: string;
3641
+ isBatchTx?: boolean | undefined;
3642
+ }[];
3643
+ } | undefined;
3644
+ requestId?: string | undefined;
3645
+ } | {
3646
+ amount: string;
3647
+ kind: "inspect-base-cashout-transaction";
3648
+ txHashes: string[];
3649
+ depositTxHash: string;
3650
+ transactions?: {
3651
+ destination: {
3652
+ chainId: number;
3653
+ hash: string;
3654
+ isBatchTx?: boolean | undefined;
3655
+ }[];
3656
+ origin: {
3657
+ chainId: number;
3658
+ hash: string;
3659
+ isBatchTx?: boolean | undefined;
3660
+ }[];
3661
+ } | undefined;
3662
+ requestId?: string | undefined;
3663
+ } | {
3664
+ amount: string;
3665
+ depositor: string;
3666
+ kind: "inspect-base-cashout-submission";
3667
+ txHashes: string[];
3668
+ transactions?: {
3669
+ destination: {
3670
+ chainId: number;
3671
+ hash: string;
3672
+ isBatchTx?: boolean | undefined;
3673
+ }[];
3674
+ origin: {
3675
+ chainId: number;
3676
+ hash: string;
3677
+ isBatchTx?: boolean | undefined;
3678
+ }[];
3679
+ } | undefined;
3680
+ requestId?: string | undefined;
3681
+ } | {
3682
+ kind: "inspect-relay-route";
3683
+ txHashes: string[];
3684
+ transactions?: {
3685
+ destination: {
3686
+ chainId: number;
3687
+ hash: string;
3688
+ isBatchTx?: boolean | undefined;
3689
+ }[];
3690
+ origin: {
3691
+ chainId: number;
3692
+ hash: string;
3693
+ isBatchTx?: boolean | undefined;
3694
+ }[];
3695
+ } | undefined;
3696
+ requestId?: string | undefined;
3697
+ } | {
3698
+ kind: "inspect-base-operation-submission";
3699
+ operation: string;
3700
+ } | {
3701
+ kind: "inspect-base-transaction";
3702
+ transactionHash: string;
3703
+ operation: string;
3704
+ } | undefined;
2070
3705
  }>;
2071
3706
  type CashOrderJson = z.infer<typeof cashOrderJsonSchema>;
2072
3707
  type CashFillJson = z.infer<typeof cashFillJsonSchema>;
@@ -2080,6 +3715,16 @@ type CashPreparedStepJson = z.infer<typeof cashPreparedStepJsonSchema>;
2080
3715
  type CashPayoutInfoJson = z.infer<typeof cashPayoutInfoJsonSchema>;
2081
3716
  type CashBuyerProfileJson = z.infer<typeof cashBuyerProfileJsonSchema>;
2082
3717
  type CashCapabilitiesJson = z.infer<typeof cashCapabilitiesJsonSchema>;
3718
+ type RelayTransactionJson = z.infer<typeof relayTransactionJsonSchema>;
3719
+ type RelayTransactionsJson = z.infer<typeof relayTransactionsJsonSchema>;
3720
+ type CashAssetJson = z.infer<typeof cashAssetJsonSchema>;
3721
+ type CashChainJson = z.infer<typeof cashChainJsonSchema>;
3722
+ type CashSourceCapabilitiesJson = z.infer<typeof cashSourceCapabilitiesJsonSchema>;
3723
+ type RelayQuoteJson = z.infer<typeof relayQuoteJsonSchema>;
3724
+ type RelayStatusJson = z.infer<typeof relayStatusJsonSchema>;
3725
+ type RelayExecutionResultJson = z.infer<typeof relayExecutionResultJsonSchema>;
3726
+ type CashErrorRecoveryJson = z.infer<typeof cashErrorRecoveryJsonSchema>;
3727
+ type CashErrorJson = z.infer<typeof cashErrorJsonSchema>;
2083
3728
 
2084
3729
  /**
2085
3730
  * JSON codecs - lossless (de)serialization for every wire type. bigints encode
@@ -2088,11 +3733,19 @@ type CashCapabilitiesJson = z.infer<typeof cashCapabilitiesJsonSchema>;
2088
3733
  */
2089
3734
 
2090
3735
  declare function fillToJson(fill: CashFill): CashFillJson;
2091
- declare function fillFromJson(json: CashFillJson): CashFill;
3736
+ declare function fillFromJson(json: unknown): CashFill;
2092
3737
  declare function orderToJson(order: CashOrder): CashOrderJson;
2093
3738
  declare function orderFromJson(json: unknown): CashOrder;
2094
3739
  declare function estimateToJson(estimate: CashEstimate): CashEstimateJson;
2095
3740
  declare function estimateFromJson(json: unknown): CashEstimate;
3741
+ declare function relayQuoteToJson(quote: RelayQuote): RelayQuoteJson;
3742
+ declare function relayQuoteFromJson(json: unknown): RelayQuote;
3743
+ declare function sourceCapabilitiesToJson(capabilities: CashSourceCapabilities): CashSourceCapabilitiesJson;
3744
+ declare function sourceCapabilitiesFromJson(json: unknown): CashSourceCapabilities;
3745
+ declare function relayStatusToJson(status: RelayStatus): RelayStatusJson;
3746
+ declare function relayStatusFromJson(json: unknown): RelayStatus;
3747
+ declare function relayExecutionResultToJson(result: RelayExecutionResult): RelayExecutionResultJson;
3748
+ declare function relayExecutionResultFromJson(json: unknown): RelayExecutionResult;
2096
3749
  declare function preparedTxToJson(tx: PreparedTransaction): PreparedTransactionJson;
2097
3750
  declare function preparedTxFromJson(json: unknown): PreparedTransaction;
2098
3751
  declare function preparedStepToJson(step: CashPreparedStep): CashPreparedStepJson;
@@ -2109,5 +3762,7 @@ declare function topUpResultToJson(result: TopUpResult): TopUpResultJson;
2109
3762
  declare function topUpResultFromJson(json: unknown): TopUpResult;
2110
3763
  declare function capabilitiesToJson(caps: CashCapabilities): CashCapabilitiesJson;
2111
3764
  declare function capabilitiesFromJson(json: unknown): CashCapabilities;
3765
+ declare function cashErrorToJson(error: CashErrorShape): CashErrorJson;
3766
+ declare function cashErrorFromJson(json: unknown): CashError;
2112
3767
 
2113
- export { BASE_CHAIN_ID, BASE_USDC_ADDRESS, CASH_ORDER_POLL_INTERVAL_MS, CASH_ORDER_STATUSES, CASH_RETAIN_ON_EMPTY, CashBuyerProfile, type CashBuyerProfileJson, CashCapabilities, type CashCapabilitiesJson, CashDepositInput, CashError, type CashErrorCode, type CashErrorShape, CashEstimate, type CashEstimateJson, CashFill, type CashFillJson, CashOrder, type CashOrderData, type CashOrderJson, CashPayoutInfo, type CashPayoutInfoJson, CashPreparedStep, type CashPreparedStepJson, CashoutResult, type CashoutResultJson, type DeriveCashOrderOptions, MARKET_SPREAD_BPS, type MethodCurrencyLike, ORACLE_MIN_CONVERSION_RATE_SENTINEL, type PaymentMethodLike, PrepareResult, type PrepareResultJson, type PreparedTransactionJson, RATE_PRECISION, type ResolvedCashDeposit, TopUpResult, type TopUpResultJson, USDC_DECIMALS, WithdrawResult, type WithdrawResultJson, bigintString, buildIntentAmountRange, buildMarketRateCurrencyOverride, buyerProfileFromJson, buyerProfileToJson, capabilitiesFromJson, capabilitiesToJson, cashBuyerProfileJsonSchema, cashCapabilitiesJsonSchema, cashErrorJsonSchema, cashEstimateJsonSchema, cashFillJsonSchema, cashNextActionSchema, cashOrderJsonSchema, cashOrderStateSchema, cashPayoutInfoJsonSchema, cashPayoutPricingJsonSchema, cashPreparedStepJsonSchema, cashoutResultFromJson, cashoutResultJsonSchema, cashoutResultToJson, centsToNumber, deriveBuyerProfile, deriveCashOrder, derivePayouts, errors, estimateFromJson, estimateToJson, explainOrder, fiatFromUsdc, fiatToNumber, fillFromJson, fillToJson, formatUsdc, intentStatusSchema, isCashError, isFillLive, isMarketRateSupported, orderFromJson, orderToJson, parseCompositeDepositId, prepareCashDepositParams, prepareResultFromJson, prepareResultJsonSchema, prepareResultToJson, preparedStepFromJson, preparedStepToJson, preparedTransactionJsonSchema, preparedTxFromJson, preparedTxToJson, rateToNumber, resolveCashDepositId, topUpResultFromJson, topUpResultJsonSchema, topUpResultToJson, usdc, withExplain, withdrawResultFromJson, withdrawResultJsonSchema, withdrawResultToJson };
3768
+ export { BASE_CHAIN_ID, BASE_USDC_ADDRESS, CASH_ORDER_POLL_INTERVAL_MS, CASH_ORDER_STATUSES, CASH_RETAIN_ON_EMPTY, type CashAssetJson, CashBuyerProfile, type CashBuyerProfileJson, CashCapabilities, type CashCapabilitiesJson, type CashChainJson, CashDepositInput, CashError, type CashErrorCode, type CashErrorJson, type CashErrorRecovery, type CashErrorRecoveryJson, type CashErrorShape, CashEstimate, type CashEstimateJson, CashFill, type CashFillJson, CashOrder, type CashOrderData, type CashOrderJson, CashPayoutInfo, type CashPayoutInfoJson, CashPreparedStep, type CashPreparedStepJson, CashSourceCapabilities, type CashSourceCapabilitiesJson, CashoutResult, type CashoutResultJson, type DeriveCashOrderOptions, MARKET_SPREAD_BPS, type MethodCurrencyLike, ORACLE_MIN_CONVERSION_RATE_SENTINEL, type PaymentMethodLike, PrepareResult, type PrepareResultJson, type PreparedTransactionJson, RATE_PRECISION, RelayExecutionResult, type RelayExecutionResultJson, RelayQuote, type RelayQuoteJson, RelayStatus, type RelayStatusJson, type RelayTransactionJson, type RelayTransactionsJson, type ResolvedCashDeposit, TopUpResult, type TopUpResultJson, USDC_DECIMALS, WithdrawResult, type WithdrawResultJson, bigintString, buildIntentAmountRange, buildMarketRateCurrencyOverride, buyerProfileFromJson, buyerProfileToJson, capabilitiesFromJson, capabilitiesToJson, cashAssetJsonSchema, cashBuyerProfileJsonSchema, cashCapabilitiesJsonSchema, cashChainJsonSchema, cashErrorFromJson, cashErrorJsonSchema, cashErrorRecoveryJsonSchema, cashErrorToJson, cashEstimateJsonSchema, cashFillJsonSchema, cashNextActionSchema, cashOrderJsonSchema, cashOrderStateSchema, cashPayoutInfoJsonSchema, cashPayoutPricingJsonSchema, cashPreparedStepJsonSchema, cashSourceCapabilitiesJsonSchema, cashoutResultFromJson, cashoutResultJsonSchema, cashoutResultToJson, centsToNumber, deriveBuyerProfile, deriveCashOrder, derivePayouts, errors, estimateFromJson, estimateToJson, explainOrder, fiatFromUsdc, fiatToNumber, fillFromJson, fillToJson, formatUsdc, intentStatusSchema, isCashError, isFillLive, isMarketRateSupported, nonNegativeBigintString, orderFromJson, orderToJson, parseCompositeDepositId, prepareCashDepositParams, prepareResultFromJson, prepareResultJsonSchema, prepareResultToJson, preparedStepFromJson, preparedStepToJson, preparedTransactionJsonSchema, preparedTxFromJson, preparedTxToJson, rateToNumber, relayExecutionResultFromJson, relayExecutionResultJsonSchema, relayExecutionResultToJson, relayQuoteFromJson, relayQuoteJsonSchema, relayQuoteToJson, relayStatusFromJson, relayStatusJsonSchema, relayStatusToJson, relayTransactionJsonSchema, relayTransactionsJsonSchema, resolveCashDepositId, sourceCapabilitiesFromJson, sourceCapabilitiesToJson, topUpResultFromJson, topUpResultJsonSchema, topUpResultToJson, usdc, withExplain, withdrawResultFromJson, withdrawResultJsonSchema, withdrawResultToJson };