@orbs-network/spot-react 2.0.1 → 2.1.1

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 (141) hide show
  1. package/README.md +277 -148
  2. package/dist/spot-react/src/context/client-error-notice.d.ts +7 -0
  3. package/dist/spot-react/src/context/client-error-notice.d.ts.map +1 -0
  4. package/dist/spot-react/src/context/create-spot-store.d.ts +53 -0
  5. package/dist/spot-react/src/context/create-spot-store.d.ts.map +1 -0
  6. package/dist/spot-react/src/context/error-boundary.d.ts +7 -0
  7. package/dist/spot-react/src/context/error-boundary.d.ts.map +1 -0
  8. package/dist/spot-react/src/context/order-form-context.d.ts +7 -0
  9. package/dist/spot-react/src/context/order-form-context.d.ts.map +1 -0
  10. package/dist/spot-react/src/context/spot-form-synchronizer.d.ts +14 -0
  11. package/dist/spot-react/src/context/spot-form-synchronizer.d.ts.map +1 -0
  12. package/dist/spot-react/src/context/spot-provider.d.ts +3 -0
  13. package/dist/spot-react/src/context/spot-provider.d.ts.map +1 -0
  14. package/dist/spot-react/src/context/spot-runtime-context.d.ts +33 -0
  15. package/dist/spot-react/src/context/spot-runtime-context.d.ts.map +1 -0
  16. package/dist/spot-react/src/context/spot-store-context.d.ts +10 -0
  17. package/dist/spot-react/src/context/spot-store-context.d.ts.map +1 -0
  18. package/dist/spot-react/src/context/use-client.d.ts +10 -0
  19. package/dist/spot-react/src/context/use-client.d.ts.map +1 -0
  20. package/dist/spot-react/src/context/use-spot-analytics.d.ts +3 -0
  21. package/dist/spot-react/src/context/use-spot-analytics.d.ts.map +1 -0
  22. package/dist/spot-react/src/context/use-spot-provider-state.d.ts +11 -0
  23. package/dist/spot-react/src/context/use-spot-provider-state.d.ts.map +1 -0
  24. package/dist/spot-react/src/execute-order.d.ts +25 -0
  25. package/dist/spot-react/src/execute-order.d.ts.map +1 -0
  26. package/dist/spot-react/src/execution-state.d.ts +19 -0
  27. package/dist/spot-react/src/execution-state.d.ts.map +1 -0
  28. package/dist/spot-react/src/hooks/helper-hooks.d.ts +0 -547
  29. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
  30. package/dist/spot-react/src/hooks/order-hooks.d.ts +28 -18
  31. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
  32. package/dist/spot-react/src/hooks/use-cancel-order.d.ts +5 -4
  33. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
  34. package/dist/spot-react/src/hooks/use-disclaimer.d.ts.map +1 -1
  35. package/dist/spot-react/src/hooks/use-duration.d.ts +3 -20
  36. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -1
  37. package/dist/spot-react/src/hooks/use-execution.d.ts +30 -0
  38. package/dist/spot-react/src/hooks/use-execution.d.ts.map +1 -0
  39. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +3 -22
  40. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -1
  41. package/dist/spot-react/src/hooks/use-history-order.d.ts +51 -28
  42. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -1
  43. package/dist/spot-react/src/hooks/use-input-errors.d.ts +1 -1
  44. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -1
  45. package/dist/spot-react/src/hooks/use-limit-price.d.ts +14 -21
  46. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
  47. package/dist/spot-react/src/hooks/use-output-amount.d.ts +5 -0
  48. package/dist/spot-react/src/hooks/use-output-amount.d.ts.map +1 -0
  49. package/dist/spot-react/src/hooks/use-price-display.d.ts +10 -0
  50. package/dist/spot-react/src/hooks/use-price-display.d.ts.map +1 -0
  51. package/dist/spot-react/src/hooks/use-submit-order.d.ts +1 -2
  52. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
  53. package/dist/spot-react/src/hooks/use-swap-execution.d.ts +9 -10
  54. package/dist/spot-react/src/hooks/use-swap-execution.d.ts.map +1 -1
  55. package/dist/spot-react/src/hooks/use-trades.d.ts +7 -17
  56. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -1
  57. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +13 -20
  58. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
  59. package/dist/spot-react/src/index.d.ts +20 -11
  60. package/dist/spot-react/src/index.d.ts.map +1 -1
  61. package/dist/spot-react/src/order-history-data.d.ts +14 -0
  62. package/dist/spot-react/src/order-history-data.d.ts.map +1 -0
  63. package/dist/spot-react/src/types.d.ts +108 -123
  64. package/dist/spot-react/src/types.d.ts.map +1 -1
  65. package/dist/spot-react.js +1627 -6489
  66. package/dist/spot-react.umd.cjs +1 -64
  67. package/package.json +8 -13
  68. package/dist/spot-react/package.json.d.ts +0 -56
  69. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +0 -5
  70. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +0 -1
  71. package/dist/spot-react/src/hooks/use-build-order-info.d.ts +0 -62
  72. package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +0 -1
  73. package/dist/spot-react/src/hooks/use-deadline.d.ts +0 -2
  74. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +0 -1
  75. package/dist/spot-react/src/hooks/use-default-values.d.ts +0 -3
  76. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +0 -1
  77. package/dist/spot-react/src/hooks/use-dst-amount.d.ts +0 -11
  78. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +0 -1
  79. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts +0 -7
  80. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts.map +0 -1
  81. package/dist/spot-react/src/hooks/use-fees.d.ts +0 -7
  82. package/dist/spot-react/src/hooks/use-fees.d.ts.map +0 -1
  83. package/dist/spot-react/src/hooks/use-form-data.d.ts +0 -57
  84. package/dist/spot-react/src/hooks/use-form-data.d.ts.map +0 -1
  85. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +0 -16
  86. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +0 -1
  87. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +0 -22
  88. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +0 -1
  89. package/dist/spot-react/src/hooks/use-partner-chains.d.ts +0 -2
  90. package/dist/spot-react/src/hooks/use-partner-chains.d.ts.map +0 -1
  91. package/dist/spot-react/src/hooks/use-price-panel.d.ts +0 -21
  92. package/dist/spot-react/src/hooks/use-price-panel.d.ts.map +0 -1
  93. package/dist/spot-react/src/hooks/use-repermit-data.d.ts +0 -7
  94. package/dist/spot-react/src/hooks/use-repermit-data.d.ts.map +0 -1
  95. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts +0 -20
  96. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts.map +0 -1
  97. package/dist/spot-react/src/hooks/use-spot.d.ts +0 -40
  98. package/dist/spot-react/src/hooks/use-spot.d.ts.map +0 -1
  99. package/dist/spot-react/src/hooks/use-src-amount.d.ts +0 -6
  100. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +0 -1
  101. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +0 -28
  102. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +0 -1
  103. package/dist/spot-react/src/hooks/use-trade-price.d.ts +0 -2
  104. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +0 -1
  105. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +0 -23
  106. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +0 -1
  107. package/dist/spot-react/src/spot-context.d.ts +0 -6
  108. package/dist/spot-react/src/spot-context.d.ts.map +0 -1
  109. package/dist/spot-react/src/store.d.ts +0 -11
  110. package/dist/spot-react/src/store.d.ts.map +0 -1
  111. package/dist/spot-react/src/utils.d.ts +0 -20
  112. package/dist/spot-react/src/utils.d.ts.map +0 -1
  113. package/dist/spot-ui/src/index.d.ts +0 -14
  114. package/dist/spot-ui/src/index.d.ts.map +0 -1
  115. package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +0 -291
  116. package/dist/spot-ui/src/lib/abi/index.d.ts +0 -260
  117. package/dist/spot-ui/src/lib/abi/index.d.ts.map +0 -1
  118. package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +0 -41
  119. package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +0 -315
  120. package/dist/spot-ui/src/lib/analytics.d.ts +0 -111
  121. package/dist/spot-ui/src/lib/analytics.d.ts.map +0 -1
  122. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +0 -35
  123. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +0 -1
  124. package/dist/spot-ui/src/lib/consts.d.ts +0 -99
  125. package/dist/spot-ui/src/lib/consts.d.ts.map +0 -1
  126. package/dist/spot-ui/src/lib/lib.d.ts +0 -80
  127. package/dist/spot-ui/src/lib/lib.d.ts.map +0 -1
  128. package/dist/spot-ui/src/lib/networks.d.ts +0 -571
  129. package/dist/spot-ui/src/lib/networks.d.ts.map +0 -1
  130. package/dist/spot-ui/src/lib/orders/index.d.ts +0 -15
  131. package/dist/spot-ui/src/lib/orders/index.d.ts.map +0 -1
  132. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +0 -34
  133. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +0 -1
  134. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +0 -11
  135. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +0 -1
  136. package/dist/spot-ui/src/lib/submit-order.d.ts +0 -3
  137. package/dist/spot-ui/src/lib/submit-order.d.ts.map +0 -1
  138. package/dist/spot-ui/src/lib/types.d.ts +0 -318
  139. package/dist/spot-ui/src/lib/types.d.ts.map +0 -1
  140. package/dist/spot-ui/src/lib/utils.d.ts +0 -578
  141. package/dist/spot-ui/src/lib/utils.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -25,28 +25,23 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
