@coinlist-co/react 0.6.0 → 0.10.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.
Files changed (39) hide show
  1. package/dist/{chunk-5C4TEVM7.js → chunk-7BJ2HAG7.js} +62 -92
  2. package/dist/chunk-7BJ2HAG7.js.map +1 -0
  3. package/dist/{chunk-5E3P7AMH.js → chunk-AAER5LOL.js} +3 -1
  4. package/dist/chunk-AAER5LOL.js.map +1 -0
  5. package/dist/chunk-GSSAB4K5.js +644 -0
  6. package/dist/chunk-GSSAB4K5.js.map +1 -0
  7. package/dist/chunk-TUZKKFNW.js +836 -0
  8. package/dist/chunk-TUZKKFNW.js.map +1 -0
  9. package/dist/client/index.cjs +3203 -412
  10. package/dist/client/index.cjs.map +1 -1
  11. package/dist/client/index.d.cts +996 -41
  12. package/dist/client/index.d.ts +996 -41
  13. package/dist/client/index.js +2069 -208
  14. package/dist/client/index.js.map +1 -1
  15. package/dist/collections-CJ24dOda.d.cts +28 -0
  16. package/dist/collections-ZYLKp8JB.d.ts +28 -0
  17. package/dist/requirement-CDi5NJI8.d.cts +1036 -0
  18. package/dist/requirement-CDi5NJI8.d.ts +1036 -0
  19. package/dist/server/index.cjs +588 -85
  20. package/dist/server/index.cjs.map +1 -1
  21. package/dist/server/index.d.cts +117 -17
  22. package/dist/server/index.d.ts +117 -17
  23. package/dist/server/index.js +92 -40
  24. package/dist/server/index.js.map +1 -1
  25. package/dist/shared/index.cjs +1334 -91
  26. package/dist/shared/index.cjs.map +1 -1
  27. package/dist/shared/index.d.cts +624 -3
  28. package/dist/shared/index.d.ts +624 -3
  29. package/dist/shared/index.js +220 -5
  30. package/dist/shared/index.js.map +1 -1
  31. package/package.json +7 -3
  32. package/dist/chunk-5C4TEVM7.js.map +0 -1
  33. package/dist/chunk-5E3P7AMH.js.map +0 -1
  34. package/dist/chunk-7SB2GKEU.js +0 -311
  35. package/dist/chunk-7SB2GKEU.js.map +0 -1
  36. package/dist/chunk-UEJVCU2J.js +0 -43
  37. package/dist/chunk-UEJVCU2J.js.map +0 -1
  38. package/dist/requirement-Dk6nYN1c.d.cts +0 -389
  39. package/dist/requirement-Dk6nYN1c.d.ts +0 -389
@@ -0,0 +1,28 @@
1
+ import { d as BlockchainAmount, az as SwapPreview, G as AssetDecimals } from './requirement-CDi5NJI8.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 { d as BlockchainAmount, az as SwapPreview, G as AssetDecimals } from './requirement-CDi5NJI8.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 };