@orbs-network/spot-react 0.0.4 → 0.0.6

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 (102) hide show
  1. package/dist/ccip-CtSUe45L.js +149 -0
  2. package/dist/index-vzISTdG1.js +42004 -0
  3. package/dist/spot-react/package.json.d.ts +63 -0
  4. package/dist/spot-react/src/chains.d.ts +3 -0
  5. package/dist/spot-react/src/chains.d.ts.map +1 -0
  6. package/dist/spot-react/src/components/TokenLogo.d.ts +9 -0
  7. package/dist/spot-react/src/components/TokenLogo.d.ts.map +1 -0
  8. package/dist/spot-react/src/components/order-details.d.ts +79 -0
  9. package/dist/spot-react/src/components/order-details.d.ts.map +1 -0
  10. package/dist/spot-react/src/consts.d.ts +13 -0
  11. package/dist/spot-react/src/consts.d.ts.map +1 -0
  12. package/dist/spot-react/src/context/twap-context.d.ts +6 -0
  13. package/dist/spot-react/src/context/twap-context.d.ts.map +1 -0
  14. package/dist/spot-react/src/hooks/helper-hooks.d.ts +438 -0
  15. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -0
  16. package/dist/spot-react/src/hooks/order-hooks.d.ts +212 -0
  17. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -0
  18. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +5 -0
  19. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +1 -0
  20. package/dist/spot-react/src/hooks/use-base-order.d.ts +79 -0
  21. package/dist/spot-react/src/hooks/use-base-order.d.ts.map +1 -0
  22. package/dist/spot-react/src/hooks/use-build-repermit-order-data-callback.ts.d.ts +37 -0
  23. package/dist/spot-react/src/hooks/use-build-repermit-order-data-callback.ts.d.ts.map +1 -0
  24. package/dist/spot-react/src/hooks/use-cancel-order.d.ts +5 -0
  25. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -0
  26. package/dist/spot-react/src/hooks/use-current-order.d.ts +74 -0
  27. package/dist/spot-react/src/hooks/use-current-order.d.ts.map +1 -0
  28. package/dist/spot-react/src/hooks/use-deadline.d.ts +2 -0
  29. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +1 -0
  30. package/dist/spot-react/src/hooks/use-default-values.d.ts +3 -0
  31. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +1 -0
  32. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts +5 -0
  33. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts.map +1 -0
  34. package/dist/spot-react/src/hooks/use-dst-amount.d.ts +10 -0
  35. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +1 -0
  36. package/dist/spot-react/src/hooks/use-duration.d.ts +18 -0
  37. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -0
  38. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +18 -0
  39. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -0
  40. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts +2 -0
  41. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts.map +1 -0
  42. package/dist/spot-react/src/hooks/use-history-order.d.ts +99 -0
  43. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -0
  44. package/dist/spot-react/src/hooks/use-input-errors.d.ts +4 -0
  45. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -0
  46. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +17 -0
  47. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +1 -0
  48. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts +8 -0
  49. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts.map +1 -0
  50. package/dist/spot-react/src/hooks/use-limit-price.d.ts +40 -0
  51. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -0
  52. package/dist/spot-react/src/hooks/use-market-price.d.ts +8 -0
  53. package/dist/spot-react/src/hooks/use-market-price.d.ts.map +1 -0
  54. package/dist/spot-react/src/hooks/use-src-amount.d.ts +6 -0
  55. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +1 -0
  56. package/dist/spot-react/src/hooks/use-submit-order.d.ts +2 -0
  57. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -0
  58. package/dist/spot-react/src/hooks/use-submit-swap-panel.d.ts +104 -0
  59. package/dist/spot-react/src/hooks/use-submit-swap-panel.d.ts.map +1 -0
  60. package/dist/spot-react/src/hooks/use-toggle-price.d.ts +5 -0
  61. package/dist/spot-react/src/hooks/use-toggle-price.d.ts.map +1 -0
  62. package/dist/spot-react/src/hooks/use-token-panel.d.ts +27 -0
  63. package/dist/spot-react/src/hooks/use-token-panel.d.ts.map +1 -0
  64. package/dist/spot-react/src/hooks/use-trade-price.d.ts +2 -0
  65. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +1 -0
  66. package/dist/spot-react/src/hooks/use-trades.d.ts +24 -0
  67. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -0
  68. package/dist/spot-react/src/hooks/use-translations.d.ts +3 -0
  69. package/dist/spot-react/src/hooks/use-translations.d.ts.map +1 -0
  70. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +37 -0
  71. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -0
  72. package/dist/spot-react/src/i18n/en.json.d.ts +94 -0
  73. package/dist/spot-react/src/index.d.ts +9 -4
  74. package/dist/spot-react/src/index.d.ts.map +1 -1
  75. package/dist/spot-react/src/lib.d.ts +7 -0
  76. package/dist/spot-react/src/lib.d.ts.map +1 -0
  77. package/dist/spot-react/src/twap/components/orders/order-preview.d.ts +3 -0
  78. package/dist/spot-react/src/twap/components/orders/order-preview.d.ts.map +1 -0
  79. package/dist/spot-react/src/twap/components/orders/orders-list.d.ts +2 -0
  80. package/dist/spot-react/src/twap/components/orders/orders-list.d.ts.map +1 -0
  81. package/dist/spot-react/src/twap/components/orders/orders.d.ts +2 -0
  82. package/dist/spot-react/src/twap/components/orders/orders.d.ts.map +1 -0
  83. package/dist/spot-react/src/twap/components/submit-order-panel.d.ts +10 -0
  84. package/dist/spot-react/src/twap/components/submit-order-panel.d.ts.map +1 -0
  85. package/dist/spot-react/src/twap/twap.d.ts +22 -0
  86. package/dist/spot-react/src/twap/twap.d.ts.map +1 -0
  87. package/dist/spot-react/src/types.d.ts +418 -0
  88. package/dist/spot-react/src/types.d.ts.map +1 -0
  89. package/dist/spot-react/src/useTwapStore.d.ts +11 -0
  90. package/dist/spot-react/src/useTwapStore.d.ts.map +1 -0
  91. package/dist/spot-react/src/utils.d.ts +27 -0
  92. package/dist/spot-react/src/utils.d.ts.map +1 -0
  93. package/dist/spot-react.js +54 -64
  94. package/dist/spot-react.umd.cjs +63 -1
  95. package/package.json +13 -2
  96. package/dist/spot-react/src/components/SpotEventList.d.ts +0 -7
  97. package/dist/spot-react/src/components/SpotEventList.d.ts.map +0 -1
  98. package/dist/spot-react/src/components/SpotTracker.d.ts +0 -9
  99. package/dist/spot-react/src/components/SpotTracker.d.ts.map +0 -1
  100. package/dist/spot-react/src/context/SpotContext.d.ts +0 -16
  101. package/dist/spot-react/src/context/SpotContext.d.ts.map +0 -1
  102. package/dist/spot-react.css +0 -1
