@hinkal/common 0.1.66 → 0.1.68
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/provider-adapter/IProviderAdapter.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.mjs +105 -101
- package/package.json +10 -10
- package/providers/WagmiProviderAdapter.cjs +1 -0
- package/providers/{Wagmiv1ProviderAdapter.d.ts → WagmiProviderAdapter.d.ts} +7 -5
- package/providers/{Wagmiv1ProviderAdapter.mjs → WagmiProviderAdapter.mjs} +61 -34
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +4 -4
- package/providers/{prepareWagmiv1Hinkal.cjs → prepareWagmiHinkal.cjs} +1 -1
- package/providers/prepareWagmiHinkal.d.ts +3 -0
- package/providers/{prepareWagmiv1Hinkal.mjs → prepareWagmiHinkal.mjs} +8 -8
- package/types/admin.types.cjs +1 -0
- package/types/admin.types.d.ts +22 -0
- package/types/admin.types.mjs +5 -0
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +4 -0
- package/types/hinkal.types.mjs +9 -8
- package/types/index.d.ts +1 -0
- package/providers/Wagmiv1ProviderAdapter.cjs +0 -1
- package/providers/prepareWagmiv1Hinkal.d.ts +0 -4
|
@@ -10,6 +10,7 @@ export interface IProviderAdapter<ConnectorType = unknown> {
|
|
|
10
10
|
initConnector(connector: ConnectorType): void;
|
|
11
11
|
initSigner?(signer: Signer): void;
|
|
12
12
|
init(chainId?: number): Promise<void>;
|
|
13
|
+
initConfig?(config?: any): Promise<void> | void;
|
|
13
14
|
connectToConnector(connector: ConnectorType): Promise<number>;
|
|
14
15
|
disconnectFromConnector(): Promise<void>;
|
|
15
16
|
connectAndPatchProvider(connector: ConnectorType): Promise<number>;
|
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"),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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./API/getServerURL.cjs"),I=require("./API/getCoingeckoPrice.cjs"),le=require("./API/callOneInchAPI.cjs"),ue=require("./API/callBeefyGraphAPI.cjs"),de=require("./API/callRelayer.cjs"),ge=require("./API/getAxelarGasEstimate.cjs"),pe=require("./API/getGasEstimates.cjs"),x=require("./API/getTokenPrice.cjs"),Ae=require("./API/checkRisk.cjs"),ye=require("./API/relayCalls.cjs"),Pe=require("./API/API.cjs"),m=require("./API/callCurveAPI.cjs"),Re=require("./API/getRelayerURL.cjs"),ke=require("./API/duneAPI.cjs"),Te=require("./constants/assets.constants.cjs"),L=require("./constants/token-data/tokenPricing.consts.cjs"),me=require("./constants/token-data/ethMainnetRegistryFixed.json.cjs"),he=require("./constants/token-data/arbMainnetRegistryFixed.json.cjs"),Se=require("./constants/token-data/bnbMainnetRegistryFixed.json.cjs"),Ce=require("./constants/token-data/polygonRegistryFixed.json.cjs"),Ee=require("./constants/token-data/avalancheRegistryFixed.json.cjs"),Ie=require("./constants/token-data/optimismRegistryFixed.json.cjs"),be=require("./constants/token-data/baseRegistryFixed.json.cjs"),qe=require("./constants/token-data/ethMainnetRegistry.json.cjs"),_e=require("./constants/token-data/arbMainnetRegistry.json.cjs"),ve=require("./constants/token-data/bnbMainnetRegistry.json.cjs"),De=require("./constants/token-data/polygonRegistry.json.cjs"),xe=require("./constants/token-data/avalancheRegistry.json.cjs"),Le=require("./constants/token-data/optimismRegistry.json.cjs"),fe=require("./constants/token-data/baseRegistry.json.cjs"),Fe=require("./constants/token-data/localhostRegistry.json.cjs"),Ue=require("./constants/token-data/popularTokens.constants.cjs"),V=require("./constants/token-data/ERC20Registry.cjs"),Me=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Oe=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),we=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),Ne=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),Be=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),Ve=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),We=require("./constants/deploy-data/deploy-data-base.json.cjs"),He=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),Ge=require("./constants/deploy-data/deploy-data-axelar1.json.cjs"),Ke=require("./constants/deploy-data/deploy-data-axelar2.json.cjs"),s=require("./constants/chains.constants.cjs"),l=require("./constants/fees.constants.cjs"),k=require("./constants/contracts.constants.cjs"),g=require("./constants/kyc.constants.cjs"),i=require("./constants/server.constants.cjs"),p=require("./constants/vite.constants.cjs"),o=require("./constants/protocol.constants.cjs"),A=require("./constants/coingecko.constants.cjs"),Ye=require("./constants/axelar.constants.cjs"),W=require("./constants/backend.constants.cjs"),R=require("./constants/crvCvx.registry.cjs"),Ze=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"),Qe=require("./crypto/preProcessing.cjs"),je=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"),Xe=require("./data-structures/Hinkal/Hinkal.cjs"),Je=require("./data-structures/Hinkal/hinkalActionBeefy.cjs"),$e=require("./data-structures/Hinkal/hinkalActionConvex.cjs"),et=require("./data-structures/Hinkal/hinkalActionCurve.cjs"),tt=require("./data-structures/Hinkal/hinkalActionPendle.cjs"),Z=require("./data-structures/Hinkal/hinkalDeposit.cjs"),rt=require("./data-structures/Hinkal/hinkalSwap.cjs"),it=require("./data-structures/Hinkal/hinkalTransfer.cjs"),ot=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),nt=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),at=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),st=require("./data-structures/merkle-tree/MerkleTree.cjs"),ct=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),lt=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),ut=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),dt=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),gt=require("./data-structures/event-service/AbstractSnapshotService.cjs"),pt=require("./data-structures/event-service/AbstractEventService.cjs"),At=require("./data-structures/utxo/Utxo.cjs"),yt=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),Pt=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),Rt=require("./data-structures/transactions-manager/TransactionsManager.cjs"),z=require("./data-structures/transactions-manager/history/history.types.cjs"),kt=require("./data-structures/volatile-helper/VolatileHelper.cjs"),Tt=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),mt=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),ht=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),St=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"),Ct=require("./error-handling/handleErrorRestore.cjs"),Et=require("./error-handling/logError.cjs"),It=require("./error-handling/types.cjs"),bt=require("./externalABIs/amToken.cjs"),qt=require("./externalABIs/BeefyVaultAbi.json.cjs"),_t=require("./externalABIs/BUSD.cjs"),vt=require("./externalABIs/CurveReadingWrapperAbi.json.cjs"),Dt=require("./externalABIs/CurveWrappedMainPool.json.cjs"),xt=require("./externalABIs/DAI.cjs"),Lt=require("./externalABIs/ERC20.json.cjs"),ft=require("./externalABIs/IQuoterV2.json.cjs"),Ft=require("./externalABIs/IUniswapV3Factory.json.cjs"),Ut=require("./externalABIs/SanctionsList.cjs"),Mt=require("./externalABIs/USDC.cjs"),Ot=require("./externalABIs/USDR.cjs"),wt=require("./externalABIs/USDR3CRV.cjs"),Nt=require("./externalABIs/USDT.cjs"),Bt=require("./externalABIs/WETH.cjs"),Vt=require("./externalABIs/ISwapRouter.json.cjs"),Wt=require("./externalABIs/LidoStEthAbi.json.cjs"),Ht=require("./externalABIs/LidoStMaticAbi.json.cjs"),Gt=require("./externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),Kt=require("./externalABIs/PoLidoNftAbi.json.cjs"),Yt=require("./externalABIs/LidoWstEthAbi.json.cjs"),Zt=require("./externalABIs/LidoStakeManagerAbi.json.cjs"),zt=require("./externalABIs/transactionsProver.json.cjs"),Qt=require("./externalABIs/BabPassport.json.cjs"),jt=require("./externalABIs/GalxePassport.json.cjs"),Xt=require("./externalABIs/OptimismGasPriceOracle.json.cjs"),U=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),Jt=require("./functions/kyc/passportHelper.cjs"),$t=require("./functions/kyc/openDefaultPassportWindow.cjs"),e=require("./functions/utils/amounts.utils.cjs"),T=require("./functions/utils/cacheFunctions.cjs"),er=require("./functions/utils/create-provider.cjs"),h=require("./functions/utils/external-action.utils.cjs"),M=require("./functions/utils/erc20tokenFunctions.cjs"),tr=require("./functions/utils/requireEnv.cjs"),O=require("./functions/utils/resolve-sync.utils.cjs"),rr=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),ir=require("./functions/pre-transaction/interaction-to-action.cjs"),or=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),nr=require("./functions/pre-transaction/process-gas-estimates.cjs"),ar=require("./functions/pre-transaction/processAmountChanges.cjs"),sr=require("./functions/pre-transaction/getFlatFees.cjs"),J=require("./functions/utils/evmNetworkFunctions.cjs"),cr=require("./functions/utils/axelar.utils.cjs"),$=require("./functions/utils/userAgent.cjs"),q=require("./functions/utils/getDataFromTransaction.cjs"),lr=require("./functions/utils/reloadPage.cjs"),w=require("./functions/utils/string.utils.cjs"),ur=require("./functions/utils/nickname.utils.cjs"),N=require("./functions/utils/caseInsensitive.utils.cjs"),dr=require("./functions/utils/time.utils.cjs"),gr=require("./functions/utils/volatile-patcher.utils.cjs"),pr=require("./functions/utils/cacheDevice.utils.cjs"),ee=require("./functions/utils/process.utils.cjs"),y=require("./functions/web3/etherFunctions.cjs"),te=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),re=require("./functions/web3/events/getShieldedBalance.cjs"),ie=require("./functions/web3/events/web3RetrieveEvents.cjs"),Ar=require("./functions/web3/events/balanceChangedHandler.cjs"),_=require("./functions/web3/uniswapAPI.cjs"),yr=require("./functions/web3/odosAPI.cjs"),Pr=require("./functions/web3/oneInchAPI.cjs"),Rr=require("./functions/web3/runContractFunction.cjs"),kr=require("./functions/snarkjs/constructGeneralZkProof.cjs"),Tr=require("./functions/snarkjs/constructEmporiumProof.cjs"),c=require("./functions/snarkjs/common.snarkjs.cjs"),mr=require("./functions/snarkjs/generateZkProof.cjs"),hr=require("./functions/protocols/curve.protocols.cjs"),Sr=require("./functions/protocols/convex.protocols.cjs"),S=require("./functions/protocols/pendle.helpers.cjs"),C=require("./functions/staking/index.cjs"),oe=require("./functions/private-wallet/emporium.helpers.cjs"),ne=require("./functions/private-wallet/opProducer.cjs"),ae=require("./types/beefy.types.cjs"),v=require("./types/circom-data.types.cjs"),Cr=require("./types/ethereum-network.types.cjs"),Er=require("./types/external-action.types.cjs"),n=require("./types/hinkal.types.cjs"),E=require("./types/kyc.types.cjs"),Ir=require("./types/token.types.cjs"),se=require("./types/slippage.types.cjs"),br=require("./types/transactions.types.cjs"),r=require("./types/time.types.cjs"),t=require("./types/rewards.types.cjs"),a=require("./types/pendle.types.cjs"),D=require("./types/curve.types.cjs"),qr=require("./types/hinkal.stake.types.cjs"),ce=require("./types/admin.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=le.callOneInchAPI;exports.getBeefyHistoricalChartData=ue.getBeefyHistoricalChartData;exports.callRelayerTransactAPI=de.callRelayerTransactAPI;exports.getAxelarGasEstimate=ge.getAxelarGasEstimate;exports.getGasEstimates=pe.getGasEstimates;exports.getTokenPrice=x.getTokenPrice;exports.getTokenPriceEth=x.getTokenPriceEth;exports.getTokenPrices=x.getTokenPrices;exports.checkRisk=Ae.checkRisk;exports.getIdleRelay=ye.getIdleRelay;exports.API=Pe.API;exports.getCurvePools=m.getCurvePools;exports.getCurvePoolsforPriceFetching=m.getCurvePoolsforPriceFetching;exports.getExtendedPoolInfo=m.getExtendedPoolInfo;exports.lpTokens=m.lpTokens;exports.lpTokensToBasePool=m.lpTokensToBasePool;exports.getRelayerURL=Re.getRelayerURL;exports.getPublicWalletBalance=ke.getPublicWalletBalance;exports.IMAGE_PATHS=Te.IMAGE_PATHS;exports.urlForBeefyVaultTokens=L.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=L.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=L.urlForRegularTokenPricesInBeefy;exports.ethMainnetRegistryFixed=me.networkRegistry;exports.arbMainnetRegistryFixed=he.networkRegistry;exports.bnbMainnetRegistryFixed=Se.networkRegistry;exports.polygonRegistryFixed=Ce.networkRegistry;exports.avalancheRegistryFixed=Ee.networkRegistry;exports.optimismRegistryFixed=Ie.networkRegistry;exports.baseRegistryFixed=be.networkRegistry;exports.ethMainnetRegistry=qe.networkRegistry;exports.arbMainnetRegistry=_e.networkRegistry;exports.bnbMainnetRegistry=ve.networkRegistry;exports.polygonRegistry=De.networkRegistry;exports.avalancheRegistry=xe.networkRegistry;exports.optimismRegistry=Le.networkRegistry;exports.baseRegistry=fe.networkRegistry;exports.localhostRegistry=Fe.networkRegistry;exports.PopularTokenSymbols=Ue.PopularTokenSymbols;exports.getERC20Registry=V.getERC20Registry;exports.getFixedRegistry=V.getFixedRegistry;exports.bnbMainnetData=Me.default;exports.arbMainnetData=Oe.default;exports.ethMainnetData=we.default;exports.optimismData=Ne.default;exports.polygonData=Be.default;exports.avalancheData=Ve.default;exports.baseData=We.default;exports.localhostData=He.default;exports.axelar1Data=Ge.default;exports.axelar2Data=Ke.default;exports.EthereumNetworkType=s.EthereumNetworkType;exports.chainIds=s.chainIds;exports.chainIdsByType=s.chainIdsByType;exports.crossChainAccessTokenNetworks=s.crossChainAccessTokenNetworks;exports.getNonLocalhostChainId=s.getNonLocalhostChainId;exports.isLocalNetwork=s.isLocalNetwork;exports.isOptimismBedrockLike=s.isOptimismBedrockLike;exports.isOptimismEcotoneLike=s.isOptimismEcotoneLike;exports.isOptimismLike=s.isOptimismLike;exports.localhostNetwork=s.localhostNetwork;exports.networkRegistry=s.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=i.API_CONFIG;exports.DATA_SERVER_CONFIG=i.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=i.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=i.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=i.DATA_SERVER_URL_PRODUCTION;exports.PLAYGROUND_RELAYER_URLS=i.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=i.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=i.PLAYGROUND_URL;exports.RELAYER_CONFIG=i.RELAYER_CONFIG;exports.RELAYER_URLS=i.RELAYER_URLS;exports.SERVER_URLS=i.SERVER_URLS;exports.STAGING_RELAYER_URLS=i.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=i.STAGING_SERVER_URLS;exports.STAGING_URL=i.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=o.CIRCOM_P;exports.CIRCOM_P_HALF=o.CIRCOM_P_HALF;exports.beefyChainIds=o.beefyChainIds;exports.crvSymbol=o.crvSymbol;exports.curveWithdrawGasTokenAddress=o.curveWithdrawGasTokenAddress;exports.curveZeroAddress=o.curveZeroAddress;exports.cvxSymbol=o.cvxSymbol;exports.ethVolatileAddress=o.ethVolatileAddress;exports.oneInchZeroAddress=o.oneInchZeroAddress;exports.ownerPublicKey=o.ownerPublicKey;exports.permitSignatureValidFor=o.permitSignatureValidFor;exports.signaturePhrase=o.signaturePhrase;exports.threePoolSymbol=o.threePoolSymbol;exports.zeroAddress=o.zeroAddress;exports.COINGECKO_API_KEY=A.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=A.CoinGeckoChainLabels;exports.coingeckoPriceUrl=A.coingeckoPriceUrl;exports.coingeckoPriceUrl2=A.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=A.coingeckoTokenListUrl;exports.getCoingeckoIdForNativeTokens=A.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=A.getCoingeckoPlatform;exports.proCoingeckoUrl=A.proCoingeckoUrl;exports.proHeader=A.proHeader;exports.AxelarRegistry=Ye.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=Ze.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=Qe.preProcessing;exports.ValueCache=je.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=Xe.Hinkal;exports.hinkalActionBeefy=Je.hinkalActionBeefy;exports.hinkalActionConvex=$e.hinkalActionConvex;exports.hinkalActionCurve=et.hinkalActionCurve;exports.hinkalActionPendle=tt.hinkalActionPendle;exports.hinkalDeposit=Z.hinkalDeposit;exports.hinkalDepositForOther=Z.hinkalDepositForOther;exports.hinkalSwap=rt.hinkalSwap;exports.hinkalTransfer=it.hinkalTransfer;exports.hinkalWithdraw=ot.hinkalWithdraw;exports.hinkalPrivateWallet=nt.hinkalPrivateWallet;exports.resetMerkleTrees=at.resetMerkleTrees;exports.MerkleTree=st.MerkleTree;exports.MerkleTreeIncompleteError=ct.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=lt.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=ut.AbstractCommitmentsSnapshotService;exports.AbstractNullifierSnapshotService=dt.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=gt.AbstractSnapshotService;exports.AbstractEventService=pt.AbstractEventService;exports.Utxo=At.Utxo;exports.customTokenRegistry=yt.customTokenRegistry;exports.TokenChecker=Pt.TokenChecker;exports.TransactionsManager=Rt.TransactionsManager;exports.TransactionType=z.TransactionType;exports.externalActionToTransactionType=z.externalActionToTransactionType;exports.VolatileHelper=kt.VolatileHelper;exports.MultiThreadedUtxoUtils=Tt.MultiThreadedUtxoUtils;exports.FileCacheDevice=mt.FileCacheDevice;exports.LocalStorageCacheDevice=ht.LocalStorageCacheDevice;exports.FeeOverTransactionValueError=St.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=Ct.checkErrorForSnapshotRestore;exports.logError=Et.logError;exports.ErrorCategory=It.ErrorCategory;exports.AmTokenABI=bt.abi;exports.BeefyVaultABI=qt.abi;exports.BUSDABI=_t.abi;exports.CurveReadingWrapperABI=vt.abi;exports.CurveWrappedMainPoolABI=Dt.abi;exports.daiABI=xt.abi;exports.ERC20ABI=Lt.abi;exports.quoterV2ABI=ft.abi;exports.factoryABI=Ft.abi;exports.sanctionsListABI=Ut.abi;exports.USDCABI=Mt.abi;exports.USDRABI=Ot.abi;exports.USDR3CRVABI=wt.abi;exports.USDTABI=Nt.abi;exports.WETHABI=Bt.abi;exports.ISwapRouterABI=Vt.abi;exports.lidoStEthAbi=Wt;exports.lidoStMaticAbi=Ht;exports.lidoWithdrawalQueueERC721Abi=Gt;exports.poLidoNftAbi=Kt;exports.lidoWstEthAbi=Yt;exports.lidoStakeManagerAbi=Zt;exports.transactionProverABI=zt.abi;exports.BabABI=Qt.abi;exports.GalxeABI=jt.abi;exports.optimismGasPriceOracleAbi=Xt;exports.checkHinkalAccessToken=U.checkHinkalAccessToken;exports.mintAccessToken=U.mintAccessToken;exports.mintTokenCrossChain=U.mintTokenCrossChain;exports.openPassportWindow=Jt.openPassportWindow;exports.openDefaultPassportWindow=$t.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=er.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=tr.requireEnv;exports.getSequence=O.getSequence;exports.promisify=O.promisify;exports.resolveSync=O.resolveSync;exports.convertIntegrationProviderToExternalActionId=rr.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=ir.getInteractionFromAction;exports.outputUtxoProcessing=or.outputUtxoProcessing;exports.processGasEstimates=nr.processGasEstimates;exports.processAmountChanges=ar.processAmountChanges;exports.getFlatFees=sr.getFlatFees;exports.getNetworkObject=J.getNetworkObject;exports.getNetworkType=J.getNetworkType;exports.getAxelarMigrationInfo=cr.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=lr.reloadPage;exports.capitalizeFirstLetter=w.capitalizeFirstLetter;exports.isNullOrEmpty=w.isNullOrEmpty;exports.toTitleCase=w.toTitleCase;exports.isNicknameValid=ur.isNicknameValid;exports.caseInsensitiveEqual=N.caseInsensitiveEqual;exports.lowerCaseIncludes=N.lowerCaseIncludes;exports.lowerCaseStartsWith=N.lowerCaseStartsWith;exports.waitLittle=dr.waitLittle;exports.patchRegistry=gr.patchRegistry;exports.createCacheDevice=pr.createCacheDevice;exports.debounce=ee.debounce;exports.wait=ee.wait;exports.calculateDollarValue=y.calculateDollarValue;exports.ethToWei=y.ethToWei;exports.getAmountInToken=y.getAmountInToken;exports.getAmountInWei=y.getAmountInWei;exports.getAmountInWeiOrZero=y.getAmountInWeiOrZero;exports.getAmountWithPrecision=y.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=y.getAmountWithPrecisionOrZero;exports.randomBigInt=y.randomBigInt;exports.toBigIntWithDecimals=y.toBigIntWithDecimals;exports.getInputUtxoAndBalance=te.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=te.getInputUtxosFromEncryptedOutputs;exports.addPaddingToUtxos=re.addPaddingToUtxos;exports.getShieldedBalance=re.getShieldedBalance;exports.getDepositEvents=ie.getDepositEvents;exports.retrieveEvents=ie.retrieveEvents;exports.balanceChangedHandler=Ar.balanceChangedHandler;exports.getUniswapFee=_.getUniswapFee;exports.getUniswapPrice=_.getUniswapPrice;exports.getUniswapPriceHelper=_.getUniswapPriceHelper;exports.searchPoolAndFee=_.searchPoolAndFee;exports.getOdosPrice=yr.getOdosPrice;exports.getOneInchPrice=Pr.getOneInchPrice;exports.runContractFunction=Rr.runContractFunction;exports.constructZkProof=kr.constructZkProof;exports.constructEmporiumProof=Tr.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=mr.generateZkProof;exports.getCRV=hr.getCRV;exports.getCVX=Sr.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=oe.emporiumOp;exports.encodeEmporiumMetadata=oe.encodeEmporiumMetadata;exports.OpType=ne.OpType;exports.produceOp=ne.produceOp;exports.dataBeefyApiConfig=ae.dataBeefyApiConfig;exports.isBeefyDeposit=ae.isBeefyDeposit;exports.defaultHookData=v.defaultHookData;exports.defaultHookDataArray=v.defaultHookDataArray;exports.defaultStealthAddressStructure=v.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=v.emptyStealthAddressStructure;exports.ContractType=Cr.ContractType;exports.ExternalActionId=Er.ExternalActionId;exports.BeefyAction=n.BeefyAction;exports.ConvexAction=n.ConvexAction;exports.CurveAction=n.CurveAction;exports.EventType=n.EventType;exports.HinkalStakeAction=n.HinkalStakeAction;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=Ir.ApprovalType;exports.SlippageType=se.SlippageType;exports.slippageLevels=se.slippageLevels;exports.emptyDecodedTx=br.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=a.PendleAssetType;exports.PendleChains=a.PendleChains;exports.PendleDashboardTabs=a.PendleDashboardTabs;exports.PendleEarnTabs=a.PendleEarnTabs;exports.PendleMarketTransactionTypes=a.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=a.PendlePoolManualTabs;exports.PendlePoolTabs=a.PendlePoolTabs;exports.PendlePoolZapTabs=a.PendlePoolZapTabs;exports.PendleSwapType=a.PendleSwapType;exports.PendleTabs=a.PendleTabs;exports.PendleTradeGeneralTabs=a.PendleTradeGeneralTabs;exports.PendleTradeTabs=a.PendleTradeTabs;exports.StatType=D.StatType;exports.UpperTabPossibleValues=D.UpperTabPossibleValues;exports.curveNetworkNames=D.curveNetworkNames;exports.curvePools=D.curvePools;exports.HinkalStakeMode=qr.HinkalStakeMode;exports.AdminActionType=ce.AdminActionType;exports.AdminDetailedActionType=ce.AdminDetailedActionType;
|
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 T, getTokenPriceEth as P, 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 Te } 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 Tr, uniswapV3QuoterData as Pr } 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 To, CoinGeckoChainLabels as Po, 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 Tt, findSyAddress as Pt, 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 Ta } 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 Ti } 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,7 +127,7 @@ 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 Ts } 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
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";
|
|
@@ -140,7 +140,7 @@ import { convertIntegrationProviderToExternalActionId as dn } from "./functions/
|
|
|
140
140
|
import { getInteractionFromAction as gn } from "./functions/pre-transaction/interaction-to-action.mjs";
|
|
141
141
|
import { outputUtxoProcessing as un } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
|
|
142
142
|
import { processGasEstimates as Rn } from "./functions/pre-transaction/process-gas-estimates.mjs";
|
|
143
|
-
import { processAmountChanges as
|
|
143
|
+
import { processAmountChanges as Pn } from "./functions/pre-transaction/processAmountChanges.mjs";
|
|
144
144
|
import { getFlatFees as Sn } from "./functions/pre-transaction/getFlatFees.mjs";
|
|
145
145
|
import { getNetworkObject as In, getNetworkType as En } from "./functions/utils/evmNetworkFunctions.mjs";
|
|
146
146
|
import { getAxelarMigrationInfo as bn } from "./functions/utils/axelar.utils.mjs";
|
|
@@ -157,7 +157,7 @@ import { debounce as op, wait as tp } from "./functions/utils/process.utils.mjs"
|
|
|
157
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
158
|
import { getInputUtxoAndBalance as gp, getInputUtxosFromEncryptedOutputs as Ap } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
|
|
159
159
|
import { addPaddingToUtxos as yp, getShieldedBalance as Rp } from "./functions/web3/events/getShieldedBalance.mjs";
|
|
160
|
-
import { getDepositEvents as
|
|
160
|
+
import { getDepositEvents as Pp, retrieveEvents as kp } from "./functions/web3/events/web3RetrieveEvents.mjs";
|
|
161
161
|
import { balanceChangedHandler as Cp } from "./functions/web3/events/balanceChangedHandler.mjs";
|
|
162
162
|
import { getUniswapFee as Ep, getUniswapPrice as hp, getUniswapPriceHelper as bp, searchPoolAndFee as Dp } from "./functions/web3/uniswapAPI.mjs";
|
|
163
163
|
import { getOdosPrice as Lp } from "./functions/web3/odosAPI.mjs";
|
|
@@ -172,21 +172,22 @@ import { getCVX as tm } from "./functions/protocols/convex.protocols.mjs";
|
|
|
172
172
|
import { determinePendleSwapType as im, determinePendleSwapTypeApiRoute as sm, erc20TokenFromPendleAsset as nm, getAssetTypeFromPendleMarket as pm, getTokenIndexForPendleFlatFee as mm } from "./functions/protocols/pendle.helpers.mjs";
|
|
173
173
|
import { calculateStakeNullifier as fm, createStakeCommitment as cm, decryptStake as dm, encodeHStakeMetadata as xm, encryptStake as gm } from "./functions/staking/index.mjs";
|
|
174
174
|
import { emporiumOp as um, encodeEmporiumMetadata as ym } from "./functions/private-wallet/emporium.helpers.mjs";
|
|
175
|
-
import { OpType as
|
|
175
|
+
import { OpType as Tm, produceOp as Pm } from "./functions/private-wallet/opProducer.mjs";
|
|
176
176
|
import { dataBeefyApiConfig as Sm, isBeefyDeposit as Cm } from "./types/beefy.types.mjs";
|
|
177
177
|
import { defaultHookData as Em, defaultHookDataArray as hm, defaultStealthAddressStructure as bm, emptyStealthAddressStructure as Dm } from "./types/circom-data.types.mjs";
|
|
178
178
|
import { ContractType as Lm } from "./types/ethereum-network.types.mjs";
|
|
179
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,
|
|
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
|
|
180
|
+
import { BeefyAction as Mm, ConvexAction as Um, CurveAction as Bm, EventType as Nm, HinkalStakeAction as Om, INTERACTION as Vm, IntegrationProvider as Wm, LidoAction as Hm, LidoVariant as Gm, PendleAction as Km, PendleLPAction as Ym, StakeProvider as zm, VolatileAction as Zm } from "./types/hinkal.types.mjs";
|
|
181
|
+
import { KycVerificationResult as Qm, KycVerificationStatus as jm, Passports as Xm, VERIFICATION_TYPE as Jm, VerificationTypes as $m } from "./types/kyc.types.mjs";
|
|
182
|
+
import { ApprovalType as rl } from "./types/token.types.mjs";
|
|
183
|
+
import { SlippageType as tl, slippageLevels as al } from "./types/slippage.types.mjs";
|
|
184
|
+
import { emptyDecodedTx as sl } from "./types/transactions.types.mjs";
|
|
185
|
+
import { MONTHS as pl, dayInMilliseconds as ml, divideMonthOnIntervals as ll, getCurrentWeek as fl, getDateFromWeek as cl, getNextDay as dl, getWeekTimestamps as xl, hasCertificationPeriodExpired as gl, hourInMilliseconds as Al, isWeekCurrent as ul, minuteInMilliseconds as yl, parseWeek as Rl, secondInMilliseconds as Tl, toDateString as Pl, weekInMilliseconds as kl } from "./types/time.types.mjs";
|
|
186
|
+
import { BonusType as Cl, CertifyType as Il, LP_TIER as El, PaymentStatus as hl, PointType as bl, RafflePrizeType as Dl, RewardPage as vl, RewardsHistoryDistribution as Ll, RewardsHistoryEligibility as wl, RewardsHistorySnapshots as _l, RewardsHistoryStatuses as Fl, RewardsPageTabs as Ml, TIER_LEVEL as Ul, Timeline as Bl, emptyUserPointsBreakdown as Nl, emptyUserPointsResponse as Ol } from "./types/rewards.types.mjs";
|
|
187
|
+
import { PendleAssetType as Wl, PendleChains as Hl, PendleDashboardTabs as Gl, PendleEarnTabs as Kl, PendleMarketTransactionTypes as Yl, PendlePoolManualTabs as zl, PendlePoolTabs as Zl, PendlePoolZapTabs as ql, PendleSwapType as Ql, PendleTabs as jl, PendleTradeGeneralTabs as Xl, PendleTradeTabs as Jl } from "./types/pendle.types.mjs";
|
|
188
|
+
import { StatType as ef, UpperTabPossibleValues as rf, curveNetworkNames as of, curvePools as tf } from "./types/curve.types.mjs";
|
|
189
|
+
import { HinkalStakeMode as sf } from "./types/hinkal.stake.types.mjs";
|
|
190
|
+
import { AdminActionType as pf, AdminDetailedActionType as mf } from "./types/admin.types.mjs";
|
|
190
191
|
export {
|
|
191
192
|
ot as ACCESS_TOKEN_MINTING_POINTS,
|
|
192
193
|
Sr as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
@@ -198,20 +199,22 @@ export {
|
|
|
198
199
|
Fa as AbstractEventService,
|
|
199
200
|
va as AbstractNullifierSnapshotService,
|
|
200
201
|
wa as AbstractSnapshotService,
|
|
202
|
+
pf as AdminActionType,
|
|
203
|
+
mf as AdminDetailedActionType,
|
|
201
204
|
yi as AmTokenABI,
|
|
202
|
-
|
|
205
|
+
rl as ApprovalType,
|
|
203
206
|
vo as AxelarRegistry,
|
|
204
207
|
ki as BUSDABI,
|
|
205
208
|
ls as BabABI,
|
|
206
209
|
Mm as BeefyAction,
|
|
207
|
-
|
|
208
|
-
|
|
210
|
+
Ti as BeefyVaultABI,
|
|
211
|
+
Cl as BonusType,
|
|
209
212
|
tt as CERTIFICATION_DISABLE_WEEK,
|
|
210
213
|
ao as CIRCOM_P,
|
|
211
214
|
io as CIRCOM_P_HALF,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
To as COINGECKO_API_KEY,
|
|
216
|
+
Il as CertifyType,
|
|
217
|
+
Po as CoinGeckoChainLabels,
|
|
215
218
|
Lm as ContractType,
|
|
216
219
|
Um as ConvexAction,
|
|
217
220
|
Bm as CurveAction,
|
|
@@ -234,68 +237,69 @@ export {
|
|
|
234
237
|
ir as HINKAL_EXTERNAL_ACTION_FEE,
|
|
235
238
|
sr as HINKAL_UNIVERSAL_FEE,
|
|
236
239
|
$t as Hinkal,
|
|
237
|
-
|
|
240
|
+
Om as HinkalStakeAction,
|
|
241
|
+
sf as HinkalStakeMode,
|
|
238
242
|
V as IMAGE_PATHS,
|
|
239
|
-
|
|
243
|
+
Vm as INTERACTION,
|
|
240
244
|
qi as ISwapRouterABI,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
Wm as IntegrationProvider,
|
|
246
|
+
Qm as KycVerificationResult,
|
|
247
|
+
jm as KycVerificationStatus,
|
|
248
|
+
El as LP_TIER,
|
|
249
|
+
Hm as LidoAction,
|
|
250
|
+
Gm as LidoVariant,
|
|
247
251
|
$a as LocalStorageCacheDevice,
|
|
248
|
-
|
|
252
|
+
pl as MONTHS,
|
|
249
253
|
ka as MerkleTree,
|
|
250
254
|
Ca as MerkleTreeIncompleteError,
|
|
251
255
|
Qa as MultiThreadedUtxoUtils,
|
|
252
256
|
wo as NETWORKS,
|
|
253
|
-
|
|
257
|
+
Tm as OpType,
|
|
254
258
|
Nr as PLAYGROUND_RELAYER_URLS,
|
|
255
259
|
Or as PLAYGROUND_SERVER_URLS,
|
|
256
260
|
Vr as PLAYGROUND_URL,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
261
|
+
Xm as Passports,
|
|
262
|
+
hl as PaymentStatus,
|
|
263
|
+
Km as PendleAction,
|
|
264
|
+
Wl as PendleAssetType,
|
|
265
|
+
Hl as PendleChains,
|
|
266
|
+
Gl as PendleDashboardTabs,
|
|
267
|
+
Kl as PendleEarnTabs,
|
|
268
|
+
Ym as PendleLPAction,
|
|
269
|
+
Yl as PendleMarketTransactionTypes,
|
|
270
|
+
zl as PendlePoolManualTabs,
|
|
271
|
+
Zl as PendlePoolTabs,
|
|
272
|
+
ql as PendlePoolZapTabs,
|
|
273
|
+
Ql as PendleSwapType,
|
|
274
|
+
jl as PendleTabs,
|
|
275
|
+
Xl as PendleTradeGeneralTabs,
|
|
276
|
+
Jl as PendleTradeTabs,
|
|
277
|
+
bl as PointType,
|
|
274
278
|
ke as PopularTokenSymbols,
|
|
275
279
|
Ir as RECLAIM_MESSAGE_TO_SIGN,
|
|
276
280
|
Wr as RELAYER_CONFIG,
|
|
277
281
|
Hr as RELAYER_URLS,
|
|
278
282
|
at as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
279
283
|
it as RafflePrizePoints,
|
|
280
|
-
|
|
284
|
+
Dl as RafflePrizeType,
|
|
281
285
|
Er as ReclaimPassports,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
vl as RewardPage,
|
|
287
|
+
Ll as RewardsHistoryDistribution,
|
|
288
|
+
wl as RewardsHistoryEligibility,
|
|
289
|
+
_l as RewardsHistorySnapshots,
|
|
290
|
+
Fl as RewardsHistoryStatuses,
|
|
291
|
+
Ml as RewardsPageTabs,
|
|
288
292
|
Gr as SERVER_URLS,
|
|
289
293
|
Kr as STAGING_RELAYER_URLS,
|
|
290
294
|
Yr as STAGING_SERVER_URLS,
|
|
291
295
|
zr as STAGING_URL,
|
|
292
|
-
|
|
293
|
-
|
|
296
|
+
tl as SlippageType,
|
|
297
|
+
zm as StakeProvider,
|
|
294
298
|
hr as StandardPassports,
|
|
295
|
-
|
|
299
|
+
ef as StatType,
|
|
296
300
|
br as SupportedPassports,
|
|
297
|
-
|
|
298
|
-
|
|
301
|
+
Ul as TIER_LEVEL,
|
|
302
|
+
Bl as Timeline,
|
|
299
303
|
Va as TokenChecker,
|
|
300
304
|
Ka as TransactionType,
|
|
301
305
|
Ha as TransactionsManager,
|
|
@@ -303,14 +307,14 @@ export {
|
|
|
303
307
|
Hi as USDR3CRVABI,
|
|
304
308
|
Vi as USDRABI,
|
|
305
309
|
Ki as USDTABI,
|
|
306
|
-
|
|
310
|
+
rf as UpperTabPossibleValues,
|
|
307
311
|
si as UserFriendlyErrorCodes,
|
|
308
312
|
qt as UserKeys,
|
|
309
313
|
Ua as Utxo,
|
|
310
|
-
|
|
314
|
+
Jm as VERIFICATION_TYPE,
|
|
311
315
|
Ut as ValueCache,
|
|
312
|
-
|
|
313
|
-
|
|
316
|
+
$m as VerificationTypes,
|
|
317
|
+
Zm as VolatileAction,
|
|
314
318
|
Za as VolatileHelper,
|
|
315
319
|
zi as WETHABI,
|
|
316
320
|
Nt as abiDecodeUtxo,
|
|
@@ -381,15 +385,15 @@ export {
|
|
|
381
385
|
cm as createStakeCommitment,
|
|
382
386
|
je as crossChainAccessTokenNetworks,
|
|
383
387
|
no as crvSymbol,
|
|
384
|
-
|
|
385
|
-
|
|
388
|
+
of as curveNetworkNames,
|
|
389
|
+
tf as curvePools,
|
|
386
390
|
po as curveWithdrawGasTokenAddress,
|
|
387
391
|
mo as curveZeroAddress,
|
|
388
392
|
Na as customTokenRegistry,
|
|
389
393
|
lo as cvxSymbol,
|
|
390
394
|
bi as daiABI,
|
|
391
395
|
Sm as dataBeefyApiConfig,
|
|
392
|
-
|
|
396
|
+
ml as dayInMilliseconds,
|
|
393
397
|
op as debounce,
|
|
394
398
|
js as decodeMetadata,
|
|
395
399
|
_n as decodeTxInput,
|
|
@@ -407,12 +411,12 @@ export {
|
|
|
407
411
|
Mn as deserializeDecodedTxs,
|
|
408
412
|
im as determinePendleSwapType,
|
|
409
413
|
sm as determinePendleSwapTypeApiRoute,
|
|
410
|
-
|
|
414
|
+
ll as divideMonthOnIntervals,
|
|
411
415
|
um as emporiumOp,
|
|
412
|
-
|
|
416
|
+
sl as emptyDecodedTx,
|
|
413
417
|
Dm as emptyStealthAddressStructure,
|
|
414
|
-
|
|
415
|
-
|
|
418
|
+
Nl as emptyUserPointsBreakdown,
|
|
419
|
+
Ol as emptyUserPointsResponse,
|
|
416
420
|
ym as encodeEmporiumMetadata,
|
|
417
421
|
xm as encodeHStakeMetadata,
|
|
418
422
|
gm as encryptStake,
|
|
@@ -423,14 +427,14 @@ export {
|
|
|
423
427
|
Le as ethMainnetData,
|
|
424
428
|
se as ethMainnetRegistry,
|
|
425
429
|
z as ethMainnetRegistryFixed,
|
|
426
|
-
|
|
430
|
+
Tt as ethPendleRegistry,
|
|
427
431
|
Yo as ethSymbol,
|
|
428
432
|
sp as ethToWei,
|
|
429
433
|
fo as ethVolatileAddress,
|
|
430
434
|
Ya as externalActionToTransactionType,
|
|
431
435
|
mi as extractMessage,
|
|
432
436
|
Fi as factoryABI,
|
|
433
|
-
|
|
437
|
+
Pt as findSyAddress,
|
|
434
438
|
vs as fixDecimalsAmount,
|
|
435
439
|
$p as generateZkProof,
|
|
436
440
|
Xs as getActionFromMetadata,
|
|
@@ -460,12 +464,12 @@ export {
|
|
|
460
464
|
n as getCoingeckoPrices,
|
|
461
465
|
p as getCoingeckoTokenList,
|
|
462
466
|
Oo as getCrvCvxWithChainId,
|
|
463
|
-
|
|
467
|
+
fl as getCurrentWeek,
|
|
464
468
|
v as getCurvePools,
|
|
465
469
|
L as getCurvePoolsforPriceFetching,
|
|
466
470
|
o as getDataServerURL,
|
|
467
|
-
|
|
468
|
-
|
|
471
|
+
cl as getDateFromWeek,
|
|
472
|
+
Pp as getDepositEvents,
|
|
469
473
|
Ce as getERC20Registry,
|
|
470
474
|
on as getERC20Token,
|
|
471
475
|
tn as getERC20TokenBySymbol,
|
|
@@ -490,7 +494,7 @@ export {
|
|
|
490
494
|
gn as getInteractionFromAction,
|
|
491
495
|
In as getNetworkObject,
|
|
492
496
|
En as getNetworkType,
|
|
493
|
-
|
|
497
|
+
dl as getNextDay,
|
|
494
498
|
Xe as getNonLocalhostChainId,
|
|
495
499
|
Lp as getOdosPrice,
|
|
496
500
|
_p as getOneInchPrice,
|
|
@@ -503,16 +507,16 @@ export {
|
|
|
503
507
|
Rp as getShieldedBalance,
|
|
504
508
|
xr as getSlippageFee,
|
|
505
509
|
mm as getTokenIndexForPendleFlatFee,
|
|
506
|
-
|
|
507
|
-
|
|
510
|
+
T as getTokenPrice,
|
|
511
|
+
P as getTokenPriceEth,
|
|
508
512
|
k as getTokenPrices,
|
|
509
513
|
Ep as getUniswapFee,
|
|
510
514
|
hp as getUniswapPrice,
|
|
511
515
|
bp as getUniswapPriceHelper,
|
|
512
516
|
Ls as getValueFirstNDigit,
|
|
513
|
-
|
|
517
|
+
xl as getWeekTimestamps,
|
|
514
518
|
St as getYtTokensWithChainId,
|
|
515
|
-
|
|
519
|
+
gl as hasCertificationPeriodExpired,
|
|
516
520
|
ra as hinkalActionBeefy,
|
|
517
521
|
ta as hinkalActionConvex,
|
|
518
522
|
ia as hinkalActionCurve,
|
|
@@ -523,7 +527,7 @@ export {
|
|
|
523
527
|
ca as hinkalSwap,
|
|
524
528
|
xa as hinkalTransfer,
|
|
525
529
|
Aa as hinkalWithdraw,
|
|
526
|
-
|
|
530
|
+
Al as hourInMilliseconds,
|
|
527
531
|
Cm as isBeefyDeposit,
|
|
528
532
|
Xt as isCircomNegative,
|
|
529
533
|
jr as isDevelopment,
|
|
@@ -539,7 +543,7 @@ export {
|
|
|
539
543
|
eo as isPlayground,
|
|
540
544
|
ro as isStaging,
|
|
541
545
|
oo as isWebpack,
|
|
542
|
-
|
|
546
|
+
ul as isWeekCurrent,
|
|
543
547
|
Ct as isYtToken,
|
|
544
548
|
wt as jubHolder,
|
|
545
549
|
ji as lidoStEthAbi,
|
|
@@ -555,7 +559,7 @@ export {
|
|
|
555
559
|
Gs as loadTxsCache,
|
|
556
560
|
We as localhostData,
|
|
557
561
|
or as localhostNetwork,
|
|
558
|
-
|
|
562
|
+
Te as localhostRegistry,
|
|
559
563
|
xi as logError,
|
|
560
564
|
Zn as lowerCaseIncludes,
|
|
561
565
|
qn as lowerCaseStartsWith,
|
|
@@ -567,11 +571,11 @@ export {
|
|
|
567
571
|
ws as minBigInt,
|
|
568
572
|
us as mintAccessToken,
|
|
569
573
|
ys as mintTokenCrossChain,
|
|
570
|
-
|
|
574
|
+
yl as minuteInMilliseconds,
|
|
571
575
|
tr as networkRegistry,
|
|
572
576
|
co as oneInchZeroAddress,
|
|
573
577
|
ks as openDefaultPassportWindow,
|
|
574
|
-
|
|
578
|
+
Ts as openPassportWindow,
|
|
575
579
|
Vo as optimismCrvCvxRegistry,
|
|
576
580
|
_e as optimismData,
|
|
577
581
|
xs as optimismGasPriceOracleAbi,
|
|
@@ -580,7 +584,7 @@ export {
|
|
|
580
584
|
oe as optimismRegistryFixed,
|
|
581
585
|
un as outputUtxoProcessing,
|
|
582
586
|
xo as ownerPublicKey,
|
|
583
|
-
|
|
587
|
+
Rl as parseWeek,
|
|
584
588
|
Jn as patchRegistry,
|
|
585
589
|
go as permitSignatureValidFor,
|
|
586
590
|
os as poLidoNftAbi,
|
|
@@ -596,9 +600,9 @@ export {
|
|
|
596
600
|
Ft as preProcessing,
|
|
597
601
|
ho as proCoingeckoUrl,
|
|
598
602
|
bo as proHeader,
|
|
599
|
-
|
|
603
|
+
Pn as processAmountChanges,
|
|
600
604
|
Rn as processGasEstimates,
|
|
601
|
-
|
|
605
|
+
Pm as produceOp,
|
|
602
606
|
ln as promisify,
|
|
603
607
|
wi as quoterV2ABI,
|
|
604
608
|
lt as raffleProgramStartWeek,
|
|
@@ -607,7 +611,7 @@ export {
|
|
|
607
611
|
Nn as reloadPage,
|
|
608
612
|
nn as requireEnv,
|
|
609
613
|
Ks as resetCache,
|
|
610
|
-
|
|
614
|
+
Ta as resetMerkleTrees,
|
|
611
615
|
fn as resolveSync,
|
|
612
616
|
ai as rethrowKnownGasErrorIfPossible,
|
|
613
617
|
kp as retrieveEvents,
|
|
@@ -615,12 +619,12 @@ export {
|
|
|
615
619
|
Ui as sanctionsListABI,
|
|
616
620
|
Ys as saveTxsCache,
|
|
617
621
|
Dp as searchPoolAndFee,
|
|
618
|
-
|
|
622
|
+
Tl as secondInMilliseconds,
|
|
619
623
|
Xp as serializeCircomData,
|
|
620
624
|
Un as serializeDecodedTxs,
|
|
621
625
|
zs as setHinkalCache,
|
|
622
626
|
Ao as signaturePhrase,
|
|
623
|
-
|
|
627
|
+
al as slippageLevels,
|
|
624
628
|
$o as stMaticSymbol,
|
|
625
629
|
Lr as supportedPassportLinks,
|
|
626
630
|
uo as threePoolSymbol,
|
|
@@ -638,15 +642,15 @@ export {
|
|
|
638
642
|
Os as truncateTo18DecimalPlaces,
|
|
639
643
|
yr as uniswapV2PoolData,
|
|
640
644
|
Rr as uniswapV3FactoryData,
|
|
641
|
-
|
|
642
|
-
|
|
645
|
+
Tr as uniswapV3PoolData,
|
|
646
|
+
Pr as uniswapV3QuoterData,
|
|
643
647
|
H as urlForBeefyVaultTokens,
|
|
644
648
|
G as urlForBeefyVaultTotalInUSD,
|
|
645
649
|
K as urlForRegularTokenPricesInBeefy,
|
|
646
650
|
tp as wait,
|
|
647
651
|
jn as waitLittle,
|
|
648
652
|
Ln as walletSupported,
|
|
649
|
-
|
|
653
|
+
kl as weekInMilliseconds,
|
|
650
654
|
et as wstEthSymbol,
|
|
651
655
|
yo as zeroAddress
|
|
652
656
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hinkal/common",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"homepage": "hinkal.pro",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hinkal Protocol"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"import": "./providers/EthersProviderAdapter.mjs",
|
|
21
21
|
"require": "./providers/EthersProviderAdapter.cjs"
|
|
22
22
|
},
|
|
23
|
-
"./providers/
|
|
24
|
-
"import": "./providers/
|
|
25
|
-
"require": "./providers/
|
|
23
|
+
"./providers/WagmiProviderAdapter": {
|
|
24
|
+
"import": "./providers/WagmiProviderAdapter.mjs",
|
|
25
|
+
"require": "./providers/WagmiProviderAdapter.cjs"
|
|
26
26
|
},
|
|
27
27
|
"./providers/prepareEthersHinkal": {
|
|
28
28
|
"import": "./providers/prepareEthersHinkal.mjs",
|
|
29
29
|
"require": "./providers/prepareEthersHinkal.cjs"
|
|
30
30
|
},
|
|
31
|
-
"./providers/
|
|
32
|
-
"import": "./providers/
|
|
33
|
-
"require": "./providers/
|
|
31
|
+
"./providers/prepareWagmiHinkal": {
|
|
32
|
+
"import": "./providers/prepareWagmiHinkal.mjs",
|
|
33
|
+
"require": "./providers/prepareWagmiHinkal.cjs"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"uuid": "^9.0.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"
|
|
64
|
-
"
|
|
63
|
+
"wagmi": "2.12.24",
|
|
64
|
+
"ethers": "5.x"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
|
-
"
|
|
67
|
+
"wagmi": {
|
|
68
68
|
"optional": true
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../constants/chains.constants.cjs"),h=require("../constants/contracts.constants.cjs"),c=require("../error-handling/error-codes.constants.cjs"),s=require("ethers"),d=require("wagmi"),g=require("../node_modules/@wagmi/core/dist/esm/actions/disconnect.cjs"),w=require("../node_modules/@wagmi/core/dist/esm/actions/connect.cjs"),u=require("../node_modules/@wagmi/core/dist/esm/actions/signMessage.cjs"),f=require("../node_modules/@wagmi/core/dist/esm/actions/switchChain.cjs"),l=require("../node_modules/@wagmi/core/dist/esm/actions/getAccount.cjs"),v=require("../node_modules/@wagmi/core/dist/esm/actions/watchAccount.cjs"),C=require("../node_modules/@wagmi/core/dist/esm/actions/watchChainId.cjs");class a{connector;chainId;originalProvider;fetchProvider;signer;chainEventListener;config;unsubscribeFns=[];initConnector(r){this.connector=r}requireConnector(){if(!this.connector)throw Error("No Connector In Provider Adapter")}initConfig(r){this.config=r}async init(r){this.requireConnector(),r&&(this.chainId=r),this.originalProvider=await this.connector.getProvider(),this.fetchProvider=this.createFetchProvider()??this.originalProvider,this.fetchProvider===this.originalProvider&&console.warn("fetchProvider not available");const t=await this.connector.getProvider(),e=await this.connector.getAccounts();this.signer=await this.walletClientToSigner({transport:t,account:e[0]},this.chainId)}async disconnectFromConnector(){if(!this.config)throw new Error("No Config In Provider Adapter");this.release(),await g.disconnect(this.config)}async connectToConnector(r){if(!this.config)throw new Error("No Config In Provider Adapter");try{return(await w.connect(this.config,{connector:r})).chainId}catch(t){if(t instanceof d.ConnectorAlreadyConnectedError)return r.getChainId();throw console.log(t),new Error(c.transactionErrorCodes.CONNECTION_FAILED)}}async waitForTransaction(r,t){if((await this.fetchProvider?.waitForTransaction(r,t))?.status)return!0;throw Error(c.transactionErrorCodes.TRANSACTION_NOT_CONFIRMED)}async signMessage(r){if(!this.config)throw new Error("No Config In Provider Adapter");const t=await u.signMessage(this.config,{message:r});if(!t)throw new Error(c.transactionErrorCodes.SIGNING_FAILED);if(t.includes("error"))throw new Error(c.transactionErrorCodes.SIGNATURE_UNSUPPORTED_PERSONAL_SIGN);return t}async signTypedData(r,t,e){return this.signer._signTypedData(r,t,e)}getSelectedNetwork=()=>{if(!this.chainId)throw new Error("Illegal state: no chaindId");return i.networkRegistry[this.chainId]};async switchNetwork(r){if(!this.config)throw new Error("No Config In Provider Adapter");return f.switchChain(this.config,{chainId:r.chainId})}createFetchProvider(){try{const t=i.networkRegistry[this.chainId]?.fetchRpcUrl;return t?t.includes("wss")?new s.providers.WebSocketProvider(t):new s.providers.StaticJsonRpcProvider(t):void 0}catch(r){console.log("create Fetch Provider error",r);return}}async getAddress(){if(!this.config)throw new Error("No Config In Provider Adapter");const{address:r}=l.getAccount(this.config);if(!r)throw new Error("IllegalState");return s.utils.getAddress(r)}setChainEventListener(r){if(!this.config)throw new Error("No Config In Provider Adapter");this.chainEventListener=r,this.chainEventListener&&(this.unsubscribeFns.push(v.watchAccount(this.config,{onChange:({address:t},{address:e})=>{if(!this.chainEventListener){console.warn("chainEventListener is not set");return}console.log("Account changed"),t!==e&&(console.log("Account changed"),this.chainEventListener.onAccountChanged())}})),this.unsubscribeFns.push(C.watchChainId(this.config,{onChange:t=>{if(!this.chainEventListener){console.warn("chainEventListener is not set");return}console.log("Chain ID changed!",t),this.chainEventListener.onChainChanged(t)}})))}onAccountChanged(){return this.init()}onChainChanged(r){return this.init(r)}release(){this.removeListeners()}removeListeners(){this.unsubscribeFns.forEach(r=>r()),this.unsubscribeFns=[]}getContractMetadata(r,t){const e=t??this.chainId;if(!e)throw new Error("No chainId provided in context");const n=i.networkRegistry[e];if(!n)throw new Error(c.transactionErrorCodes.UNSUPPORTED_NETWORK);const o=h.contractMetadataMapping[r];if(!o)throw new Error(`Unsupported contractType: ${r}`);return o(n.contractData)}getContract(r,t=void 0,e){const n=this.getContractMetadata(r,e);if(!n.abi)throw new Error(`No ABI configured for contractType: ${r}`);if(n.address&&t)throw new Error(`Overriding address is not supported for contractType: ${r}`);const o=n.address??t;if(!o)throw new Error(`No contractAddress configured for contractType: ${r}`);return new s.ethers.Contract(o,n.abi)}getContractWithSigner(r,t=void 0){if(!this.signer)throw new Error("IllegalState: no signer");return this.getContract(r,t).connect(this.signer)}getContractWithFetcher(r,t=void 0){if(!this.fetchProvider)throw new Error("fetchProvider not initialized");return this.getContract(r,t).connect(this.fetchProvider)}getContractWithFetcherForEthereum(r,t=void 0){const e=this.chainId===i.chainIds.localhost&&i.localhostNetwork===i.chainIds.ethMainnet?i.chainIds.localhost:i.chainIds.ethMainnet;return this.getContract(r,t).connect(new s.ethers.providers.StaticJsonRpcProvider(i.networkRegistry[e].fetchRpcUrl))}async sendTransaction(r){if(!this.signer)throw new Error("IllegalState: no signer");return await this.signer.sendTransaction(r)}async patchExternalProvider(r){const t=await r.getProvider();let e;if(t instanceof s.ethers.providers.Web3Provider?e=t.provider:e=t,"isWalletConnect"in e){const n=await r.getChainId();e.http=e.setHttpProvider?.(n)}}async connectAndPatchProvider(r){const t=await this.connectToConnector(r);return await this.patchExternalProvider(r),t}isPermitterAvailable(){return!!this.getSelectedNetwork()?.contractData?.permitterAddress}async getGasPrice(){const r=await this.fetchProvider?.getGasPrice();if(!r)throw Error("Could not fetch gas price in getGasPrice");return r.toBigInt()}async walletClientToSigner(r,t){const{account:e,transport:n}=r,o={chainId:t,name:""};return new s.providers.Web3Provider(n,o).getSigner(e)}}const p=new a,E=()=>new a;exports.WagmiProviderAdapter=a;exports.default=E;exports.wagmiProviderAdapter=p;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { ChainEventListener, IProviderAdapter } from '../data-structures/provider-adapter/IProviderAdapter';
|
|
2
2
|
import { ContractMetadata, ContractType, EthereumNetwork } from '../types/ethereum-network.types';
|
|
3
3
|
import { ethers } from 'ethers';
|
|
4
|
-
import { type Connector
|
|
5
|
-
export declare class
|
|
4
|
+
import { type Connector } from 'wagmi';
|
|
5
|
+
export declare class WagmiProviderAdapter implements IProviderAdapter<Connector> {
|
|
6
6
|
private connector;
|
|
7
7
|
chainId: number | undefined;
|
|
8
8
|
private originalProvider;
|
|
9
9
|
private fetchProvider;
|
|
10
10
|
private signer;
|
|
11
11
|
private chainEventListener?;
|
|
12
|
+
private config?;
|
|
12
13
|
private unsubscribeFns;
|
|
13
14
|
initConnector(connector: Connector): void;
|
|
14
15
|
requireConnector(): void;
|
|
16
|
+
initConfig(config: any): void;
|
|
15
17
|
init(chainId?: number): Promise<void>;
|
|
16
18
|
disconnectFromConnector(): Promise<void>;
|
|
17
19
|
connectToConnector(connector: Connector): Promise<number>;
|
|
@@ -19,7 +21,7 @@ export declare class Wagmiv1ProviderAdapter implements IProviderAdapter<Connecto
|
|
|
19
21
|
signMessage(message: string): Promise<string>;
|
|
20
22
|
signTypedData(domain: ethers.TypedDataDomain, types: Record<string, ethers.TypedDataField[]>, value: Record<string, unknown>): Promise<string>;
|
|
21
23
|
getSelectedNetwork: () => EthereumNetwork | undefined;
|
|
22
|
-
switchNetwork(network: EthereumNetwork): Promise<import("
|
|
24
|
+
switchNetwork(network: EthereumNetwork): Promise<import("viem").Chain>;
|
|
23
25
|
private createFetchProvider;
|
|
24
26
|
getAddress(): Promise<string>;
|
|
25
27
|
setChainEventListener(chainEventListener: ChainEventListener): void;
|
|
@@ -37,8 +39,8 @@ export declare class Wagmiv1ProviderAdapter implements IProviderAdapter<Connecto
|
|
|
37
39
|
connectAndPatchProvider(connector: Connector): Promise<number>;
|
|
38
40
|
isPermitterAvailable(): boolean;
|
|
39
41
|
getGasPrice(): Promise<bigint>;
|
|
40
|
-
walletClientToSigner(walletClient:
|
|
42
|
+
walletClientToSigner(walletClient: any, chainId: number): Promise<ethers.providers.JsonRpcSigner>;
|
|
41
43
|
}
|
|
42
|
-
export declare const
|
|
44
|
+
export declare const wagmiProviderAdapter: WagmiProviderAdapter;
|
|
43
45
|
declare const _default: <T = unknown>() => IProviderAdapter<T>;
|
|
44
46
|
export default _default;
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import { networkRegistry as s, chainIds as c, localhostNetwork as
|
|
2
|
-
import { contractMetadataMapping as
|
|
1
|
+
import { networkRegistry as s, chainIds as c, localhostNetwork as g } from "../constants/chains.constants.mjs";
|
|
2
|
+
import { contractMetadataMapping as f } from "../constants/contracts.constants.mjs";
|
|
3
3
|
import { transactionErrorCodes as o } from "../error-handling/error-codes.constants.mjs";
|
|
4
|
-
import { providers as a, utils as
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { providers as a, utils as w, ethers as h } from "ethers";
|
|
5
|
+
import { ConnectorAlreadyConnectedError as l } from "wagmi";
|
|
6
|
+
import { disconnect as v } from "../node_modules/@wagmi/core/dist/esm/actions/disconnect.mjs";
|
|
7
|
+
import { connect as u } from "../node_modules/@wagmi/core/dist/esm/actions/connect.mjs";
|
|
8
|
+
import { signMessage as p } from "../node_modules/@wagmi/core/dist/esm/actions/signMessage.mjs";
|
|
9
|
+
import { switchChain as C } from "../node_modules/@wagmi/core/dist/esm/actions/switchChain.mjs";
|
|
10
|
+
import { getAccount as P } from "../node_modules/@wagmi/core/dist/esm/actions/getAccount.mjs";
|
|
11
|
+
import { watchAccount as E } from "../node_modules/@wagmi/core/dist/esm/actions/watchAccount.mjs";
|
|
12
|
+
import { watchChainId as I } from "../node_modules/@wagmi/core/dist/esm/actions/watchChainId.mjs";
|
|
13
|
+
class d {
|
|
7
14
|
connector;
|
|
8
15
|
chainId;
|
|
9
16
|
originalProvider;
|
|
10
17
|
fetchProvider;
|
|
11
18
|
signer;
|
|
12
19
|
chainEventListener;
|
|
20
|
+
config;
|
|
13
21
|
unsubscribeFns = [];
|
|
14
22
|
initConnector(t) {
|
|
15
23
|
this.connector = t;
|
|
@@ -18,21 +26,28 @@ class w {
|
|
|
18
26
|
if (!this.connector)
|
|
19
27
|
throw Error("No Connector In Provider Adapter");
|
|
20
28
|
}
|
|
29
|
+
initConfig(t) {
|
|
30
|
+
this.config = t;
|
|
31
|
+
}
|
|
21
32
|
async init(t) {
|
|
22
33
|
this.requireConnector(), t && (this.chainId = t), this.originalProvider = await this.connector.getProvider(), this.fetchProvider = this.createFetchProvider() ?? this.originalProvider, this.fetchProvider === this.originalProvider && console.warn("fetchProvider not available");
|
|
23
|
-
const r = await this.connector.
|
|
24
|
-
this.signer = await this.walletClientToSigner(r, this.chainId);
|
|
34
|
+
const r = await this.connector.getProvider(), e = await this.connector.getAccounts();
|
|
35
|
+
this.signer = await this.walletClientToSigner({ transport: r, account: e[0] }, this.chainId);
|
|
25
36
|
}
|
|
26
37
|
async disconnectFromConnector() {
|
|
27
|
-
this.
|
|
38
|
+
if (!this.config)
|
|
39
|
+
throw new Error("No Config In Provider Adapter");
|
|
40
|
+
this.release(), await v(this.config);
|
|
28
41
|
}
|
|
29
42
|
async connectToConnector(t) {
|
|
30
|
-
|
|
31
|
-
|
|
43
|
+
if (!this.config)
|
|
44
|
+
throw new Error("No Config In Provider Adapter");
|
|
32
45
|
try {
|
|
33
|
-
return (await
|
|
34
|
-
} catch {
|
|
35
|
-
|
|
46
|
+
return (await u(this.config, { connector: t })).chainId;
|
|
47
|
+
} catch (r) {
|
|
48
|
+
if (r instanceof l)
|
|
49
|
+
return t.getChainId();
|
|
50
|
+
throw console.log(r), new Error(o.CONNECTION_FAILED);
|
|
36
51
|
}
|
|
37
52
|
}
|
|
38
53
|
async waitForTransaction(t, r) {
|
|
@@ -41,7 +56,9 @@ class w {
|
|
|
41
56
|
throw Error(o.TRANSACTION_NOT_CONFIRMED);
|
|
42
57
|
}
|
|
43
58
|
async signMessage(t) {
|
|
44
|
-
|
|
59
|
+
if (!this.config)
|
|
60
|
+
throw new Error("No Config In Provider Adapter");
|
|
61
|
+
const r = await p(this.config, { message: t });
|
|
45
62
|
if (!r)
|
|
46
63
|
throw new Error(o.SIGNING_FAILED);
|
|
47
64
|
if (r.includes("error"))
|
|
@@ -57,7 +74,9 @@ class w {
|
|
|
57
74
|
return s[this.chainId];
|
|
58
75
|
};
|
|
59
76
|
async switchNetwork(t) {
|
|
60
|
-
|
|
77
|
+
if (!this.config)
|
|
78
|
+
throw new Error("No Config In Provider Adapter");
|
|
79
|
+
return C(this.config, { chainId: t.chainId });
|
|
61
80
|
}
|
|
62
81
|
createFetchProvider() {
|
|
63
82
|
try {
|
|
@@ -69,27 +88,35 @@ class w {
|
|
|
69
88
|
}
|
|
70
89
|
}
|
|
71
90
|
async getAddress() {
|
|
72
|
-
|
|
91
|
+
if (!this.config)
|
|
92
|
+
throw new Error("No Config In Provider Adapter");
|
|
93
|
+
const { address: t } = P(this.config);
|
|
73
94
|
if (!t)
|
|
74
95
|
throw new Error("IllegalState");
|
|
75
|
-
return
|
|
96
|
+
return w.getAddress(t);
|
|
76
97
|
}
|
|
77
98
|
setChainEventListener(t) {
|
|
99
|
+
if (!this.config)
|
|
100
|
+
throw new Error("No Config In Provider Adapter");
|
|
78
101
|
this.chainEventListener = t, this.chainEventListener && (this.unsubscribeFns.push(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
E(this.config, {
|
|
103
|
+
onChange: ({ address: r }, { address: e }) => {
|
|
104
|
+
if (!this.chainEventListener) {
|
|
105
|
+
console.warn("chainEventListener is not set");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
console.log("Account changed"), r !== e && (console.log("Account changed"), this.chainEventListener.onAccountChanged());
|
|
83
109
|
}
|
|
84
|
-
this.chainEventListener.onAccountChanged();
|
|
85
110
|
})
|
|
86
111
|
), this.unsubscribeFns.push(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
112
|
+
I(this.config, {
|
|
113
|
+
onChange: (r) => {
|
|
114
|
+
if (!this.chainEventListener) {
|
|
115
|
+
console.warn("chainEventListener is not set");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
console.log("Chain ID changed!", r), this.chainEventListener.onChainChanged(r);
|
|
91
119
|
}
|
|
92
|
-
this.chainEventListener.onChainChanged(r.chain?.id);
|
|
93
120
|
})
|
|
94
121
|
));
|
|
95
122
|
}
|
|
@@ -112,7 +139,7 @@ class w {
|
|
|
112
139
|
const n = s[e];
|
|
113
140
|
if (!n)
|
|
114
141
|
throw new Error(o.UNSUPPORTED_NETWORK);
|
|
115
|
-
const i =
|
|
142
|
+
const i = f[t];
|
|
116
143
|
if (!i)
|
|
117
144
|
throw new Error(`Unsupported contractType: ${t}`);
|
|
118
145
|
return i(n.contractData);
|
|
@@ -139,7 +166,7 @@ class w {
|
|
|
139
166
|
return this.getContract(t, r).connect(this.fetchProvider);
|
|
140
167
|
}
|
|
141
168
|
getContractWithFetcherForEthereum(t, r = void 0) {
|
|
142
|
-
const e = this.chainId === c.localhost &&
|
|
169
|
+
const e = this.chainId === c.localhost && g === c.ethMainnet ? c.localhost : c.ethMainnet;
|
|
143
170
|
return this.getContract(t, r).connect(
|
|
144
171
|
new h.providers.StaticJsonRpcProvider(s[e].fetchRpcUrl)
|
|
145
172
|
);
|
|
@@ -175,12 +202,12 @@ class w {
|
|
|
175
202
|
chainId: r,
|
|
176
203
|
name: ""
|
|
177
204
|
};
|
|
178
|
-
return new a.Web3Provider(n, i).getSigner(e
|
|
205
|
+
return new a.Web3Provider(n, i).getSigner(e);
|
|
179
206
|
}
|
|
180
207
|
}
|
|
181
|
-
const
|
|
208
|
+
const W = new d(), _ = () => new d();
|
|
182
209
|
export {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
210
|
+
d as WagmiProviderAdapter,
|
|
211
|
+
_ as default,
|
|
212
|
+
W as wagmiProviderAdapter
|
|
186
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const u=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const q=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const u=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const q=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const a=require("./EthersProviderAdapter.cjs"),n=async(i,t)=>{await q.preProcessing();const e=new u.Hinkal(t),r=a.default();return r.initSigner?.(i),await e.initProviderAdapter(void 0,r),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareEthersHinkal=n;
|
|
@@ -20,12 +20,12 @@ import "../functions/utils/external-action.utils.mjs";
|
|
|
20
20
|
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
21
21
|
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
22
22
|
import "idb-keyval";
|
|
23
|
-
import
|
|
24
|
-
const
|
|
23
|
+
import e from "./EthersProviderAdapter.mjs";
|
|
24
|
+
const b = async (t, o) => {
|
|
25
25
|
await m();
|
|
26
|
-
const r = new p(o);
|
|
26
|
+
const r = new p(o), i = e();
|
|
27
27
|
return i.initSigner?.(t), await r.initProviderAdapter(void 0, i), await r.initUserKeys(), await r.resetMerkle(), r;
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
b as prepareEthersHinkal
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const u=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const u=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const t=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const r=require("./WagmiProviderAdapter.cjs"),q=async(i,a)=>{await t.preProcessing();const e=new u.Hinkal;return r.wagmiProviderAdapter.initConfig(a),await e.initProviderAdapter(i,r.wagmiProviderAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareWagmiHinkal=q;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "ethers";
|
|
2
2
|
import "circomlibjs-hinkal-fork";
|
|
3
3
|
import "libsodium-wrappers";
|
|
4
|
-
import { Hinkal as
|
|
4
|
+
import { Hinkal as p } from "../data-structures/Hinkal/Hinkal.mjs";
|
|
5
5
|
import "../constants/chains.constants.mjs";
|
|
6
6
|
import "../types/circom-data.types.mjs";
|
|
7
7
|
import "../types/transactions.types.mjs";
|
|
@@ -15,17 +15,17 @@ import "../constants/kyc.constants.mjs";
|
|
|
15
15
|
import "../constants/axelar.constants.mjs";
|
|
16
16
|
import "../constants/rewards.constants.mjs";
|
|
17
17
|
import "../constants/reorg-depths.constants.mjs";
|
|
18
|
-
import { preProcessing as
|
|
18
|
+
import { preProcessing as m } from "../crypto/preProcessing.mjs";
|
|
19
19
|
import "../functions/utils/external-action.utils.mjs";
|
|
20
20
|
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
21
21
|
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
22
22
|
import "idb-keyval";
|
|
23
|
-
import {
|
|
24
|
-
const W = async (
|
|
25
|
-
await
|
|
26
|
-
const
|
|
27
|
-
return await
|
|
23
|
+
import { wagmiProviderAdapter as r } from "./WagmiProviderAdapter.mjs";
|
|
24
|
+
const W = async (t, o) => {
|
|
25
|
+
await m();
|
|
26
|
+
const i = new p();
|
|
27
|
+
return r.initConfig(o), await i.initProviderAdapter(t, r), await i.initUserKeys(), await i.resetMerkle(), i;
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
|
-
W as
|
|
30
|
+
W as prepareWagmiHinkal
|
|
31
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a=(r=>(r.Internal="Internal",r.External="External",r))(a||{}),s=(r=>(r.Deposit="Deposit",r.WithdrawWithRelayer="Withdraw With Relayer",r.WithdrawWithoutRelayer="Withdraw Without Relayer",r.MintAccessToken="Mint Access Token",r.Aave="Aave",r.Odos="Odos",r.Uniswap="Uniswap",r.OneInch="1Inch",r.Curve="Curve",r.Convex="Convex",r.Transact="Transact",r.Beefy="Beefy",r.Volatile="Volatile",r.Lido="Lido",r.Pendle="Pendle",r.HinkalStake="HinkalStake",r))(s||{});exports.AdminActionType=a;exports.AdminDetailedActionType=s;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum AdminActionType {
|
|
2
|
+
Internal = "Internal",
|
|
3
|
+
External = "External"
|
|
4
|
+
}
|
|
5
|
+
export declare enum AdminDetailedActionType {
|
|
6
|
+
Deposit = "Deposit",
|
|
7
|
+
WithdrawWithRelayer = "Withdraw With Relayer",
|
|
8
|
+
WithdrawWithoutRelayer = "Withdraw Without Relayer",
|
|
9
|
+
MintAccessToken = "Mint Access Token",
|
|
10
|
+
Aave = "Aave",
|
|
11
|
+
Odos = "Odos",
|
|
12
|
+
Uniswap = "Uniswap",
|
|
13
|
+
OneInch = "1Inch",
|
|
14
|
+
Curve = "Curve",
|
|
15
|
+
Convex = "Convex",
|
|
16
|
+
Transact = "Transact",
|
|
17
|
+
Beefy = "Beefy",
|
|
18
|
+
Volatile = "Volatile",
|
|
19
|
+
Lido = "Lido",
|
|
20
|
+
Pendle = "Pendle",
|
|
21
|
+
HinkalStake = "HinkalStake"
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var a = /* @__PURE__ */ ((r) => (r.Internal = "Internal", r.External = "External", r))(a || {}), s = /* @__PURE__ */ ((r) => (r.Deposit = "Deposit", r.WithdrawWithRelayer = "Withdraw With Relayer", r.WithdrawWithoutRelayer = "Withdraw Without Relayer", r.MintAccessToken = "Mint Access Token", r.Aave = "Aave", r.Odos = "Odos", r.Uniswap = "Uniswap", r.OneInch = "1Inch", r.Curve = "Curve", r.Convex = "Convex", r.Transact = "Transact", r.Beefy = "Beefy", r.Volatile = "Volatile", r.Lido = "Lido", r.Pendle = "Pendle", r.HinkalStake = "HinkalStake", r))(s || {});
|
|
2
|
+
export {
|
|
3
|
+
a as AdminActionType,
|
|
4
|
+
s as AdminDetailedActionType
|
|
5
|
+
};
|
package/types/hinkal.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),S=(a=>(a[a.UNISWAP=1]="UNISWAP",a[a.ODOS=2]="ODOS",a[a.ONEINCH=3]="ONEINCH",a[a.PENDLE=4]="PENDLE",a[a.ALL=5]="ALL",a[a.NONE=6]="NONE",a))(S||{}),D=(a=>(a[a.CurveAavePool=0]="CurveAavePool",a))(D||{}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),S=(a=>(a[a.UNISWAP=1]="UNISWAP",a[a.ODOS=2]="ODOS",a[a.ONEINCH=3]="ONEINCH",a[a.PENDLE=4]="PENDLE",a[a.ALL=5]="ALL",a[a.NONE=6]="NONE",a))(S||{}),D=(a=>(a[a.CurveAavePool=0]="CurveAavePool",a))(D||{}),r=(a=>(a[a.Deposit=0]="Deposit",a[a.WithdrawInt=11]="WithdrawInt",a[a.WithdrawUint=12]="WithdrawUint",a[a.WithdrawImbalance=13]="WithdrawImbalance",a[a.Stake=2]="Stake",a[a.Unstake=3]="Unstake",a[a.GetCRV=4]="GetCRV",a))(r||{}),_=(a=>(a[a.StakeLP=0]="StakeLP",a[a.UnStakeLP=1]="UnStakeLP",a[a.ClaimRewardsLP=2]="ClaimRewardsLP",a))(_||{}),L=(a=>(a[a.Deposit=0]="Deposit",a[a.DepositRegular=1]="DepositRegular",a[a.DepositOneInchSingle=2]="DepositOneInchSingle",a[a.DepositOneInchUniswap=3]="DepositOneInchUniswap",a[a.DepositOneInchSolidly=4]="DepositOneInchSolidly",a[a.Withdraw=5]="Withdraw",a[a.WithdrawRegular=6]="WithdrawRegular",a[a.WithdrawOneInchSingle=7]="WithdrawOneInchSingle",a[a.WithdrawOneInchUniswapAndSolidly=8]="WithdrawOneInchUniswapAndSolidly",a[a.WithdrawBoth=9]="WithdrawBoth",a[a.Stake=10]="Stake",a[a.Unstake=11]="Unstake",a[a.GetRewards=12]="GetRewards",a))(L||{}),h=(a=>(a.Ethereum="Ethereum",a.Polygon="Polygon",a))(h||{}),W=(a=>(a[a.Stake=0]="Stake",a[a.Request=1]="Request",a[a.Claim=2]="Claim",a))(W||{}),s=(a=>(a[a.Deposit=0]="Deposit",a[a.Withdraw=1]="Withdraw",a[a.SwapFromYt=2]="SwapFromYt",a[a.SwapToYt=3]="SwapToYt",a[a.SwapPt=4]="SwapPt",a[a.Mint=5]="Mint",a[a.Redeem=6]="Redeem",a[a.Checkpoint=7]="Checkpoint",a[a.PoolRemove=8]="PoolRemove",a))(s||{}),w=(a=>(a[a.AddOrRemoveLiquidity=0]="AddOrRemoveLiquidity",a[a.Checkpoint=1]="Checkpoint",a[a.Invalid=99]="Invalid",a))(w||{}),p=(a=>(a[a.Persist=0]="Persist",a[a.Deposit=1]="Deposit",a[a.Withdraw=2]="Withdraw",a[a.Swap=3]="Swap",a))(p||{}),U=(a=>(a[a.DepositOrStake=0]="DepositOrStake",a[a.Unstake=1]="Unstake",a))(U||{}),e=(a=>(a.WITHDRAW="WITHDRAW",a.SWAP="SWAP",a.CURVE_DEPOSIT="CURVE_DEPOSIT",a.CURVE_WITHDRAW="CURVE_WITHDRAW",a.CURVE_WITHDRAW_INBALANCED="CURVE_WITHDRAW_INBALANCED",a.STAKING="STAKING",a.UNSTAKING="UNSTAKING",a.CLAIMING="CLAIMING",a.BEEFY="BEEFY",a.BEEFY_STAKE="BEEFY_STAKE",a.BEEFY_UNSTAKE="BEEFY_UNSTAKE",a.BEEFY_GET_REWARDS="BEEFY_GET_REWARDS",a.LIDO_STAKE="LIDO_STAKE",a.LIDO_REQUEST="LIDO_REQUEST",a.LIDO_CLAIM="LIDO_CLAIM",a.PENDLE_TRANSACT="PENDLE_TRANSACT",a.PENDLE_YT_IN_SWAP="PENDLE_YT_IN_SWAP",a.PENDLE_YT_OUT_SWAP="PENDLE_YT_OUT_SWAP",a.PENDLE_PT_SWAP="PENDLE_PT_SWAP",a.PENDLE_MINT="PENDLE_MINT",a.PENDLE_REDEEM="PENDLE_REDEEM",a.PENDLE_CLAIM="PENDLE_CLAIM",a.PENDLE_LP="PENDLE_LP",a.PENDLE_LP_CLAIM="PENDLE_LP_CLAIM",a.VOLATILE_WITHDRAW="VOLATILE_WITHDRAW",a.VOLATILE_SWAP="VOLATILE_SWAP",a.EMPORIUM="EMPORIUM",a.NONE="NONE",a))(e||{});exports.BeefyAction=L;exports.ConvexAction=_;exports.CurveAction=r;exports.EventType=E;exports.HinkalStakeAction=U;exports.INTERACTION=e;exports.IntegrationProvider=S;exports.LidoAction=W;exports.LidoVariant=h;exports.PendleAction=s;exports.PendleLPAction=w;exports.StakeProvider=D;exports.VolatileAction=p;
|
package/types/hinkal.types.d.ts
CHANGED
|
@@ -96,6 +96,10 @@ export declare enum VolatileAction {
|
|
|
96
96
|
Withdraw = 2,
|
|
97
97
|
Swap = 3
|
|
98
98
|
}
|
|
99
|
+
export declare enum HinkalStakeAction {
|
|
100
|
+
DepositOrStake = 0,
|
|
101
|
+
Unstake = 1
|
|
102
|
+
}
|
|
99
103
|
export type VolatileHelperData = {
|
|
100
104
|
action: VolatileAction;
|
|
101
105
|
isRelayerOff?: boolean;
|
package/types/hinkal.types.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
var E = /* @__PURE__ */ ((a) => (a.BalanceChange = "BalanceChange", a.NetworkChange = "NetworkChange", a.KycNeeded = "KycNeeded", a.AccountChanged = "AccountChanged", a.ShowConnect = "ShowConnect", a.ShowNetworkPopup = "ShowNetworkPopup", a.MerkleTreeUpdated = "MerkleTreeUpdated", a.MerkleTreeResetStarted = "MerkleTreeResetStarted", a.MerkleTreeResetFinished = "MerkleTreeResetFinished", a))(E || {}),
|
|
1
|
+
var E = /* @__PURE__ */ ((a) => (a.BalanceChange = "BalanceChange", a.NetworkChange = "NetworkChange", a.KycNeeded = "KycNeeded", a.AccountChanged = "AccountChanged", a.ShowConnect = "ShowConnect", a.ShowNetworkPopup = "ShowNetworkPopup", a.MerkleTreeUpdated = "MerkleTreeUpdated", a.MerkleTreeResetStarted = "MerkleTreeResetStarted", a.MerkleTreeResetFinished = "MerkleTreeResetFinished", a))(E || {}), D = /* @__PURE__ */ ((a) => (a[a.UNISWAP = 1] = "UNISWAP", a[a.ODOS = 2] = "ODOS", a[a.ONEINCH = 3] = "ONEINCH", a[a.PENDLE = 4] = "PENDLE", a[a.ALL = 5] = "ALL", a[a.NONE = 6] = "NONE", a))(D || {}), S = /* @__PURE__ */ ((a) => (a[a.CurveAavePool = 0] = "CurveAavePool", a))(S || {}), _ = /* @__PURE__ */ ((a) => (a[a.Deposit = 0] = "Deposit", a[a.WithdrawInt = 11] = "WithdrawInt", a[a.WithdrawUint = 12] = "WithdrawUint", a[a.WithdrawImbalance = 13] = "WithdrawImbalance", a[a.Stake = 2] = "Stake", a[a.Unstake = 3] = "Unstake", a[a.GetCRV = 4] = "GetCRV", a))(_ || {}), h = /* @__PURE__ */ ((a) => (a[a.StakeLP = 0] = "StakeLP", a[a.UnStakeLP = 1] = "UnStakeLP", a[a.ClaimRewardsLP = 2] = "ClaimRewardsLP", a))(h || {}), W = /* @__PURE__ */ ((a) => (a[a.Deposit = 0] = "Deposit", a[a.DepositRegular = 1] = "DepositRegular", a[a.DepositOneInchSingle = 2] = "DepositOneInchSingle", a[a.DepositOneInchUniswap = 3] = "DepositOneInchUniswap", a[a.DepositOneInchSolidly = 4] = "DepositOneInchSolidly", a[a.Withdraw = 5] = "Withdraw", a[a.WithdrawRegular = 6] = "WithdrawRegular", a[a.WithdrawOneInchSingle = 7] = "WithdrawOneInchSingle", a[a.WithdrawOneInchUniswapAndSolidly = 8] = "WithdrawOneInchUniswapAndSolidly", a[a.WithdrawBoth = 9] = "WithdrawBoth", a[a.Stake = 10] = "Stake", a[a.Unstake = 11] = "Unstake", a[a.GetRewards = 12] = "GetRewards", a))(W || {}), r = /* @__PURE__ */ ((a) => (a.Ethereum = "Ethereum", a.Polygon = "Polygon", a))(r || {}), L = /* @__PURE__ */ ((a) => (a[a.Stake = 0] = "Stake", a[a.Request = 1] = "Request", a[a.Claim = 2] = "Claim", a))(L || {}), s = /* @__PURE__ */ ((a) => (a[a.Deposit = 0] = "Deposit", a[a.Withdraw = 1] = "Withdraw", a[a.SwapFromYt = 2] = "SwapFromYt", a[a.SwapToYt = 3] = "SwapToYt", a[a.SwapPt = 4] = "SwapPt", a[a.Mint = 5] = "Mint", a[a.Redeem = 6] = "Redeem", a[a.Checkpoint = 7] = "Checkpoint", a[a.PoolRemove = 8] = "PoolRemove", a))(s || {}), w = /* @__PURE__ */ ((a) => (a[a.AddOrRemoveLiquidity = 0] = "AddOrRemoveLiquidity", a[a.Checkpoint = 1] = "Checkpoint", a[a.Invalid = 99] = "Invalid", a))(w || {}), U = /* @__PURE__ */ ((a) => (a[a.Persist = 0] = "Persist", a[a.Deposit = 1] = "Deposit", a[a.Withdraw = 2] = "Withdraw", a[a.Swap = 3] = "Swap", a))(U || {}), p = /* @__PURE__ */ ((a) => (a[a.DepositOrStake = 0] = "DepositOrStake", a[a.Unstake = 1] = "Unstake", a))(p || {}), k = /* @__PURE__ */ ((a) => (a.WITHDRAW = "WITHDRAW", a.SWAP = "SWAP", a.CURVE_DEPOSIT = "CURVE_DEPOSIT", a.CURVE_WITHDRAW = "CURVE_WITHDRAW", a.CURVE_WITHDRAW_INBALANCED = "CURVE_WITHDRAW_INBALANCED", a.STAKING = "STAKING", a.UNSTAKING = "UNSTAKING", a.CLAIMING = "CLAIMING", a.BEEFY = "BEEFY", a.BEEFY_STAKE = "BEEFY_STAKE", a.BEEFY_UNSTAKE = "BEEFY_UNSTAKE", a.BEEFY_GET_REWARDS = "BEEFY_GET_REWARDS", a.LIDO_STAKE = "LIDO_STAKE", a.LIDO_REQUEST = "LIDO_REQUEST", a.LIDO_CLAIM = "LIDO_CLAIM", a.PENDLE_TRANSACT = "PENDLE_TRANSACT", a.PENDLE_YT_IN_SWAP = "PENDLE_YT_IN_SWAP", a.PENDLE_YT_OUT_SWAP = "PENDLE_YT_OUT_SWAP", a.PENDLE_PT_SWAP = "PENDLE_PT_SWAP", a.PENDLE_MINT = "PENDLE_MINT", a.PENDLE_REDEEM = "PENDLE_REDEEM", a.PENDLE_CLAIM = "PENDLE_CLAIM", a.PENDLE_LP = "PENDLE_LP", a.PENDLE_LP_CLAIM = "PENDLE_LP_CLAIM", a.VOLATILE_WITHDRAW = "VOLATILE_WITHDRAW", a.VOLATILE_SWAP = "VOLATILE_SWAP", a.EMPORIUM = "EMPORIUM", a.NONE = "NONE", a))(k || {});
|
|
2
2
|
export {
|
|
3
3
|
W as BeefyAction,
|
|
4
4
|
h as ConvexAction,
|
|
5
5
|
_ as CurveAction,
|
|
6
6
|
E as EventType,
|
|
7
|
-
p as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
L as
|
|
11
|
-
|
|
12
|
-
s as
|
|
13
|
-
|
|
7
|
+
p as HinkalStakeAction,
|
|
8
|
+
k as INTERACTION,
|
|
9
|
+
D as IntegrationProvider,
|
|
10
|
+
L as LidoAction,
|
|
11
|
+
r as LidoVariant,
|
|
12
|
+
s as PendleAction,
|
|
13
|
+
w as PendleLPAction,
|
|
14
|
+
S as StakeProvider,
|
|
14
15
|
U as VolatileAction
|
|
15
16
|
};
|
package/types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../constants/chains.constants.cjs"),d=require("../constants/contracts.constants.cjs"),a=require("../error-handling/error-codes.constants.cjs"),c=require("ethers"),o=require("@wagmi/core");class h{connector;chainId;originalProvider;fetchProvider;signer;chainEventListener;unsubscribeFns=[];initConnector(t){this.connector=t}requireConnector(){if(!this.connector)throw Error("No Connector In Provider Adapter")}async init(t){this.requireConnector(),t&&(this.chainId=t),this.originalProvider=await this.connector.getProvider(),this.fetchProvider=this.createFetchProvider()??this.originalProvider,this.fetchProvider===this.originalProvider&&console.warn("fetchProvider not available");const r=await this.connector.getWalletClient();this.signer=await this.walletClientToSigner(r,this.chainId)}async disconnectFromConnector(){this.release(),await o.disconnect()}async connectToConnector(t){const{isConnected:r}=o.getAccount();r&&await this.disconnectFromConnector();try{return(await o.connect({connector:t})).chain.id}catch{throw new Error(a.transactionErrorCodes.CONNECTION_FAILED)}}async waitForTransaction(t,r){if((await this.fetchProvider?.waitForTransaction(t,r))?.status)return!0;throw Error(a.transactionErrorCodes.TRANSACTION_NOT_CONFIRMED)}async signMessage(t){const r=await o.signMessage({message:t});if(!r)throw new Error(a.transactionErrorCodes.SIGNING_FAILED);if(r.includes("error"))throw new Error(a.transactionErrorCodes.SIGNATURE_UNSUPPORTED_PERSONAL_SIGN);return r}async signTypedData(t,r,e){return this.signer._signTypedData(t,r,e)}getSelectedNetwork=()=>{if(!this.chainId)throw new Error("Illegal state: no chaindId");return i.networkRegistry[this.chainId]};async switchNetwork(t){return o.switchNetwork({chainId:t.chainId})}createFetchProvider(){try{const r=i.networkRegistry[this.chainId]?.fetchRpcUrl;return r?r.includes("wss")?new c.providers.WebSocketProvider(r):new c.providers.StaticJsonRpcProvider(r):void 0}catch(t){console.log("create Fetch Provider error",t);return}}async getAddress(){const{address:t}=o.getAccount();if(!t)throw new Error("IllegalState");return c.utils.getAddress(t)}setChainEventListener(t){this.chainEventListener=t,this.chainEventListener&&(this.unsubscribeFns.push(o.watchAccount(r=>{if(!this.chainEventListener){console.warn("chainEventListener is not set");return}this.chainEventListener.onAccountChanged()})),this.unsubscribeFns.push(o.watchNetwork(r=>{if(!this.chainEventListener){console.warn("chainEventListener is not set");return}this.chainEventListener.onChainChanged(r.chain?.id)})))}onAccountChanged(){return this.init()}onChainChanged(t){return this.init(t)}release(){this.removeListeners()}removeListeners(){this.unsubscribeFns.forEach(t=>t()),this.unsubscribeFns=[]}getContractMetadata(t,r){const e=r??this.chainId;if(!e)throw new Error("No chainId provided in context");const n=i.networkRegistry[e];if(!n)throw new Error(a.transactionErrorCodes.UNSUPPORTED_NETWORK);const s=d.contractMetadataMapping[t];if(!s)throw new Error(`Unsupported contractType: ${t}`);return s(n.contractData)}getContract(t,r=void 0,e){const n=this.getContractMetadata(t,e);if(!n.abi)throw new Error(`No ABI configured for contractType: ${t}`);if(n.address&&r)throw new Error(`Overriding address is not supported for contractType: ${t}`);const s=n.address??r;if(!s)throw new Error(`No contractAddress configured for contractType: ${t}`);return new c.ethers.Contract(s,n.abi)}getContractWithSigner(t,r=void 0){if(!this.signer)throw new Error("IllegalState: no signer");return this.getContract(t,r).connect(this.signer)}getContractWithFetcher(t,r=void 0){if(!this.fetchProvider)throw new Error("fetchProvider not initialized");return this.getContract(t,r).connect(this.fetchProvider)}getContractWithFetcherForEthereum(t,r=void 0){const e=this.chainId===i.chainIds.localhost&&i.localhostNetwork===i.chainIds.ethMainnet?i.chainIds.localhost:i.chainIds.ethMainnet;return this.getContract(t,r).connect(new c.ethers.providers.StaticJsonRpcProvider(i.networkRegistry[e].fetchRpcUrl))}async sendTransaction(t){if(!this.signer)throw new Error("IllegalState: no signer");return await this.signer.sendTransaction(t)}async patchExternalProvider(t){const r=await t.getProvider();let e;if(r instanceof c.ethers.providers.Web3Provider?e=r.provider:e=r,"isWalletConnect"in e){const n=await t.getChainId();e.http=e.setHttpProvider?.(n)}}async connectAndPatchProvider(t){const r=await this.connectToConnector(t);return await this.patchExternalProvider(t),r}isPermitterAvailable(){return!!this.getSelectedNetwork()?.contractData?.permitterAddress}async getGasPrice(){const t=await this.fetchProvider?.getGasPrice();if(!t)throw Error("Could not fetch gas price in getGasPrice");return t.toBigInt()}async walletClientToSigner(t,r){const{account:e,transport:n}=t,s={chainId:r,name:""};return new c.providers.Web3Provider(n,s).getSigner(e.address)}}const w=new h,g=()=>new h;exports.Wagmiv1ProviderAdapter=h;exports.default=g;exports.wagmiv1ProvierAdapter=w;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Hinkal } from '../data-structures';
|
|
2
|
-
import { type Connector } from 'wagmi';
|
|
3
|
-
import { type HinkalConfig } from '../types/hinkal.types';
|
|
4
|
-
export declare const prepareWagmiv1EthersHinkal: (connector: Connector, hinkalConfig?: HinkalConfig) => Promise<Hinkal<Connector>>;
|