@dhedge/trading-widget 6.3.6 → 6.4.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 +1 -1
- package/{contract-error-log-xoZ1OAil.cjs → contract-error-log-C66ELh8m.cjs} +1 -1
- package/{contract-error-log-C72hcInG.js → contract-error-log-CaRlTnoL.js} +1 -1
- package/core-kit/const/gmx.d.ts +1 -0
- package/{gmx-DJ0gqvLq.cjs → gmx-BTdr6Yvr.cjs} +1 -1
- package/{gmx-Cyz_GmV5.js → gmx-Dc6vyoji.js} +4 -2
- package/index.cjs +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
- package/utils.cjs +1 -1
- package/utils.js +1 -1
package/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import { usePopperTooltip as Pc } from "react-popper-tooltip";
|
|
|
9
9
|
import { createContext as ge, useMemo as P, useContext as fe, useReducer as Rn, useCallback as b, useState as U, useEffect as E, forwardRef as Dc, useRef as ue, Children as kc, isValidElement as Lc, Fragment as Rc } from "react";
|
|
10
10
|
import { ChevronDownIcon as rs, ArrowDownIcon as $c, ArrowPathIcon as Bc, CheckIcon as nn } from "@heroicons/react/24/solid";
|
|
11
11
|
import { XMarkIcon as os, ChevronLeftIcon as Mc } from "@heroicons/react/16/solid";
|
|
12
|
-
import { k as xt, al as $n, am as Fc, a4 as Wc, A as Uc, B as Q, a3 as as, an as F, q as zc, ao as ss, $ as Bn, L as Gc, ap as G, ab as Hc, aa as tt, O as Ro, aq as ae, D as bt, N as ft, w as vn, ar as Vc, as as Xt, W as jc, P as jr, ac as qc, Q as Kc, S as Yc, o as Qc, at as $o, a2 as Xc, f as Zc, g as Jc, ae as Bo, l as ed, e as td, a5 as nd, b as rd, h as od, au as ad, n as sd, z as is, y as qr, m as hr, aj as id, s as ld, ai as cd, p as dd, a8 as ls, E as Mo, a7 as pd, v as gr, j as Fo, a6 as ud, a0 as jt, ag as md, av as cs, ad as ds, V as ps, G as us, H as wd, x as ms, a1 as ws, i as hd, aw as Ve, ax as gd, R as hs, a9 as gs, ay as Kr, az as fd, U as Wo, J as vd, I as bd, X as yd, Y as Td, K as Ad, u as Sd } from "./contract-error-log-
|
|
13
|
-
import { aA as jO, aB as qO, ak as KO } from "./contract-error-log-
|
|
14
|
-
import { i as xd, a4 as Cd, a as O, q as V, H as Ed, p as Mn, S as Uo, T as Id, a0 as bn, t as zo, k as Nd, r as Od, ac as _d, ab as Le, m as Pd, u as fs, n as Dd, j as kd, x as vs, ai as at, b as qt, aC as qe, aD as je, aE as rt, aF as vt, v as Ld, B as bs, $ as Ne, aG as fr, O as ys, J as Rd, at as Zt, a8 as $d, aH as Ts, aI as Go, g as As, ah as yt, a1 as Ce, aJ as Bd, K as Tt, ax as Je, aK as Md, a7 as Ss, aL as xs, o as Fd, F as Cs, I as Es, l as Wd, G as Ud, am as zd, al as Gd, D as Hd, aM as Vd, a2 as _e, z as ze, L as jd, ag as Yr, s as Is, ad as qd, y as Ns, aw as Gt, w as Os, E as Kd, an as _s, c as Ps, af as Yd, Y as Qd, ak as Ds, aN as ks, a9 as Xd, a6 as Zd, aO as Jd } from "./gmx-
|
|
15
|
-
import { A as QO, aP as XO, aQ as ZO, aR as JO, aS as e_, aT as t_, aU as n_, C as r_, e as o_, aV as a_, aW as s_, f as i_, h as l_, U as c_, V as d_, aX as p_, aY as u_, a3 as m_, aZ as w_, aa as h_, a_ as g_, a$ as f_, b0 as v_, b1 as b_, b2 as y_, b3 as T_, b4 as A_, b5 as S_, b6 as x_, aB as C_, aA as E_, az as I_, ay as N_, b7 as O_, b8 as __, b9 as P_, ba as D_, bb as k_, bc as L_, bd as R_, be as $_, bf as B_, bg as M_, bh as F_, bi as W_, bj as U_, bk as z_, bl as G_, bm as H_, bn as V_, bo as j_, bp as q_, ao as K_, ap as Y_ } from "./gmx-
|
|
12
|
+
import { k as xt, al as $n, am as Fc, a4 as Wc, A as Uc, B as Q, a3 as as, an as F, q as zc, ao as ss, $ as Bn, L as Gc, ap as G, ab as Hc, aa as tt, O as Ro, aq as ae, D as bt, N as ft, w as vn, ar as Vc, as as Xt, W as jc, P as jr, ac as qc, Q as Kc, S as Yc, o as Qc, at as $o, a2 as Xc, f as Zc, g as Jc, ae as Bo, l as ed, e as td, a5 as nd, b as rd, h as od, au as ad, n as sd, z as is, y as qr, m as hr, aj as id, s as ld, ai as cd, p as dd, a8 as ls, E as Mo, a7 as pd, v as gr, j as Fo, a6 as ud, a0 as jt, ag as md, av as cs, ad as ds, V as ps, G as us, H as wd, x as ms, a1 as ws, i as hd, aw as Ve, ax as gd, R as hs, a9 as gs, ay as Kr, az as fd, U as Wo, J as vd, I as bd, X as yd, Y as Td, K as Ad, u as Sd } from "./contract-error-log-CaRlTnoL.js";
|
|
13
|
+
import { aA as jO, aB as qO, ak as KO } from "./contract-error-log-CaRlTnoL.js";
|
|
14
|
+
import { i as xd, a4 as Cd, a as O, q as V, H as Ed, p as Mn, S as Uo, T as Id, a0 as bn, t as zo, k as Nd, r as Od, ac as _d, ab as Le, m as Pd, u as fs, n as Dd, j as kd, x as vs, ai as at, b as qt, aC as qe, aD as je, aE as rt, aF as vt, v as Ld, B as bs, $ as Ne, aG as fr, O as ys, J as Rd, at as Zt, a8 as $d, aH as Ts, aI as Go, g as As, ah as yt, a1 as Ce, aJ as Bd, K as Tt, ax as Je, aK as Md, a7 as Ss, aL as xs, o as Fd, F as Cs, I as Es, l as Wd, G as Ud, am as zd, al as Gd, D as Hd, aM as Vd, a2 as _e, z as ze, L as jd, ag as Yr, s as Is, ad as qd, y as Ns, aw as Gt, w as Os, E as Kd, an as _s, c as Ps, af as Yd, Y as Qd, ak as Ds, aN as ks, a9 as Xd, a6 as Zd, aO as Jd } from "./gmx-Dc6vyoji.js";
|
|
15
|
+
import { A as QO, aP as XO, aQ as ZO, aR as JO, aS as e_, aT as t_, aU as n_, C as r_, e as o_, aV as a_, aW as s_, f as i_, h as l_, U as c_, V as d_, aX as p_, aY as u_, a3 as m_, aZ as w_, aa as h_, a_ as g_, a$ as f_, b0 as v_, b1 as b_, b2 as y_, b3 as T_, b4 as A_, b5 as S_, b6 as x_, aB as C_, aA as E_, az as I_, ay as N_, b7 as O_, b8 as __, b9 as P_, ba as D_, bb as k_, bc as L_, bd as R_, be as $_, bf as B_, bg as M_, bh as F_, bi as W_, bj as U_, bk as z_, bl as G_, bm as H_, bn as V_, bo as j_, bp as q_, ao as K_, ap as Y_ } from "./gmx-Dc6vyoji.js";
|
|
16
16
|
import { CustomError as Ls } from "ts-custom-error";
|
|
17
17
|
import { injected as ep } from "wagmi/connectors";
|
|
18
18
|
import { useAccount as Rs, useConfig as Qr, useSwitchChain as tp, useReadContract as Pe, useBalance as np, useWalletClient as Xr, usePublicClient as Ct, useWriteContract as rp, useEstimateFeesPerGas as op, useBlockNumber as ap, useConnect as $s, useReadContracts as le, useWaitForTransactionReceipt as ot, useSimulateContract as sp } from "wagmi";
|
package/package.json
CHANGED
package/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./contract-error-log-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./contract-error-log-C66ELh8m.cjs"),t=require("viem");exports.EMPTY_PER_ASSET_WITHDRAW_DATA=e.EMPTY_PER_ASSET_WITHDRAW_DATA;exports.MIN_GM_UNWIND_VALUE_USD=e.MIN_GM_UNWIND_VALUE_USD;exports.THIRD_PARTY_CONTRACT_ERRORS=e.THIRD_PARTY_CONTRACT_ERRORS;exports.applyContractErrorRegistry=e.applyContractErrorRegistry;exports.base64ToHex=e.base64ToHex;exports.buildAaveWithdrawAssetTransactionData=e.buildAaveWithdrawAssetTransactionData;exports.buildComplexAssetDataForRouter=e.buildComplexAssetDataForRouter;exports.buildDytmActions=e.buildDytmActions;exports.buildDytmOutputAssetWithdrawAction=e.buildDytmOutputAssetWithdrawAction;exports.buildDytmRepayActions=e.buildDytmRepayActions;exports.buildSwapQuoteKeyForAave=e.buildSwapQuoteKeyForAave;exports.buildSwapWithdrawTransactionData=e.buildSwapWithdrawTransactionData;exports.buildZapDepositTransactionArguments=e.buildZapDepositTransactionArguments;exports.clientSide=e.clientSide;exports.computeAmountOutMinimumUsdc=e.computeAmountOutMinimumUsdc;exports.createDefaultComplexAssetData=e.createDefaultComplexAssetData;exports.encodeOndoWithdrawData=e.encodeOndoWithdrawData;exports.encodeUnwindPlan=e.encodeUnwindPlan;exports.enrichAssetsWithSwapQuotes=e.enrichAssetsWithSwapQuotes;exports.ensureContractErrorRegistryLoaded=e.ensureContractErrorRegistryLoaded;exports.ensureHexPrefix=e.ensureHexPrefix;exports.extractAvailableRouterKeys=e.extractAvailableRouterKeys;exports.fetchContractErrorRegistry=e.fetchContractErrorRegistry;exports.formatBalance=e.formatBalance;exports.formatByCurrency=e.formatByCurrency;exports.formatNumeratorToPercentage=e.formatNumeratorToPercentage;exports.formatTokenBalance=e.formatTokenBalance;exports.getAutoSlippageSimulationCandidates=e.getAutoSlippageSimulationCandidates;exports.getComplexAssetDataSlippageTolerance=e.getComplexAssetDataSlippageTolerance;exports.getContractAbiById=e.getContractAbiById;exports.getContractAddressById=e.getContractAddressById;exports.getContractErrorRegistry=e.getContractErrorRegistry;exports.getConventionalTokenPriceDecimals=e.getConventionalTokenPriceDecimals;exports.getErrorKey=e.getErrorKey;exports.getFlatMoneyCollateralByLeverageAddress=e.getFlatMoneyCollateralByLeverageAddress;exports.getFlatMoneyLinkByUnitAddress=e.getFlatMoneyLinkByUnitAddress;exports.getGmxWithdrawAssetByLeverageAddress=e.getGmxWithdrawAssetByLeverageAddress;exports.getGmxWithdrawAssetByVaultAddress=e.getGmxWithdrawAssetByVaultAddress;exports.getHyperliquidWithdrawAsset=e.getHyperliquidWithdrawAsset;exports.getNativeTokenInvestableBalance=e.getNativeTokenInvestableBalance;exports.getPercent=e.getPercent;exports.getPoolFraction=e.getPoolFraction;exports.getSettleDelay=e.getSettleDelay;exports.getSlippageToleranceForContractTransaction=e.getSlippageToleranceForContractTransaction;exports.getTxHashShort=e.getTxHashShort;exports.groupPreviewByAccount=e.groupPreviewByAccount;exports.isAaveLendAndBorrowAsset=e.isAaveLendAndBorrowAsset;exports.isFlatMoneyLeveragedAsset=e.isFlatMoneyLeveragedAsset;exports.isFmpAirdropVaultAddress=e.isFmpAirdropVaultAddress;exports.isGmxLeveragedAsset=e.isGmxLeveragedAsset;exports.isHyperliquidCorePositionAsset=e.isHyperliquidCorePositionAsset;exports.isHyperliquidPerpsAsset=e.isHyperliquidPerpsAsset;exports.isHyperliquidSpotSystemAsset=e.isHyperliquidSpotSystemAsset;exports.isNativeToken=e.isNativeToken;exports.isPositiveNumber=e.isPositiveNumber;exports.isStableSymbol=e.isStableSymbol;exports.isUnswappableGmDust=e.isUnswappableGmDust;exports.logContractErrorOnce=e.logContractErrorOnce;exports.logTransactionByActionType=e.logTransactionByActionType;exports.mapAttestationToOndoQuote=e.mapAttestationToOndoQuote;exports.mapOndoApiResponseToUpdatePricesArgs=e.mapOndoApiResponseToUpdatePricesArgs;exports.overlayWithdrawData=e.overlayWithdrawData;exports.parseAmountToD18=e.parseAmountToD18;exports.parseContractErrorMessage=e.parseContractErrorMessage;exports.shiftBy=e.shiftBy;exports.shortenAddress=e.shortenAddress;exports.shouldSwallowMainnetPollError=e.shouldSwallowMainnetPollError;exports.sliceByIndex=e.sliceByIndex;exports.toBigInt=e.toBigInt;exports.toBytes32Hex=e.toBytes32Hex;exports.transformAddressForAnalytics=e.transformAddressForAnalytics;exports.truncateString=e.truncateString;exports.tryEstimateWithRouters=e.tryEstimateWithRouters;exports.tryEstimateWithSlippageValues=e.tryEstimateWithSlippageValues;exports.validateLoggerEventParams=e.validateLoggerEventParams;Object.defineProperty(exports,"decodeErrorResult",{enumerable:!0,get:()=>t.decodeErrorResult});Object.defineProperty(exports,"encodeFunctionData",{enumerable:!0,get:()=>t.encodeFunctionData});Object.defineProperty(exports,"formatEther",{enumerable:!0,get:()=>t.formatEther});Object.defineProperty(exports,"formatUnits",{enumerable:!0,get:()=>t.formatUnits});Object.defineProperty(exports,"hexToString",{enumerable:!0,get:()=>t.hexToString});Object.defineProperty(exports,"trim",{enumerable:!0,get:()=>t.trim});
|
package/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e, M as t, T as r, a as o, b as i, c as n, d, e as l, f as A, g as c, h as u, i as g, j as p, k as y, l as m, m as T, n as D, o as S, p as h, q as C, r as E, s as R, t as b, u as v, v as w, w as B, x, y as P, z as f, A as W, B as _, C as F, D as H, F as I, G as L, H as M, I as U, J as N, K as O, L as k, N as G, O as q, P as V, Q as K, R as Q, S as Y, U as j, V as Z, W as z, X as J, Y as X, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ra, a3 as oa, a4 as ia, a5 as na, a6 as da, a7 as la, a8 as Aa, a9 as ca, aa as ua, ab as ga, ac as pa, ad as ya, ae as ma, af as Ta, ag as Da, ah as Sa, ai as ha, aj as Ca, ak as Ea } from "./contract-error-log-
|
|
1
|
+
import { E as e, M as t, T as r, a as o, b as i, c as n, d, e as l, f as A, g as c, h as u, i as g, j as p, k as y, l as m, m as T, n as D, o as S, p as h, q as C, r as E, s as R, t as b, u as v, v as w, w as B, x, y as P, z as f, A as W, B as _, C as F, D as H, F as I, G as L, H as M, I as U, J as N, K as O, L as k, N as G, O as q, P as V, Q as K, R as Q, S as Y, U as j, V as Z, W as z, X as J, Y as X, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ra, a3 as oa, a4 as ia, a5 as na, a6 as da, a7 as la, a8 as Aa, a9 as ca, aa as ua, ab as ga, ac as pa, ad as ya, ae as ma, af as Ta, ag as Da, ah as Sa, ai as ha, aj as Ca, ak as Ea } from "./contract-error-log-CaRlTnoL.js";
|
|
2
2
|
import { decodeErrorResult as ba, encodeFunctionData as va, formatEther as wa, formatUnits as Ba, hexToString as xa, trim as Pa } from "viem";
|
|
3
3
|
export {
|
|
4
4
|
e as EMPTY_PER_ASSET_WITHDRAW_DATA,
|