@dodoex/widgets 2.6.12-beta.0 → 2.6.12-beta.11
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/8de9a184d4ef0a11.svg +6 -0
- package/dist/cjs/8de9a184d4ef0a11.svg +6 -0
- package/dist/cjs/components/Confirm.d.ts +3 -2
- package/dist/cjs/components/ConnectWallet/NeedConnectButton.d.ts +1 -3
- package/dist/cjs/components/Swap/components/Dialog.d.ts +1 -0
- package/dist/cjs/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
- package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +2 -2
- package/dist/cjs/components/Swap/index.d.ts +4 -1
- package/dist/cjs/components/TokenLogo.d.ts +3 -1
- package/dist/cjs/constants/chains.d.ts +1 -0
- package/dist/cjs/{helper-Cto9FLzX.cjs → helper-AUp7J6va.cjs} +1 -1
- package/dist/cjs/helper-C5SrJQaK.cjs +1 -0
- package/dist/cjs/helper-DL8TMEkQ.cjs +1 -0
- package/dist/cjs/helper-DNaeIBQY.cjs +1 -0
- package/dist/cjs/hooks/Submission/types.d.ts +2 -0
- package/dist/cjs/hooks/Submission/useExecution.d.ts +2 -1
- package/dist/cjs/hooks/Swap/useExecuteSwap.d.ts +2 -1
- package/dist/cjs/{index-LuoRf91r.cjs → index-BKylx06q.cjs} +1 -1
- package/dist/cjs/{index-BprhI-s9.cjs → index-BVjmGGMM.cjs} +1 -1
- package/dist/cjs/index-BZtt1iuv.cjs +12 -0
- package/dist/cjs/index-BeGs2DH_.cjs +78 -0
- package/dist/cjs/index-BwnUmGDp.cjs +53 -0
- package/dist/cjs/index-CULtuKOC.cjs +78 -0
- package/dist/cjs/index-CVLls_ja.cjs +53 -0
- package/dist/cjs/index-DTCQ7g1k.cjs +12 -0
- package/dist/cjs/index-DUQ8hOW2.cjs +78 -0
- package/dist/cjs/index-DWLX0NSs.cjs +53 -0
- package/dist/cjs/index-DoCc2JCv.cjs +53 -0
- package/dist/cjs/index-DsNlidLA.cjs +12 -0
- package/dist/cjs/index.cjs +7 -7
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/cjs/{lottie-Cw1tUn46.cjs → lottie-4VzKv4A8.cjs} +1 -1
- package/dist/cjs/lottie-DHOGwVb_.cjs +1 -0
- package/dist/cjs/lottie-DLvPIL-h.cjs +1 -0
- package/dist/cjs/lottie-TilCy8UF.cjs +1 -0
- package/dist/cjs/providers/GlobalConfigContext.d.ts +6 -2
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/index.d.ts +1 -1
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +2 -2
- package/dist/cjs/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +2 -1
- package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +2 -1
- package/dist/cjs/src/components/Swap/index.d.ts +2 -1
- package/dist/cjs/src/components/Widget/BridgeTonSummaryDialog/index.d.ts +11 -0
- package/dist/cjs/src/components/Widget/index.d.ts +3 -0
- package/dist/cjs/src/constants/chains.d.ts +1 -2
- package/dist/cjs/src/constants/tokenList.d.ts +11 -2
- package/dist/cjs/src/hooks/Bridge/createBridgeOrder.d.ts +1 -1
- package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +3 -1
- package/dist/cjs/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +25 -6
- package/dist/cjs/src/hooks/ConnectWallet/TonConnect/contract.d.ts +8 -0
- package/dist/cjs/src/hooks/ConnectWallet/TonConnect/index.d.ts +26 -0
- package/dist/cjs/src/hooks/ConnectWallet/useWalletState.d.ts +28 -0
- package/dist/cjs/src/hooks/Submission/types.d.ts +14 -0
- package/dist/cjs/src/hooks/Submission/useExecution.d.ts +14 -0
- package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +1 -1
- package/dist/cjs/src/hooks/Swap/usePriceTimer.d.ts +1 -0
- package/dist/cjs/src/hooks/Token/type.d.ts +1 -0
- package/dist/cjs/src/hooks/Token/useGetTokenStatus.d.ts +2 -1
- package/dist/cjs/src/hooks/Token/useInitTokenList.d.ts +3 -1
- package/dist/cjs/src/hooks/Widget/useInitPropsToRedux.d.ts +1 -1
- package/dist/cjs/src/hooks/contract/abis/OrbiterV3ABI.d.ts +85 -0
- package/dist/cjs/src/hooks/contract/layerswap/constants.d.ts +6 -0
- package/dist/cjs/src/hooks/contract/layerswap/data.d.ts +43 -0
- package/dist/cjs/src/hooks/contract/layerswap/types.d.ts +170 -0
- package/dist/cjs/src/hooks/contract/layerswap/useLayerswapRouters.d.ts +20 -0
- package/dist/cjs/src/hooks/contract/orbiter/constants.d.ts +3 -0
- package/dist/cjs/src/hooks/contract/orbiter/encodeOrbiterBridge.d.ts +12 -0
- package/dist/cjs/src/hooks/contract/orbiter/useOrbiterContractMap.d.ts +5 -0
- package/dist/cjs/src/hooks/contract/orbiter/useOrbiterRouters.d.ts +21 -0
- package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +1 -2
- package/dist/cjs/src/index.d.ts +2 -0
- package/dist/cjs/src/store/actions/wallet.d.ts +1 -0
- package/dist/cjs/src/store/reducers/wallet.d.ts +1 -0
- package/dist/cjs/src/store/selectors/wallet.d.ts +1 -0
- package/dist/cjs/src/utils/device.d.ts +3 -0
- package/dist/components/Confirm.d.ts +3 -2
- package/dist/components/ConnectWallet/NeedConnectButton.d.ts +1 -3
- package/dist/components/Swap/components/Dialog.d.ts +1 -0
- package/dist/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
- package/dist/components/Swap/components/TokenCard/index.d.ts +2 -2
- package/dist/components/Swap/index.d.ts +4 -1
- package/dist/components/TokenLogo.d.ts +3 -1
- package/dist/constants/chains.d.ts +1 -0
- package/dist/{helper-ClCEnCKq.js → helper-CHqZavUq.js} +1 -1
- package/dist/helper-CPPmdUet.js +1 -0
- package/dist/helper-D1mp2p4F.js +1 -0
- package/dist/helper-Dhy5gy1p.js +1 -0
- package/dist/hooks/Submission/types.d.ts +2 -0
- package/dist/hooks/Submission/useExecution.d.ts +2 -1
- package/dist/hooks/Swap/useExecuteSwap.d.ts +2 -1
- package/dist/{index-namICBzO.js → index-0IX6JBNg.js} +1 -1
- package/dist/{index-B3zF3CfE.js → index-BgcusTMt.js} +1 -1
- package/dist/index-BlT57eKb.js +53 -0
- package/dist/index-C-UlcYP8.js +53 -0
- package/dist/index-C4JHklNK.js +12 -0
- package/dist/index-CE6izMXy.js +12 -0
- package/dist/index-CEwSZbo5.js +53 -0
- package/dist/index-CTxzesqs.js +53 -0
- package/dist/index-D0SWY6AZ.js +12 -0
- package/dist/index-Duga8SDh.js +78 -0
- package/dist/index-DxNt17fy.js +78 -0
- package/dist/index-QEEiFrZ2.js +78 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -7
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/{lottie-Cs4m17_U.js → lottie-B77ifW0u.js} +1 -1
- package/dist/lottie-C9cpjlCR.js +1 -0
- package/dist/lottie-CddNDjvd.js +1 -0
- package/dist/lottie-DMZ5X1eY.js +1 -0
- package/dist/providers/GlobalConfigContext.d.ts +6 -2
- package/dist/src/components/Bridge/BridgeSummaryDialog/index.d.ts +1 -1
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +2 -2
- package/dist/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +2 -1
- package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +2 -1
- package/dist/src/components/Swap/index.d.ts +2 -1
- package/dist/src/components/Widget/BridgeTonSummaryDialog/index.d.ts +11 -0
- package/dist/src/components/Widget/index.d.ts +3 -0
- package/dist/src/constants/chains.d.ts +1 -2
- package/dist/src/constants/tokenList.d.ts +11 -2
- package/dist/src/hooks/Bridge/createBridgeOrder.d.ts +1 -1
- package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +3 -1
- package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +25 -6
- package/dist/src/hooks/ConnectWallet/TonConnect/contract.d.ts +8 -0
- package/dist/src/hooks/ConnectWallet/TonConnect/index.d.ts +26 -0
- package/dist/src/hooks/ConnectWallet/useWalletState.d.ts +28 -0
- package/dist/src/hooks/Submission/types.d.ts +14 -0
- package/dist/src/hooks/Submission/useExecution.d.ts +14 -0
- package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +1 -1
- package/dist/src/hooks/Swap/usePriceTimer.d.ts +1 -0
- package/dist/src/hooks/Token/type.d.ts +1 -0
- package/dist/src/hooks/Token/useGetTokenStatus.d.ts +2 -1
- package/dist/src/hooks/Token/useInitTokenList.d.ts +3 -1
- package/dist/src/hooks/Widget/useInitPropsToRedux.d.ts +1 -1
- package/dist/src/hooks/contract/abis/OrbiterV3ABI.d.ts +85 -0
- package/dist/src/hooks/contract/layerswap/constants.d.ts +6 -0
- package/dist/src/hooks/contract/layerswap/data.d.ts +43 -0
- package/dist/src/hooks/contract/layerswap/types.d.ts +170 -0
- package/dist/src/hooks/contract/layerswap/useLayerswapRouters.d.ts +20 -0
- package/dist/src/hooks/contract/orbiter/constants.d.ts +3 -0
- package/dist/src/hooks/contract/orbiter/encodeOrbiterBridge.d.ts +12 -0
- package/dist/src/hooks/contract/orbiter/useOrbiterContractMap.d.ts +5 -0
- package/dist/src/hooks/contract/orbiter/useOrbiterRouters.d.ts +21 -0
- package/dist/src/hooks/contract/useFetchTokens.d.ts +1 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/store/actions/wallet.d.ts +1 -0
- package/dist/src/store/reducers/wallet.d.ts +1 -0
- package/dist/src/store/selectors/wallet.d.ts +1 -0
- package/dist/src/utils/device.d.ts +3 -0
- package/package.json +11 -2
- package/dist/cjs/index-Dyz2QYJX.cjs +0 -53
- package/dist/index-CK3jgZQ5.js +0 -53
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare enum NetworkType {
|
|
2
|
+
EVM = "evm",
|
|
3
|
+
Starknet = "starknet",
|
|
4
|
+
Solana = "solana",
|
|
5
|
+
Cosmos = "cosmos",
|
|
6
|
+
StarkEx = "starkex",
|
|
7
|
+
ZkSyncLite = "zksynclite",
|
|
8
|
+
TON = "ton"
|
|
9
|
+
}
|
|
10
|
+
export interface Token {
|
|
11
|
+
symbol: string;
|
|
12
|
+
logo: string;
|
|
13
|
+
contract: string | null | undefined;
|
|
14
|
+
decimals: number;
|
|
15
|
+
price_in_usd: number;
|
|
16
|
+
precision: number;
|
|
17
|
+
listing_date: string;
|
|
18
|
+
status?: 'active' | 'inactive' | 'not_found';
|
|
19
|
+
}
|
|
20
|
+
export interface Metadata {
|
|
21
|
+
evm_oracle_contract?: `0x${string}` | null;
|
|
22
|
+
evm_multicall_contract?: string | null;
|
|
23
|
+
listing_date: string;
|
|
24
|
+
}
|
|
25
|
+
export interface Network {
|
|
26
|
+
name: string;
|
|
27
|
+
display_name: string;
|
|
28
|
+
logo: string;
|
|
29
|
+
chain_id: string | null;
|
|
30
|
+
node_url: string;
|
|
31
|
+
type: NetworkType;
|
|
32
|
+
transaction_explorer_template: string;
|
|
33
|
+
account_explorer_template: string;
|
|
34
|
+
metadata: Metadata;
|
|
35
|
+
deposit_methods: string[];
|
|
36
|
+
token?: Token;
|
|
37
|
+
}
|
|
38
|
+
export interface Exchange {
|
|
39
|
+
display_name: string;
|
|
40
|
+
name: string;
|
|
41
|
+
logo: string;
|
|
42
|
+
token_groups: ExchangeToken[];
|
|
43
|
+
metadata: {
|
|
44
|
+
o_auth: {
|
|
45
|
+
connect_url: string;
|
|
46
|
+
authorize_url: string;
|
|
47
|
+
} | null;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ExchangeNetwork {
|
|
51
|
+
token: Token;
|
|
52
|
+
network: Network;
|
|
53
|
+
fee: {
|
|
54
|
+
total_fee: number;
|
|
55
|
+
total_fee_in_usd: number;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface ExchangeToken {
|
|
59
|
+
symbol: string;
|
|
60
|
+
logo: string;
|
|
61
|
+
status: 'active' | 'inactive' | 'not_found';
|
|
62
|
+
}
|
|
63
|
+
export declare enum SwapStatus {
|
|
64
|
+
Created = "created",
|
|
65
|
+
UserTransferPending = "user_transfer_pending",
|
|
66
|
+
UserTransferDelayed = "user_transfer_delayed",
|
|
67
|
+
LsTransferPending = "ls_transfer_pending",
|
|
68
|
+
Completed = "completed",
|
|
69
|
+
Failed = "failed",
|
|
70
|
+
Expired = "expired",
|
|
71
|
+
Cancelled = "cancelled"
|
|
72
|
+
}
|
|
73
|
+
export declare enum TransactionType {
|
|
74
|
+
Input = "input",
|
|
75
|
+
Output = "output",
|
|
76
|
+
Refuel = "refuel"
|
|
77
|
+
}
|
|
78
|
+
export declare enum BackendTransactionStatus {
|
|
79
|
+
Completed = "completed",
|
|
80
|
+
Failed = "failed",
|
|
81
|
+
Initiated = "initiated",
|
|
82
|
+
Pending = "pending"
|
|
83
|
+
}
|
|
84
|
+
export declare type Transaction = {
|
|
85
|
+
type: TransactionType;
|
|
86
|
+
from: string;
|
|
87
|
+
to: string;
|
|
88
|
+
created_date: string;
|
|
89
|
+
amount: number;
|
|
90
|
+
transaction_hash: string;
|
|
91
|
+
confirmations: number;
|
|
92
|
+
max_confirmations: number;
|
|
93
|
+
usd_value: number;
|
|
94
|
+
usd_price: number;
|
|
95
|
+
status: BackendTransactionStatus;
|
|
96
|
+
timestamp?: string;
|
|
97
|
+
};
|
|
98
|
+
export declare type SwapItem = {
|
|
99
|
+
id: string;
|
|
100
|
+
created_date: string;
|
|
101
|
+
source_network: Network;
|
|
102
|
+
source_token: Token;
|
|
103
|
+
source_exchange?: Exchange;
|
|
104
|
+
destination_network: Network;
|
|
105
|
+
destination_token: Token;
|
|
106
|
+
destination_exchange?: Exchange;
|
|
107
|
+
status: SwapStatus;
|
|
108
|
+
source_address: `0x${string}`;
|
|
109
|
+
destination_address: `0x${string}`;
|
|
110
|
+
requested_amount: number;
|
|
111
|
+
use_deposit_address: boolean;
|
|
112
|
+
transactions: Transaction[];
|
|
113
|
+
exchange_account_connected: boolean;
|
|
114
|
+
exchange_account_name?: string;
|
|
115
|
+
fail_reason?: string;
|
|
116
|
+
metadata: {
|
|
117
|
+
reference_id: string | null;
|
|
118
|
+
app: string | null;
|
|
119
|
+
sequence_number: number;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export declare type SwapQuote = {
|
|
123
|
+
source_network?: Network;
|
|
124
|
+
source_token?: Token;
|
|
125
|
+
destination_network?: Network;
|
|
126
|
+
destination_token?: Token;
|
|
127
|
+
receive_amount: number;
|
|
128
|
+
min_receive_amount: number;
|
|
129
|
+
total_fee: number;
|
|
130
|
+
total_fee_in_usd: number;
|
|
131
|
+
blockchain_fee: number;
|
|
132
|
+
service_fee: number;
|
|
133
|
+
avg_completion_time: string;
|
|
134
|
+
refuel_in_source?: number;
|
|
135
|
+
slippage?: number;
|
|
136
|
+
};
|
|
137
|
+
export declare type Refuel = {
|
|
138
|
+
network: Network;
|
|
139
|
+
token: Token;
|
|
140
|
+
amount: number;
|
|
141
|
+
amount_in_usd: number;
|
|
142
|
+
};
|
|
143
|
+
export declare type SwapResponse = {
|
|
144
|
+
swap: SwapItem;
|
|
145
|
+
quote: SwapQuote;
|
|
146
|
+
refuel?: Refuel;
|
|
147
|
+
};
|
|
148
|
+
export declare type DepositAction = {
|
|
149
|
+
amount: number;
|
|
150
|
+
amount_in_base_units: string;
|
|
151
|
+
call_data: `0x${string}` | string;
|
|
152
|
+
fee: any | null;
|
|
153
|
+
network: Network;
|
|
154
|
+
order: number;
|
|
155
|
+
to_address?: `0x${string}`;
|
|
156
|
+
token: Token;
|
|
157
|
+
fee_token: Token;
|
|
158
|
+
type: 'transfer' | 'manual_transfer';
|
|
159
|
+
};
|
|
160
|
+
export declare type QuoteReward = {
|
|
161
|
+
amount: number;
|
|
162
|
+
amount_in_usd: number;
|
|
163
|
+
token: Token;
|
|
164
|
+
network: Network;
|
|
165
|
+
};
|
|
166
|
+
export declare type Quote = {
|
|
167
|
+
quote: SwapQuote;
|
|
168
|
+
refuel: Refuel;
|
|
169
|
+
reward: QuoteReward;
|
|
170
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BridgeRouteI, RoutePriceStatus } from '../../Bridge/useFetchRoutePriceBridge';
|
|
2
|
+
import { TokenInfo } from '../../Token';
|
|
3
|
+
export declare function useLayerswapRouters({ skip, data: { fromToken, toToken, fromAmount, fromAddress, toAddress, slippage }, }: {
|
|
4
|
+
skip?: boolean;
|
|
5
|
+
data: {
|
|
6
|
+
fromToken: TokenInfo | null;
|
|
7
|
+
toToken: TokenInfo | null;
|
|
8
|
+
fromAmount: string;
|
|
9
|
+
fromAddress: string | undefined;
|
|
10
|
+
toAddress: string | undefined;
|
|
11
|
+
slippage?: number;
|
|
12
|
+
};
|
|
13
|
+
}): {
|
|
14
|
+
status: RoutePriceStatus;
|
|
15
|
+
router: BridgeRouteI | null;
|
|
16
|
+
limit: {
|
|
17
|
+
minAmt: number;
|
|
18
|
+
maxAmt: number;
|
|
19
|
+
} | null;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { BridgeRouteI } from '../../Bridge';
|
|
3
|
+
import { TokenInfo } from '../../Token';
|
|
4
|
+
import { useOrbiterRouters } from './useOrbiterRouters';
|
|
5
|
+
export declare function encodeOrbiterBridge({ route, fromAddress, toAddress, fromAmount, fromToken, contractAddress, }: {
|
|
6
|
+
route: Exclude<ReturnType<typeof useOrbiterRouters>['data'], undefined>[0];
|
|
7
|
+
fromAddress: string;
|
|
8
|
+
toAddress: string;
|
|
9
|
+
fromAmount: BigNumber;
|
|
10
|
+
fromToken: TokenInfo;
|
|
11
|
+
contractAddress: string;
|
|
12
|
+
}): Exclude<BridgeRouteI['encodeResultData'], undefined>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChainId } from '../../../constants/chains';
|
|
2
|
+
interface OrbiterRoute {
|
|
3
|
+
key: string;
|
|
4
|
+
id: string;
|
|
5
|
+
fromChainId: ChainId;
|
|
6
|
+
toChainId: ChainId;
|
|
7
|
+
fromTokenAddress: string;
|
|
8
|
+
toTokenAddress: string;
|
|
9
|
+
product: string;
|
|
10
|
+
endpoint: string;
|
|
11
|
+
minAmt: string;
|
|
12
|
+
maxAmt: string;
|
|
13
|
+
withholdingFee: string;
|
|
14
|
+
tradeFee: string;
|
|
15
|
+
spentTime: string;
|
|
16
|
+
vc: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function useOrbiterRouters({ skip }?: {
|
|
19
|
+
skip?: boolean;
|
|
20
|
+
}): import("@tanstack/react-query/build/legacy/types").UseQueryResult<OrbiterRoute[], Error>;
|
|
21
|
+
export {};
|
|
@@ -8,9 +8,8 @@ declare type TokenResult = {
|
|
|
8
8
|
symbol?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
};
|
|
11
|
-
export default function useFetchTokens({ tokenList,
|
|
11
|
+
export default function useFetchTokens({ tokenList, blockNumber, chainId, skip, }: {
|
|
12
12
|
tokenList?: TokenList;
|
|
13
|
-
addresses?: string[];
|
|
14
13
|
blockNumber?: number;
|
|
15
14
|
chainId?: number;
|
|
16
15
|
skip?: boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
import { WidgetProps } from './components/Widget';
|
|
3
3
|
export declare type SwapWidgetProps = WidgetProps;
|
|
4
4
|
export type { TokenInfo } from './hooks/Token/type';
|
|
5
|
+
export { default as BridgeTonSummaryDialog } from './components/Widget/BridgeTonSummaryDialog';
|
|
6
|
+
export { Widget } from './components/Widget';
|
|
5
7
|
export declare function SwapWidget(props: SwapWidgetProps): JSX.Element;
|
|
6
8
|
export declare function InitSwapWidget(props: SwapWidgetProps): void;
|
|
@@ -2,4 +2,5 @@ import { AppThunkAction } from '.';
|
|
|
2
2
|
import { ChainId } from '../../constants/chains';
|
|
3
3
|
export declare const setDefaultChainId: (chainId: ChainId) => AppThunkAction;
|
|
4
4
|
export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
5
|
+
export declare const setToTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
5
6
|
export declare const setBlockNumber: (blockNumber: number) => AppThunkAction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../reducers';
|
|
2
2
|
export declare const getDefaultChainId: (state?: RootState) => import("../../constants/chains").ChainId;
|
|
3
3
|
export declare const getFromTokenChainId: (state?: RootState) => import("../../constants/chains").ChainId | undefined;
|
|
4
|
+
export declare const getToTokenChainId: (state?: RootState) => import("../../constants/chains").ChainId | undefined;
|
|
4
5
|
export declare const getLatestBlockNumber: (state?: RootState) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "2.6.12-beta.
|
|
3
|
+
"version": "2.6.12-beta.11",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -66,9 +66,13 @@
|
|
|
66
66
|
"@lingui/core": "^4.3.0",
|
|
67
67
|
"@lingui/macro": "^4.3.0",
|
|
68
68
|
"@lingui/react": "^4.3.0",
|
|
69
|
+
"@orbs-network/ton-access": "^2.3.3",
|
|
69
70
|
"@reduxjs/toolkit": "^1.6.1",
|
|
70
71
|
"@semantic-release/changelog": "^6.0.1",
|
|
71
72
|
"@semantic-release/git": "^10.0.1",
|
|
73
|
+
"@tanstack/react-query": "^5.51.23",
|
|
74
|
+
"@tonconnect/ui": "^2.0.6",
|
|
75
|
+
"@twa-dev/sdk": "^7.8.0",
|
|
72
76
|
"@web3-react/core": "8.2.0",
|
|
73
77
|
"@web3-react/eip1193": "8.2.0",
|
|
74
78
|
"@web3-react/metamask": "8.2.1",
|
|
@@ -80,7 +84,12 @@
|
|
|
80
84
|
"lodash": "^4.17.21",
|
|
81
85
|
"make-plural": "^7.0.0",
|
|
82
86
|
"react-window": "^1.8.8",
|
|
83
|
-
"semantic-release": "^19.0.2"
|
|
87
|
+
"semantic-release": "^19.0.2",
|
|
88
|
+
"ton": "^13.9.0",
|
|
89
|
+
"ton-core": "^0.53.0",
|
|
90
|
+
"ton-crypto": "^3.2.0",
|
|
91
|
+
"tonweb": "^0.0.66",
|
|
92
|
+
"zustand": "^4.5.4"
|
|
84
93
|
},
|
|
85
94
|
"peerDependencies": {
|
|
86
95
|
"@babel/runtime": ">=7.17.0",
|