@hinkal/common 0.1.63 → 0.1.64
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/data-structures/cacheDevices/FileCacheDevice.cjs +1 -1
- package/data-structures/cacheDevices/FileCacheDevice.mjs +9 -8
- package/functions/utils/cacheFunctions.cjs +1 -1
- package/functions/utils/cacheFunctions.d.ts +1 -0
- package/functions/utils/cacheFunctions.mjs +22 -21
- package/index.cjs +1 -1
- package/index.mjs +249 -248
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../error-handling/logError.cjs"),o=require("./BaseCacheDevice.cjs");class h extends o.BaseCacheDevice{filePath;constructor(e){super(),this.filePath=e,this.readFileFromDevice()}readFileFromDevice(){if(this.filePath)try{const e=require("fs");if(e.existsSync(this.filePath)){const t=JSON.parse(e.readFileSync(this.filePath).toString());Object.entries(t).forEach(([s,c])=>{this.setInMemory(s,c)})}}catch(e){r.logError("FileCacheDevice Constructor Error",{err:e})}}get(e){return this.getInMemory(e)}set(e,t){if(this.readFileFromDevice(),this.setInMemory(e,t),this.filePath)try{require("fs").writeFileSync(this.filePath,JSON.stringify(Object.fromEntries(this.inMemoryCache)))}catch(i){r.logError("FileCacheDevice set function",{err:i})}}}exports.FileCacheDevice=h;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { logError as r } from "../../error-handling/logError.mjs";
|
|
2
|
+
import { BaseCacheDevice as o } from "./BaseCacheDevice.mjs";
|
|
3
|
+
class f extends o {
|
|
3
4
|
filePath;
|
|
4
5
|
constructor(e) {
|
|
5
6
|
super(), this.filePath = e, this.readFileFromDevice();
|
|
@@ -10,26 +11,26 @@ class h extends c {
|
|
|
10
11
|
const e = require("fs");
|
|
11
12
|
if (e.existsSync(this.filePath)) {
|
|
12
13
|
const t = JSON.parse(e.readFileSync(this.filePath).toString());
|
|
13
|
-
Object.entries(t).forEach(([
|
|
14
|
-
this.setInMemory(
|
|
14
|
+
Object.entries(t).forEach(([s, c]) => {
|
|
15
|
+
this.setInMemory(s, c);
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
} catch (e) {
|
|
18
|
-
|
|
19
|
+
r("FileCacheDevice Constructor Error", { err: e });
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
get(e) {
|
|
22
23
|
return this.getInMemory(e);
|
|
23
24
|
}
|
|
24
25
|
set(e, t) {
|
|
25
|
-
if (this.setInMemory(e, t), this.filePath)
|
|
26
|
+
if (this.readFileFromDevice(), this.setInMemory(e, t), this.filePath)
|
|
26
27
|
try {
|
|
27
28
|
require("fs").writeFileSync(this.filePath, JSON.stringify(Object.fromEntries(this.inMemoryCache)));
|
|
28
29
|
} catch (i) {
|
|
29
|
-
|
|
30
|
+
r("FileCacheDevice set function", { err: i });
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
f as FileCacheDevice
|
|
35
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../types/ethereum-network.types.cjs"),y=require("./getDataFromTransaction.cjs"),C=require("idb-keyval"),H={encryptedOutputs:[],lastOutput:""},d=(e,t)=>{const s=e.substring(0,25),r=t.substring(0,25);return{shortPublicKey:s,shortHinkalAddress:r}},u=(e,t,s)=>`hinkalCache-${e}-${t}-${s}`,S=e=>{const t=e.getCurrentChainId(),s=e.getContract(g.ContractType.HinkalContract).address,r=e.userKeys.getShieldedPublicKey();if(!t||!r||!s)throw Error("GetHinkalCache: incorrect arguments");const{shortPublicKey:c,shortHinkalAddress:a}=d(r,s);return JSON.parse(e.cacheDevice.get(u(t,c,a))??JSON.stringify(H))},T=(e,t)=>{const s=t.getCurrentChainId(),r=t.getContract(g.ContractType.HinkalContract).address,c=t.userKeys.getShieldedPublicKey();if(!s||!c||!r)throw Error("SetHinkalCache: incorrect arguments");const{shortPublicKey:a,shortHinkalAddress:n}=d(c,r);t.cacheDevice.set(u(s,a,n),JSON.stringify(e))},b=e=>{T(H,e)},x=(e,t,s)=>`txsCache-${e}-${t}-${s}`,k=async(e,t,s,r,c)=>{if(!t||!s||!r)throw Error("saveTxsCache: incorrect arguments");const{shortPublicKey:a,shortHinkalAddress:n}=d(s,r),h=y.serializeDecodedTxs(e),o=x(t,a,n),l=JSON.stringify({serializedTxs:h,lastHash:c});try{await C.set(o,l)}catch{localStorage.setItem(o,l)}},m={serializedTxs:[],lastHash:""},p=async(e,t,s)=>{if(!e||!t||!s)throw Error("loadTxsCache: incorrect arguments");const{shortPublicKey:r,shortHinkalAddress:c}=d(t,s),a=x(e,r,c);let n;try{const i=await C.get(a);if(!i)throw new Error("Empty indexedDB cache");n=i}catch{n=localStorage.getItem(a)}const{serializedTxs:h,lastHash:o}=JSON.parse(n??JSON.stringify(m));return{decodedTxs:h.map(i=>y.deserializeDecodedTxs(i)),lastHash:o===""?void 0:o}};exports.getFilePath=u;exports.getHinkalCache=S;exports.loadTxsCache=p;exports.resetCache=b;exports.saveTxsCache=k;exports.setHinkalCache=T;
|
|
@@ -5,6 +5,7 @@ interface HinkalCacheInterface {
|
|
|
5
5
|
encryptedOutputs: EncryptedOutputWithSign[];
|
|
6
6
|
lastOutput: string;
|
|
7
7
|
}
|
|
8
|
+
export declare const getFilePath: (chainId: number, shortPublicKey: string, shortHinkalAddress: string) => string;
|
|
8
9
|
export declare const getHinkalCache: (hinkal: IHinkal) => HinkalCacheInterface;
|
|
9
10
|
export declare const setHinkalCache: (hinkalCache: HinkalCacheInterface, hinkal: IHinkal) => void;
|
|
10
11
|
export declare const resetCache: (hinkal: IHinkal) => void;
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import { ContractType as g } from "../../types/ethereum-network.types.mjs";
|
|
2
|
-
import { serializeDecodedTxs as
|
|
3
|
-
import { set as
|
|
2
|
+
import { serializeDecodedTxs as m, deserializeDecodedTxs as x } from "./getDataFromTransaction.mjs";
|
|
3
|
+
import { set as H, get as p } from "idb-keyval";
|
|
4
4
|
const u = {
|
|
5
5
|
encryptedOutputs: [],
|
|
6
6
|
lastOutput: ""
|
|
7
7
|
}, d = (t, e) => {
|
|
8
8
|
const s = t.substring(0, 25), r = e.substring(0, 25);
|
|
9
9
|
return { shortPublicKey: s, shortHinkalAddress: r };
|
|
10
|
-
},
|
|
10
|
+
}, y = (t, e, s) => `hinkalCache-${t}-${e}-${s}`, k = (t) => {
|
|
11
11
|
const e = t.getCurrentChainId(), s = t.getContract(g.HinkalContract).address, r = t.userKeys.getShieldedPublicKey();
|
|
12
12
|
if (!e || !r || !s)
|
|
13
13
|
throw Error("GetHinkalCache: incorrect arguments");
|
|
14
14
|
const { shortPublicKey: c, shortHinkalAddress: n } = d(r, s);
|
|
15
15
|
return JSON.parse(
|
|
16
|
-
t.cacheDevice.get(
|
|
16
|
+
t.cacheDevice.get(y(e, c, n)) ?? JSON.stringify(u)
|
|
17
17
|
);
|
|
18
|
-
},
|
|
18
|
+
}, S = (t, e) => {
|
|
19
19
|
const s = e.getCurrentChainId(), r = e.getContract(g.HinkalContract).address, c = e.userKeys.getShieldedPublicKey();
|
|
20
20
|
if (!s || !c || !r)
|
|
21
21
|
throw Error("SetHinkalCache: incorrect arguments");
|
|
22
22
|
const { shortPublicKey: n, shortHinkalAddress: o } = d(c, r);
|
|
23
|
-
e.cacheDevice.set(
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
},
|
|
23
|
+
e.cacheDevice.set(y(s, n, o), JSON.stringify(t));
|
|
24
|
+
}, P = (t) => {
|
|
25
|
+
S(u, t);
|
|
26
|
+
}, C = (t, e, s) => `txsCache-${t}-${e}-${s}`, w = async (t, e, s, r, c) => {
|
|
27
27
|
if (!e || !s || !r)
|
|
28
28
|
throw Error("saveTxsCache: incorrect arguments");
|
|
29
|
-
const { shortPublicKey: n, shortHinkalAddress: o } = d(s, r), h =
|
|
29
|
+
const { shortPublicKey: n, shortHinkalAddress: o } = d(s, r), h = m(t), a = C(e, n, o), l = JSON.stringify({ serializedTxs: h, lastHash: c });
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await H(a, l);
|
|
32
32
|
} catch {
|
|
33
33
|
localStorage.setItem(a, l);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, T = { serializedTxs: [], lastHash: "" }, D = async (t, e, s) => {
|
|
36
36
|
if (!t || !e || !s)
|
|
37
37
|
throw Error("loadTxsCache: incorrect arguments");
|
|
38
|
-
const { shortPublicKey: r, shortHinkalAddress: c } = d(e, s), n =
|
|
38
|
+
const { shortPublicKey: r, shortHinkalAddress: c } = d(e, s), n = C(t, r, c);
|
|
39
39
|
let o;
|
|
40
40
|
try {
|
|
41
|
-
const i = await
|
|
41
|
+
const i = await p(n);
|
|
42
42
|
if (!i)
|
|
43
43
|
throw new Error("Empty indexedDB cache");
|
|
44
44
|
o = i;
|
|
45
45
|
} catch {
|
|
46
46
|
o = localStorage.getItem(n);
|
|
47
47
|
}
|
|
48
|
-
const { serializedTxs: h, lastHash: a } = JSON.parse(o ?? JSON.stringify(
|
|
49
|
-
return { decodedTxs: h.map((i) =>
|
|
48
|
+
const { serializedTxs: h, lastHash: a } = JSON.parse(o ?? JSON.stringify(T));
|
|
49
|
+
return { decodedTxs: h.map((i) => x(i)), lastHash: a === "" ? void 0 : a };
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
y as getFilePath,
|
|
53
|
+
k as getHinkalCache,
|
|
54
|
+
D as loadTxsCache,
|
|
55
|
+
P as resetCache,
|
|
56
|
+
w as saveTxsCache,
|
|
57
|
+
S as setHinkalCache
|
|
57
58
|
};
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./API/getServerURL.cjs"),I=require("./API/getCoingeckoPrice.cjs"),ce=require("./API/callOneInchAPI.cjs"),le=require("./API/callBeefyGraphAPI.cjs"),ue=require("./API/callRelayer.cjs"),de=require("./API/getAxelarGasEstimate.cjs"),ge=require("./API/getGasEstimates.cjs"),x=require("./API/getTokenPrice.cjs"),pe=require("./API/checkRisk.cjs"),ye=require("./API/relayCalls.cjs"),Ae=require("./API/API.cjs"),T=require("./API/callCurveAPI.cjs"),Pe=require("./API/getRelayerURL.cjs"),Re=require("./API/duneAPI.cjs"),ke=require("./constants/assets.constants.cjs"),L=require("./constants/token-data/tokenPricing.consts.cjs"),Te=require("./constants/token-data/ethMainnetRegistryFixed.json.cjs"),me=require("./constants/token-data/arbMainnetRegistryFixed.json.cjs"),he=require("./constants/token-data/bnbMainnetRegistryFixed.json.cjs"),Se=require("./constants/token-data/polygonRegistryFixed.json.cjs"),Ce=require("./constants/token-data/avalancheRegistryFixed.json.cjs"),Ee=require("./constants/token-data/optimismRegistryFixed.json.cjs"),Ie=require("./constants/token-data/baseRegistryFixed.json.cjs"),be=require("./constants/token-data/ethMainnetRegistry.json.cjs"),qe=require("./constants/token-data/arbMainnetRegistry.json.cjs"),_e=require("./constants/token-data/bnbMainnetRegistry.json.cjs"),ve=require("./constants/token-data/polygonRegistry.json.cjs"),De=require("./constants/token-data/avalancheRegistry.json.cjs"),xe=require("./constants/token-data/optimismRegistry.json.cjs"),Le=require("./constants/token-data/baseRegistry.json.cjs"),fe=require("./constants/token-data/localhostRegistry.json.cjs"),Fe=require("./constants/token-data/popularTokens.constants.cjs"),V=require("./constants/token-data/ERC20Registry.cjs"),Ue=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Me=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),Oe=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),we=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),Ne=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),Be=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),Ve=require("./constants/deploy-data/deploy-data-base.json.cjs"),We=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),He=require("./constants/deploy-data/deploy-data-axelar1.json.cjs"),Ge=require("./constants/deploy-data/deploy-data-axelar2.json.cjs"),a=require("./constants/chains.constants.cjs"),l=require("./constants/fees.constants.cjs"),k=require("./constants/contracts.constants.cjs"),g=require("./constants/kyc.constants.cjs"),o=require("./constants/server.constants.cjs"),p=require("./constants/vite.constants.cjs"),i=require("./constants/protocol.constants.cjs"),y=require("./constants/coingecko.constants.cjs"),Ke=require("./constants/axelar.constants.cjs"),W=require("./constants/backend.constants.cjs"),R=require("./constants/crvCvx.registry.cjs"),Ye=require("./constants/crvDynamic.registry.cjs"),u=require("./constants/lido.constants.cjs"),d=require("./constants/rewards.constants.cjs"),Ze=require("./constants/reorg-depths.constants.cjs"),H=require("./constants/beefy.registry.cjs"),P=require("./constants/pendle.registry.cjs"),f=require("./crypto/poseidon.cjs"),G=require("./crypto/babyJub.cjs"),ze=require("./crypto/preProcessing.cjs"),Qe=require("./data-structures/ValueCache/ValueCache.cjs"),b=require("./data-structures/crypto-keys/decodeUTXO.cjs"),F=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),K=require("./data-structures/crypto-keys/keys.cjs"),Y=require("./data-structures/crypto-keys/keyUtils.cjs"),je=require("./data-structures/Hinkal/Hinkal.cjs"),Xe=require("./data-structures/Hinkal/hinkalActionBeefy.cjs"),Je=require("./data-structures/Hinkal/hinkalActionConvex.cjs"),$e=require("./data-structures/Hinkal/hinkalActionCurve.cjs"),et=require("./data-structures/Hinkal/hinkalActionPendle.cjs"),Z=require("./data-structures/Hinkal/hinkalDeposit.cjs"),tt=require("./data-structures/Hinkal/hinkalSwap.cjs"),rt=require("./data-structures/Hinkal/hinkalTransfer.cjs"),ot=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),it=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),nt=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),st=require("./data-structures/merkle-tree/MerkleTree.cjs"),at=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),ct=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),lt=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),ut=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),dt=require("./data-structures/event-service/AbstractSnapshotService.cjs"),gt=require("./data-structures/event-service/AbstractEventService.cjs"),pt=require("./data-structures/utxo/Utxo.cjs"),yt=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),At=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),Pt=require("./data-structures/transactions-manager/TransactionsManager.cjs"),z=require("./data-structures/transactions-manager/history/history.types.cjs"),Rt=require("./data-structures/volatile-helper/VolatileHelper.cjs"),kt=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),Tt=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),mt=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),ht=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),Q=require("./error-handling/customErrors/customErrors.helpers.cjs"),j=require("./error-handling/error-codes.constants.cjs"),X=require("./error-handling/get-error.message.cjs"),St=require("./error-handling/handleErrorRestore.cjs"),Ct=require("./error-handling/logError.cjs"),Et=require("./error-handling/types.cjs"),It=require("./externalABIs/amToken.cjs"),bt=require("./externalABIs/BeefyVaultAbi.json.cjs"),qt=require("./externalABIs/BUSD.cjs"),_t=require("./externalABIs/CurveReadingWrapperAbi.json.cjs"),vt=require("./externalABIs/CurveWrappedMainPool.json.cjs"),Dt=require("./externalABIs/DAI.cjs"),xt=require("./externalABIs/ERC20.json.cjs"),Lt=require("./externalABIs/IQuoterV2.json.cjs"),ft=require("./externalABIs/IUniswapV3Factory.json.cjs"),Ft=require("./externalABIs/SanctionsList.cjs"),Ut=require("./externalABIs/USDC.cjs"),Mt=require("./externalABIs/USDR.cjs"),Ot=require("./externalABIs/USDR3CRV.cjs"),wt=require("./externalABIs/USDT.cjs"),Nt=require("./externalABIs/WETH.cjs"),Bt=require("./externalABIs/ISwapRouter.json.cjs"),Vt=require("./externalABIs/LidoStEthAbi.json.cjs"),Wt=require("./externalABIs/LidoStMaticAbi.json.cjs"),Ht=require("./externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),Gt=require("./externalABIs/PoLidoNftAbi.json.cjs"),Kt=require("./externalABIs/LidoWstEthAbi.json.cjs"),Yt=require("./externalABIs/LidoStakeManagerAbi.json.cjs"),Zt=require("./externalABIs/transactionsProver.json.cjs"),zt=require("./externalABIs/BabPassport.json.cjs"),Qt=require("./externalABIs/GalxePassport.json.cjs"),jt=require("./externalABIs/OptimismGasPriceOracle.json.cjs"),U=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),Xt=require("./functions/kyc/passportHelper.cjs"),Jt=require("./functions/kyc/openDefaultPassportWindow.cjs"),e=require("./functions/utils/amounts.utils.cjs"),m=require("./functions/utils/cacheFunctions.cjs"),$t=require("./functions/utils/create-provider.cjs"),h=require("./functions/utils/external-action.utils.cjs"),M=require("./functions/utils/erc20tokenFunctions.cjs"),er=require("./functions/utils/requireEnv.cjs"),O=require("./functions/utils/resolve-sync.utils.cjs"),tr=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),rr=require("./functions/pre-transaction/interaction-to-action.cjs"),or=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),ir=require("./functions/pre-transaction/process-gas-estimates.cjs"),nr=require("./functions/pre-transaction/processAmountChanges.cjs"),sr=require("./functions/pre-transaction/getFlatFees.cjs"),J=require("./functions/utils/evmNetworkFunctions.cjs"),ar=require("./functions/utils/axelar.utils.cjs"),$=require("./functions/utils/userAgent.cjs"),q=require("./functions/utils/getDataFromTransaction.cjs"),cr=require("./functions/utils/reloadPage.cjs"),w=require("./functions/utils/string.utils.cjs"),lr=require("./functions/utils/nickname.utils.cjs"),N=require("./functions/utils/caseInsensitive.utils.cjs"),ur=require("./functions/utils/time.utils.cjs"),dr=require("./functions/utils/volatile-patcher.utils.cjs"),gr=require("./functions/utils/cacheDevice.utils.cjs"),ee=require("./functions/utils/process.utils.cjs"),A=require("./functions/web3/etherFunctions.cjs"),te=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),re=require("./functions/web3/events/getShieldedBalance.cjs"),oe=require("./functions/web3/events/web3RetrieveEvents.cjs"),pr=require("./functions/web3/events/balanceChangedHandler.cjs"),_=require("./functions/web3/uniswapAPI.cjs"),yr=require("./functions/web3/odosAPI.cjs"),Ar=require("./functions/web3/oneInchAPI.cjs"),Pr=require("./functions/web3/runContractFunction.cjs"),Rr=require("./functions/snarkjs/constructGeneralZkProof.cjs"),kr=require("./functions/snarkjs/constructEmporiumProof.cjs"),c=require("./functions/snarkjs/common.snarkjs.cjs"),Tr=require("./functions/snarkjs/generateZkProof.cjs"),mr=require("./functions/protocols/curve.protocols.cjs"),hr=require("./functions/protocols/convex.protocols.cjs"),S=require("./functions/protocols/pendle.helpers.cjs"),C=require("./functions/staking/index.cjs"),ie=require("./functions/private-wallet/emporium.helpers.cjs"),ne=require("./functions/private-wallet/opProducer.cjs"),se=require("./types/beefy.types.cjs"),v=require("./types/circom-data.types.cjs"),Sr=require("./types/ethereum-network.types.cjs"),Cr=require("./types/external-action.types.cjs"),n=require("./types/hinkal.types.cjs"),E=require("./types/kyc.types.cjs"),Er=require("./types/token.types.cjs"),ae=require("./types/slippage.types.cjs"),Ir=require("./types/transactions.types.cjs"),r=require("./types/time.types.cjs"),t=require("./types/rewards.types.cjs"),s=require("./types/pendle.types.cjs"),D=require("./types/curve.types.cjs"),br=require("./types/hinkal.stake.types.cjs");exports.getDataServerURL=B.getDataServerURL;exports.getServerURL=B.getServerURL;exports.getCoingeckoPrice=I.getCoingeckoPrice;exports.getCoingeckoPrice2=I.getCoingeckoPrice2;exports.getCoingeckoPrices=I.getCoingeckoPrices;exports.getCoingeckoTokenList=I.getCoingeckoTokenList;exports.callOneInchAPI=ce.callOneInchAPI;exports.getBeefyHistoricalChartData=le.getBeefyHistoricalChartData;exports.callRelayerTransactAPI=ue.callRelayerTransactAPI;exports.getAxelarGasEstimate=de.getAxelarGasEstimate;exports.getGasEstimates=ge.getGasEstimates;exports.getTokenPrice=x.getTokenPrice;exports.getTokenPriceEth=x.getTokenPriceEth;exports.getTokenPrices=x.getTokenPrices;exports.checkRisk=pe.checkRisk;exports.getIdleRelay=ye.getIdleRelay;exports.API=Ae.API;exports.getCurvePools=T.getCurvePools;exports.getCurvePoolsforPriceFetching=T.getCurvePoolsforPriceFetching;exports.getExtendedPoolInfo=T.getExtendedPoolInfo;exports.lpTokens=T.lpTokens;exports.lpTokensToBasePool=T.lpTokensToBasePool;exports.getRelayerURL=Pe.getRelayerURL;exports.getPublicWalletBalance=Re.getPublicWalletBalance;exports.IMAGE_PATHS=ke.IMAGE_PATHS;exports.urlForBeefyVaultTokens=L.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=L.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=L.urlForRegularTokenPricesInBeefy;exports.ethMainnetRegistryFixed=Te.networkRegistry;exports.arbMainnetRegistryFixed=me.networkRegistry;exports.bnbMainnetRegistryFixed=he.networkRegistry;exports.polygonRegistryFixed=Se.networkRegistry;exports.avalancheRegistryFixed=Ce.networkRegistry;exports.optimismRegistryFixed=Ee.networkRegistry;exports.baseRegistryFixed=Ie.networkRegistry;exports.ethMainnetRegistry=be.networkRegistry;exports.arbMainnetRegistry=qe.networkRegistry;exports.bnbMainnetRegistry=_e.networkRegistry;exports.polygonRegistry=ve.networkRegistry;exports.avalancheRegistry=De.networkRegistry;exports.optimismRegistry=xe.networkRegistry;exports.baseRegistry=Le.networkRegistry;exports.localhostRegistry=fe.networkRegistry;exports.PopularTokenSymbols=Fe.PopularTokenSymbols;exports.getERC20Registry=V.getERC20Registry;exports.getFixedRegistry=V.getFixedRegistry;exports.bnbMainnetData=Ue.default;exports.arbMainnetData=Me.default;exports.ethMainnetData=Oe.default;exports.optimismData=we.default;exports.polygonData=Ne.default;exports.avalancheData=Be.default;exports.baseData=Ve.default;exports.localhostData=We.default;exports.axelar1Data=He.default;exports.axelar2Data=Ge.default;exports.EthereumNetworkType=a.EthereumNetworkType;exports.chainIds=a.chainIds;exports.chainIdsByType=a.chainIdsByType;exports.crossChainAccessTokenNetworks=a.crossChainAccessTokenNetworks;exports.getNonLocalhostChainId=a.getNonLocalhostChainId;exports.isLocalNetwork=a.isLocalNetwork;exports.isOptimismBedrockLike=a.isOptimismBedrockLike;exports.isOptimismEcotoneLike=a.isOptimismEcotoneLike;exports.isOptimismLike=a.isOptimismLike;exports.localhostNetwork=a.localhostNetwork;exports.networkRegistry=a.networkRegistry;exports.HINKAL_EXTERNAL_ACTION_FEE=l.HINKAL_EXTERNAL_ACTION_FEE;exports.HINKAL_UNIVERSAL_FEE=l.HINKAL_UNIVERSAL_FEE;exports.getAmountAfterRelayAndFlatFees=l.getAmountAfterRelayAndFlatFees;exports.getAmountAfterRelayAndFlatFeesAndSlippage=l.getAmountAfterRelayAndFlatFeesAndSlippage;exports.getAmountAfterRelayFee=l.getAmountAfterRelayFee;exports.getAmountAfterSlippage=l.getAmountAfterSlippage;exports.getAmountWithoutFee=l.getAmountWithoutFee;exports.getHinkalFeeRateInBeeps=l.getHinkalFeeRateInBeeps;exports.getRelayFee=l.getRelayFee;exports.getSlippageFee=l.getSlippageFee;exports.contractMetadataMapping=k.contractMetadataMapping;exports.getHinkalParameters=k.getHinkalParameters;exports.uniswapV2PoolData=k.uniswapV2PoolData;exports.uniswapV3FactoryData=k.uniswapV3FactoryData;exports.uniswapV3PoolData=k.uniswapV3PoolData;exports.uniswapV3QuoterData=k.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=g.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=g.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=g.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=g.ReclaimPassports;exports.StandardPassports=g.StandardPassports;exports.SupportedPassports=g.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=g.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=g.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=g.supportedPassportLinks;exports.API_CONFIG=o.API_CONFIG;exports.DATA_SERVER_CONFIG=o.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=o.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=o.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=o.DATA_SERVER_URL_PRODUCTION;exports.PLAYGROUND_RELAYER_URLS=o.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=o.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=o.PLAYGROUND_URL;exports.RELAYER_CONFIG=o.RELAYER_CONFIG;exports.RELAYER_URLS=o.RELAYER_URLS;exports.SERVER_URLS=o.SERVER_URLS;exports.STAGING_RELAYER_URLS=o.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=o.STAGING_SERVER_URLS;exports.STAGING_URL=o.STAGING_URL;exports.DEPLOYMENT_MODE=p.DEPLOYMENT_MODE;exports.deploymentMode=p.deploymentMode;exports.isDevelopment=p.isDevelopment;exports.isNode=p.isNode;exports.isNotClientProduction=p.isNotClientProduction;exports.isNotProduction=p.isNotProduction;exports.isPlayground=p.isPlayground;exports.isStaging=p.isStaging;exports.isWebpack=p.isWebpack;exports.CIRCOM_P=i.CIRCOM_P;exports.CIRCOM_P_HALF=i.CIRCOM_P_HALF;exports.beefyChainIds=i.beefyChainIds;exports.crvSymbol=i.crvSymbol;exports.curveWithdrawGasTokenAddress=i.curveWithdrawGasTokenAddress;exports.curveZeroAddress=i.curveZeroAddress;exports.cvxSymbol=i.cvxSymbol;exports.ethVolatileAddress=i.ethVolatileAddress;exports.oneInchZeroAddress=i.oneInchZeroAddress;exports.ownerPublicKey=i.ownerPublicKey;exports.permitSignatureValidFor=i.permitSignatureValidFor;exports.signaturePhrase=i.signaturePhrase;exports.threePoolSymbol=i.threePoolSymbol;exports.zeroAddress=i.zeroAddress;exports.COINGECKO_API_KEY=y.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=y.CoinGeckoChainLabels;exports.coingeckoPriceUrl=y.coingeckoPriceUrl;exports.coingeckoPriceUrl2=y.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=y.coingeckoTokenListUrl;exports.getCoingeckoIdForNativeTokens=y.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=y.getCoingeckoPlatform;exports.proCoingeckoUrl=y.proCoingeckoUrl;exports.proHeader=y.proHeader;exports.AxelarRegistry=Ke.AxelarRegistry;exports.NETWORKS=W.NETWORKS;exports.getGasStationUrl=W.getGasStationUrl;exports.arbMainnetCrvCvxRegistry=R.arbMainnetCrvCvxRegistry;exports.avalancheCrvCvxRegistry=R.avalancheCrvCvxRegistry;exports.baseCrvCvxRegistry=R.baseCrvCvxRegistry;exports.ethCrvCvxRegistry=R.ethCrvCvxRegistry;exports.getCrvCvxWithChainId=R.getCrvCvxWithChainId;exports.optimismCrvCvxRegistry=R.optimismCrvCvxRegistry;exports.polygonCrvCvxRegistry=R.polygonCrvCvxRegistry;exports.getCalcTokenAmountWithDynamicArray=Ye.getCalcTokenAmountWithDynamicArray;exports.ethSymbol=u.ethSymbol;exports.lidoStEthContractAddress=u.lidoStEthContractAddress;exports.lidoStMaticAddress=u.lidoStMaticAddress;exports.lidoStakeManagerAddress=u.lidoStakeManagerAddress;exports.lidoWithdrawalQueueERC721Address=u.lidoWithdrawalQueueERC721Address;exports.lidoWstEthContractAddress=u.lidoWstEthContractAddress;exports.maticSymbol=u.maticSymbol;exports.poLidoNftAddress=u.poLidoNftAddress;exports.stMaticSymbol=u.stMaticSymbol;exports.wstEthSymbol=u.wstEthSymbol;exports.ACCESS_TOKEN_MINTING_POINTS=d.ACCESS_TOKEN_MINTING_POINTS;exports.CERTIFICATION_DISABLE_WEEK=d.CERTIFICATION_DISABLE_WEEK;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=d.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.RafflePrizePoints=d.RafflePrizePoints;exports.boostAmounts=d.boostAmounts;exports.lpLink=d.lpLink;exports.lpProgramStartWeek=d.lpProgramStartWeek;exports.pointsLink=d.pointsLink;exports.raffleProgramStartWeek=d.raffleProgramStartWeek;exports.referralLink=d.referralLink;exports.blockReorgDepth=Ze.blockReorgDepth;exports.ethBeefyRegistry=H.ethBeefyRegistry;exports.getBeefyRegistryWithChainId=H.getBeefyRegistryWithChainId;exports.arbPendleRegistry=P.arbPendleRegistry;exports.bnbPendleRegistry=P.bnbPendleRegistry;exports.ethPendleRegistry=P.ethPendleRegistry;exports.findSyAddress=P.findSyAddress;exports.getPendleRegistryWithChainId=P.getPendleRegistryWithChainId;exports.getYtTokensWithChainId=P.getYtTokensWithChainId;exports.isYtToken=P.isYtToken;exports.optimismPendleRegistry=P.optimismPendleRegistry;exports.poseidonFunction=f.poseidonFunction;exports.poseidonHash=f.poseidonHash;exports.poseidonHolder=f.poseidonHolder;exports.babyJubInstance=G.babyJubInstance;exports.jubHolder=G.jubHolder;exports.preProcessing=ze.preProcessing;exports.ValueCache=Qe.ValueCache;exports.abiDecodeUtxo=b.abiDecodeUtxo;exports.checkUtxoSignature=b.checkUtxoSignature;exports.decodeUtxo=b.decodeUtxo;exports.decodeUtxoConstructorArgs=b.decodeUtxoConstructorArgs;exports.decryptUtxo=F.decryptUtxo;exports.decryptUtxoConstructorArgs=F.decryptUtxoConstructorArgs;exports.encryptUtxo=F.encryptUtxo;exports.EncryptionKeyPairDefaultValue=K.EncryptionKeyPairDefaultValue;exports.UserKeys=K.UserKeys;exports.getCircomSign=Y.getCircomSign;exports.isCircomNegative=Y.isCircomNegative;exports.Hinkal=je.Hinkal;exports.hinkalActionBeefy=Xe.hinkalActionBeefy;exports.hinkalActionConvex=Je.hinkalActionConvex;exports.hinkalActionCurve=$e.hinkalActionCurve;exports.hinkalActionPendle=et.hinkalActionPendle;exports.hinkalDeposit=Z.hinkalDeposit;exports.hinkalDepositForOther=Z.hinkalDepositForOther;exports.hinkalSwap=tt.hinkalSwap;exports.hinkalTransfer=rt.hinkalTransfer;exports.hinkalWithdraw=ot.hinkalWithdraw;exports.hinkalPrivateWallet=it.hinkalPrivateWallet;exports.resetMerkleTrees=nt.resetMerkleTrees;exports.MerkleTree=st.MerkleTree;exports.MerkleTreeIncompleteError=at.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=ct.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=lt.AbstractCommitmentsSnapshotService;exports.AbstractNullifierSnapshotService=ut.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=dt.AbstractSnapshotService;exports.AbstractEventService=gt.AbstractEventService;exports.Utxo=pt.Utxo;exports.customTokenRegistry=yt.customTokenRegistry;exports.TokenChecker=At.TokenChecker;exports.TransactionsManager=Pt.TransactionsManager;exports.TransactionType=z.TransactionType;exports.externalActionToTransactionType=z.externalActionToTransactionType;exports.VolatileHelper=Rt.VolatileHelper;exports.MultiThreadedUtxoUtils=kt.MultiThreadedUtxoUtils;exports.FileCacheDevice=Tt.FileCacheDevice;exports.LocalStorageCacheDevice=mt.LocalStorageCacheDevice;exports.FeeOverTransactionValueError=ht.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=Q.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=Q.rethrowKnownGasErrorIfPossible;exports.UserFriendlyErrorCodes=j.UserFriendlyErrorCodes;exports.transactionErrorCodes=j.transactionErrorCodes;exports.extractMessage=X.extractMessage;exports.getErrorMessage=X.getErrorMessage;exports.checkErrorForSnapshotRestore=St.checkErrorForSnapshotRestore;exports.logError=Ct.logError;exports.ErrorCategory=Et.ErrorCategory;exports.AmTokenABI=It.abi;exports.BeefyVaultABI=bt.abi;exports.BUSDABI=qt.abi;exports.CurveReadingWrapperABI=_t.abi;exports.CurveWrappedMainPoolABI=vt.abi;exports.daiABI=Dt.abi;exports.ERC20ABI=xt.abi;exports.quoterV2ABI=Lt.abi;exports.factoryABI=ft.abi;exports.sanctionsListABI=Ft.abi;exports.USDCABI=Ut.abi;exports.USDRABI=Mt.abi;exports.USDR3CRVABI=Ot.abi;exports.USDTABI=wt.abi;exports.WETHABI=Nt.abi;exports.ISwapRouterABI=Bt.abi;exports.lidoStEthAbi=Vt;exports.lidoStMaticAbi=Wt;exports.lidoWithdrawalQueueERC721Abi=Ht;exports.poLidoNftAbi=Gt;exports.lidoWstEthAbi=Kt;exports.lidoStakeManagerAbi=Yt;exports.transactionProverABI=Zt.abi;exports.BabABI=zt.abi;exports.GalxeABI=Qt.abi;exports.optimismGasPriceOracleAbi=jt;exports.checkHinkalAccessToken=U.checkHinkalAccessToken;exports.mintAccessToken=U.mintAccessToken;exports.mintTokenCrossChain=U.mintTokenCrossChain;exports.openPassportWindow=Xt.openPassportWindow;exports.openDefaultPassportWindow=Jt.openDefaultPassportWindow;exports.absBigInt=e.absBigInt;exports.beepsToPercentage=e.beepsToPercentage;exports.bigintApplySugar=e.bigintApplySugar;exports.bigintMax=e.bigintMax;exports.calculateAmountUsingBeeps=e.calculateAmountUsingBeeps;exports.calculateSum=e.calculateSum;exports.fixDecimalsAmount=e.fixDecimalsAmount;exports.getValueFirstNDigit=e.getValueFirstNDigit;exports.minBigInt=e.minBigInt;exports.toBigInt=e.toBigInt;exports.toBigIntOrUndefined=e.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=e.toCommaSeparatedNumberString;exports.toInt=e.toInt;exports.toNumberOrUndefined=e.toNumberOrUndefined;exports.trimLeadingZeros=e.trimLeadingZeros;exports.truncateTo18DecimalPlaces=e.truncateTo18DecimalPlaces;exports.getHinkalCache=m.getHinkalCache;exports.loadTxsCache=m.loadTxsCache;exports.resetCache=m.resetCache;exports.saveTxsCache=m.saveTxsCache;exports.setHinkalCache=m.setHinkalCache;exports.createProvider=$t.createProvider;exports.decodeMetadata=h.decodeMetadata;exports.getActionFromMetadata=h.getActionFromMetadata;exports.getExternalActionIdFromNumber=h.getExternalActionIdFromNumber;exports.getExternalActionIdHash=h.getExternalActionIdHash;exports.getExternalMetadataHash=h.getExternalMetadataHash;exports.getERC20Token=M.getERC20Token;exports.getERC20TokenBySymbol=M.getERC20TokenBySymbol;exports.getHToken=M.getHToken;exports.requireEnv=er.requireEnv;exports.getSequence=O.getSequence;exports.promisify=O.promisify;exports.resolveSync=O.resolveSync;exports.convertIntegrationProviderToExternalActionId=tr.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=rr.getInteractionFromAction;exports.outputUtxoProcessing=or.outputUtxoProcessing;exports.processGasEstimates=ir.processGasEstimates;exports.processAmountChanges=nr.processAmountChanges;exports.getFlatFees=sr.getFlatFees;exports.getNetworkObject=J.getNetworkObject;exports.getNetworkType=J.getNetworkType;exports.getAxelarMigrationInfo=ar.getAxelarMigrationInfo;exports.browserSupported=$.browserSupported;exports.walletSupported=$.walletSupported;exports.decodeTxInput=q.decodeTxInput;exports.decodeTxLogs=q.decodeTxLogs;exports.deserializeDecodedTxs=q.deserializeDecodedTxs;exports.serializeDecodedTxs=q.serializeDecodedTxs;exports.reloadPage=cr.reloadPage;exports.capitalizeFirstLetter=w.capitalizeFirstLetter;exports.isNullOrEmpty=w.isNullOrEmpty;exports.toTitleCase=w.toTitleCase;exports.isNicknameValid=lr.isNicknameValid;exports.caseInsensitiveEqual=N.caseInsensitiveEqual;exports.lowerCaseIncludes=N.lowerCaseIncludes;exports.lowerCaseStartsWith=N.lowerCaseStartsWith;exports.waitLittle=ur.waitLittle;exports.patchRegistry=dr.patchRegistry;exports.createCacheDevice=gr.createCacheDevice;exports.debounce=ee.debounce;exports.wait=ee.wait;exports.calculateDollarValue=A.calculateDollarValue;exports.ethToWei=A.ethToWei;exports.getAmountInToken=A.getAmountInToken;exports.getAmountInWei=A.getAmountInWei;exports.getAmountInWeiOrZero=A.getAmountInWeiOrZero;exports.getAmountWithPrecision=A.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=A.getAmountWithPrecisionOrZero;exports.randomBigInt=A.randomBigInt;exports.toBigIntWithDecimals=A.toBigIntWithDecimals;exports.getInputUtxoAndBalance=te.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=te.getInputUtxosFromEncryptedOutputs;exports.addPaddingToUtxos=re.addPaddingToUtxos;exports.getShieldedBalance=re.getShieldedBalance;exports.getDepositEvents=oe.getDepositEvents;exports.retrieveEvents=oe.retrieveEvents;exports.balanceChangedHandler=pr.balanceChangedHandler;exports.getUniswapFee=_.getUniswapFee;exports.getUniswapPrice=_.getUniswapPrice;exports.getUniswapPriceHelper=_.getUniswapPriceHelper;exports.searchPoolAndFee=_.searchPoolAndFee;exports.getOdosPrice=yr.getOdosPrice;exports.getOneInchPrice=Ar.getOneInchPrice;exports.runContractFunction=Pr.runContractFunction;exports.constructZkProof=Rr.constructZkProof;exports.constructEmporiumProof=kr.constructEmporiumProof;exports.buildInNullifiers=c.buildInNullifiers;exports.buildOutCommitments=c.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=c.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=c.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=c.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=c.calcEncryptedOutputs;exports.calcPublicSignalCount=c.calcPublicSignalCount;exports.calcStealthAddressStructure=c.calcStealthAddressStructure;exports.createCallDataHash=c.createCallDataHash;exports.deserializeCircomData=c.deserializeCircomData;exports.serializeCircomData=c.serializeCircomData;exports.generateZkProof=Tr.generateZkProof;exports.getCRV=mr.getCRV;exports.getCVX=hr.getCVX;exports.determinePendleSwapType=S.determinePendleSwapType;exports.determinePendleSwapTypeApiRoute=S.determinePendleSwapTypeApiRoute;exports.erc20TokenFromPendleAsset=S.erc20TokenFromPendleAsset;exports.getAssetTypeFromPendleMarket=S.getAssetTypeFromPendleMarket;exports.getTokenIndexForPendleFlatFee=S.getTokenIndexForPendleFlatFee;exports.calculateStakeNullifier=C.calculateStakeNullifier;exports.createStakeCommitment=C.createStakeCommitment;exports.decryptStake=C.decryptStake;exports.encodeHStakeMetadata=C.encodeHStakeMetadata;exports.encryptStake=C.encryptStake;exports.emporiumOp=ie.emporiumOp;exports.encodeEmporiumMetadata=ie.encodeEmporiumMetadata;exports.OpType=ne.OpType;exports.produceOp=ne.produceOp;exports.dataBeefyApiConfig=se.dataBeefyApiConfig;exports.isBeefyDeposit=se.isBeefyDeposit;exports.defaultHookData=v.defaultHookData;exports.defaultHookDataArray=v.defaultHookDataArray;exports.defaultStealthAddressStructure=v.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=v.emptyStealthAddressStructure;exports.ContractType=Sr.ContractType;exports.ExternalActionId=Cr.ExternalActionId;exports.BeefyAction=n.BeefyAction;exports.ConvexAction=n.ConvexAction;exports.CurveAction=n.CurveAction;exports.EventType=n.EventType;exports.INTERACTION=n.INTERACTION;exports.IntegrationProvider=n.IntegrationProvider;exports.LidoAction=n.LidoAction;exports.LidoVariant=n.LidoVariant;exports.PendleAction=n.PendleAction;exports.PendleLPAction=n.PendleLPAction;exports.StakeProvider=n.StakeProvider;exports.VolatileAction=n.VolatileAction;exports.KycVerificationResult=E.KycVerificationResult;exports.KycVerificationStatus=E.KycVerificationStatus;exports.Passports=E.Passports;exports.VERIFICATION_TYPE=E.VERIFICATION_TYPE;exports.VerificationTypes=E.VerificationTypes;exports.ApprovalType=Er.ApprovalType;exports.SlippageType=ae.SlippageType;exports.slippageLevels=ae.slippageLevels;exports.emptyDecodedTx=Ir.emptyDecodedTx;exports.MONTHS=r.MONTHS;exports.dayInMilliseconds=r.dayInMilliseconds;exports.divideMonthOnIntervals=r.divideMonthOnIntervals;exports.getCurrentWeek=r.getCurrentWeek;exports.getDateFromWeek=r.getDateFromWeek;exports.getNextDay=r.getNextDay;exports.getWeekTimestamps=r.getWeekTimestamps;exports.hasCertificationPeriodExpired=r.hasCertificationPeriodExpired;exports.hourInMilliseconds=r.hourInMilliseconds;exports.isWeekCurrent=r.isWeekCurrent;exports.minuteInMilliseconds=r.minuteInMilliseconds;exports.parseWeek=r.parseWeek;exports.secondInMilliseconds=r.secondInMilliseconds;exports.toDateString=r.toDateString;exports.weekInMilliseconds=r.weekInMilliseconds;exports.BonusType=t.BonusType;exports.CertifyType=t.CertifyType;exports.LP_TIER=t.LP_TIER;exports.PaymentStatus=t.PaymentStatus;exports.PointType=t.PointType;exports.RafflePrizeType=t.RafflePrizeType;exports.RewardPage=t.RewardPage;exports.RewardsHistoryDistribution=t.RewardsHistoryDistribution;exports.RewardsHistoryEligibility=t.RewardsHistoryEligibility;exports.RewardsHistorySnapshots=t.RewardsHistorySnapshots;exports.RewardsHistoryStatuses=t.RewardsHistoryStatuses;exports.RewardsPageTabs=t.RewardsPageTabs;exports.TIER_LEVEL=t.TIER_LEVEL;exports.Timeline=t.Timeline;exports.emptyUserPointsBreakdown=t.emptyUserPointsBreakdown;exports.emptyUserPointsResponse=t.emptyUserPointsResponse;exports.PendleAssetType=s.PendleAssetType;exports.PendleChains=s.PendleChains;exports.PendleDashboardTabs=s.PendleDashboardTabs;exports.PendleEarnTabs=s.PendleEarnTabs;exports.PendleMarketTransactionTypes=s.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=s.PendlePoolManualTabs;exports.PendlePoolTabs=s.PendlePoolTabs;exports.PendlePoolZapTabs=s.PendlePoolZapTabs;exports.PendleSwapType=s.PendleSwapType;exports.PendleTabs=s.PendleTabs;exports.PendleTradeGeneralTabs=s.PendleTradeGeneralTabs;exports.PendleTradeTabs=s.PendleTradeTabs;exports.StatType=D.StatType;exports.UpperTabPossibleValues=D.UpperTabPossibleValues;exports.curveNetworkNames=D.curveNetworkNames;exports.curvePools=D.curvePools;exports.HinkalStakeMode=br.HinkalStakeMode;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./API/getServerURL.cjs"),I=require("./API/getCoingeckoPrice.cjs"),ce=require("./API/callOneInchAPI.cjs"),le=require("./API/callBeefyGraphAPI.cjs"),ue=require("./API/callRelayer.cjs"),de=require("./API/getAxelarGasEstimate.cjs"),ge=require("./API/getGasEstimates.cjs"),x=require("./API/getTokenPrice.cjs"),pe=require("./API/checkRisk.cjs"),ye=require("./API/relayCalls.cjs"),Ae=require("./API/API.cjs"),m=require("./API/callCurveAPI.cjs"),Pe=require("./API/getRelayerURL.cjs"),Re=require("./API/duneAPI.cjs"),ke=require("./constants/assets.constants.cjs"),L=require("./constants/token-data/tokenPricing.consts.cjs"),Te=require("./constants/token-data/ethMainnetRegistryFixed.json.cjs"),me=require("./constants/token-data/arbMainnetRegistryFixed.json.cjs"),he=require("./constants/token-data/bnbMainnetRegistryFixed.json.cjs"),Se=require("./constants/token-data/polygonRegistryFixed.json.cjs"),Ce=require("./constants/token-data/avalancheRegistryFixed.json.cjs"),Ee=require("./constants/token-data/optimismRegistryFixed.json.cjs"),Ie=require("./constants/token-data/baseRegistryFixed.json.cjs"),be=require("./constants/token-data/ethMainnetRegistry.json.cjs"),qe=require("./constants/token-data/arbMainnetRegistry.json.cjs"),_e=require("./constants/token-data/bnbMainnetRegistry.json.cjs"),ve=require("./constants/token-data/polygonRegistry.json.cjs"),De=require("./constants/token-data/avalancheRegistry.json.cjs"),xe=require("./constants/token-data/optimismRegistry.json.cjs"),Le=require("./constants/token-data/baseRegistry.json.cjs"),fe=require("./constants/token-data/localhostRegistry.json.cjs"),Fe=require("./constants/token-data/popularTokens.constants.cjs"),V=require("./constants/token-data/ERC20Registry.cjs"),Ue=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Me=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),Oe=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),we=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),Ne=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),Be=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),Ve=require("./constants/deploy-data/deploy-data-base.json.cjs"),We=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),He=require("./constants/deploy-data/deploy-data-axelar1.json.cjs"),Ge=require("./constants/deploy-data/deploy-data-axelar2.json.cjs"),a=require("./constants/chains.constants.cjs"),l=require("./constants/fees.constants.cjs"),k=require("./constants/contracts.constants.cjs"),g=require("./constants/kyc.constants.cjs"),o=require("./constants/server.constants.cjs"),p=require("./constants/vite.constants.cjs"),i=require("./constants/protocol.constants.cjs"),y=require("./constants/coingecko.constants.cjs"),Ke=require("./constants/axelar.constants.cjs"),W=require("./constants/backend.constants.cjs"),R=require("./constants/crvCvx.registry.cjs"),Ye=require("./constants/crvDynamic.registry.cjs"),u=require("./constants/lido.constants.cjs"),d=require("./constants/rewards.constants.cjs"),Ze=require("./constants/reorg-depths.constants.cjs"),H=require("./constants/beefy.registry.cjs"),P=require("./constants/pendle.registry.cjs"),f=require("./crypto/poseidon.cjs"),G=require("./crypto/babyJub.cjs"),ze=require("./crypto/preProcessing.cjs"),Qe=require("./data-structures/ValueCache/ValueCache.cjs"),b=require("./data-structures/crypto-keys/decodeUTXO.cjs"),F=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),K=require("./data-structures/crypto-keys/keys.cjs"),Y=require("./data-structures/crypto-keys/keyUtils.cjs"),je=require("./data-structures/Hinkal/Hinkal.cjs"),Xe=require("./data-structures/Hinkal/hinkalActionBeefy.cjs"),Je=require("./data-structures/Hinkal/hinkalActionConvex.cjs"),$e=require("./data-structures/Hinkal/hinkalActionCurve.cjs"),et=require("./data-structures/Hinkal/hinkalActionPendle.cjs"),Z=require("./data-structures/Hinkal/hinkalDeposit.cjs"),tt=require("./data-structures/Hinkal/hinkalSwap.cjs"),rt=require("./data-structures/Hinkal/hinkalTransfer.cjs"),ot=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),it=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),nt=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),st=require("./data-structures/merkle-tree/MerkleTree.cjs"),at=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),ct=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),lt=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),ut=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),dt=require("./data-structures/event-service/AbstractSnapshotService.cjs"),gt=require("./data-structures/event-service/AbstractEventService.cjs"),pt=require("./data-structures/utxo/Utxo.cjs"),yt=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),At=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),Pt=require("./data-structures/transactions-manager/TransactionsManager.cjs"),z=require("./data-structures/transactions-manager/history/history.types.cjs"),Rt=require("./data-structures/volatile-helper/VolatileHelper.cjs"),kt=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),Tt=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),mt=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),ht=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),Q=require("./error-handling/customErrors/customErrors.helpers.cjs"),j=require("./error-handling/error-codes.constants.cjs"),X=require("./error-handling/get-error.message.cjs"),St=require("./error-handling/handleErrorRestore.cjs"),Ct=require("./error-handling/logError.cjs"),Et=require("./error-handling/types.cjs"),It=require("./externalABIs/amToken.cjs"),bt=require("./externalABIs/BeefyVaultAbi.json.cjs"),qt=require("./externalABIs/BUSD.cjs"),_t=require("./externalABIs/CurveReadingWrapperAbi.json.cjs"),vt=require("./externalABIs/CurveWrappedMainPool.json.cjs"),Dt=require("./externalABIs/DAI.cjs"),xt=require("./externalABIs/ERC20.json.cjs"),Lt=require("./externalABIs/IQuoterV2.json.cjs"),ft=require("./externalABIs/IUniswapV3Factory.json.cjs"),Ft=require("./externalABIs/SanctionsList.cjs"),Ut=require("./externalABIs/USDC.cjs"),Mt=require("./externalABIs/USDR.cjs"),Ot=require("./externalABIs/USDR3CRV.cjs"),wt=require("./externalABIs/USDT.cjs"),Nt=require("./externalABIs/WETH.cjs"),Bt=require("./externalABIs/ISwapRouter.json.cjs"),Vt=require("./externalABIs/LidoStEthAbi.json.cjs"),Wt=require("./externalABIs/LidoStMaticAbi.json.cjs"),Ht=require("./externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),Gt=require("./externalABIs/PoLidoNftAbi.json.cjs"),Kt=require("./externalABIs/LidoWstEthAbi.json.cjs"),Yt=require("./externalABIs/LidoStakeManagerAbi.json.cjs"),Zt=require("./externalABIs/transactionsProver.json.cjs"),zt=require("./externalABIs/BabPassport.json.cjs"),Qt=require("./externalABIs/GalxePassport.json.cjs"),jt=require("./externalABIs/OptimismGasPriceOracle.json.cjs"),U=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),Xt=require("./functions/kyc/passportHelper.cjs"),Jt=require("./functions/kyc/openDefaultPassportWindow.cjs"),e=require("./functions/utils/amounts.utils.cjs"),T=require("./functions/utils/cacheFunctions.cjs"),$t=require("./functions/utils/create-provider.cjs"),h=require("./functions/utils/external-action.utils.cjs"),M=require("./functions/utils/erc20tokenFunctions.cjs"),er=require("./functions/utils/requireEnv.cjs"),O=require("./functions/utils/resolve-sync.utils.cjs"),tr=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),rr=require("./functions/pre-transaction/interaction-to-action.cjs"),or=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),ir=require("./functions/pre-transaction/process-gas-estimates.cjs"),nr=require("./functions/pre-transaction/processAmountChanges.cjs"),sr=require("./functions/pre-transaction/getFlatFees.cjs"),J=require("./functions/utils/evmNetworkFunctions.cjs"),ar=require("./functions/utils/axelar.utils.cjs"),$=require("./functions/utils/userAgent.cjs"),q=require("./functions/utils/getDataFromTransaction.cjs"),cr=require("./functions/utils/reloadPage.cjs"),w=require("./functions/utils/string.utils.cjs"),lr=require("./functions/utils/nickname.utils.cjs"),N=require("./functions/utils/caseInsensitive.utils.cjs"),ur=require("./functions/utils/time.utils.cjs"),dr=require("./functions/utils/volatile-patcher.utils.cjs"),gr=require("./functions/utils/cacheDevice.utils.cjs"),ee=require("./functions/utils/process.utils.cjs"),A=require("./functions/web3/etherFunctions.cjs"),te=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),re=require("./functions/web3/events/getShieldedBalance.cjs"),oe=require("./functions/web3/events/web3RetrieveEvents.cjs"),pr=require("./functions/web3/events/balanceChangedHandler.cjs"),_=require("./functions/web3/uniswapAPI.cjs"),yr=require("./functions/web3/odosAPI.cjs"),Ar=require("./functions/web3/oneInchAPI.cjs"),Pr=require("./functions/web3/runContractFunction.cjs"),Rr=require("./functions/snarkjs/constructGeneralZkProof.cjs"),kr=require("./functions/snarkjs/constructEmporiumProof.cjs"),c=require("./functions/snarkjs/common.snarkjs.cjs"),Tr=require("./functions/snarkjs/generateZkProof.cjs"),mr=require("./functions/protocols/curve.protocols.cjs"),hr=require("./functions/protocols/convex.protocols.cjs"),S=require("./functions/protocols/pendle.helpers.cjs"),C=require("./functions/staking/index.cjs"),ie=require("./functions/private-wallet/emporium.helpers.cjs"),ne=require("./functions/private-wallet/opProducer.cjs"),se=require("./types/beefy.types.cjs"),v=require("./types/circom-data.types.cjs"),Sr=require("./types/ethereum-network.types.cjs"),Cr=require("./types/external-action.types.cjs"),n=require("./types/hinkal.types.cjs"),E=require("./types/kyc.types.cjs"),Er=require("./types/token.types.cjs"),ae=require("./types/slippage.types.cjs"),Ir=require("./types/transactions.types.cjs"),r=require("./types/time.types.cjs"),t=require("./types/rewards.types.cjs"),s=require("./types/pendle.types.cjs"),D=require("./types/curve.types.cjs"),br=require("./types/hinkal.stake.types.cjs");exports.getDataServerURL=B.getDataServerURL;exports.getServerURL=B.getServerURL;exports.getCoingeckoPrice=I.getCoingeckoPrice;exports.getCoingeckoPrice2=I.getCoingeckoPrice2;exports.getCoingeckoPrices=I.getCoingeckoPrices;exports.getCoingeckoTokenList=I.getCoingeckoTokenList;exports.callOneInchAPI=ce.callOneInchAPI;exports.getBeefyHistoricalChartData=le.getBeefyHistoricalChartData;exports.callRelayerTransactAPI=ue.callRelayerTransactAPI;exports.getAxelarGasEstimate=de.getAxelarGasEstimate;exports.getGasEstimates=ge.getGasEstimates;exports.getTokenPrice=x.getTokenPrice;exports.getTokenPriceEth=x.getTokenPriceEth;exports.getTokenPrices=x.getTokenPrices;exports.checkRisk=pe.checkRisk;exports.getIdleRelay=ye.getIdleRelay;exports.API=Ae.API;exports.getCurvePools=m.getCurvePools;exports.getCurvePoolsforPriceFetching=m.getCurvePoolsforPriceFetching;exports.getExtendedPoolInfo=m.getExtendedPoolInfo;exports.lpTokens=m.lpTokens;exports.lpTokensToBasePool=m.lpTokensToBasePool;exports.getRelayerURL=Pe.getRelayerURL;exports.getPublicWalletBalance=Re.getPublicWalletBalance;exports.IMAGE_PATHS=ke.IMAGE_PATHS;exports.urlForBeefyVaultTokens=L.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=L.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=L.urlForRegularTokenPricesInBeefy;exports.ethMainnetRegistryFixed=Te.networkRegistry;exports.arbMainnetRegistryFixed=me.networkRegistry;exports.bnbMainnetRegistryFixed=he.networkRegistry;exports.polygonRegistryFixed=Se.networkRegistry;exports.avalancheRegistryFixed=Ce.networkRegistry;exports.optimismRegistryFixed=Ee.networkRegistry;exports.baseRegistryFixed=Ie.networkRegistry;exports.ethMainnetRegistry=be.networkRegistry;exports.arbMainnetRegistry=qe.networkRegistry;exports.bnbMainnetRegistry=_e.networkRegistry;exports.polygonRegistry=ve.networkRegistry;exports.avalancheRegistry=De.networkRegistry;exports.optimismRegistry=xe.networkRegistry;exports.baseRegistry=Le.networkRegistry;exports.localhostRegistry=fe.networkRegistry;exports.PopularTokenSymbols=Fe.PopularTokenSymbols;exports.getERC20Registry=V.getERC20Registry;exports.getFixedRegistry=V.getFixedRegistry;exports.bnbMainnetData=Ue.default;exports.arbMainnetData=Me.default;exports.ethMainnetData=Oe.default;exports.optimismData=we.default;exports.polygonData=Ne.default;exports.avalancheData=Be.default;exports.baseData=Ve.default;exports.localhostData=We.default;exports.axelar1Data=He.default;exports.axelar2Data=Ge.default;exports.EthereumNetworkType=a.EthereumNetworkType;exports.chainIds=a.chainIds;exports.chainIdsByType=a.chainIdsByType;exports.crossChainAccessTokenNetworks=a.crossChainAccessTokenNetworks;exports.getNonLocalhostChainId=a.getNonLocalhostChainId;exports.isLocalNetwork=a.isLocalNetwork;exports.isOptimismBedrockLike=a.isOptimismBedrockLike;exports.isOptimismEcotoneLike=a.isOptimismEcotoneLike;exports.isOptimismLike=a.isOptimismLike;exports.localhostNetwork=a.localhostNetwork;exports.networkRegistry=a.networkRegistry;exports.HINKAL_EXTERNAL_ACTION_FEE=l.HINKAL_EXTERNAL_ACTION_FEE;exports.HINKAL_UNIVERSAL_FEE=l.HINKAL_UNIVERSAL_FEE;exports.getAmountAfterRelayAndFlatFees=l.getAmountAfterRelayAndFlatFees;exports.getAmountAfterRelayAndFlatFeesAndSlippage=l.getAmountAfterRelayAndFlatFeesAndSlippage;exports.getAmountAfterRelayFee=l.getAmountAfterRelayFee;exports.getAmountAfterSlippage=l.getAmountAfterSlippage;exports.getAmountWithoutFee=l.getAmountWithoutFee;exports.getHinkalFeeRateInBeeps=l.getHinkalFeeRateInBeeps;exports.getRelayFee=l.getRelayFee;exports.getSlippageFee=l.getSlippageFee;exports.contractMetadataMapping=k.contractMetadataMapping;exports.getHinkalParameters=k.getHinkalParameters;exports.uniswapV2PoolData=k.uniswapV2PoolData;exports.uniswapV3FactoryData=k.uniswapV3FactoryData;exports.uniswapV3PoolData=k.uniswapV3PoolData;exports.uniswapV3QuoterData=k.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=g.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=g.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=g.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=g.ReclaimPassports;exports.StandardPassports=g.StandardPassports;exports.SupportedPassports=g.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=g.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=g.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=g.supportedPassportLinks;exports.API_CONFIG=o.API_CONFIG;exports.DATA_SERVER_CONFIG=o.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=o.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=o.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=o.DATA_SERVER_URL_PRODUCTION;exports.PLAYGROUND_RELAYER_URLS=o.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=o.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=o.PLAYGROUND_URL;exports.RELAYER_CONFIG=o.RELAYER_CONFIG;exports.RELAYER_URLS=o.RELAYER_URLS;exports.SERVER_URLS=o.SERVER_URLS;exports.STAGING_RELAYER_URLS=o.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=o.STAGING_SERVER_URLS;exports.STAGING_URL=o.STAGING_URL;exports.DEPLOYMENT_MODE=p.DEPLOYMENT_MODE;exports.deploymentMode=p.deploymentMode;exports.isDevelopment=p.isDevelopment;exports.isNode=p.isNode;exports.isNotClientProduction=p.isNotClientProduction;exports.isNotProduction=p.isNotProduction;exports.isPlayground=p.isPlayground;exports.isStaging=p.isStaging;exports.isWebpack=p.isWebpack;exports.CIRCOM_P=i.CIRCOM_P;exports.CIRCOM_P_HALF=i.CIRCOM_P_HALF;exports.beefyChainIds=i.beefyChainIds;exports.crvSymbol=i.crvSymbol;exports.curveWithdrawGasTokenAddress=i.curveWithdrawGasTokenAddress;exports.curveZeroAddress=i.curveZeroAddress;exports.cvxSymbol=i.cvxSymbol;exports.ethVolatileAddress=i.ethVolatileAddress;exports.oneInchZeroAddress=i.oneInchZeroAddress;exports.ownerPublicKey=i.ownerPublicKey;exports.permitSignatureValidFor=i.permitSignatureValidFor;exports.signaturePhrase=i.signaturePhrase;exports.threePoolSymbol=i.threePoolSymbol;exports.zeroAddress=i.zeroAddress;exports.COINGECKO_API_KEY=y.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=y.CoinGeckoChainLabels;exports.coingeckoPriceUrl=y.coingeckoPriceUrl;exports.coingeckoPriceUrl2=y.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=y.coingeckoTokenListUrl;exports.getCoingeckoIdForNativeTokens=y.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=y.getCoingeckoPlatform;exports.proCoingeckoUrl=y.proCoingeckoUrl;exports.proHeader=y.proHeader;exports.AxelarRegistry=Ke.AxelarRegistry;exports.NETWORKS=W.NETWORKS;exports.getGasStationUrl=W.getGasStationUrl;exports.arbMainnetCrvCvxRegistry=R.arbMainnetCrvCvxRegistry;exports.avalancheCrvCvxRegistry=R.avalancheCrvCvxRegistry;exports.baseCrvCvxRegistry=R.baseCrvCvxRegistry;exports.ethCrvCvxRegistry=R.ethCrvCvxRegistry;exports.getCrvCvxWithChainId=R.getCrvCvxWithChainId;exports.optimismCrvCvxRegistry=R.optimismCrvCvxRegistry;exports.polygonCrvCvxRegistry=R.polygonCrvCvxRegistry;exports.getCalcTokenAmountWithDynamicArray=Ye.getCalcTokenAmountWithDynamicArray;exports.ethSymbol=u.ethSymbol;exports.lidoStEthContractAddress=u.lidoStEthContractAddress;exports.lidoStMaticAddress=u.lidoStMaticAddress;exports.lidoStakeManagerAddress=u.lidoStakeManagerAddress;exports.lidoWithdrawalQueueERC721Address=u.lidoWithdrawalQueueERC721Address;exports.lidoWstEthContractAddress=u.lidoWstEthContractAddress;exports.maticSymbol=u.maticSymbol;exports.poLidoNftAddress=u.poLidoNftAddress;exports.stMaticSymbol=u.stMaticSymbol;exports.wstEthSymbol=u.wstEthSymbol;exports.ACCESS_TOKEN_MINTING_POINTS=d.ACCESS_TOKEN_MINTING_POINTS;exports.CERTIFICATION_DISABLE_WEEK=d.CERTIFICATION_DISABLE_WEEK;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=d.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.RafflePrizePoints=d.RafflePrizePoints;exports.boostAmounts=d.boostAmounts;exports.lpLink=d.lpLink;exports.lpProgramStartWeek=d.lpProgramStartWeek;exports.pointsLink=d.pointsLink;exports.raffleProgramStartWeek=d.raffleProgramStartWeek;exports.referralLink=d.referralLink;exports.blockReorgDepth=Ze.blockReorgDepth;exports.ethBeefyRegistry=H.ethBeefyRegistry;exports.getBeefyRegistryWithChainId=H.getBeefyRegistryWithChainId;exports.arbPendleRegistry=P.arbPendleRegistry;exports.bnbPendleRegistry=P.bnbPendleRegistry;exports.ethPendleRegistry=P.ethPendleRegistry;exports.findSyAddress=P.findSyAddress;exports.getPendleRegistryWithChainId=P.getPendleRegistryWithChainId;exports.getYtTokensWithChainId=P.getYtTokensWithChainId;exports.isYtToken=P.isYtToken;exports.optimismPendleRegistry=P.optimismPendleRegistry;exports.poseidonFunction=f.poseidonFunction;exports.poseidonHash=f.poseidonHash;exports.poseidonHolder=f.poseidonHolder;exports.babyJubInstance=G.babyJubInstance;exports.jubHolder=G.jubHolder;exports.preProcessing=ze.preProcessing;exports.ValueCache=Qe.ValueCache;exports.abiDecodeUtxo=b.abiDecodeUtxo;exports.checkUtxoSignature=b.checkUtxoSignature;exports.decodeUtxo=b.decodeUtxo;exports.decodeUtxoConstructorArgs=b.decodeUtxoConstructorArgs;exports.decryptUtxo=F.decryptUtxo;exports.decryptUtxoConstructorArgs=F.decryptUtxoConstructorArgs;exports.encryptUtxo=F.encryptUtxo;exports.EncryptionKeyPairDefaultValue=K.EncryptionKeyPairDefaultValue;exports.UserKeys=K.UserKeys;exports.getCircomSign=Y.getCircomSign;exports.isCircomNegative=Y.isCircomNegative;exports.Hinkal=je.Hinkal;exports.hinkalActionBeefy=Xe.hinkalActionBeefy;exports.hinkalActionConvex=Je.hinkalActionConvex;exports.hinkalActionCurve=$e.hinkalActionCurve;exports.hinkalActionPendle=et.hinkalActionPendle;exports.hinkalDeposit=Z.hinkalDeposit;exports.hinkalDepositForOther=Z.hinkalDepositForOther;exports.hinkalSwap=tt.hinkalSwap;exports.hinkalTransfer=rt.hinkalTransfer;exports.hinkalWithdraw=ot.hinkalWithdraw;exports.hinkalPrivateWallet=it.hinkalPrivateWallet;exports.resetMerkleTrees=nt.resetMerkleTrees;exports.MerkleTree=st.MerkleTree;exports.MerkleTreeIncompleteError=at.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=ct.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=lt.AbstractCommitmentsSnapshotService;exports.AbstractNullifierSnapshotService=ut.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=dt.AbstractSnapshotService;exports.AbstractEventService=gt.AbstractEventService;exports.Utxo=pt.Utxo;exports.customTokenRegistry=yt.customTokenRegistry;exports.TokenChecker=At.TokenChecker;exports.TransactionsManager=Pt.TransactionsManager;exports.TransactionType=z.TransactionType;exports.externalActionToTransactionType=z.externalActionToTransactionType;exports.VolatileHelper=Rt.VolatileHelper;exports.MultiThreadedUtxoUtils=kt.MultiThreadedUtxoUtils;exports.FileCacheDevice=Tt.FileCacheDevice;exports.LocalStorageCacheDevice=mt.LocalStorageCacheDevice;exports.FeeOverTransactionValueError=ht.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=Q.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=Q.rethrowKnownGasErrorIfPossible;exports.UserFriendlyErrorCodes=j.UserFriendlyErrorCodes;exports.transactionErrorCodes=j.transactionErrorCodes;exports.extractMessage=X.extractMessage;exports.getErrorMessage=X.getErrorMessage;exports.checkErrorForSnapshotRestore=St.checkErrorForSnapshotRestore;exports.logError=Ct.logError;exports.ErrorCategory=Et.ErrorCategory;exports.AmTokenABI=It.abi;exports.BeefyVaultABI=bt.abi;exports.BUSDABI=qt.abi;exports.CurveReadingWrapperABI=_t.abi;exports.CurveWrappedMainPoolABI=vt.abi;exports.daiABI=Dt.abi;exports.ERC20ABI=xt.abi;exports.quoterV2ABI=Lt.abi;exports.factoryABI=ft.abi;exports.sanctionsListABI=Ft.abi;exports.USDCABI=Ut.abi;exports.USDRABI=Mt.abi;exports.USDR3CRVABI=Ot.abi;exports.USDTABI=wt.abi;exports.WETHABI=Nt.abi;exports.ISwapRouterABI=Bt.abi;exports.lidoStEthAbi=Vt;exports.lidoStMaticAbi=Wt;exports.lidoWithdrawalQueueERC721Abi=Ht;exports.poLidoNftAbi=Gt;exports.lidoWstEthAbi=Kt;exports.lidoStakeManagerAbi=Yt;exports.transactionProverABI=Zt.abi;exports.BabABI=zt.abi;exports.GalxeABI=Qt.abi;exports.optimismGasPriceOracleAbi=jt;exports.checkHinkalAccessToken=U.checkHinkalAccessToken;exports.mintAccessToken=U.mintAccessToken;exports.mintTokenCrossChain=U.mintTokenCrossChain;exports.openPassportWindow=Xt.openPassportWindow;exports.openDefaultPassportWindow=Jt.openDefaultPassportWindow;exports.absBigInt=e.absBigInt;exports.beepsToPercentage=e.beepsToPercentage;exports.bigintApplySugar=e.bigintApplySugar;exports.bigintMax=e.bigintMax;exports.calculateAmountUsingBeeps=e.calculateAmountUsingBeeps;exports.calculateSum=e.calculateSum;exports.fixDecimalsAmount=e.fixDecimalsAmount;exports.getValueFirstNDigit=e.getValueFirstNDigit;exports.minBigInt=e.minBigInt;exports.toBigInt=e.toBigInt;exports.toBigIntOrUndefined=e.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=e.toCommaSeparatedNumberString;exports.toInt=e.toInt;exports.toNumberOrUndefined=e.toNumberOrUndefined;exports.trimLeadingZeros=e.trimLeadingZeros;exports.truncateTo18DecimalPlaces=e.truncateTo18DecimalPlaces;exports.getFilePath=T.getFilePath;exports.getHinkalCache=T.getHinkalCache;exports.loadTxsCache=T.loadTxsCache;exports.resetCache=T.resetCache;exports.saveTxsCache=T.saveTxsCache;exports.setHinkalCache=T.setHinkalCache;exports.createProvider=$t.createProvider;exports.decodeMetadata=h.decodeMetadata;exports.getActionFromMetadata=h.getActionFromMetadata;exports.getExternalActionIdFromNumber=h.getExternalActionIdFromNumber;exports.getExternalActionIdHash=h.getExternalActionIdHash;exports.getExternalMetadataHash=h.getExternalMetadataHash;exports.getERC20Token=M.getERC20Token;exports.getERC20TokenBySymbol=M.getERC20TokenBySymbol;exports.getHToken=M.getHToken;exports.requireEnv=er.requireEnv;exports.getSequence=O.getSequence;exports.promisify=O.promisify;exports.resolveSync=O.resolveSync;exports.convertIntegrationProviderToExternalActionId=tr.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=rr.getInteractionFromAction;exports.outputUtxoProcessing=or.outputUtxoProcessing;exports.processGasEstimates=ir.processGasEstimates;exports.processAmountChanges=nr.processAmountChanges;exports.getFlatFees=sr.getFlatFees;exports.getNetworkObject=J.getNetworkObject;exports.getNetworkType=J.getNetworkType;exports.getAxelarMigrationInfo=ar.getAxelarMigrationInfo;exports.browserSupported=$.browserSupported;exports.walletSupported=$.walletSupported;exports.decodeTxInput=q.decodeTxInput;exports.decodeTxLogs=q.decodeTxLogs;exports.deserializeDecodedTxs=q.deserializeDecodedTxs;exports.serializeDecodedTxs=q.serializeDecodedTxs;exports.reloadPage=cr.reloadPage;exports.capitalizeFirstLetter=w.capitalizeFirstLetter;exports.isNullOrEmpty=w.isNullOrEmpty;exports.toTitleCase=w.toTitleCase;exports.isNicknameValid=lr.isNicknameValid;exports.caseInsensitiveEqual=N.caseInsensitiveEqual;exports.lowerCaseIncludes=N.lowerCaseIncludes;exports.lowerCaseStartsWith=N.lowerCaseStartsWith;exports.waitLittle=ur.waitLittle;exports.patchRegistry=dr.patchRegistry;exports.createCacheDevice=gr.createCacheDevice;exports.debounce=ee.debounce;exports.wait=ee.wait;exports.calculateDollarValue=A.calculateDollarValue;exports.ethToWei=A.ethToWei;exports.getAmountInToken=A.getAmountInToken;exports.getAmountInWei=A.getAmountInWei;exports.getAmountInWeiOrZero=A.getAmountInWeiOrZero;exports.getAmountWithPrecision=A.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=A.getAmountWithPrecisionOrZero;exports.randomBigInt=A.randomBigInt;exports.toBigIntWithDecimals=A.toBigIntWithDecimals;exports.getInputUtxoAndBalance=te.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=te.getInputUtxosFromEncryptedOutputs;exports.addPaddingToUtxos=re.addPaddingToUtxos;exports.getShieldedBalance=re.getShieldedBalance;exports.getDepositEvents=oe.getDepositEvents;exports.retrieveEvents=oe.retrieveEvents;exports.balanceChangedHandler=pr.balanceChangedHandler;exports.getUniswapFee=_.getUniswapFee;exports.getUniswapPrice=_.getUniswapPrice;exports.getUniswapPriceHelper=_.getUniswapPriceHelper;exports.searchPoolAndFee=_.searchPoolAndFee;exports.getOdosPrice=yr.getOdosPrice;exports.getOneInchPrice=Ar.getOneInchPrice;exports.runContractFunction=Pr.runContractFunction;exports.constructZkProof=Rr.constructZkProof;exports.constructEmporiumProof=kr.constructEmporiumProof;exports.buildInNullifiers=c.buildInNullifiers;exports.buildOutCommitments=c.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=c.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=c.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=c.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=c.calcEncryptedOutputs;exports.calcPublicSignalCount=c.calcPublicSignalCount;exports.calcStealthAddressStructure=c.calcStealthAddressStructure;exports.createCallDataHash=c.createCallDataHash;exports.deserializeCircomData=c.deserializeCircomData;exports.serializeCircomData=c.serializeCircomData;exports.generateZkProof=Tr.generateZkProof;exports.getCRV=mr.getCRV;exports.getCVX=hr.getCVX;exports.determinePendleSwapType=S.determinePendleSwapType;exports.determinePendleSwapTypeApiRoute=S.determinePendleSwapTypeApiRoute;exports.erc20TokenFromPendleAsset=S.erc20TokenFromPendleAsset;exports.getAssetTypeFromPendleMarket=S.getAssetTypeFromPendleMarket;exports.getTokenIndexForPendleFlatFee=S.getTokenIndexForPendleFlatFee;exports.calculateStakeNullifier=C.calculateStakeNullifier;exports.createStakeCommitment=C.createStakeCommitment;exports.decryptStake=C.decryptStake;exports.encodeHStakeMetadata=C.encodeHStakeMetadata;exports.encryptStake=C.encryptStake;exports.emporiumOp=ie.emporiumOp;exports.encodeEmporiumMetadata=ie.encodeEmporiumMetadata;exports.OpType=ne.OpType;exports.produceOp=ne.produceOp;exports.dataBeefyApiConfig=se.dataBeefyApiConfig;exports.isBeefyDeposit=se.isBeefyDeposit;exports.defaultHookData=v.defaultHookData;exports.defaultHookDataArray=v.defaultHookDataArray;exports.defaultStealthAddressStructure=v.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=v.emptyStealthAddressStructure;exports.ContractType=Sr.ContractType;exports.ExternalActionId=Cr.ExternalActionId;exports.BeefyAction=n.BeefyAction;exports.ConvexAction=n.ConvexAction;exports.CurveAction=n.CurveAction;exports.EventType=n.EventType;exports.INTERACTION=n.INTERACTION;exports.IntegrationProvider=n.IntegrationProvider;exports.LidoAction=n.LidoAction;exports.LidoVariant=n.LidoVariant;exports.PendleAction=n.PendleAction;exports.PendleLPAction=n.PendleLPAction;exports.StakeProvider=n.StakeProvider;exports.VolatileAction=n.VolatileAction;exports.KycVerificationResult=E.KycVerificationResult;exports.KycVerificationStatus=E.KycVerificationStatus;exports.Passports=E.Passports;exports.VERIFICATION_TYPE=E.VERIFICATION_TYPE;exports.VerificationTypes=E.VerificationTypes;exports.ApprovalType=Er.ApprovalType;exports.SlippageType=ae.SlippageType;exports.slippageLevels=ae.slippageLevels;exports.emptyDecodedTx=Ir.emptyDecodedTx;exports.MONTHS=r.MONTHS;exports.dayInMilliseconds=r.dayInMilliseconds;exports.divideMonthOnIntervals=r.divideMonthOnIntervals;exports.getCurrentWeek=r.getCurrentWeek;exports.getDateFromWeek=r.getDateFromWeek;exports.getNextDay=r.getNextDay;exports.getWeekTimestamps=r.getWeekTimestamps;exports.hasCertificationPeriodExpired=r.hasCertificationPeriodExpired;exports.hourInMilliseconds=r.hourInMilliseconds;exports.isWeekCurrent=r.isWeekCurrent;exports.minuteInMilliseconds=r.minuteInMilliseconds;exports.parseWeek=r.parseWeek;exports.secondInMilliseconds=r.secondInMilliseconds;exports.toDateString=r.toDateString;exports.weekInMilliseconds=r.weekInMilliseconds;exports.BonusType=t.BonusType;exports.CertifyType=t.CertifyType;exports.LP_TIER=t.LP_TIER;exports.PaymentStatus=t.PaymentStatus;exports.PointType=t.PointType;exports.RafflePrizeType=t.RafflePrizeType;exports.RewardPage=t.RewardPage;exports.RewardsHistoryDistribution=t.RewardsHistoryDistribution;exports.RewardsHistoryEligibility=t.RewardsHistoryEligibility;exports.RewardsHistorySnapshots=t.RewardsHistorySnapshots;exports.RewardsHistoryStatuses=t.RewardsHistoryStatuses;exports.RewardsPageTabs=t.RewardsPageTabs;exports.TIER_LEVEL=t.TIER_LEVEL;exports.Timeline=t.Timeline;exports.emptyUserPointsBreakdown=t.emptyUserPointsBreakdown;exports.emptyUserPointsResponse=t.emptyUserPointsResponse;exports.PendleAssetType=s.PendleAssetType;exports.PendleChains=s.PendleChains;exports.PendleDashboardTabs=s.PendleDashboardTabs;exports.PendleEarnTabs=s.PendleEarnTabs;exports.PendleMarketTransactionTypes=s.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=s.PendlePoolManualTabs;exports.PendlePoolTabs=s.PendlePoolTabs;exports.PendlePoolZapTabs=s.PendlePoolZapTabs;exports.PendleSwapType=s.PendleSwapType;exports.PendleTabs=s.PendleTabs;exports.PendleTradeGeneralTabs=s.PendleTradeGeneralTabs;exports.PendleTradeTabs=s.PendleTradeTabs;exports.StatType=D.StatType;exports.UpperTabPossibleValues=D.UpperTabPossibleValues;exports.curveNetworkNames=D.curveNetworkNames;exports.curvePools=D.curvePools;exports.HinkalStakeMode=br.HinkalStakeMode;
|
package/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { getBeefyHistoricalChartData as c } from "./API/callBeefyGraphAPI.mjs";
|
|
|
5
5
|
import { callRelayerTransactAPI as x } from "./API/callRelayer.mjs";
|
|
6
6
|
import { getAxelarGasEstimate as A } from "./API/getAxelarGasEstimate.mjs";
|
|
7
7
|
import { getGasEstimates as y } from "./API/getGasEstimates.mjs";
|
|
8
|
-
import { getTokenPrice as
|
|
8
|
+
import { getTokenPrice as P, getTokenPriceEth as T, getTokenPrices as k } from "./API/getTokenPrice.mjs";
|
|
9
9
|
import { checkRisk as C } from "./API/checkRisk.mjs";
|
|
10
10
|
import { getIdleRelay as E } from "./API/relayCalls.mjs";
|
|
11
11
|
import { API as b } from "./API/API.mjs";
|
|
@@ -28,7 +28,7 @@ import { networkRegistry as ce } from "./constants/token-data/polygonRegistry.js
|
|
|
28
28
|
import { networkRegistry as xe } from "./constants/token-data/avalancheRegistry.json.mjs";
|
|
29
29
|
import { networkRegistry as Ae } from "./constants/token-data/optimismRegistry.json.mjs";
|
|
30
30
|
import { networkRegistry as ye } from "./constants/token-data/baseRegistry.json.mjs";
|
|
31
|
-
import { networkRegistry as
|
|
31
|
+
import { networkRegistry as Pe } from "./constants/token-data/localhostRegistry.json.mjs";
|
|
32
32
|
import { PopularTokenSymbols as ke } from "./constants/token-data/popularTokens.constants.mjs";
|
|
33
33
|
import { getERC20Registry as Ce, getFixedRegistry as Ie } from "./constants/token-data/ERC20Registry.mjs";
|
|
34
34
|
import { default as he } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
@@ -43,12 +43,12 @@ import { default as Ge } from "./constants/deploy-data/deploy-data-axelar1.json.
|
|
|
43
43
|
import { default as Ye } from "./constants/deploy-data/deploy-data-axelar2.json.mjs";
|
|
44
44
|
import { EthereumNetworkType as Ze, chainIds as qe, chainIdsByType as Qe, crossChainAccessTokenNetworks as je, getNonLocalhostChainId as Xe, isLocalNetwork as Je, isOptimismBedrockLike as $e, isOptimismEcotoneLike as er, isOptimismLike as rr, localhostNetwork as or, networkRegistry as tr } from "./constants/chains.constants.mjs";
|
|
45
45
|
import { HINKAL_EXTERNAL_ACTION_FEE as ir, HINKAL_UNIVERSAL_FEE as sr, getAmountAfterRelayAndFlatFees as nr, getAmountAfterRelayAndFlatFeesAndSlippage as pr, getAmountAfterRelayFee as mr, getAmountAfterSlippage as lr, getAmountWithoutFee as fr, getHinkalFeeRateInBeeps as cr, getRelayFee as dr, getSlippageFee as xr } from "./constants/fees.constants.mjs";
|
|
46
|
-
import { contractMetadataMapping as Ar, getHinkalParameters as ur, uniswapV2PoolData as yr, uniswapV3FactoryData as Rr, uniswapV3PoolData as
|
|
46
|
+
import { contractMetadataMapping as Ar, getHinkalParameters as ur, uniswapV2PoolData as yr, uniswapV3FactoryData as Rr, uniswapV3PoolData as Pr, uniswapV3QuoterData as Tr } from "./constants/contracts.constants.mjs";
|
|
47
47
|
import { AIPRISE_KYB_TEMPLATE_ID_PROD as Sr, AIPRISE_KYC_TEMPLATE_ID_PROD as Cr, RECLAIM_MESSAGE_TO_SIGN as Ir, ReclaimPassports as Er, StandardPassports as hr, SupportedPassports as br, aipriseBaseOnboardingProductionUrl as Dr, aipriseBaseOnboardingSandboxUrl as vr, supportedPassportLinks as Lr } from "./constants/kyc.constants.mjs";
|
|
48
48
|
import { API_CONFIG as _r, DATA_SERVER_CONFIG as Fr, DATA_SERVER_PORT as Mr, DATA_SERVER_URL_LOCAL as Ur, DATA_SERVER_URL_PRODUCTION as Br, PLAYGROUND_RELAYER_URLS as Nr, PLAYGROUND_SERVER_URLS as Or, PLAYGROUND_URL as Vr, RELAYER_CONFIG as Wr, RELAYER_URLS as Hr, SERVER_URLS as Gr, STAGING_RELAYER_URLS as Kr, STAGING_SERVER_URLS as Yr, STAGING_URL as zr } from "./constants/server.constants.mjs";
|
|
49
49
|
import { DEPLOYMENT_MODE as qr, deploymentMode as Qr, isDevelopment as jr, isNode as Xr, isNotClientProduction as Jr, isNotProduction as $r, isPlayground as eo, isStaging as ro, isWebpack as oo } from "./constants/vite.constants.mjs";
|
|
50
50
|
import { CIRCOM_P as ao, CIRCOM_P_HALF as io, beefyChainIds as so, crvSymbol as no, curveWithdrawGasTokenAddress as po, curveZeroAddress as mo, cvxSymbol as lo, ethVolatileAddress as fo, oneInchZeroAddress as co, ownerPublicKey as xo, permitSignatureValidFor as go, signaturePhrase as Ao, threePoolSymbol as uo, zeroAddress as yo } from "./constants/protocol.constants.mjs";
|
|
51
|
-
import { COINGECKO_API_KEY as
|
|
51
|
+
import { COINGECKO_API_KEY as Po, CoinGeckoChainLabels as To, coingeckoPriceUrl as ko, coingeckoPriceUrl2 as So, coingeckoTokenListUrl as Co, getCoingeckoIdForNativeTokens as Io, getCoingeckoPlatform as Eo, proCoingeckoUrl as ho, proHeader as bo } from "./constants/coingecko.constants.mjs";
|
|
52
52
|
import { AxelarRegistry as vo } from "./constants/axelar.constants.mjs";
|
|
53
53
|
import { NETWORKS as wo, getGasStationUrl as _o } from "./constants/backend.constants.mjs";
|
|
54
54
|
import { arbMainnetCrvCvxRegistry as Mo, avalancheCrvCvxRegistry as Uo, baseCrvCvxRegistry as Bo, ethCrvCvxRegistry as No, getCrvCvxWithChainId as Oo, optimismCrvCvxRegistry as Vo, polygonCrvCvxRegistry as Wo } from "./constants/crvCvx.registry.mjs";
|
|
@@ -57,7 +57,7 @@ import { ethSymbol as Yo, lidoStEthContractAddress as zo, lidoStMaticAddress as
|
|
|
57
57
|
import { ACCESS_TOKEN_MINTING_POINTS as ot, CERTIFICATION_DISABLE_WEEK as tt, REWARD_RECEIVABLE_TOKEN_SYMBOLS as at, RafflePrizePoints as it, boostAmounts as st, lpLink as nt, lpProgramStartWeek as pt, pointsLink as mt, raffleProgramStartWeek as lt, referralLink as ft } from "./constants/rewards.constants.mjs";
|
|
58
58
|
import { blockReorgDepth as dt } from "./constants/reorg-depths.constants.mjs";
|
|
59
59
|
import { ethBeefyRegistry as gt, getBeefyRegistryWithChainId as At } from "./constants/beefy.registry.mjs";
|
|
60
|
-
import { arbPendleRegistry as yt, bnbPendleRegistry as Rt, ethPendleRegistry as
|
|
60
|
+
import { arbPendleRegistry as yt, bnbPendleRegistry as Rt, ethPendleRegistry as Pt, findSyAddress as Tt, getPendleRegistryWithChainId as kt, getYtTokensWithChainId as St, isYtToken as Ct, optimismPendleRegistry as It } from "./constants/pendle.registry.mjs";
|
|
61
61
|
import { poseidonFunction as ht, poseidonHash as bt, poseidonHolder as Dt } from "./crypto/poseidon.mjs";
|
|
62
62
|
import { babyJubInstance as Lt, jubHolder as wt } from "./crypto/babyJub.mjs";
|
|
63
63
|
import { preProcessing as Ft } from "./crypto/preProcessing.mjs";
|
|
@@ -76,7 +76,7 @@ import { hinkalSwap as ca } from "./data-structures/Hinkal/hinkalSwap.mjs";
|
|
|
76
76
|
import { hinkalTransfer as xa } from "./data-structures/Hinkal/hinkalTransfer.mjs";
|
|
77
77
|
import { hinkalWithdraw as Aa } from "./data-structures/Hinkal/hinkalWithdraw.mjs";
|
|
78
78
|
import { hinkalPrivateWallet as ya } from "./data-structures/Hinkal/hinkalPrivateWallet.mjs";
|
|
79
|
-
import { resetMerkleTrees as
|
|
79
|
+
import { resetMerkleTrees as Pa } from "./data-structures/Hinkal/resetMerkleTrees.mjs";
|
|
80
80
|
import { MerkleTree as ka } from "./data-structures/merkle-tree/MerkleTree.mjs";
|
|
81
81
|
import { MerkleTreeIncompleteError as Ca } from "./data-structures/merkle-tree/MerkleTreeIncompleteError.mjs";
|
|
82
82
|
import { AbstractAccessTokenSnapshotService as Ea } from "./data-structures/event-service/AbstractAccessTokenSnapshotService.mjs";
|
|
@@ -101,7 +101,7 @@ import { checkErrorForSnapshotRestore as ci } from "./error-handling/handleError
|
|
|
101
101
|
import { logError as xi } from "./error-handling/logError.mjs";
|
|
102
102
|
import { ErrorCategory as Ai } from "./error-handling/types.mjs";
|
|
103
103
|
import { abi as yi } from "./externalABIs/amToken.mjs";
|
|
104
|
-
import { abi as
|
|
104
|
+
import { abi as Pi } from "./externalABIs/BeefyVaultAbi.json.mjs";
|
|
105
105
|
import { abi as ki } from "./externalABIs/BUSD.mjs";
|
|
106
106
|
import { abi as Ci } from "./externalABIs/CurveReadingWrapperAbi.json.mjs";
|
|
107
107
|
import { abi as Ei } from "./externalABIs/CurveWrappedMainPool.json.mjs";
|
|
@@ -127,66 +127,66 @@ import { abi as ls } from "./externalABIs/BabPassport.json.mjs";
|
|
|
127
127
|
import { abi as cs } from "./externalABIs/GalxePassport.json.mjs";
|
|
128
128
|
import { default as xs } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
|
|
129
129
|
import { checkHinkalAccessToken as As, mintAccessToken as us, mintTokenCrossChain as ys } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
|
|
130
|
-
import { openPassportWindow as
|
|
130
|
+
import { openPassportWindow as Ps } from "./functions/kyc/passportHelper.mjs";
|
|
131
131
|
import { openDefaultPassportWindow as ks } from "./functions/kyc/openDefaultPassportWindow.mjs";
|
|
132
132
|
import { absBigInt as Cs, beepsToPercentage as Is, bigintApplySugar as Es, bigintMax as hs, calculateAmountUsingBeeps as bs, calculateSum as Ds, fixDecimalsAmount as vs, getValueFirstNDigit as Ls, minBigInt as ws, toBigInt as _s, toBigIntOrUndefined as Fs, toCommaSeparatedNumberString as Ms, toInt as Us, toNumberOrUndefined as Bs, trimLeadingZeros as Ns, truncateTo18DecimalPlaces as Os } from "./functions/utils/amounts.utils.mjs";
|
|
133
|
-
import {
|
|
134
|
-
import { createProvider as
|
|
135
|
-
import { decodeMetadata as
|
|
136
|
-
import { getERC20Token as
|
|
137
|
-
import { requireEnv as
|
|
138
|
-
import { getSequence as
|
|
139
|
-
import { convertIntegrationProviderToExternalActionId as
|
|
140
|
-
import { getInteractionFromAction as
|
|
141
|
-
import { outputUtxoProcessing as
|
|
142
|
-
import { processGasEstimates as
|
|
133
|
+
import { getFilePath as Ws, getHinkalCache as Hs, loadTxsCache as Gs, resetCache as Ks, saveTxsCache as Ys, setHinkalCache as zs } from "./functions/utils/cacheFunctions.mjs";
|
|
134
|
+
import { createProvider as qs } from "./functions/utils/create-provider.mjs";
|
|
135
|
+
import { decodeMetadata as js, getActionFromMetadata as Xs, getExternalActionIdFromNumber as Js, getExternalActionIdHash as $s, getExternalMetadataHash as en } from "./functions/utils/external-action.utils.mjs";
|
|
136
|
+
import { getERC20Token as on, getERC20TokenBySymbol as tn, getHToken as an } from "./functions/utils/erc20tokenFunctions.mjs";
|
|
137
|
+
import { requireEnv as nn } from "./functions/utils/requireEnv.mjs";
|
|
138
|
+
import { getSequence as mn, promisify as ln, resolveSync as fn } from "./functions/utils/resolve-sync.utils.mjs";
|
|
139
|
+
import { convertIntegrationProviderToExternalActionId as dn } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
140
|
+
import { getInteractionFromAction as gn } from "./functions/pre-transaction/interaction-to-action.mjs";
|
|
141
|
+
import { outputUtxoProcessing as un } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
|
|
142
|
+
import { processGasEstimates as Rn } from "./functions/pre-transaction/process-gas-estimates.mjs";
|
|
143
143
|
import { processAmountChanges as Tn } from "./functions/pre-transaction/processAmountChanges.mjs";
|
|
144
|
-
import { getFlatFees as
|
|
145
|
-
import { getNetworkObject as
|
|
146
|
-
import { getAxelarMigrationInfo as
|
|
147
|
-
import { browserSupported as
|
|
148
|
-
import { decodeTxInput as
|
|
149
|
-
import { reloadPage as
|
|
150
|
-
import { capitalizeFirstLetter as
|
|
151
|
-
import { isNicknameValid as
|
|
152
|
-
import { caseInsensitiveEqual as
|
|
153
|
-
import { waitLittle as
|
|
154
|
-
import { patchRegistry as
|
|
155
|
-
import { createCacheDevice as
|
|
156
|
-
import { debounce as
|
|
157
|
-
import { calculateDollarValue as
|
|
158
|
-
import { getInputUtxoAndBalance as
|
|
159
|
-
import { addPaddingToUtxos as
|
|
160
|
-
import { getDepositEvents as Tp, retrieveEvents as
|
|
161
|
-
import { balanceChangedHandler as
|
|
162
|
-
import { getUniswapFee as
|
|
163
|
-
import { getOdosPrice as
|
|
164
|
-
import { getOneInchPrice as
|
|
165
|
-
import { runContractFunction as
|
|
166
|
-
import { constructZkProof as
|
|
167
|
-
import { constructEmporiumProof as
|
|
168
|
-
import { buildInNullifiers as
|
|
169
|
-
import { generateZkProof as
|
|
170
|
-
import { getCRV as
|
|
171
|
-
import { getCVX as
|
|
172
|
-
import { determinePendleSwapType as
|
|
173
|
-
import { calculateStakeNullifier as
|
|
174
|
-
import { emporiumOp as
|
|
175
|
-
import { OpType as
|
|
176
|
-
import { dataBeefyApiConfig as
|
|
177
|
-
import { defaultHookData as
|
|
178
|
-
import { ContractType as
|
|
179
|
-
import { ExternalActionId as
|
|
180
|
-
import { BeefyAction as
|
|
181
|
-
import { KycVerificationResult as
|
|
182
|
-
import { ApprovalType as
|
|
183
|
-
import { SlippageType as
|
|
184
|
-
import { emptyDecodedTx as
|
|
185
|
-
import { MONTHS as
|
|
186
|
-
import { BonusType as
|
|
187
|
-
import { PendleAssetType as
|
|
188
|
-
import { StatType as
|
|
189
|
-
import { HinkalStakeMode as
|
|
144
|
+
import { getFlatFees as Sn } from "./functions/pre-transaction/getFlatFees.mjs";
|
|
145
|
+
import { getNetworkObject as In, getNetworkType as En } from "./functions/utils/evmNetworkFunctions.mjs";
|
|
146
|
+
import { getAxelarMigrationInfo as bn } from "./functions/utils/axelar.utils.mjs";
|
|
147
|
+
import { browserSupported as vn, walletSupported as Ln } from "./functions/utils/userAgent.mjs";
|
|
148
|
+
import { decodeTxInput as _n, decodeTxLogs as Fn, deserializeDecodedTxs as Mn, serializeDecodedTxs as Un } from "./functions/utils/getDataFromTransaction.mjs";
|
|
149
|
+
import { reloadPage as Nn } from "./functions/utils/reloadPage.mjs";
|
|
150
|
+
import { capitalizeFirstLetter as Vn, isNullOrEmpty as Wn, toTitleCase as Hn } from "./functions/utils/string.utils.mjs";
|
|
151
|
+
import { isNicknameValid as Kn } from "./functions/utils/nickname.utils.mjs";
|
|
152
|
+
import { caseInsensitiveEqual as zn, lowerCaseIncludes as Zn, lowerCaseStartsWith as qn } from "./functions/utils/caseInsensitive.utils.mjs";
|
|
153
|
+
import { waitLittle as jn } from "./functions/utils/time.utils.mjs";
|
|
154
|
+
import { patchRegistry as Jn } from "./functions/utils/volatile-patcher.utils.mjs";
|
|
155
|
+
import { createCacheDevice as ep } from "./functions/utils/cacheDevice.utils.mjs";
|
|
156
|
+
import { debounce as op, wait as tp } from "./functions/utils/process.utils.mjs";
|
|
157
|
+
import { calculateDollarValue as ip, ethToWei as sp, getAmountInToken as np, getAmountInWei as pp, getAmountInWeiOrZero as mp, getAmountWithPrecision as lp, getAmountWithPrecisionOrZero as fp, randomBigInt as cp, toBigIntWithDecimals as dp } from "./functions/web3/etherFunctions.mjs";
|
|
158
|
+
import { getInputUtxoAndBalance as gp, getInputUtxosFromEncryptedOutputs as Ap } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
|
|
159
|
+
import { addPaddingToUtxos as yp, getShieldedBalance as Rp } from "./functions/web3/events/getShieldedBalance.mjs";
|
|
160
|
+
import { getDepositEvents as Tp, retrieveEvents as kp } from "./functions/web3/events/web3RetrieveEvents.mjs";
|
|
161
|
+
import { balanceChangedHandler as Cp } from "./functions/web3/events/balanceChangedHandler.mjs";
|
|
162
|
+
import { getUniswapFee as Ep, getUniswapPrice as hp, getUniswapPriceHelper as bp, searchPoolAndFee as Dp } from "./functions/web3/uniswapAPI.mjs";
|
|
163
|
+
import { getOdosPrice as Lp } from "./functions/web3/odosAPI.mjs";
|
|
164
|
+
import { getOneInchPrice as _p } from "./functions/web3/oneInchAPI.mjs";
|
|
165
|
+
import { runContractFunction as Mp } from "./functions/web3/runContractFunction.mjs";
|
|
166
|
+
import { constructZkProof as Bp } from "./functions/snarkjs/constructGeneralZkProof.mjs";
|
|
167
|
+
import { constructEmporiumProof as Op } from "./functions/snarkjs/constructEmporiumProof.mjs";
|
|
168
|
+
import { buildInNullifiers as Wp, buildOutCommitments as Hp, calcAccessTokenSiblingsAndSides as Gp, calcAmountChanges as Kp, calcCommitmentsSiblingAndSides as Yp, calcEncryptedOutputs as zp, calcPublicSignalCount as Zp, calcStealthAddressStructure as qp, createCallDataHash as Qp, deserializeCircomData as jp, serializeCircomData as Xp } from "./functions/snarkjs/common.snarkjs.mjs";
|
|
169
|
+
import { generateZkProof as $p } from "./functions/snarkjs/generateZkProof.mjs";
|
|
170
|
+
import { getCRV as rm } from "./functions/protocols/curve.protocols.mjs";
|
|
171
|
+
import { getCVX as tm } from "./functions/protocols/convex.protocols.mjs";
|
|
172
|
+
import { determinePendleSwapType as im, determinePendleSwapTypeApiRoute as sm, erc20TokenFromPendleAsset as nm, getAssetTypeFromPendleMarket as pm, getTokenIndexForPendleFlatFee as mm } from "./functions/protocols/pendle.helpers.mjs";
|
|
173
|
+
import { calculateStakeNullifier as fm, createStakeCommitment as cm, decryptStake as dm, encodeHStakeMetadata as xm, encryptStake as gm } from "./functions/staking/index.mjs";
|
|
174
|
+
import { emporiumOp as um, encodeEmporiumMetadata as ym } from "./functions/private-wallet/emporium.helpers.mjs";
|
|
175
|
+
import { OpType as Pm, produceOp as Tm } from "./functions/private-wallet/opProducer.mjs";
|
|
176
|
+
import { dataBeefyApiConfig as Sm, isBeefyDeposit as Cm } from "./types/beefy.types.mjs";
|
|
177
|
+
import { defaultHookData as Em, defaultHookDataArray as hm, defaultStealthAddressStructure as bm, emptyStealthAddressStructure as Dm } from "./types/circom-data.types.mjs";
|
|
178
|
+
import { ContractType as Lm } from "./types/ethereum-network.types.mjs";
|
|
179
|
+
import { ExternalActionId as _m } from "./types/external-action.types.mjs";
|
|
180
|
+
import { BeefyAction as Mm, ConvexAction as Um, CurveAction as Bm, EventType as Nm, INTERACTION as Om, IntegrationProvider as Vm, LidoAction as Wm, LidoVariant as Hm, PendleAction as Gm, PendleLPAction as Km, StakeProvider as Ym, VolatileAction as zm } from "./types/hinkal.types.mjs";
|
|
181
|
+
import { KycVerificationResult as qm, KycVerificationStatus as Qm, Passports as jm, VERIFICATION_TYPE as Xm, VerificationTypes as Jm } from "./types/kyc.types.mjs";
|
|
182
|
+
import { ApprovalType as el } from "./types/token.types.mjs";
|
|
183
|
+
import { SlippageType as ol, slippageLevels as tl } from "./types/slippage.types.mjs";
|
|
184
|
+
import { emptyDecodedTx as il } from "./types/transactions.types.mjs";
|
|
185
|
+
import { MONTHS as nl, dayInMilliseconds as pl, divideMonthOnIntervals as ml, getCurrentWeek as ll, getDateFromWeek as fl, getNextDay as cl, getWeekTimestamps as dl, hasCertificationPeriodExpired as xl, hourInMilliseconds as gl, isWeekCurrent as Al, minuteInMilliseconds as ul, parseWeek as yl, secondInMilliseconds as Rl, toDateString as Pl, weekInMilliseconds as Tl } from "./types/time.types.mjs";
|
|
186
|
+
import { BonusType as Sl, CertifyType as Cl, LP_TIER as Il, PaymentStatus as El, PointType as hl, RafflePrizeType as bl, RewardPage as Dl, RewardsHistoryDistribution as vl, RewardsHistoryEligibility as Ll, RewardsHistorySnapshots as wl, RewardsHistoryStatuses as _l, RewardsPageTabs as Fl, TIER_LEVEL as Ml, Timeline as Ul, emptyUserPointsBreakdown as Bl, emptyUserPointsResponse as Nl } from "./types/rewards.types.mjs";
|
|
187
|
+
import { PendleAssetType as Vl, PendleChains as Wl, PendleDashboardTabs as Hl, PendleEarnTabs as Gl, PendleMarketTransactionTypes as Kl, PendlePoolManualTabs as Yl, PendlePoolTabs as zl, PendlePoolZapTabs as Zl, PendleSwapType as ql, PendleTabs as Ql, PendleTradeGeneralTabs as jl, PendleTradeTabs as Xl } from "./types/pendle.types.mjs";
|
|
188
|
+
import { StatType as $l, UpperTabPossibleValues as ef, curveNetworkNames as rf, curvePools as of } from "./types/curve.types.mjs";
|
|
189
|
+
import { HinkalStakeMode as af } from "./types/hinkal.stake.types.mjs";
|
|
190
190
|
export {
|
|
191
191
|
ot as ACCESS_TOKEN_MINTING_POINTS,
|
|
192
192
|
Sr as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
@@ -199,22 +199,22 @@ export {
|
|
|
199
199
|
va as AbstractNullifierSnapshotService,
|
|
200
200
|
wa as AbstractSnapshotService,
|
|
201
201
|
yi as AmTokenABI,
|
|
202
|
-
|
|
202
|
+
el as ApprovalType,
|
|
203
203
|
vo as AxelarRegistry,
|
|
204
204
|
ki as BUSDABI,
|
|
205
205
|
ls as BabABI,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
Mm as BeefyAction,
|
|
207
|
+
Pi as BeefyVaultABI,
|
|
208
|
+
Sl as BonusType,
|
|
209
209
|
tt as CERTIFICATION_DISABLE_WEEK,
|
|
210
210
|
ao as CIRCOM_P,
|
|
211
211
|
io as CIRCOM_P_HALF,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
Po as COINGECKO_API_KEY,
|
|
213
|
+
Cl as CertifyType,
|
|
214
|
+
To as CoinGeckoChainLabels,
|
|
215
|
+
Lm as ContractType,
|
|
216
|
+
Um as ConvexAction,
|
|
217
|
+
Bm as CurveAction,
|
|
218
218
|
Ci as CurveReadingWrapperABI,
|
|
219
219
|
Ei as CurveWrappedMainPoolABI,
|
|
220
220
|
Fr as DATA_SERVER_CONFIG,
|
|
@@ -226,76 +226,76 @@ export {
|
|
|
226
226
|
Zt as EncryptionKeyPairDefaultValue,
|
|
227
227
|
Ai as ErrorCategory,
|
|
228
228
|
Ze as EthereumNetworkType,
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
Nm as EventType,
|
|
230
|
+
_m as ExternalActionId,
|
|
231
231
|
ri as FeeOverTransactionValueError,
|
|
232
232
|
Xa as FileCacheDevice,
|
|
233
233
|
cs as GalxeABI,
|
|
234
234
|
ir as HINKAL_EXTERNAL_ACTION_FEE,
|
|
235
235
|
sr as HINKAL_UNIVERSAL_FEE,
|
|
236
236
|
$t as Hinkal,
|
|
237
|
-
|
|
237
|
+
af as HinkalStakeMode,
|
|
238
238
|
V as IMAGE_PATHS,
|
|
239
|
-
|
|
239
|
+
Om as INTERACTION,
|
|
240
240
|
qi as ISwapRouterABI,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
Vm as IntegrationProvider,
|
|
242
|
+
qm as KycVerificationResult,
|
|
243
|
+
Qm as KycVerificationStatus,
|
|
244
|
+
Il as LP_TIER,
|
|
245
|
+
Wm as LidoAction,
|
|
246
|
+
Hm as LidoVariant,
|
|
247
247
|
$a as LocalStorageCacheDevice,
|
|
248
|
-
|
|
248
|
+
nl as MONTHS,
|
|
249
249
|
ka as MerkleTree,
|
|
250
250
|
Ca as MerkleTreeIncompleteError,
|
|
251
251
|
Qa as MultiThreadedUtxoUtils,
|
|
252
252
|
wo as NETWORKS,
|
|
253
|
-
|
|
253
|
+
Pm as OpType,
|
|
254
254
|
Nr as PLAYGROUND_RELAYER_URLS,
|
|
255
255
|
Or as PLAYGROUND_SERVER_URLS,
|
|
256
256
|
Vr as PLAYGROUND_URL,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
257
|
+
jm as Passports,
|
|
258
|
+
El as PaymentStatus,
|
|
259
|
+
Gm as PendleAction,
|
|
260
|
+
Vl as PendleAssetType,
|
|
261
|
+
Wl as PendleChains,
|
|
262
|
+
Hl as PendleDashboardTabs,
|
|
263
|
+
Gl as PendleEarnTabs,
|
|
264
|
+
Km as PendleLPAction,
|
|
265
|
+
Kl as PendleMarketTransactionTypes,
|
|
266
|
+
Yl as PendlePoolManualTabs,
|
|
267
|
+
zl as PendlePoolTabs,
|
|
268
|
+
Zl as PendlePoolZapTabs,
|
|
269
|
+
ql as PendleSwapType,
|
|
270
|
+
Ql as PendleTabs,
|
|
271
|
+
jl as PendleTradeGeneralTabs,
|
|
272
|
+
Xl as PendleTradeTabs,
|
|
273
|
+
hl as PointType,
|
|
274
274
|
ke as PopularTokenSymbols,
|
|
275
275
|
Ir as RECLAIM_MESSAGE_TO_SIGN,
|
|
276
276
|
Wr as RELAYER_CONFIG,
|
|
277
277
|
Hr as RELAYER_URLS,
|
|
278
278
|
at as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
279
279
|
it as RafflePrizePoints,
|
|
280
|
-
|
|
280
|
+
bl as RafflePrizeType,
|
|
281
281
|
Er as ReclaimPassports,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
282
|
+
Dl as RewardPage,
|
|
283
|
+
vl as RewardsHistoryDistribution,
|
|
284
|
+
Ll as RewardsHistoryEligibility,
|
|
285
|
+
wl as RewardsHistorySnapshots,
|
|
286
|
+
_l as RewardsHistoryStatuses,
|
|
287
|
+
Fl as RewardsPageTabs,
|
|
288
288
|
Gr as SERVER_URLS,
|
|
289
289
|
Kr as STAGING_RELAYER_URLS,
|
|
290
290
|
Yr as STAGING_SERVER_URLS,
|
|
291
291
|
zr as STAGING_URL,
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
ol as SlippageType,
|
|
293
|
+
Ym as StakeProvider,
|
|
294
294
|
hr as StandardPassports,
|
|
295
|
-
|
|
295
|
+
$l as StatType,
|
|
296
296
|
br as SupportedPassports,
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
Ml as TIER_LEVEL,
|
|
298
|
+
Ul as Timeline,
|
|
299
299
|
Va as TokenChecker,
|
|
300
300
|
Ka as TransactionType,
|
|
301
301
|
Ha as TransactionsManager,
|
|
@@ -303,19 +303,19 @@ export {
|
|
|
303
303
|
Hi as USDR3CRVABI,
|
|
304
304
|
Vi as USDRABI,
|
|
305
305
|
Ki as USDTABI,
|
|
306
|
-
|
|
306
|
+
ef as UpperTabPossibleValues,
|
|
307
307
|
si as UserFriendlyErrorCodes,
|
|
308
308
|
qt as UserKeys,
|
|
309
309
|
Ua as Utxo,
|
|
310
|
-
|
|
310
|
+
Xm as VERIFICATION_TYPE,
|
|
311
311
|
Ut as ValueCache,
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
Jm as VerificationTypes,
|
|
313
|
+
zm as VolatileAction,
|
|
314
314
|
Za as VolatileHelper,
|
|
315
315
|
zi as WETHABI,
|
|
316
316
|
Nt as abiDecodeUtxo,
|
|
317
317
|
Cs as absBigInt,
|
|
318
|
-
|
|
318
|
+
yp as addPaddingToUtxos,
|
|
319
319
|
Dr as aipriseBaseOnboardingProductionUrl,
|
|
320
320
|
vr as aipriseBaseOnboardingSandboxUrl,
|
|
321
321
|
Mo as arbMainnetCrvCvxRegistry,
|
|
@@ -330,7 +330,7 @@ export {
|
|
|
330
330
|
Ge as axelar1Data,
|
|
331
331
|
Ye as axelar2Data,
|
|
332
332
|
Lt as babyJubInstance,
|
|
333
|
-
|
|
333
|
+
Cp as balanceChangedHandler,
|
|
334
334
|
Bo as baseCrvCvxRegistry,
|
|
335
335
|
Oe as baseData,
|
|
336
336
|
ye as baseRegistry,
|
|
@@ -345,23 +345,23 @@ export {
|
|
|
345
345
|
j as bnbMainnetRegistryFixed,
|
|
346
346
|
Rt as bnbPendleRegistry,
|
|
347
347
|
st as boostAmounts,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
348
|
+
vn as browserSupported,
|
|
349
|
+
Wp as buildInNullifiers,
|
|
350
|
+
Hp as buildOutCommitments,
|
|
351
|
+
Gp as calcAccessTokenSiblingsAndSides,
|
|
352
|
+
Kp as calcAmountChanges,
|
|
353
|
+
Yp as calcCommitmentsSiblingAndSides,
|
|
354
|
+
zp as calcEncryptedOutputs,
|
|
355
|
+
Zp as calcPublicSignalCount,
|
|
356
|
+
qp as calcStealthAddressStructure,
|
|
357
357
|
bs as calculateAmountUsingBeeps,
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
ip as calculateDollarValue,
|
|
359
|
+
fm as calculateStakeNullifier,
|
|
360
360
|
Ds as calculateSum,
|
|
361
361
|
l as callOneInchAPI,
|
|
362
362
|
x as callRelayerTransactAPI,
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
Vn as capitalizeFirstLetter,
|
|
364
|
+
zn as caseInsensitiveEqual,
|
|
365
365
|
qe as chainIds,
|
|
366
366
|
Qe as chainIdsByType,
|
|
367
367
|
ci as checkErrorForSnapshotRestore,
|
|
@@ -371,86 +371,86 @@ export {
|
|
|
371
371
|
ko as coingeckoPriceUrl,
|
|
372
372
|
So as coingeckoPriceUrl2,
|
|
373
373
|
Co as coingeckoTokenListUrl,
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
Op as constructEmporiumProof,
|
|
375
|
+
Bp as constructZkProof,
|
|
376
376
|
Ar as contractMetadataMapping,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
377
|
+
dn as convertIntegrationProviderToExternalActionId,
|
|
378
|
+
ep as createCacheDevice,
|
|
379
|
+
Qp as createCallDataHash,
|
|
380
|
+
qs as createProvider,
|
|
381
|
+
cm as createStakeCommitment,
|
|
382
382
|
je as crossChainAccessTokenNetworks,
|
|
383
383
|
no as crvSymbol,
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
rf as curveNetworkNames,
|
|
385
|
+
of as curvePools,
|
|
386
386
|
po as curveWithdrawGasTokenAddress,
|
|
387
387
|
mo as curveZeroAddress,
|
|
388
388
|
Na as customTokenRegistry,
|
|
389
389
|
lo as cvxSymbol,
|
|
390
390
|
bi as daiABI,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
391
|
+
Sm as dataBeefyApiConfig,
|
|
392
|
+
pl as dayInMilliseconds,
|
|
393
|
+
op as debounce,
|
|
394
|
+
js as decodeMetadata,
|
|
395
|
+
_n as decodeTxInput,
|
|
396
|
+
Fn as decodeTxLogs,
|
|
397
397
|
Vt as decodeUtxo,
|
|
398
398
|
Wt as decodeUtxoConstructorArgs,
|
|
399
|
-
|
|
399
|
+
dm as decryptStake,
|
|
400
400
|
Gt as decryptUtxo,
|
|
401
401
|
Kt as decryptUtxoConstructorArgs,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
Em as defaultHookData,
|
|
403
|
+
hm as defaultHookDataArray,
|
|
404
|
+
bm as defaultStealthAddressStructure,
|
|
405
405
|
Qr as deploymentMode,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
406
|
+
jp as deserializeCircomData,
|
|
407
|
+
Mn as deserializeDecodedTxs,
|
|
408
|
+
im as determinePendleSwapType,
|
|
409
|
+
sm as determinePendleSwapTypeApiRoute,
|
|
410
|
+
ml as divideMonthOnIntervals,
|
|
411
|
+
um as emporiumOp,
|
|
412
|
+
il as emptyDecodedTx,
|
|
413
|
+
Dm as emptyStealthAddressStructure,
|
|
414
|
+
Bl as emptyUserPointsBreakdown,
|
|
415
|
+
Nl as emptyUserPointsResponse,
|
|
416
|
+
ym as encodeEmporiumMetadata,
|
|
417
|
+
xm as encodeHStakeMetadata,
|
|
418
|
+
gm as encryptStake,
|
|
419
419
|
Yt as encryptUtxo,
|
|
420
|
-
|
|
420
|
+
nm as erc20TokenFromPendleAsset,
|
|
421
421
|
gt as ethBeefyRegistry,
|
|
422
422
|
No as ethCrvCvxRegistry,
|
|
423
423
|
Le as ethMainnetData,
|
|
424
424
|
se as ethMainnetRegistry,
|
|
425
425
|
z as ethMainnetRegistryFixed,
|
|
426
|
-
|
|
426
|
+
Pt as ethPendleRegistry,
|
|
427
427
|
Yo as ethSymbol,
|
|
428
|
-
|
|
428
|
+
sp as ethToWei,
|
|
429
429
|
fo as ethVolatileAddress,
|
|
430
430
|
Ya as externalActionToTransactionType,
|
|
431
431
|
mi as extractMessage,
|
|
432
432
|
Fi as factoryABI,
|
|
433
|
-
|
|
433
|
+
Tt as findSyAddress,
|
|
434
434
|
vs as fixDecimalsAmount,
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
$p as generateZkProof,
|
|
436
|
+
Xs as getActionFromMetadata,
|
|
437
437
|
nr as getAmountAfterRelayAndFlatFees,
|
|
438
438
|
pr as getAmountAfterRelayAndFlatFeesAndSlippage,
|
|
439
439
|
mr as getAmountAfterRelayFee,
|
|
440
440
|
lr as getAmountAfterSlippage,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
441
|
+
np as getAmountInToken,
|
|
442
|
+
pp as getAmountInWei,
|
|
443
|
+
mp as getAmountInWeiOrZero,
|
|
444
|
+
lp as getAmountWithPrecision,
|
|
445
|
+
fp as getAmountWithPrecisionOrZero,
|
|
446
446
|
fr as getAmountWithoutFee,
|
|
447
|
-
|
|
447
|
+
pm as getAssetTypeFromPendleMarket,
|
|
448
448
|
A as getAxelarGasEstimate,
|
|
449
|
-
|
|
449
|
+
bn as getAxelarMigrationInfo,
|
|
450
450
|
c as getBeefyHistoricalChartData,
|
|
451
451
|
At as getBeefyRegistryWithChainId,
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
rm as getCRV,
|
|
453
|
+
tm as getCVX,
|
|
454
454
|
Go as getCalcTokenAmountWithDynamicArray,
|
|
455
455
|
jt as getCircomSign,
|
|
456
456
|
Io as getCoingeckoIdForNativeTokens,
|
|
@@ -460,58 +460,59 @@ export {
|
|
|
460
460
|
n as getCoingeckoPrices,
|
|
461
461
|
p as getCoingeckoTokenList,
|
|
462
462
|
Oo as getCrvCvxWithChainId,
|
|
463
|
-
|
|
463
|
+
ll as getCurrentWeek,
|
|
464
464
|
v as getCurvePools,
|
|
465
465
|
L as getCurvePoolsforPriceFetching,
|
|
466
466
|
o as getDataServerURL,
|
|
467
|
-
|
|
467
|
+
fl as getDateFromWeek,
|
|
468
468
|
Tp as getDepositEvents,
|
|
469
469
|
Ce as getERC20Registry,
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
on as getERC20Token,
|
|
471
|
+
tn as getERC20TokenBySymbol,
|
|
472
472
|
li as getErrorMessage,
|
|
473
473
|
w as getExtendedPoolInfo,
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
Js as getExternalActionIdFromNumber,
|
|
475
|
+
$s as getExternalActionIdHash,
|
|
476
|
+
en as getExternalMetadataHash,
|
|
477
|
+
Ws as getFilePath,
|
|
477
478
|
Ie as getFixedRegistry,
|
|
478
|
-
|
|
479
|
+
Sn as getFlatFees,
|
|
479
480
|
y as getGasEstimates,
|
|
480
481
|
_o as getGasStationUrl,
|
|
481
482
|
ti as getGenericFeeOverTransactionValueErrorMessage,
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
an as getHToken,
|
|
484
|
+
Hs as getHinkalCache,
|
|
484
485
|
cr as getHinkalFeeRateInBeeps,
|
|
485
486
|
ur as getHinkalParameters,
|
|
486
487
|
E as getIdleRelay,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
488
|
+
gp as getInputUtxoAndBalance,
|
|
489
|
+
Ap as getInputUtxosFromEncryptedOutputs,
|
|
490
|
+
gn as getInteractionFromAction,
|
|
491
|
+
In as getNetworkObject,
|
|
492
|
+
En as getNetworkType,
|
|
493
|
+
cl as getNextDay,
|
|
493
494
|
Xe as getNonLocalhostChainId,
|
|
494
|
-
|
|
495
|
-
|
|
495
|
+
Lp as getOdosPrice,
|
|
496
|
+
_p as getOneInchPrice,
|
|
496
497
|
kt as getPendleRegistryWithChainId,
|
|
497
498
|
N as getPublicWalletBalance,
|
|
498
499
|
dr as getRelayFee,
|
|
499
500
|
U as getRelayerURL,
|
|
500
|
-
|
|
501
|
+
mn as getSequence,
|
|
501
502
|
t as getServerURL,
|
|
502
|
-
|
|
503
|
+
Rp as getShieldedBalance,
|
|
503
504
|
xr as getSlippageFee,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
505
|
+
mm as getTokenIndexForPendleFlatFee,
|
|
506
|
+
P as getTokenPrice,
|
|
507
|
+
T as getTokenPriceEth,
|
|
507
508
|
k as getTokenPrices,
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
Ep as getUniswapFee,
|
|
510
|
+
hp as getUniswapPrice,
|
|
511
|
+
bp as getUniswapPriceHelper,
|
|
511
512
|
Ls as getValueFirstNDigit,
|
|
512
|
-
|
|
513
|
+
dl as getWeekTimestamps,
|
|
513
514
|
St as getYtTokensWithChainId,
|
|
514
|
-
|
|
515
|
+
xl as hasCertificationPeriodExpired,
|
|
515
516
|
ra as hinkalActionBeefy,
|
|
516
517
|
ta as hinkalActionConvex,
|
|
517
518
|
ia as hinkalActionCurve,
|
|
@@ -522,23 +523,23 @@ export {
|
|
|
522
523
|
ca as hinkalSwap,
|
|
523
524
|
xa as hinkalTransfer,
|
|
524
525
|
Aa as hinkalWithdraw,
|
|
525
|
-
|
|
526
|
-
|
|
526
|
+
gl as hourInMilliseconds,
|
|
527
|
+
Cm as isBeefyDeposit,
|
|
527
528
|
Xt as isCircomNegative,
|
|
528
529
|
jr as isDevelopment,
|
|
529
530
|
Je as isLocalNetwork,
|
|
530
|
-
|
|
531
|
+
Kn as isNicknameValid,
|
|
531
532
|
Xr as isNode,
|
|
532
533
|
Jr as isNotClientProduction,
|
|
533
534
|
$r as isNotProduction,
|
|
534
|
-
|
|
535
|
+
Wn as isNullOrEmpty,
|
|
535
536
|
$e as isOptimismBedrockLike,
|
|
536
537
|
er as isOptimismEcotoneLike,
|
|
537
538
|
rr as isOptimismLike,
|
|
538
539
|
eo as isPlayground,
|
|
539
540
|
ro as isStaging,
|
|
540
541
|
oo as isWebpack,
|
|
541
|
-
|
|
542
|
+
Al as isWeekCurrent,
|
|
542
543
|
Ct as isYtToken,
|
|
543
544
|
wt as jubHolder,
|
|
544
545
|
ji as lidoStEthAbi,
|
|
@@ -551,13 +552,13 @@ export {
|
|
|
551
552
|
Qo as lidoWithdrawalQueueERC721Address,
|
|
552
553
|
as as lidoWstEthAbi,
|
|
553
554
|
jo as lidoWstEthContractAddress,
|
|
554
|
-
|
|
555
|
+
Gs as loadTxsCache,
|
|
555
556
|
We as localhostData,
|
|
556
557
|
or as localhostNetwork,
|
|
557
|
-
|
|
558
|
+
Pe as localhostRegistry,
|
|
558
559
|
xi as logError,
|
|
559
|
-
|
|
560
|
-
|
|
560
|
+
Zn as lowerCaseIncludes,
|
|
561
|
+
qn as lowerCaseStartsWith,
|
|
561
562
|
nt as lpLink,
|
|
562
563
|
pt as lpProgramStartWeek,
|
|
563
564
|
_ as lpTokens,
|
|
@@ -566,21 +567,21 @@ export {
|
|
|
566
567
|
ws as minBigInt,
|
|
567
568
|
us as mintAccessToken,
|
|
568
569
|
ys as mintTokenCrossChain,
|
|
569
|
-
|
|
570
|
+
ul as minuteInMilliseconds,
|
|
570
571
|
tr as networkRegistry,
|
|
571
572
|
co as oneInchZeroAddress,
|
|
572
573
|
ks as openDefaultPassportWindow,
|
|
573
|
-
|
|
574
|
+
Ps as openPassportWindow,
|
|
574
575
|
Vo as optimismCrvCvxRegistry,
|
|
575
576
|
_e as optimismData,
|
|
576
577
|
xs as optimismGasPriceOracleAbi,
|
|
577
578
|
It as optimismPendleRegistry,
|
|
578
579
|
Ae as optimismRegistry,
|
|
579
580
|
oe as optimismRegistryFixed,
|
|
580
|
-
|
|
581
|
+
un as outputUtxoProcessing,
|
|
581
582
|
xo as ownerPublicKey,
|
|
582
|
-
|
|
583
|
-
|
|
583
|
+
yl as parseWeek,
|
|
584
|
+
Jn as patchRegistry,
|
|
584
585
|
go as permitSignatureValidFor,
|
|
585
586
|
os as poLidoNftAbi,
|
|
586
587
|
Jo as poLidoNftAddress,
|
|
@@ -596,55 +597,55 @@ export {
|
|
|
596
597
|
ho as proCoingeckoUrl,
|
|
597
598
|
bo as proHeader,
|
|
598
599
|
Tn as processAmountChanges,
|
|
599
|
-
|
|
600
|
+
Rn as processGasEstimates,
|
|
600
601
|
Tm as produceOp,
|
|
601
|
-
|
|
602
|
+
ln as promisify,
|
|
602
603
|
wi as quoterV2ABI,
|
|
603
604
|
lt as raffleProgramStartWeek,
|
|
604
|
-
|
|
605
|
+
cp as randomBigInt,
|
|
605
606
|
ft as referralLink,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
607
|
+
Nn as reloadPage,
|
|
608
|
+
nn as requireEnv,
|
|
609
|
+
Ks as resetCache,
|
|
610
|
+
Pa as resetMerkleTrees,
|
|
611
|
+
fn as resolveSync,
|
|
611
612
|
ai as rethrowKnownGasErrorIfPossible,
|
|
612
|
-
|
|
613
|
-
|
|
613
|
+
kp as retrieveEvents,
|
|
614
|
+
Mp as runContractFunction,
|
|
614
615
|
Ui as sanctionsListABI,
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
616
|
+
Ys as saveTxsCache,
|
|
617
|
+
Dp as searchPoolAndFee,
|
|
618
|
+
Rl as secondInMilliseconds,
|
|
619
|
+
Xp as serializeCircomData,
|
|
620
|
+
Un as serializeDecodedTxs,
|
|
621
|
+
zs as setHinkalCache,
|
|
621
622
|
Ao as signaturePhrase,
|
|
622
|
-
|
|
623
|
+
tl as slippageLevels,
|
|
623
624
|
$o as stMaticSymbol,
|
|
624
625
|
Lr as supportedPassportLinks,
|
|
625
626
|
uo as threePoolSymbol,
|
|
626
627
|
_s as toBigInt,
|
|
627
628
|
Fs as toBigIntOrUndefined,
|
|
628
|
-
|
|
629
|
+
dp as toBigIntWithDecimals,
|
|
629
630
|
Ms as toCommaSeparatedNumberString,
|
|
630
|
-
|
|
631
|
+
Pl as toDateString,
|
|
631
632
|
Us as toInt,
|
|
632
633
|
Bs as toNumberOrUndefined,
|
|
633
|
-
|
|
634
|
+
Hn as toTitleCase,
|
|
634
635
|
ni as transactionErrorCodes,
|
|
635
636
|
ps as transactionProverABI,
|
|
636
637
|
Ns as trimLeadingZeros,
|
|
637
638
|
Os as truncateTo18DecimalPlaces,
|
|
638
639
|
yr as uniswapV2PoolData,
|
|
639
640
|
Rr as uniswapV3FactoryData,
|
|
640
|
-
|
|
641
|
-
|
|
641
|
+
Pr as uniswapV3PoolData,
|
|
642
|
+
Tr as uniswapV3QuoterData,
|
|
642
643
|
H as urlForBeefyVaultTokens,
|
|
643
644
|
G as urlForBeefyVaultTotalInUSD,
|
|
644
645
|
K as urlForRegularTokenPricesInBeefy,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
tp as wait,
|
|
647
|
+
jn as waitLittle,
|
|
648
|
+
Ln as walletSupported,
|
|
648
649
|
Tl as weekInMilliseconds,
|
|
649
650
|
et as wstEthSymbol,
|
|
650
651
|
yo as zeroAddress
|