@swapkit/helpers 4.0.0-beta.33 → 4.0.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +2 -2
- package/dist/api/index.js.map +1 -1
- package/dist/{chunk-ganzk321.js → chunk-hm14bfyg.js} +3 -3
- package/dist/{chunk-fazw0jvt.js.map → chunk-hm14bfyg.js.map} +1 -1
- package/dist/chunk-vb4wtm2w.js +4 -0
- package/dist/{chunk-ganzk321.js.map → chunk-vb4wtm2w.js.map} +1 -1
- package/dist/contracts.cjs +4 -0
- package/dist/contracts.cjs.map +10 -0
- package/dist/contracts.js +4 -0
- package/dist/contracts.js.map +10 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +9 -9
- package/dist/index.js +3 -3
- package/dist/index.js.map +9 -9
- package/dist/tokens.cjs +4 -0
- package/dist/tokens.cjs.map +10 -0
- package/dist/tokens.js +4 -0
- package/dist/tokens.js.map +10 -0
- package/dist/types/api/index.d.ts +238 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/microgard/endpoints.d.ts +25 -0
- package/dist/types/api/microgard/endpoints.d.ts.map +1 -0
- package/dist/types/api/microgard/types.d.ts +56 -0
- package/dist/types/api/microgard/types.d.ts.map +1 -0
- package/dist/types/api/midgard/endpoints.d.ts +35 -0
- package/dist/types/api/midgard/endpoints.d.ts.map +1 -0
- package/dist/types/api/midgard/types.d.ts +102 -0
- package/dist/types/api/midgard/types.d.ts.map +1 -0
- package/dist/types/api/swapkitApi/endpoints.d.ts +194 -0
- package/dist/types/api/swapkitApi/endpoints.d.ts.map +1 -0
- package/dist/types/api/swapkitApi/types.d.ts +7238 -0
- package/dist/types/api/swapkitApi/types.d.ts.map +1 -0
- package/dist/types/api/thornode/endpoints.d.ts +31 -0
- package/dist/types/api/thornode/endpoints.d.ts.map +1 -0
- package/dist/types/api/thornode/types.d.ts +264 -0
- package/dist/types/api/thornode/types.d.ts.map +1 -0
- package/dist/types/api/thorswapStatic/endpoints.d.ts +7 -0
- package/dist/types/api/thorswapStatic/endpoints.d.ts.map +1 -0
- package/dist/types/api/thorswapStatic/types.d.ts +22 -0
- package/dist/types/api/thorswapStatic/types.d.ts.map +1 -0
- package/dist/types/contracts.d.ts +2 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/{src/index.ts → dist/types/index.d.ts} +3 -4
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/modules/assetValue.d.ts +71 -0
- package/dist/types/modules/assetValue.d.ts.map +1 -0
- package/dist/types/modules/bigIntArithmetics.d.ts +56 -0
- package/dist/types/modules/bigIntArithmetics.d.ts.map +1 -0
- package/dist/types/modules/feeMultiplier.d.ts +45 -0
- package/dist/types/modules/feeMultiplier.d.ts.map +1 -0
- package/dist/types/modules/requestClient.d.ts +22 -0
- package/dist/types/modules/requestClient.d.ts.map +1 -0
- package/dist/types/modules/swapKitConfig.d.ts +98 -0
- package/dist/types/modules/swapKitConfig.d.ts.map +1 -0
- package/dist/types/modules/swapKitError.d.ts +829 -0
- package/dist/types/modules/swapKitError.d.ts.map +1 -0
- package/dist/types/modules/swapKitNumber.d.ts +7 -0
- package/dist/types/modules/swapKitNumber.d.ts.map +1 -0
- package/dist/types/tokens.d.ts +2 -0
- package/dist/types/tokens.d.ts.map +1 -0
- package/dist/types/types/chains.d.ts +187 -0
- package/dist/types/types/chains.d.ts.map +1 -0
- package/dist/types/types/commonTypes.d.ts +37 -0
- package/dist/types/types/commonTypes.d.ts.map +1 -0
- package/dist/types/types/derivationPath.d.ts +17 -0
- package/dist/types/types/derivationPath.d.ts.map +1 -0
- package/dist/types/types/errors/apiV1.d.ts +2 -0
- package/dist/types/types/errors/apiV1.d.ts.map +1 -0
- package/{src/types/index.ts → dist/types/types/index.d.ts} +1 -1
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/quotes.d.ts +170 -0
- package/dist/types/types/quotes.d.ts.map +1 -0
- package/dist/types/types/radix.d.ts +15 -0
- package/dist/types/types/radix.d.ts.map +1 -0
- package/dist/types/types/sdk.d.ts +35 -0
- package/dist/types/types/sdk.d.ts.map +1 -0
- package/dist/types/types/wallet.d.ts +121 -0
- package/dist/types/types/wallet.d.ts.map +1 -0
- package/dist/types/utils/asset.d.ts +40 -0
- package/dist/types/utils/asset.d.ts.map +1 -0
- package/dist/types/utils/derivationPath.d.ts +19 -0
- package/dist/types/utils/derivationPath.d.ts.map +1 -0
- package/dist/types/utils/explorerUrls.d.ts +10 -0
- package/dist/types/utils/explorerUrls.d.ts.map +1 -0
- package/dist/types/utils/liquidity.d.ts +59 -0
- package/dist/types/utils/liquidity.d.ts.map +1 -0
- package/dist/types/utils/memo.d.ts +65 -0
- package/dist/types/utils/memo.d.ts.map +1 -0
- package/dist/types/utils/others.d.ts +9 -0
- package/dist/types/utils/others.d.ts.map +1 -0
- package/dist/types/utils/validators.d.ts +3 -0
- package/dist/types/utils/validators.d.ts.map +1 -0
- package/dist/types/utils/wallets.d.ts +32 -0
- package/dist/types/utils/wallets.d.ts.map +1 -0
- package/package.json +14 -15
- package/dist/chunk-06q78xy3.js +0 -4
- package/dist/chunk-06q78xy3.js.map +0 -10
- package/dist/chunk-0q5vvg5c.js +0 -5
- package/dist/chunk-0q5vvg5c.js.map +0 -10
- package/dist/chunk-18bxh1n7.js +0 -5
- package/dist/chunk-18bxh1n7.js.map +0 -10
- package/dist/chunk-3qya5ng9.js +0 -4
- package/dist/chunk-3qya5ng9.js.map +0 -10
- package/dist/chunk-4yqymkbp.js +0 -5
- package/dist/chunk-4yqymkbp.js.map +0 -10
- package/dist/chunk-50gpwcq9.js +0 -4
- package/dist/chunk-50gpwcq9.js.map +0 -10
- package/dist/chunk-6atq9cs7.js +0 -4
- package/dist/chunk-6atq9cs7.js.map +0 -10
- package/dist/chunk-6m0d5pv4.js +0 -5
- package/dist/chunk-6m0d5pv4.js.map +0 -10
- package/dist/chunk-8x46g3wq.js +0 -5
- package/dist/chunk-8x46g3wq.js.map +0 -10
- package/dist/chunk-92sk0g47.js +0 -5
- package/dist/chunk-92sk0g47.js.map +0 -10
- package/dist/chunk-9f2b3enk.js +0 -5
- package/dist/chunk-9f2b3enk.js.map +0 -10
- package/dist/chunk-adrafsdk.js +0 -5
- package/dist/chunk-adrafsdk.js.map +0 -10
- package/dist/chunk-b1hang9z.js +0 -5
- package/dist/chunk-b1hang9z.js.map +0 -10
- package/dist/chunk-becdmywt.js +0 -4
- package/dist/chunk-becdmywt.js.map +0 -10
- package/dist/chunk-ehz0t9d1.js +0 -4
- package/dist/chunk-ehz0t9d1.js.map +0 -10
- package/dist/chunk-fazw0jvt.js +0 -4
- package/dist/chunk-fm9ycn0h.js +0 -5
- package/dist/chunk-fm9ycn0h.js.map +0 -10
- package/dist/chunk-g67e2r57.js +0 -4
- package/dist/chunk-g67e2r57.js.map +0 -10
- package/dist/chunk-he3vy8gt.js +0 -4
- package/dist/chunk-he3vy8gt.js.map +0 -10
- package/dist/chunk-jjayk2y5.js +0 -4
- package/dist/chunk-jjayk2y5.js.map +0 -10
- package/dist/chunk-mmyv2vsv.js +0 -5
- package/dist/chunk-mmyv2vsv.js.map +0 -10
- package/dist/chunk-phev7aw7.js +0 -4
- package/dist/chunk-phev7aw7.js.map +0 -10
- package/dist/chunk-rhqk87p2.js +0 -5
- package/dist/chunk-rhqk87p2.js.map +0 -10
- package/dist/chunk-rnv7fdjk.js +0 -4
- package/dist/chunk-rnv7fdjk.js.map +0 -10
- package/dist/chunk-rwh98p1c.js +0 -4
- package/dist/chunk-rwh98p1c.js.map +0 -10
- package/dist/chunk-v9zj2gsj.js +0 -5
- package/dist/chunk-v9zj2gsj.js.map +0 -10
- package/dist/chunk-vv5bgsn8.js +0 -4
- package/dist/chunk-vv5bgsn8.js.map +0 -10
- package/dist/chunk-vwh9jfxn.js +0 -5
- package/dist/chunk-vwh9jfxn.js.map +0 -10
- package/dist/chunk-x0rqy75t.js +0 -4
- package/dist/chunk-x0rqy75t.js.map +0 -10
- package/dist/contracts/index.cjs +0 -4
- package/dist/contracts/index.cjs.map +0 -38
- package/dist/contracts/index.js +0 -4
- package/dist/contracts/index.js.map +0 -38
- package/dist/tokens/index.cjs +0 -4
- package/dist/tokens/index.cjs.map +0 -10
- package/dist/tokens/index.js +0 -4
- package/dist/tokens/index.js.map +0 -10
- package/src/api/index.ts +0 -19
- package/src/api/microgard/endpoints.ts +0 -83
- package/src/api/microgard/types.ts +0 -57
- package/src/api/midgard/endpoints.ts +0 -90
- package/src/api/midgard/types.ts +0 -106
- package/src/api/swapkitApi/endpoints.ts +0 -193
- package/src/api/swapkitApi/types.ts +0 -635
- package/src/api/thornode/endpoints.ts +0 -116
- package/src/api/thornode/types.ts +0 -276
- package/src/api/thorswapStatic/endpoints.ts +0 -46
- package/src/api/thorswapStatic/types.ts +0 -18
- package/src/contracts/abis/avaxGeneric.ts +0 -92
- package/src/contracts/abis/avaxWoofi.ts +0 -145
- package/src/contracts/abis/bscGeneric.ts +0 -106
- package/src/contracts/abis/chainflipGateway.ts +0 -330
- package/src/contracts/abis/erc20.ts +0 -99
- package/src/contracts/abis/ethGeneric.ts +0 -92
- package/src/contracts/abis/mayaEvmVaults.ts +0 -331
- package/src/contracts/abis/pancakeV2.ts +0 -145
- package/src/contracts/abis/pangolin.ts +0 -120
- package/src/contracts/abis/sushiswap.ts +0 -120
- package/src/contracts/abis/tcEthVault.ts +0 -650
- package/src/contracts/abis/traderJoe.ts +0 -120
- package/src/contracts/abis/uniswapV2.ts +0 -120
- package/src/contracts/abis/uniswapV2Leg.ts +0 -128
- package/src/contracts/abis/uniswapV3_100.ts +0 -128
- package/src/contracts/abis/uniswapV3_10000.ts +0 -128
- package/src/contracts/abis/uniswapV3_3000.ts +0 -128
- package/src/contracts/abis/uniswapV3_500.ts +0 -128
- package/src/contracts/index.ts +0 -95
- package/src/contracts/routers/index.ts +0 -58
- package/src/contracts/routers/kyber.ts +0 -402
- package/src/contracts/routers/oneinch.ts +0 -2188
- package/src/contracts/routers/pancakeswap.ts +0 -340
- package/src/contracts/routers/pangolin.ts +0 -340
- package/src/contracts/routers/sushiswap.ts +0 -340
- package/src/contracts/routers/traderJoe.ts +0 -340
- package/src/contracts/routers/uniswapv2.ts +0 -340
- package/src/contracts/routers/uniswapv3.ts +0 -254
- package/src/contracts/routers/woofi.ts +0 -171
- package/src/modules/__tests__/assetValue.test.ts +0 -877
- package/src/modules/__tests__/bigIntArithmetics.test.ts +0 -30
- package/src/modules/__tests__/swapKitConfig.test.ts +0 -37
- package/src/modules/__tests__/swapKitNumber.test.ts +0 -560
- package/src/modules/assetValue.ts +0 -387
- package/src/modules/bigIntArithmetics.ts +0 -436
- package/src/modules/feeMultiplier.ts +0 -87
- package/src/modules/requestClient.ts +0 -83
- package/src/modules/swapKitConfig.ts +0 -143
- package/src/modules/swapKitError.ts +0 -442
- package/src/modules/swapKitNumber.ts +0 -16
- package/src/tokens/index.ts +0 -15
- package/src/tokens/lists/camelot_v3.ts +0 -16060
- package/src/tokens/lists/caviar_v1.ts +0 -1704
- package/src/tokens/lists/chainflip.ts +0 -104
- package/src/tokens/lists/index.ts +0 -14
- package/src/tokens/lists/jupiter.ts +0 -33563
- package/src/tokens/lists/mayachain.ts +0 -509
- package/src/tokens/lists/near.ts +0 -458
- package/src/tokens/lists/oneinch.ts +0 -15006
- package/src/tokens/lists/openocean_v2.ts +0 -12434
- package/src/tokens/lists/pancakeswap.ts +0 -6136
- package/src/tokens/lists/pangolin_v1.ts +0 -75
- package/src/tokens/lists/sushiswap_v2.ts +0 -595
- package/src/tokens/lists/thorchain.ts +0 -748
- package/src/tokens/lists/traderjoe_v2.ts +0 -594
- package/src/tokens/lists/uniswap_v2.ts +0 -11484
- package/src/tokens/lists/uniswap_v3.ts +0 -19424
- package/src/types/chains.ts +0 -555
- package/src/types/commonTypes.ts +0 -58
- package/src/types/derivationPath.ts +0 -58
- package/src/types/errors/apiV1.ts +0 -0
- package/src/types/quotes.ts +0 -172
- package/src/types/radix.ts +0 -14
- package/src/types/sdk.ts +0 -42
- package/src/types/tokens.ts +0 -17
- package/src/types/wallet.ts +0 -166
- package/src/utils/__tests__/asset.test.ts +0 -193
- package/src/utils/__tests__/derivationPath.test.ts +0 -16
- package/src/utils/__tests__/memo.test.ts +0 -103
- package/src/utils/__tests__/others.test.ts +0 -88
- package/src/utils/__tests__/validators.test.ts +0 -24
- package/src/utils/asset.ts +0 -231
- package/src/utils/derivationPath.ts +0 -98
- package/src/utils/liquidity.ts +0 -179
- package/src/utils/memo.ts +0 -143
- package/src/utils/others.ts +0 -86
- package/src/utils/plugin.ts +0 -13
- package/src/utils/tokens.ts +0 -73
- package/src/utils/validators.ts +0 -32
- package/src/utils/wallets.ts +0 -276
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { type Chain, type ProviderName } from "@swapkit/helpers";
|
|
2
|
+
import { type BrokerDepositChannelParams, type NearDepositChannelParams, type PriceRequest, type QuoteRequest, type TokenListProvidersResponse, type TokensResponseV2, type TrackerParams, type TrackerResponse } from "./types";
|
|
3
|
+
export declare function getTrackerDetails(json: TrackerParams): Promise<TrackerResponse>;
|
|
4
|
+
export declare function getSwapQuote(json: QuoteRequest): Promise<{
|
|
5
|
+
quoteId: string;
|
|
6
|
+
routes: {
|
|
7
|
+
fees: {
|
|
8
|
+
chain: string;
|
|
9
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
10
|
+
asset: string;
|
|
11
|
+
protocol: ProviderName;
|
|
12
|
+
amount: string;
|
|
13
|
+
}[];
|
|
14
|
+
meta: {
|
|
15
|
+
tags: import("./types").PriorityLabel[];
|
|
16
|
+
chainflip?: {
|
|
17
|
+
sellAsset: {
|
|
18
|
+
chain: string;
|
|
19
|
+
asset: string;
|
|
20
|
+
};
|
|
21
|
+
buyAsset: {
|
|
22
|
+
chain: string;
|
|
23
|
+
asset: string;
|
|
24
|
+
};
|
|
25
|
+
destinationAddress: string;
|
|
26
|
+
channelMetadata?: {
|
|
27
|
+
message?: string | undefined;
|
|
28
|
+
cfParameters?: string | undefined;
|
|
29
|
+
gasBudget?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
affiliateFees?: {
|
|
32
|
+
brokerAddress: string;
|
|
33
|
+
feeBps: number;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
refundParameters?: {
|
|
36
|
+
minPrice?: string | undefined;
|
|
37
|
+
refundAddress?: string | undefined;
|
|
38
|
+
retryDuration?: number | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
dcaParameters?: {
|
|
41
|
+
chunkInterval?: number | undefined;
|
|
42
|
+
numberOfChunks?: number | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
brokerCommissionBps?: number | undefined;
|
|
45
|
+
maxBoostFeeBps?: number | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
near?: {
|
|
48
|
+
sellAsset: string;
|
|
49
|
+
buyAsset: string;
|
|
50
|
+
sellAmount: string;
|
|
51
|
+
sourceAddress: string;
|
|
52
|
+
destinationAddress: string;
|
|
53
|
+
slippage: number;
|
|
54
|
+
affiliateFees?: {
|
|
55
|
+
feeBps: number;
|
|
56
|
+
nearId: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
affiliate?: string | undefined;
|
|
60
|
+
affiliateFee?: string | undefined;
|
|
61
|
+
referrer?: string | undefined;
|
|
62
|
+
assets?: {
|
|
63
|
+
asset: string;
|
|
64
|
+
price: number;
|
|
65
|
+
image: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
streamingInterval?: number | undefined;
|
|
68
|
+
maxStreamingQuantity?: number | undefined;
|
|
69
|
+
priceImpact?: number | undefined;
|
|
70
|
+
approvalAddress?: string | undefined;
|
|
71
|
+
txType?: import("./types").RouteQuoteTxType | undefined;
|
|
72
|
+
};
|
|
73
|
+
sellAsset: string;
|
|
74
|
+
buyAsset: string;
|
|
75
|
+
sellAmount: string;
|
|
76
|
+
providers: ProviderName[];
|
|
77
|
+
sourceAddress: string;
|
|
78
|
+
destinationAddress: string;
|
|
79
|
+
legs: {
|
|
80
|
+
provider: ProviderName;
|
|
81
|
+
sellAsset: string;
|
|
82
|
+
buyAsset: string;
|
|
83
|
+
sellAmount: string;
|
|
84
|
+
buyAmount: string;
|
|
85
|
+
buyAmountMaxSlippage: string;
|
|
86
|
+
fees?: {
|
|
87
|
+
chain: string;
|
|
88
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
89
|
+
asset: string;
|
|
90
|
+
protocol: ProviderName;
|
|
91
|
+
amount: string;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
}[];
|
|
94
|
+
expectedBuyAmount: string;
|
|
95
|
+
expectedBuyAmountMaxSlippage: string;
|
|
96
|
+
totalSlippageBps: number;
|
|
97
|
+
warnings: {
|
|
98
|
+
code: import("@swapkit/helpers").WarningCodeEnum;
|
|
99
|
+
display: string;
|
|
100
|
+
tooltip?: string | undefined;
|
|
101
|
+
}[];
|
|
102
|
+
memo?: string | undefined;
|
|
103
|
+
tx?: string | {
|
|
104
|
+
to: string;
|
|
105
|
+
value: string;
|
|
106
|
+
from: string;
|
|
107
|
+
data: string;
|
|
108
|
+
} | {
|
|
109
|
+
memo: string;
|
|
110
|
+
chainId: import("@swapkit/helpers").ChainId;
|
|
111
|
+
accountNumber: number;
|
|
112
|
+
sequence: number;
|
|
113
|
+
msgs: {
|
|
114
|
+
typeUrl: string;
|
|
115
|
+
value?: unknown;
|
|
116
|
+
}[];
|
|
117
|
+
fee: {
|
|
118
|
+
amount: {
|
|
119
|
+
amount: string;
|
|
120
|
+
denom: string;
|
|
121
|
+
}[];
|
|
122
|
+
gas: string;
|
|
123
|
+
};
|
|
124
|
+
} | undefined;
|
|
125
|
+
estimatedTime?: {
|
|
126
|
+
total: number;
|
|
127
|
+
inbound?: number | undefined;
|
|
128
|
+
outbound?: number | undefined;
|
|
129
|
+
swap?: number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
txType?: import("./types").RouteQuoteTxType | undefined;
|
|
132
|
+
targetAddress?: string | undefined;
|
|
133
|
+
inboundAddress?: string | undefined;
|
|
134
|
+
expiration?: string | undefined;
|
|
135
|
+
}[];
|
|
136
|
+
error?: string | undefined;
|
|
137
|
+
providerErrors?: {
|
|
138
|
+
message?: string | undefined;
|
|
139
|
+
provider?: ProviderName | undefined;
|
|
140
|
+
errorCode?: import("@swapkit/helpers").ErrorCode | undefined;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export declare function getChainBalance<T extends Chain>({ chain, address, scamFilter, }: {
|
|
144
|
+
chain: T;
|
|
145
|
+
address: string;
|
|
146
|
+
scamFilter?: boolean;
|
|
147
|
+
}): Promise<{
|
|
148
|
+
symbol: string;
|
|
149
|
+
chain: Chain;
|
|
150
|
+
identifier: string;
|
|
151
|
+
ticker: string;
|
|
152
|
+
decimal: number;
|
|
153
|
+
value: string;
|
|
154
|
+
}[]>;
|
|
155
|
+
export declare function getTokenListProviders(): Promise<TokenListProvidersResponse>;
|
|
156
|
+
export declare function getTokenList(provider: ProviderName): Promise<TokensResponseV2>;
|
|
157
|
+
export declare function getPrice(body: PriceRequest): Promise<{
|
|
158
|
+
identifier?: string | undefined;
|
|
159
|
+
provider?: string | undefined;
|
|
160
|
+
timestamp?: number | undefined;
|
|
161
|
+
cg?: {
|
|
162
|
+
name: string;
|
|
163
|
+
id: string;
|
|
164
|
+
market_cap: number;
|
|
165
|
+
price_change_24h_usd: number;
|
|
166
|
+
price_change_percentage_24h_usd: number;
|
|
167
|
+
sparkline_in_7d: number[];
|
|
168
|
+
timestamp: string;
|
|
169
|
+
total_volume: number;
|
|
170
|
+
} | undefined;
|
|
171
|
+
price_usd?: number | undefined;
|
|
172
|
+
}[]>;
|
|
173
|
+
export declare function getGasRate(): Promise<{
|
|
174
|
+
chainId: string;
|
|
175
|
+
value: string;
|
|
176
|
+
id: number;
|
|
177
|
+
unit: string;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
}[]>;
|
|
180
|
+
export declare function getChainflipDepositChannel(body: BrokerDepositChannelParams): Promise<{
|
|
181
|
+
channelId: string;
|
|
182
|
+
depositAddress: string;
|
|
183
|
+
}>;
|
|
184
|
+
export declare function getNearDepositChannel(body: NearDepositChannelParams): Promise<{
|
|
185
|
+
buyAsset: string;
|
|
186
|
+
depositAddress: string;
|
|
187
|
+
depositAsset: string;
|
|
188
|
+
depositAmount: string;
|
|
189
|
+
buyAssetAmount: string;
|
|
190
|
+
buyAssetAmountMaxSlippage: string;
|
|
191
|
+
deadline?: string | undefined;
|
|
192
|
+
tx?: unknown;
|
|
193
|
+
}>;
|
|
194
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../src/api/swapkitApi/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EAGV,KAAK,YAAY,EAKlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,KAAK,0BAA0B,EAK/B,KAAK,wBAAwB,EAG7B,KAAK,YAAY,EAGjB,KAAK,YAAY,EAGjB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AASjB,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,4BAEpD;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBpD;AAED,wBAAsB,eAAe,CAAC,CAAC,SAAS,KAAK,EAAE,EACrD,KAAK,EACL,OAAO,EACP,UAAiB,GAClB,EAAE;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;;;KAMrD;AAED,wBAAgB,qBAAqB,wCAGpC;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,6BAGlD;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;KAiBhD;AAED,wBAAsB,UAAU;;;;;;KAe/B;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,0BAA0B;;;GAqBhF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,wBAAwB;;;;;;;;;GAqBzE"}
|