@coinlist-co/react 0.6.0 → 0.9.0
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/{chunk-5E3P7AMH.js → chunk-AAER5LOL.js} +3 -1
- package/dist/chunk-AAER5LOL.js.map +1 -0
- package/dist/chunk-I5YTJ5SL.js +644 -0
- package/dist/chunk-I5YTJ5SL.js.map +1 -0
- package/dist/{chunk-5C4TEVM7.js → chunk-MKCOK3DF.js} +68 -57
- package/dist/chunk-MKCOK3DF.js.map +1 -0
- package/dist/chunk-Z2HAA2TI.js +768 -0
- package/dist/chunk-Z2HAA2TI.js.map +1 -0
- package/dist/client/index.cjs +2895 -230
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +902 -29
- package/dist/client/index.d.ts +902 -29
- package/dist/client/index.js +1980 -211
- package/dist/client/index.js.map +1 -1
- package/dist/collections-B84Vw55t.d.cts +28 -0
- package/dist/collections-BQbFJS3g.d.ts +28 -0
- package/dist/requirement-C2w45Q11.d.cts +969 -0
- package/dist/requirement-C2w45Q11.d.ts +969 -0
- package/dist/server/index.cjs +521 -37
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +116 -9
- package/dist/server/index.d.ts +116 -9
- package/dist/server/index.js +95 -28
- package/dist/server/index.js.map +1 -1
- package/dist/shared/index.cjs +1245 -72
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +624 -3
- package/dist/shared/index.d.ts +624 -3
- package/dist/shared/index.js +216 -5
- package/dist/shared/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/chunk-5C4TEVM7.js.map +0 -1
- package/dist/chunk-5E3P7AMH.js.map +0 -1
- package/dist/chunk-7SB2GKEU.js +0 -311
- package/dist/chunk-7SB2GKEU.js.map +0 -1
- package/dist/chunk-UEJVCU2J.js +0 -43
- package/dist/chunk-UEJVCU2J.js.map +0 -1
- package/dist/requirement-Dk6nYN1c.d.cts +0 -389
- package/dist/requirement-Dk6nYN1c.d.ts +0 -389
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as BlockchainAmount, at as SwapPreview, F as AssetDecimals } from './requirement-C2w45Q11.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A read-only quote for a swap as domain amounts: how much goes in, the
|
|
5
|
+
* protocol fee, and how much would come out. Derived from the raw
|
|
6
|
+
* {@link SwapPreview} the swap contract returns.
|
|
7
|
+
*/
|
|
8
|
+
type SwapQuote = {
|
|
9
|
+
inputTokenAmount: BlockchainAmount;
|
|
10
|
+
fee: BlockchainAmount;
|
|
11
|
+
outputTokenAmount: BlockchainAmount;
|
|
12
|
+
};
|
|
13
|
+
declare const SwapQuote: {
|
|
14
|
+
/**
|
|
15
|
+
* Assembles a {@link SwapQuote} from a raw contract {@link SwapPreview}. The
|
|
16
|
+
* input and fee are denominated in the input token; the output in the output
|
|
17
|
+
* token.
|
|
18
|
+
*/
|
|
19
|
+
fromPreview: (preview: SwapPreview, inputDecimals: AssetDecimals, outputDecimals: AssetDecimals) => SwapQuote;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* An array guaranteed to hold at least one element. Use it where an empty list
|
|
24
|
+
* would be a bug (e.g. the set of assets a swap always offers).
|
|
25
|
+
*/
|
|
26
|
+
type NonEmptyArray<T> = [T, ...T[]];
|
|
27
|
+
|
|
28
|
+
export { type NonEmptyArray as N, SwapQuote as S };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as BlockchainAmount, at as SwapPreview, F as AssetDecimals } from './requirement-C2w45Q11.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A read-only quote for a swap as domain amounts: how much goes in, the
|
|
5
|
+
* protocol fee, and how much would come out. Derived from the raw
|
|
6
|
+
* {@link SwapPreview} the swap contract returns.
|
|
7
|
+
*/
|
|
8
|
+
type SwapQuote = {
|
|
9
|
+
inputTokenAmount: BlockchainAmount;
|
|
10
|
+
fee: BlockchainAmount;
|
|
11
|
+
outputTokenAmount: BlockchainAmount;
|
|
12
|
+
};
|
|
13
|
+
declare const SwapQuote: {
|
|
14
|
+
/**
|
|
15
|
+
* Assembles a {@link SwapQuote} from a raw contract {@link SwapPreview}. The
|
|
16
|
+
* input and fee are denominated in the input token; the output in the output
|
|
17
|
+
* token.
|
|
18
|
+
*/
|
|
19
|
+
fromPreview: (preview: SwapPreview, inputDecimals: AssetDecimals, outputDecimals: AssetDecimals) => SwapQuote;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* An array guaranteed to hold at least one element. Use it where an empty list
|
|
24
|
+
* would be a bug (e.g. the set of assets a swap always offers).
|
|
25
|
+
*/
|
|
26
|
+
type NonEmptyArray<T> = [T, ...T[]];
|
|
27
|
+
|
|
28
|
+
export { type NonEmptyArray as N, SwapQuote as S };
|