@dhedge/trading-widget 6.0.3 → 6.0.5
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/const.cjs +1 -1
- package/const.js +44 -42
- package/core-kit/const/default-data.d.ts +1 -1
- package/core-kit/const/network.d.ts +204 -0
- package/core-kit/const/storage.d.ts +1 -0
- package/core-kit/const/trading.d.ts +2 -0
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-ondo-price-freshness.d.ts +11 -0
- package/core-kit/hooks/user/index.d.ts +1 -0
- package/core-kit/hooks/user/use-user-token-spendable-balance.d.ts +14 -0
- package/core-kit/hooks/web3/index.d.ts +1 -0
- package/core-kit/hooks/web3/use-is-rabby-wallet.d.ts +1 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/core-kit/utils/trading-result.d.ts +11 -0
- package/geoblocking-9FD_O0-h.cjs +1 -0
- package/{geoblocking-C_9Phuh4.js → geoblocking-NkujbQRm.js} +4 -3
- package/{gmx-C9vHHvqC.js → gmx-DQ-wSifY.js} +93 -91
- package/{gmx-DVJxXc_8.cjs → gmx-Dejxb5_t.cjs} +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +2 -2
- package/index.js +3004 -2952
- package/ondo-GwhTVXds.js +540 -0
- package/ondo-rQybmFLf.cjs +1 -0
- package/package.json +3 -3
- package/utils.cjs +1 -1
- package/utils.js +35 -33
- package/geoblocking-B1LF5kF0.cjs +0 -1
- package/ondo-BnkOJgHw.cjs +0 -1
- package/ondo-Cl97ID2o.js +0 -525
package/const.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./geoblocking-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./geoblocking-9FD_O0-h.cjs"),_=require("./gmx-Dejxb5_t.cjs"),E=require("wagmi/chains");exports.BLOCKED_COUNTRY_CODES_MAP=A.BLOCKED_COUNTRY_CODES_MAP;exports.COVERED_CALL_VAULT_ADDRESSES=A.COVERED_CALL_VAULT_ADDRESSES;exports.LOCAL_STORAGE_KEYS=A.LOCAL_STORAGE_KEYS;exports.ONDO_ASSET_TYPE=A.ONDO_ASSET_TYPE;exports.ONDO_BLOCKED_COUNTRY_CODES_MAP=A.ONDO_BLOCKED_COUNTRY_CODES_MAP;exports.ALCHEMY_RPC_URL_MAP=_.ALCHEMY_RPC_URL_MAP;exports.AddressZero=_.AddressZero;exports.BRIDGED_TOKENS_SYMBOLS=_.BRIDGED_TOKENS_SYMBOLS;exports.CHAIN_MAP=_.CHAIN_MAP;exports.CHAIN_NATIVE_TOKENS=_.CHAIN_NATIVE_TOKENS;exports.COMPLETE_WITHDRAW_ACTIONS=_.COMPLETE_WITHDRAW_ACTIONS;exports.CURRENCY_DECIMALS_MAP=_.CURRENCY_DECIMALS_MAP;exports.CURRENCY_SYMBOL_MAP=_.CURRENCY_SYMBOL_MAP;exports.DEFAULT_DEBOUNCE_TIME=_.DEFAULT_DEBOUNCE_TIME;exports.DEFAULT_DEPOSIT_METHOD=_.DEFAULT_DEPOSIT_METHOD;exports.DEFAULT_DEPOSIT_SLIPPAGE=_.DEFAULT_DEPOSIT_SLIPPAGE;exports.DEFAULT_DEPOSIT_SLIPPAGE_SCALE=_.DEFAULT_DEPOSIT_SLIPPAGE_SCALE;exports.DEFAULT_ERROR_MESSAGE=_.DEFAULT_ERROR_MESSAGE;exports.DEFAULT_LOCK_TIME=_.DEFAULT_LOCK_TIME;exports.DEFAULT_MAX_GAS_LIMIT=_.DEFAULT_MAX_GAS_LIMIT;exports.DEFAULT_MULTI_ASSET_WITHDRAW_METHOD=_.DEFAULT_MULTI_ASSET_WITHDRAW_METHOD;exports.DEFAULT_NOTIFICATION_DURATION_MS=_.DEFAULT_NOTIFICATION_DURATION_MS;exports.DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP=_.DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP;exports.DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE=_.DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE;exports.DEFAULT_POLLING_INTERVAL=_.DEFAULT_POLLING_INTERVAL;exports.DEFAULT_PRECISION=_.DEFAULT_PRECISION;exports.DEFAULT_PROMISE_TIMEOUT_MS=_.DEFAULT_PROMISE_TIMEOUT_MS;exports.DEFAULT_RECEIVED_VALUE_GAP=_.DEFAULT_RECEIVED_VALUE_GAP;exports.DEFAULT_SIMULATION_ERROR=_.DEFAULT_SIMULATION_ERROR;exports.DEFAULT_SWAP_TRANSACTION_SLIPPAGE=_.DEFAULT_SWAP_TRANSACTION_SLIPPAGE;exports.DEFAULT_VAULT_TOKEN_PRICE=_.DEFAULT_VAULT_TOKEN_PRICE;exports.DEFAULT_VISIBLE_ASSETS_LIMIT=_.DEFAULT_VISIBLE_ASSETS_LIMIT;exports.DEFAULT_WITHDRAW_SLIPPAGE=_.DEFAULT_WITHDRAW_SLIPPAGE;exports.DEPOSIT_SWAP_DATA_ERROR=_.DEPOSIT_SWAP_DATA_ERROR;exports.EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD=_.EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD;exports.EASY_SWAPPER_V2_DEPOSIT_METHODS=_.EASY_SWAPPER_V2_DEPOSIT_METHODS;exports.EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD=_.EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD;exports.EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD=_.EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD;exports.EMPTY_POOL_CONFIG=_.EMPTY_POOL_CONFIG;exports.EXTENDED_DEBOUNCE_TIME=_.EXTENDED_DEBOUNCE_TIME;exports.EXTENDED_POLLING_INTERVAL=_.EXTENDED_POLLING_INTERVAL;exports.EXTREMELY_SHORT_POLLING_INTERVAL=_.EXTREMELY_SHORT_POLLING_INTERVAL;exports.FALLBACK_ASSETS_MAP=_.FALLBACK_ASSETS_MAP;exports.FLAT_MONEY_COLLATERAL_MAP=_.FLAT_MONEY_COLLATERAL_MAP;exports.FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES=_.FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES;exports.FLAT_MONEY_UNIT_ADDRESSES=_.FLAT_MONEY_UNIT_ADDRESSES;exports.FLAT_MONEY_UNIT_LINK=_.FLAT_MONEY_UNIT_LINK;exports.FLAT_MONEY_V1_UNIT_ADDRESS=_.FLAT_MONEY_V1_UNIT_ADDRESS;exports.FLAT_MONEY_V1_UNIT_LINK=_.FLAT_MONEY_V1_UNIT_LINK;exports.GAS_ESTIMATION_ERROR=_.GAS_ESTIMATION_ERROR;exports.GAS_LIMIT_BUFFER_COEFF=_.GAS_LIMIT_BUFFER_COEFF;exports.GMX_MARKET_ASSETS=_.GMX_MARKET_ASSETS;exports.GMX_MARKET_ASSETS_MAP=_.GMX_MARKET_ASSETS_MAP;exports.GMX_WITHDRAW_ASSET_MAP=_.GMX_WITHDRAW_ASSET_MAP;exports.GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS=_.GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS;exports.INVALID_PRICES_LIMIT_ORDER_TITLE=_.INVALID_PRICES_LIMIT_ORDER_TITLE;exports.LIMIT_ORDER_TRANSACTION_ERRORS=_.LIMIT_ORDER_TRANSACTION_ERRORS;exports.LOG_EVENT_BY_TRANSACTION_ACTION_MAP=_.LOG_EVENT_BY_TRANSACTION_ACTION_MAP;exports.MANAGER_FEE_DENOMINATOR=_.MANAGER_FEE_DENOMINATOR;exports.MAX_GAS_LIMIT_MAP=_.MAX_GAS_LIMIT_MAP;exports.MULTI_ASSET_TOKEN=_.MULTI_ASSET_TOKEN;exports.MaxUint256=_.MaxUint256;exports.NATIVE_TOKEN_GAS_RESERVE_UNITS=_.NATIVE_TOKEN_GAS_RESERVE_UNITS;exports.ONDO_PRICES_RABBY_SETTLE_DELAY=_.ONDO_PRICES_RABBY_SETTLE_DELAY;exports.ONDO_PRICE_FRESHNESS_WINDOW_MS=_.ONDO_PRICE_FRESHNESS_WINDOW_MS;exports.ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP=_.ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP;exports.PYTH_API_LINK=_.PYTH_API_LINK;exports.SHORTEN_POLLING_INTERVAL=_.SHORTEN_POLLING_INTERVAL;exports.SIMULATION_TIMEOUT_ERROR=_.SIMULATION_TIMEOUT_ERROR;exports.SLIPPAGE_AUTO_SIMULATION_CANDIDATES=_.SLIPPAGE_AUTO_SIMULATION_CANDIDATES;exports.STABLE_TOKEN_SYMBOLS=_.STABLE_TOKEN_SYMBOLS;exports.SWAP_FAILED_ERROR=_.SWAP_FAILED_ERROR;exports.SWAP_QUOTE_REFRESH_INTERVAL_MS=_.SWAP_QUOTE_REFRESH_INTERVAL_MS;exports.TRADING_LOG_EVENT_PARAM=_.TRADING_LOG_EVENT_PARAM;exports.TRADING_PANEL_LOG_EVENT=_.TRADING_PANEL_LOG_EVENT;exports.TRANSACTION_ERRORS=_.TRANSACTION_ERRORS;exports.TRANSACTION_ERROR_KEYS=_.TRANSACTION_ERROR_KEYS;exports.TRANSACTION_SETTLE_DELAY=_.TRANSACTION_SETTLE_DELAY;exports.WBTC_BY_CHAIN_ID=_.WBTC_BY_CHAIN_ID;exports.WETH_BY_CHAIN_ID=_.WETH_BY_CHAIN_ID;exports.WITHDRAW_SWAP_DATA_ERROR=_.WITHDRAW_SWAP_DATA_ERROR;exports.contractsAbisMap=_.contractsAbisMap;exports.contractsAddressesMap=_.contractsAddressesMap;Object.defineProperty(exports,"arbitrum",{enumerable:!0,get:()=>E.arbitrum});Object.defineProperty(exports,"base",{enumerable:!0,get:()=>E.base});Object.defineProperty(exports,"hyperEvm",{enumerable:!0,get:()=>E.hyperEvm});Object.defineProperty(exports,"mainnet",{enumerable:!0,get:()=>E.mainnet});Object.defineProperty(exports,"optimism",{enumerable:!0,get:()=>E.optimism});Object.defineProperty(exports,"polygon",{enumerable:!0,get:()=>E.polygon});
|
package/const.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { B as A, C as T, L as
|
|
2
|
-
import { A as
|
|
3
|
-
import { arbitrum as
|
|
1
|
+
import { B as A, C as T, L as S, O as a, a as I } from "./geoblocking-NkujbQRm.js";
|
|
2
|
+
import { A as L, a as R, B as N, C as s, b as D, c as M, d as P, e as C, D as U, f as F, g as G, h as W, i as Y, j as H, k as V, l as B, m as K, n as r, o, p as e, q as t, r as m, s as X, t as p, u as i, v as n, w as c, x as d, y as b, E as f, z as x, F as g, G as h, H as l, I as y, J as j, K as k, L as u, M as v, N as Q, O as Z, P as q, Q as w, R as z, S as J, T as $, U as __, V as E_, W as A_, X as T_, Y as S_, Z as a_, _ as I_, $ as O_, a0 as L_, a1 as R_, a2 as N_, a3 as s_, a4 as D_, a5 as M_, a6 as P_, a7 as C_, a8 as U_, a9 as F_, aa as G_, ab as W_, ac as Y_, ad as H_, ae as V_, af as B_, ag as K_, ah as r_, ai as o_, aj as e_, ak as t_, al as m_, am as X_, an as p_ } from "./gmx-DQ-wSifY.js";
|
|
3
|
+
import { arbitrum as n_, base as c_, hyperEvm as d_, mainnet as b_, optimism as f_, polygon as x_ } from "wagmi/chains";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
L as ALCHEMY_RPC_URL_MAP,
|
|
6
6
|
R as AddressZero,
|
|
7
7
|
A as BLOCKED_COUNTRY_CODES_MAP,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
N as BRIDGED_TOKENS_SYMBOLS,
|
|
9
|
+
s as CHAIN_MAP,
|
|
10
10
|
D as CHAIN_NATIVE_TOKENS,
|
|
11
11
|
M as COMPLETE_WITHDRAW_ACTIONS,
|
|
12
12
|
T as COVERED_CALL_VAULT_ADDRESSES,
|
|
@@ -25,8 +25,8 @@ export {
|
|
|
25
25
|
o as DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE,
|
|
26
26
|
e as DEFAULT_POLLING_INTERVAL,
|
|
27
27
|
t as DEFAULT_PRECISION,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
m as DEFAULT_PROMISE_TIMEOUT_MS,
|
|
29
|
+
X as DEFAULT_RECEIVED_VALUE_GAP,
|
|
30
30
|
p as DEFAULT_SIMULATION_ERROR,
|
|
31
31
|
i as DEFAULT_SWAP_TRANSACTION_SLIPPAGE,
|
|
32
32
|
n as DEFAULT_VAULT_TOKEN_PRICE,
|
|
@@ -54,39 +54,41 @@ export {
|
|
|
54
54
|
E_ as GMX_MARKET_ASSETS_MAP,
|
|
55
55
|
A_ as GMX_WITHDRAW_ASSET_MAP,
|
|
56
56
|
T_ as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
S_ as INVALID_PRICES_LIMIT_ORDER_TITLE,
|
|
58
|
+
a_ as LIMIT_ORDER_TRANSACTION_ERRORS,
|
|
59
|
+
S as LOCAL_STORAGE_KEYS,
|
|
60
|
+
I_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
|
|
61
|
+
O_ as MANAGER_FEE_DENOMINATOR,
|
|
62
|
+
L_ as MAX_GAS_LIMIT_MAP,
|
|
63
63
|
R_ as MULTI_ASSET_TOKEN,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
D_ as
|
|
69
|
-
M_ as
|
|
70
|
-
P_ as
|
|
71
|
-
C_ as
|
|
72
|
-
U_ as
|
|
73
|
-
F_ as
|
|
74
|
-
G_ as
|
|
75
|
-
W_ as
|
|
76
|
-
Y_ as
|
|
77
|
-
H_ as
|
|
78
|
-
V_ as
|
|
79
|
-
B_ as
|
|
80
|
-
K_ as
|
|
81
|
-
r_ as
|
|
82
|
-
o_ as
|
|
83
|
-
e_ as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
d_ as
|
|
91
|
-
b_ as
|
|
64
|
+
N_ as MaxUint256,
|
|
65
|
+
s_ as NATIVE_TOKEN_GAS_RESERVE_UNITS,
|
|
66
|
+
a as ONDO_ASSET_TYPE,
|
|
67
|
+
I as ONDO_BLOCKED_COUNTRY_CODES_MAP,
|
|
68
|
+
D_ as ONDO_PRICES_RABBY_SETTLE_DELAY,
|
|
69
|
+
M_ as ONDO_PRICE_FRESHNESS_WINDOW_MS,
|
|
70
|
+
P_ as ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP,
|
|
71
|
+
C_ as PYTH_API_LINK,
|
|
72
|
+
U_ as SHORTEN_POLLING_INTERVAL,
|
|
73
|
+
F_ as SIMULATION_TIMEOUT_ERROR,
|
|
74
|
+
G_ as SLIPPAGE_AUTO_SIMULATION_CANDIDATES,
|
|
75
|
+
W_ as STABLE_TOKEN_SYMBOLS,
|
|
76
|
+
Y_ as SWAP_FAILED_ERROR,
|
|
77
|
+
H_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
|
|
78
|
+
V_ as TRADING_LOG_EVENT_PARAM,
|
|
79
|
+
B_ as TRADING_PANEL_LOG_EVENT,
|
|
80
|
+
K_ as TRANSACTION_ERRORS,
|
|
81
|
+
r_ as TRANSACTION_ERROR_KEYS,
|
|
82
|
+
o_ as TRANSACTION_SETTLE_DELAY,
|
|
83
|
+
e_ as WBTC_BY_CHAIN_ID,
|
|
84
|
+
t_ as WETH_BY_CHAIN_ID,
|
|
85
|
+
m_ as WITHDRAW_SWAP_DATA_ERROR,
|
|
86
|
+
n_ as arbitrum,
|
|
87
|
+
c_ as base,
|
|
88
|
+
X_ as contractsAbisMap,
|
|
89
|
+
p_ as contractsAddressesMap,
|
|
90
|
+
d_ as hyperEvm,
|
|
91
|
+
b_ as mainnet,
|
|
92
|
+
f_ as optimism,
|
|
93
|
+
x_ as polygon
|
|
92
94
|
};
|
|
@@ -22,7 +22,7 @@ export declare const DEFAULT_MULTI_ASSET_WITHDRAW_METHOD = "withdrawSafe";
|
|
|
22
22
|
export declare const EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD = "initWithdrawal";
|
|
23
23
|
export declare const EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD = "unrollAndClaim";
|
|
24
24
|
export declare const EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD = "completeWithdrawal";
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const NATIVE_TOKEN_GAS_RESERVE_UNITS = 2000000;
|
|
26
26
|
export declare const GAS_LIMIT_BUFFER_COEFF = 1.25;
|
|
27
27
|
export declare const MANAGER_FEE_DENOMINATOR = 10000;
|
|
28
28
|
export declare const DEFAULT_PROMISE_TIMEOUT_MS = 13000;
|
|
@@ -41,8 +41,42 @@ export declare const CHAIN_MAP: {
|
|
|
41
41
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
42
42
|
formatters?: undefined;
|
|
43
43
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
44
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
account?: undefined;
|
|
47
|
+
batch?: undefined;
|
|
48
|
+
cacheTime?: undefined;
|
|
49
|
+
ccipRead?: undefined;
|
|
50
|
+
chain?: undefined;
|
|
51
|
+
dataSuffix?: undefined;
|
|
52
|
+
experimental_blockTag?: undefined;
|
|
53
|
+
key?: undefined;
|
|
54
|
+
name?: undefined;
|
|
55
|
+
pollingInterval?: undefined;
|
|
56
|
+
request?: undefined;
|
|
57
|
+
transport?: undefined;
|
|
58
|
+
type?: undefined;
|
|
59
|
+
uid?: undefined;
|
|
60
|
+
} | undefined>;
|
|
44
61
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
45
62
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
63
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
account?: undefined;
|
|
66
|
+
batch?: undefined;
|
|
67
|
+
cacheTime?: undefined;
|
|
68
|
+
ccipRead?: undefined;
|
|
69
|
+
chain?: undefined;
|
|
70
|
+
dataSuffix?: undefined;
|
|
71
|
+
experimental_blockTag?: undefined;
|
|
72
|
+
key?: undefined;
|
|
73
|
+
name?: undefined;
|
|
74
|
+
pollingInterval?: undefined;
|
|
75
|
+
request?: undefined;
|
|
76
|
+
transport?: undefined;
|
|
77
|
+
type?: undefined;
|
|
78
|
+
uid?: undefined;
|
|
79
|
+
} | undefined>;
|
|
46
80
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
47
81
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
48
82
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -102,8 +136,42 @@ export declare const CHAIN_MAP: {
|
|
|
102
136
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
103
137
|
formatters?: undefined;
|
|
104
138
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
139
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
140
|
+
[x: string]: unknown;
|
|
141
|
+
account?: undefined;
|
|
142
|
+
batch?: undefined;
|
|
143
|
+
cacheTime?: undefined;
|
|
144
|
+
ccipRead?: undefined;
|
|
145
|
+
chain?: undefined;
|
|
146
|
+
dataSuffix?: undefined;
|
|
147
|
+
experimental_blockTag?: undefined;
|
|
148
|
+
key?: undefined;
|
|
149
|
+
name?: undefined;
|
|
150
|
+
pollingInterval?: undefined;
|
|
151
|
+
request?: undefined;
|
|
152
|
+
transport?: undefined;
|
|
153
|
+
type?: undefined;
|
|
154
|
+
uid?: undefined;
|
|
155
|
+
} | undefined>;
|
|
105
156
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
106
157
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
158
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
account?: undefined;
|
|
161
|
+
batch?: undefined;
|
|
162
|
+
cacheTime?: undefined;
|
|
163
|
+
ccipRead?: undefined;
|
|
164
|
+
chain?: undefined;
|
|
165
|
+
dataSuffix?: undefined;
|
|
166
|
+
experimental_blockTag?: undefined;
|
|
167
|
+
key?: undefined;
|
|
168
|
+
name?: undefined;
|
|
169
|
+
pollingInterval?: undefined;
|
|
170
|
+
request?: undefined;
|
|
171
|
+
transport?: undefined;
|
|
172
|
+
type?: undefined;
|
|
173
|
+
uid?: undefined;
|
|
174
|
+
} | undefined>;
|
|
107
175
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
108
176
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
109
177
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -438,8 +506,42 @@ export declare const CHAIN_MAP: {
|
|
|
438
506
|
};
|
|
439
507
|
};
|
|
440
508
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
509
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
510
|
+
[x: string]: unknown;
|
|
511
|
+
account?: undefined;
|
|
512
|
+
batch?: undefined;
|
|
513
|
+
cacheTime?: undefined;
|
|
514
|
+
ccipRead?: undefined;
|
|
515
|
+
chain?: undefined;
|
|
516
|
+
dataSuffix?: undefined;
|
|
517
|
+
experimental_blockTag?: undefined;
|
|
518
|
+
key?: undefined;
|
|
519
|
+
name?: undefined;
|
|
520
|
+
pollingInterval?: undefined;
|
|
521
|
+
request?: undefined;
|
|
522
|
+
transport?: undefined;
|
|
523
|
+
type?: undefined;
|
|
524
|
+
uid?: undefined;
|
|
525
|
+
} | undefined>;
|
|
441
526
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
442
527
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
528
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
529
|
+
[x: string]: unknown;
|
|
530
|
+
account?: undefined;
|
|
531
|
+
batch?: undefined;
|
|
532
|
+
cacheTime?: undefined;
|
|
533
|
+
ccipRead?: undefined;
|
|
534
|
+
chain?: undefined;
|
|
535
|
+
dataSuffix?: undefined;
|
|
536
|
+
experimental_blockTag?: undefined;
|
|
537
|
+
key?: undefined;
|
|
538
|
+
name?: undefined;
|
|
539
|
+
pollingInterval?: undefined;
|
|
540
|
+
request?: undefined;
|
|
541
|
+
transport?: undefined;
|
|
542
|
+
type?: undefined;
|
|
543
|
+
uid?: undefined;
|
|
544
|
+
} | undefined>;
|
|
443
545
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
444
546
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
445
547
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -501,8 +603,42 @@ export declare const CHAIN_MAP: {
|
|
|
501
603
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
502
604
|
formatters?: undefined;
|
|
503
605
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
606
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
607
|
+
[x: string]: unknown;
|
|
608
|
+
account?: undefined;
|
|
609
|
+
batch?: undefined;
|
|
610
|
+
cacheTime?: undefined;
|
|
611
|
+
ccipRead?: undefined;
|
|
612
|
+
chain?: undefined;
|
|
613
|
+
dataSuffix?: undefined;
|
|
614
|
+
experimental_blockTag?: undefined;
|
|
615
|
+
key?: undefined;
|
|
616
|
+
name?: undefined;
|
|
617
|
+
pollingInterval?: undefined;
|
|
618
|
+
request?: undefined;
|
|
619
|
+
transport?: undefined;
|
|
620
|
+
type?: undefined;
|
|
621
|
+
uid?: undefined;
|
|
622
|
+
} | undefined>;
|
|
504
623
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
505
624
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
625
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
626
|
+
[x: string]: unknown;
|
|
627
|
+
account?: undefined;
|
|
628
|
+
batch?: undefined;
|
|
629
|
+
cacheTime?: undefined;
|
|
630
|
+
ccipRead?: undefined;
|
|
631
|
+
chain?: undefined;
|
|
632
|
+
dataSuffix?: undefined;
|
|
633
|
+
experimental_blockTag?: undefined;
|
|
634
|
+
key?: undefined;
|
|
635
|
+
name?: undefined;
|
|
636
|
+
pollingInterval?: undefined;
|
|
637
|
+
request?: undefined;
|
|
638
|
+
transport?: undefined;
|
|
639
|
+
type?: undefined;
|
|
640
|
+
uid?: undefined;
|
|
641
|
+
} | undefined>;
|
|
506
642
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
507
643
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
508
644
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -839,8 +975,42 @@ export declare const CHAIN_MAP: {
|
|
|
839
975
|
};
|
|
840
976
|
};
|
|
841
977
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
978
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
979
|
+
[x: string]: unknown;
|
|
980
|
+
account?: undefined;
|
|
981
|
+
batch?: undefined;
|
|
982
|
+
cacheTime?: undefined;
|
|
983
|
+
ccipRead?: undefined;
|
|
984
|
+
chain?: undefined;
|
|
985
|
+
dataSuffix?: undefined;
|
|
986
|
+
experimental_blockTag?: undefined;
|
|
987
|
+
key?: undefined;
|
|
988
|
+
name?: undefined;
|
|
989
|
+
pollingInterval?: undefined;
|
|
990
|
+
request?: undefined;
|
|
991
|
+
transport?: undefined;
|
|
992
|
+
type?: undefined;
|
|
993
|
+
uid?: undefined;
|
|
994
|
+
} | undefined>;
|
|
842
995
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
843
996
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
997
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
998
|
+
[x: string]: unknown;
|
|
999
|
+
account?: undefined;
|
|
1000
|
+
batch?: undefined;
|
|
1001
|
+
cacheTime?: undefined;
|
|
1002
|
+
ccipRead?: undefined;
|
|
1003
|
+
chain?: undefined;
|
|
1004
|
+
dataSuffix?: undefined;
|
|
1005
|
+
experimental_blockTag?: undefined;
|
|
1006
|
+
key?: undefined;
|
|
1007
|
+
name?: undefined;
|
|
1008
|
+
pollingInterval?: undefined;
|
|
1009
|
+
request?: undefined;
|
|
1010
|
+
transport?: undefined;
|
|
1011
|
+
type?: undefined;
|
|
1012
|
+
uid?: undefined;
|
|
1013
|
+
} | undefined>;
|
|
844
1014
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
845
1015
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
846
1016
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -901,8 +1071,42 @@ export declare const CHAIN_MAP: {
|
|
|
901
1071
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
902
1072
|
formatters?: undefined;
|
|
903
1073
|
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
1074
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
1075
|
+
[x: string]: unknown;
|
|
1076
|
+
account?: undefined;
|
|
1077
|
+
batch?: undefined;
|
|
1078
|
+
cacheTime?: undefined;
|
|
1079
|
+
ccipRead?: undefined;
|
|
1080
|
+
chain?: undefined;
|
|
1081
|
+
dataSuffix?: undefined;
|
|
1082
|
+
experimental_blockTag?: undefined;
|
|
1083
|
+
key?: undefined;
|
|
1084
|
+
name?: undefined;
|
|
1085
|
+
pollingInterval?: undefined;
|
|
1086
|
+
request?: undefined;
|
|
1087
|
+
transport?: undefined;
|
|
1088
|
+
type?: undefined;
|
|
1089
|
+
uid?: undefined;
|
|
1090
|
+
} | undefined>;
|
|
904
1091
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
905
1092
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
1093
|
+
client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
1094
|
+
[x: string]: unknown;
|
|
1095
|
+
account?: undefined;
|
|
1096
|
+
batch?: undefined;
|
|
1097
|
+
cacheTime?: undefined;
|
|
1098
|
+
ccipRead?: undefined;
|
|
1099
|
+
chain?: undefined;
|
|
1100
|
+
dataSuffix?: undefined;
|
|
1101
|
+
experimental_blockTag?: undefined;
|
|
1102
|
+
key?: undefined;
|
|
1103
|
+
name?: undefined;
|
|
1104
|
+
pollingInterval?: undefined;
|
|
1105
|
+
request?: undefined;
|
|
1106
|
+
transport?: undefined;
|
|
1107
|
+
type?: undefined;
|
|
1108
|
+
uid?: undefined;
|
|
1109
|
+
} | undefined>;
|
|
906
1110
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
907
1111
|
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
908
1112
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ChainId, TransactionAction } from '../types';
|
|
2
2
|
export declare const DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE = 500n;
|
|
3
3
|
export declare const TRANSACTION_SETTLE_DELAY: Record<ChainId, number>;
|
|
4
|
+
export declare const ONDO_PRICES_RABBY_SETTLE_DELAY = 6000;
|
|
5
|
+
export declare const ONDO_PRICE_FRESHNESS_WINDOW_MS = 40000;
|
|
4
6
|
export declare const EASY_SWAPPER_V2_DEPOSIT_METHODS: {
|
|
5
7
|
DEPOSIT: "deposit";
|
|
6
8
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Address } from '../../../../types';
|
|
2
|
+
export interface UseOndoPriceFreshnessResult {
|
|
3
|
+
isOndoPriceFresh: () => boolean;
|
|
4
|
+
recordOndoPriceUpdate: (txHash?: Address) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Tracks recently confirmed Ondo oracle price updates per pool + chain in
|
|
8
|
+
* localStorage so a repeat deposit within the freshness window can skip a
|
|
9
|
+
* redundant `update_ondo_prices` step.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useOndoPriceFreshness: () => UseOndoPriceFreshnessResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { useUserTokenBalance } from '../../hooks/user/use-user-token-balance';
|
|
2
|
+
export { useUserTokenSpendableBalance } from '../../hooks/user/use-user-token-spendable-balance';
|
|
2
3
|
export { useIsInsufficientBalance } from '../../hooks/user/use-is-insufficient-balance';
|
|
3
4
|
export { useIsDhedgeVaultConnected } from '../../hooks/user/use-is-dhedge-vault-connected';
|
|
4
5
|
export { useFlatmoneyPointsUserBalances } from '../../hooks/user/use-flatmoney-points-user-balances';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Address } from '../../types/web3.types';
|
|
2
|
+
interface UserTokenSpendableBalanceParams {
|
|
3
|
+
symbol: string;
|
|
4
|
+
address: Address;
|
|
5
|
+
watch?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns the balance available to spend. For native tokens this is the raw
|
|
9
|
+
* balance minus a gas reserve, so a user can still pay for the transaction.
|
|
10
|
+
* For ERC20 tokens it equals the raw balance. Use this for Max buttons and
|
|
11
|
+
* input validation, and `useUserTokenBalance` for display.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useUserTokenSpendableBalance: ({ symbol, address, watch, }: UserTokenSpendableBalanceParams) => string;
|
|
14
|
+
export {};
|
|
@@ -3,6 +3,7 @@ export { useAccount } from '../../hooks/web3/use-account';
|
|
|
3
3
|
export { useNetwork } from '../../hooks/web3/use-network';
|
|
4
4
|
export { useTokenAllowance } from '../../hooks/web3/use-token-allowance';
|
|
5
5
|
export { useIsWalletConnected } from '../../hooks/web3/use-is-wallet-connected';
|
|
6
|
+
export { useIsRabbyWallet } from '../../hooks/web3/use-is-rabby-wallet';
|
|
6
7
|
export { useBalance } from '../../hooks/web3/use-balance';
|
|
7
8
|
export { useContractFunction } from '../../hooks/web3/use-contract-function';
|
|
8
9
|
export { useGasPrice } from '../../hooks/web3/use-gas-price';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsRabbyWallet: () => boolean;
|
|
@@ -3,6 +3,7 @@ export * from '../utils/common';
|
|
|
3
3
|
export * from '../utils/web3';
|
|
4
4
|
export * from '../utils/number';
|
|
5
5
|
export * from '../utils/transaction';
|
|
6
|
+
export * from '../utils/trading-result';
|
|
6
7
|
export * from '../utils/token';
|
|
7
8
|
export * from '../utils/error';
|
|
8
9
|
export * from '../utils/formatter';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PendingTransaction } from '../types';
|
|
2
|
+
export declare const shouldSwallowMainnetPollError: ({ chainId, txHash, error, }: {
|
|
3
|
+
chainId: PendingTransaction['chainId'] | undefined;
|
|
4
|
+
txHash: PendingTransaction['txHash'] | undefined;
|
|
5
|
+
error: unknown;
|
|
6
|
+
}) => boolean;
|
|
7
|
+
export declare const getSettleDelay: ({ chainId, action, isRabbyWallet, }: {
|
|
8
|
+
chainId: PendingTransaction['chainId'] | undefined;
|
|
9
|
+
action: PendingTransaction['action'] | undefined;
|
|
10
|
+
isRabbyWallet: boolean;
|
|
11
|
+
}) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=new Set(["0x2fbadd08ade2e8a24cf1fe3a58fe918336b39a72"]),S={REFERRER:"referrer",REF_POOL:"ref_pool",ONDO_PRICE_UPDATES:"ondo_price_updates"},_={BY:"Belarus",CD:"Democratic Republic of the Congo",CI:"Côte d'Ivoire",CU:"Cuba",IQ:"Iraq",IR:"Iran",KP:"North Korea",LB:"Lebanon",LR:"Liberia",LY:"Libya",MM:"Myanmar",RU:"Russia",SD:"Sudan",SO:"Somalia",SY:"Syria",VE:"Venezuela",YE:"Yemen",ZW:"Zimbabwe"},E={AF:"Afghanistan",BY:"Belarus",CA:"Canada",CU:"Cuba",KP:"North Korea",IR:"Iran",LY:"Libya",MM:"Myanmar",RU:"Russia",SO:"Somalia",SS:"South Sudan",SD:"Sudan",SY:"Syria",US:"United States"};exports.BLOCKED_COUNTRY_CODES_MAP=_;exports.COVERED_CALL_VAULT_ADDRESSES=a;exports.LOCAL_STORAGE_KEYS=S;exports.ONDO_ASSET_TYPE=41;exports.ONDO_BLOCKED_COUNTRY_CODES_MAP=E;
|
|
@@ -3,7 +3,8 @@ const a = 41, e = /* @__PURE__ */ new Set([
|
|
|
3
3
|
// BTCCOVCALL (Arbitrum)
|
|
4
4
|
]), S = {
|
|
5
5
|
REFERRER: "referrer",
|
|
6
|
-
REF_POOL: "ref_pool"
|
|
6
|
+
REF_POOL: "ref_pool",
|
|
7
|
+
ONDO_PRICE_UPDATES: "ondo_price_updates"
|
|
7
8
|
}, n = {
|
|
8
9
|
BY: "Belarus",
|
|
9
10
|
CD: "Democratic Republic of the Congo",
|
|
@@ -23,7 +24,7 @@ const a = 41, e = /* @__PURE__ */ new Set([
|
|
|
23
24
|
VE: "Venezuela",
|
|
24
25
|
YE: "Yemen",
|
|
25
26
|
ZW: "Zimbabwe"
|
|
26
|
-
},
|
|
27
|
+
}, o = {
|
|
27
28
|
AF: "Afghanistan",
|
|
28
29
|
BY: "Belarus",
|
|
29
30
|
CA: "Canada",
|
|
@@ -44,5 +45,5 @@ export {
|
|
|
44
45
|
e as C,
|
|
45
46
|
S as L,
|
|
46
47
|
a as O,
|
|
47
|
-
|
|
48
|
+
o as a
|
|
48
49
|
};
|