- "@tanstack/react-query": "^5.90.12",
29
- "bignumber.js": "^9.3.1",
30
- "react": "^18.0.0 || ^19.0.0",
31
- "react-dom": "^18.0.0 || ^19.0.0",
32
- "react-error-boundary": "^6.0.0",
33
- "zustand": "^5.0.9"
28
+ "react": "^18.0.0 || ^19.0.0"
34
29
  },
35
30
  "dependencies": {
36
- "@orbs-network/spot-ui": "2.0.1"
31
+ "zustand": "^5.0.9",
32
+ "@orbs-network/spot-ui": "2.1.1"
37
33
  },
38
34
  "devDependencies": {
39
35
  "@types/react": "^19.0.2",
40
- "@types/react-dom": "^19.0.2",
41
- "@vitejs/plugin-react": "^4.3.4",
42
36
  "react": "^19.0.0",
43
- "react-dom": "^19.0.0",
44
37
  "typescript": "^5.7.2",
45
38
  "vite": "^6.0.5",
46
- "vite-plugin-dts": "^4.4.0"
39
+ "vite-plugin-dts": "^4.4.0",
40
+ "vitest": "^3.2.7"
47
41
  },
48
42
  "scripts": {
49
43
  "dev": "vite build --watch",
50
- "build": "tsc && vite build"
44
+ "build": "tsc && vite build",
45
+ "test": "vitest run"
51
46
  }
