@dhedge/trading-widget 5.14.0-canary.3 → 6.0.0
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 +39 -38
- package/core-kit/const/network.d.ts +27 -10
- package/core-kit/const/tokens.d.ts +1 -0
- package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-delete-transaction.d.ts +1 -0
- package/core-kit/hooks/trading/limit-order-withdraw/use-on-demand-pricing-asset.d.ts +2 -0
- package/core-kit/hooks/trading/limit-order-withdraw/use-pending-limit-order-withdraw.d.ts +4 -0
- package/core-kit/services/ondo/api.d.ts +17 -0
- package/core-kit/services/ondo/firebase-app-check.d.ts +25 -0
- package/core-kit/services/ondo/index.d.ts +3 -0
- package/{trading-widget/providers/config-provider/ondo.types.d.ts → core-kit/services/ondo/types.d.ts} +18 -15
- package/core-kit/utils/ondo.d.ts +3 -2
- package/{gmx-2PubisAI.js → gmx-Cu3Ax-nZ.js} +281 -270
- package/gmx-DwT1ybQ5.cjs +1 -0
- package/index.cjs +1 -1
- package/index.d.ts +2 -1
- package/index.js +3014 -2796
- package/ondo-RW9qMjVL.cjs +1 -0
- package/ondo-v5VUY6Q9.js +520 -0
- package/package.json +7 -1
- package/style.css +1 -1
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.utils.d.ts +2 -5
- package/trading-widget/components/withdraw/init-step/meta/pending-limit-order-withdraw-banner.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/meta/pending-limit-order-withdraw-banner.hooks.d.ts +8 -0
- package/trading-widget/providers/config-provider/config-provider.hooks.d.ts +1 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +3 -3
- package/trading-widget/providers/config-provider/index.d.ts +1 -2
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +1 -0
- package/utils.cjs +1 -1
- package/utils.js +1 -1
- package/gmx-CZmEi9pW.cjs +0 -1
- package/ondo-BKKTC6rT.cjs +0 -1
- package/ondo-kEuPkMU1.js +0 -521
package/const.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./geoblocking-B1LF5kF0.cjs"),_=require("./gmx-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./geoblocking-B1LF5kF0.cjs"),_=require("./gmx-DwT1ybQ5.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_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_DEPOSIT_GAS_LIMIT=_.NATIVE_TOKEN_DEPOSIT_GAS_LIMIT;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,6 +1,6 @@
|
|
|
1
|
-
import { B as A, C as T, L as
|
|
2
|
-
import { A as O, a as R, B as s, C as N, b as D, c as M, d as P, e as
|
|
3
|
-
import { arbitrum as
|
|
1
|
+
import { B as A, C as T, L as I, O as S, a } from "./geoblocking-C_9Phuh4.js";
|
|
2
|
+
import { A as O, a as R, B as s, C as N, b as D, c as M, d as P, e as C, D as U, f as F, g as G, h as Y, i as W, j as H, k as V, l as B, m as K, n as r, o, p as e, q as t, r as X, s as m, t as p, u as i, v as n, w as c, x as d, E as b, y as f, z as x, F as g, G as h, H as y, I as j, J as k, K as l, 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 I_, Z as S_, _ as a_, $ as L_, a0 as O_, a1 as R_, a2 as s_, a3 as N_, a4 as D_, a5 as M_, a6 as P_, a7 as C_, a8 as U_, a9 as F_, aa as G_, ab as Y_, ac as W_, ad as H_, ae as V_, af as B_, ag as K_, ah as r_, ai as o_, aj as e_, ak as t_ } from "./gmx-Cu3Ax-nZ.js";
|
|
3
|
+
import { arbitrum as m_, base as p_, hyperEvm as i_, mainnet as n_, optimism as c_, polygon as d_ } from "wagmi/chains";
|
|
4
4
|
export {
|
|
5
5
|
O as ALCHEMY_RPC_URL_MAP,
|
|
6
6
|
R as AddressZero,
|
|
@@ -11,14 +11,14 @@ export {
|
|
|
11
11
|
M as COMPLETE_WITHDRAW_ACTIONS,
|
|
12
12
|
T as COVERED_CALL_VAULT_ADDRESSES,
|
|
13
13
|
P as CURRENCY_DECIMALS_MAP,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
C as CURRENCY_SYMBOL_MAP,
|
|
15
|
+
U as DEFAULT_DEBOUNCE_TIME,
|
|
16
16
|
F as DEFAULT_DEPOSIT_METHOD,
|
|
17
17
|
G as DEFAULT_DEPOSIT_SLIPPAGE,
|
|
18
18
|
Y as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
|
|
19
19
|
W as DEFAULT_ERROR_MESSAGE,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
H as DEFAULT_LOCK_TIME,
|
|
21
|
+
V as DEFAULT_MAX_GAS_LIMIT,
|
|
22
22
|
B as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
|
|
23
23
|
K as DEFAULT_NOTIFICATION_DURATION_MS,
|
|
24
24
|
r as DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP,
|
|
@@ -39,12 +39,12 @@ export {
|
|
|
39
39
|
h as EMPTY_POOL_CONFIG,
|
|
40
40
|
y as EXTENDED_DEBOUNCE_TIME,
|
|
41
41
|
j as EXTENDED_POLLING_INTERVAL,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
k as EXTREMELY_SHORT_POLLING_INTERVAL,
|
|
43
|
+
l as FALLBACK_ASSETS_MAP,
|
|
44
|
+
u as FLAT_MONEY_COLLATERAL_MAP,
|
|
45
|
+
v as FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES,
|
|
46
|
+
Q as FLAT_MONEY_UNIT_ADDRESSES,
|
|
47
|
+
Z as FLAT_MONEY_UNIT_LINK,
|
|
48
48
|
q as FLAT_MONEY_V1_UNIT_ADDRESS,
|
|
49
49
|
w as FLAT_MONEY_V1_UNIT_LINK,
|
|
50
50
|
z as GAS_ESTIMATION_ERROR,
|
|
@@ -54,37 +54,38 @@ export {
|
|
|
54
54
|
E_ as GMX_WITHDRAW_ASSET_MAP,
|
|
55
55
|
A_ as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
|
|
56
56
|
T_ as INVALID_PRICES_LIMIT_ORDER_TITLE,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
I_ as LIMIT_ORDER_TRANSACTION_ERRORS,
|
|
58
|
+
I as LOCAL_STORAGE_KEYS,
|
|
59
|
+
S_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
|
|
60
60
|
a_ as MANAGER_FEE_DENOMINATOR,
|
|
61
61
|
L_ as MAX_GAS_LIMIT_MAP,
|
|
62
62
|
O_ as MULTI_ASSET_TOKEN,
|
|
63
63
|
R_ as MaxUint256,
|
|
64
64
|
s_ as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
|
|
65
|
-
|
|
65
|
+
S as ONDO_ASSET_TYPE,
|
|
66
66
|
a as ONDO_BLOCKED_COUNTRY_CODES_MAP,
|
|
67
|
-
N_ as
|
|
68
|
-
D_ as
|
|
69
|
-
M_ as
|
|
70
|
-
P_ as
|
|
67
|
+
N_ as ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP,
|
|
68
|
+
D_ as PYTH_API_LINK,
|
|
69
|
+
M_ as SHORTEN_POLLING_INTERVAL,
|
|
70
|
+
P_ as SIMULATION_TIMEOUT_ERROR,
|
|
71
|
+
C_ as SLIPPAGE_AUTO_SIMULATION_CANDIDATES,
|
|
71
72
|
U_ as STABLE_TOKEN_SYMBOLS,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
F_ as SWAP_FAILED_ERROR,
|
|
74
|
+
G_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
|
|
75
|
+
Y_ as TRADING_LOG_EVENT_PARAM,
|
|
76
|
+
W_ as TRADING_PANEL_LOG_EVENT,
|
|
77
|
+
H_ as TRANSACTION_ERRORS,
|
|
77
78
|
V_ as TRANSACTION_ERROR_KEYS,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
B_ as TRANSACTION_SETTLE_DELAY,
|
|
80
|
+
K_ as WBTC_BY_CHAIN_ID,
|
|
81
|
+
r_ as WETH_BY_CHAIN_ID,
|
|
82
|
+
o_ as WITHDRAW_SWAP_DATA_ERROR,
|
|
83
|
+
m_ as arbitrum,
|
|
84
|
+
p_ as base,
|
|
85
|
+
e_ as contractsAbisMap,
|
|
86
|
+
t_ as contractsAddressesMap,
|
|
87
|
+
i_ as hyperEvm,
|
|
88
|
+
n_ as mainnet,
|
|
89
|
+
c_ as optimism,
|
|
90
|
+
d_ as polygon
|
|
90
91
|
};
|
|
@@ -55,6 +55,7 @@ export declare const CHAIN_MAP: {
|
|
|
55
55
|
cacheTime?: undefined;
|
|
56
56
|
ccipRead?: undefined;
|
|
57
57
|
chain?: undefined;
|
|
58
|
+
dataSuffix?: undefined;
|
|
58
59
|
experimental_blockTag?: undefined;
|
|
59
60
|
key?: undefined;
|
|
60
61
|
name?: undefined;
|
|
@@ -91,7 +92,7 @@ export declare const CHAIN_MAP: {
|
|
|
91
92
|
experimental_preconfirmationTime?: number | undefined;
|
|
92
93
|
rpcUrls: {
|
|
93
94
|
readonly default: {
|
|
94
|
-
readonly http: readonly ["https://polygon
|
|
95
|
+
readonly http: readonly ["https://polygon.drpc.org"];
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
98
|
sourceId?: number | undefined;
|
|
@@ -115,6 +116,7 @@ export declare const CHAIN_MAP: {
|
|
|
115
116
|
cacheTime?: undefined;
|
|
116
117
|
ccipRead?: undefined;
|
|
117
118
|
chain?: undefined;
|
|
119
|
+
dataSuffix?: undefined;
|
|
118
120
|
experimental_blockTag?: undefined;
|
|
119
121
|
key?: undefined;
|
|
120
122
|
name?: undefined;
|
|
@@ -236,6 +238,7 @@ export declare const CHAIN_MAP: {
|
|
|
236
238
|
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>, action?: string | undefined) => {
|
|
237
239
|
blockHash: `0x${string}` | null;
|
|
238
240
|
blockNumber: bigint | null;
|
|
241
|
+
blockTimestamp?: bigint | undefined;
|
|
239
242
|
from: `0x${string}`;
|
|
240
243
|
gas: bigint;
|
|
241
244
|
hash: `0x${string}`;
|
|
@@ -268,6 +271,7 @@ export declare const CHAIN_MAP: {
|
|
|
268
271
|
value: bigint;
|
|
269
272
|
blockHash: `0x${string}` | null;
|
|
270
273
|
blockNumber: bigint | null;
|
|
274
|
+
blockTimestamp?: bigint | undefined;
|
|
271
275
|
hash: `0x${string}`;
|
|
272
276
|
input: `0x${string}`;
|
|
273
277
|
transactionIndex: number | null;
|
|
@@ -288,6 +292,7 @@ export declare const CHAIN_MAP: {
|
|
|
288
292
|
} | {
|
|
289
293
|
blockHash: `0x${string}` | null;
|
|
290
294
|
blockNumber: bigint | null;
|
|
295
|
+
blockTimestamp?: bigint | undefined;
|
|
291
296
|
from: `0x${string}`;
|
|
292
297
|
gas: bigint;
|
|
293
298
|
hash: `0x${string}`;
|
|
@@ -316,6 +321,7 @@ export declare const CHAIN_MAP: {
|
|
|
316
321
|
} | {
|
|
317
322
|
blockHash: `0x${string}` | null;
|
|
318
323
|
blockNumber: bigint | null;
|
|
324
|
+
blockTimestamp?: bigint | undefined;
|
|
319
325
|
from: `0x${string}`;
|
|
320
326
|
gas: bigint;
|
|
321
327
|
hash: `0x${string}`;
|
|
@@ -344,6 +350,7 @@ export declare const CHAIN_MAP: {
|
|
|
344
350
|
} | {
|
|
345
351
|
blockHash: `0x${string}` | null;
|
|
346
352
|
blockNumber: bigint | null;
|
|
353
|
+
blockTimestamp?: bigint | undefined;
|
|
347
354
|
from: `0x${string}`;
|
|
348
355
|
gas: bigint;
|
|
349
356
|
hash: `0x${string}`;
|
|
@@ -372,6 +379,7 @@ export declare const CHAIN_MAP: {
|
|
|
372
379
|
} | {
|
|
373
380
|
blockHash: `0x${string}` | null;
|
|
374
381
|
blockNumber: bigint | null;
|
|
382
|
+
blockTimestamp?: bigint | undefined;
|
|
375
383
|
from: `0x${string}`;
|
|
376
384
|
gas: bigint;
|
|
377
385
|
hash: `0x${string}`;
|
|
@@ -407,6 +415,7 @@ export declare const CHAIN_MAP: {
|
|
|
407
415
|
blobGasUsed?: bigint | undefined;
|
|
408
416
|
blockHash: `0x${string}`;
|
|
409
417
|
blockNumber: bigint;
|
|
418
|
+
blockTimestamp?: bigint | undefined;
|
|
410
419
|
contractAddress: `0x${string}` | null | undefined;
|
|
411
420
|
cumulativeGasUsed: bigint;
|
|
412
421
|
effectiveGasPrice: bigint;
|
|
@@ -445,6 +454,7 @@ export declare const CHAIN_MAP: {
|
|
|
445
454
|
cacheTime?: undefined;
|
|
446
455
|
ccipRead?: undefined;
|
|
447
456
|
chain?: undefined;
|
|
457
|
+
dataSuffix?: undefined;
|
|
448
458
|
experimental_blockTag?: undefined;
|
|
449
459
|
key?: undefined;
|
|
450
460
|
name?: undefined;
|
|
@@ -505,6 +515,7 @@ export declare const CHAIN_MAP: {
|
|
|
505
515
|
cacheTime?: undefined;
|
|
506
516
|
ccipRead?: undefined;
|
|
507
517
|
chain?: undefined;
|
|
518
|
+
dataSuffix?: undefined;
|
|
508
519
|
experimental_blockTag?: undefined;
|
|
509
520
|
key?: undefined;
|
|
510
521
|
name?: undefined;
|
|
@@ -628,6 +639,7 @@ export declare const CHAIN_MAP: {
|
|
|
628
639
|
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>, action?: string | undefined) => {
|
|
629
640
|
blockHash: `0x${string}` | null;
|
|
630
641
|
blockNumber: bigint | null;
|
|
642
|
+
blockTimestamp?: bigint | undefined;
|
|
631
643
|
from: `0x${string}`;
|
|
632
644
|
gas: bigint;
|
|
633
645
|
hash: `0x${string}`;
|
|
@@ -660,6 +672,7 @@ export declare const CHAIN_MAP: {
|
|
|
660
672
|
value: bigint;
|
|
661
673
|
blockHash: `0x${string}` | null;
|
|
662
674
|
blockNumber: bigint | null;
|
|
675
|
+
blockTimestamp?: bigint | undefined;
|
|
663
676
|
hash: `0x${string}`;
|
|
664
677
|
input: `0x${string}`;
|
|
665
678
|
transactionIndex: number | null;
|
|
@@ -680,6 +693,7 @@ export declare const CHAIN_MAP: {
|
|
|
680
693
|
} | {
|
|
681
694
|
blockHash: `0x${string}` | null;
|
|
682
695
|
blockNumber: bigint | null;
|
|
696
|
+
blockTimestamp?: bigint | undefined;
|
|
683
697
|
from: `0x${string}`;
|
|
684
698
|
gas: bigint;
|
|
685
699
|
hash: `0x${string}`;
|
|
@@ -708,6 +722,7 @@ export declare const CHAIN_MAP: {
|
|
|
708
722
|
} | {
|
|
709
723
|
blockHash: `0x${string}` | null;
|
|
710
724
|
blockNumber: bigint | null;
|
|
725
|
+
blockTimestamp?: bigint | undefined;
|
|
711
726
|
from: `0x${string}`;
|
|
712
727
|
gas: bigint;
|
|
713
728
|
hash: `0x${string}`;
|
|
@@ -736,6 +751,7 @@ export declare const CHAIN_MAP: {
|
|
|
736
751
|
} | {
|
|
737
752
|
blockHash: `0x${string}` | null;
|
|
738
753
|
blockNumber: bigint | null;
|
|
754
|
+
blockTimestamp?: bigint | undefined;
|
|
739
755
|
from: `0x${string}`;
|
|
740
756
|
gas: bigint;
|
|
741
757
|
hash: `0x${string}`;
|
|
@@ -764,6 +780,7 @@ export declare const CHAIN_MAP: {
|
|
|
764
780
|
} | {
|
|
765
781
|
blockHash: `0x${string}` | null;
|
|
766
782
|
blockNumber: bigint | null;
|
|
783
|
+
blockTimestamp?: bigint | undefined;
|
|
767
784
|
from: `0x${string}`;
|
|
768
785
|
gas: bigint;
|
|
769
786
|
hash: `0x${string}`;
|
|
@@ -799,6 +816,7 @@ export declare const CHAIN_MAP: {
|
|
|
799
816
|
blobGasUsed?: bigint | undefined;
|
|
800
817
|
blockHash: `0x${string}`;
|
|
801
818
|
blockNumber: bigint;
|
|
819
|
+
blockTimestamp?: bigint | undefined;
|
|
802
820
|
contractAddress: `0x${string}` | null | undefined;
|
|
803
821
|
cumulativeGasUsed: bigint;
|
|
804
822
|
effectiveGasPrice: bigint;
|
|
@@ -837,6 +855,7 @@ export declare const CHAIN_MAP: {
|
|
|
837
855
|
cacheTime?: undefined;
|
|
838
856
|
ccipRead?: undefined;
|
|
839
857
|
chain?: undefined;
|
|
858
|
+
dataSuffix?: undefined;
|
|
840
859
|
experimental_blockTag?: undefined;
|
|
841
860
|
key?: undefined;
|
|
842
861
|
name?: undefined;
|
|
@@ -855,15 +874,12 @@ export declare const CHAIN_MAP: {
|
|
|
855
874
|
};
|
|
856
875
|
};
|
|
857
876
|
blockTime?: number | undefined;
|
|
858
|
-
contracts
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
multicall3?: import("viem").ChainContract | undefined;
|
|
865
|
-
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
866
|
-
} | undefined;
|
|
877
|
+
contracts: {
|
|
878
|
+
readonly multicall3: {
|
|
879
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
880
|
+
readonly blockCreated: 13051;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
867
883
|
ensTlds?: readonly string[] | undefined;
|
|
868
884
|
id: 999;
|
|
869
885
|
name: "HyperEVM";
|
|
@@ -899,6 +915,7 @@ export declare const CHAIN_MAP: {
|
|
|
899
915
|
cacheTime?: undefined;
|
|
900
916
|
ccipRead?: undefined;
|
|
901
917
|
chain?: undefined;
|
|
918
|
+
dataSuffix?: undefined;
|
|
902
919
|
experimental_blockTag?: undefined;
|
|
903
920
|
key?: undefined;
|
|
904
921
|
name?: undefined;
|
|
@@ -4,3 +4,4 @@ export declare const BRIDGED_TOKENS_SYMBOLS: Record<string, string>;
|
|
|
4
4
|
export declare const WETH_BY_CHAIN_ID: Record<number, TradingToken>;
|
|
5
5
|
export declare const WBTC_BY_CHAIN_ID: Record<number, TradingToken>;
|
|
6
6
|
export declare const FALLBACK_ASSETS_MAP: Record<ChainId, Record<string, TradingToken>>;
|
|
7
|
+
export declare const ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP: Partial<Record<ChainId, TradingToken>>;
|
package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-delete-transaction.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useLimitOrderWithdrawDeleteTransaction: () => () => Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OndoAttestationApiResponse, OndoPriceUpdateApiResponse } from '../../services/ondo/types';
|
|
2
|
+
import type { Address, ChainId } from '../../types';
|
|
3
|
+
interface CreateOndoAttestationsApiResponse {
|
|
4
|
+
attestations: OndoAttestationApiResponse[];
|
|
5
|
+
}
|
|
6
|
+
export declare const fetchOndoPriceUpdateData: ({ chainId, addresses, }: {
|
|
7
|
+
chainId: ChainId;
|
|
8
|
+
addresses: Address[];
|
|
9
|
+
}) => Promise<OndoPriceUpdateApiResponse>;
|
|
10
|
+
export declare const fetchCreateOndoAttestations: ({ chainId, items, }: {
|
|
11
|
+
chainId: ChainId;
|
|
12
|
+
items: {
|
|
13
|
+
address: Address;
|
|
14
|
+
tokenAmount: string;
|
|
15
|
+
}[];
|
|
16
|
+
}) => Promise<CreateOndoAttestationsApiResponse>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { OndoIntegrationConfig } from '../../services/ondo/types';
|
|
2
|
+
export declare const configureOndoServices: (config: OndoIntegrationConfig | undefined) => void;
|
|
3
|
+
export declare const getOndoConfig: () => OndoIntegrationConfig | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* Eagerly initializes the production App Check path so the reCAPTCHA Enterprise
|
|
6
|
+
* script downloads, begins collecting behavioral signals, and the SDK fetches a
|
|
7
|
+
* first token in the background (`isTokenAutoRefreshEnabled` is on). Without
|
|
8
|
+
* this, the entire chain runs lazily on the first deposit click — risking a
|
|
9
|
+
* timeout or a low-confidence assessment scored against ~0 signals.
|
|
10
|
+
*
|
|
11
|
+
* No-op in dev/preview (debug token path), on the server, or when Ondo isn't
|
|
12
|
+
* configured.
|
|
13
|
+
*/
|
|
14
|
+
export declare const prewarmOndoAppCheck: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a fresh App Check token for the Ondo Firebase project to attach as
|
|
17
|
+
* the `X-Firebase-AppCheck` header. Returns an empty string when the token
|
|
18
|
+
* cannot be obtained (server-side render, missing config, reCAPTCHA failure,
|
|
19
|
+
* or timeout) — callers should omit the header in that case and let the
|
|
20
|
+
* upstream 401 surface a clear error rather than silently bypassing auth.
|
|
21
|
+
*
|
|
22
|
+
* Dev / preview: uses a registered debug token via direct REST exchange.
|
|
23
|
+
* Production: uses the Firebase JS SDK with reCAPTCHA Enterprise.
|
|
24
|
+
*/
|
|
25
|
+
export declare const getOndoAppCheckToken: () => Promise<string>;
|
|
@@ -0,0 +1,3 @@
|
|
|
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';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Address, ChainId } from '../../../core-kit/types';
|
|
2
1
|
export interface OndoPriceUpdateApiQuote {
|
|
3
2
|
chainId: string | number;
|
|
4
3
|
attestationId: string | number;
|
|
@@ -14,11 +13,6 @@ export interface OndoPriceUpdateApiResponse {
|
|
|
14
13
|
quotes: OndoPriceUpdateApiQuote[];
|
|
15
14
|
signatures: string[];
|
|
16
15
|
}
|
|
17
|
-
export interface GetOndoPriceUpdateDataParams {
|
|
18
|
-
chainId: ChainId;
|
|
19
|
-
addresses: Address[];
|
|
20
|
-
}
|
|
21
|
-
export type GetOndoPriceUpdateData = (params: GetOndoPriceUpdateDataParams) => Promise<OndoPriceUpdateApiResponse>;
|
|
22
16
|
export interface OndoAttestationApiResponse {
|
|
23
17
|
attestationId: string;
|
|
24
18
|
userId: string;
|
|
@@ -33,13 +27,22 @@ export interface OndoAttestationApiResponse {
|
|
|
33
27
|
signature: string;
|
|
34
28
|
additionalData: string;
|
|
35
29
|
}
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
export interface OndoFirebaseConfig {
|
|
31
|
+
apiKey: string;
|
|
32
|
+
projectId: string;
|
|
33
|
+
appId: string;
|
|
34
|
+
authDomain: string;
|
|
35
|
+
}
|
|
36
|
+
export interface OndoRecaptchaConfig {
|
|
37
|
+
siteKey: string;
|
|
38
|
+
debugToken?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface OndoApiUrls {
|
|
41
|
+
priceUpdateUrl: string;
|
|
42
|
+
createAttestationsUrl: string;
|
|
43
|
+
}
|
|
44
|
+
export interface OndoIntegrationConfig {
|
|
45
|
+
firebase: OndoFirebaseConfig;
|
|
46
|
+
recaptcha: OndoRecaptchaConfig;
|
|
47
|
+
api: OndoApiUrls;
|
|
42
48
|
}
|
|
43
|
-
export type CreateOndoAttestations = (params: CreateOndoAttestationsParams) => Promise<{
|
|
44
|
-
attestations: OndoAttestationApiResponse[];
|
|
45
|
-
}>;
|
package/core-kit/utils/ondo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { OndoAttestationApiResponse, OndoPriceUpdateApiResponse } from '../services/ondo/types';
|
|
1
2
|
import type { Address, Hex } from '../types/web3.types';
|
|
2
|
-
import type { OndoAttestationApiResponse, OndoPriceUpdateApiResponse } from '../../trading-widget/providers/config-provider/ondo.types';
|
|
3
3
|
export declare const base64SignatureToHex: (b64: string) => Hex;
|
|
4
4
|
export interface OndoPriceOracleQuote {
|
|
5
5
|
chainId: bigint;
|
|
@@ -20,5 +20,6 @@ export declare const mapOndoApiResponseToUpdatePricesArgs: (response: OndoPriceU
|
|
|
20
20
|
export interface EncodeOndoWithdrawDataParams {
|
|
21
21
|
attestation: OndoAttestationApiResponse;
|
|
22
22
|
chainId: bigint;
|
|
23
|
+
slippagePercent: number;
|
|
23
24
|
}
|
|
24
|
-
export declare const encodeOndoWithdrawData: ({ attestation, chainId, }: EncodeOndoWithdrawDataParams) => Hex;
|
|
25
|
+
export declare const encodeOndoWithdrawData: ({ attestation, chainId, slippagePercent, }: EncodeOndoWithdrawDataParams) => Hex;
|