@@ -0,0 +1,8 @@
1
+ export declare const useInvertTradePanel: () => {
2
+ onInvert: () => void;
3
+ isInverted: boolean | undefined;
4
+ fromToken: import('..').Token | undefined;
5
+ toToken: import('..').Token | undefined;
6
+ isMarketPrice: boolean | undefined;
7
+ };
8
+ //# sourceMappingURL=use-invert-trade-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-invert-trade-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-invert-trade-panel.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;CAyB/B,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { InputError } from '../types';
2
+ export declare const useLimitPriceError: (limitPriceWei?: string) => InputError | undefined;
3
+ export declare const useLimitPrice: () => {
4
+ error: InputError | undefined;
5
+ amountWei: string;
6
+ amountUI: string;
7
+ selectedPercentage: string;
8
+ onChange: (typed?: string) => void;
9
+ onPercentageChange: (percent?: string) => void;
10
+ isInverted: boolean | undefined;
11
+ usd: string;
12
+ };
13
+ export declare const useLimitPriceToggle: () => {
14
+ isLimitPrice: boolean;
15
+ toggleLimitPrice: () => void;
16
+ hide: boolean;
17
+ };
18
+ export declare const useLimitPricePanel: () => {
19
+ price: string;
20
+ error: InputError | undefined;
21
+ warning: {
22
+ text: string;
23
+ url: string;
24
+ } | undefined;
25
+ label: string;
26
+ tooltip: string;
27
+ onChange: (typed?: string) => void;
28
+ onPercentageChange: (percent?: string) => void;
29
+ onReset: () => void;
30
+ usd: string;
31
+ fromToken: import('..').Token | undefined;
32
+ toToken: import('..').Token | undefined;
33
+ percentage: string;
34
+ isInverted: boolean | undefined;
35
+ isLoading: boolean | undefined;
36
+ isLimitPrice: boolean;
37
+ toggleLimitPrice: () => void;
38
+ onInvert: () => void;
39
+ };
40
+ //# sourceMappingURL=use-limit-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-limit-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,UAAU,EAAU,MAAM,UAAU,CAAC;AAQ3D,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,MAAM,2BAoCxD,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CA6BzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAqB/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAoD9B,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const useMarketPricePanel: () => {
2
+ fromToken: import('..').Token | undefined;
3
+ toToken: import('..').Token | undefined;
4
+ price: string | undefined;
5
+ priceWei: string;
6
+ onInvert: () => void;
7
+ };
8
+ //# sourceMappingURL=use-market-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-market-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-market-price.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;CAsB/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const useSrcAmount: () => {
2
+ amountWei: string;
3
+ amountUI: string | undefined;
4
+ error: string | undefined;
5
+ };
6
+ //# sourceMappingURL=use-src-amount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-src-amount.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-src-amount.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;CAcxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useSubmitOrderMutation: () => import('@tanstack/react-query').UseMutationResult<import('../../../spot-sdk/src/index.ts').Order | undefined, Error, void, unknown>;
2
+ //# sourceMappingURL=use-submit-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-submit-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order.ts"],"names":[],"mappings":"AAuVA,eAAO,MAAM,sBAAsB,mIA6FlC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { SwapStatus } from '@orbs-network/swap-ui';
2
+ export declare const useSubmitSwapPanel: () => {
3
+ swapLoading: boolean | undefined;
4
+ swapSubmitted: boolean;
5
+ order: {
6
+ srcAmountUsd: string;
7
+ dstAmountUsd: string;
8
+ fee: {
9
+ label: string;
10
+ value: string | undefined;
11
+ usd: string;
12
+ };
13
+ display: {
14
+ minDestAmountPerTrade: {
15
+ usd: string;
16
+ tooltip: string;
17
+ label: string;
18
+ value: string;
19
+ token: import('..').Token | undefined;
20
+ };
21
+ triggerPricePerTrade: {
22
+ usd: string;
23
+ tooltip: string;
24
+ label: string;
25
+ value: string;
26
+ token: import('..').Token | undefined;
27
+ };
28
+ limitPrice: {
29
+ usd: string;
30
+ label: string;
31
+ value: string;
32
+ };
33
+ deadline: {
34
+ tooltip: string;
35
+ label: string;
36
+ value: number;
37
+ };
38
+ srcAmount: {
39
+ label: string;
40
+ value: string;
41
+ token: import('..').Token | undefined;
42
+ };
43
+ tradeSize: {
44
+ tooltip: string;
45
+ label: string;
46
+ value: string;
47
+ token: import('..').Token | undefined;
48
+ };
49
+ totalTrades: {
50
+ tooltip: string;
51
+ label: string;
52
+ value: number;
53
+ };
54
+ tradeInterval: {
55
+ tooltip: string;
56
+ label: string;
57
+ value: number;
58
+ };
59
+ recipient: {
60
+ label: string;
61
+ value: string;
62
+ };
63
+ };
64
+ data: {
65
+ srcToken: import('..').Token | undefined;
66
+ dstToken: import('..').Token | undefined;
67
+ limitPrice: string;
68
+ deadline: number | undefined;
69
+ srcAmount: string | undefined;
70
+ srcAmountPerTrade: string | undefined;
71
+ totalTrades: number | undefined;
72
+ minDestAmountPerTrade: string | undefined;
73
+ tradeInterval: number | undefined;
74
+ triggerPricePerTrade: string | undefined;
75
+ maker: string | undefined;
76
+ };
77
+ };
78
+ srcAmountWei: string;
79
+ srcAmount: string;
80
+ openSubmitModalButton: {
81
+ disabled: boolean;
82
+ text: string;
83
+ loading: boolean;
84
+ };
85
+ status?: SwapStatus;
86
+ error?: {
87
+ message: string;
88
+ code: number;
89
+ };
90
+ step?: import('..').Steps;
91
+ stepIndex?: number;
92
+ approveTxHash?: string;
93
+ wrapTxHash?: string;
94
+ totalSteps?: number;
95
+ srcToken?: import('..').Token;
96
+ dstToken?: import('..').Token;
97
+ orderId?: string;
98
+ allowanceLoading?: boolean;
99
+ resetSwap: () => void;
100
+ onCloseModal: () => void;
101
+ onOpenModal: () => void;
102
+ onSubmitOrder: () => Promise<import('../../../spot-sdk/src/index.ts').Order | undefined>;
103
+ };
104
+ //# sourceMappingURL=use-submit-swap-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-submit-swap-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-swap-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAanD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE9B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const useTogglePricePanel: () => {
2
+ isMarketPrice: boolean;
3
+ togglePrice: () => void;
4
+ };
5
+ //# sourceMappingURL=use-toggle-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-toggle-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-toggle-price.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;;;CAU/B,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const useSrcTokenPanel: () => {
2
+ balance: string;
3
+ usd: string;
4
+ value: string;
5
+ valueWei: string;
6
+ onChange: (value: string) => void;
7
+ onMax: () => void;
8
+ isLoading: boolean | undefined;
9
+ token: import('..').Token | undefined;
10
+ isInsufficientBalance: import('..').InputError | undefined;
11
+ };
12
+ export declare const useDstTokenPanel: () => {
13
+ balance: string;
14
+ usd: string;
15
+ value: string;
16
+ valueWei: string;
17
+ onChange: (value: string) => void;
18
+ onMax: () => void;
19
+ isLoading: boolean | undefined;
20
+ token: import('..').Token | undefined;
21
+ isInsufficientBalance: import('..').InputError | undefined;
22
+ };
23
+ export declare const useTypedSrcAmount: () => {
24
+ amount: string;
25
+ reset: () => void;
26
+ };
27
+ //# sourceMappingURL=use-token-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-token-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-token-panel.ts"],"names":[],"mappings":"AAiDA,eAAO,MAAM,gBAAgB;;;;;sBA3BjB,MAAM;;;;;CA2BuC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;sBA7BjB,MAAM;;;;;CAiCjB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAM7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useTradePrice: () => string;
2
+ //# sourceMappingURL=use-trade-price.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,24 @@
1
+ import { InputError } from '../types';
2
+ export declare const useTrades: () => {
3
+ totalTrades: number;
4
+ maxTrades: number;
5
+ amountPerTradeUI: string;
6
+ amountPerTradeWei: string;
7
+ amountPerTradeUsd: string;
8
+ onChange: (typedChunks: number) => void;
9
+ error: InputError | undefined;
10
+ };
11
+ export declare const useTradesPanel: () => {
12
+ error: InputError | undefined;
13
+ maxTrades: number;
14
+ totalTrades: number;
15
+ amountPerTrade: string | undefined;
16
+ amountPerTradeWei: string;
17
+ onChange: (typedChunks: number) => void;
18
+ label: string;
19
+ tooltip: string;
20
+ amountPerTradeUsd: string | undefined;
21
+ fromToken: import('..').Token | undefined;
22
+ toToken: import('..').Token | undefined;
23
+ };
24
+ //# sourceMappingURL=use-trades.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-trades.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trades.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,UAAU,CAAC;AA2CnD,eAAO,MAAM,SAAS;;;;;;4BAeJ,MAAM;;CA0BvB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;4BA5BT,MAAM;;;;;;CA+CvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Translations } from '../types';
2
+ export declare const useTranslations: () => (key: keyof Translations, args?: Record<string, string>) => string;
3
+ //# sourceMappingURL=use-translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-translations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAWxC,eAAO,MAAM,eAAe,cAIlB,MAAM,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAc7D,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { InputError } from '../types';
2
+ export declare const useTriggerAmountPerChunk: (triggerPrice?: string) => {
3
+ amountWei: string | undefined;
4
+ amountUI: string;
5
+ };
6
+ export declare const useTriggerPrice: () => {
7
+ error: InputError | undefined;
8
+ pricePerChunkWei: string | undefined;
9
+ pricePerChunkUI: string;
10
+ amountWei: string;
11
+ amountUI: string;
12
+ selectedPercentage: string;
13
+ onChange: (typed?: string) => void;
14
+ onPercentageChange: (percent?: string) => void;
15
+ isInverted: boolean | undefined;
16
+ usd: string;
17
+ };
18
+ export declare const useTriggerPricePanel: () => {
19
+ price: string;
20
+ error: InputError | undefined;
21
+ label: string;
22
+ tooltip: string;
23
+ onChange: (typed?: string) => void;
24
+ onPercentageChange: (percent?: string) => void;
25
+ percentage: string;
26
+ isActive: boolean;
27
+ onReset: () => void;
28
+ usd: string;
29
+ fromToken: import('..').Token | undefined;
30
+ toToken: import('..').Token | undefined;
31
+ prefix: string;
32
+ isLoading: boolean;
33
+ isInverted: boolean | undefined;
34
+ hide: boolean;
35
+ onInvert: () => void;
36
+ };
37
+ //# sourceMappingURL=use-trigger-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-trigger-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAuB,MAAM,UAAU,CAAC;AA4C3D,eAAO,MAAM,wBAAwB,GAAI,eAAe,MAAM;;;CAa7D,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAmC3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;CAiChC,CAAC"}
@@ -0,0 +1,94 @@
1
+ declare const _default: {
2
+ "deadlineTooltip": "This is the date and time marking the end of the period which you have selected for your order to be executed.",
3
+ "tradeSizeTooltip": "The number of input tokens that will be removed from your balance and swapped for the output token in each individual trade.",
4
+ "totalTradesTooltip": "The total number of individual trades that will be scheduled as part of your order. Note that in limit orders, not all trades that are scheduled will be executed.",
5
+ "minDstAmountTooltip": " This is the minimum number of tokens that may be received. NOTE: This minimum only refers to executed trades. Some trades may not be executed if the limit price is higher than the available market prices and your order may only be partially filled.",
6
+ "marketPriceTooltip": "You have the option to set a “limit price” for your order. If you do not select this option, each trade in your order will execute at the available market price.",
7
+ "limitPriceTooltip": "Trades will only execute if the available market price is better than the limit price, potentially resulting in partial fills or orders remaining unfilled upon expiration.",
8
+ "outAmountLoading": "Fetching Quote...",
9
+ "maxDurationTooltip": "This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, partially filled, or remain unfilled based on the specified parameters.",
10
+ "tradeIntervalTootlip": "The estimated time that will elapse between each trade in your order. Note that as this time includes an allowance of two minutes for bidder auction and block settlement, which cannot be predicted exactly, actual time may vary.",
11
+ "triggerPriceTooltip": "The price at which the order will be executed. If the market price is higher than the trigger price, the order will be executed at the market price.",
12
+ "placeOrder": "Place order",
13
+ "enterAmount": "Enter an amount",
14
+ "emptyLimitPrice": "Limit price is required",
15
+ "insufficientFunds": "Insufficient Balance",
16
+ "every": "Every",
17
+ "over": "Over",
18
+ "tradeInterval": "Trade interval",
19
+ "deadline": "Deadline",
20
+ "limitPrice": "Limit Price",
21
+ "finalExcecutionPrice": "Final execution price",
22
+ "marketPrice": "Market price",
23
+ "from": "From",
24
+ "to": "To (estimated)",
25
+ "Open": "Open",
26
+ "Completed": "Completed",
27
+ "Expired": "Expired",
28
+ "Canceled": "Canceled",
29
+ "minReceivedPerTrade": "Min. received per trade",
30
+ "triggerPricePerChunk": "Trigger Price per trade",
31
+ "maxChunksError": "Max. trades amount is {maxChunks}",
32
+ "minChunksError": "Min. trades amount is",
33
+ "minTradeSizeError": "Min. trade size is ${minTradeSize}",
34
+ "allOrders": "All",
35
+ "minFillDelayError": "Min. trade interval is {fillDelay}",
36
+ "maxFillDelayError": "Max. trade interval is {fillDelay}",
37
+ "recipient": "Recipient",
38
+ "marketOrderWarning": "Each individual trade in this order will be filled at the current market price at the time of execution.",
39
+ "limitPriceMessage": "Limit orders may not execute when the token's price is equal or close to the limit price, due to gas and standard swap fees.",
40
+ "limit": "Limit",
41
+ "maxDurationError": "Max. expiry is {duration}",
42
+ "minDurationError": "Min. expiry is {duration}",
43
+ "expiry": "Expiry",
44
+ "individualTradeSize": "Individual trade size",
45
+ "numberOfTrades": "No. of trades",
46
+ "AverageExecutionPrice": "Avg. execution price",
47
+ "twapMarket": "TWAP-market",
48
+ "twapLimit": "TWAP-limit",
49
+ "stopLoss": "Stop-loss",
50
+ "triggerPriceMarket": "Trigger Market Price ",
51
+ "triggerPriceLimit": "Trigger Limit Price ",
52
+ "takeProfit": "Take-profit",
53
+ "minReceived": "Min. received",
54
+ "minReceivedPerChunk": "Min. received per trade",
55
+ "noOrders": "No {status} Orders",
56
+ "noLiquidity": "No liquidity for this pair",
57
+ "excecutionSummary": "Execution summary",
58
+ "orderInfo": "Order info",
59
+ "wrapAction": "Wrap {symbol}",
60
+ "approveAction": "Approve {symbol}",
61
+ "createOrderAction": "Create {name} order",
62
+ "amountReceived": "Amount received",
63
+ "createdAt": "Created at",
64
+ "amountOut": "Amount out",
65
+ "status": "Status",
66
+ "progress": "Progress",
67
+ "minutes": "minutes",
68
+ "days": "days",
69
+ "tradeIntervalTitle": "Every",
70
+ "tradesAmountTitle": "Over",
71
+ "stopLossTooltip": "The trigger price at which your stop-loss order will be activated.",
72
+ "takeProfitTooltip": "The trigger price at which your take-profit order will be activated.",
73
+ "stopLossLabel": "Trigger Price",
74
+ "StopLossTriggerPriceError": "Trigger price must be less than market price",
75
+ "TakeProfitTriggerPriceError": "Trigger price must be greater than market price",
76
+ "triggerLimitPriceError": "Limit price must be less than trigger price",
77
+ "triggerPrice": "Trigger Price",
78
+ "tradePrice": "Trade Price",
79
+ "triggerMarketPriceDisclaimer": " In extreme market movements, slippage may occur and the executed price of the market order may be worse than the specified trigger price.",
80
+ "stopLossLimitPriceTooltip": "The stop loss order will execute at the specified limit price or better, once the stop price is triggered.",
81
+ "stopLossDurationTooltip": "This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, or remain unfilled based on the specified parameters.",
82
+ "emptyTriggerPrice": "Trigger price is required",
83
+ "id": "ID",
84
+ "fees": "Fees {value}",
85
+ "version": "Version",
86
+ "maxOrderSizeError": "Max. trade size is {maxOrderSize} USD",
87
+ "viewOnExplorer": "View on explorer",
88
+ "proceedInWallet": "Proceed in wallet",
89
+ "wrapMsg": "Note: {symbol} was wrapped to {wSymbol}",
90
+ "createOrderActionSuccess": "{name} order placed"
91
+ }
92
+ ;
93
+
94
+ export default _default;
@@ -1,5 +1,10 @@
1
- export { SpotProvider, useSpot } from './context/SpotContext';
2
- export { SpotTracker } from './components/SpotTracker';
3
- export { SpotEventList } from './components/SpotEventList';
4
- export type { SpotConfig, SpotEvent } from '../../spot-sdk/src/index.ts';
1
+ export * from './twap/twap';
2
+ export * from './types';
3
+ export * from './utils';
4
+ export { Configs, PRICE_PROTECTION_SETTINGS } from './consts';
5
+ export { useFormatNumber } from './hooks/helper-hooks';
6
+ export declare const useTypedSrcAmount: () => {
7
+ amount: string | undefined;
8
+ reset: () => void;
9
+ };
5
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG1D,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB;;;CAO7B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Provider, PublicClient, WalletClient } from './types';
2
+ export declare const REFETCH_ORDER_HISTORY = 40000;
3
+ export declare const initiateWallet: (chainId?: number, provider?: Provider) => {
4
+ walletClient: WalletClient | undefined;
5
+ publicClient: PublicClient | undefined;
6
+ };
7
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/lib.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG/D,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAE5C,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,WAAW,QAAQ;kBAclC,YAAY,GAAG,SAAS;kBACxB,YAAY,GAAG,SAAS;CAEzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const OrderPreview: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const CancelOrderButton: () => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=order-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-preview.d.ts","sourceRoot":"","sources":["../../../../../../src/twap/components/orders/order-preview.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,YAAY,sDA+CxB,CAAC;AA2HF,eAAO,MAAM,iBAAiB,sDAkB7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const OrdersList: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=orders-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders-list.d.ts","sourceRoot":"","sources":["../../../../../../src/twap/components/orders/orders-list.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,+CAgCtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Orders: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=orders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../../../../../src/twap/components/orders/orders.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,+CAIlB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { SubmitOrderPanelProps } from '../../types';
3
+ type Props = SubmitOrderPanelProps & {
4
+ children: ReactNode;
5
+ };
6
+ export declare const SubmitOrderContextProvider: ({ children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useSubmitOrderPanelContext: () => SubmitOrderPanelProps;
8
+ declare const SubmitOrderPanel: (props: SubmitOrderPanelProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { SubmitOrderPanel };
10
+ //# sourceMappingURL=submit-order-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../../src/twap/components/submit-order-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAYxE,KAAK,KAAK,GAAG,qBAAqB,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,uBAAuB,KAAK,4CAEtE,CAAC;AAEF,eAAO,MAAM,0BAA0B,6BAEtC,CAAC;AAmMF,QAAA,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,4CAoDrD,CAAC;AAoBF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { TwapProvider as TWAP } from '../context/twap-context';
2
+ import { DISCLAIMER_URL, ORBS_LOGO, ORBS_WEBSITE_URL, DEFAULT_DURATION_OPTIONS } from '../consts';
3
+ import { useTradesPanel } from '../hooks/use-trades';
4
+ import { useFillDelayPanel } from '../hooks/use-fill-delay';
5
+ import { useMarketPricePanel } from '../hooks/use-market-price';
6
+ import { useDurationPanel } from '../hooks/use-duration';
7
+ import { useDisclaimerPanel } from '../hooks/use-disclaimer-panel';
8
+ import { useSubmitSwapPanel } from '../hooks/use-submit-swap-panel';
9
+ import { useTriggerPricePanel } from '../hooks/use-trigger-price';
10
+ import { useOrderHistoryPanel } from '../hooks/order-hooks';
11
+ import { useDstTokenPanel, useSrcTokenPanel } from '../hooks/use-token-panel';
12
+ import { useLimitPricePanel } from '../hooks/use-limit-price';
13
+ import { useInvertTradePanel } from '../hooks/use-invert-trade-panel';
14
+ import { useInputErrors } from '../hooks/use-input-errors';
15
+ import { useBuildRePermitOrderDataCallback } from '../hooks/use-build-repermit-order-data-callback.ts';
16
+ import { useTogglePricePanel } from '../hooks/use-toggle-price';
17
+ declare const Components: {
18
+ SubmitOrderPanel: (props: import('../types.ts').SubmitOrderPanelProps) => import("react/jsx-runtime").JSX.Element;
19
+ Orders: () => import("react/jsx-runtime").JSX.Element;
20
+ };
21
+ export { TWAP, ORBS_WEBSITE_URL, ORBS_LOGO, DEFAULT_DURATION_OPTIONS, DISCLAIMER_URL, Components, useTradesPanel, useDurationPanel, useFillDelayPanel, useLimitPricePanel, useMarketPricePanel, useSrcTokenPanel, useDstTokenPanel, useTriggerPricePanel, useOrderHistoryPanel, useSubmitSwapPanel, useDisclaimerPanel, useInvertTradePanel, useInputErrors, useTogglePricePanel, useBuildRePermitOrderDataCallback, };
22
+ //# sourceMappingURL=twap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twap.d.ts","sourceRoot":"","sources":["../../../../src/twap/twap.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAElG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,QAAA,MAAM,UAAU;;;CAGf,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,iCAAiC,GAClC,CAAC"}