@kimafinance/kima-transaction-api 1.4.2 → 1.4.3

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/types.ts ADDED
@@ -0,0 +1,78 @@
1
+
2
+ export enum SupportedNetworks {
3
+ ETHEREUM = "ETH",
4
+ POLYGON = "POL",
5
+ AVALANCHE = "AVX",
6
+ SOLANA = "SOL",
7
+ BSC = "BSC",
8
+ ARBITRIUM = "ARB",
9
+ OPTIMISM = "OPT",
10
+ POLYGON_ZKEVM = "ZKE",
11
+ BITCOIN = "BTC",
12
+ BERA = "BERA",
13
+ CFX = "CFX",
14
+ TRON = "TRX",
15
+ FIAT = "FIAT",
16
+ CREDITCARD = "CC",
17
+ BASE = "BASE",
18
+ }
19
+
20
+ export enum CurrencyOptions {
21
+ USDT = "USDT",
22
+ USDC = "USDC",
23
+ USDK = "USDK",
24
+ EURC = "EURC",
25
+ EURK = "EURK",
26
+ EUR = "EUR",
27
+ USD = "USD",
28
+ }
29
+
30
+ export interface RequestHtlcReclaimProps {
31
+ senderAddress: string;
32
+ txHash: string;
33
+ }
34
+
35
+ export interface RequestHtlcLockProps {
36
+ fromAddress: string;
37
+ senderPubkey: string;
38
+ amount: string;
39
+ htlcTimeout: string;
40
+ txHash: string;
41
+ htlcAddress: string;
42
+ }
43
+
44
+ export interface RequestTransferTxProps {
45
+ originChain: SupportedNetworks;
46
+ originAddress: string;
47
+ targetChain: SupportedNetworks;
48
+ targetAddress: string;
49
+ originSymbol: CurrencyOptions;
50
+ targetSymbol: CurrencyOptions;
51
+ amount: string; // number in whole units i.e. "12.34"
52
+ fee: string; // number in whole units i.e "0.061234"
53
+ htlcCreationHash?: string;
54
+ htlcCreationVout?: number;
55
+ htlcExpirationTimestamp?: string;
56
+ htlcVersion?: string;
57
+ senderPubKey?: Uint8Array;
58
+ options: string;
59
+ }
60
+
61
+ export interface RequestSwapTxProps {
62
+ originChain: SupportedNetworks;
63
+ originAddress: string;
64
+ targetChain: SupportedNetworks;
65
+ targetAddress: string;
66
+ originSymbol: CurrencyOptions;
67
+ targetSymbol: CurrencyOptions;
68
+ amountIn: string;
69
+ amountOut: string;
70
+ fee: string;
71
+ dex: string;
72
+ slippage: string;
73
+ options: string;
74
+ }
75
+
76
+ function sleep(ms: number) {
77
+ return new Promise((resolve) => setTimeout(resolve, ms));
78
+ }
File without changes
File without changes
File without changes