@dhedge/trading-widget 4.5.3 → 4.6.0-canary.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/core-kit/const/network.d.ts +22 -20
- package/index.cjs +1 -29
- package/index.js +8619 -19283
- package/package.json +28 -28
- package/style.css +1 -1
- package/core-kit/hooks/trading/deposit-v2/use-swap-data-based-on-send-token.d.ts +0 -1
- package/core-kit/hooks/trading/use-swap-data-query.d.ts +0 -7
- package/core-kit/hooks/trading/use-swaps-data-query.d.ts +0 -23
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-swap-data.d.ts +0 -1
|
@@ -9,14 +9,11 @@ export declare const CHAIN_MAP: {
|
|
|
9
9
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
blockTime
|
|
12
|
+
blockTime: 12000;
|
|
13
13
|
contracts: {
|
|
14
|
-
readonly ensRegistry: {
|
|
15
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
16
|
-
};
|
|
17
14
|
readonly ensUniversalResolver: {
|
|
18
|
-
readonly address: "
|
|
19
|
-
readonly blockCreated:
|
|
15
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
16
|
+
readonly blockCreated: 23085558;
|
|
20
17
|
};
|
|
21
18
|
readonly multicall3: {
|
|
22
19
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -31,6 +28,7 @@ export declare const CHAIN_MAP: {
|
|
|
31
28
|
readonly symbol: "ETH";
|
|
32
29
|
readonly decimals: 18;
|
|
33
30
|
};
|
|
31
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
34
32
|
rpcUrls: {
|
|
35
33
|
readonly default: {
|
|
36
34
|
readonly http: readonly ["https://eth.merkle.io"];
|
|
@@ -51,7 +49,7 @@ export declare const CHAIN_MAP: {
|
|
|
51
49
|
readonly apiUrl: "https://api.polygonscan.com/api";
|
|
52
50
|
};
|
|
53
51
|
};
|
|
54
|
-
blockTime
|
|
52
|
+
blockTime: 2000;
|
|
55
53
|
contracts: {
|
|
56
54
|
readonly multicall3: {
|
|
57
55
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -66,6 +64,7 @@ export declare const CHAIN_MAP: {
|
|
|
66
64
|
readonly symbol: "POL";
|
|
67
65
|
readonly decimals: 18;
|
|
68
66
|
};
|
|
67
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
69
68
|
rpcUrls: {
|
|
70
69
|
readonly default: {
|
|
71
70
|
readonly http: readonly ["https://polygon-rpc.com"];
|
|
@@ -139,6 +138,7 @@ export declare const CHAIN_MAP: {
|
|
|
139
138
|
readonly symbol: "ETH";
|
|
140
139
|
readonly decimals: 18;
|
|
141
140
|
};
|
|
141
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
142
142
|
rpcUrls: {
|
|
143
143
|
readonly default: {
|
|
144
144
|
readonly http: readonly ["https://mainnet.optimism.io"];
|
|
@@ -151,7 +151,7 @@ export declare const CHAIN_MAP: {
|
|
|
151
151
|
formatters: {
|
|
152
152
|
readonly block: {
|
|
153
153
|
exclude: [] | undefined;
|
|
154
|
-
format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean
|
|
154
|
+
format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean>, action?: string | undefined) => {
|
|
155
155
|
baseFeePerGas: bigint | null;
|
|
156
156
|
blobGasUsed: bigint;
|
|
157
157
|
difficulty: bigint;
|
|
@@ -184,7 +184,7 @@ export declare const CHAIN_MAP: {
|
|
|
184
184
|
};
|
|
185
185
|
readonly transaction: {
|
|
186
186
|
exclude: [] | undefined;
|
|
187
|
-
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean
|
|
187
|
+
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>, action?: string | undefined) => {
|
|
188
188
|
blockHash: `0x${string}` | null;
|
|
189
189
|
blockNumber: bigint | null;
|
|
190
190
|
from: `0x${string}`;
|
|
@@ -212,16 +212,16 @@ export declare const CHAIN_MAP: {
|
|
|
212
212
|
r: `0x${string}`;
|
|
213
213
|
s: `0x${string}`;
|
|
214
214
|
v: bigint;
|
|
215
|
+
value: bigint;
|
|
216
|
+
gas: bigint;
|
|
215
217
|
to: `0x${string}` | null;
|
|
216
218
|
from: `0x${string}`;
|
|
217
|
-
gas: bigint;
|
|
218
219
|
nonce: number;
|
|
219
|
-
value: bigint;
|
|
220
220
|
blockHash: `0x${string}` | null;
|
|
221
221
|
blockNumber: bigint | null;
|
|
222
|
+
transactionIndex: number | null;
|
|
222
223
|
hash: `0x${string}`;
|
|
223
224
|
input: `0x${string}`;
|
|
224
|
-
transactionIndex: number | null;
|
|
225
225
|
typeHex: `0x${string}` | null;
|
|
226
226
|
accessList?: undefined;
|
|
227
227
|
authorizationList?: undefined;
|
|
@@ -353,7 +353,7 @@ export declare const CHAIN_MAP: {
|
|
|
353
353
|
};
|
|
354
354
|
readonly transactionReceipt: {
|
|
355
355
|
exclude: [] | undefined;
|
|
356
|
-
format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt) => {
|
|
356
|
+
format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
357
357
|
blobGasPrice?: bigint | undefined;
|
|
358
358
|
blobGasUsed?: bigint | undefined;
|
|
359
359
|
blockHash: `0x${string}`;
|
|
@@ -391,7 +391,7 @@ export declare const CHAIN_MAP: {
|
|
|
391
391
|
readonly apiUrl: "https://api.arbiscan.io/api";
|
|
392
392
|
};
|
|
393
393
|
};
|
|
394
|
-
blockTime
|
|
394
|
+
blockTime: 250;
|
|
395
395
|
contracts: {
|
|
396
396
|
readonly multicall3: {
|
|
397
397
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -406,6 +406,7 @@ export declare const CHAIN_MAP: {
|
|
|
406
406
|
readonly symbol: "ETH";
|
|
407
407
|
readonly decimals: 18;
|
|
408
408
|
};
|
|
409
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
409
410
|
rpcUrls: {
|
|
410
411
|
readonly default: {
|
|
411
412
|
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
|
@@ -481,6 +482,7 @@ export declare const CHAIN_MAP: {
|
|
|
481
482
|
readonly symbol: "ETH";
|
|
482
483
|
readonly decimals: 18;
|
|
483
484
|
};
|
|
485
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
484
486
|
rpcUrls: {
|
|
485
487
|
readonly default: {
|
|
486
488
|
readonly http: readonly ["https://mainnet.base.org"];
|
|
@@ -493,7 +495,7 @@ export declare const CHAIN_MAP: {
|
|
|
493
495
|
formatters: {
|
|
494
496
|
readonly block: {
|
|
495
497
|
exclude: [] | undefined;
|
|
496
|
-
format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean
|
|
498
|
+
format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean>, action?: string | undefined) => {
|
|
497
499
|
baseFeePerGas: bigint | null;
|
|
498
500
|
blobGasUsed: bigint;
|
|
499
501
|
difficulty: bigint;
|
|
@@ -526,7 +528,7 @@ export declare const CHAIN_MAP: {
|
|
|
526
528
|
};
|
|
527
529
|
readonly transaction: {
|
|
528
530
|
exclude: [] | undefined;
|
|
529
|
-
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean
|
|
531
|
+
format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>, action?: string | undefined) => {
|
|
530
532
|
blockHash: `0x${string}` | null;
|
|
531
533
|
blockNumber: bigint | null;
|
|
532
534
|
from: `0x${string}`;
|
|
@@ -554,16 +556,16 @@ export declare const CHAIN_MAP: {
|
|
|
554
556
|
r: `0x${string}`;
|
|
555
557
|
s: `0x${string}`;
|
|
556
558
|
v: bigint;
|
|
559
|
+
value: bigint;
|
|
560
|
+
gas: bigint;
|
|
557
561
|
to: `0x${string}` | null;
|
|
558
562
|
from: `0x${string}`;
|
|
559
|
-
gas: bigint;
|
|
560
563
|
nonce: number;
|
|
561
|
-
value: bigint;
|
|
562
564
|
blockHash: `0x${string}` | null;
|
|
563
565
|
blockNumber: bigint | null;
|
|
566
|
+
transactionIndex: number | null;
|
|
564
567
|
hash: `0x${string}`;
|
|
565
568
|
input: `0x${string}`;
|
|
566
|
-
transactionIndex: number | null;
|
|
567
569
|
typeHex: `0x${string}` | null;
|
|
568
570
|
accessList?: undefined;
|
|
569
571
|
authorizationList?: undefined;
|
|
@@ -695,7 +697,7 @@ export declare const CHAIN_MAP: {
|
|
|
695
697
|
};
|
|
696
698
|
readonly transactionReceipt: {
|
|
697
699
|
exclude: [] | undefined;
|
|
698
|
-
format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt) => {
|
|
700
|
+
format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
699
701
|
blobGasPrice?: bigint | undefined;
|
|
700
702
|
blobGasUsed?: bigint | undefined;
|
|
701
703
|
blockHash: `0x${string}`;
|