@swapkit/plugins 1.0.0-beta.8 → 4.0.0-beta.35

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/src/kado/types.ts DELETED
@@ -1,225 +0,0 @@
1
- import type { SupportedKadoChain } from "./helpers";
2
-
3
- export const KadoSupportedFiatCurrencies = [
4
- "USD",
5
- "CAD",
6
- "GBP",
7
- "EUR",
8
- "MXN",
9
- "COP",
10
- "INR",
11
- "CHF",
12
- "AUD",
13
- "ARS",
14
- "BRL",
15
- "CLP",
16
- "JPY",
17
- "KRW",
18
- "PEN",
19
- "PHP",
20
- "SGD",
21
- "TRY",
22
- "UYU",
23
- "TWD",
24
- "VND",
25
- "CRC",
26
- "SEK",
27
- "PLN",
28
- "DKK",
29
- "NOK",
30
- "NZD",
31
- ] as const;
32
-
33
- export type KadoFiatCurrency = (typeof KadoSupportedFiatCurrencies)[number];
34
-
35
- export type KadoFiatMethod =
36
- | "ach"
37
- | "debit_card"
38
- | "credit_card"
39
- | "apple_pay_credit"
40
- | "apple_pay_debit"
41
- | "wire"
42
- | "sepa"
43
- | "pix"
44
- | "koywe";
45
-
46
- export type KadoQuoteRequest = {
47
- transactionType: "buy" | "sell";
48
- fiatMethod: KadoFiatMethod;
49
- partner: "fortress";
50
- amount: string;
51
- asset: string;
52
- blockchain: string;
53
- currency: KadoFiatCurrency;
54
- };
55
-
56
- export type KadoAsset = {
57
- _id: string;
58
- name: string;
59
- description: string;
60
- label: string;
61
- symbol: string;
62
- supportedProviders: string[];
63
- stablecoin: boolean;
64
- liveOnRamp: boolean;
65
- createdAt: string;
66
- updatedAt: string;
67
- __v: number;
68
- priority: number;
69
- displayPrecision: number;
70
- usesAvaxRouter: boolean;
71
- squidChainId: string;
72
- coingeckoId: string;
73
- usesAxelarBridge: boolean;
74
- squidAssetId: string;
75
- address: string;
76
- blockExplorerURI: string;
77
- decimals: number;
78
- officialChainId: keyof typeof SupportedKadoChain;
79
- precision: number;
80
- rampProducts: string[];
81
- wallets: string[];
82
- rpcURI: string;
83
- usesPolygonFulfillment: boolean;
84
- usesOsmoRouter: boolean;
85
- ibcChannelIdOffRamp: number;
86
- ibcChannelIdOnRamp: number;
87
- osmoPfmChannel: number;
88
- osmoPfmReceiver: string;
89
- ibcDenom: string;
90
- isNative: boolean;
91
- avgOffRampTimeInSeconds: number;
92
- avgOnRampTimeInSeconds: number;
93
- providers: string[];
94
- trustekAssetId: string;
95
- trustekNetworkId: string;
96
- kycLevels: string[];
97
- };
98
-
99
- export type KadoBlockchainsResponse = {
100
- success: boolean;
101
- message: string;
102
- data: {
103
- blockchains: {
104
- _id: string;
105
- supportedEnvironment: string;
106
- network: string;
107
- origin: string;
108
- label: string;
109
- associatedAssets: KadoAsset[];
110
- avgTransactionTimeSeconds: number;
111
- usesAvaxRouter: boolean;
112
- liveOnRamp: boolean;
113
- createdAt: string;
114
- updatedAt: string;
115
- __v: number;
116
- priority: number;
117
- }[];
118
- };
119
- };
120
-
121
- export type KadoAssetsResponse = {
122
- success: boolean;
123
- message: string;
124
- data: {
125
- assets: {
126
- _id: string;
127
- name: string;
128
- description: string;
129
- label: string;
130
- symbol: string;
131
- supportedProviders: string[];
132
- stablecoin: boolean;
133
- liveOnRamp: boolean;
134
- createdAt: string;
135
- updatedAt: string;
136
- __v: number;
137
- priority: number;
138
- }[];
139
- };
140
- };
141
-
142
- export type KadoQuoteResponse = {
143
- success: boolean;
144
- message: string;
145
- data: {
146
- request: {
147
- transactionType: string;
148
- fiatMethod: KadoFiatMethod;
149
- partner: string;
150
- amount: number;
151
- asset: string;
152
- blockchain: keyof typeof SupportedKadoChain;
153
- currency: KadoFiatCurrency;
154
- reverse: false;
155
- ipCountry: string;
156
- };
157
- quote: {
158
- asset: string;
159
- baseAmount: {
160
- amount: number;
161
- currency: KadoFiatCurrency;
162
- };
163
- price: {
164
- amount: number;
165
- price: number;
166
- symbol: string;
167
- unit: string;
168
- };
169
- bridgeFee: {
170
- amount: number;
171
- currency: KadoFiatCurrency;
172
- originalAmount: number;
173
- promotionModifier: number;
174
- };
175
- receiveAmountAfterFees: {
176
- originalAmount: number;
177
- amount: number;
178
- currency: KadoFiatCurrency;
179
- };
180
- receiveUnitCountAfterFees: {
181
- amount: number;
182
- currency: KadoFiatCurrency;
183
- };
184
- feeType: string;
185
- minValue: {
186
- amount: number;
187
- unit: string;
188
- };
189
- maxValue: {
190
- amount: number;
191
- unit: string;
192
- };
193
- receive: {
194
- amount: number;
195
- originalAmount: number;
196
- symbol: string;
197
- unit: string;
198
- unitCount: number;
199
- };
200
- networkFee: {
201
- amount: number;
202
- currency: KadoFiatCurrency;
203
- originalAmount: number;
204
- promotionModifier: number;
205
- };
206
- processingFee: {
207
- amount: number;
208
- currency: KadoFiatCurrency;
209
- originalAmount: number;
210
- promotionModifier: number;
211
- };
212
- totalFee: {
213
- amount: number;
214
- currency: KadoFiatCurrency;
215
- originalAmount: number;
216
- };
217
- smartContractFee: {
218
- amount: number;
219
- currency: KadoFiatCurrency;
220
- originalAmount: number;
221
- promotionModifier: number;
222
- };
223
- };
224
- };
225
- };