@dhedge/trading-widget 6.0.6 → 6.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.
- package/const.cjs +1 -1
- package/const.js +94 -89
- package/core-kit/abi/dytm-office-asset-guard.d.ts +194 -0
- package/core-kit/abi/index.d.ts +1 -0
- package/core-kit/abi/ondo-gm-token-asset-guard.d.ts +20 -0
- package/core-kit/abi/ondo-price-oracle.d.ts +18 -0
- package/core-kit/const/index.d.ts +1 -0
- package/core-kit/const/midas.d.ts +2 -0
- package/core-kit/const/trading.d.ts +3 -0
- package/core-kit/hooks/pool/index.d.ts +4 -0
- package/core-kit/hooks/pool/use-asset-guard-address.d.ts +8 -0
- package/core-kit/hooks/pool/use-dytm-vault-data.d.ts +8 -0
- package/core-kit/hooks/pool/use-ondo-price-deviation.d.ts +10 -0
- package/core-kit/hooks/pool/use-ondo-vault-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-pool-assets-with-type.d.ts +14 -0
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-ondo-price-freshness.d.ts +4 -4
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-dytm-withdraw-asset-data.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts +3 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-simulation-withdraw-data.d.ts +7 -0
- package/core-kit/services/ondo/api.d.ts +5 -1
- package/core-kit/services/ondo/index.d.ts +2 -2
- package/core-kit/services/ondo/types.d.ts +9 -0
- package/core-kit/utils/complex-withdraw-asset-data.d.ts +9 -5
- package/core-kit/utils/dytm.d.ts +51 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/core-kit/utils/ondo.d.ts +2 -1
- package/core-kit/utils/web3.d.ts +5 -1
- package/dytm-CQG65-Rc.cjs +1 -0
- package/dytm-CWhBYz0P.js +784 -0
- package/{geoblocking-NkujbQRm.js → geoblocking-DtB4yr5l.js} +10 -8
- package/geoblocking-peuNwHMJ.cjs +1 -0
- package/gmx-U3Bnivj2.cjs +1 -0
- package/{gmx-DQ-wSifY.js → gmx-c42QlKyJ.js} +389 -369
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +4276 -3682
- package/package.json +1 -1
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/init-withdraw-step.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks.d.ts +10 -2
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts +2 -9
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks.d.ts +26 -0
- package/utils.cjs +1 -1
- package/utils.js +67 -58
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +0 -235
- package/geoblocking-9FD_O0-h.cjs +0 -1
- package/gmx-Dejxb5_t.cjs +0 -1
- package/ondo-GwhTVXds.js +0 -540
- package/ondo-rQybmFLf.cjs +0 -1
package/const.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./geoblocking-peuNwHMJ.cjs"),_=require("./gmx-U3Bnivj2.cjs"),A=require("wagmi/chains");exports.BLOCKED_COUNTRY_CODES_MAP=E.BLOCKED_COUNTRY_CODES_MAP;exports.COVERED_CALL_VAULT_ADDRESSES=E.COVERED_CALL_VAULT_ADDRESSES;exports.LOCAL_STORAGE_KEYS=E.LOCAL_STORAGE_KEYS;exports.MIDAS_MAPOLLO_ADDRESS=E.MIDAS_MAPOLLO_ADDRESS;exports.MIDAS_MAPOLLO_LINK=E.MIDAS_MAPOLLO_LINK;exports.ONDO_ASSET_TYPE=E.ONDO_ASSET_TYPE;exports.ONDO_BLOCKED_COUNTRY_CODES_MAP=E.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_FETCH_TIMEOUT_MS=_.ONDO_PRICES_FETCH_TIMEOUT_MS;exports.ONDO_PRICES_RABBY_SETTLE_DELAY=_.ONDO_PRICES_RABBY_SETTLE_DELAY;exports.ONDO_PRICE_CHECK_TIMEOUT_MS=_.ONDO_PRICE_CHECK_TIMEOUT_MS;exports.ONDO_PRICE_FRESHNESS_WINDOW_MS=_.ONDO_PRICE_FRESHNESS_WINDOW_MS;exports.ONDO_PRICE_MAX_DEVIATION_PERCENT=_.ONDO_PRICE_MAX_DEVIATION_PERCENT;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:()=>A.arbitrum});Object.defineProperty(exports,"base",{enumerable:!0,get:()=>A.base});Object.defineProperty(exports,"hyperEvm",{enumerable:!0,get:()=>A.hyperEvm});Object.defineProperty(exports,"mainnet",{enumerable:!0,get:()=>A.mainnet});Object.defineProperty(exports,"optimism",{enumerable:!0,get:()=>A.optimism});Object.defineProperty(exports,"polygon",{enumerable:!0,get:()=>A.polygon});
|
package/const.js
CHANGED
|
@@ -1,94 +1,99 @@
|
|
|
1
|
-
import { B as A, C as T, L as S,
|
|
2
|
-
import { A as
|
|
3
|
-
import { arbitrum as
|
|
1
|
+
import { B as A, C as T, L as S, M as I, a, O, b as L } from "./geoblocking-DtB4yr5l.js";
|
|
2
|
+
import { A as N, a as D, B as s, C as M, b as P, c as C, d as U, e as F, D as G, f as W, g as Y, h as H, i as V, j as B, k as K, l as r, m as o, n as e, o as t, p as X, q as m, r as p, s as i, t as n, u as b, v as c, w as d, x as f, y as x, E as g, z as h, F as l, G as y, H as j, I as k, J as q, K as u, L as v, M as Q, N as Z, O as w, P as z, Q as J, R as $, S as __, T as E_, U as A_, V as T_, W as S_, X as I_, Y as a_, Z as O_, _ as L_, $ as R_, a0 as N_, a1 as D_, a2 as s_, a3 as M_, a4 as P_, a5 as C_, a6 as U_, a7 as F_, a8 as G_, a9 as W_, aa as Y_, ab as H_, ac as V_, ad as B_, ae as K_, af as r_, ag as o_, ah as e_, ai as t_, aj as X_, ak as m_, al as p_, am as i_, an as n_, ao as b_, ap as c_, aq as d_ } from "./gmx-c42QlKyJ.js";
|
|
3
|
+
import { arbitrum as x_, base as g_, hyperEvm as h_, mainnet as l_, optimism as y_, polygon as j_ } from "wagmi/chains";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
N as ALCHEMY_RPC_URL_MAP,
|
|
6
|
+
D as AddressZero,
|
|
7
7
|
A as BLOCKED_COUNTRY_CODES_MAP,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
s as BRIDGED_TOKENS_SYMBOLS,
|
|
9
|
+
M as CHAIN_MAP,
|
|
10
|
+
P as CHAIN_NATIVE_TOKENS,
|
|
11
|
+
C as COMPLETE_WITHDRAW_ACTIONS,
|
|
12
12
|
T as COVERED_CALL_VAULT_ADDRESSES,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
13
|
+
U as CURRENCY_DECIMALS_MAP,
|
|
14
|
+
F as CURRENCY_SYMBOL_MAP,
|
|
15
|
+
G as DEFAULT_DEBOUNCE_TIME,
|
|
16
|
+
W as DEFAULT_DEPOSIT_METHOD,
|
|
17
|
+
Y as DEFAULT_DEPOSIT_SLIPPAGE,
|
|
18
|
+
H as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
|
|
19
|
+
V as DEFAULT_ERROR_MESSAGE,
|
|
20
|
+
B as DEFAULT_LOCK_TIME,
|
|
21
|
+
K as DEFAULT_MAX_GAS_LIMIT,
|
|
22
|
+
r as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
|
|
23
|
+
o as DEFAULT_NOTIFICATION_DURATION_MS,
|
|
24
|
+
e as DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP,
|
|
25
|
+
t as DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE,
|
|
26
|
+
X as DEFAULT_POLLING_INTERVAL,
|
|
27
|
+
m as DEFAULT_PRECISION,
|
|
28
|
+
p as DEFAULT_PROMISE_TIMEOUT_MS,
|
|
29
|
+
i as DEFAULT_RECEIVED_VALUE_GAP,
|
|
30
|
+
n as DEFAULT_SIMULATION_ERROR,
|
|
31
|
+
b as DEFAULT_SWAP_TRANSACTION_SLIPPAGE,
|
|
32
|
+
c as DEFAULT_VAULT_TOKEN_PRICE,
|
|
33
|
+
d as DEFAULT_VISIBLE_ASSETS_LIMIT,
|
|
34
|
+
f as DEFAULT_WITHDRAW_SLIPPAGE,
|
|
35
|
+
x as DEPOSIT_SWAP_DATA_ERROR,
|
|
36
|
+
g as EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD,
|
|
37
|
+
h as EASY_SWAPPER_V2_DEPOSIT_METHODS,
|
|
38
|
+
l as EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD,
|
|
39
|
+
y as EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD,
|
|
40
|
+
j as EMPTY_POOL_CONFIG,
|
|
41
|
+
k as EXTENDED_DEBOUNCE_TIME,
|
|
42
|
+
q as EXTENDED_POLLING_INTERVAL,
|
|
43
|
+
u as EXTREMELY_SHORT_POLLING_INTERVAL,
|
|
44
|
+
v as FALLBACK_ASSETS_MAP,
|
|
45
|
+
Q as FLAT_MONEY_COLLATERAL_MAP,
|
|
46
|
+
Z as FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES,
|
|
47
|
+
w as FLAT_MONEY_UNIT_ADDRESSES,
|
|
48
|
+
z as FLAT_MONEY_UNIT_LINK,
|
|
49
|
+
J as FLAT_MONEY_V1_UNIT_ADDRESS,
|
|
50
|
+
$ as FLAT_MONEY_V1_UNIT_LINK,
|
|
51
|
+
__ as GAS_ESTIMATION_ERROR,
|
|
52
|
+
E_ as GAS_LIMIT_BUFFER_COEFF,
|
|
53
|
+
A_ as GMX_MARKET_ASSETS,
|
|
54
|
+
T_ as GMX_MARKET_ASSETS_MAP,
|
|
55
|
+
S_ as GMX_WITHDRAW_ASSET_MAP,
|
|
56
|
+
I_ as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
|
|
57
|
+
a_ as INVALID_PRICES_LIMIT_ORDER_TITLE,
|
|
58
|
+
O_ as LIMIT_ORDER_TRANSACTION_ERRORS,
|
|
59
59
|
S as LOCAL_STORAGE_KEYS,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
t_ as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
60
|
+
L_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
|
|
61
|
+
R_ as MANAGER_FEE_DENOMINATOR,
|
|
62
|
+
N_ as MAX_GAS_LIMIT_MAP,
|
|
63
|
+
I as MIDAS_MAPOLLO_ADDRESS,
|
|
64
|
+
a as MIDAS_MAPOLLO_LINK,
|
|
65
|
+
D_ as MULTI_ASSET_TOKEN,
|
|
66
|
+
s_ as MaxUint256,
|
|
67
|
+
M_ as NATIVE_TOKEN_GAS_RESERVE_UNITS,
|
|
68
|
+
O as ONDO_ASSET_TYPE,
|
|
69
|
+
L as ONDO_BLOCKED_COUNTRY_CODES_MAP,
|
|
70
|
+
P_ as ONDO_PRICES_FETCH_TIMEOUT_MS,
|
|
71
|
+
C_ as ONDO_PRICES_RABBY_SETTLE_DELAY,
|
|
72
|
+
U_ as ONDO_PRICE_CHECK_TIMEOUT_MS,
|
|
73
|
+
F_ as ONDO_PRICE_FRESHNESS_WINDOW_MS,
|
|
74
|
+
G_ as ONDO_PRICE_MAX_DEVIATION_PERCENT,
|
|
75
|
+
W_ as ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP,
|
|
76
|
+
Y_ as PYTH_API_LINK,
|
|
77
|
+
H_ as SHORTEN_POLLING_INTERVAL,
|
|
78
|
+
V_ as SIMULATION_TIMEOUT_ERROR,
|
|
79
|
+
B_ as SLIPPAGE_AUTO_SIMULATION_CANDIDATES,
|
|
80
|
+
K_ as STABLE_TOKEN_SYMBOLS,
|
|
81
|
+
r_ as SWAP_FAILED_ERROR,
|
|
82
|
+
o_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
|
|
83
|
+
e_ as TRADING_LOG_EVENT_PARAM,
|
|
84
|
+
t_ as TRADING_PANEL_LOG_EVENT,
|
|
85
|
+
X_ as TRANSACTION_ERRORS,
|
|
86
|
+
m_ as TRANSACTION_ERROR_KEYS,
|
|
87
|
+
p_ as TRANSACTION_SETTLE_DELAY,
|
|
88
|
+
i_ as WBTC_BY_CHAIN_ID,
|
|
89
|
+
n_ as WETH_BY_CHAIN_ID,
|
|
90
|
+
b_ as WITHDRAW_SWAP_DATA_ERROR,
|
|
91
|
+
x_ as arbitrum,
|
|
92
|
+
g_ as base,
|
|
93
|
+
c_ as contractsAbisMap,
|
|
94
|
+
d_ as contractsAddressesMap,
|
|
95
|
+
h_ as hyperEvm,
|
|
96
|
+
l_ as mainnet,
|
|
97
|
+
y_ as optimism,
|
|
98
|
+
j_ as polygon
|
|
94
99
|
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export declare const DytmOfficeAssetGuardAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_pool";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
readonly name: "_poolTokenAmount";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "previewWithdrawal";
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly name: "assetData";
|
|
14
|
+
readonly type: "tuple[]";
|
|
15
|
+
readonly components: readonly [{
|
|
16
|
+
readonly name: "asset";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "amount";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "assetType";
|
|
23
|
+
readonly type: "uint16";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "isPool";
|
|
26
|
+
readonly type: "bool";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "isDebt";
|
|
29
|
+
readonly type: "bool";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "marketId";
|
|
32
|
+
readonly type: "uint88";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "accountId";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "tokenId";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "debtKey";
|
|
41
|
+
readonly type: "uint248";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "shares";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
}];
|
|
47
|
+
readonly stateMutability: "nonpayable";
|
|
48
|
+
readonly type: "function";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "dytmWithdrawProcessor";
|
|
52
|
+
readonly outputs: readonly [{
|
|
53
|
+
readonly name: "";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}];
|
|
56
|
+
readonly stateMutability: "view";
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
}];
|
|
59
|
+
export declare const DytmOfficeAbi: readonly [{
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly name: "params";
|
|
62
|
+
readonly type: "tuple";
|
|
63
|
+
readonly components: readonly [{
|
|
64
|
+
readonly name: "account";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "tokenId";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "receiver";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "assets";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "shares";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "extraData";
|
|
80
|
+
readonly type: "bytes";
|
|
81
|
+
}];
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "withdraw";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "assets";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "nonpayable";
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly name: "params";
|
|
93
|
+
readonly type: "tuple";
|
|
94
|
+
readonly components: readonly [{
|
|
95
|
+
readonly name: "account";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "key";
|
|
99
|
+
readonly type: "uint248";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "withCollateralType";
|
|
102
|
+
readonly type: "uint8";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "assets";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "shares";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "extraData";
|
|
111
|
+
readonly type: "bytes";
|
|
112
|
+
}];
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "repay";
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "assetsRepaid";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "nonpayable";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}];
|
|
122
|
+
export declare const OndoGMSwapAbi: readonly [{
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly name: "tokenIn";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "amountIn";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "tokenOut";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "amountOutMinimum";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "attestationSignature";
|
|
137
|
+
readonly type: "bytes";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "quote";
|
|
140
|
+
readonly type: "tuple";
|
|
141
|
+
readonly components: readonly [{
|
|
142
|
+
readonly name: "chainId";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "attestationId";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "userId";
|
|
149
|
+
readonly type: "bytes32";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "asset";
|
|
152
|
+
readonly type: "address";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "price";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "quantity";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "expiration";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "side";
|
|
164
|
+
readonly type: "uint8";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "additionalData";
|
|
167
|
+
readonly type: "bytes32";
|
|
168
|
+
}];
|
|
169
|
+
}];
|
|
170
|
+
readonly name: "swapExactInWithAttestation";
|
|
171
|
+
readonly outputs: readonly [];
|
|
172
|
+
readonly stateMutability: "nonpayable";
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
}];
|
|
175
|
+
export declare const UnwindPlanAbiItem: readonly [{
|
|
176
|
+
readonly type: "tuple";
|
|
177
|
+
readonly components: readonly [{
|
|
178
|
+
readonly name: "actions";
|
|
179
|
+
readonly type: "tuple[]";
|
|
180
|
+
readonly components: readonly [{
|
|
181
|
+
readonly name: "to";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "data";
|
|
185
|
+
readonly type: "bytes";
|
|
186
|
+
}];
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "outputAsset";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "minOutputAmount";
|
|
192
|
+
readonly type: "uint256";
|
|
193
|
+
}];
|
|
194
|
+
}];
|
package/core-kit/abi/index.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { EasySwapperV2Abi } from '../abi/easy-swapper-v2';
|
|
|
10
10
|
export { LimitOrderAbi } from '../abi/limit-order';
|
|
11
11
|
export { OndoPriceOracleAbi } from '../abi/ondo-price-oracle';
|
|
12
12
|
export { OndoGMTokenAssetGuardAbi, OndoWithdrawDataAbiItem, } from '../abi/ondo-gm-token-asset-guard';
|
|
13
|
+
export { DytmOfficeAssetGuardAbi, DytmOfficeAbi, OndoGMSwapAbi, UnwindPlanAbiItem, } from '../abi/dytm-office-asset-guard';
|
|
@@ -20,6 +20,26 @@ export declare const OndoGMTokenAssetGuardAbi: readonly [{
|
|
|
20
20
|
}];
|
|
21
21
|
readonly stateMutability: "nonpayable";
|
|
22
22
|
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly name: "ondoGMSwap";
|
|
26
|
+
readonly outputs: readonly [{
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly stateMutability: "view";
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "usdc";
|
|
36
|
+
readonly outputs: readonly [{
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}];
|
|
41
|
+
readonly stateMutability: "view";
|
|
42
|
+
readonly type: "function";
|
|
23
43
|
}];
|
|
24
44
|
export declare const OndoWithdrawDataAbiItem: readonly [{
|
|
25
45
|
readonly type: "tuple";
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
export declare const OndoPriceOracleAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_gmToken";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "getPrice";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "price";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}, {
|
|
13
|
+
readonly internalType: "uint256";
|
|
14
|
+
readonly name: "updatedAt";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
}, {
|
|
2
20
|
readonly inputs: readonly [{
|
|
3
21
|
readonly components: readonly [{
|
|
4
22
|
readonly internalType: "uint256";
|
|
@@ -11,6 +11,7 @@ export * from '../const/links';
|
|
|
11
11
|
export * from '../const/flat-money';
|
|
12
12
|
export * from '../const/trading';
|
|
13
13
|
export * from '../const/gmx';
|
|
14
|
+
export * from '../const/midas';
|
|
14
15
|
export * from '../const/derive';
|
|
15
16
|
export * from '../const/storage';
|
|
16
17
|
export * from '../const/geoblocking';
|
|
@@ -3,6 +3,9 @@ export declare const DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE = 500n;
|
|
|
3
3
|
export declare const TRANSACTION_SETTLE_DELAY: Record<ChainId, number>;
|
|
4
4
|
export declare const ONDO_PRICES_RABBY_SETTLE_DELAY = 6000;
|
|
5
5
|
export declare const ONDO_PRICE_FRESHNESS_WINDOW_MS = 40000;
|
|
6
|
+
export declare const ONDO_PRICE_MAX_DEVIATION_PERCENT = 0.2;
|
|
7
|
+
export declare const ONDO_PRICES_FETCH_TIMEOUT_MS = 6000;
|
|
8
|
+
export declare const ONDO_PRICE_CHECK_TIMEOUT_MS = 8000;
|
|
6
9
|
export declare const EASY_SWAPPER_V2_DEPOSIT_METHODS: {
|
|
7
10
|
DEPOSIT: "deposit";
|
|
8
11
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown";
|
|
@@ -17,3 +17,7 @@ export { useVaultSupplyCap } from '../../hooks/pool/use-vault-supply-cap';
|
|
|
17
17
|
export { useIsDepositBlocked } from '../../hooks/pool/use-is-deposit-blocked';
|
|
18
18
|
export { useVaultContractData } from '../../hooks/pool/use-vault-contract-data';
|
|
19
19
|
export { useOndoVaultData, type OndoVaultAsset, type OndoVaultData, } from '../../hooks/pool/use-ondo-vault-data';
|
|
20
|
+
export { useOndoPriceDeviation, type OndoPriceDeviationResult, } from '../../hooks/pool/use-ondo-price-deviation';
|
|
21
|
+
export { useDytmVaultData, type DytmVaultData, } from '../../hooks/pool/use-dytm-vault-data';
|
|
22
|
+
export { usePoolAssetsWithType, type PoolAssetWithType, type PoolAssetsWithType, } from '../../hooks/pool/use-pool-assets-with-type';
|
|
23
|
+
export { useAssetGuardAddress, useFetchAssetGuardAddress, } from '../../hooks/pool/use-asset-guard-address';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Address, ChainId } from '../../types';
|
|
2
|
+
interface UseAssetGuardAddressParams {
|
|
3
|
+
asset: Address | undefined;
|
|
4
|
+
chainId: ChainId;
|
|
5
|
+
}
|
|
6
|
+
export declare const useAssetGuardAddress: ({ asset, chainId, }: UseAssetGuardAddressParams) => Address | undefined;
|
|
7
|
+
export declare const useFetchAssetGuardAddress: (chainId: ChainId) => (asset: Address) => Promise<Address | undefined>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Address, PoolContractCallParams } from '../../types';
|
|
2
|
+
export interface DytmVaultData {
|
|
3
|
+
dytmOfficeAddress: Address | undefined;
|
|
4
|
+
assetGuardAddress: Address | undefined;
|
|
5
|
+
hasAssets: boolean;
|
|
6
|
+
isReady: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDytmVaultData: ({ address, chainId, }: PoolContractCallParams) => DytmVaultData;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PoolContractCallParams } from '../../types';
|
|
2
|
+
export interface OndoPriceDeviationResult {
|
|
3
|
+
needsPriceUpdate: boolean | undefined;
|
|
4
|
+
isChecking: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface UseOndoPriceDeviationParams extends PoolContractCallParams {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const useOndoPriceDeviation: ({ address, chainId, enabled, }: UseOndoPriceDeviationParams) => OndoPriceDeviationResult;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PoolComposition } from '../../types/pool.types';
|
|
2
|
+
import type { PoolContractCallParams } from '../../types/web3.types';
|
|
3
|
+
export interface PoolAssetWithType extends PoolComposition {
|
|
4
|
+
assetType: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface PoolAssetsWithType {
|
|
7
|
+
assets: PoolAssetWithType[];
|
|
8
|
+
isReady: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface UsePoolAssetsWithTypeParams extends PoolContractCallParams {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const usePoolAssetsWithType: ({ address, chainId, enabled, }: UsePoolAssetsWithTypeParams) => PoolAssetsWithType;
|
|
14
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash } from '../../../../types';
|
|
2
2
|
export interface UseOndoPriceFreshnessResult {
|
|
3
3
|
isOndoPriceFresh: () => boolean;
|
|
4
|
-
recordOndoPriceUpdate: (txHash?:
|
|
4
|
+
recordOndoPriceUpdate: (txHash?: Hash) => void;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Tracks recently confirmed Ondo oracle price updates per pool + chain in
|
|
8
|
-
* localStorage so a repeat deposit within the freshness window
|
|
9
|
-
* redundant `update_ondo_prices` step.
|
|
8
|
+
* localStorage so a repeat deposit or withdrawal within the freshness window
|
|
9
|
+
* can skip a redundant `update_ondo_prices` step.
|
|
10
10
|
*/
|
|
11
11
|
export declare const useOndoPriceFreshness: () => UseOndoPriceFreshnessResult;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PoolConfig } from '../../../../types';
|
|
2
|
+
import type { WithdrawDataOverride } from '../../../../utils';
|
|
3
|
+
export declare const useFetchDytmWithdrawAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => (withdrawAmountD18: bigint) => Promise<Map<string, WithdrawDataOverride>>;
|
package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { PoolConfig } from '../../../../types';
|
|
2
|
+
import type { WithdrawDataOverride } from '../../../../utils';
|
|
3
|
+
export declare const useFetchOndoWithdrawAssetData: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => (withdrawAmountD18: bigint) => Promise<Map<string, WithdrawDataOverride>>;
|
package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-simulation-withdraw-data.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WithdrawDataOverride } from '../../../../utils';
|
|
2
|
+
interface InitWithdrawSimulationWithdrawDataResult {
|
|
3
|
+
overrides: Map<string, WithdrawDataOverride> | undefined;
|
|
4
|
+
isFetching: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const useInitWithdrawSimulationWithdrawData: (withdrawAmountD18: bigint) => InitWithdrawSimulationWithdrawDataResult;
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OndoAttestationApiResponse, OndoPriceUpdateApiResponse } from '../../services/ondo/types';
|
|
1
|
+
import type { OndoAttestationApiResponse, OndoLatestPricesApiResponse, OndoPriceUpdateApiResponse } from '../../services/ondo/types';
|
|
2
2
|
import type { Address, ChainId } from '../../types';
|
|
3
3
|
interface CreateOndoAttestationsApiResponse {
|
|
4
4
|
attestations: OndoAttestationApiResponse[];
|
|
@@ -7,6 +7,10 @@ export declare const fetchOndoPriceUpdateData: ({ chainId, addresses, }: {
|
|
|
7
7
|
chainId: ChainId;
|
|
8
8
|
addresses: Address[];
|
|
9
9
|
}) => Promise<OndoPriceUpdateApiResponse>;
|
|
10
|
+
export declare const fetchOndoPrices: ({ chainId, addresses, }: {
|
|
11
|
+
chainId: ChainId;
|
|
12
|
+
addresses: Address[];
|
|
13
|
+
}) => Promise<OndoLatestPricesApiResponse>;
|
|
10
14
|
export declare const fetchCreateOndoAttestations: ({ chainId, items, }: {
|
|
11
15
|
chainId: ChainId;
|
|
12
16
|
items: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { configureOndoServices, getOndoAppCheckToken, getOndoConfig, prewarmOndoAppCheck, } from '../../services/ondo/firebase-app-check';
|
|
2
|
-
export { fetchCreateOndoAttestations, fetchOndoPriceUpdateData, } from '../../services/ondo/api';
|
|
3
|
-
export type { OndoApiUrls, OndoAttestationApiResponse, OndoFirebaseConfig, OndoIntegrationConfig, OndoPriceUpdateApiQuote, OndoPriceUpdateApiResponse, OndoRecaptchaConfig, } from '../../services/ondo/types';
|
|
2
|
+
export { fetchCreateOndoAttestations, fetchOndoPriceUpdateData, fetchOndoPrices, } from '../../services/ondo/api';
|
|
3
|
+
export type { OndoApiUrls, OndoAttestationApiResponse, OndoFirebaseConfig, OndoIntegrationConfig, OndoLatestPriceApiEntry, OndoLatestPricesApiResponse, OndoPriceUpdateApiQuote, OndoPriceUpdateApiResponse, OndoRecaptchaConfig, } from '../../services/ondo/types';
|
|
@@ -40,6 +40,15 @@ export interface OndoRecaptchaConfig {
|
|
|
40
40
|
export interface OndoApiUrls {
|
|
41
41
|
priceUpdateUrl: string;
|
|
42
42
|
createAttestationsUrl: string;
|
|
43
|
+
getPricesUrl?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface OndoLatestPriceApiEntry {
|
|
46
|
+
symbol: string;
|
|
47
|
+
address?: string;
|
|
48
|
+
price: string;
|
|
49
|
+
}
|
|
50
|
+
export interface OndoLatestPricesApiResponse {
|
|
51
|
+
prices: OndoLatestPriceApiEntry[];
|
|
43
52
|
}
|
|
44
53
|
export interface OndoIntegrationConfig {
|
|
45
54
|
firebase: OndoFirebaseConfig;
|