@zkp2p/cash 0.1.1 → 0.1.2
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 +39 -30
- package/README.md +57 -26
- package/dist/{chunk-4DRZRWWS.js → chunk-FKVPZVFH.js} +14 -2
- package/dist/chunk-FKVPZVFH.js.map +1 -0
- package/dist/{createCashClient-DpAx9A1A.d.cts → createCashClient-iHuGgjH_.d.cts} +169 -6
- package/dist/{createCashClient-DpAx9A1A.d.ts → createCashClient-iHuGgjH_.d.ts} +169 -6
- package/dist/index.cjs +600 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +801 -55
- package/dist/index.d.ts +801 -55
- package/dist/index.js +592 -30
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +23 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +24 -6
- package/dist/react.js.map +1 -1
- package/dist/tools.cjs +103 -7
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.d.cts +2 -2
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +103 -7
- package/dist/tools.js.map +1 -1
- package/llms.txt +22 -17
- package/package.json +5 -4
- package/skills/peer-cash-integration/SKILL.md +18 -8
- package/dist/chunk-4DRZRWWS.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
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 { k as CASH_ATTRIBUTION_CODE, l as
|
|
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_.cjs';
|
|
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_.cjs';
|
|
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';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
+
import '@relayprotocol/relay-sdk';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Typed errors - every failure carries a `code`, whether it is `retryable`,
|
|
10
11
|
* and a `remediation` sentence so agents can self-drive recovery.
|
|
11
12
|
*/
|
|
12
|
-
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' | 'DEPOSIT_RESOLUTION_FAILED' | 'ALLOWANCE_NOT_VISIBLE' | 'SIGNER_REQUIRED' | 'WATCH_TIMEOUT' | 'TRANSACTION_FAILED';
|
|
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
14
|
interface CashErrorShape {
|
|
14
15
|
code: CashErrorCode;
|
|
15
16
|
message: string;
|
|
@@ -40,6 +41,8 @@ declare const errors: {
|
|
|
40
41
|
orderNotFound: (depositId: string) => CashError;
|
|
41
42
|
payeeRegistrationFailed: (cause: unknown) => CashError;
|
|
42
43
|
payeeVerificationRequired: (platform: string, cause?: unknown) => CashError;
|
|
44
|
+
sourceRouteUnsupportedInPrepare: () => CashError;
|
|
45
|
+
sourceRecipientMismatch: (recipient: string, owner: string) => CashError;
|
|
43
46
|
allowanceNotVisible: (amount: bigint) => CashError;
|
|
44
47
|
depositResolutionFailed: (txHash: string) => CashError;
|
|
45
48
|
signerRequired: (verb: string) => CashError;
|
|
@@ -379,9 +382,6 @@ declare const cashPayoutInfoJsonSchema: z.ZodObject<{
|
|
|
379
382
|
oracleRate?: number | undefined;
|
|
380
383
|
}>;
|
|
381
384
|
}, "strip", z.ZodTypeAny, {
|
|
382
|
-
platformHash: string;
|
|
383
|
-
payeeHash: string;
|
|
384
|
-
active: boolean;
|
|
385
385
|
pricing: {
|
|
386
386
|
marketRate: boolean;
|
|
387
387
|
spreadBps?: number | undefined;
|
|
@@ -390,13 +390,13 @@ declare const cashPayoutInfoJsonSchema: z.ZodObject<{
|
|
|
390
390
|
rateSource?: string | undefined;
|
|
391
391
|
oracleRate?: number | undefined;
|
|
392
392
|
};
|
|
393
|
+
platformHash: string;
|
|
394
|
+
payeeHash: string;
|
|
395
|
+
active: boolean;
|
|
393
396
|
currency?: string | undefined;
|
|
394
397
|
currencyHash?: string | undefined;
|
|
395
398
|
platform?: string | undefined;
|
|
396
399
|
}, {
|
|
397
|
-
platformHash: string;
|
|
398
|
-
payeeHash: string;
|
|
399
|
-
active: boolean;
|
|
400
400
|
pricing: {
|
|
401
401
|
marketRate: boolean;
|
|
402
402
|
spreadBps?: number | undefined;
|
|
@@ -405,6 +405,9 @@ declare const cashPayoutInfoJsonSchema: z.ZodObject<{
|
|
|
405
405
|
rateSource?: string | undefined;
|
|
406
406
|
oracleRate?: number | undefined;
|
|
407
407
|
};
|
|
408
|
+
platformHash: string;
|
|
409
|
+
payeeHash: string;
|
|
410
|
+
active: boolean;
|
|
408
411
|
currency?: string | undefined;
|
|
409
412
|
currencyHash?: string | undefined;
|
|
410
413
|
platform?: string | undefined;
|
|
@@ -544,9 +547,6 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
544
547
|
oracleRate?: number | undefined;
|
|
545
548
|
}>;
|
|
546
549
|
}, "strip", z.ZodTypeAny, {
|
|
547
|
-
platformHash: string;
|
|
548
|
-
payeeHash: string;
|
|
549
|
-
active: boolean;
|
|
550
550
|
pricing: {
|
|
551
551
|
marketRate: boolean;
|
|
552
552
|
spreadBps?: number | undefined;
|
|
@@ -555,13 +555,13 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
555
555
|
rateSource?: string | undefined;
|
|
556
556
|
oracleRate?: number | undefined;
|
|
557
557
|
};
|
|
558
|
+
platformHash: string;
|
|
559
|
+
payeeHash: string;
|
|
560
|
+
active: boolean;
|
|
558
561
|
currency?: string | undefined;
|
|
559
562
|
currencyHash?: string | undefined;
|
|
560
563
|
platform?: string | undefined;
|
|
561
564
|
}, {
|
|
562
|
-
platformHash: string;
|
|
563
|
-
payeeHash: string;
|
|
564
|
-
active: boolean;
|
|
565
565
|
pricing: {
|
|
566
566
|
marketRate: boolean;
|
|
567
567
|
spreadBps?: number | undefined;
|
|
@@ -570,6 +570,9 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
570
570
|
rateSource?: string | undefined;
|
|
571
571
|
oracleRate?: number | undefined;
|
|
572
572
|
};
|
|
573
|
+
platformHash: string;
|
|
574
|
+
payeeHash: string;
|
|
575
|
+
active: boolean;
|
|
573
576
|
currency?: string | undefined;
|
|
574
577
|
currencyHash?: string | undefined;
|
|
575
578
|
platform?: string | undefined;
|
|
@@ -611,9 +614,6 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
611
614
|
updatedAt?: number | undefined;
|
|
612
615
|
successRateBps?: number | undefined;
|
|
613
616
|
payouts?: {
|
|
614
|
-
platformHash: string;
|
|
615
|
-
payeeHash: string;
|
|
616
|
-
active: boolean;
|
|
617
617
|
pricing: {
|
|
618
618
|
marketRate: boolean;
|
|
619
619
|
spreadBps?: number | undefined;
|
|
@@ -622,6 +622,9 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
622
622
|
rateSource?: string | undefined;
|
|
623
623
|
oracleRate?: number | undefined;
|
|
624
624
|
};
|
|
625
|
+
platformHash: string;
|
|
626
|
+
payeeHash: string;
|
|
627
|
+
active: boolean;
|
|
625
628
|
currency?: string | undefined;
|
|
626
629
|
currencyHash?: string | undefined;
|
|
627
630
|
platform?: string | undefined;
|
|
@@ -665,9 +668,6 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
665
668
|
updatedAt?: number | undefined;
|
|
666
669
|
successRateBps?: number | undefined;
|
|
667
670
|
payouts?: {
|
|
668
|
-
platformHash: string;
|
|
669
|
-
payeeHash: string;
|
|
670
|
-
active: boolean;
|
|
671
671
|
pricing: {
|
|
672
672
|
marketRate: boolean;
|
|
673
673
|
spreadBps?: number | undefined;
|
|
@@ -676,6 +676,9 @@ declare const cashOrderJsonSchema: z.ZodObject<{
|
|
|
676
676
|
rateSource?: string | undefined;
|
|
677
677
|
oracleRate?: number | undefined;
|
|
678
678
|
};
|
|
679
|
+
platformHash: string;
|
|
680
|
+
payeeHash: string;
|
|
681
|
+
active: boolean;
|
|
679
682
|
currency?: string | undefined;
|
|
680
683
|
currencyHash?: string | undefined;
|
|
681
684
|
platform?: string | undefined;
|
|
@@ -695,6 +698,255 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
695
698
|
asOf: z.ZodNumber;
|
|
696
699
|
oracleUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
697
700
|
stale: z.ZodOptional<z.ZodBoolean>;
|
|
701
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
702
|
+
kind: z.ZodLiteral<"relay">;
|
|
703
|
+
asset: z.ZodObject<{
|
|
704
|
+
chainId: z.ZodNumber;
|
|
705
|
+
address: z.ZodString;
|
|
706
|
+
symbol: z.ZodString;
|
|
707
|
+
decimals: z.ZodNumber;
|
|
708
|
+
name: z.ZodOptional<z.ZodString>;
|
|
709
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
710
|
+
}, "strip", z.ZodTypeAny, {
|
|
711
|
+
symbol: string;
|
|
712
|
+
chainId: number;
|
|
713
|
+
address: string;
|
|
714
|
+
decimals: number;
|
|
715
|
+
name?: string | undefined;
|
|
716
|
+
isNative?: boolean | undefined;
|
|
717
|
+
}, {
|
|
718
|
+
symbol: string;
|
|
719
|
+
chainId: number;
|
|
720
|
+
address: string;
|
|
721
|
+
decimals: number;
|
|
722
|
+
name?: string | undefined;
|
|
723
|
+
isNative?: boolean | undefined;
|
|
724
|
+
}>;
|
|
725
|
+
inputAmount: z.ZodString;
|
|
726
|
+
relayQuote: z.ZodObject<{
|
|
727
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
728
|
+
source: z.ZodObject<{
|
|
729
|
+
chainId: z.ZodNumber;
|
|
730
|
+
address: z.ZodString;
|
|
731
|
+
symbol: z.ZodString;
|
|
732
|
+
decimals: z.ZodNumber;
|
|
733
|
+
name: z.ZodOptional<z.ZodString>;
|
|
734
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
symbol: string;
|
|
737
|
+
chainId: number;
|
|
738
|
+
address: string;
|
|
739
|
+
decimals: number;
|
|
740
|
+
name?: string | undefined;
|
|
741
|
+
isNative?: boolean | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
symbol: string;
|
|
744
|
+
chainId: number;
|
|
745
|
+
address: string;
|
|
746
|
+
decimals: number;
|
|
747
|
+
name?: string | undefined;
|
|
748
|
+
isNative?: boolean | undefined;
|
|
749
|
+
}>;
|
|
750
|
+
destination: z.ZodObject<{
|
|
751
|
+
chainId: z.ZodNumber;
|
|
752
|
+
address: z.ZodString;
|
|
753
|
+
symbol: z.ZodString;
|
|
754
|
+
decimals: z.ZodNumber;
|
|
755
|
+
name: z.ZodOptional<z.ZodString>;
|
|
756
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
757
|
+
}, "strip", z.ZodTypeAny, {
|
|
758
|
+
symbol: string;
|
|
759
|
+
chainId: number;
|
|
760
|
+
address: string;
|
|
761
|
+
decimals: number;
|
|
762
|
+
name?: string | undefined;
|
|
763
|
+
isNative?: boolean | undefined;
|
|
764
|
+
}, {
|
|
765
|
+
symbol: string;
|
|
766
|
+
chainId: number;
|
|
767
|
+
address: string;
|
|
768
|
+
decimals: number;
|
|
769
|
+
name?: string | undefined;
|
|
770
|
+
isNative?: boolean | undefined;
|
|
771
|
+
}>;
|
|
772
|
+
inputAmount: z.ZodString;
|
|
773
|
+
outputAmount: z.ZodString;
|
|
774
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
775
|
+
timeEstimateSeconds: z.ZodOptional<z.ZodNumber>;
|
|
776
|
+
fees: z.ZodOptional<z.ZodUnknown>;
|
|
777
|
+
txs: z.ZodArray<z.ZodObject<{
|
|
778
|
+
to: z.ZodString;
|
|
779
|
+
data: z.ZodString;
|
|
780
|
+
value: z.ZodString;
|
|
781
|
+
chainId: z.ZodNumber;
|
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
|
783
|
+
chainId: number;
|
|
784
|
+
data: string;
|
|
785
|
+
to: string;
|
|
786
|
+
value: string;
|
|
787
|
+
}, {
|
|
788
|
+
chainId: number;
|
|
789
|
+
data: string;
|
|
790
|
+
to: string;
|
|
791
|
+
value: string;
|
|
792
|
+
}>, "many">;
|
|
793
|
+
raw: z.ZodUnknown;
|
|
794
|
+
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
destination: {
|
|
796
|
+
symbol: string;
|
|
797
|
+
chainId: number;
|
|
798
|
+
address: string;
|
|
799
|
+
decimals: number;
|
|
800
|
+
name?: string | undefined;
|
|
801
|
+
isNative?: boolean | undefined;
|
|
802
|
+
};
|
|
803
|
+
source: {
|
|
804
|
+
symbol: string;
|
|
805
|
+
chainId: number;
|
|
806
|
+
address: string;
|
|
807
|
+
decimals: number;
|
|
808
|
+
name?: string | undefined;
|
|
809
|
+
isNative?: boolean | undefined;
|
|
810
|
+
};
|
|
811
|
+
txs: {
|
|
812
|
+
chainId: number;
|
|
813
|
+
data: string;
|
|
814
|
+
to: string;
|
|
815
|
+
value: string;
|
|
816
|
+
}[];
|
|
817
|
+
inputAmount: string;
|
|
818
|
+
outputAmount: string;
|
|
819
|
+
rate?: number | undefined;
|
|
820
|
+
requestId?: string | undefined;
|
|
821
|
+
timeEstimateSeconds?: number | undefined;
|
|
822
|
+
fees?: unknown;
|
|
823
|
+
raw?: unknown;
|
|
824
|
+
}, {
|
|
825
|
+
destination: {
|
|
826
|
+
symbol: string;
|
|
827
|
+
chainId: number;
|
|
828
|
+
address: string;
|
|
829
|
+
decimals: number;
|
|
830
|
+
name?: string | undefined;
|
|
831
|
+
isNative?: boolean | undefined;
|
|
832
|
+
};
|
|
833
|
+
source: {
|
|
834
|
+
symbol: string;
|
|
835
|
+
chainId: number;
|
|
836
|
+
address: string;
|
|
837
|
+
decimals: number;
|
|
838
|
+
name?: string | undefined;
|
|
839
|
+
isNative?: boolean | undefined;
|
|
840
|
+
};
|
|
841
|
+
txs: {
|
|
842
|
+
chainId: number;
|
|
843
|
+
data: string;
|
|
844
|
+
to: string;
|
|
845
|
+
value: string;
|
|
846
|
+
}[];
|
|
847
|
+
inputAmount: string;
|
|
848
|
+
outputAmount: string;
|
|
849
|
+
rate?: number | undefined;
|
|
850
|
+
requestId?: string | undefined;
|
|
851
|
+
timeEstimateSeconds?: number | undefined;
|
|
852
|
+
fees?: unknown;
|
|
853
|
+
raw?: unknown;
|
|
854
|
+
}>;
|
|
855
|
+
}, "strip", z.ZodTypeAny, {
|
|
856
|
+
kind: "relay";
|
|
857
|
+
asset: {
|
|
858
|
+
symbol: string;
|
|
859
|
+
chainId: number;
|
|
860
|
+
address: string;
|
|
861
|
+
decimals: number;
|
|
862
|
+
name?: string | undefined;
|
|
863
|
+
isNative?: boolean | undefined;
|
|
864
|
+
};
|
|
865
|
+
inputAmount: string;
|
|
866
|
+
relayQuote: {
|
|
867
|
+
destination: {
|
|
868
|
+
symbol: string;
|
|
869
|
+
chainId: number;
|
|
870
|
+
address: string;
|
|
871
|
+
decimals: number;
|
|
872
|
+
name?: string | undefined;
|
|
873
|
+
isNative?: boolean | undefined;
|
|
874
|
+
};
|
|
875
|
+
source: {
|
|
876
|
+
symbol: string;
|
|
877
|
+
chainId: number;
|
|
878
|
+
address: string;
|
|
879
|
+
decimals: number;
|
|
880
|
+
name?: string | undefined;
|
|
881
|
+
isNative?: boolean | undefined;
|
|
882
|
+
};
|
|
883
|
+
txs: {
|
|
884
|
+
chainId: number;
|
|
885
|
+
data: string;
|
|
886
|
+
to: string;
|
|
887
|
+
value: string;
|
|
888
|
+
}[];
|
|
889
|
+
inputAmount: string;
|
|
890
|
+
outputAmount: string;
|
|
891
|
+
rate?: number | undefined;
|
|
892
|
+
requestId?: string | undefined;
|
|
893
|
+
timeEstimateSeconds?: number | undefined;
|
|
894
|
+
fees?: unknown;
|
|
895
|
+
raw?: unknown;
|
|
896
|
+
};
|
|
897
|
+
}, {
|
|
898
|
+
kind: "relay";
|
|
899
|
+
asset: {
|
|
900
|
+
symbol: string;
|
|
901
|
+
chainId: number;
|
|
902
|
+
address: string;
|
|
903
|
+
decimals: number;
|
|
904
|
+
name?: string | undefined;
|
|
905
|
+
isNative?: boolean | undefined;
|
|
906
|
+
};
|
|
907
|
+
inputAmount: string;
|
|
908
|
+
relayQuote: {
|
|
909
|
+
destination: {
|
|
910
|
+
symbol: string;
|
|
911
|
+
chainId: number;
|
|
912
|
+
address: string;
|
|
913
|
+
decimals: number;
|
|
914
|
+
name?: string | undefined;
|
|
915
|
+
isNative?: boolean | undefined;
|
|
916
|
+
};
|
|
917
|
+
source: {
|
|
918
|
+
symbol: string;
|
|
919
|
+
chainId: number;
|
|
920
|
+
address: string;
|
|
921
|
+
decimals: number;
|
|
922
|
+
name?: string | undefined;
|
|
923
|
+
isNative?: boolean | undefined;
|
|
924
|
+
};
|
|
925
|
+
txs: {
|
|
926
|
+
chainId: number;
|
|
927
|
+
data: string;
|
|
928
|
+
to: string;
|
|
929
|
+
value: string;
|
|
930
|
+
}[];
|
|
931
|
+
inputAmount: string;
|
|
932
|
+
outputAmount: string;
|
|
933
|
+
rate?: number | undefined;
|
|
934
|
+
requestId?: string | undefined;
|
|
935
|
+
timeEstimateSeconds?: number | undefined;
|
|
936
|
+
fees?: unknown;
|
|
937
|
+
raw?: unknown;
|
|
938
|
+
};
|
|
939
|
+
}>>;
|
|
940
|
+
eta: z.ZodOptional<z.ZodObject<{
|
|
941
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
942
|
+
label: z.ZodString;
|
|
943
|
+
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
label: string;
|
|
945
|
+
seconds?: number | undefined;
|
|
946
|
+
}, {
|
|
947
|
+
label: string;
|
|
948
|
+
seconds?: number | undefined;
|
|
949
|
+
}>>;
|
|
698
950
|
}, "strip", z.ZodTypeAny, {
|
|
699
951
|
amount: string;
|
|
700
952
|
currency: string;
|
|
@@ -702,8 +954,55 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
702
954
|
rate: number;
|
|
703
955
|
asOf: number;
|
|
704
956
|
receiveAmount: number;
|
|
957
|
+
source?: {
|
|
958
|
+
kind: "relay";
|
|
959
|
+
asset: {
|
|
960
|
+
symbol: string;
|
|
961
|
+
chainId: number;
|
|
962
|
+
address: string;
|
|
963
|
+
decimals: number;
|
|
964
|
+
name?: string | undefined;
|
|
965
|
+
isNative?: boolean | undefined;
|
|
966
|
+
};
|
|
967
|
+
inputAmount: string;
|
|
968
|
+
relayQuote: {
|
|
969
|
+
destination: {
|
|
970
|
+
symbol: string;
|
|
971
|
+
chainId: number;
|
|
972
|
+
address: string;
|
|
973
|
+
decimals: number;
|
|
974
|
+
name?: string | undefined;
|
|
975
|
+
isNative?: boolean | undefined;
|
|
976
|
+
};
|
|
977
|
+
source: {
|
|
978
|
+
symbol: string;
|
|
979
|
+
chainId: number;
|
|
980
|
+
address: string;
|
|
981
|
+
decimals: number;
|
|
982
|
+
name?: string | undefined;
|
|
983
|
+
isNative?: boolean | undefined;
|
|
984
|
+
};
|
|
985
|
+
txs: {
|
|
986
|
+
chainId: number;
|
|
987
|
+
data: string;
|
|
988
|
+
to: string;
|
|
989
|
+
value: string;
|
|
990
|
+
}[];
|
|
991
|
+
inputAmount: string;
|
|
992
|
+
outputAmount: string;
|
|
993
|
+
rate?: number | undefined;
|
|
994
|
+
requestId?: string | undefined;
|
|
995
|
+
timeEstimateSeconds?: number | undefined;
|
|
996
|
+
fees?: unknown;
|
|
997
|
+
raw?: unknown;
|
|
998
|
+
};
|
|
999
|
+
} | undefined;
|
|
705
1000
|
oracleUpdatedAt?: number | undefined;
|
|
706
1001
|
stale?: boolean | undefined;
|
|
1002
|
+
eta?: {
|
|
1003
|
+
label: string;
|
|
1004
|
+
seconds?: number | undefined;
|
|
1005
|
+
} | undefined;
|
|
707
1006
|
}, {
|
|
708
1007
|
amount: string;
|
|
709
1008
|
currency: string;
|
|
@@ -711,8 +1010,55 @@ declare const cashEstimateJsonSchema: z.ZodObject<{
|
|
|
711
1010
|
rate: number;
|
|
712
1011
|
asOf: number;
|
|
713
1012
|
receiveAmount: number;
|
|
1013
|
+
source?: {
|
|
1014
|
+
kind: "relay";
|
|
1015
|
+
asset: {
|
|
1016
|
+
symbol: string;
|
|
1017
|
+
chainId: number;
|
|
1018
|
+
address: string;
|
|
1019
|
+
decimals: number;
|
|
1020
|
+
name?: string | undefined;
|
|
1021
|
+
isNative?: boolean | undefined;
|
|
1022
|
+
};
|
|
1023
|
+
inputAmount: string;
|
|
1024
|
+
relayQuote: {
|
|
1025
|
+
destination: {
|
|
1026
|
+
symbol: string;
|
|
1027
|
+
chainId: number;
|
|
1028
|
+
address: string;
|
|
1029
|
+
decimals: number;
|
|
1030
|
+
name?: string | undefined;
|
|
1031
|
+
isNative?: boolean | undefined;
|
|
1032
|
+
};
|
|
1033
|
+
source: {
|
|
1034
|
+
symbol: string;
|
|
1035
|
+
chainId: number;
|
|
1036
|
+
address: string;
|
|
1037
|
+
decimals: number;
|
|
1038
|
+
name?: string | undefined;
|
|
1039
|
+
isNative?: boolean | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
txs: {
|
|
1042
|
+
chainId: number;
|
|
1043
|
+
data: string;
|
|
1044
|
+
to: string;
|
|
1045
|
+
value: string;
|
|
1046
|
+
}[];
|
|
1047
|
+
inputAmount: string;
|
|
1048
|
+
outputAmount: string;
|
|
1049
|
+
rate?: number | undefined;
|
|
1050
|
+
requestId?: string | undefined;
|
|
1051
|
+
timeEstimateSeconds?: number | undefined;
|
|
1052
|
+
fees?: unknown;
|
|
1053
|
+
raw?: unknown;
|
|
1054
|
+
};
|
|
1055
|
+
} | undefined;
|
|
714
1056
|
oracleUpdatedAt?: number | undefined;
|
|
715
1057
|
stale?: boolean | undefined;
|
|
1058
|
+
eta?: {
|
|
1059
|
+
label: string;
|
|
1060
|
+
seconds?: number | undefined;
|
|
1061
|
+
} | undefined;
|
|
716
1062
|
}>;
|
|
717
1063
|
declare const preparedTransactionJsonSchema: z.ZodObject<{
|
|
718
1064
|
to: z.ZodString;
|
|
@@ -852,9 +1198,6 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
852
1198
|
oracleRate?: number | undefined;
|
|
853
1199
|
}>;
|
|
854
1200
|
}, "strip", z.ZodTypeAny, {
|
|
855
|
-
platformHash: string;
|
|
856
|
-
payeeHash: string;
|
|
857
|
-
active: boolean;
|
|
858
1201
|
pricing: {
|
|
859
1202
|
marketRate: boolean;
|
|
860
1203
|
spreadBps?: number | undefined;
|
|
@@ -863,13 +1206,13 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
863
1206
|
rateSource?: string | undefined;
|
|
864
1207
|
oracleRate?: number | undefined;
|
|
865
1208
|
};
|
|
1209
|
+
platformHash: string;
|
|
1210
|
+
payeeHash: string;
|
|
1211
|
+
active: boolean;
|
|
866
1212
|
currency?: string | undefined;
|
|
867
1213
|
currencyHash?: string | undefined;
|
|
868
1214
|
platform?: string | undefined;
|
|
869
1215
|
}, {
|
|
870
|
-
platformHash: string;
|
|
871
|
-
payeeHash: string;
|
|
872
|
-
active: boolean;
|
|
873
1216
|
pricing: {
|
|
874
1217
|
marketRate: boolean;
|
|
875
1218
|
spreadBps?: number | undefined;
|
|
@@ -878,6 +1221,9 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
878
1221
|
rateSource?: string | undefined;
|
|
879
1222
|
oracleRate?: number | undefined;
|
|
880
1223
|
};
|
|
1224
|
+
platformHash: string;
|
|
1225
|
+
payeeHash: string;
|
|
1226
|
+
active: boolean;
|
|
881
1227
|
currency?: string | undefined;
|
|
882
1228
|
currencyHash?: string | undefined;
|
|
883
1229
|
platform?: string | undefined;
|
|
@@ -919,9 +1265,6 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
919
1265
|
updatedAt?: number | undefined;
|
|
920
1266
|
successRateBps?: number | undefined;
|
|
921
1267
|
payouts?: {
|
|
922
|
-
platformHash: string;
|
|
923
|
-
payeeHash: string;
|
|
924
|
-
active: boolean;
|
|
925
1268
|
pricing: {
|
|
926
1269
|
marketRate: boolean;
|
|
927
1270
|
spreadBps?: number | undefined;
|
|
@@ -930,6 +1273,9 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
930
1273
|
rateSource?: string | undefined;
|
|
931
1274
|
oracleRate?: number | undefined;
|
|
932
1275
|
};
|
|
1276
|
+
platformHash: string;
|
|
1277
|
+
payeeHash: string;
|
|
1278
|
+
active: boolean;
|
|
933
1279
|
currency?: string | undefined;
|
|
934
1280
|
currencyHash?: string | undefined;
|
|
935
1281
|
platform?: string | undefined;
|
|
@@ -973,9 +1319,6 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
973
1319
|
updatedAt?: number | undefined;
|
|
974
1320
|
successRateBps?: number | undefined;
|
|
975
1321
|
payouts?: {
|
|
976
|
-
platformHash: string;
|
|
977
|
-
payeeHash: string;
|
|
978
|
-
active: boolean;
|
|
979
1322
|
pricing: {
|
|
980
1323
|
marketRate: boolean;
|
|
981
1324
|
spreadBps?: number | undefined;
|
|
@@ -984,6 +1327,9 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
984
1327
|
rateSource?: string | undefined;
|
|
985
1328
|
oracleRate?: number | undefined;
|
|
986
1329
|
};
|
|
1330
|
+
platformHash: string;
|
|
1331
|
+
payeeHash: string;
|
|
1332
|
+
active: boolean;
|
|
987
1333
|
currency?: string | undefined;
|
|
988
1334
|
currencyHash?: string | undefined;
|
|
989
1335
|
platform?: string | undefined;
|
|
@@ -994,6 +1340,19 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
994
1340
|
intentCount?: number | undefined;
|
|
995
1341
|
withdrawn?: boolean | undefined;
|
|
996
1342
|
}>;
|
|
1343
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1344
|
+
amount: z.ZodString;
|
|
1345
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
txHashes: z.ZodArray<z.ZodString, "many">;
|
|
1347
|
+
}, "strip", z.ZodTypeAny, {
|
|
1348
|
+
amount: string;
|
|
1349
|
+
txHashes: string[];
|
|
1350
|
+
requestId?: string | undefined;
|
|
1351
|
+
}, {
|
|
1352
|
+
amount: string;
|
|
1353
|
+
txHashes: string[];
|
|
1354
|
+
requestId?: string | undefined;
|
|
1355
|
+
}>>;
|
|
997
1356
|
}, "strip", z.ZodTypeAny, {
|
|
998
1357
|
depositId: string;
|
|
999
1358
|
escrowAddress: string;
|
|
@@ -1033,9 +1392,6 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1033
1392
|
updatedAt?: number | undefined;
|
|
1034
1393
|
successRateBps?: number | undefined;
|
|
1035
1394
|
payouts?: {
|
|
1036
|
-
platformHash: string;
|
|
1037
|
-
payeeHash: string;
|
|
1038
|
-
active: boolean;
|
|
1039
1395
|
pricing: {
|
|
1040
1396
|
marketRate: boolean;
|
|
1041
1397
|
spreadBps?: number | undefined;
|
|
@@ -1044,6 +1400,9 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1044
1400
|
rateSource?: string | undefined;
|
|
1045
1401
|
oracleRate?: number | undefined;
|
|
1046
1402
|
};
|
|
1403
|
+
platformHash: string;
|
|
1404
|
+
payeeHash: string;
|
|
1405
|
+
active: boolean;
|
|
1047
1406
|
currency?: string | undefined;
|
|
1048
1407
|
currencyHash?: string | undefined;
|
|
1049
1408
|
platform?: string | undefined;
|
|
@@ -1054,6 +1413,11 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1054
1413
|
intentCount?: number | undefined;
|
|
1055
1414
|
withdrawn?: boolean | undefined;
|
|
1056
1415
|
};
|
|
1416
|
+
source?: {
|
|
1417
|
+
amount: string;
|
|
1418
|
+
txHashes: string[];
|
|
1419
|
+
requestId?: string | undefined;
|
|
1420
|
+
} | undefined;
|
|
1057
1421
|
}, {
|
|
1058
1422
|
depositId: string;
|
|
1059
1423
|
escrowAddress: string;
|
|
@@ -1093,9 +1457,6 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1093
1457
|
updatedAt?: number | undefined;
|
|
1094
1458
|
successRateBps?: number | undefined;
|
|
1095
1459
|
payouts?: {
|
|
1096
|
-
platformHash: string;
|
|
1097
|
-
payeeHash: string;
|
|
1098
|
-
active: boolean;
|
|
1099
1460
|
pricing: {
|
|
1100
1461
|
marketRate: boolean;
|
|
1101
1462
|
spreadBps?: number | undefined;
|
|
@@ -1104,6 +1465,9 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1104
1465
|
rateSource?: string | undefined;
|
|
1105
1466
|
oracleRate?: number | undefined;
|
|
1106
1467
|
};
|
|
1468
|
+
platformHash: string;
|
|
1469
|
+
payeeHash: string;
|
|
1470
|
+
active: boolean;
|
|
1107
1471
|
currency?: string | undefined;
|
|
1108
1472
|
currencyHash?: string | undefined;
|
|
1109
1473
|
platform?: string | undefined;
|
|
@@ -1114,6 +1478,11 @@ declare const cashoutResultJsonSchema: z.ZodObject<{
|
|
|
1114
1478
|
intentCount?: number | undefined;
|
|
1115
1479
|
withdrawn?: boolean | undefined;
|
|
1116
1480
|
};
|
|
1481
|
+
source?: {
|
|
1482
|
+
amount: string;
|
|
1483
|
+
txHashes: string[];
|
|
1484
|
+
requestId?: string | undefined;
|
|
1485
|
+
} | undefined;
|
|
1117
1486
|
}>;
|
|
1118
1487
|
declare const prepareResultJsonSchema: z.ZodObject<{
|
|
1119
1488
|
txs: z.ZodArray<z.ZodObject<{
|
|
@@ -1150,30 +1519,30 @@ declare const prepareResultJsonSchema: z.ZodObject<{
|
|
|
1150
1519
|
hashedOnchainIds: string[];
|
|
1151
1520
|
}>;
|
|
1152
1521
|
}, "strip", z.ZodTypeAny, {
|
|
1522
|
+
steps: {
|
|
1523
|
+
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1524
|
+
description: string;
|
|
1525
|
+
}[];
|
|
1153
1526
|
txs: {
|
|
1154
1527
|
chainId: number;
|
|
1155
1528
|
data: string;
|
|
1156
1529
|
to: string;
|
|
1157
1530
|
value: string;
|
|
1158
1531
|
}[];
|
|
1159
|
-
steps: {
|
|
1160
|
-
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1161
|
-
description: string;
|
|
1162
|
-
}[];
|
|
1163
1532
|
register: {
|
|
1164
1533
|
hashedOnchainIds: string[];
|
|
1165
1534
|
};
|
|
1166
1535
|
}, {
|
|
1536
|
+
steps: {
|
|
1537
|
+
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1538
|
+
description: string;
|
|
1539
|
+
}[];
|
|
1167
1540
|
txs: {
|
|
1168
1541
|
chainId: number;
|
|
1169
1542
|
data: string;
|
|
1170
1543
|
to: string;
|
|
1171
1544
|
value: string;
|
|
1172
1545
|
}[];
|
|
1173
|
-
steps: {
|
|
1174
|
-
kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
|
|
1175
|
-
description: string;
|
|
1176
|
-
}[];
|
|
1177
1546
|
register: {
|
|
1178
1547
|
hashedOnchainIds: string[];
|
|
1179
1548
|
};
|
|
@@ -1217,6 +1586,289 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1217
1586
|
decimals: number;
|
|
1218
1587
|
}>;
|
|
1219
1588
|
environment: z.ZodEnum<["production", "preproduction", "staging"]>;
|
|
1589
|
+
destination: z.ZodObject<{
|
|
1590
|
+
chainId: z.ZodNumber;
|
|
1591
|
+
token: z.ZodObject<{
|
|
1592
|
+
address: z.ZodString;
|
|
1593
|
+
symbol: z.ZodLiteral<"USDC">;
|
|
1594
|
+
decimals: z.ZodNumber;
|
|
1595
|
+
}, "strip", z.ZodTypeAny, {
|
|
1596
|
+
symbol: "USDC";
|
|
1597
|
+
address: string;
|
|
1598
|
+
decimals: number;
|
|
1599
|
+
}, {
|
|
1600
|
+
symbol: "USDC";
|
|
1601
|
+
address: string;
|
|
1602
|
+
decimals: number;
|
|
1603
|
+
}>;
|
|
1604
|
+
}, "strip", z.ZodTypeAny, {
|
|
1605
|
+
chainId: number;
|
|
1606
|
+
token: {
|
|
1607
|
+
symbol: "USDC";
|
|
1608
|
+
address: string;
|
|
1609
|
+
decimals: number;
|
|
1610
|
+
};
|
|
1611
|
+
}, {
|
|
1612
|
+
chainId: number;
|
|
1613
|
+
token: {
|
|
1614
|
+
symbol: "USDC";
|
|
1615
|
+
address: string;
|
|
1616
|
+
decimals: number;
|
|
1617
|
+
};
|
|
1618
|
+
}>;
|
|
1619
|
+
source: z.ZodObject<{
|
|
1620
|
+
default: z.ZodObject<{
|
|
1621
|
+
chainId: z.ZodNumber;
|
|
1622
|
+
token: z.ZodObject<{
|
|
1623
|
+
address: z.ZodString;
|
|
1624
|
+
symbol: z.ZodLiteral<"USDC">;
|
|
1625
|
+
decimals: z.ZodNumber;
|
|
1626
|
+
}, "strip", z.ZodTypeAny, {
|
|
1627
|
+
symbol: "USDC";
|
|
1628
|
+
address: string;
|
|
1629
|
+
decimals: number;
|
|
1630
|
+
}, {
|
|
1631
|
+
symbol: "USDC";
|
|
1632
|
+
address: string;
|
|
1633
|
+
decimals: number;
|
|
1634
|
+
}>;
|
|
1635
|
+
}, "strip", z.ZodTypeAny, {
|
|
1636
|
+
chainId: number;
|
|
1637
|
+
token: {
|
|
1638
|
+
symbol: "USDC";
|
|
1639
|
+
address: string;
|
|
1640
|
+
decimals: number;
|
|
1641
|
+
};
|
|
1642
|
+
}, {
|
|
1643
|
+
chainId: number;
|
|
1644
|
+
token: {
|
|
1645
|
+
symbol: "USDC";
|
|
1646
|
+
address: string;
|
|
1647
|
+
decimals: number;
|
|
1648
|
+
};
|
|
1649
|
+
}>;
|
|
1650
|
+
relay: z.ZodOptional<z.ZodObject<{
|
|
1651
|
+
destination: z.ZodObject<{
|
|
1652
|
+
chainId: z.ZodNumber;
|
|
1653
|
+
address: z.ZodString;
|
|
1654
|
+
symbol: z.ZodString;
|
|
1655
|
+
decimals: z.ZodNumber;
|
|
1656
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
1658
|
+
}, "strip", z.ZodTypeAny, {
|
|
1659
|
+
symbol: string;
|
|
1660
|
+
chainId: number;
|
|
1661
|
+
address: string;
|
|
1662
|
+
decimals: number;
|
|
1663
|
+
name?: string | undefined;
|
|
1664
|
+
isNative?: boolean | undefined;
|
|
1665
|
+
}, {
|
|
1666
|
+
symbol: string;
|
|
1667
|
+
chainId: number;
|
|
1668
|
+
address: string;
|
|
1669
|
+
decimals: number;
|
|
1670
|
+
name?: string | undefined;
|
|
1671
|
+
isNative?: boolean | undefined;
|
|
1672
|
+
}>;
|
|
1673
|
+
chains: z.ZodArray<z.ZodObject<{
|
|
1674
|
+
id: z.ZodNumber;
|
|
1675
|
+
name: z.ZodString;
|
|
1676
|
+
displayName: z.ZodString;
|
|
1677
|
+
disabled: z.ZodBoolean;
|
|
1678
|
+
depositEnabled: z.ZodBoolean;
|
|
1679
|
+
blockProductionLagging: z.ZodBoolean;
|
|
1680
|
+
vmType: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
1682
|
+
chainId: z.ZodNumber;
|
|
1683
|
+
address: z.ZodString;
|
|
1684
|
+
symbol: z.ZodString;
|
|
1685
|
+
decimals: z.ZodNumber;
|
|
1686
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
isNative: z.ZodOptional<z.ZodBoolean>;
|
|
1688
|
+
}, "strip", z.ZodTypeAny, {
|
|
1689
|
+
symbol: string;
|
|
1690
|
+
chainId: number;
|
|
1691
|
+
address: string;
|
|
1692
|
+
decimals: number;
|
|
1693
|
+
name?: string | undefined;
|
|
1694
|
+
isNative?: boolean | undefined;
|
|
1695
|
+
}, {
|
|
1696
|
+
symbol: string;
|
|
1697
|
+
chainId: number;
|
|
1698
|
+
address: string;
|
|
1699
|
+
decimals: number;
|
|
1700
|
+
name?: string | undefined;
|
|
1701
|
+
isNative?: boolean | undefined;
|
|
1702
|
+
}>, "many">;
|
|
1703
|
+
}, "strip", z.ZodTypeAny, {
|
|
1704
|
+
id: number;
|
|
1705
|
+
name: string;
|
|
1706
|
+
disabled: boolean;
|
|
1707
|
+
tokens: {
|
|
1708
|
+
symbol: string;
|
|
1709
|
+
chainId: number;
|
|
1710
|
+
address: string;
|
|
1711
|
+
decimals: number;
|
|
1712
|
+
name?: string | undefined;
|
|
1713
|
+
isNative?: boolean | undefined;
|
|
1714
|
+
}[];
|
|
1715
|
+
displayName: string;
|
|
1716
|
+
depositEnabled: boolean;
|
|
1717
|
+
blockProductionLagging: boolean;
|
|
1718
|
+
vmType?: string | undefined;
|
|
1719
|
+
}, {
|
|
1720
|
+
id: number;
|
|
1721
|
+
name: string;
|
|
1722
|
+
disabled: boolean;
|
|
1723
|
+
tokens: {
|
|
1724
|
+
symbol: string;
|
|
1725
|
+
chainId: number;
|
|
1726
|
+
address: string;
|
|
1727
|
+
decimals: number;
|
|
1728
|
+
name?: string | undefined;
|
|
1729
|
+
isNative?: boolean | undefined;
|
|
1730
|
+
}[];
|
|
1731
|
+
displayName: string;
|
|
1732
|
+
depositEnabled: boolean;
|
|
1733
|
+
blockProductionLagging: boolean;
|
|
1734
|
+
vmType?: string | undefined;
|
|
1735
|
+
}>, "many">;
|
|
1736
|
+
source: z.ZodLiteral<"relay-sdk">;
|
|
1737
|
+
asOf: z.ZodNumber;
|
|
1738
|
+
}, "strip", z.ZodTypeAny, {
|
|
1739
|
+
chains: {
|
|
1740
|
+
id: number;
|
|
1741
|
+
name: string;
|
|
1742
|
+
disabled: boolean;
|
|
1743
|
+
tokens: {
|
|
1744
|
+
symbol: string;
|
|
1745
|
+
chainId: number;
|
|
1746
|
+
address: string;
|
|
1747
|
+
decimals: number;
|
|
1748
|
+
name?: string | undefined;
|
|
1749
|
+
isNative?: boolean | undefined;
|
|
1750
|
+
}[];
|
|
1751
|
+
displayName: string;
|
|
1752
|
+
depositEnabled: boolean;
|
|
1753
|
+
blockProductionLagging: boolean;
|
|
1754
|
+
vmType?: string | undefined;
|
|
1755
|
+
}[];
|
|
1756
|
+
destination: {
|
|
1757
|
+
symbol: string;
|
|
1758
|
+
chainId: number;
|
|
1759
|
+
address: string;
|
|
1760
|
+
decimals: number;
|
|
1761
|
+
name?: string | undefined;
|
|
1762
|
+
isNative?: boolean | undefined;
|
|
1763
|
+
};
|
|
1764
|
+
source: "relay-sdk";
|
|
1765
|
+
asOf: number;
|
|
1766
|
+
}, {
|
|
1767
|
+
chains: {
|
|
1768
|
+
id: number;
|
|
1769
|
+
name: string;
|
|
1770
|
+
disabled: boolean;
|
|
1771
|
+
tokens: {
|
|
1772
|
+
symbol: string;
|
|
1773
|
+
chainId: number;
|
|
1774
|
+
address: string;
|
|
1775
|
+
decimals: number;
|
|
1776
|
+
name?: string | undefined;
|
|
1777
|
+
isNative?: boolean | undefined;
|
|
1778
|
+
}[];
|
|
1779
|
+
displayName: string;
|
|
1780
|
+
depositEnabled: boolean;
|
|
1781
|
+
blockProductionLagging: boolean;
|
|
1782
|
+
vmType?: string | undefined;
|
|
1783
|
+
}[];
|
|
1784
|
+
destination: {
|
|
1785
|
+
symbol: string;
|
|
1786
|
+
chainId: number;
|
|
1787
|
+
address: string;
|
|
1788
|
+
decimals: number;
|
|
1789
|
+
name?: string | undefined;
|
|
1790
|
+
isNative?: boolean | undefined;
|
|
1791
|
+
};
|
|
1792
|
+
source: "relay-sdk";
|
|
1793
|
+
asOf: number;
|
|
1794
|
+
}>>;
|
|
1795
|
+
}, "strip", z.ZodTypeAny, {
|
|
1796
|
+
default: {
|
|
1797
|
+
chainId: number;
|
|
1798
|
+
token: {
|
|
1799
|
+
symbol: "USDC";
|
|
1800
|
+
address: string;
|
|
1801
|
+
decimals: number;
|
|
1802
|
+
};
|
|
1803
|
+
};
|
|
1804
|
+
relay?: {
|
|
1805
|
+
chains: {
|
|
1806
|
+
id: number;
|
|
1807
|
+
name: string;
|
|
1808
|
+
disabled: boolean;
|
|
1809
|
+
tokens: {
|
|
1810
|
+
symbol: string;
|
|
1811
|
+
chainId: number;
|
|
1812
|
+
address: string;
|
|
1813
|
+
decimals: number;
|
|
1814
|
+
name?: string | undefined;
|
|
1815
|
+
isNative?: boolean | undefined;
|
|
1816
|
+
}[];
|
|
1817
|
+
displayName: string;
|
|
1818
|
+
depositEnabled: boolean;
|
|
1819
|
+
blockProductionLagging: boolean;
|
|
1820
|
+
vmType?: string | undefined;
|
|
1821
|
+
}[];
|
|
1822
|
+
destination: {
|
|
1823
|
+
symbol: string;
|
|
1824
|
+
chainId: number;
|
|
1825
|
+
address: string;
|
|
1826
|
+
decimals: number;
|
|
1827
|
+
name?: string | undefined;
|
|
1828
|
+
isNative?: boolean | undefined;
|
|
1829
|
+
};
|
|
1830
|
+
source: "relay-sdk";
|
|
1831
|
+
asOf: number;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
}, {
|
|
1834
|
+
default: {
|
|
1835
|
+
chainId: number;
|
|
1836
|
+
token: {
|
|
1837
|
+
symbol: "USDC";
|
|
1838
|
+
address: string;
|
|
1839
|
+
decimals: number;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
relay?: {
|
|
1843
|
+
chains: {
|
|
1844
|
+
id: number;
|
|
1845
|
+
name: string;
|
|
1846
|
+
disabled: boolean;
|
|
1847
|
+
tokens: {
|
|
1848
|
+
symbol: string;
|
|
1849
|
+
chainId: number;
|
|
1850
|
+
address: string;
|
|
1851
|
+
decimals: number;
|
|
1852
|
+
name?: string | undefined;
|
|
1853
|
+
isNative?: boolean | undefined;
|
|
1854
|
+
}[];
|
|
1855
|
+
displayName: string;
|
|
1856
|
+
depositEnabled: boolean;
|
|
1857
|
+
blockProductionLagging: boolean;
|
|
1858
|
+
vmType?: string | undefined;
|
|
1859
|
+
}[];
|
|
1860
|
+
destination: {
|
|
1861
|
+
symbol: string;
|
|
1862
|
+
chainId: number;
|
|
1863
|
+
address: string;
|
|
1864
|
+
decimals: number;
|
|
1865
|
+
name?: string | undefined;
|
|
1866
|
+
isNative?: boolean | undefined;
|
|
1867
|
+
};
|
|
1868
|
+
source: "relay-sdk";
|
|
1869
|
+
asOf: number;
|
|
1870
|
+
} | undefined;
|
|
1871
|
+
}>;
|
|
1220
1872
|
platforms: z.ZodArray<z.ZodObject<{
|
|
1221
1873
|
platform: z.ZodString;
|
|
1222
1874
|
currencies: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1269,18 +1921,65 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1269
1921
|
address: string;
|
|
1270
1922
|
decimals: number;
|
|
1271
1923
|
};
|
|
1924
|
+
destination: {
|
|
1925
|
+
chainId: number;
|
|
1926
|
+
token: {
|
|
1927
|
+
symbol: "USDC";
|
|
1928
|
+
address: string;
|
|
1929
|
+
decimals: number;
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
source: {
|
|
1933
|
+
default: {
|
|
1934
|
+
chainId: number;
|
|
1935
|
+
token: {
|
|
1936
|
+
symbol: "USDC";
|
|
1937
|
+
address: string;
|
|
1938
|
+
decimals: number;
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
relay?: {
|
|
1942
|
+
chains: {
|
|
1943
|
+
id: number;
|
|
1944
|
+
name: string;
|
|
1945
|
+
disabled: boolean;
|
|
1946
|
+
tokens: {
|
|
1947
|
+
symbol: string;
|
|
1948
|
+
chainId: number;
|
|
1949
|
+
address: string;
|
|
1950
|
+
decimals: number;
|
|
1951
|
+
name?: string | undefined;
|
|
1952
|
+
isNative?: boolean | undefined;
|
|
1953
|
+
}[];
|
|
1954
|
+
displayName: string;
|
|
1955
|
+
depositEnabled: boolean;
|
|
1956
|
+
blockProductionLagging: boolean;
|
|
1957
|
+
vmType?: string | undefined;
|
|
1958
|
+
}[];
|
|
1959
|
+
destination: {
|
|
1960
|
+
symbol: string;
|
|
1961
|
+
chainId: number;
|
|
1962
|
+
address: string;
|
|
1963
|
+
decimals: number;
|
|
1964
|
+
name?: string | undefined;
|
|
1965
|
+
isNative?: boolean | undefined;
|
|
1966
|
+
};
|
|
1967
|
+
source: "relay-sdk";
|
|
1968
|
+
asOf: number;
|
|
1969
|
+
} | undefined;
|
|
1970
|
+
};
|
|
1272
1971
|
environment: "production" | "preproduction" | "staging";
|
|
1273
1972
|
currencies: string[];
|
|
1274
|
-
pricing: {
|
|
1275
|
-
spreadBps: 0;
|
|
1276
|
-
kind: "oracle-market-rate";
|
|
1277
|
-
};
|
|
1278
1973
|
platforms: {
|
|
1279
1974
|
platform: string;
|
|
1280
1975
|
currencies: string[];
|
|
1281
1976
|
payeeHint: string;
|
|
1282
1977
|
requiresIdentityAttestation: boolean;
|
|
1283
1978
|
}[];
|
|
1979
|
+
pricing: {
|
|
1980
|
+
spreadBps: 0;
|
|
1981
|
+
kind: "oracle-market-rate";
|
|
1982
|
+
};
|
|
1284
1983
|
}, {
|
|
1285
1984
|
amount: {
|
|
1286
1985
|
min: string;
|
|
@@ -1293,18 +1992,65 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
|
|
|
1293
1992
|
address: string;
|
|
1294
1993
|
decimals: number;
|
|
1295
1994
|
};
|
|
1995
|
+
destination: {
|
|
1996
|
+
chainId: number;
|
|
1997
|
+
token: {
|
|
1998
|
+
symbol: "USDC";
|
|
1999
|
+
address: string;
|
|
2000
|
+
decimals: number;
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
source: {
|
|
2004
|
+
default: {
|
|
2005
|
+
chainId: number;
|
|
2006
|
+
token: {
|
|
2007
|
+
symbol: "USDC";
|
|
2008
|
+
address: string;
|
|
2009
|
+
decimals: number;
|
|
2010
|
+
};
|
|
2011
|
+
};
|
|
2012
|
+
relay?: {
|
|
2013
|
+
chains: {
|
|
2014
|
+
id: number;
|
|
2015
|
+
name: string;
|
|
2016
|
+
disabled: boolean;
|
|
2017
|
+
tokens: {
|
|
2018
|
+
symbol: string;
|
|
2019
|
+
chainId: number;
|
|
2020
|
+
address: string;
|
|
2021
|
+
decimals: number;
|
|
2022
|
+
name?: string | undefined;
|
|
2023
|
+
isNative?: boolean | undefined;
|
|
2024
|
+
}[];
|
|
2025
|
+
displayName: string;
|
|
2026
|
+
depositEnabled: boolean;
|
|
2027
|
+
blockProductionLagging: boolean;
|
|
2028
|
+
vmType?: string | undefined;
|
|
2029
|
+
}[];
|
|
2030
|
+
destination: {
|
|
2031
|
+
symbol: string;
|
|
2032
|
+
chainId: number;
|
|
2033
|
+
address: string;
|
|
2034
|
+
decimals: number;
|
|
2035
|
+
name?: string | undefined;
|
|
2036
|
+
isNative?: boolean | undefined;
|
|
2037
|
+
};
|
|
2038
|
+
source: "relay-sdk";
|
|
2039
|
+
asOf: number;
|
|
2040
|
+
} | undefined;
|
|
2041
|
+
};
|
|
1296
2042
|
environment: "production" | "preproduction" | "staging";
|
|
1297
2043
|
currencies: string[];
|
|
1298
|
-
pricing: {
|
|
1299
|
-
spreadBps: 0;
|
|
1300
|
-
kind: "oracle-market-rate";
|
|
1301
|
-
};
|
|
1302
2044
|
platforms: {
|
|
1303
2045
|
platform: string;
|
|
1304
2046
|
currencies: string[];
|
|
1305
2047
|
payeeHint: string;
|
|
1306
2048
|
requiresIdentityAttestation: boolean;
|
|
1307
2049
|
}[];
|
|
2050
|
+
pricing: {
|
|
2051
|
+
spreadBps: 0;
|
|
2052
|
+
kind: "oracle-market-rate";
|
|
2053
|
+
};
|
|
1308
2054
|
}>;
|
|
1309
2055
|
declare const cashErrorJsonSchema: z.ZodObject<{
|
|
1310
2056
|
code: z.ZodString;
|