@dhedge/trading-widget 6.0.5 → 6.1.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/const.cjs +1 -1
- package/const.js +94 -89
- package/core-kit/abi/dytm-office-asset-guard.d.ts +194 -0
- package/core-kit/abi/index.d.ts +1 -0
- package/core-kit/abi/ondo-gm-token-asset-guard.d.ts +20 -0
- package/core-kit/abi/ondo-price-oracle.d.ts +18 -0
- package/core-kit/const/index.d.ts +1 -0
- package/core-kit/const/midas.d.ts +2 -0
- package/core-kit/const/trading.d.ts +3 -0
- package/core-kit/hooks/pool/index.d.ts +4 -0
- package/core-kit/hooks/pool/use-asset-guard-address.d.ts +8 -0
- package/core-kit/hooks/pool/use-dytm-vault-data.d.ts +8 -0
- package/core-kit/hooks/pool/use-ondo-price-deviation.d.ts +10 -0
- package/core-kit/hooks/pool/use-ondo-vault-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-pool-assets-with-type.d.ts +14 -0
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-ondo-price-freshness.d.ts +4 -4
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-dytm-withdraw-asset-data.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts +3 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-simulation-withdraw-data.d.ts +7 -0
- package/core-kit/services/ondo/api.d.ts +5 -1
- package/core-kit/services/ondo/index.d.ts +2 -2
- package/core-kit/services/ondo/types.d.ts +9 -0
- package/core-kit/utils/complex-withdraw-asset-data.d.ts +9 -5
- package/core-kit/utils/dytm.d.ts +51 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/core-kit/utils/ondo.d.ts +2 -1
- package/core-kit/utils/web3.d.ts +5 -1
- package/dytm-CQG65-Rc.cjs +1 -0
- package/dytm-CWhBYz0P.js +784 -0
- package/{geoblocking-NkujbQRm.js → geoblocking-DtB4yr5l.js} +10 -8
- package/geoblocking-peuNwHMJ.cjs +1 -0
- package/gmx-U3Bnivj2.cjs +1 -0
- package/{gmx-DQ-wSifY.js → gmx-c42QlKyJ.js} +389 -369
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +4280 -3682
- package/package.json +1 -1
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/init-withdraw-step.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks.d.ts +10 -2
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts +2 -9
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks.d.ts +26 -0
- package/utils.cjs +1 -1
- package/utils.js +67 -58
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +0 -235
- package/geoblocking-9FD_O0-h.cjs +0 -1
- package/gmx-Dejxb5_t.cjs +0 -1
- package/ondo-GwhTVXds.js +0 -540
- package/ondo-rQybmFLf.cjs +0 -1
package/package.json
CHANGED
|
@@ -8,6 +8,6 @@ export interface InitWithdrawStepProps {
|
|
|
8
8
|
onError: () => void;
|
|
9
9
|
label: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const useInitWithdrawStep: ({ isActive,
|
|
11
|
+
export declare const useInitWithdrawStep: ({ isActive, isCompleteWithdrawStep, isPending, onError, }: Omit<InitWithdrawStepProps, 'stepNumber' | 'label'>) => {
|
|
12
12
|
description: string | undefined;
|
|
13
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface OracleUpdateStepProps {
|
|
2
|
+
stepNumber: number;
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
isFinished: boolean;
|
|
5
|
+
isUpdateRequired: boolean;
|
|
6
|
+
onError: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useOracleUpdateStep: ({ isActive, isUpdateRequired, onError, }: Pick<OracleUpdateStepProps, 'isActive' | 'isUpdateRequired' | 'onError'>) => {
|
|
9
|
+
label: string;
|
|
10
|
+
description: string | undefined;
|
|
11
|
+
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { type OverlayProps } from '../../../../types';
|
|
2
2
|
export declare const APPROVE_STEP_INDEX = 0;
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface WithdrawStepIndices {
|
|
4
|
+
approve: number;
|
|
5
|
+
oracleUpdate: number;
|
|
6
|
+
initWithdraw: number;
|
|
7
|
+
completeWithdraw: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const getWithdrawStepIndices: (hasOracleUpdateStep: boolean) => WithdrawStepIndices;
|
|
5
10
|
export declare const useWithdrawStepperOverlay: ({ type }: OverlayProps) => {
|
|
6
11
|
isUnrollAndClaimTransaction: boolean;
|
|
7
12
|
activeStepIndex: number;
|
|
13
|
+
hasOracleUpdateStep: boolean;
|
|
14
|
+
needsOracleUpdate: boolean;
|
|
15
|
+
stepIndices: WithdrawStepIndices;
|
|
8
16
|
canSpend: boolean;
|
|
9
17
|
isCompleteWithdrawStep: boolean;
|
|
10
18
|
handleReject: () => void;
|
package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isTransactionTypeReady: boolean;
|
|
5
|
-
isUnrollAndClaimTransaction: boolean;
|
|
6
|
-
isCompleteWithdrawStep: boolean;
|
|
7
|
-
isUnrollAndClaimCheckFetching: boolean;
|
|
8
|
-
activeStepIndex: number;
|
|
9
|
-
onError: () => void;
|
|
10
|
-
}
|
|
2
|
+
import type { WithdrawStepsProps } from '../../../../components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks';
|
|
3
|
+
export type { WithdrawStepsProps };
|
|
11
4
|
export declare const WithdrawSteps: FC<WithdrawStepsProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { WithdrawStepIndices } from '../../../../components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks';
|
|
2
|
+
export interface WithdrawStepsProps {
|
|
3
|
+
canSpend: boolean;
|
|
4
|
+
isTransactionTypeReady: boolean;
|
|
5
|
+
isUnrollAndClaimTransaction: boolean;
|
|
6
|
+
isCompleteWithdrawStep: boolean;
|
|
7
|
+
isUnrollAndClaimCheckFetching: boolean;
|
|
8
|
+
hasOracleUpdateStep: boolean;
|
|
9
|
+
needsOracleUpdate: boolean;
|
|
10
|
+
stepIndices: WithdrawStepIndices;
|
|
11
|
+
activeStepIndex: number;
|
|
12
|
+
onError: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface WithdrawStepState {
|
|
15
|
+
stepNumber: number;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
isFinished: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const useWithdrawSteps: ({ canSpend, isTransactionTypeReady, isUnrollAndClaimTransaction, hasOracleUpdateStep, stepIndices, activeStepIndex, }: WithdrawStepsProps) => {
|
|
20
|
+
showLoadingPlaceholder: boolean;
|
|
21
|
+
oracleUpdateStep: WithdrawStepState | undefined;
|
|
22
|
+
initWithdrawStep: WithdrawStepState;
|
|
23
|
+
completeWithdrawStep: WithdrawStepState;
|
|
24
|
+
showCompleteWithdrawStep: boolean;
|
|
25
|
+
initWithdrawLabel: string;
|
|
26
|
+
};
|
package/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./dytm-CQG65-Rc.cjs"),t=require("viem");exports.EMPTY_PER_ASSET_WITHDRAW_DATA=e.EMPTY_PER_ASSET_WITHDRAW_DATA;exports.base64ToHex=e.base64ToHex;exports.buildAaveWithdrawAssetTransactionData=e.buildAaveWithdrawAssetTransactionData;exports.buildComplexAssetDataForRouter=e.buildComplexAssetDataForRouter;exports.buildDytmActions=e.buildDytmActions;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.ensureHexPrefix=e.ensureHexPrefix;exports.extractAvailableRouterKeys=e.extractAvailableRouterKeys;exports.formatBalance=e.formatBalance;exports.formatByCurrency=e.formatByCurrency;exports.formatNumeratorToPercentage=e.formatNumeratorToPercentage;exports.formatTokenBalance=e.formatTokenBalance;exports.getAutoSlippageSimulationCandidates=e.getAutoSlippageSimulationCandidates;exports.getContractAbiById=e.getContractAbiById;exports.getContractAddressById=e.getContractAddressById;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.isHyperliquidPerpsAsset=e.isHyperliquidPerpsAsset;exports.isNativeToken=e.isNativeToken;exports.isStableSymbol=e.isStableSymbol;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,63 +1,72 @@
|
|
|
1
|
-
import { E as s, b as t, a as r, c as o, d as i, e as n, f as d, g as l, h as A, i as
|
|
2
|
-
import { decodeErrorResult as
|
|
1
|
+
import { E as s, b as t, a as r, c as o, d as i, e as n, f as d, g as l, h as A, i as c, j as u, k as g, l as m, m as p, n as y, o as T, p as h, q as B, r as S, s as v, t as D, u as w, v as x, w as b, x as P, y as f, z as W, A as E, B as C, C as F, D as R, F as H, G as L, H as M, I, J as k, K as U, L as O, M as _, N as G, O as K, P as N, Q, R as V, S as q, T as Y, U as Z, V as j, W as z, X as J, Y as X, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as oa, a4 as ia, a5 as na, a6 as da, a7 as la } from "./dytm-CWhBYz0P.js";
|
|
2
|
+
import { decodeErrorResult as ca, encodeFunctionData as ua, formatEther as ga, formatUnits as ma, hexToString as pa, trim as ya } from "viem";
|
|
3
3
|
export {
|
|
4
4
|
s as EMPTY_PER_ASSET_WITHDRAW_DATA,
|
|
5
|
-
t as
|
|
5
|
+
t as base64ToHex,
|
|
6
6
|
r as buildAaveWithdrawAssetTransactionData,
|
|
7
7
|
o as buildComplexAssetDataForRouter,
|
|
8
|
-
i as
|
|
9
|
-
n as
|
|
10
|
-
d as
|
|
11
|
-
l as
|
|
12
|
-
A as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
g as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
v as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
w as
|
|
30
|
-
x as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
f as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
M as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Y as
|
|
55
|
-
Z as
|
|
56
|
-
j as
|
|
57
|
-
z as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
8
|
+
i as buildDytmActions,
|
|
9
|
+
n as buildDytmRepayActions,
|
|
10
|
+
d as buildSwapQuoteKeyForAave,
|
|
11
|
+
l as buildSwapWithdrawTransactionData,
|
|
12
|
+
A as buildZapDepositTransactionArguments,
|
|
13
|
+
c as clientSide,
|
|
14
|
+
u as computeAmountOutMinimumUsdc,
|
|
15
|
+
g as createDefaultComplexAssetData,
|
|
16
|
+
ca as decodeErrorResult,
|
|
17
|
+
ua as encodeFunctionData,
|
|
18
|
+
m as encodeOndoWithdrawData,
|
|
19
|
+
p as encodeUnwindPlan,
|
|
20
|
+
y as enrichAssetsWithSwapQuotes,
|
|
21
|
+
T as ensureHexPrefix,
|
|
22
|
+
h as extractAvailableRouterKeys,
|
|
23
|
+
B as formatBalance,
|
|
24
|
+
S as formatByCurrency,
|
|
25
|
+
ga as formatEther,
|
|
26
|
+
v as formatNumeratorToPercentage,
|
|
27
|
+
D as formatTokenBalance,
|
|
28
|
+
ma as formatUnits,
|
|
29
|
+
w as getAutoSlippageSimulationCandidates,
|
|
30
|
+
x as getContractAbiById,
|
|
31
|
+
b as getContractAddressById,
|
|
32
|
+
P as getConventionalTokenPriceDecimals,
|
|
33
|
+
f as getErrorKey,
|
|
34
|
+
W as getFlatMoneyCollateralByLeverageAddress,
|
|
35
|
+
E as getFlatMoneyLinkByUnitAddress,
|
|
36
|
+
C as getGmxWithdrawAssetByLeverageAddress,
|
|
37
|
+
F as getGmxWithdrawAssetByVaultAddress,
|
|
38
|
+
R as getHyperliquidWithdrawAsset,
|
|
39
|
+
H as getNativeTokenInvestableBalance,
|
|
40
|
+
L as getPercent,
|
|
41
|
+
M as getPoolFraction,
|
|
42
|
+
I as getSettleDelay,
|
|
43
|
+
k as getSlippageToleranceForContractTransaction,
|
|
44
|
+
U as getTxHashShort,
|
|
45
|
+
O as groupPreviewByAccount,
|
|
46
|
+
pa as hexToString,
|
|
47
|
+
_ as isAaveLendAndBorrowAsset,
|
|
48
|
+
G as isFlatMoneyLeveragedAsset,
|
|
49
|
+
K as isFmpAirdropVaultAddress,
|
|
50
|
+
N as isGmxLeveragedAsset,
|
|
51
|
+
Q as isHyperliquidPerpsAsset,
|
|
52
|
+
V as isNativeToken,
|
|
53
|
+
q as isStableSymbol,
|
|
54
|
+
Y as logTransactionByActionType,
|
|
55
|
+
Z as mapAttestationToOndoQuote,
|
|
56
|
+
j as mapOndoApiResponseToUpdatePricesArgs,
|
|
57
|
+
z as overlayWithdrawData,
|
|
58
|
+
J as parseAmountToD18,
|
|
59
|
+
X as parseContractErrorMessage,
|
|
60
|
+
$ as shiftBy,
|
|
61
|
+
aa as shortenAddress,
|
|
62
|
+
ea as shouldSwallowMainnetPollError,
|
|
63
|
+
sa as sliceByIndex,
|
|
64
|
+
ta as toBigInt,
|
|
65
|
+
ra as toBytes32Hex,
|
|
66
|
+
oa as transformAddressForAnalytics,
|
|
67
|
+
ya as trim,
|
|
68
|
+
ia as truncateString,
|
|
69
|
+
na as tryEstimateWithRouters,
|
|
70
|
+
da as tryEstimateWithSlippageValues,
|
|
71
|
+
la as validateLoggerEventParams
|
|
63
72
|
};
|
package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
export declare const useInitWithdrawEstimatedReceiveAssets: () => import("wagmi").UseReadContractsReturnType<({
|
|
2
|
-
address: `0x${string}`;
|
|
3
|
-
abi: readonly [{
|
|
4
|
-
readonly type: "event";
|
|
5
|
-
readonly name: "Approval";
|
|
6
|
-
readonly inputs: readonly [{
|
|
7
|
-
readonly indexed: true;
|
|
8
|
-
readonly name: "owner";
|
|
9
|
-
readonly type: "address";
|
|
10
|
-
}, {
|
|
11
|
-
readonly indexed: true;
|
|
12
|
-
readonly name: "spender";
|
|
13
|
-
readonly type: "address";
|
|
14
|
-
}, {
|
|
15
|
-
readonly indexed: false;
|
|
16
|
-
readonly name: "value";
|
|
17
|
-
readonly type: "uint256";
|
|
18
|
-
}];
|
|
19
|
-
}, {
|
|
20
|
-
readonly type: "event";
|
|
21
|
-
readonly name: "Transfer";
|
|
22
|
-
readonly inputs: readonly [{
|
|
23
|
-
readonly indexed: true;
|
|
24
|
-
readonly name: "from";
|
|
25
|
-
readonly type: "address";
|
|
26
|
-
}, {
|
|
27
|
-
readonly indexed: true;
|
|
28
|
-
readonly name: "to";
|
|
29
|
-
readonly type: "address";
|
|
30
|
-
}, {
|
|
31
|
-
readonly indexed: false;
|
|
32
|
-
readonly name: "value";
|
|
33
|
-
readonly type: "uint256";
|
|
34
|
-
}];
|
|
35
|
-
}, {
|
|
36
|
-
readonly type: "function";
|
|
37
|
-
readonly name: "allowance";
|
|
38
|
-
readonly stateMutability: "view";
|
|
39
|
-
readonly inputs: readonly [{
|
|
40
|
-
readonly name: "owner";
|
|
41
|
-
readonly type: "address";
|
|
42
|
-
}, {
|
|
43
|
-
readonly name: "spender";
|
|
44
|
-
readonly type: "address";
|
|
45
|
-
}];
|
|
46
|
-
readonly outputs: readonly [{
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
}];
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "function";
|
|
51
|
-
readonly name: "approve";
|
|
52
|
-
readonly stateMutability: "nonpayable";
|
|
53
|
-
readonly inputs: readonly [{
|
|
54
|
-
readonly name: "spender";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "amount";
|
|
58
|
-
readonly type: "uint256";
|
|
59
|
-
}];
|
|
60
|
-
readonly outputs: readonly [{
|
|
61
|
-
readonly type: "bool";
|
|
62
|
-
}];
|
|
63
|
-
}, {
|
|
64
|
-
readonly type: "function";
|
|
65
|
-
readonly name: "balanceOf";
|
|
66
|
-
readonly stateMutability: "view";
|
|
67
|
-
readonly inputs: readonly [{
|
|
68
|
-
readonly name: "account";
|
|
69
|
-
readonly type: "address";
|
|
70
|
-
}];
|
|
71
|
-
readonly outputs: readonly [{
|
|
72
|
-
readonly type: "uint256";
|
|
73
|
-
}];
|
|
74
|
-
}, {
|
|
75
|
-
readonly type: "function";
|
|
76
|
-
readonly name: "decimals";
|
|
77
|
-
readonly stateMutability: "view";
|
|
78
|
-
readonly inputs: readonly [];
|
|
79
|
-
readonly outputs: readonly [{
|
|
80
|
-
readonly type: "uint8";
|
|
81
|
-
}];
|
|
82
|
-
}, {
|
|
83
|
-
readonly type: "function";
|
|
84
|
-
readonly name: "name";
|
|
85
|
-
readonly stateMutability: "view";
|
|
86
|
-
readonly inputs: readonly [];
|
|
87
|
-
readonly outputs: readonly [{
|
|
88
|
-
readonly type: "string";
|
|
89
|
-
}];
|
|
90
|
-
}, {
|
|
91
|
-
readonly type: "function";
|
|
92
|
-
readonly name: "symbol";
|
|
93
|
-
readonly stateMutability: "view";
|
|
94
|
-
readonly inputs: readonly [];
|
|
95
|
-
readonly outputs: readonly [{
|
|
96
|
-
readonly type: "string";
|
|
97
|
-
}];
|
|
98
|
-
}, {
|
|
99
|
-
readonly type: "function";
|
|
100
|
-
readonly name: "totalSupply";
|
|
101
|
-
readonly stateMutability: "view";
|
|
102
|
-
readonly inputs: readonly [];
|
|
103
|
-
readonly outputs: readonly [{
|
|
104
|
-
readonly type: "uint256";
|
|
105
|
-
}];
|
|
106
|
-
}, {
|
|
107
|
-
readonly type: "function";
|
|
108
|
-
readonly name: "transfer";
|
|
109
|
-
readonly stateMutability: "nonpayable";
|
|
110
|
-
readonly inputs: readonly [{
|
|
111
|
-
readonly name: "recipient";
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
}, {
|
|
114
|
-
readonly name: "amount";
|
|
115
|
-
readonly type: "uint256";
|
|
116
|
-
}];
|
|
117
|
-
readonly outputs: readonly [{
|
|
118
|
-
readonly type: "bool";
|
|
119
|
-
}];
|
|
120
|
-
}, {
|
|
121
|
-
readonly type: "function";
|
|
122
|
-
readonly name: "transferFrom";
|
|
123
|
-
readonly stateMutability: "nonpayable";
|
|
124
|
-
readonly inputs: readonly [{
|
|
125
|
-
readonly name: "sender";
|
|
126
|
-
readonly type: "address";
|
|
127
|
-
}, {
|
|
128
|
-
readonly name: "recipient";
|
|
129
|
-
readonly type: "address";
|
|
130
|
-
}, {
|
|
131
|
-
readonly name: "amount";
|
|
132
|
-
readonly type: "uint256";
|
|
133
|
-
}];
|
|
134
|
-
readonly outputs: readonly [{
|
|
135
|
-
readonly type: "bool";
|
|
136
|
-
}];
|
|
137
|
-
}];
|
|
138
|
-
functionName: string;
|
|
139
|
-
chainId: number;
|
|
140
|
-
args: never[];
|
|
141
|
-
} | {
|
|
142
|
-
address: `0x${string}`;
|
|
143
|
-
abi: readonly [{
|
|
144
|
-
readonly inputs: readonly [{
|
|
145
|
-
readonly internalType: "address";
|
|
146
|
-
readonly name: "asset";
|
|
147
|
-
readonly type: "address";
|
|
148
|
-
}];
|
|
149
|
-
readonly name: "getAssetPrice";
|
|
150
|
-
readonly outputs: readonly [{
|
|
151
|
-
readonly internalType: "uint256";
|
|
152
|
-
readonly name: "price";
|
|
153
|
-
readonly type: "uint256";
|
|
154
|
-
}];
|
|
155
|
-
readonly stateMutability: "view";
|
|
156
|
-
readonly type: "function";
|
|
157
|
-
}, {
|
|
158
|
-
readonly inputs: readonly [{
|
|
159
|
-
readonly internalType: "address";
|
|
160
|
-
readonly name: "";
|
|
161
|
-
readonly type: "address";
|
|
162
|
-
}];
|
|
163
|
-
readonly name: "isPool";
|
|
164
|
-
readonly outputs: readonly [{
|
|
165
|
-
readonly internalType: "bool";
|
|
166
|
-
readonly name: "";
|
|
167
|
-
readonly type: "bool";
|
|
168
|
-
}];
|
|
169
|
-
readonly stateMutability: "view";
|
|
170
|
-
readonly type: "function";
|
|
171
|
-
}, {
|
|
172
|
-
readonly inputs: readonly [{
|
|
173
|
-
readonly internalType: "address";
|
|
174
|
-
readonly name: "extContract";
|
|
175
|
-
readonly type: "address";
|
|
176
|
-
}];
|
|
177
|
-
readonly name: "getAssetGuard";
|
|
178
|
-
readonly outputs: readonly [{
|
|
179
|
-
readonly internalType: "address";
|
|
180
|
-
readonly name: "guard";
|
|
181
|
-
readonly type: "address";
|
|
182
|
-
}];
|
|
183
|
-
readonly stateMutability: "view";
|
|
184
|
-
readonly type: "function";
|
|
185
|
-
}, {
|
|
186
|
-
readonly inputs: readonly [{
|
|
187
|
-
readonly internalType: "address";
|
|
188
|
-
readonly name: "extContract";
|
|
189
|
-
readonly type: "address";
|
|
190
|
-
}];
|
|
191
|
-
readonly name: "getContractGuard";
|
|
192
|
-
readonly outputs: readonly [{
|
|
193
|
-
readonly internalType: "address";
|
|
194
|
-
readonly name: "guard";
|
|
195
|
-
readonly type: "address";
|
|
196
|
-
}];
|
|
197
|
-
readonly stateMutability: "view";
|
|
198
|
-
readonly type: "function";
|
|
199
|
-
}, {
|
|
200
|
-
readonly inputs: readonly [];
|
|
201
|
-
readonly name: "referralManager";
|
|
202
|
-
readonly outputs: readonly [{
|
|
203
|
-
readonly internalType: "address";
|
|
204
|
-
readonly name: "";
|
|
205
|
-
readonly type: "address";
|
|
206
|
-
}];
|
|
207
|
-
readonly stateMutability: "view";
|
|
208
|
-
readonly type: "function";
|
|
209
|
-
}, {
|
|
210
|
-
readonly inputs: readonly [{
|
|
211
|
-
readonly internalType: "address";
|
|
212
|
-
readonly name: "_asset";
|
|
213
|
-
readonly type: "address";
|
|
214
|
-
}];
|
|
215
|
-
readonly name: "getAssetType";
|
|
216
|
-
readonly outputs: readonly [{
|
|
217
|
-
readonly internalType: "uint16";
|
|
218
|
-
readonly name: "";
|
|
219
|
-
readonly type: "uint16";
|
|
220
|
-
}];
|
|
221
|
-
readonly stateMutability: "view";
|
|
222
|
-
readonly type: "function";
|
|
223
|
-
}];
|
|
224
|
-
functionName: string;
|
|
225
|
-
chainId: number;
|
|
226
|
-
args: `0x${string}`[];
|
|
227
|
-
})[], true, {
|
|
228
|
-
address: `0x${string}`;
|
|
229
|
-
symbol: string;
|
|
230
|
-
decimals: number;
|
|
231
|
-
rawBalance: bigint;
|
|
232
|
-
balance: number;
|
|
233
|
-
price: number;
|
|
234
|
-
valueInUsd: number;
|
|
235
|
-
}[]>;
|
package/geoblocking-9FD_O0-h.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=new Set(["0x2fbadd08ade2e8a24cf1fe3a58fe918336b39a72"]),S={REFERRER:"referrer",REF_POOL:"ref_pool",ONDO_PRICE_UPDATES:"ondo_price_updates"},_={BY:"Belarus",CD:"Democratic Republic of the Congo",CI:"Côte d'Ivoire",CU:"Cuba",IQ:"Iraq",IR:"Iran",KP:"North Korea",LB:"Lebanon",LR:"Liberia",LY:"Libya",MM:"Myanmar",RU:"Russia",SD:"Sudan",SO:"Somalia",SY:"Syria",VE:"Venezuela",YE:"Yemen",ZW:"Zimbabwe"},E={AF:"Afghanistan",BY:"Belarus",CA:"Canada",CU:"Cuba",KP:"North Korea",IR:"Iran",LY:"Libya",MM:"Myanmar",RU:"Russia",SO:"Somalia",SS:"South Sudan",SD:"Sudan",SY:"Syria",US:"United States"};exports.BLOCKED_COUNTRY_CODES_MAP=_;exports.COVERED_CALL_VAULT_ADDRESSES=a;exports.LOCAL_STORAGE_KEYS=S;exports.ONDO_ASSET_TYPE=41;exports.ONDO_BLOCKED_COUNTRY_CODES_MAP=E;
|