@zkp2p/cash 0.1.3 → 0.1.4
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/AGENTS.md +89 -26
- package/README.md +66 -24
- package/dist/chunk-P3KYZ2FX.js +373 -0
- package/dist/{createCashClient-iHuGgjH_.d.cts → createCashClient-BbkfxILl.d.cts} +37 -8
- package/dist/{createCashClient-iHuGgjH_.d.ts → createCashClient-BbkfxILl.d.ts} +37 -8
- package/dist/index.cjs +1081 -245
- package/dist/index.d.cts +1554 -74
- package/dist/index.d.ts +1554 -74
- package/dist/index.js +868 -239
- package/dist/react.cjs +239 -59
- package/dist/react.d.cts +6 -4
- package/dist/react.d.ts +6 -4
- package/dist/react.js +236 -59
- package/dist/tools.cjs +36 -36
- package/dist/tools.d.cts +282 -3
- package/dist/tools.d.ts +282 -3
- package/dist/tools.js +36 -36
- package/docs/lifecycle-and-recovery.md +278 -0
- package/examples/agent-tool-use.ts +122 -0
- package/examples/node-cashout.ts +79 -0
- package/llms.txt +23 -5
- package/package.json +51 -21
- package/skills/peer-cash-integration/SKILL.md +79 -17
- package/dist/chunk-FKVPZVFH.js +0 -188
- package/dist/chunk-FKVPZVFH.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/react.cjs.map +0 -1
- package/dist/react.js.map +0 -1
- package/dist/tools.cjs.map +0 -1
- package/dist/tools.js.map +0 -1
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-
|
|
2
|
-
export {
|
|
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-BbkfxILl.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-BbkfxILl.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,56 @@ 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
|
+
}>;
|
|
31
|
+
destination: Array<{
|
|
32
|
+
hash: string;
|
|
33
|
+
chainId: number;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
type CashErrorRecovery = (CashSourceRecoveryBase & {
|
|
38
|
+
kind: 'retry-base-usdc-cashout';
|
|
39
|
+
}) | (CashSourceRecoveryBase & {
|
|
40
|
+
kind: 'inspect-base-cashout-transaction';
|
|
41
|
+
depositTxHash: string;
|
|
42
|
+
}) | (CashSourceRecoveryBase & {
|
|
43
|
+
kind: 'inspect-base-cashout-submission';
|
|
44
|
+
depositor: string;
|
|
45
|
+
}) | {
|
|
46
|
+
kind: 'inspect-relay-route';
|
|
47
|
+
requestId?: string;
|
|
48
|
+
txHashes: string[];
|
|
49
|
+
transactions?: CashSourceRecoveryBase['transactions'];
|
|
50
|
+
} | {
|
|
51
|
+
kind: 'inspect-base-operation-submission';
|
|
52
|
+
operation: string;
|
|
53
|
+
} | {
|
|
54
|
+
kind: 'inspect-base-transaction';
|
|
55
|
+
transactionHash: string;
|
|
56
|
+
operation: string;
|
|
57
|
+
};
|
|
20
58
|
declare class CashError extends Error implements CashErrorShape {
|
|
21
59
|
readonly code: CashErrorCode;
|
|
22
60
|
readonly retryable: boolean;
|
|
23
61
|
readonly remediation: string;
|
|
62
|
+
readonly recovery?: CashErrorRecovery;
|
|
24
63
|
constructor(shape: CashErrorShape, options?: {
|
|
25
64
|
cause?: unknown;
|
|
26
65
|
});
|
|
@@ -31,23 +70,59 @@ declare function isCashError(value: unknown): value is CashError;
|
|
|
31
70
|
/** Factory helpers keep call sites one-liners and remediation copy consistent. */
|
|
32
71
|
declare const errors: {
|
|
33
72
|
oracleUnsupportedCurrency: (currency: string) => CashError;
|
|
73
|
+
oracleReadFailed: (currency: string, cause?: unknown) => CashError;
|
|
34
74
|
unsupportedPlatform: (platform: string) => CashError;
|
|
75
|
+
unsupportedPlatformCurrency: (platform: string, currency: string) => CashError;
|
|
35
76
|
amountBelowMinimum: (amount: bigint, min: bigint) => CashError;
|
|
77
|
+
invalidIntentAmountRange: (amount: bigint, min: bigint, max: bigint) => CashError;
|
|
36
78
|
activeIntentBlocksWithdrawal: (depositId: string) => CashError;
|
|
37
79
|
insufficientAvailableFunds: (depositId: string, requested: bigint, available: bigint) => CashError;
|
|
80
|
+
insufficientTokenBalance: (requiredAmount?: bigint) => CashError;
|
|
38
81
|
orderNotActive: (depositId: string) => CashError;
|
|
82
|
+
invalidDepositId: (depositId: string, cause?: unknown) => CashError;
|
|
39
83
|
nothingToWithdraw: (depositId: string) => CashError;
|
|
40
84
|
indexerLag: (depositId: string) => CashError;
|
|
41
85
|
orderNotFound: (depositId: string) => CashError;
|
|
86
|
+
indexerUnavailable: (operation: string, cause?: unknown) => CashError;
|
|
42
87
|
payeeRegistrationFailed: (cause: unknown) => CashError;
|
|
43
88
|
payeeVerificationRequired: (platform: string, cause?: unknown) => CashError;
|
|
44
89
|
sourceRouteUnsupportedInPrepare: () => CashError;
|
|
45
90
|
sourceRecipientMismatch: (recipient: string, owner: string) => CashError;
|
|
46
|
-
|
|
91
|
+
sourceCapabilitiesFailed: (cause?: unknown) => CashError;
|
|
92
|
+
sourceQuoteFailed: (cause?: unknown) => CashError;
|
|
93
|
+
sourceExecutionFailed: (cause?: unknown, evidence?: {
|
|
94
|
+
requestId?: string;
|
|
95
|
+
txHashes: string[];
|
|
96
|
+
transactions?: CashSourceRecoveryBase["transactions"];
|
|
97
|
+
}) => CashError;
|
|
98
|
+
sourceStatusFailed: (requestId: string, cause?: unknown) => CashError;
|
|
99
|
+
sourceRouteCompletedCashoutFailed: (source: {
|
|
100
|
+
amount: bigint;
|
|
101
|
+
requestId?: string;
|
|
102
|
+
txHashes: string[];
|
|
103
|
+
transactions?: CashSourceRecoveryBase["transactions"];
|
|
104
|
+
}, cause?: unknown) => CashError;
|
|
105
|
+
sourceCashoutSubmissionUnknown: (source: {
|
|
106
|
+
amount: bigint;
|
|
107
|
+
requestId?: string;
|
|
108
|
+
txHashes: string[];
|
|
109
|
+
transactions?: CashSourceRecoveryBase["transactions"];
|
|
110
|
+
}, depositor: string, cause?: unknown) => CashError;
|
|
111
|
+
sourceCashoutStatusUnknown: (source: {
|
|
112
|
+
amount: bigint;
|
|
113
|
+
requestId?: string;
|
|
114
|
+
txHashes: string[];
|
|
115
|
+
transactions?: CashSourceRecoveryBase["transactions"];
|
|
116
|
+
}, depositTxHash: string, cause?: unknown) => CashError;
|
|
117
|
+
allowanceNotVisible: (amount: bigint, cause?: unknown) => CashError;
|
|
47
118
|
depositResolutionFailed: (txHash: string) => CashError;
|
|
48
119
|
signerRequired: (verb: string) => CashError;
|
|
120
|
+
signerChainMismatch: (verb: string, expectedChainId: number, actualChainId: number) => CashError;
|
|
121
|
+
signerChainUnavailable: (verb: string, expectedChainId: number, cause?: unknown) => CashError;
|
|
49
122
|
watchTimeout: (depositId: string, timeoutMs: number) => CashError;
|
|
50
123
|
transactionFailed: (txHash: string, cause?: unknown) => CashError;
|
|
124
|
+
transactionSubmissionUnknown: (operation: string, cause?: unknown, recovery?: CashErrorRecovery) => CashError;
|
|
125
|
+
transactionStatusUnknown: (txHash: string, cause?: unknown, operation?: string) => CashError;
|
|
51
126
|
escrowPaused: () => CashError;
|
|
52
127
|
/** Generic fallback for an on-chain call that failed for an unrecognized reason. */
|
|
53
128
|
chainCallFailed: (verb: string, cause?: unknown) => CashError;
|
|
@@ -263,6 +338,287 @@ declare function parseCompositeDepositId(compositeId: string): {
|
|
|
263
338
|
*/
|
|
264
339
|
|
|
265
340
|
declare const bigintString: z.ZodString;
|
|
341
|
+
declare const nonNegativeBigintString: z.ZodString;
|
|
342
|
+
declare const relayTransactionJsonSchema: z.ZodObject<{
|
|
343
|
+
hash: z.ZodString;
|
|
344
|
+
chainId: z.ZodNumber;
|
|
345
|
+
}, "strip", z.ZodTypeAny, {
|
|
346
|
+
chainId: number;
|
|
347
|
+
hash: string;
|
|
348
|
+
}, {
|
|
349
|
+
chainId: number;
|
|
350
|
+
hash: string;
|
|
351
|
+
}>;
|
|
352
|
+
declare const relayTransactionsJsonSchema: z.ZodObject<{
|
|
353
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
354
|
+
hash: z.ZodString;
|
|
355
|
+
chainId: z.ZodNumber;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
chainId: number;
|
|
358
|
+
hash: string;
|
|
359
|
+
}, {
|
|
360
|
+
chainId: number;
|
|
361
|
+
hash: string;
|
|
362
|
+
}>, "many">;
|
|
363
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
364
|
+
hash: z.ZodString;
|
|
365
|
+
chainId: z.ZodNumber;
|
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
|
367
|
+
chainId: number;
|
|
368
|
+
hash: string;
|
|
369
|
+
}, {
|
|
370
|
+
chainId: number;
|
|
371
|
+
hash: string;
|
|
372
|
+
}>, "many">;
|
|
373
|
+
}, "strict", z.ZodTypeAny, {
|
|
374
|
+
destination: {
|
|
375
|
+
chainId: number;
|
|
376
|
+
hash: string;
|
|
377
|
+
}[];
|
|
378
|
+
origin: {
|
|
379
|
+
chainId: number;
|
|
380
|
+
hash: string;
|
|
381
|
+
}[];
|
|
382
|
+
}, {
|
|
383
|
+
destination: {
|
|
384
|
+
chainId: number;
|
|
385
|
+
hash: string;
|
|
386
|
+
}[];
|
|
387
|
+
origin: {
|
|
388
|
+
chainId: number;
|
|
389
|
+
hash: string;
|
|
390
|
+
}[];
|
|
391
|
+
}>;
|
|
392
|
+
declare const cashAssetJsonSchema: z.ZodObject<{
|
|
393
|
+
chainId: z.ZodNumber;
|
|
394
|
+
address: z.ZodString;
|
|
395
|
+
symbol: z.ZodString;
|
|
396
|
+
decimals: z.ZodNumber;
|
|
397
|
+
name: z.ZodOptional<z.ZodString>;
|
|
398
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
symbol: string;
|
|
401
|
+
chainId: number;
|
|
402
|
+
address: string;
|
|
403
|
+
decimals: number;
|
|
404
|
+
name?: string | undefined;
|
|
405
|
+
isNative?: boolean | undefined;
|
|
406
|
+
}, {
|
|
407
|
+
symbol: string;
|
|
408
|
+
chainId: number;
|
|
409
|
+
address: string;
|
|
410
|
+
decimals: number;
|
|
411
|
+
name?: string | undefined;
|
|
412
|
+
isNative?: boolean | undefined;
|
|
413
|
+
}>;
|
|
414
|
+
declare const cashChainJsonSchema: z.ZodObject<{
|
|
415
|
+
id: z.ZodNumber;
|
|
416
|
+
name: z.ZodString;
|
|
417
|
+
displayName: z.ZodString;
|
|
418
|
+
disabled: z.ZodBoolean;
|
|
419
|
+
depositEnabled: z.ZodBoolean;
|
|
420
|
+
blockProductionLagging: z.ZodBoolean;
|
|
421
|
+
vmType: z.ZodOptional<z.ZodString>;
|
|
422
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
423
|
+
chainId: z.ZodNumber;
|
|
424
|
+
address: z.ZodString;
|
|
425
|
+
symbol: z.ZodString;
|
|
426
|
+
decimals: z.ZodNumber;
|
|
427
|
+
name: z.ZodOptional<z.ZodString>;
|
|
428
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
symbol: string;
|
|
431
|
+
chainId: number;
|
|
432
|
+
address: string;
|
|
433
|
+
decimals: number;
|
|
434
|
+
name?: string | undefined;
|
|
435
|
+
isNative?: boolean | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
symbol: string;
|
|
438
|
+
chainId: number;
|
|
439
|
+
address: string;
|
|
440
|
+
decimals: number;
|
|
441
|
+
name?: string | undefined;
|
|
442
|
+
isNative?: boolean | undefined;
|
|
443
|
+
}>, "many">;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
id: number;
|
|
446
|
+
name: string;
|
|
447
|
+
disabled: boolean;
|
|
448
|
+
tokens: {
|
|
449
|
+
symbol: string;
|
|
450
|
+
chainId: number;
|
|
451
|
+
address: string;
|
|
452
|
+
decimals: number;
|
|
453
|
+
name?: string | undefined;
|
|
454
|
+
isNative?: boolean | undefined;
|
|
455
|
+
}[];
|
|
456
|
+
displayName: string;
|
|
457
|
+
depositEnabled: boolean;
|
|
458
|
+
blockProductionLagging: boolean;
|
|
459
|
+
vmType?: string | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
id: number;
|
|
462
|
+
name: string;
|
|
463
|
+
disabled: boolean;
|
|
464
|
+
tokens: {
|
|
465
|
+
symbol: string;
|
|
466
|
+
chainId: number;
|
|
467
|
+
address: string;
|
|
468
|
+
decimals: number;
|
|
469
|
+
name?: string | undefined;
|
|
470
|
+
isNative?: boolean | undefined;
|
|
471
|
+
}[];
|
|
472
|
+
displayName: string;
|
|
473
|
+
depositEnabled: boolean;
|
|
474
|
+
blockProductionLagging: boolean;
|
|
475
|
+
vmType?: string | undefined;
|
|
476
|
+
}>;
|
|
477
|
+
declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
|
|
478
|
+
destination: z.ZodObject<{
|
|
479
|
+
chainId: z.ZodNumber;
|
|
480
|
+
address: z.ZodString;
|
|
481
|
+
symbol: z.ZodString;
|
|
482
|
+
decimals: z.ZodNumber;
|
|
483
|
+
name: z.ZodOptional<z.ZodString>;
|
|
484
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
symbol: string;
|
|
487
|
+
chainId: number;
|
|
488
|
+
address: string;
|
|
489
|
+
decimals: number;
|
|
490
|
+
name?: string | undefined;
|
|
491
|
+
isNative?: boolean | undefined;
|
|
492
|
+
}, {
|
|
493
|
+
symbol: string;
|
|
494
|
+
chainId: number;
|
|
495
|
+
address: string;
|
|
496
|
+
decimals: number;
|
|
497
|
+
name?: string | undefined;
|
|
498
|
+
isNative?: boolean | undefined;
|
|
499
|
+
}>;
|
|
500
|
+
chains: z.ZodArray<z.ZodObject<{
|
|
501
|
+
id: z.ZodNumber;
|
|
502
|
+
name: z.ZodString;
|
|
503
|
+
displayName: z.ZodString;
|
|
504
|
+
disabled: z.ZodBoolean;
|
|
505
|
+
depositEnabled: z.ZodBoolean;
|
|
506
|
+
blockProductionLagging: z.ZodBoolean;
|
|
507
|
+
vmType: z.ZodOptional<z.ZodString>;
|
|
508
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
509
|
+
chainId: z.ZodNumber;
|
|
510
|
+
address: z.ZodString;
|
|
511
|
+
symbol: z.ZodString;
|
|
512
|
+
decimals: z.ZodNumber;
|
|
513
|
+
name: z.ZodOptional<z.ZodString>;
|
|
514
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
symbol: string;
|
|
517
|
+
chainId: number;
|
|
518
|
+
address: string;
|
|
519
|
+
decimals: number;
|
|
520
|
+
name?: string | undefined;
|
|
521
|
+
isNative?: boolean | undefined;
|
|
522
|
+
}, {
|
|
523
|
+
symbol: string;
|
|
524
|
+
chainId: number;
|
|
525
|
+
address: string;
|
|
526
|
+
decimals: number;
|
|
527
|
+
name?: string | undefined;
|
|
528
|
+
isNative?: boolean | undefined;
|
|
529
|
+
}>, "many">;
|
|
530
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
id: number;
|
|
532
|
+
name: string;
|
|
533
|
+
disabled: boolean;
|
|
534
|
+
tokens: {
|
|
535
|
+
symbol: string;
|
|
536
|
+
chainId: number;
|
|
537
|
+
address: string;
|
|
538
|
+
decimals: number;
|
|
539
|
+
name?: string | undefined;
|
|
540
|
+
isNative?: boolean | undefined;
|
|
541
|
+
}[];
|
|
542
|
+
displayName: string;
|
|
543
|
+
depositEnabled: boolean;
|
|
544
|
+
blockProductionLagging: boolean;
|
|
545
|
+
vmType?: string | undefined;
|
|
546
|
+
}, {
|
|
547
|
+
id: number;
|
|
548
|
+
name: string;
|
|
549
|
+
disabled: boolean;
|
|
550
|
+
tokens: {
|
|
551
|
+
symbol: string;
|
|
552
|
+
chainId: number;
|
|
553
|
+
address: string;
|
|
554
|
+
decimals: number;
|
|
555
|
+
name?: string | undefined;
|
|
556
|
+
isNative?: boolean | undefined;
|
|
557
|
+
}[];
|
|
558
|
+
displayName: string;
|
|
559
|
+
depositEnabled: boolean;
|
|
560
|
+
blockProductionLagging: boolean;
|
|
561
|
+
vmType?: string | undefined;
|
|
562
|
+
}>, "many">;
|
|
563
|
+
source: z.ZodLiteral<"relay-sdk">;
|
|
564
|
+
asOf: z.ZodNumber;
|
|
565
|
+
}, "strip", z.ZodTypeAny, {
|
|
566
|
+
chains: {
|
|
567
|
+
id: number;
|
|
568
|
+
name: string;
|
|
569
|
+
disabled: boolean;
|
|
570
|
+
tokens: {
|
|
571
|
+
symbol: string;
|
|
572
|
+
chainId: number;
|
|
573
|
+
address: string;
|
|
574
|
+
decimals: number;
|
|
575
|
+
name?: string | undefined;
|
|
576
|
+
isNative?: boolean | undefined;
|
|
577
|
+
}[];
|
|
578
|
+
displayName: string;
|
|
579
|
+
depositEnabled: boolean;
|
|
580
|
+
blockProductionLagging: boolean;
|
|
581
|
+
vmType?: string | undefined;
|
|
582
|
+
}[];
|
|
583
|
+
source: "relay-sdk";
|
|
584
|
+
destination: {
|
|
585
|
+
symbol: string;
|
|
586
|
+
chainId: number;
|
|
587
|
+
address: string;
|
|
588
|
+
decimals: number;
|
|
589
|
+
name?: string | undefined;
|
|
590
|
+
isNative?: boolean | undefined;
|
|
591
|
+
};
|
|
592
|
+
asOf: number;
|
|
593
|
+
}, {
|
|
594
|
+
chains: {
|
|
595
|
+
id: number;
|
|
596
|
+
name: string;
|
|
597
|
+
disabled: boolean;
|
|
598
|
+
tokens: {
|
|
599
|
+
symbol: string;
|
|
600
|
+
chainId: number;
|
|
601
|
+
address: string;
|
|
602
|
+
decimals: number;
|
|
603
|
+
name?: string | undefined;
|
|
604
|
+
isNative?: boolean | undefined;
|
|
605
|
+
}[];
|
|
606
|
+
displayName: string;
|
|
607
|
+
depositEnabled: boolean;
|
|
608
|
+
blockProductionLagging: boolean;
|
|
609
|
+
vmType?: string | undefined;
|
|
610
|
+
}[];
|
|
611
|
+
source: "relay-sdk";
|
|
612
|
+
destination: {
|
|
613
|
+
symbol: string;
|
|
614
|
+
chainId: number;
|
|
615
|
+
address: string;
|
|
616
|
+
decimals: number;
|
|
617
|
+
name?: string | undefined;
|
|
618
|
+
isNative?: boolean | undefined;
|
|
619
|
+
};
|
|
620
|
+
asOf: number;
|
|
621
|
+
}>;
|
|
266
622
|
declare const cashOrderStateSchema: z.ZodEnum<["awaiting-buyer", "matched", "delivering", "delivered", "returned"]>;
|
|
267
623
|
declare const cashNextActionSchema: z.ZodEnum<["wait", "withdraw"]>;
|
|
268
624
|
declare const intentStatusSchema: z.ZodEnum<["SIGNALED", "FULFILLED", "PRUNED", "MANUALLY_RELEASED"]>;
|
|
@@ -792,7 +1148,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
792
1148
|
}>, "many">;
|
|
793
1149
|
raw: z.ZodUnknown;
|
|
794
1150
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
-
|
|
1151
|
+
source: {
|
|
796
1152
|
symbol: string;
|
|
797
1153
|
chainId: number;
|
|
798
1154
|
address: string;
|
|
@@ -800,7 +1156,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
800
1156
|
name?: string | undefined;
|
|
801
1157
|
isNative?: boolean | undefined;
|
|
802
1158
|
};
|
|
803
|
-
|
|
1159
|
+
destination: {
|
|
804
1160
|
symbol: string;
|
|
805
1161
|
chainId: number;
|
|
806
1162
|
address: string;
|
|
@@ -816,13 +1172,13 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
816
1172
|
}[];
|
|
817
1173
|
inputAmount: string;
|
|
818
1174
|
outputAmount: string;
|
|
819
|
-
rate?: number | undefined;
|
|
820
1175
|
requestId?: string | undefined;
|
|
821
|
-
timeEstimateSeconds?: number | undefined;
|
|
822
1176
|
fees?: unknown;
|
|
1177
|
+
rate?: number | undefined;
|
|
1178
|
+
timeEstimateSeconds?: number | undefined;
|
|
823
1179
|
raw?: unknown;
|
|
824
1180
|
}, {
|
|
825
|
-
|
|
1181
|
+
source: {
|
|
826
1182
|
symbol: string;
|
|
827
1183
|
chainId: number;
|
|
828
1184
|
address: string;
|
|
@@ -830,7 +1186,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
830
1186
|
name?: string | undefined;
|
|
831
1187
|
isNative?: boolean | undefined;
|
|
832
1188
|
};
|
|
833
|
-
|
|
1189
|
+
destination: {
|
|
834
1190
|
symbol: string;
|
|
835
1191
|
chainId: number;
|
|
836
1192
|
address: string;
|
|
@@ -846,10 +1202,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
846
1202
|
}[];
|
|
847
1203
|
inputAmount: string;
|
|
848
1204
|
outputAmount: string;
|
|
849
|
-
rate?: number | undefined;
|
|
850
1205
|
requestId?: string | undefined;
|
|
851
|
-
timeEstimateSeconds?: number | undefined;
|
|
852
1206
|
fees?: unknown;
|
|
1207
|
+
rate?: number | undefined;
|
|
1208
|
+
timeEstimateSeconds?: number | undefined;
|
|
853
1209
|
raw?: unknown;
|
|
854
1210
|
}>;
|
|
855
1211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -864,7 +1220,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
864
1220
|
};
|
|
865
1221
|
inputAmount: string;
|
|
866
1222
|
relayQuote: {
|
|
867
|
-
|
|
1223
|
+
source: {
|
|
868
1224
|
symbol: string;
|
|
869
1225
|
chainId: number;
|
|
870
1226
|
address: string;
|
|
@@ -872,7 +1228,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
872
1228
|
name?: string | undefined;
|
|
873
1229
|
isNative?: boolean | undefined;
|
|
874
1230
|
};
|
|
875
|
-
|
|
1231
|
+
destination: {
|
|
876
1232
|
symbol: string;
|
|
877
1233
|
chainId: number;
|
|
878
1234
|
address: string;
|
|
@@ -888,10 +1244,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
888
1244
|
}[];
|
|
889
1245
|
inputAmount: string;
|
|
890
1246
|
outputAmount: string;
|
|
891
|
-
rate?: number | undefined;
|
|
892
1247
|
requestId?: string | undefined;
|
|
893
|
-
timeEstimateSeconds?: number | undefined;
|
|
894
1248
|
fees?: unknown;
|
|
1249
|
+
rate?: number | undefined;
|
|
1250
|
+
timeEstimateSeconds?: number | undefined;
|
|
895
1251
|
raw?: unknown;
|
|
896
1252
|
};
|
|
897
1253
|
}, {
|
|
@@ -906,7 +1262,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
906
1262
|
};
|
|
907
1263
|
inputAmount: string;
|
|
908
1264
|
relayQuote: {
|
|
909
|
-
|
|
1265
|
+
source: {
|
|
910
1266
|
symbol: string;
|
|
911
1267
|
chainId: number;
|
|
912
1268
|
address: string;
|
|
@@ -914,7 +1270,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
914
1270
|
name?: string | undefined;
|
|
915
1271
|
isNative?: boolean | undefined;
|
|
916
1272
|
};
|
|
917
|
-
|
|
1273
|
+
destination: {
|
|
918
1274
|
symbol: string;
|
|
919
1275
|
chainId: number;
|
|
920
1276
|
address: string;
|
|
@@ -930,10 +1286,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
930
1286
|
}[];
|
|
931
1287
|
inputAmount: string;
|
|
932
1288
|
outputAmount: string;
|
|
933
|
-
rate?: number | undefined;
|
|
934
1289
|
requestId?: string | undefined;
|
|
935
|
-
timeEstimateSeconds?: number | undefined;
|
|
936
1290
|
fees?: unknown;
|
|
1291
|
+
rate?: number | undefined;
|
|
1292
|
+
timeEstimateSeconds?: number | undefined;
|
|
937
1293
|
raw?: unknown;
|
|
938
1294
|
};
|
|
939
1295
|
}>>;
|
|
@@ -966,7 +1322,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
966
1322
|
};
|
|
967
1323
|
inputAmount: string;
|
|
968
1324
|
relayQuote: {
|
|
969
|
-
|
|
1325
|
+
source: {
|
|
970
1326
|
symbol: string;
|
|
971
1327
|
chainId: number;
|
|
972
1328
|
address: string;
|
|
@@ -974,7 +1330,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
974
1330
|
name?: string | undefined;
|
|
975
1331
|
isNative?: boolean | undefined;
|
|
976
1332
|
};
|
|
977
|
-
|
|
1333
|
+
destination: {
|
|
978
1334
|
symbol: string;
|
|
979
1335
|
chainId: number;
|
|
980
1336
|
address: string;
|
|
@@ -990,10 +1346,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
990
1346
|
}[];
|
|
991
1347
|
inputAmount: string;
|
|
992
1348
|
outputAmount: string;
|
|
993
|
-
rate?: number | undefined;
|
|
994
1349
|
requestId?: string | undefined;
|
|
995
|
-
timeEstimateSeconds?: number | undefined;
|
|
996
1350
|
fees?: unknown;
|
|
1351
|
+
rate?: number | undefined;
|
|
1352
|
+
timeEstimateSeconds?: number | undefined;
|
|
997
1353
|
raw?: unknown;
|
|
998
1354
|
};
|
|
999
1355
|
} | undefined;
|
|
@@ -1022,7 +1378,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
1022
1378
|
};
|
|
1023
1379
|
inputAmount: string;
|
|
1024
1380
|
relayQuote: {
|
|
1025
|
-
|
|
1381
|
+
source: {
|
|
1026
1382
|
symbol: string;
|
|
1027
1383
|
chainId: number;
|
|
1028
1384
|
address: string;
|
|
@@ -1030,7 +1386,7 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
1030
1386
|
name?: string | undefined;
|
|
1031
1387
|
isNative?: boolean | undefined;
|
|
1032
1388
|
};
|
|
1033
|
-
|
|
1389
|
+
destination: {
|
|
1034
1390
|
symbol: string;
|
|
1035
1391
|
chainId: number;
|
|
1036
1392
|
address: string;
|
|
@@ -1046,10 +1402,10 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
1046
1402
|
}[];
|
|
1047
1403
|
inputAmount: string;
|
|
1048
1404
|
outputAmount: string;
|
|
1049
|
-
rate?: number | undefined;
|
|
1050
1405
|
requestId?: string | undefined;
|
|
1051
|
-
timeEstimateSeconds?: number | undefined;
|
|
1052
1406
|
fees?: unknown;
|
|
1407
|
+
rate?: number | undefined;
|
|
1408
|
+
timeEstimateSeconds?: number | undefined;
|
|
1053
1409
|
raw?: unknown;
|
|
1054
1410
|
};
|
|
1055
1411
|
} | undefined;
|
|
@@ -1076,15 +1432,251 @@ declare const preparedTransactionJsonSchema: z.ZodObject<{
|
|
|
1076
1432
|
to: string;
|
|
1077
1433
|
value: string;
|
|
1078
1434
|
}>;
|
|
1079
|
-
declare const
|
|
1080
|
-
|
|
1081
|
-
|
|
1435
|
+
declare const relayQuoteJsonSchema: z.ZodObject<{
|
|
1436
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
source: z.ZodObject<{
|
|
1438
|
+
chainId: z.ZodNumber;
|
|
1439
|
+
address: z.ZodString;
|
|
1440
|
+
symbol: z.ZodString;
|
|
1441
|
+
decimals: z.ZodNumber;
|
|
1442
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
symbol: string;
|
|
1446
|
+
chainId: number;
|
|
1447
|
+
address: string;
|
|
1448
|
+
decimals: number;
|
|
1449
|
+
name?: string | undefined;
|
|
1450
|
+
isNative?: boolean | undefined;
|
|
1451
|
+
}, {
|
|
1452
|
+
symbol: string;
|
|
1453
|
+
chainId: number;
|
|
1454
|
+
address: string;
|
|
1455
|
+
decimals: number;
|
|
1456
|
+
name?: string | undefined;
|
|
1457
|
+
isNative?: boolean | undefined;
|
|
1458
|
+
}>;
|
|
1459
|
+
destination: z.ZodObject<{
|
|
1460
|
+
chainId: z.ZodNumber;
|
|
1461
|
+
address: z.ZodString;
|
|
1462
|
+
symbol: z.ZodString;
|
|
1463
|
+
decimals: z.ZodNumber;
|
|
1464
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1465
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
1466
|
+
}, "strip", z.ZodTypeAny, {
|
|
1467
|
+
symbol: string;
|
|
1468
|
+
chainId: number;
|
|
1469
|
+
address: string;
|
|
1470
|
+
decimals: number;
|
|
1471
|
+
name?: string | undefined;
|
|
1472
|
+
isNative?: boolean | undefined;
|
|
1473
|
+
}, {
|
|
1474
|
+
symbol: string;
|
|
1475
|
+
chainId: number;
|
|
1476
|
+
address: string;
|
|
1477
|
+
decimals: number;
|
|
1478
|
+
name?: string | undefined;
|
|
1479
|
+
isNative?: boolean | undefined;
|
|
1480
|
+
}>;
|
|
1481
|
+
inputAmount: z.ZodString;
|
|
1482
|
+
outputAmount: z.ZodString;
|
|
1483
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
1484
|
+
timeEstimateSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1485
|
+
fees: z.ZodOptional<z.ZodUnknown>;
|
|
1486
|
+
txs: z.ZodArray<z.ZodObject<{
|
|
1487
|
+
to: z.ZodString;
|
|
1488
|
+
data: z.ZodString;
|
|
1489
|
+
value: z.ZodString;
|
|
1490
|
+
chainId: z.ZodNumber;
|
|
1491
|
+
}, "strip", z.ZodTypeAny, {
|
|
1492
|
+
chainId: number;
|
|
1493
|
+
data: string;
|
|
1494
|
+
to: string;
|
|
1495
|
+
value: string;
|
|
1496
|
+
}, {
|
|
1497
|
+
chainId: number;
|
|
1498
|
+
data: string;
|
|
1499
|
+
to: string;
|
|
1500
|
+
value: string;
|
|
1501
|
+
}>, "many">;
|
|
1502
|
+
raw: z.ZodUnknown;
|
|
1082
1503
|
}, "strip", z.ZodTypeAny, {
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1504
|
+
source: {
|
|
1505
|
+
symbol: string;
|
|
1506
|
+
chainId: number;
|
|
1507
|
+
address: string;
|
|
1508
|
+
decimals: number;
|
|
1509
|
+
name?: string | undefined;
|
|
1510
|
+
isNative?: boolean | undefined;
|
|
1511
|
+
};
|
|
1512
|
+
destination: {
|
|
1513
|
+
symbol: string;
|
|
1514
|
+
chainId: number;
|
|
1515
|
+
address: string;
|
|
1516
|
+
decimals: number;
|
|
1517
|
+
name?: string | undefined;
|
|
1518
|
+
isNative?: boolean | undefined;
|
|
1519
|
+
};
|
|
1520
|
+
txs: {
|
|
1521
|
+
chainId: number;
|
|
1522
|
+
data: string;
|
|
1523
|
+
to: string;
|
|
1524
|
+
value: string;
|
|
1525
|
+
}[];
|
|
1526
|
+
inputAmount: string;
|
|
1527
|
+
outputAmount: string;
|
|
1528
|
+
requestId?: string | undefined;
|
|
1529
|
+
fees?: unknown;
|
|
1530
|
+
rate?: number | undefined;
|
|
1531
|
+
timeEstimateSeconds?: number | undefined;
|
|
1532
|
+
raw?: unknown;
|
|
1533
|
+
}, {
|
|
1534
|
+
source: {
|
|
1535
|
+
symbol: string;
|
|
1536
|
+
chainId: number;
|
|
1537
|
+
address: string;
|
|
1538
|
+
decimals: number;
|
|
1539
|
+
name?: string | undefined;
|
|
1540
|
+
isNative?: boolean | undefined;
|
|
1541
|
+
};
|
|
1542
|
+
destination: {
|
|
1543
|
+
symbol: string;
|
|
1544
|
+
chainId: number;
|
|
1545
|
+
address: string;
|
|
1546
|
+
decimals: number;
|
|
1547
|
+
name?: string | undefined;
|
|
1548
|
+
isNative?: boolean | undefined;
|
|
1549
|
+
};
|
|
1550
|
+
txs: {
|
|
1551
|
+
chainId: number;
|
|
1552
|
+
data: string;
|
|
1553
|
+
to: string;
|
|
1554
|
+
value: string;
|
|
1555
|
+
}[];
|
|
1556
|
+
inputAmount: string;
|
|
1557
|
+
outputAmount: string;
|
|
1558
|
+
requestId?: string | undefined;
|
|
1559
|
+
fees?: unknown;
|
|
1560
|
+
rate?: number | undefined;
|
|
1561
|
+
timeEstimateSeconds?: number | undefined;
|
|
1562
|
+
raw?: unknown;
|
|
1563
|
+
}>;
|
|
1564
|
+
declare const relayStatusJsonSchema: z.ZodObject<{
|
|
1565
|
+
requestId: z.ZodString;
|
|
1566
|
+
status: z.ZodEnum<["refund", "waiting", "depositing", "failure", "pending", "submitted", "success"]>;
|
|
1567
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
inTxHashes: z.ZodArray<z.ZodString, "many">;
|
|
1569
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
1570
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
1571
|
+
originChainId: z.ZodOptional<z.ZodNumber>;
|
|
1572
|
+
destinationChainId: z.ZodOptional<z.ZodNumber>;
|
|
1573
|
+
quoteCreatedAt: z.ZodOptional<z.ZodNumber>;
|
|
1574
|
+
raw: z.ZodUnknown;
|
|
1575
|
+
}, "strip", z.ZodTypeAny, {
|
|
1576
|
+
status: "refund" | "waiting" | "depositing" | "failure" | "pending" | "submitted" | "success";
|
|
1577
|
+
requestId: string;
|
|
1578
|
+
txHashes: string[];
|
|
1579
|
+
inTxHashes: string[];
|
|
1580
|
+
updatedAt?: number | undefined;
|
|
1581
|
+
details?: string | undefined;
|
|
1582
|
+
destinationChainId?: number | undefined;
|
|
1583
|
+
originChainId?: number | undefined;
|
|
1584
|
+
raw?: unknown;
|
|
1585
|
+
quoteCreatedAt?: number | undefined;
|
|
1586
|
+
}, {
|
|
1587
|
+
status: "refund" | "waiting" | "depositing" | "failure" | "pending" | "submitted" | "success";
|
|
1588
|
+
requestId: string;
|
|
1589
|
+
txHashes: string[];
|
|
1590
|
+
inTxHashes: string[];
|
|
1591
|
+
updatedAt?: number | undefined;
|
|
1592
|
+
details?: string | undefined;
|
|
1593
|
+
destinationChainId?: number | undefined;
|
|
1594
|
+
originChainId?: number | undefined;
|
|
1595
|
+
raw?: unknown;
|
|
1596
|
+
quoteCreatedAt?: number | undefined;
|
|
1597
|
+
}>;
|
|
1598
|
+
declare const relayExecutionResultJsonSchema: z.ZodObject<{
|
|
1599
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
1601
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
1602
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
1603
|
+
hash: z.ZodString;
|
|
1604
|
+
chainId: z.ZodNumber;
|
|
1605
|
+
}, "strip", z.ZodTypeAny, {
|
|
1606
|
+
chainId: number;
|
|
1607
|
+
hash: string;
|
|
1608
|
+
}, {
|
|
1609
|
+
chainId: number;
|
|
1610
|
+
hash: string;
|
|
1611
|
+
}>, "many">;
|
|
1612
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
1613
|
+
hash: z.ZodString;
|
|
1614
|
+
chainId: z.ZodNumber;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
chainId: number;
|
|
1617
|
+
hash: string;
|
|
1618
|
+
}, {
|
|
1619
|
+
chainId: number;
|
|
1620
|
+
hash: string;
|
|
1621
|
+
}>, "many">;
|
|
1622
|
+
}, "strict", z.ZodTypeAny, {
|
|
1623
|
+
destination: {
|
|
1624
|
+
chainId: number;
|
|
1625
|
+
hash: string;
|
|
1626
|
+
}[];
|
|
1627
|
+
origin: {
|
|
1628
|
+
chainId: number;
|
|
1629
|
+
hash: string;
|
|
1630
|
+
}[];
|
|
1631
|
+
}, {
|
|
1632
|
+
destination: {
|
|
1633
|
+
chainId: number;
|
|
1634
|
+
hash: string;
|
|
1635
|
+
}[];
|
|
1636
|
+
origin: {
|
|
1637
|
+
chainId: number;
|
|
1638
|
+
hash: string;
|
|
1639
|
+
}[];
|
|
1640
|
+
}>>;
|
|
1641
|
+
quote: z.ZodUnknown;
|
|
1642
|
+
}, "strip", z.ZodTypeAny, {
|
|
1643
|
+
txHashes: string[];
|
|
1644
|
+
transactions?: {
|
|
1645
|
+
destination: {
|
|
1646
|
+
chainId: number;
|
|
1647
|
+
hash: string;
|
|
1648
|
+
}[];
|
|
1649
|
+
origin: {
|
|
1650
|
+
chainId: number;
|
|
1651
|
+
hash: string;
|
|
1652
|
+
}[];
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
requestId?: string | undefined;
|
|
1655
|
+
quote?: unknown;
|
|
1656
|
+
}, {
|
|
1657
|
+
txHashes: string[];
|
|
1658
|
+
transactions?: {
|
|
1659
|
+
destination: {
|
|
1660
|
+
chainId: number;
|
|
1661
|
+
hash: string;
|
|
1662
|
+
}[];
|
|
1663
|
+
origin: {
|
|
1664
|
+
chainId: number;
|
|
1665
|
+
hash: string;
|
|
1666
|
+
}[];
|
|
1667
|
+
} | undefined;
|
|
1668
|
+
requestId?: string | undefined;
|
|
1669
|
+
quote?: unknown;
|
|
1670
|
+
}>;
|
|
1671
|
+
declare const cashPreparedStepJsonSchema: z.ZodObject<{
|
|
1672
|
+
kind: z.ZodEnum<["approve", "createDeposit", "pruneExpiredIntents", "withdrawDeposit", "removeFunds", "addFunds"]>;
|
|
1673
|
+
description: z.ZodString;
|
|
1674
|
+
}, "strip", z.ZodTypeAny, {
|
|
1675
|
+
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1676
|
+
description: string;
|
|
1677
|
+
}, {
|
|
1678
|
+
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1679
|
+
description: string;
|
|
1088
1680
|
}>;
|
|
1089
1681
|
declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
1090
1682
|
depositId: z.ZodString;
|
|
@@ -1344,13 +1936,73 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1344
1936
|
amount: z.ZodString;
|
|
1345
1937
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1346
1938
|
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
1939
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
1940
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
1941
|
+
hash: z.ZodString;
|
|
1942
|
+
chainId: z.ZodNumber;
|
|
1943
|
+
}, "strip", z.ZodTypeAny, {
|
|
1944
|
+
chainId: number;
|
|
1945
|
+
hash: string;
|
|
1946
|
+
}, {
|
|
1947
|
+
chainId: number;
|
|
1948
|
+
hash: string;
|
|
1949
|
+
}>, "many">;
|
|
1950
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
1951
|
+
hash: z.ZodString;
|
|
1952
|
+
chainId: z.ZodNumber;
|
|
1953
|
+
}, "strip", z.ZodTypeAny, {
|
|
1954
|
+
chainId: number;
|
|
1955
|
+
hash: string;
|
|
1956
|
+
}, {
|
|
1957
|
+
chainId: number;
|
|
1958
|
+
hash: string;
|
|
1959
|
+
}>, "many">;
|
|
1960
|
+
}, "strict", z.ZodTypeAny, {
|
|
1961
|
+
destination: {
|
|
1962
|
+
chainId: number;
|
|
1963
|
+
hash: string;
|
|
1964
|
+
}[];
|
|
1965
|
+
origin: {
|
|
1966
|
+
chainId: number;
|
|
1967
|
+
hash: string;
|
|
1968
|
+
}[];
|
|
1969
|
+
}, {
|
|
1970
|
+
destination: {
|
|
1971
|
+
chainId: number;
|
|
1972
|
+
hash: string;
|
|
1973
|
+
}[];
|
|
1974
|
+
origin: {
|
|
1975
|
+
chainId: number;
|
|
1976
|
+
hash: string;
|
|
1977
|
+
}[];
|
|
1978
|
+
}>>;
|
|
1347
1979
|
}, "strip", z.ZodTypeAny, {
|
|
1348
1980
|
amount: string;
|
|
1349
1981
|
txHashes: string[];
|
|
1982
|
+
transactions?: {
|
|
1983
|
+
destination: {
|
|
1984
|
+
chainId: number;
|
|
1985
|
+
hash: string;
|
|
1986
|
+
}[];
|
|
1987
|
+
origin: {
|
|
1988
|
+
chainId: number;
|
|
1989
|
+
hash: string;
|
|
1990
|
+
}[];
|
|
1991
|
+
} | undefined;
|
|
1350
1992
|
requestId?: string | undefined;
|
|
1351
1993
|
}, {
|
|
1352
1994
|
amount: string;
|
|
1353
1995
|
txHashes: string[];
|
|
1996
|
+
transactions?: {
|
|
1997
|
+
destination: {
|
|
1998
|
+
chainId: number;
|
|
1999
|
+
hash: string;
|
|
2000
|
+
}[];
|
|
2001
|
+
origin: {
|
|
2002
|
+
chainId: number;
|
|
2003
|
+
hash: string;
|
|
2004
|
+
}[];
|
|
2005
|
+
} | undefined;
|
|
1354
2006
|
requestId?: string | undefined;
|
|
1355
2007
|
}>>;
|
|
1356
2008
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1416,6 +2068,16 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1416
2068
|
source?: {
|
|
1417
2069
|
amount: string;
|
|
1418
2070
|
txHashes: string[];
|
|
2071
|
+
transactions?: {
|
|
2072
|
+
destination: {
|
|
2073
|
+
chainId: number;
|
|
2074
|
+
hash: string;
|
|
2075
|
+
}[];
|
|
2076
|
+
origin: {
|
|
2077
|
+
chainId: number;
|
|
2078
|
+
hash: string;
|
|
2079
|
+
}[];
|
|
2080
|
+
} | undefined;
|
|
1419
2081
|
requestId?: string | undefined;
|
|
1420
2082
|
} | undefined;
|
|
1421
2083
|
}, {
|
|
@@ -1481,6 +2143,16 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1481
2143
|
source?: {
|
|
1482
2144
|
amount: string;
|
|
1483
2145
|
txHashes: string[];
|
|
2146
|
+
transactions?: {
|
|
2147
|
+
destination: {
|
|
2148
|
+
chainId: number;
|
|
2149
|
+
hash: string;
|
|
2150
|
+
}[];
|
|
2151
|
+
origin: {
|
|
2152
|
+
chainId: number;
|
|
2153
|
+
hash: string;
|
|
2154
|
+
}[];
|
|
2155
|
+
} | undefined;
|
|
1484
2156
|
requestId?: string | undefined;
|
|
1485
2157
|
} | undefined;
|
|
1486
2158
|
}>;
|
|
@@ -1753,6 +2425,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1753
2425
|
blockProductionLagging: boolean;
|
|
1754
2426
|
vmType?: string | undefined;
|
|
1755
2427
|
}[];
|
|
2428
|
+
source: "relay-sdk";
|
|
1756
2429
|
destination: {
|
|
1757
2430
|
symbol: string;
|
|
1758
2431
|
chainId: number;
|
|
@@ -1761,7 +2434,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1761
2434
|
name?: string | undefined;
|
|
1762
2435
|
isNative?: boolean | undefined;
|
|
1763
2436
|
};
|
|
1764
|
-
source: "relay-sdk";
|
|
1765
2437
|
asOf: number;
|
|
1766
2438
|
}, {
|
|
1767
2439
|
chains: {
|
|
@@ -1781,6 +2453,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1781
2453
|
blockProductionLagging: boolean;
|
|
1782
2454
|
vmType?: string | undefined;
|
|
1783
2455
|
}[];
|
|
2456
|
+
source: "relay-sdk";
|
|
1784
2457
|
destination: {
|
|
1785
2458
|
symbol: string;
|
|
1786
2459
|
chainId: number;
|
|
@@ -1789,7 +2462,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1789
2462
|
name?: string | undefined;
|
|
1790
2463
|
isNative?: boolean | undefined;
|
|
1791
2464
|
};
|
|
1792
|
-
source: "relay-sdk";
|
|
1793
2465
|
asOf: number;
|
|
1794
2466
|
}>>;
|
|
1795
2467
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1819,6 +2491,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1819
2491
|
blockProductionLagging: boolean;
|
|
1820
2492
|
vmType?: string | undefined;
|
|
1821
2493
|
}[];
|
|
2494
|
+
source: "relay-sdk";
|
|
1822
2495
|
destination: {
|
|
1823
2496
|
symbol: string;
|
|
1824
2497
|
chainId: number;
|
|
@@ -1827,7 +2500,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1827
2500
|
name?: string | undefined;
|
|
1828
2501
|
isNative?: boolean | undefined;
|
|
1829
2502
|
};
|
|
1830
|
-
source: "relay-sdk";
|
|
1831
2503
|
asOf: number;
|
|
1832
2504
|
} | undefined;
|
|
1833
2505
|
}, {
|
|
@@ -1857,6 +2529,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1857
2529
|
blockProductionLagging: boolean;
|
|
1858
2530
|
vmType?: string | undefined;
|
|
1859
2531
|
}[];
|
|
2532
|
+
source: "relay-sdk";
|
|
1860
2533
|
destination: {
|
|
1861
2534
|
symbol: string;
|
|
1862
2535
|
chainId: number;
|
|
@@ -1865,7 +2538,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1865
2538
|
name?: string | undefined;
|
|
1866
2539
|
isNative?: boolean | undefined;
|
|
1867
2540
|
};
|
|
1868
|
-
source: "relay-sdk";
|
|
1869
2541
|
asOf: number;
|
|
1870
2542
|
} | undefined;
|
|
1871
2543
|
}>;
|
|
@@ -1921,14 +2593,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1921
2593
|
address: string;
|
|
1922
2594
|
decimals: number;
|
|
1923
2595
|
};
|
|
1924
|
-
destination: {
|
|
1925
|
-
chainId: number;
|
|
1926
|
-
token: {
|
|
1927
|
-
symbol: "USDC";
|
|
1928
|
-
address: string;
|
|
1929
|
-
decimals: number;
|
|
1930
|
-
};
|
|
1931
|
-
};
|
|
1932
2596
|
source: {
|
|
1933
2597
|
default: {
|
|
1934
2598
|
chainId: number;
|
|
@@ -1956,6 +2620,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1956
2620
|
blockProductionLagging: boolean;
|
|
1957
2621
|
vmType?: string | undefined;
|
|
1958
2622
|
}[];
|
|
2623
|
+
source: "relay-sdk";
|
|
1959
2624
|
destination: {
|
|
1960
2625
|
symbol: string;
|
|
1961
2626
|
chainId: number;
|
|
@@ -1964,10 +2629,17 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1964
2629
|
name?: string | undefined;
|
|
1965
2630
|
isNative?: boolean | undefined;
|
|
1966
2631
|
};
|
|
1967
|
-
source: "relay-sdk";
|
|
1968
2632
|
asOf: number;
|
|
1969
2633
|
} | undefined;
|
|
1970
2634
|
};
|
|
2635
|
+
destination: {
|
|
2636
|
+
chainId: number;
|
|
2637
|
+
token: {
|
|
2638
|
+
symbol: "USDC";
|
|
2639
|
+
address: string;
|
|
2640
|
+
decimals: number;
|
|
2641
|
+
};
|
|
2642
|
+
};
|
|
1971
2643
|
environment: "production" | "preproduction" | "staging";
|
|
1972
2644
|
currencies: string[];
|
|
1973
2645
|
platforms: {
|
|
@@ -1992,14 +2664,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1992
2664
|
address: string;
|
|
1993
2665
|
decimals: number;
|
|
1994
2666
|
};
|
|
1995
|
-
destination: {
|
|
1996
|
-
chainId: number;
|
|
1997
|
-
token: {
|
|
1998
|
-
symbol: "USDC";
|
|
1999
|
-
address: string;
|
|
2000
|
-
decimals: number;
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
2667
|
source: {
|
|
2004
2668
|
default: {
|
|
2005
2669
|
chainId: number;
|
|
@@ -2027,6 +2691,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
2027
2691
|
blockProductionLagging: boolean;
|
|
2028
2692
|
vmType?: string | undefined;
|
|
2029
2693
|
}[];
|
|
2694
|
+
source: "relay-sdk";
|
|
2030
2695
|
destination: {
|
|
2031
2696
|
symbol: string;
|
|
2032
2697
|
chainId: number;
|
|
@@ -2035,10 +2700,17 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
2035
2700
|
name?: string | undefined;
|
|
2036
2701
|
isNative?: boolean | undefined;
|
|
2037
2702
|
};
|
|
2038
|
-
source: "relay-sdk";
|
|
2039
2703
|
asOf: number;
|
|
2040
2704
|
} | undefined;
|
|
2041
2705
|
};
|
|
2706
|
+
destination: {
|
|
2707
|
+
chainId: number;
|
|
2708
|
+
token: {
|
|
2709
|
+
symbol: "USDC";
|
|
2710
|
+
address: string;
|
|
2711
|
+
decimals: number;
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2042
2714
|
environment: "production" | "preproduction" | "staging";
|
|
2043
2715
|
currencies: string[];
|
|
2044
2716
|
platforms: {
|
|
@@ -2052,21 +2724,809 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
2052
2724
|
kind: "oracle-market-rate";
|
|
2053
2725
|
};
|
|
2054
2726
|
}>;
|
|
2055
|
-
declare const
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2727
|
+
declare const cashErrorRecoveryJsonSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2728
|
+
kind: z.ZodLiteral<"retry-base-usdc-cashout">;
|
|
2729
|
+
amount: z.ZodString;
|
|
2730
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
2732
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
2733
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
2734
|
+
hash: z.ZodString;
|
|
2735
|
+
chainId: z.ZodNumber;
|
|
2736
|
+
}, "strip", z.ZodTypeAny, {
|
|
2737
|
+
chainId: number;
|
|
2738
|
+
hash: string;
|
|
2739
|
+
}, {
|
|
2740
|
+
chainId: number;
|
|
2741
|
+
hash: string;
|
|
2742
|
+
}>, "many">;
|
|
2743
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
2744
|
+
hash: z.ZodString;
|
|
2745
|
+
chainId: z.ZodNumber;
|
|
2746
|
+
}, "strip", z.ZodTypeAny, {
|
|
2747
|
+
chainId: number;
|
|
2748
|
+
hash: string;
|
|
2749
|
+
}, {
|
|
2750
|
+
chainId: number;
|
|
2751
|
+
hash: string;
|
|
2752
|
+
}>, "many">;
|
|
2753
|
+
}, "strict", z.ZodTypeAny, {
|
|
2754
|
+
destination: {
|
|
2755
|
+
chainId: number;
|
|
2756
|
+
hash: string;
|
|
2757
|
+
}[];
|
|
2758
|
+
origin: {
|
|
2759
|
+
chainId: number;
|
|
2760
|
+
hash: string;
|
|
2761
|
+
}[];
|
|
2762
|
+
}, {
|
|
2763
|
+
destination: {
|
|
2764
|
+
chainId: number;
|
|
2765
|
+
hash: string;
|
|
2766
|
+
}[];
|
|
2767
|
+
origin: {
|
|
2768
|
+
chainId: number;
|
|
2769
|
+
hash: string;
|
|
2770
|
+
}[];
|
|
2771
|
+
}>>;
|
|
2772
|
+
}, "strict", z.ZodTypeAny, {
|
|
2773
|
+
amount: string;
|
|
2774
|
+
kind: "retry-base-usdc-cashout";
|
|
2775
|
+
txHashes: string[];
|
|
2776
|
+
transactions?: {
|
|
2777
|
+
destination: {
|
|
2778
|
+
chainId: number;
|
|
2779
|
+
hash: string;
|
|
2780
|
+
}[];
|
|
2781
|
+
origin: {
|
|
2782
|
+
chainId: number;
|
|
2783
|
+
hash: string;
|
|
2784
|
+
}[];
|
|
2785
|
+
} | undefined;
|
|
2786
|
+
requestId?: string | undefined;
|
|
2065
2787
|
}, {
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2788
|
+
amount: string;
|
|
2789
|
+
kind: "retry-base-usdc-cashout";
|
|
2790
|
+
txHashes: string[];
|
|
2791
|
+
transactions?: {
|
|
2792
|
+
destination: {
|
|
2793
|
+
chainId: number;
|
|
2794
|
+
hash: string;
|
|
2795
|
+
}[];
|
|
2796
|
+
origin: {
|
|
2797
|
+
chainId: number;
|
|
2798
|
+
hash: string;
|
|
2799
|
+
}[];
|
|
2800
|
+
} | undefined;
|
|
2801
|
+
requestId?: string | undefined;
|
|
2802
|
+
}>, z.ZodObject<{
|
|
2803
|
+
kind: z.ZodLiteral<"inspect-base-cashout-transaction">;
|
|
2804
|
+
depositTxHash: z.ZodString;
|
|
2805
|
+
amount: z.ZodString;
|
|
2806
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2807
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
2808
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
2809
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
2810
|
+
hash: z.ZodString;
|
|
2811
|
+
chainId: z.ZodNumber;
|
|
2812
|
+
}, "strip", z.ZodTypeAny, {
|
|
2813
|
+
chainId: number;
|
|
2814
|
+
hash: string;
|
|
2815
|
+
}, {
|
|
2816
|
+
chainId: number;
|
|
2817
|
+
hash: string;
|
|
2818
|
+
}>, "many">;
|
|
2819
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
2820
|
+
hash: z.ZodString;
|
|
2821
|
+
chainId: z.ZodNumber;
|
|
2822
|
+
}, "strip", z.ZodTypeAny, {
|
|
2823
|
+
chainId: number;
|
|
2824
|
+
hash: string;
|
|
2825
|
+
}, {
|
|
2826
|
+
chainId: number;
|
|
2827
|
+
hash: string;
|
|
2828
|
+
}>, "many">;
|
|
2829
|
+
}, "strict", z.ZodTypeAny, {
|
|
2830
|
+
destination: {
|
|
2831
|
+
chainId: number;
|
|
2832
|
+
hash: string;
|
|
2833
|
+
}[];
|
|
2834
|
+
origin: {
|
|
2835
|
+
chainId: number;
|
|
2836
|
+
hash: string;
|
|
2837
|
+
}[];
|
|
2838
|
+
}, {
|
|
2839
|
+
destination: {
|
|
2840
|
+
chainId: number;
|
|
2841
|
+
hash: string;
|
|
2842
|
+
}[];
|
|
2843
|
+
origin: {
|
|
2844
|
+
chainId: number;
|
|
2845
|
+
hash: string;
|
|
2846
|
+
}[];
|
|
2847
|
+
}>>;
|
|
2848
|
+
}, "strict", z.ZodTypeAny, {
|
|
2849
|
+
amount: string;
|
|
2850
|
+
kind: "inspect-base-cashout-transaction";
|
|
2851
|
+
txHashes: string[];
|
|
2852
|
+
depositTxHash: string;
|
|
2853
|
+
transactions?: {
|
|
2854
|
+
destination: {
|
|
2855
|
+
chainId: number;
|
|
2856
|
+
hash: string;
|
|
2857
|
+
}[];
|
|
2858
|
+
origin: {
|
|
2859
|
+
chainId: number;
|
|
2860
|
+
hash: string;
|
|
2861
|
+
}[];
|
|
2862
|
+
} | undefined;
|
|
2863
|
+
requestId?: string | undefined;
|
|
2864
|
+
}, {
|
|
2865
|
+
amount: string;
|
|
2866
|
+
kind: "inspect-base-cashout-transaction";
|
|
2867
|
+
txHashes: string[];
|
|
2868
|
+
depositTxHash: string;
|
|
2869
|
+
transactions?: {
|
|
2870
|
+
destination: {
|
|
2871
|
+
chainId: number;
|
|
2872
|
+
hash: string;
|
|
2873
|
+
}[];
|
|
2874
|
+
origin: {
|
|
2875
|
+
chainId: number;
|
|
2876
|
+
hash: string;
|
|
2877
|
+
}[];
|
|
2878
|
+
} | undefined;
|
|
2879
|
+
requestId?: string | undefined;
|
|
2880
|
+
}>, z.ZodObject<{
|
|
2881
|
+
kind: z.ZodLiteral<"inspect-base-cashout-submission">;
|
|
2882
|
+
depositor: z.ZodString;
|
|
2883
|
+
amount: z.ZodString;
|
|
2884
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2885
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
2886
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
2887
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
2888
|
+
hash: z.ZodString;
|
|
2889
|
+
chainId: z.ZodNumber;
|
|
2890
|
+
}, "strip", z.ZodTypeAny, {
|
|
2891
|
+
chainId: number;
|
|
2892
|
+
hash: string;
|
|
2893
|
+
}, {
|
|
2894
|
+
chainId: number;
|
|
2895
|
+
hash: string;
|
|
2896
|
+
}>, "many">;
|
|
2897
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
2898
|
+
hash: z.ZodString;
|
|
2899
|
+
chainId: z.ZodNumber;
|
|
2900
|
+
}, "strip", z.ZodTypeAny, {
|
|
2901
|
+
chainId: number;
|
|
2902
|
+
hash: string;
|
|
2903
|
+
}, {
|
|
2904
|
+
chainId: number;
|
|
2905
|
+
hash: string;
|
|
2906
|
+
}>, "many">;
|
|
2907
|
+
}, "strict", z.ZodTypeAny, {
|
|
2908
|
+
destination: {
|
|
2909
|
+
chainId: number;
|
|
2910
|
+
hash: string;
|
|
2911
|
+
}[];
|
|
2912
|
+
origin: {
|
|
2913
|
+
chainId: number;
|
|
2914
|
+
hash: string;
|
|
2915
|
+
}[];
|
|
2916
|
+
}, {
|
|
2917
|
+
destination: {
|
|
2918
|
+
chainId: number;
|
|
2919
|
+
hash: string;
|
|
2920
|
+
}[];
|
|
2921
|
+
origin: {
|
|
2922
|
+
chainId: number;
|
|
2923
|
+
hash: string;
|
|
2924
|
+
}[];
|
|
2925
|
+
}>>;
|
|
2926
|
+
}, "strict", z.ZodTypeAny, {
|
|
2927
|
+
amount: string;
|
|
2928
|
+
depositor: string;
|
|
2929
|
+
kind: "inspect-base-cashout-submission";
|
|
2930
|
+
txHashes: string[];
|
|
2931
|
+
transactions?: {
|
|
2932
|
+
destination: {
|
|
2933
|
+
chainId: number;
|
|
2934
|
+
hash: string;
|
|
2935
|
+
}[];
|
|
2936
|
+
origin: {
|
|
2937
|
+
chainId: number;
|
|
2938
|
+
hash: string;
|
|
2939
|
+
}[];
|
|
2940
|
+
} | undefined;
|
|
2941
|
+
requestId?: string | undefined;
|
|
2942
|
+
}, {
|
|
2943
|
+
amount: string;
|
|
2944
|
+
depositor: string;
|
|
2945
|
+
kind: "inspect-base-cashout-submission";
|
|
2946
|
+
txHashes: string[];
|
|
2947
|
+
transactions?: {
|
|
2948
|
+
destination: {
|
|
2949
|
+
chainId: number;
|
|
2950
|
+
hash: string;
|
|
2951
|
+
}[];
|
|
2952
|
+
origin: {
|
|
2953
|
+
chainId: number;
|
|
2954
|
+
hash: string;
|
|
2955
|
+
}[];
|
|
2956
|
+
} | undefined;
|
|
2957
|
+
requestId?: string | undefined;
|
|
2958
|
+
}>, z.ZodObject<{
|
|
2959
|
+
kind: z.ZodLiteral<"inspect-relay-route">;
|
|
2960
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2961
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
2962
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
2963
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
2964
|
+
hash: z.ZodString;
|
|
2965
|
+
chainId: z.ZodNumber;
|
|
2966
|
+
}, "strip", z.ZodTypeAny, {
|
|
2967
|
+
chainId: number;
|
|
2968
|
+
hash: string;
|
|
2969
|
+
}, {
|
|
2970
|
+
chainId: number;
|
|
2971
|
+
hash: string;
|
|
2972
|
+
}>, "many">;
|
|
2973
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
2974
|
+
hash: z.ZodString;
|
|
2975
|
+
chainId: z.ZodNumber;
|
|
2976
|
+
}, "strip", z.ZodTypeAny, {
|
|
2977
|
+
chainId: number;
|
|
2978
|
+
hash: string;
|
|
2979
|
+
}, {
|
|
2980
|
+
chainId: number;
|
|
2981
|
+
hash: string;
|
|
2982
|
+
}>, "many">;
|
|
2983
|
+
}, "strict", z.ZodTypeAny, {
|
|
2984
|
+
destination: {
|
|
2985
|
+
chainId: number;
|
|
2986
|
+
hash: string;
|
|
2987
|
+
}[];
|
|
2988
|
+
origin: {
|
|
2989
|
+
chainId: number;
|
|
2990
|
+
hash: string;
|
|
2991
|
+
}[];
|
|
2992
|
+
}, {
|
|
2993
|
+
destination: {
|
|
2994
|
+
chainId: number;
|
|
2995
|
+
hash: string;
|
|
2996
|
+
}[];
|
|
2997
|
+
origin: {
|
|
2998
|
+
chainId: number;
|
|
2999
|
+
hash: string;
|
|
3000
|
+
}[];
|
|
3001
|
+
}>>;
|
|
3002
|
+
}, "strict", z.ZodTypeAny, {
|
|
3003
|
+
kind: "inspect-relay-route";
|
|
3004
|
+
txHashes: string[];
|
|
3005
|
+
transactions?: {
|
|
3006
|
+
destination: {
|
|
3007
|
+
chainId: number;
|
|
3008
|
+
hash: string;
|
|
3009
|
+
}[];
|
|
3010
|
+
origin: {
|
|
3011
|
+
chainId: number;
|
|
3012
|
+
hash: string;
|
|
3013
|
+
}[];
|
|
3014
|
+
} | undefined;
|
|
3015
|
+
requestId?: string | undefined;
|
|
3016
|
+
}, {
|
|
3017
|
+
kind: "inspect-relay-route";
|
|
3018
|
+
txHashes: string[];
|
|
3019
|
+
transactions?: {
|
|
3020
|
+
destination: {
|
|
3021
|
+
chainId: number;
|
|
3022
|
+
hash: string;
|
|
3023
|
+
}[];
|
|
3024
|
+
origin: {
|
|
3025
|
+
chainId: number;
|
|
3026
|
+
hash: string;
|
|
3027
|
+
}[];
|
|
3028
|
+
} | undefined;
|
|
3029
|
+
requestId?: string | undefined;
|
|
3030
|
+
}>, z.ZodObject<{
|
|
3031
|
+
kind: z.ZodLiteral<"inspect-base-operation-submission">;
|
|
3032
|
+
operation: z.ZodString;
|
|
3033
|
+
}, "strict", z.ZodTypeAny, {
|
|
3034
|
+
kind: "inspect-base-operation-submission";
|
|
3035
|
+
operation: string;
|
|
3036
|
+
}, {
|
|
3037
|
+
kind: "inspect-base-operation-submission";
|
|
3038
|
+
operation: string;
|
|
3039
|
+
}>, z.ZodObject<{
|
|
3040
|
+
kind: z.ZodLiteral<"inspect-base-transaction">;
|
|
3041
|
+
transactionHash: z.ZodString;
|
|
3042
|
+
operation: z.ZodString;
|
|
3043
|
+
}, "strict", z.ZodTypeAny, {
|
|
3044
|
+
kind: "inspect-base-transaction";
|
|
3045
|
+
transactionHash: string;
|
|
3046
|
+
operation: string;
|
|
3047
|
+
}, {
|
|
3048
|
+
kind: "inspect-base-transaction";
|
|
3049
|
+
transactionHash: string;
|
|
3050
|
+
operation: string;
|
|
3051
|
+
}>]>;
|
|
3052
|
+
declare const cashErrorJsonSchema: z.ZodObject<{
|
|
3053
|
+
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"]>;
|
|
3054
|
+
message: z.ZodString;
|
|
3055
|
+
retryable: z.ZodBoolean;
|
|
3056
|
+
remediation: z.ZodString;
|
|
3057
|
+
recovery: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3058
|
+
kind: z.ZodLiteral<"retry-base-usdc-cashout">;
|
|
3059
|
+
amount: z.ZodString;
|
|
3060
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3061
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
3062
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
3063
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
3064
|
+
hash: z.ZodString;
|
|
3065
|
+
chainId: z.ZodNumber;
|
|
3066
|
+
}, "strip", z.ZodTypeAny, {
|
|
3067
|
+
chainId: number;
|
|
3068
|
+
hash: string;
|
|
3069
|
+
}, {
|
|
3070
|
+
chainId: number;
|
|
3071
|
+
hash: string;
|
|
3072
|
+
}>, "many">;
|
|
3073
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
3074
|
+
hash: z.ZodString;
|
|
3075
|
+
chainId: z.ZodNumber;
|
|
3076
|
+
}, "strip", z.ZodTypeAny, {
|
|
3077
|
+
chainId: number;
|
|
3078
|
+
hash: string;
|
|
3079
|
+
}, {
|
|
3080
|
+
chainId: number;
|
|
3081
|
+
hash: string;
|
|
3082
|
+
}>, "many">;
|
|
3083
|
+
}, "strict", z.ZodTypeAny, {
|
|
3084
|
+
destination: {
|
|
3085
|
+
chainId: number;
|
|
3086
|
+
hash: string;
|
|
3087
|
+
}[];
|
|
3088
|
+
origin: {
|
|
3089
|
+
chainId: number;
|
|
3090
|
+
hash: string;
|
|
3091
|
+
}[];
|
|
3092
|
+
}, {
|
|
3093
|
+
destination: {
|
|
3094
|
+
chainId: number;
|
|
3095
|
+
hash: string;
|
|
3096
|
+
}[];
|
|
3097
|
+
origin: {
|
|
3098
|
+
chainId: number;
|
|
3099
|
+
hash: string;
|
|
3100
|
+
}[];
|
|
3101
|
+
}>>;
|
|
3102
|
+
}, "strict", z.ZodTypeAny, {
|
|
3103
|
+
amount: string;
|
|
3104
|
+
kind: "retry-base-usdc-cashout";
|
|
3105
|
+
txHashes: string[];
|
|
3106
|
+
transactions?: {
|
|
3107
|
+
destination: {
|
|
3108
|
+
chainId: number;
|
|
3109
|
+
hash: string;
|
|
3110
|
+
}[];
|
|
3111
|
+
origin: {
|
|
3112
|
+
chainId: number;
|
|
3113
|
+
hash: string;
|
|
3114
|
+
}[];
|
|
3115
|
+
} | undefined;
|
|
3116
|
+
requestId?: string | undefined;
|
|
3117
|
+
}, {
|
|
3118
|
+
amount: string;
|
|
3119
|
+
kind: "retry-base-usdc-cashout";
|
|
3120
|
+
txHashes: string[];
|
|
3121
|
+
transactions?: {
|
|
3122
|
+
destination: {
|
|
3123
|
+
chainId: number;
|
|
3124
|
+
hash: string;
|
|
3125
|
+
}[];
|
|
3126
|
+
origin: {
|
|
3127
|
+
chainId: number;
|
|
3128
|
+
hash: string;
|
|
3129
|
+
}[];
|
|
3130
|
+
} | undefined;
|
|
3131
|
+
requestId?: string | undefined;
|
|
3132
|
+
}>, z.ZodObject<{
|
|
3133
|
+
kind: z.ZodLiteral<"inspect-base-cashout-transaction">;
|
|
3134
|
+
depositTxHash: z.ZodString;
|
|
3135
|
+
amount: z.ZodString;
|
|
3136
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3137
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
3138
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
3139
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
3140
|
+
hash: z.ZodString;
|
|
3141
|
+
chainId: z.ZodNumber;
|
|
3142
|
+
}, "strip", z.ZodTypeAny, {
|
|
3143
|
+
chainId: number;
|
|
3144
|
+
hash: string;
|
|
3145
|
+
}, {
|
|
3146
|
+
chainId: number;
|
|
3147
|
+
hash: string;
|
|
3148
|
+
}>, "many">;
|
|
3149
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
3150
|
+
hash: z.ZodString;
|
|
3151
|
+
chainId: z.ZodNumber;
|
|
3152
|
+
}, "strip", z.ZodTypeAny, {
|
|
3153
|
+
chainId: number;
|
|
3154
|
+
hash: string;
|
|
3155
|
+
}, {
|
|
3156
|
+
chainId: number;
|
|
3157
|
+
hash: string;
|
|
3158
|
+
}>, "many">;
|
|
3159
|
+
}, "strict", z.ZodTypeAny, {
|
|
3160
|
+
destination: {
|
|
3161
|
+
chainId: number;
|
|
3162
|
+
hash: string;
|
|
3163
|
+
}[];
|
|
3164
|
+
origin: {
|
|
3165
|
+
chainId: number;
|
|
3166
|
+
hash: string;
|
|
3167
|
+
}[];
|
|
3168
|
+
}, {
|
|
3169
|
+
destination: {
|
|
3170
|
+
chainId: number;
|
|
3171
|
+
hash: string;
|
|
3172
|
+
}[];
|
|
3173
|
+
origin: {
|
|
3174
|
+
chainId: number;
|
|
3175
|
+
hash: string;
|
|
3176
|
+
}[];
|
|
3177
|
+
}>>;
|
|
3178
|
+
}, "strict", z.ZodTypeAny, {
|
|
3179
|
+
amount: string;
|
|
3180
|
+
kind: "inspect-base-cashout-transaction";
|
|
3181
|
+
txHashes: string[];
|
|
3182
|
+
depositTxHash: string;
|
|
3183
|
+
transactions?: {
|
|
3184
|
+
destination: {
|
|
3185
|
+
chainId: number;
|
|
3186
|
+
hash: string;
|
|
3187
|
+
}[];
|
|
3188
|
+
origin: {
|
|
3189
|
+
chainId: number;
|
|
3190
|
+
hash: string;
|
|
3191
|
+
}[];
|
|
3192
|
+
} | undefined;
|
|
3193
|
+
requestId?: string | undefined;
|
|
3194
|
+
}, {
|
|
3195
|
+
amount: string;
|
|
3196
|
+
kind: "inspect-base-cashout-transaction";
|
|
3197
|
+
txHashes: string[];
|
|
3198
|
+
depositTxHash: string;
|
|
3199
|
+
transactions?: {
|
|
3200
|
+
destination: {
|
|
3201
|
+
chainId: number;
|
|
3202
|
+
hash: string;
|
|
3203
|
+
}[];
|
|
3204
|
+
origin: {
|
|
3205
|
+
chainId: number;
|
|
3206
|
+
hash: string;
|
|
3207
|
+
}[];
|
|
3208
|
+
} | undefined;
|
|
3209
|
+
requestId?: string | undefined;
|
|
3210
|
+
}>, z.ZodObject<{
|
|
3211
|
+
kind: z.ZodLiteral<"inspect-base-cashout-submission">;
|
|
3212
|
+
depositor: z.ZodString;
|
|
3213
|
+
amount: z.ZodString;
|
|
3214
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
3216
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
3217
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
3218
|
+
hash: z.ZodString;
|
|
3219
|
+
chainId: z.ZodNumber;
|
|
3220
|
+
}, "strip", z.ZodTypeAny, {
|
|
3221
|
+
chainId: number;
|
|
3222
|
+
hash: string;
|
|
3223
|
+
}, {
|
|
3224
|
+
chainId: number;
|
|
3225
|
+
hash: string;
|
|
3226
|
+
}>, "many">;
|
|
3227
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
3228
|
+
hash: z.ZodString;
|
|
3229
|
+
chainId: z.ZodNumber;
|
|
3230
|
+
}, "strip", z.ZodTypeAny, {
|
|
3231
|
+
chainId: number;
|
|
3232
|
+
hash: string;
|
|
3233
|
+
}, {
|
|
3234
|
+
chainId: number;
|
|
3235
|
+
hash: string;
|
|
3236
|
+
}>, "many">;
|
|
3237
|
+
}, "strict", z.ZodTypeAny, {
|
|
3238
|
+
destination: {
|
|
3239
|
+
chainId: number;
|
|
3240
|
+
hash: string;
|
|
3241
|
+
}[];
|
|
3242
|
+
origin: {
|
|
3243
|
+
chainId: number;
|
|
3244
|
+
hash: string;
|
|
3245
|
+
}[];
|
|
3246
|
+
}, {
|
|
3247
|
+
destination: {
|
|
3248
|
+
chainId: number;
|
|
3249
|
+
hash: string;
|
|
3250
|
+
}[];
|
|
3251
|
+
origin: {
|
|
3252
|
+
chainId: number;
|
|
3253
|
+
hash: string;
|
|
3254
|
+
}[];
|
|
3255
|
+
}>>;
|
|
3256
|
+
}, "strict", z.ZodTypeAny, {
|
|
3257
|
+
amount: string;
|
|
3258
|
+
depositor: string;
|
|
3259
|
+
kind: "inspect-base-cashout-submission";
|
|
3260
|
+
txHashes: string[];
|
|
3261
|
+
transactions?: {
|
|
3262
|
+
destination: {
|
|
3263
|
+
chainId: number;
|
|
3264
|
+
hash: string;
|
|
3265
|
+
}[];
|
|
3266
|
+
origin: {
|
|
3267
|
+
chainId: number;
|
|
3268
|
+
hash: string;
|
|
3269
|
+
}[];
|
|
3270
|
+
} | undefined;
|
|
3271
|
+
requestId?: string | undefined;
|
|
3272
|
+
}, {
|
|
3273
|
+
amount: string;
|
|
3274
|
+
depositor: string;
|
|
3275
|
+
kind: "inspect-base-cashout-submission";
|
|
3276
|
+
txHashes: string[];
|
|
3277
|
+
transactions?: {
|
|
3278
|
+
destination: {
|
|
3279
|
+
chainId: number;
|
|
3280
|
+
hash: string;
|
|
3281
|
+
}[];
|
|
3282
|
+
origin: {
|
|
3283
|
+
chainId: number;
|
|
3284
|
+
hash: string;
|
|
3285
|
+
}[];
|
|
3286
|
+
} | undefined;
|
|
3287
|
+
requestId?: string | undefined;
|
|
3288
|
+
}>, z.ZodObject<{
|
|
3289
|
+
kind: z.ZodLiteral<"inspect-relay-route">;
|
|
3290
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3291
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
3292
|
+
transactions: z.ZodOptional<z.ZodObject<{
|
|
3293
|
+
origin: z.ZodArray<z.ZodObject<{
|
|
3294
|
+
hash: z.ZodString;
|
|
3295
|
+
chainId: z.ZodNumber;
|
|
3296
|
+
}, "strip", z.ZodTypeAny, {
|
|
3297
|
+
chainId: number;
|
|
3298
|
+
hash: string;
|
|
3299
|
+
}, {
|
|
3300
|
+
chainId: number;
|
|
3301
|
+
hash: string;
|
|
3302
|
+
}>, "many">;
|
|
3303
|
+
destination: z.ZodArray<z.ZodObject<{
|
|
3304
|
+
hash: z.ZodString;
|
|
3305
|
+
chainId: z.ZodNumber;
|
|
3306
|
+
}, "strip", z.ZodTypeAny, {
|
|
3307
|
+
chainId: number;
|
|
3308
|
+
hash: string;
|
|
3309
|
+
}, {
|
|
3310
|
+
chainId: number;
|
|
3311
|
+
hash: string;
|
|
3312
|
+
}>, "many">;
|
|
3313
|
+
}, "strict", z.ZodTypeAny, {
|
|
3314
|
+
destination: {
|
|
3315
|
+
chainId: number;
|
|
3316
|
+
hash: string;
|
|
3317
|
+
}[];
|
|
3318
|
+
origin: {
|
|
3319
|
+
chainId: number;
|
|
3320
|
+
hash: string;
|
|
3321
|
+
}[];
|
|
3322
|
+
}, {
|
|
3323
|
+
destination: {
|
|
3324
|
+
chainId: number;
|
|
3325
|
+
hash: string;
|
|
3326
|
+
}[];
|
|
3327
|
+
origin: {
|
|
3328
|
+
chainId: number;
|
|
3329
|
+
hash: string;
|
|
3330
|
+
}[];
|
|
3331
|
+
}>>;
|
|
3332
|
+
}, "strict", z.ZodTypeAny, {
|
|
3333
|
+
kind: "inspect-relay-route";
|
|
3334
|
+
txHashes: string[];
|
|
3335
|
+
transactions?: {
|
|
3336
|
+
destination: {
|
|
3337
|
+
chainId: number;
|
|
3338
|
+
hash: string;
|
|
3339
|
+
}[];
|
|
3340
|
+
origin: {
|
|
3341
|
+
chainId: number;
|
|
3342
|
+
hash: string;
|
|
3343
|
+
}[];
|
|
3344
|
+
} | undefined;
|
|
3345
|
+
requestId?: string | undefined;
|
|
3346
|
+
}, {
|
|
3347
|
+
kind: "inspect-relay-route";
|
|
3348
|
+
txHashes: string[];
|
|
3349
|
+
transactions?: {
|
|
3350
|
+
destination: {
|
|
3351
|
+
chainId: number;
|
|
3352
|
+
hash: string;
|
|
3353
|
+
}[];
|
|
3354
|
+
origin: {
|
|
3355
|
+
chainId: number;
|
|
3356
|
+
hash: string;
|
|
3357
|
+
}[];
|
|
3358
|
+
} | undefined;
|
|
3359
|
+
requestId?: string | undefined;
|
|
3360
|
+
}>, z.ZodObject<{
|
|
3361
|
+
kind: z.ZodLiteral<"inspect-base-operation-submission">;
|
|
3362
|
+
operation: z.ZodString;
|
|
3363
|
+
}, "strict", z.ZodTypeAny, {
|
|
3364
|
+
kind: "inspect-base-operation-submission";
|
|
3365
|
+
operation: string;
|
|
3366
|
+
}, {
|
|
3367
|
+
kind: "inspect-base-operation-submission";
|
|
3368
|
+
operation: string;
|
|
3369
|
+
}>, z.ZodObject<{
|
|
3370
|
+
kind: z.ZodLiteral<"inspect-base-transaction">;
|
|
3371
|
+
transactionHash: z.ZodString;
|
|
3372
|
+
operation: z.ZodString;
|
|
3373
|
+
}, "strict", z.ZodTypeAny, {
|
|
3374
|
+
kind: "inspect-base-transaction";
|
|
3375
|
+
transactionHash: string;
|
|
3376
|
+
operation: string;
|
|
3377
|
+
}, {
|
|
3378
|
+
kind: "inspect-base-transaction";
|
|
3379
|
+
transactionHash: string;
|
|
3380
|
+
operation: string;
|
|
3381
|
+
}>]>>;
|
|
3382
|
+
}, "strict", z.ZodTypeAny, {
|
|
3383
|
+
message: string;
|
|
3384
|
+
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";
|
|
3385
|
+
retryable: boolean;
|
|
3386
|
+
remediation: string;
|
|
3387
|
+
recovery?: {
|
|
3388
|
+
amount: string;
|
|
3389
|
+
kind: "retry-base-usdc-cashout";
|
|
3390
|
+
txHashes: string[];
|
|
3391
|
+
transactions?: {
|
|
3392
|
+
destination: {
|
|
3393
|
+
chainId: number;
|
|
3394
|
+
hash: string;
|
|
3395
|
+
}[];
|
|
3396
|
+
origin: {
|
|
3397
|
+
chainId: number;
|
|
3398
|
+
hash: string;
|
|
3399
|
+
}[];
|
|
3400
|
+
} | undefined;
|
|
3401
|
+
requestId?: string | undefined;
|
|
3402
|
+
} | {
|
|
3403
|
+
amount: string;
|
|
3404
|
+
kind: "inspect-base-cashout-transaction";
|
|
3405
|
+
txHashes: string[];
|
|
3406
|
+
depositTxHash: string;
|
|
3407
|
+
transactions?: {
|
|
3408
|
+
destination: {
|
|
3409
|
+
chainId: number;
|
|
3410
|
+
hash: string;
|
|
3411
|
+
}[];
|
|
3412
|
+
origin: {
|
|
3413
|
+
chainId: number;
|
|
3414
|
+
hash: string;
|
|
3415
|
+
}[];
|
|
3416
|
+
} | undefined;
|
|
3417
|
+
requestId?: string | undefined;
|
|
3418
|
+
} | {
|
|
3419
|
+
amount: string;
|
|
3420
|
+
depositor: string;
|
|
3421
|
+
kind: "inspect-base-cashout-submission";
|
|
3422
|
+
txHashes: string[];
|
|
3423
|
+
transactions?: {
|
|
3424
|
+
destination: {
|
|
3425
|
+
chainId: number;
|
|
3426
|
+
hash: string;
|
|
3427
|
+
}[];
|
|
3428
|
+
origin: {
|
|
3429
|
+
chainId: number;
|
|
3430
|
+
hash: string;
|
|
3431
|
+
}[];
|
|
3432
|
+
} | undefined;
|
|
3433
|
+
requestId?: string | undefined;
|
|
3434
|
+
} | {
|
|
3435
|
+
kind: "inspect-relay-route";
|
|
3436
|
+
txHashes: string[];
|
|
3437
|
+
transactions?: {
|
|
3438
|
+
destination: {
|
|
3439
|
+
chainId: number;
|
|
3440
|
+
hash: string;
|
|
3441
|
+
}[];
|
|
3442
|
+
origin: {
|
|
3443
|
+
chainId: number;
|
|
3444
|
+
hash: string;
|
|
3445
|
+
}[];
|
|
3446
|
+
} | undefined;
|
|
3447
|
+
requestId?: string | undefined;
|
|
3448
|
+
} | {
|
|
3449
|
+
kind: "inspect-base-operation-submission";
|
|
3450
|
+
operation: string;
|
|
3451
|
+
} | {
|
|
3452
|
+
kind: "inspect-base-transaction";
|
|
3453
|
+
transactionHash: string;
|
|
3454
|
+
operation: string;
|
|
3455
|
+
} | undefined;
|
|
3456
|
+
}, {
|
|
3457
|
+
message: string;
|
|
3458
|
+
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";
|
|
3459
|
+
retryable: boolean;
|
|
3460
|
+
remediation: string;
|
|
3461
|
+
recovery?: {
|
|
3462
|
+
amount: string;
|
|
3463
|
+
kind: "retry-base-usdc-cashout";
|
|
3464
|
+
txHashes: string[];
|
|
3465
|
+
transactions?: {
|
|
3466
|
+
destination: {
|
|
3467
|
+
chainId: number;
|
|
3468
|
+
hash: string;
|
|
3469
|
+
}[];
|
|
3470
|
+
origin: {
|
|
3471
|
+
chainId: number;
|
|
3472
|
+
hash: string;
|
|
3473
|
+
}[];
|
|
3474
|
+
} | undefined;
|
|
3475
|
+
requestId?: string | undefined;
|
|
3476
|
+
} | {
|
|
3477
|
+
amount: string;
|
|
3478
|
+
kind: "inspect-base-cashout-transaction";
|
|
3479
|
+
txHashes: string[];
|
|
3480
|
+
depositTxHash: string;
|
|
3481
|
+
transactions?: {
|
|
3482
|
+
destination: {
|
|
3483
|
+
chainId: number;
|
|
3484
|
+
hash: string;
|
|
3485
|
+
}[];
|
|
3486
|
+
origin: {
|
|
3487
|
+
chainId: number;
|
|
3488
|
+
hash: string;
|
|
3489
|
+
}[];
|
|
3490
|
+
} | undefined;
|
|
3491
|
+
requestId?: string | undefined;
|
|
3492
|
+
} | {
|
|
3493
|
+
amount: string;
|
|
3494
|
+
depositor: string;
|
|
3495
|
+
kind: "inspect-base-cashout-submission";
|
|
3496
|
+
txHashes: string[];
|
|
3497
|
+
transactions?: {
|
|
3498
|
+
destination: {
|
|
3499
|
+
chainId: number;
|
|
3500
|
+
hash: string;
|
|
3501
|
+
}[];
|
|
3502
|
+
origin: {
|
|
3503
|
+
chainId: number;
|
|
3504
|
+
hash: string;
|
|
3505
|
+
}[];
|
|
3506
|
+
} | undefined;
|
|
3507
|
+
requestId?: string | undefined;
|
|
3508
|
+
} | {
|
|
3509
|
+
kind: "inspect-relay-route";
|
|
3510
|
+
txHashes: string[];
|
|
3511
|
+
transactions?: {
|
|
3512
|
+
destination: {
|
|
3513
|
+
chainId: number;
|
|
3514
|
+
hash: string;
|
|
3515
|
+
}[];
|
|
3516
|
+
origin: {
|
|
3517
|
+
chainId: number;
|
|
3518
|
+
hash: string;
|
|
3519
|
+
}[];
|
|
3520
|
+
} | undefined;
|
|
3521
|
+
requestId?: string | undefined;
|
|
3522
|
+
} | {
|
|
3523
|
+
kind: "inspect-base-operation-submission";
|
|
3524
|
+
operation: string;
|
|
3525
|
+
} | {
|
|
3526
|
+
kind: "inspect-base-transaction";
|
|
3527
|
+
transactionHash: string;
|
|
3528
|
+
operation: string;
|
|
3529
|
+
} | undefined;
|
|
2070
3530
|
}>;
|
|
2071
3531
|
type CashOrderJson = z.infer<typeof cashOrderJsonSchema>;
|
|
2072
3532
|
type CashFillJson = z.infer<typeof cashFillJsonSchema>;
|
|
@@ -2080,6 +3540,16 @@ type CashPreparedStepJson = z.infer<typeof cashPreparedStepJsonSchema>;
|
|
|
2080
3540
|
type CashPayoutInfoJson = z.infer<typeof cashPayoutInfoJsonSchema>;
|
|
2081
3541
|
type CashBuyerProfileJson = z.infer<typeof cashBuyerProfileJsonSchema>;
|
|
2082
3542
|
type CashCapabilitiesJson = z.infer<typeof cashCapabilitiesJsonSchema>;
|
|
3543
|
+
type RelayTransactionJson = z.infer<typeof relayTransactionJsonSchema>;
|
|
3544
|
+
type RelayTransactionsJson = z.infer<typeof relayTransactionsJsonSchema>;
|
|
3545
|
+
type CashAssetJson = z.infer<typeof cashAssetJsonSchema>;
|
|
3546
|
+
type CashChainJson = z.infer<typeof cashChainJsonSchema>;
|
|
3547
|
+
type CashSourceCapabilitiesJson = z.infer<typeof cashSourceCapabilitiesJsonSchema>;
|
|
3548
|
+
type RelayQuoteJson = z.infer<typeof relayQuoteJsonSchema>;
|
|
3549
|
+
type RelayStatusJson = z.infer<typeof relayStatusJsonSchema>;
|
|
3550
|
+
type RelayExecutionResultJson = z.infer<typeof relayExecutionResultJsonSchema>;
|
|
3551
|
+
type CashErrorRecoveryJson = z.infer<typeof cashErrorRecoveryJsonSchema>;
|
|
3552
|
+
type CashErrorJson = z.infer<typeof cashErrorJsonSchema>;
|
|
2083
3553
|
|
|
2084
3554
|
/**
|
|
2085
3555
|
* JSON codecs - lossless (de)serialization for every wire type. bigints encode
|
|
@@ -2088,11 +3558,19 @@ type CashCapabilitiesJson = z.infer<typeof cashCapabilitiesJsonSchema>;
|
|
|
2088
3558
|
*/
|
|
2089
3559
|
|
|
2090
3560
|
declare function fillToJson(fill: CashFill): CashFillJson;
|
|
2091
|
-
declare function fillFromJson(json:
|
|
3561
|
+
declare function fillFromJson(json: unknown): CashFill;
|
|
2092
3562
|
declare function orderToJson(order: CashOrder): CashOrderJson;
|
|
2093
3563
|
declare function orderFromJson(json: unknown): CashOrder;
|
|
2094
3564
|
declare function estimateToJson(estimate: CashEstimate): CashEstimateJson;
|
|
2095
3565
|
declare function estimateFromJson(json: unknown): CashEstimate;
|
|
3566
|
+
declare function relayQuoteToJson(quote: RelayQuote): RelayQuoteJson;
|
|
3567
|
+
declare function relayQuoteFromJson(json: unknown): RelayQuote;
|
|
3568
|
+
declare function sourceCapabilitiesToJson(capabilities: CashSourceCapabilities): CashSourceCapabilitiesJson;
|
|
3569
|
+
declare function sourceCapabilitiesFromJson(json: unknown): CashSourceCapabilities;
|
|
3570
|
+
declare function relayStatusToJson(status: RelayStatus): RelayStatusJson;
|
|
3571
|
+
declare function relayStatusFromJson(json: unknown): RelayStatus;
|
|
3572
|
+
declare function relayExecutionResultToJson(result: RelayExecutionResult): RelayExecutionResultJson;
|
|
3573
|
+
declare function relayExecutionResultFromJson(json: unknown): RelayExecutionResult;
|
|
2096
3574
|
declare function preparedTxToJson(tx: PreparedTransaction): PreparedTransactionJson;
|
|
2097
3575
|
declare function preparedTxFromJson(json: unknown): PreparedTransaction;
|
|
2098
3576
|
declare function preparedStepToJson(step: CashPreparedStep): CashPreparedStepJson;
|
|
@@ -2109,5 +3587,7 @@ declare function topUpResultToJson(result: TopUpResult): TopUpResultJson;
|
|
|
2109
3587
|
declare function topUpResultFromJson(json: unknown): TopUpResult;
|
|
2110
3588
|
declare function capabilitiesToJson(caps: CashCapabilities): CashCapabilitiesJson;
|
|
2111
3589
|
declare function capabilitiesFromJson(json: unknown): CashCapabilities;
|
|
3590
|
+
declare function cashErrorToJson(error: CashErrorShape): CashErrorJson;
|
|
3591
|
+
declare function cashErrorFromJson(json: unknown): CashError;
|
|
2112
3592
|
|
|
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 };
|
|
3593
|
+
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 };
|