52
47
  }
@@ -1,56 +0,0 @@
1
- declare const _default: {
2
- "name": "@orbs-network/spot-react",
3
- "version": "2.0.1",
4
- "description": "Spot React Components - React components for Spot SDK",
5
- "type": "module",
6
- "main": "./dist/spot-react.umd.cjs",
7
- "module": "./dist/spot-react.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/spot-react.js",
13
- "require": "./dist/spot-react.umd.cjs"
14
- },
15
- "./styles.css": "./dist/style.css"
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "dev": "vite build --watch",
22
- "build": "tsc && vite build",
23
- "prepublishOnly": "pnpm run build"
24
- },
25
- "keywords": [
26
- "spot",
27
- "ui",
28
- "react",
29
- "components"
30
- ],
31
- "license": "MIT",
32
- "peerDependencies": {
33
- "@tanstack/react-query": "^5.90.12",
34
- "bignumber.js": "^9.3.1",
35
- "react": "^18.0.0 || ^19.0.0",
36
- "react-dom": "^18.0.0 || ^19.0.0",
37
- "react-error-boundary": "^6.0.0",
38
- "zustand": "^5.0.9"
39
- },
40
- "dependencies": {
41
- "@orbs-network/spot-ui": "workspace:*"
42
- },
43
- "devDependencies": {
44
- "@types/react": "^19.0.2",
45
- "@types/react-dom": "^19.0.2",
46
- "@vitejs/plugin-react": "^4.3.4",
47
- "react": "^19.0.0",
48
- "react-dom": "^19.0.0",
49
- "typescript": "^5.7.2",
50
- "vite": "^6.0.5",
51
- "vite-plugin-dts": "^4.4.0"
52
- }
53
- }
54
- ;
55
-
56
- export default _default;
@@ -1,5 +0,0 @@
1
- export declare const useAmountsUsd: () => {
2
- srcAmountUsd: string;
3
- dstAmountUsd: string;
4
- };
5
- //# sourceMappingURL=use-amounts-usd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-amounts-usd.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-amounts-usd.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;CAOzB,CAAC"}
@@ -1,62 +0,0 @@
1
- import { OrderType, Token } from '../types';
2
- type Props = {
3
- srcToken?: Token;
4
- dstToken?: Token;
5
- account?: string;
6
- orderType?: OrderType;
7
- createdAt?: number;
8
- deadline?: number;
9
- totalTrades?: number;
10
- tradeInterval?: number;
11
- srcAmount?: string;
12
- srcAmountUI?: string;
13
- srcAmountUsd?: string;
14
- dstAmount?: string;
15
- dstAmountUI?: string;
16
- dstAmountUsd?: string;
17
- limitPrice?: string;
18
- limitPriceUI?: string;
19
- limitPriceUsd?: string;
20
- srcAmountPerTrade?: string;
21
- srcAmountPerTradeUI?: string;
22
- srcAmountPerTradeUsd?: string;
23
- minDestAmountPerTrade?: string;
24
- minDestAmountPerTradeUI?: string;
25
- minDestAmountPerTradeUsd?: string;
26
- triggerPrice?: string;
27
- triggerPriceUI?: string;
28
- triggerPriceUsd?: string;
29
- };
30
- export declare const useBuildOrderInfo: (props: Props) => {
31
- srcToken: Token | undefined;
32
- dstToken: Token | undefined;
33
- orderType: OrderType | undefined;
34
- createdAt: number;
35
- deadline: number;
36
- totalTrades: number;
37
- tradeInterval: number;
38
- recipient: string;
39
- srcAmount: string;
40
- srcAmountUI: string;
41
- srcAmountUsd: string;
42
- dstAmount: string;
43
- dstAmountUI: string;
44
- dstAmountUsd: string;
45
- limitPrice: string;
46
- limitPriceUI: string;
47
- limitPriceUsd: string;
48
- sizePerTrade: string;
49
- sizePerTradeUI: string;
50
- sizePerTradeUsd: string | undefined;
51
- minDestAmountPerTrade: string;
52
- minDestAmountPerTradeUI: string;
53
- minDestAmountPerTradeUsd: string | undefined;
54
- dstMinAmount: string;
55
- dstMinAmountUI: string;
56
- dstMinAmountUsd: string;
57
- triggerPrice: string;
58
- triggerPriceUI: string;
59
- triggerPriceUsd: string | undefined;
60
- };
61
- export {};
62
- //# sourceMappingURL=use-build-order-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-build-order-info.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-build-order-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF7C,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useDeadline: () => number;
2
- //# sourceMappingURL=use-deadline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-deadline.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-deadline.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,cAKvB,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const useDefaultTriggerPricePercent: () => "-5" | "10";
2
- export declare const useDefaultLimitPricePercent: () => "-10" | "5" | undefined;
3
- //# sourceMappingURL=use-default-values.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-default-values.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-default-values.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,6BAA6B,mBAKzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+BAUvC,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const useDstTokenAmount: () => {
2
- amount: string | undefined;
3
- amountUI: string;
4
- usd: string;
5
- };
6
- export declare const useDstMinAmountPerTrade: () => {
7
- amount: string;
8
- amountUI: string;
9
- usd: string;
10
- };
11
- //# sourceMappingURL=use-dst-amount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-dst-amount.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-dst-amount.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB;;;;CAY7B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;CAgBnC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const useDstTokenPanel: () => {
2
- value: string;
3
- valueWei: string;
4
- isLoading: boolean | undefined;
5
- usd: string;
6
- };
7
- //# sourceMappingURL=use-dst-token-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-dst-token-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-dst-token-panel.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;CAc5B,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const useFees: () => {
2
- amountUI: string;
3
- amount: string;
4
- percent: number;
5
- usd: string;
6
- };
7
- //# sourceMappingURL=use-fees.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-fees.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-fees.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;;;;;CAmBjB,CAAC"}
@@ -1,57 +0,0 @@
1
- import { OrderType } from '../../../spot-ui/src/index.ts';
2
- export declare const useFormData: () => {
3
- feesAmountUI: string;
4
- feesAmount: string;
5
- feesUsd: string;
6
- feesPercentage: number;
7
- rePermitData: {
8
- order: import('../../../spot-ui/src/index.ts').RePermitOrder;
9
- domain: {
10
- name: string;
11
- version: string;
12
- chainId: number;
13
- verifyingContract: import('../../../spot-ui/src/index.ts').Address;
14
- };
15
- partner?: string;
16
- primaryType: string;
17
- types: Record<string, {
18
- name: string;
19
- type: string;
20
- }[]>;
21
- } | undefined;
22
- isTriggerPrice: boolean;
23
- isMarketOrder: boolean | undefined;
24
- marketPrice: string | undefined;
25
- marketPriceUi: string;
26
- spender: string;
27
- srcToken: import('..').Token | undefined;
28
- dstToken: import('..').Token | undefined;
29
- orderType: OrderType | undefined;
30
- createdAt: number;
31
- deadline: number;
32
- totalTrades: number;
33
- tradeInterval: number;
34
- recipient: string;
35
- srcAmount: string;
36
- srcAmountUI: string;
37
- srcAmountUsd: string;
38
- dstAmount: string;
39
- dstAmountUI: string;
40
- dstAmountUsd: string;
41
- limitPrice: string;
42
- limitPriceUI: string;
43
- limitPriceUsd: string;
44
- sizePerTrade: string;
45
- sizePerTradeUI: string;
46
- sizePerTradeUsd: string | undefined;
47
- minDestAmountPerTrade: string;
48
- minDestAmountPerTradeUI: string;
49
- minDestAmountPerTradeUsd: string | undefined;
50
- dstMinAmount: string;
51
- dstMinAmountUI: string;
52
- dstMinAmountUsd: string;
53
- triggerPrice: string;
54
- triggerPriceUI: string;
55
- triggerPriceUsd: string | undefined;
56
- };
57
- //# sourceMappingURL=use-form-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-form-data.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-form-data.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GvB,CAAC"}
@@ -1,16 +0,0 @@
1
- export declare const useInputWithPercentage: ({ typedValue, tokenDecimals, initialPrice, percentage, setValue, setPercentage, }: {
2
- typedValue?: string;
3
- tokenDecimals?: number;
4
- initialPrice?: string;
5
- percentage?: string | null;
6
- setValue: (value?: string) => void;
7
- setPercentage: (percentage?: string | null) => void;
8
- }) => {
9
- amount: string;
10
- typedValue: string | undefined;
11
- selectedPercentage: string;
12
- onChange: (typed?: string) => void;
13
- onPercentageChange: (percent?: string) => void;
14
- isTypedValue: boolean;
15
- };
16
- //# sourceMappingURL=use-input-with-percentage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-input-with-percentage.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-input-with-percentage.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,GAAI,mFAOpC;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;;;;uBAsBY,MAAM;mCAQJ,MAAM;;CAgCpB,CAAC"}
@@ -1,22 +0,0 @@
1
- export declare const useLimitPricePanel: () => {
2
- price: string;
3
- priceUI: string;
4
- error: {
5
- type: import('../../../spot-ui/src/index.ts').InputErrors;
6
- value: string;
7
- } | undefined;
8
- onInputChange: (typed?: string) => void;
9
- onPercentageChange: (percent?: string) => void;
10
- onReset: () => void;
11
- usd: string;
12
- srcToken: import('..').Token | undefined;
13
- dstToken: import('..').Token | undefined;
14
- invertedSrcToken: import('..').Token | undefined;
15
- invertedDstToken: import('..').Token | undefined;
16
- percentage: string;
17
- isLoading: boolean | undefined;
18
- isLimitPrice: boolean;
19
- toggleLimitPrice: () => void;
20
- isTypedValue: boolean;
21
- };
22
- //# sourceMappingURL=use-limit-price-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-limit-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price-panel.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAwC5B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const usePartnerChains: () => number[];
2
- //# sourceMappingURL=use-partner-chains.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-partner-chains.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-partner-chains.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,gBAG5B,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const usePricePanel: () => {
2
- onInvert: () => void;
3
- isInverted: boolean | undefined;
4
- fromToken: import('..').Token | undefined;
5
- toToken: import('..').Token | undefined;
6
- isMarketPrice: boolean | undefined;
7
- };
8
- export declare const usePricePanelAmount: ({ amount, typedValue, amountDecimals, invertedAmountDecimals, amountUsd, invertedAmountUsd, isInverted, }: {
9
- amount?: string;
10
- typedValue?: string;
11
- amountDecimals?: number;
12
- invertedAmountDecimals?: number;
13
- amountUsd?: string;
14
- invertedAmountUsd?: string;
15
- isInverted?: boolean;
16
- }) => {
17
- amount: string;
18
- amountUI: string;
19
- usd: string;
20
- };
21
- //# sourceMappingURL=use-price-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-price-panel.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa;;;;;;CA0BzB,CAAC;AAOF,eAAO,MAAM,mBAAmB,GAAI,2GAQjC;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;CA8BA,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const useRePermitData: () => {
2
- data: import('../../../spot-ui/src/index.ts').RePermitData | undefined;
3
- error: Error | null;
4
- isLoading: boolean;
5
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('../../../spot-ui/src/index.ts').RePermitData, Error>>;
6
- };
7
- //# sourceMappingURL=use-repermit-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-repermit-data.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-repermit-data.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe;;;;;CAkC3B,CAAC"}
@@ -1,20 +0,0 @@
1
- export declare const useRePermitOrderData: () => {
2
- data: {
3
- order: import('../../../spot-ui/src/index.ts').RePermitOrder;
4
- domain: {
5
- name: string;
6
- version: string;
7
- chainId: number;
8
- verifyingContract: import('../../../spot-ui/src/index.ts').Address;
9
- };
10
- partner?: string;
11
- primaryType: string;
12
- types: Record<string, {
13
- name: string;
14
- type: string;
15
- }[]>;
16
- } | undefined;
17
- error: Error | null;
18
- isLoading: boolean;
19
- };
20
- //# sourceMappingURL=use-repermit-order-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-repermit-order-data.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-repermit-order-data.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;CAsDhC,CAAC"}
@@ -1,40 +0,0 @@
1
- import { default as React } from 'react';
2
- import { useTradesPanel } from './use-trades';
3
- import { useDurationPanel } from './use-duration';
4
- import { useFillDelayPanel } from './use-fill-delay';
5
- import { useLimitPricePanel } from './use-limit-price-panel';
6
- import { useTriggerPricePanel } from './use-trigger-price-panel';
7
- import { usePricePanel } from './use-price-panel';
8
- import { useDstTokenPanel } from './use-dst-token-panel';
9
- import { useDisclaimer } from './use-disclaimer';
10
- import { useInputErrors } from './use-input-errors';
11
- import { useSubmitOrderButton, useSubmitOrderPanel } from './use-submit-order-panel';
12
- import { useFormData } from './use-form-data';
13
- import { useOrderHistoryPanel } from './order-hooks';
14
- import { usePartnerChains } from './use-partner-chains';
15
- import { useCancelOrderRefetchUntilStatusSynced } from './use-cancel-order';
16
- import { Module } from '../../../spot-ui/src/index.ts';
17
- type SpotData = {
18
- tradesAmountPanel: ReturnType<typeof useTradesPanel>;
19
- durationPanel: ReturnType<typeof useDurationPanel>;
20
- fillDelayPanel: ReturnType<typeof useFillDelayPanel>;
21
- limitPricePanel: ReturnType<typeof useLimitPricePanel>;
22
- triggerPricePanel: ReturnType<typeof useTriggerPricePanel>;
23
- pricePanel: ReturnType<typeof usePricePanel>;
24
- dstTokenPanel: ReturnType<typeof useDstTokenPanel>;
25
- disclaimerPanel: ReturnType<typeof useDisclaimer>;
26
- inputError: ReturnType<typeof useInputErrors>;
27
- submitOrderButton: ReturnType<typeof useSubmitOrderButton>;
28
- orderHistoryPanel: ReturnType<typeof useOrderHistoryPanel>;
29
- orderExecutionPanel: ReturnType<typeof useSubmitOrderPanel>;
30
- derivedFormData: ReturnType<typeof useFormData>;
31
- supportedChains: ReturnType<typeof usePartnerChains>;
32
- module: Module;
33
- refetchUntilStatusSynced: ReturnType<typeof useCancelOrderRefetchUntilStatusSynced>;
34
- };
35
- export declare const SpotDataProvider: ({ children, }: {
36
- children: React.ReactNode;
37
- }) => import("react/jsx-runtime").JSX.Element;
38
- export declare const useSpot: () => SpotData;
39
- export {};
40
- //# sourceMappingURL=use-spot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-spot.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-spot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,KAAK,QAAQ,GAAG;IACd,iBAAiB,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IACrD,aAAa,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IACnD,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACrD,eAAe,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACvD,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC3D,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC7C,aAAa,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IACnD,eAAe,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAClD,UAAU,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC9C,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC3D,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC3D,mBAAmB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC5D,eAAe,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IAChD,eAAe,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB,EAAE,UAAU,CAClC,OAAO,sCAAsC,CAC9C,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CA8DA,CAAC;AAEF,eAAO,MAAM,OAAO,gBAMnB,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const useSrcAmount: () => {
2
- amount: string;
3
- amountUI: string;
4
- error: string | undefined;
5
- };
6
- //# sourceMappingURL=use-src-amount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-src-amount.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-src-amount.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;CAwBxB,CAAC"}
@@ -1,28 +0,0 @@
1
- import { SwapStatus } from '../types';
2
- export declare const useSubmitOrderPanel: () => {
3
- status: SwapStatus | undefined;
4
- parsedError: import('..').ParsedError | undefined;
5
- error: Error | undefined;
6
- step: import('..').Steps | undefined;
7
- stepIndex: number | undefined;
8
- approveTxHash: string | undefined;
9
- wrapTxHash: string | undefined;
10
- totalSteps: number | undefined;
11
- pendingSteps: import('..').Steps[] | undefined;
12
- srcToken: import('..').Token | undefined;
13
- dstToken: import('..').Token | undefined;
14
- onSubmit: () => Promise<import('../../../spot-ui/src/index.ts').Order | undefined>;
15
- resetState: () => void;
16
- resetCurrentSwap: () => void;
17
- isLoading: boolean;
18
- isSuccess: boolean;
19
- isFailed: boolean;
20
- confirmButtonLoading: boolean;
21
- };
22
- export declare const useSubmitOrderButton: () => {
23
- disabled: boolean;
24
- error: Error | null;
25
- loading: boolean;
26
- retry: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('../../../spot-ui/src/index.ts').RePermitData, Error>>;
27
- };
28
- //# sourceMappingURL=use-submit-order-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAUtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CA6C/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;CA8ChC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useTradePrice: () => string;
2
- //# sourceMappingURL=use-trade-price.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-trade-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trade-price.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,cAezB,CAAC"}
@@ -1,23 +0,0 @@
1
- export declare const useTriggerPricePanel: () => {
2
- price: string;
3
- priceUI: string;
4
- amountPerChunk: string | undefined;
5
- amountPerChunkUI: string;
6
- amountPerChunkUsd: string;
7
- error: {
8
- type: import('../../../spot-ui/src/index.ts').InputErrors;
9
- value: string;
10
- } | undefined;
11
- onInputChange: (typed?: string) => void;
12
- onPercentageChange: (percent?: string) => void;
13
- percentage: string;
14
- onReset: () => void;
15
- usd: string;
16
- srcToken: import('..').Token | undefined;
17
- dstToken: import('..').Token | undefined;
18
- invertedSrcToken: import('..').Token | undefined;
19
- invertedDstToken: import('..').Token | undefined;
20
- isLoading: boolean;
21
- isTypedValue: boolean;
22
- };
23
- //# sourceMappingURL=use-trigger-price-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-trigger-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price-panel.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAuC9B,CAAC"}
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SpotProps, SpotContextType } from './types';
3
- export declare const SpotContext: React.Context<SpotContextType | null>;
4
- export declare const SpotProvider: (props: SpotProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const useSpotContext: () => SpotContextType;
6
- //# sourceMappingURL=spot-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spot-context.d.ts","sourceRoot":"","sources":["../../../src/spot-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAY7E,OAAO,EACL,SAAS,EACT,eAAe,EAEhB,MAAM,SAAS,CAAC;AAoCjB,eAAO,MAAM,WAAW,uCAA8C,CAAC;AA0OvE,eAAO,MAAM,YAAY,GAAI,OAAO,SAAS,4CAM5C,CAAC;AAEF,eAAO,MAAM,cAAc,uBAM1B,CAAC"}
@@ -1,11 +0,0 @@
1
- import { State, SwapExecution } from './types';
2
- interface SpotStore {
3
- resetState: () => void;
4
- updateState: (value: Partial<State>) => void;
5
- resetSwapExecutionAtIndex: () => void;
6
- updateSwapExecutionAtIndex: (index: number, value: Partial<SwapExecution>) => void;
7
- state: State;
8
- }
9
- export declare const useSpotStore: import('zustand').UseBoundStore<import('zustand').StoreApi<SpotStore>>;
10
- export {};
11
- //# sourceMappingURL=store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/C,UAAU,SAAS;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC,0BAA0B,EAAE,CAC1B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAC1B,IAAI,CAAC;IACV,KAAK,EAAE,KAAK,CAAC;CACd;AAWD,eAAO,MAAM,YAAY,wEA+BtB,CAAC"}
@@ -1,20 +0,0 @@
1
- import { OrderType, Token } from './types';
2
- import { eqIgnoreCase, isNativeAddress } from '../../spot-ui/src/index.ts';
3
- export declare const toAmountWei: (value?: string, decimals?: number) => string;
4
- export declare const toAmountUi: (value?: string, decimals?: number) => string;
5
- export declare const parseError: (error?: any) => "An error occurred." | "Transaction Rejected";
6
- export declare const isTxRejected: (error: any) => any;
7
- export declare const ensureWrappedToken: (token: Token, chainId: number) => {
8
- symbol: string;
9
- address: string;
10
- decimals: number;
11
- logoUrl: string;
12
- };
13
- export declare function millisToDays(milliseconds?: number): number;
14
- export declare function millisToMinutes(milliseconds?: number): number;
15
- export declare const getOrderType: (isMarketOrder: boolean, chunks: number) => OrderType.LIMIT | OrderType.TWAP_LIMIT | OrderType.TWAP_MARKET;
16
- export declare const shouldWrapOnly: (srcToken?: Token, dstToken?: Token, chainId?: number) => boolean;
17
- export declare const shouldUnwrapOnly: (srcToken?: Token, dstToken?: Token, chainId?: number) => boolean;
18
- export { eqIgnoreCase, isNativeAddress };
19
- export declare const getExplorerUrl: (txHash: string, chainId?: number) => string;
20
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EACL,YAAY,EAEZ,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAQ3D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,GAAG,kDAWrC,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,QAOtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,EAAE,SAAS,MAAM;;;;;CAO/D,CAAC;AAEF,wBAAgB,YAAY,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAI1D;AAED,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAI7D;AAED,eAAO,MAAM,YAAY,GAAI,eAAe,OAAO,EAAE,QAAQ,MAAM,mEAQlE,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,UAAU,MAAM,YAOjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,UAAU,MAAM,YAOjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAEzC,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,EAAE,UAAU,MAAM,WAK9D,CAAC"}
@@ -1,14 +0,0 @@
1
- import { default as Configs } from '@orbs-network/twap/configs.json';
2
- export * from './lib/abi';
3
- export * from './lib/types';
4
- export * from './lib/consts';
5
- export * from './lib/lib';
6
- export * from './lib/build-repermit-order-data';
7
- export * from './lib/submit-order';
8
- export { analytics, setUIVersion } from './lib/analytics';
9
- export { isNativeAddress, getNetwork, eqIgnoreCase, getOrderFillDelayMillis, getPartnerChains, getOrderExecutionRate, getOrderLimitPriceRate, getTriggerPriceRate, } from './lib/utils';
10
- export { networks } from './lib/networks';
11
- export { getAccountOrders } from './lib/orders';
12
- export { buildV2Order } from './lib/orders/v2-orders';
13
- export { Configs };
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../spot-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,CAAC"}