@velora-dex/widget 0.1.0-rc.0 → 0.1.0-rc.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/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/web3/providers.d.ts +3 -0
- package/dist/components/web3/providers.d.ts.map +1 -1
- package/dist/components/web3/providers.js +18 -1
- package/dist/components/web3/providers.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js.map +1 -1
- package/dist/components/widget/Drawer/Overlay.d.ts +9 -0
- package/dist/components/widget/Drawer/Overlay.d.ts.map +1 -0
- package/dist/components/widget/Drawer/Overlay.js +62 -0
- package/dist/components/widget/Drawer/Overlay.js.map +1 -0
- package/dist/components/widget/Drawer/index.d.ts.map +1 -1
- package/dist/components/widget/Drawer/index.js +2 -1
- package/dist/components/widget/Drawer/index.js.map +1 -1
- package/dist/components/widget/Drawer/state/useDrawerControls.d.ts +3 -0
- package/dist/components/widget/Drawer/state/useDrawerControls.d.ts.map +1 -1
- package/dist/components/widget/Drawer/state/useDrawerControls.js +1 -1
- package/dist/components/widget/Drawer/state/useDrawerControls.js.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/subscriptions.d.ts.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js +1 -2
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js.map +1 -1
- package/dist/core/across/utils.d.ts.map +1 -1
- package/dist/core/across/utils.js +1 -2
- package/dist/core/across/utils.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +93 -85
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenToInputProps.js +1 -4
- package/dist/core/inputs/hooks/useTokenToInputProps.js.map +1 -1
- package/dist/core/inputs/state/selectedTokenActionsAtom.d.ts.map +1 -1
- package/dist/core/inputs/state/selectedTokenActionsAtom.js +2 -2
- package/dist/core/inputs/state/selectedTokenActionsAtom.js.map +1 -1
- package/dist/core/inputs/state/store.d.ts +6 -0
- package/dist/core/inputs/state/store.d.ts.map +1 -0
- package/dist/core/inputs/state/store.js +6 -0
- package/dist/core/inputs/state/store.js.map +1 -0
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +4 -5
- package/dist/core/logger.js.map +1 -1
- package/dist/core/swapDetails/useSwapDetailsListProps.d.ts.map +1 -1
- package/dist/core/swapDetails/useSwapDetailsListProps.js +0 -1
- package/dist/core/swapDetails/useSwapDetailsListProps.js.map +1 -1
- package/dist/core/swapDetails/youGet.d.ts +1 -3
- package/dist/core/swapDetails/youGet.d.ts.map +1 -1
- package/dist/core/swapDetails/youGet.js +1 -3
- package/dist/core/swapDetails/youGet.js.map +1 -1
- package/dist/crosschain_token_list.json +3230 -0
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.d.ts +3 -2
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts +6 -6
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.js +3 -3
- package/dist/hooks/swap/prices/delta/orders/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.d.ts +2 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +2 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +5 -2
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts +4 -4
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js.map +1 -1
- package/dist/lib/constants/index.d.ts +1 -1
- package/dist/lib/constants/index.d.ts.map +1 -1
- package/dist/lib/constants/index.js +1 -1
- package/dist/lib/constants/index.js.map +1 -1
- package/dist/lib/utils/price.d.ts +2 -6
- package/dist/lib/utils/price.d.ts.map +1 -1
- package/dist/lib/utils/price.js +6 -13
- package/dist/lib/utils/price.js.map +1 -1
- package/dist/lib/utils/toasts.d.ts +2 -2
- package/dist/lib/utils/toasts.d.ts.map +1 -1
- package/dist/lib/utils/toasts.js.map +1 -1
- package/dist/lib/web3/privy/config.js +1 -1
- package/dist/lib/web3/wagmi/config.js +1 -1
- package/dist/styles.css +5 -5
- package/dist/tokens/lists/lists.json.d.ts +84 -2
- package/dist/tokens/lists/lists.json.js +104 -2
- package/dist/tokens/lists/lists.json.js.map +1 -1
- package/dist/tokens/lists/state/observer.js +2 -2
- package/dist/tokens/lists/state/observer.js.map +1 -1
- package/dist/tokens/lists/utils.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/lib/constants/index.ts"],"sourcesContent":["export const API_URL
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/lib/constants/index.ts"],"sourcesContent":["export const API_URL =\n import.meta.env.VITE_API_URL ?? \"https://api.paraswap.io\";\n\nexport const emptyArray: never[] = [];\n"],"names":["API_URL","import","emptyArray"],"mappings":"AAAO,MAAMA,OAAAA,GACXC;AAEK,MAAMC,aAAsB;;;;"}
|
|
@@ -19,10 +19,7 @@ export declare function applySlippage({ srcAmount, destAmount, }: Pick<DeltaOrMa
|
|
|
19
19
|
* @param priceMode - The mode of the price, either "delta" or "market".
|
|
20
20
|
* @returns The destination amount after applying partner fee.
|
|
21
21
|
*/
|
|
22
|
-
export declare function getDestAmountAfterFee(
|
|
23
|
-
price: DeltaOrMarketPrice;
|
|
24
|
-
priceMode: "delta" | "market";
|
|
25
|
-
}): string;
|
|
22
|
+
export declare function getDestAmountAfterFee(price: DeltaOrMarketPrice): string;
|
|
26
23
|
/**
|
|
27
24
|
* Calculates the destination amount after applying partner fee and slippage.
|
|
28
25
|
*
|
|
@@ -31,9 +28,8 @@ export declare function getDestAmountAfterFee({ price, priceMode, }: {
|
|
|
31
28
|
* @param priceMode - The mode of the price, either "delta" or "market".
|
|
32
29
|
* @returns The destination amount after applying partner fee and slippage.
|
|
33
30
|
*/
|
|
34
|
-
export declare function getDestAmountAfterFeeAndSlippage({ price, slippagePercent,
|
|
31
|
+
export declare function getDestAmountAfterFeeAndSlippage({ price, slippagePercent, }: {
|
|
35
32
|
price: DeltaOrMarketPrice;
|
|
36
33
|
slippagePercent: number;
|
|
37
|
-
priceMode: "delta" | "market";
|
|
38
34
|
}): string;
|
|
39
35
|
//# sourceMappingURL=price.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAQpE;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,EACE,SAAS,EACT,UAAU,GACX,EAAE,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,YAAY,CAAC,EACvD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,KAAK,GAAG,MAAM;;;EAyBrB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,kBAAkB,UAU9D;AAED;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,KAAK,EACL,eAAe,GAChB,EAAE;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB,UAGA"}
|
package/dist/lib/utils/price.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { subtractSlippage, amountAfterSlippage } from './slippage.js';
|
|
2
2
|
import { subtractFee } from './fee.js';
|
|
3
|
+
import { isDeltaPrice, isBridgePrice } from '../../hooks/swap/prices/delta/queries/useDeltaPriceQuery.js';
|
|
3
4
|
|
|
4
5
|
function applySlippage({
|
|
5
6
|
srcAmount,
|
|
@@ -18,25 +19,17 @@ function applySlippage({
|
|
|
18
19
|
destAmount: destAmountAfterSlippage
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
|
-
function getDestAmountAfterFee({
|
|
22
|
-
price
|
|
23
|
-
|
|
24
|
-
}) {
|
|
25
|
-
const isDelta = priceMode === "delta";
|
|
26
|
-
if (isDelta) {
|
|
27
|
-
return "destAmountAfterBridge" in price ? price.destAmountAfterBridge : price.destAmount;
|
|
22
|
+
function getDestAmountAfterFee(price) {
|
|
23
|
+
if (isDeltaPrice(price)) {
|
|
24
|
+
return isBridgePrice(price) ? price.bridgeInfo.destAmountAfterBridge : price.destAmount;
|
|
28
25
|
}
|
|
29
26
|
return subtractFee(price.destAmount, price.partnerFee);
|
|
30
27
|
}
|
|
31
28
|
function getDestAmountAfterFeeAndSlippage({
|
|
32
29
|
price,
|
|
33
|
-
slippagePercent
|
|
34
|
-
priceMode
|
|
30
|
+
slippagePercent
|
|
35
31
|
}) {
|
|
36
|
-
const destAmountAfterFee = getDestAmountAfterFee(
|
|
37
|
-
price,
|
|
38
|
-
priceMode
|
|
39
|
-
});
|
|
32
|
+
const destAmountAfterFee = getDestAmountAfterFee(price);
|
|
40
33
|
return subtractSlippage(destAmountAfterFee, slippagePercent);
|
|
41
34
|
}
|
|
42
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.js","sources":["../../../src/lib/utils/price.ts"],"sourcesContent":["import type { DeltaOrMarketPrice } from \"@/hooks/swap/prices/types\";\nimport { amountAfterSlippage, subtractSlippage } from \"./slippage\";\nimport { subtractFee } from \"./fee\";\n\n/**\n * Applies slippage to the srcAmount and destAmount of a DeltaOrMarketPrice.\n *\n * @param srcAmount - The source amount of the trade.\n * @param destAmount - The destination amount of the trade.\n * @param slippage - The slippage percentage to apply (e.g., 0.5 for 0.5%).\n * @param side - The side of the trade, either \"BUY\" or \"SELL\".\n * @returns An object containing the adjusted srcAmount and destAmount after applying slippage.\n */\nexport function applySlippage(\n {\n srcAmount,\n destAmount,\n }: Pick<DeltaOrMarketPrice, \"srcAmount\" | \"destAmount\">,\n slippage: number,\n side: \"BUY\" | \"SELL\"\n) {\n if (side === \"BUY\") {\n const srcAmountAfterSlippage = amountAfterSlippage(\n srcAmount,\n slippage,\n side\n ).toFixed(0);\n\n return {\n srcAmount: srcAmountAfterSlippage,\n destAmount,\n };\n }\n\n const destAmountAfterSlippage = amountAfterSlippage(\n destAmount,\n slippage,\n side\n ).toFixed(0);\n\n return {\n srcAmount,\n destAmount: destAmountAfterSlippage,\n };\n}\n\n/**\n * Calculates the destination amount after applying partner fee.\n *\n * @param price - The DeltaOrMarketPrice object containing destAmounts and partnerFee.\n * @param priceMode - The mode of the price, either \"delta\" or \"market\".\n * @returns The destination amount after applying partner fee.\n */\nexport function getDestAmountAfterFee(
|
|
1
|
+
{"version":3,"file":"price.js","sources":["../../../src/lib/utils/price.ts"],"sourcesContent":["import type { DeltaOrMarketPrice } from \"@/hooks/swap/prices/types\";\nimport { amountAfterSlippage, subtractSlippage } from \"./slippage\";\nimport { subtractFee } from \"./fee\";\nimport {\n isBridgePrice,\n isDeltaPrice,\n} from \"@/hooks/swap/prices/delta/queries/useDeltaPriceQuery\";\n\n/**\n * Applies slippage to the srcAmount and destAmount of a DeltaOrMarketPrice.\n *\n * @param srcAmount - The source amount of the trade.\n * @param destAmount - The destination amount of the trade.\n * @param slippage - The slippage percentage to apply (e.g., 0.5 for 0.5%).\n * @param side - The side of the trade, either \"BUY\" or \"SELL\".\n * @returns An object containing the adjusted srcAmount and destAmount after applying slippage.\n */\nexport function applySlippage(\n {\n srcAmount,\n destAmount,\n }: Pick<DeltaOrMarketPrice, \"srcAmount\" | \"destAmount\">,\n slippage: number,\n side: \"BUY\" | \"SELL\"\n) {\n if (side === \"BUY\") {\n const srcAmountAfterSlippage = amountAfterSlippage(\n srcAmount,\n slippage,\n side\n ).toFixed(0);\n\n return {\n srcAmount: srcAmountAfterSlippage,\n destAmount,\n };\n }\n\n const destAmountAfterSlippage = amountAfterSlippage(\n destAmount,\n slippage,\n side\n ).toFixed(0);\n\n return {\n srcAmount,\n destAmount: destAmountAfterSlippage,\n };\n}\n\n/**\n * Calculates the destination amount after applying partner fee.\n *\n * @param price - The DeltaOrMarketPrice object containing destAmounts and partnerFee.\n * @param priceMode - The mode of the price, either \"delta\" or \"market\".\n * @returns The destination amount after applying partner fee.\n */\nexport function getDestAmountAfterFee(price: DeltaOrMarketPrice) {\n if (isDeltaPrice(price)) {\n // For Delta: price.destAmount | price.bridgeInfo.destAmountAfterBridge are amounts after fee\n return isBridgePrice(price)\n ? price.bridgeInfo.destAmountAfterBridge\n : price.destAmount;\n }\n\n // For Market: price.destAmount is amount before fee\n return subtractFee(price.destAmount, price.partnerFee);\n}\n\n/**\n * Calculates the destination amount after applying partner fee and slippage.\n *\n * @param price - The DeltaOrMarketPrice object containing destAmounts and partnerFee.\n * @param slippagePercent - The slippage percentage to apply.\n * @param priceMode - The mode of the price, either \"delta\" or \"market\".\n * @returns The destination amount after applying partner fee and slippage.\n */\nexport function getDestAmountAfterFeeAndSlippage({\n price,\n slippagePercent,\n}: {\n price: DeltaOrMarketPrice;\n slippagePercent: number;\n}) {\n const destAmountAfterFee = getDestAmountAfterFee(price);\n return subtractSlippage(destAmountAfterFee, slippagePercent);\n}\n"],"names":["applySlippage","srcAmount","destAmount","slippage","side","srcAmountAfterSlippage","amountAfterSlippage","toFixed","destAmountAfterSlippage","getDestAmountAfterFee","price","isDeltaPrice","isBridgePrice","bridgeInfo","destAmountAfterBridge","subtractFee","partnerFee","getDestAmountAfterFeeAndSlippage","slippagePercent","destAmountAfterFee","subtractSlippage"],"mappings":";;;;AAiBO,SAASA,aAAAA,CACd;AAAA,EACEC,SAAAA;AAAAA,EACAC;AACoD,CAAA,EACtDC,UACAC,IAAAA,EACA;AACA,EAAA,IAAIA,SAAS,KAAA,EAAO;AAClB,IAAA,MAAMC,yBAAyBC,mBAAAA,CAC7BL,SAAAA,EACAE,UACAC,IACF,CAAA,CAAEG,QAAQ,CAAC,CAAA;AAEX,IAAA,OAAO;AAAA,MACLN,SAAAA,EAAWI,sBAAAA;AAAAA,MACXH;AAAAA,KACF;AAAA,EACF;AAEA,EAAA,MAAMM,0BAA0BF,mBAAAA,CAC9BJ,UAAAA,EACAC,UACAC,IACF,CAAA,CAAEG,QAAQ,CAAC,CAAA;AAEX,EAAA,OAAO;AAAA,IACLN,SAAAA;AAAAA,IACAC,UAAAA,EAAYM;AAAAA,GACd;AACF;AASO,SAASC,sBAAsBC,KAAAA,EAA2B;AAC/D,EAAA,IAAIC,YAAAA,CAAaD,KAAK,CAAA,EAAG;AAEvB,IAAA,OAAOE,cAAcF,KAAK,CAAA,GACtBA,KAAAA,CAAMG,UAAAA,CAAWC,wBACjBJ,KAAAA,CAAMR,UAAAA;AAAAA,EACZ;AAGA,EAAA,OAAOa,WAAAA,CAAYL,KAAAA,CAAMR,UAAAA,EAAYQ,KAAAA,CAAMM,UAAU,CAAA;AACvD;AAUO,SAASC,gCAAAA,CAAiC;AAAA,EAC/CP,KAAAA;AAAAA,EACAQ;AAIF,CAAA,EAAG;AACD,EAAA,MAAMC,kBAAAA,GAAqBV,sBAAsBC,KAAK,CAAA;AACtD,EAAA,OAAOU,gBAAAA,CAAiBD,oBAAoBD,eAAe,CAAA;AAC7D;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SubmittedDeltaOrderFromAPI } from '../../hooks/swap/prices/delta/queries/useDeltaOrders';
|
|
2
2
|
import { MaybeVeloraDeltaAuction } from '../../hooks/swap/prices/delta/queries/useWatchDeltaOrder';
|
|
3
3
|
import { Hash, TransactionReceipt } from 'viem';
|
|
4
4
|
import { SupportedChainId } from '../web3/wagmi/types';
|
|
@@ -9,7 +9,7 @@ export type TxSentObject = {
|
|
|
9
9
|
receiptPromise: Promise<TransactionReceipt>;
|
|
10
10
|
};
|
|
11
11
|
export type OrderSentObject = {
|
|
12
|
-
order:
|
|
12
|
+
order: SubmittedDeltaOrderFromAPI;
|
|
13
13
|
lastOrderState: Promise<MaybeVeloraDeltaAuction>;
|
|
14
14
|
};
|
|
15
15
|
export declare function handleTxSent(txSent: TxSentObject): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toasts.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/toasts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toasts.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/toasts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAEpG,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM5D,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAC3C,cAAc,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,0BAA0B,CAAC;IAClC,cAAc,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAClD,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAmCvD;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI,CA4BhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toasts.js","sources":["../../../src/lib/utils/toasts.tsx"],"sourcesContent":["import { CustomToast } from \"@/components/widget/Toasts/CustomToast\";\nimport type {
|
|
1
|
+
{"version":3,"file":"toasts.js","sources":["../../../src/lib/utils/toasts.tsx"],"sourcesContent":["import { CustomToast } from \"@/components/widget/Toasts/CustomToast\";\nimport type { SubmittedDeltaOrderFromAPI } from \"@/hooks/swap/prices/delta/queries/useDeltaOrders\";\nimport type { MaybeVeloraDeltaAuction } from \"@/hooks/swap/prices/delta/queries/useWatchDeltaOrder\";\nimport { toast } from \"sonner\";\nimport type { Hash, TransactionReceipt } from \"viem\";\nimport type { SupportedChainId } from \"../web3/wagmi/types\";\nimport {\n constructExplorerOrderDetailsLink,\n constructTxLinkForChain,\n} from \"./explorer\";\n\nexport type TxSentObject = {\n txHash: Hash;\n chainId: SupportedChainId;\n actionType: \"approve\" | \"swap\" | \"wrapETH\"; // not used anymore\n receiptPromise: Promise<TransactionReceipt>;\n};\n\nexport type OrderSentObject = {\n order: SubmittedDeltaOrderFromAPI;\n lastOrderState: Promise<MaybeVeloraDeltaAuction>;\n};\n\nexport function handleTxSent(txSent: TxSentObject): void {\n const customToastProps = {\n toastId: crypto.randomUUID(),\n detailsLink: constructTxLinkForChain({\n chainId: txSent.chainId,\n txHash: txSent.txHash,\n }),\n };\n\n const toastOptions = {\n id: customToastProps.toastId,\n loading: (\n <CustomToast\n variant=\"loading\"\n label=\"Pending Transaction\"\n {...customToastProps}\n />\n ),\n success: (\n <CustomToast\n variant=\"success\"\n label=\"Transaction Confirmed\"\n {...customToastProps}\n />\n ),\n error: (\n <CustomToast\n variant=\"error\"\n label=\"Transaction Failed\"\n {...customToastProps}\n />\n ),\n };\n\n toast.promise(txSent.receiptPromise, toastOptions);\n}\n\nexport function handleOrderSent(orderSent: OrderSentObject): void {\n const customToastProps = {\n toastId: crypto.randomUUID(),\n detailsLink: constructExplorerOrderDetailsLink(orderSent.order.id),\n };\n\n const toastOptions = {\n id: customToastProps.toastId,\n loading: (\n <CustomToast\n variant=\"loading\"\n label=\"Pending Order\"\n {...customToastProps}\n />\n ),\n success: (\n <CustomToast\n variant=\"success\"\n label=\"Order Confirmed\"\n {...customToastProps}\n />\n ),\n error: (\n <CustomToast variant=\"error\" label=\"Order Failed\" {...customToastProps} />\n ),\n };\n\n toast.promise(orderSent.lastOrderState, toastOptions);\n}\n"],"names":["handleTxSent","txSent","customToastProps","toastId","crypto","randomUUID","detailsLink","constructTxLinkForChain","chainId","txHash","toastOptions","id","loading","success","error","toast","promise","receiptPromise","handleOrderSent","orderSent","constructExplorerOrderDetailsLink","order","lastOrderState"],"mappings":";;;;;AAuBO,SAASA,aAAaC,MAAAA,EAA4B;AACvD,EAAA,MAAMC,gBAAAA,GAAmB;AAAA,IACvBC,OAAAA,EAASC,OAAOC,UAAAA,EAAW;AAAA,IAC3BC,aAAaC,uBAAAA,CAAwB;AAAA,MACnCC,SAASP,MAAAA,CAAOO,OAAAA;AAAAA,MAChBC,QAAQR,MAAAA,CAAOQ;AAAAA,KAChB;AAAA,GACH;AAEA,EAAA,MAAMC,YAAAA,GAAe;AAAA,IACnBC,IAAIT,gBAAAA,CAAiBC,OAAAA;AAAAA,IACrBS,OAAAA,sBACG,WAAA,EAAA,EACC,OAAA,EAAQ,WACR,KAAA,EAAM,qBAAA,EACN,GAAIV,gBAAAA,EAAiB,CAAA;AAAA,IAGzBW,OAAAA,sBACG,WAAA,EAAA,EACC,OAAA,EAAQ,WACR,KAAA,EAAM,uBAAA,EACN,GAAIX,gBAAAA,EAAiB,CAAA;AAAA,IAGzBY,KAAAA,sBACG,WAAA,EAAA,EACC,OAAA,EAAQ,SACR,KAAA,EAAM,oBAAA,EACN,GAAIZ,gBAAAA,EAAiB;AAAA,GAG3B;AAEAa,EAAAA,KAAAA,CAAMC,OAAAA,CAAQf,MAAAA,CAAOgB,cAAAA,EAAgBP,YAAY,CAAA;AACnD;AAEO,SAASQ,gBAAgBC,SAAAA,EAAkC;AAChE,EAAA,MAAMjB,gBAAAA,GAAmB;AAAA,IACvBC,OAAAA,EAASC,OAAOC,UAAAA,EAAW;AAAA,IAC3BC,WAAAA,EAAac,iCAAAA,CAAkCD,SAAAA,CAAUE,KAAAA,CAAMV,EAAE;AAAA,GACnE;AAEA,EAAA,MAAMD,YAAAA,GAAe;AAAA,IACnBC,IAAIT,gBAAAA,CAAiBC,OAAAA;AAAAA,IACrBS,OAAAA,sBACG,WAAA,EAAA,EACC,OAAA,EAAQ,WACR,KAAA,EAAM,eAAA,EACN,GAAIV,gBAAAA,EAAiB,CAAA;AAAA,IAGzBW,OAAAA,sBACG,WAAA,EAAA,EACC,OAAA,EAAQ,WACR,KAAA,EAAM,iBAAA,EACN,GAAIX,gBAAAA,EAAiB,CAAA;AAAA,IAGzBY,KAAAA,sBACG,WAAA,EAAA,EAAY,OAAA,EAAQ,SAAQ,KAAA,EAAM,cAAA,EAAe,GAAIZ,gBAAAA,EAAiB;AAAA,GAE3E;AAEAa,EAAAA,KAAAA,CAAMC,OAAAA,CAAQG,SAAAA,CAAUG,cAAAA,EAAgBZ,YAAY,CAAA;AACtD;;;;"}
|
|
@@ -28,7 +28,7 @@ const privyConfig = {
|
|
|
28
28
|
},
|
|
29
29
|
// another option is to give an invalid ID,
|
|
30
30
|
// but then it retries indefinitely
|
|
31
|
-
walletConnectCloudProjectId: "
|
|
31
|
+
walletConnectCloudProjectId: "9796e40630a6bea7605ac281b0deb939",
|
|
32
32
|
// Privy doesn't accept const Chain[]
|
|
33
33
|
supportedChains: chains
|
|
34
34
|
// defaultChain: chains[0], @TODO set to App's selected chain
|
|
@@ -11,7 +11,7 @@ const connectors = [
|
|
|
11
11
|
// metaMask() as CreateConnectorFn, // injected() detects metamask already
|
|
12
12
|
coinbaseWallet(),
|
|
13
13
|
walletConnect({
|
|
14
|
-
projectId: "
|
|
14
|
+
projectId: "9796e40630a6bea7605ac281b0deb939"
|
|
15
15
|
})
|
|
16
16
|
// getPrivyWalletConnector(), // only CorssApp Privy connector is available, not our use case
|
|
17
17
|
];
|
package/dist/styles.css
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
:root, :host {
|
|
71
71
|
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
72
72
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
73
73
|
--color-red-800: oklch(44.4% .177 26.899);
|
|
@@ -2164,8 +2164,8 @@
|
|
|
2164
2164
|
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=bottom\]\:mt-24[data-vaul-drawer-direction="bottom"] {
|
|
2165
2165
|
margin-top: calc(var(--spacing) * 24);
|
|
2166
2166
|
}
|
|
2167
|
-
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=bottom\]\:max-h-\[
|
|
2168
|
-
max-height:
|
|
2167
|
+
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=bottom\]\:max-h-\[100\%\][data-vaul-drawer-direction="bottom"] {
|
|
2168
|
+
max-height: 100%;
|
|
2169
2169
|
}
|
|
2170
2170
|
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=bottom\]\:rounded-xxl[data-vaul-drawer-direction="bottom"] {
|
|
2171
2171
|
border-radius: calc(var(--radius) + 10px);
|
|
@@ -2209,8 +2209,8 @@
|
|
|
2209
2209
|
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=top\]\:mb-24[data-vaul-drawer-direction="top"] {
|
|
2210
2210
|
margin-bottom: calc(var(--spacing) * 24);
|
|
2211
2211
|
}
|
|
2212
|
-
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=top\]\:max-h-\[
|
|
2213
|
-
max-height:
|
|
2212
|
+
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=top\]\:max-h-\[100\%\][data-vaul-drawer-direction="top"] {
|
|
2213
|
+
max-height: 100%;
|
|
2214
2214
|
}
|
|
2215
2215
|
.velora-widget.velora-widget .data-\[vaul-drawer-direction\=top\]\:rounded-b-lg[data-vaul-drawer-direction="top"] {
|
|
2216
2216
|
border-bottom-right-radius: calc(var(--radius) + 2px);
|
|
@@ -10,7 +10,8 @@ declare const _default: [
|
|
|
10
10
|
"url": "https://tokens.coingecko.com/ethereum/all.json",
|
|
11
11
|
"filename": "coingecko",
|
|
12
12
|
"chainId": 1,
|
|
13
|
-
"listName": "CoinGecko"
|
|
13
|
+
"listName": "CoinGecko",
|
|
14
|
+
"onByDefault": true
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
17
|
"url": "https://tokens.uniswap.org",
|
|
@@ -84,7 +85,8 @@ declare const _default: [
|
|
|
84
85
|
"url": "https://tokens.coingecko.com/binance-smart-chain/all.json",
|
|
85
86
|
"filename": "coingecko_bsc",
|
|
86
87
|
"chainId": 56,
|
|
87
|
-
"listName": "Coingecko"
|
|
88
|
+
"listName": "Coingecko",
|
|
89
|
+
"onByDefault": true
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
92
|
"url": "https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json",
|
|
@@ -246,6 +248,86 @@ declare const _default: [
|
|
|
246
248
|
"chainId": 130,
|
|
247
249
|
"listName": "Coingecko",
|
|
248
250
|
"onByDefault": true
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"url": "./crosschain_token_list.json",
|
|
254
|
+
"filename": "crosschain_token_list",
|
|
255
|
+
"chainId": 1,
|
|
256
|
+
"listName": "Crosschain Token List",
|
|
257
|
+
"onByDefault": false,
|
|
258
|
+
"tags": ["crosschain_swap"]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"url": "./crosschain_token_list.json",
|
|
262
|
+
"filename": "crosschain_token_list",
|
|
263
|
+
"chainId": 10,
|
|
264
|
+
"listName": "Crosschain Token List",
|
|
265
|
+
"onByDefault": false,
|
|
266
|
+
"tags": ["crosschain_swap"]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"url": "./crosschain_token_list.json",
|
|
270
|
+
"filename": "crosschain_token_list",
|
|
271
|
+
"chainId": 137,
|
|
272
|
+
"listName": "Crosschain Token List",
|
|
273
|
+
"onByDefault": false,
|
|
274
|
+
"tags": ["crosschain_swap"]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"url": "./crosschain_token_list.json",
|
|
278
|
+
"filename": "crosschain_token_list",
|
|
279
|
+
"chainId": 56,
|
|
280
|
+
"listName": "Crosschain Token List",
|
|
281
|
+
"onByDefault": false,
|
|
282
|
+
"tags": ["crosschain_swap"]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"url": "./crosschain_token_list.json",
|
|
286
|
+
"filename": "crosschain_token_list",
|
|
287
|
+
"chainId": 43114,
|
|
288
|
+
"listName": "Crosschain Token List",
|
|
289
|
+
"onByDefault": false,
|
|
290
|
+
"tags": ["crosschain_swap"]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"url": "./crosschain_token_list.json",
|
|
294
|
+
"filename": "crosschain_token_list",
|
|
295
|
+
"chainId": 42161,
|
|
296
|
+
"listName": "Crosschain Token List",
|
|
297
|
+
"onByDefault": false,
|
|
298
|
+
"tags": ["crosschain_swap"]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"url": "./crosschain_token_list.json",
|
|
302
|
+
"filename": "crosschain_token_list",
|
|
303
|
+
"chainId": 100,
|
|
304
|
+
"listName": "Crosschain Token List",
|
|
305
|
+
"onByDefault": false,
|
|
306
|
+
"tags": ["crosschain_swap"]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"url": "./crosschain_token_list.json",
|
|
310
|
+
"filename": "crosschain_token_list",
|
|
311
|
+
"chainId": 130,
|
|
312
|
+
"listName": "Crosschain Token List",
|
|
313
|
+
"onByDefault": false,
|
|
314
|
+
"tags": ["crosschain_swap"]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"url": "./crosschain_token_list.json",
|
|
318
|
+
"filename": "crosschain_token_list",
|
|
319
|
+
"chainId": 146,
|
|
320
|
+
"listName": "Crosschain Token List",
|
|
321
|
+
"onByDefault": false,
|
|
322
|
+
"tags": ["crosschain_swap"]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"url": "./crosschain_token_list.json",
|
|
326
|
+
"filename": "crosschain_token_list",
|
|
327
|
+
"chainId": 8453,
|
|
328
|
+
"listName": "Crosschain Token List",
|
|
329
|
+
"onByDefault": false,
|
|
330
|
+
"tags": ["crosschain_swap"]
|
|
249
331
|
}
|
|
250
332
|
]
|
|
251
333
|
;
|
|
@@ -10,7 +10,8 @@ const _TokenLists = [
|
|
|
10
10
|
url: "https://tokens.coingecko.com/ethereum/all.json",
|
|
11
11
|
filename: "coingecko",
|
|
12
12
|
chainId: 1,
|
|
13
|
-
listName: "CoinGecko"
|
|
13
|
+
listName: "CoinGecko",
|
|
14
|
+
onByDefault: true
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
17
|
url: "https://tokens.uniswap.org",
|
|
@@ -84,7 +85,8 @@ const _TokenLists = [
|
|
|
84
85
|
url: "https://tokens.coingecko.com/binance-smart-chain/all.json",
|
|
85
86
|
filename: "coingecko_bsc",
|
|
86
87
|
chainId: 56,
|
|
87
|
-
listName: "Coingecko"
|
|
88
|
+
listName: "Coingecko",
|
|
89
|
+
onByDefault: true
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
92
|
url: "https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json",
|
|
@@ -248,6 +250,106 @@ const _TokenLists = [
|
|
|
248
250
|
chainId: 130,
|
|
249
251
|
listName: "Coingecko",
|
|
250
252
|
onByDefault: true
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
url: "./crosschain_token_list.json",
|
|
256
|
+
filename: "crosschain_token_list",
|
|
257
|
+
chainId: 1,
|
|
258
|
+
listName: "Crosschain Token List",
|
|
259
|
+
onByDefault: false,
|
|
260
|
+
tags: [
|
|
261
|
+
"crosschain_swap"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
url: "./crosschain_token_list.json",
|
|
266
|
+
filename: "crosschain_token_list",
|
|
267
|
+
chainId: 10,
|
|
268
|
+
listName: "Crosschain Token List",
|
|
269
|
+
onByDefault: false,
|
|
270
|
+
tags: [
|
|
271
|
+
"crosschain_swap"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
url: "./crosschain_token_list.json",
|
|
276
|
+
filename: "crosschain_token_list",
|
|
277
|
+
chainId: 137,
|
|
278
|
+
listName: "Crosschain Token List",
|
|
279
|
+
onByDefault: false,
|
|
280
|
+
tags: [
|
|
281
|
+
"crosschain_swap"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
url: "./crosschain_token_list.json",
|
|
286
|
+
filename: "crosschain_token_list",
|
|
287
|
+
chainId: 56,
|
|
288
|
+
listName: "Crosschain Token List",
|
|
289
|
+
onByDefault: false,
|
|
290
|
+
tags: [
|
|
291
|
+
"crosschain_swap"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
url: "./crosschain_token_list.json",
|
|
296
|
+
filename: "crosschain_token_list",
|
|
297
|
+
chainId: 43114,
|
|
298
|
+
listName: "Crosschain Token List",
|
|
299
|
+
onByDefault: false,
|
|
300
|
+
tags: [
|
|
301
|
+
"crosschain_swap"
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
url: "./crosschain_token_list.json",
|
|
306
|
+
filename: "crosschain_token_list",
|
|
307
|
+
chainId: 42161,
|
|
308
|
+
listName: "Crosschain Token List",
|
|
309
|
+
onByDefault: false,
|
|
310
|
+
tags: [
|
|
311
|
+
"crosschain_swap"
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
url: "./crosschain_token_list.json",
|
|
316
|
+
filename: "crosschain_token_list",
|
|
317
|
+
chainId: 100,
|
|
318
|
+
listName: "Crosschain Token List",
|
|
319
|
+
onByDefault: false,
|
|
320
|
+
tags: [
|
|
321
|
+
"crosschain_swap"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
url: "./crosschain_token_list.json",
|
|
326
|
+
filename: "crosschain_token_list",
|
|
327
|
+
chainId: 130,
|
|
328
|
+
listName: "Crosschain Token List",
|
|
329
|
+
onByDefault: false,
|
|
330
|
+
tags: [
|
|
331
|
+
"crosschain_swap"
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
url: "./crosschain_token_list.json",
|
|
336
|
+
filename: "crosschain_token_list",
|
|
337
|
+
chainId: 146,
|
|
338
|
+
listName: "Crosschain Token List",
|
|
339
|
+
onByDefault: false,
|
|
340
|
+
tags: [
|
|
341
|
+
"crosschain_swap"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
url: "./crosschain_token_list.json",
|
|
346
|
+
filename: "crosschain_token_list",
|
|
347
|
+
chainId: 8453,
|
|
348
|
+
listName: "Crosschain Token List",
|
|
349
|
+
onByDefault: false,
|
|
350
|
+
tags: [
|
|
351
|
+
"crosschain_swap"
|
|
352
|
+
]
|
|
251
353
|
}
|
|
252
354
|
];
|
|
253
355
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lists.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,14 +3,14 @@ import { QueriesObserver } from '@tanstack/react-query';
|
|
|
3
3
|
import { addTokenListsAtom } from './tokenListsActionsAtom.js';
|
|
4
4
|
import { queryClient } from '../../../lib/queryClient.js';
|
|
5
5
|
import { EnabledAndDefaultTokenURLS } from './tokenListsStateAtom.js';
|
|
6
|
-
import {
|
|
6
|
+
import { jotaiStore } from '../../../core/inputs/state/store.js';
|
|
7
7
|
|
|
8
8
|
const listUrls = Object.values(EnabledAndDefaultTokenURLS).flatMap((lists) => lists.all);
|
|
9
9
|
function observeTokenLists() {
|
|
10
10
|
return new QueriesObserver(queryClient, produceQueryOptions(listUrls)).subscribe((queriesResult) => {
|
|
11
11
|
const availableLists = queriesResult.map((query) => query.data).filter((list) => !!list?.available);
|
|
12
12
|
if (availableLists.length > 0)
|
|
13
|
-
|
|
13
|
+
jotaiStore.set(addTokenListsAtom, availableLists);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.js","sources":["../../../../src/tokens/lists/state/observer.ts"],"sourcesContent":["import { produceQueryOptions } from \"../../queries\";\nimport type { TokenListCompiled, TokenListFetched } from \"../../types\";\nimport { QueriesObserver, type UseQueryResult } from \"@tanstack/react-query\";\nimport { addTokenListsAtom } from \"./tokenListsActionsAtom\";\nimport { queryClient } from \"@/lib/queryClient\";\nimport { EnabledAndDefaultTokenURLS } from \"./tokenListsStateAtom\";\nimport {
|
|
1
|
+
{"version":3,"file":"observer.js","sources":["../../../../src/tokens/lists/state/observer.ts"],"sourcesContent":["import { produceQueryOptions } from \"../../queries\";\nimport type { TokenListCompiled, TokenListFetched } from \"../../types\";\nimport { QueriesObserver, type UseQueryResult } from \"@tanstack/react-query\";\nimport { addTokenListsAtom } from \"./tokenListsActionsAtom\";\nimport { queryClient } from \"@/lib/queryClient\";\nimport { EnabledAndDefaultTokenURLS } from \"./tokenListsStateAtom\";\nimport { jotaiStore } from \"@/core/inputs/state/store\";\n\nconst listUrls = Object.values(EnabledAndDefaultTokenURLS).flatMap(\n (lists) => lists.all\n);\n\n// observer to have the latest lists available in the store\nexport function observeTokenLists() {\n return new QueriesObserver(\n queryClient,\n produceQueryOptions(listUrls)\n ).subscribe((queriesResult) => {\n // grab the fetched lists from the queries\n const availableLists = (queriesResult as UseQueryResult<TokenListFetched>[])\n .map((query) => query.data)\n .filter((list): list is TokenListCompiled => !!list?.available);\n\n if (availableLists.length > 0)\n // and put them in the store\n jotaiStore.set(addTokenListsAtom, availableLists);\n });\n}\n"],"names":["listUrls","Object","values","EnabledAndDefaultTokenURLS","flatMap","lists","all","observeTokenLists","QueriesObserver","queryClient","produceQueryOptions","subscribe","queriesResult","availableLists","map","query","data","filter","list","available","length","jotaiStore","set","addTokenListsAtom"],"mappings":";;;;;;;AAQA,MAAMA,QAAAA,GAAWC,OAAOC,MAAAA,CAAOC,0BAA0B,EAAEC,OAAAA,CACxDC,CAAAA,KAAAA,KAAUA,MAAMC,GACnB,CAAA;AAGO,SAASC,iBAAAA,GAAoB;AAClC,EAAA,OAAO,IAAIC,gBACTC,WAAAA,EACAC,mBAAAA,CAAoBV,QAAQ,CAC9B,CAAA,CAAEW,UAAWC,CAAAA,aAAAA,KAAkB;AAE7B,IAAA,MAAMC,cAAAA,GAAkBD,aAAAA,CACrBE,GAAAA,CAAKC,CAAAA,KAAAA,KAAUA,KAAAA,CAAMC,IAAI,CAAA,CACzBC,MAAAA,CAAO,CAACC,IAAAA,KAAoC,CAAC,CAACA,MAAMC,SAAS,CAAA;AAEhE,IAAA,IAAIN,eAAeO,MAAAA,GAAS,CAAA;AAE1BC,MAAAA,UAAAA,CAAWC,GAAAA,CAAIC,mBAAmBV,cAAc,CAAA;AAAA,EACpD,CAAC,CAAA;AACH;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gatherObjectsByProp } from '../../lib/utils/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { urlChain2TokenList, chainId2TokenListURLs } from './constants.js';
|
|
3
3
|
|
|
4
4
|
const getTokenListPlaceholderName = (listUrl, chainId) => urlChain2TokenList[`${listUrl}@${chainId}`]?.listName;
|
|
5
5
|
const constructPlaceholderData = (listURL) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velora-dex/widget",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@tanstack/react-query-devtools": "^5.84.1",
|
|
74
74
|
"@tanstack/react-virtual": "^3.13.12",
|
|
75
75
|
"@uniswap/token-lists": "1.0.0-beta.34",
|
|
76
|
-
"@velora-dex/sdk": "
|
|
76
|
+
"@velora-dex/sdk": "8.1.1-dev.1",
|
|
77
77
|
"@wagmi/core": "^2.18.1",
|
|
78
78
|
"axios": "^1.11.0",
|
|
79
79
|
"big.js": "^7.0.1",
|