@orderly.network/hooks 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -421,16 +421,16 @@ declare const useCrossSwap: () => {
|
|
|
421
421
|
address: string;
|
|
422
422
|
src: {
|
|
423
423
|
fromToken: string;
|
|
424
|
-
fromAmount:
|
|
424
|
+
fromAmount: bigint;
|
|
425
425
|
bridgeToken: string;
|
|
426
|
-
minBridgeAmount:
|
|
426
|
+
minBridgeAmount: bigint;
|
|
427
427
|
};
|
|
428
428
|
dst: {
|
|
429
429
|
chainId: string;
|
|
430
430
|
bridgedToken: string;
|
|
431
431
|
toToken: string;
|
|
432
|
-
minToAmount:
|
|
433
|
-
airdropNativeAmount:
|
|
432
|
+
minToAmount: bigint;
|
|
433
|
+
airdropNativeAmount: bigint;
|
|
434
434
|
};
|
|
435
435
|
}) => Promise<{} | undefined>;
|
|
436
436
|
loading: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -421,16 +421,16 @@ declare const useCrossSwap: () => {
|
|
|
421
421
|
address: string;
|
|
422
422
|
src: {
|
|
423
423
|
fromToken: string;
|
|
424
|
-
fromAmount:
|
|
424
|
+
fromAmount: bigint;
|
|
425
425
|
bridgeToken: string;
|
|
426
|
-
minBridgeAmount:
|
|
426
|
+
minBridgeAmount: bigint;
|
|
427
427
|
};
|
|
428
428
|
dst: {
|
|
429
429
|
chainId: string;
|
|
430
430
|
bridgedToken: string;
|
|
431
431
|
toToken: string;
|
|
432
|
-
minToAmount:
|
|
433
|
-
airdropNativeAmount:
|
|
432
|
+
minToAmount: bigint;
|
|
433
|
+
airdropNativeAmount: bigint;
|
|
434
434
|
};
|
|
435
435
|
}) => Promise<{} | undefined>;
|
|
436
436
|
loading: boolean;
|
package/dist/index.js
CHANGED
|
@@ -2599,13 +2599,15 @@ var useChains = (networkId, options = {}) => {
|
|
|
2599
2599
|
if (orderlyChainIds.has(chain.network_infos.chain_id)) {
|
|
2600
2600
|
orderlyChainsArr = orderlyChainsArr.map((item2) => {
|
|
2601
2601
|
if (item2.network_infos.chain_id === chain.network_infos.chain_id) {
|
|
2602
|
-
|
|
2602
|
+
const mergedChain = {
|
|
2603
|
+
...item2,
|
|
2603
2604
|
network_infos: {
|
|
2604
2605
|
...item2.network_infos,
|
|
2605
2606
|
...chain.network_infos
|
|
2606
2607
|
},
|
|
2607
2608
|
token_infos: chain.token_infos
|
|
2608
2609
|
};
|
|
2610
|
+
map.current.set(chain.network_infos.chain_id, mergedChain);
|
|
2609
2611
|
}
|
|
2610
2612
|
return item2;
|
|
2611
2613
|
});
|