@berachain/berajs 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BeraError-D1HS_rbb.d.cts → BeraError-_mQdkanr.d.cts} +35 -10
- package/dist/{BeraError-D1HS_rbb.d.ts → BeraError-_mQdkanr.d.ts} +35 -10
- package/dist/HoneyConfigProvider-CK6mOKFH.d.ts +390 -0
- package/dist/HoneyConfigProvider-Ca3ouozs.d.cts +390 -0
- package/dist/{RequestError-D8AE6xnI.d.cts → RequestError-A8XJ6QR9.d.cts} +1 -1
- package/dist/{RequestError-m4jxyM7D.d.ts → RequestError-Dk97z8rm.d.ts} +1 -1
- package/dist/abi/exports.cjs +2 -0
- package/dist/abi/exports.cjs.map +1 -0
- package/dist/abi/{index.d.cts → exports.d.cts} +12369 -9122
- package/dist/abi/{index.d.ts → exports.d.ts} +12369 -9122
- package/dist/abi/exports.mjs +2 -0
- package/dist/abi/exports.mjs.map +1 -0
- package/dist/actions/exports.cjs +2 -0
- package/dist/actions/exports.cjs.map +1 -0
- package/dist/actions/{index.d.cts → exports.d.cts} +80 -107
- package/dist/actions/{index.d.ts → exports.d.ts} +80 -107
- package/dist/actions/exports.mjs +2 -0
- package/dist/actions/exports.mjs.map +1 -0
- package/dist/chunk-575OK77P.mjs +2 -0
- package/dist/chunk-575OK77P.mjs.map +1 -0
- package/dist/chunk-7GWTHOLO.mjs +2 -0
- package/dist/chunk-7GWTHOLO.mjs.map +1 -0
- package/dist/chunk-7SC4VD3U.cjs +2 -0
- package/dist/chunk-7SC4VD3U.cjs.map +1 -0
- package/dist/chunk-BHNQX4XC.mjs +2 -0
- package/dist/chunk-BHNQX4XC.mjs.map +1 -0
- package/dist/chunk-BOYZVULX.cjs +2 -0
- package/dist/chunk-BOYZVULX.cjs.map +1 -0
- package/dist/chunk-C3FHGFLK.mjs +2 -0
- package/dist/chunk-C3FHGFLK.mjs.map +1 -0
- package/dist/chunk-C3G5KXCH.mjs +2 -0
- package/dist/chunk-C3G5KXCH.mjs.map +1 -0
- package/dist/chunk-CYKCYPFR.cjs +2 -0
- package/dist/chunk-CYKCYPFR.cjs.map +1 -0
- package/dist/chunk-F4BKSBEM.mjs +2 -0
- package/dist/chunk-F4BKSBEM.mjs.map +1 -0
- package/dist/chunk-FL2N3XHK.cjs +2 -0
- package/dist/chunk-FL2N3XHK.cjs.map +1 -0
- package/dist/chunk-G6NA6NSM.mjs +4 -0
- package/dist/chunk-G6NA6NSM.mjs.map +1 -0
- package/dist/chunk-H2QSRMVS.mjs +2 -0
- package/dist/chunk-H2QSRMVS.mjs.map +1 -0
- package/dist/chunk-IJM76AWK.cjs +4 -0
- package/dist/chunk-IJM76AWK.cjs.map +1 -0
- package/dist/chunk-MTS5SZLA.mjs +2 -0
- package/dist/chunk-MTS5SZLA.mjs.map +1 -0
- package/dist/chunk-MUNAP5TM.cjs +2 -0
- package/dist/chunk-MUNAP5TM.cjs.map +1 -0
- package/dist/chunk-NAXAZJJY.mjs +2 -0
- package/dist/chunk-NAXAZJJY.mjs.map +1 -0
- package/dist/chunk-OGJMSGB2.mjs +2 -0
- package/dist/chunk-OGJMSGB2.mjs.map +1 -0
- package/dist/chunk-OIYXOKTT.cjs +2 -0
- package/dist/chunk-OIYXOKTT.cjs.map +1 -0
- package/dist/chunk-OS5AJMYJ.cjs +2 -0
- package/dist/chunk-OS5AJMYJ.cjs.map +1 -0
- package/dist/chunk-Q3SCM6WL.mjs +2 -0
- package/dist/chunk-Q3SCM6WL.mjs.map +1 -0
- package/dist/chunk-SWMJQOH6.cjs +2 -0
- package/dist/chunk-SWMJQOH6.cjs.map +1 -0
- package/dist/chunk-TEBJWAVU.mjs +2 -0
- package/dist/chunk-TEBJWAVU.mjs.map +1 -0
- package/dist/chunk-TJWKS54T.mjs +2 -0
- package/dist/chunk-TJWKS54T.mjs.map +1 -0
- package/dist/chunk-UQUWMHVF.cjs +2 -0
- package/dist/chunk-UQUWMHVF.cjs.map +1 -0
- package/dist/chunk-UXUWSRVV.cjs +2 -0
- package/dist/chunk-UXUWSRVV.cjs.map +1 -0
- package/dist/chunk-VP7XUOSI.cjs +2 -0
- package/dist/chunk-VP7XUOSI.cjs.map +1 -0
- package/dist/chunk-VXL2ZZ4X.cjs +2 -0
- package/dist/chunk-VXL2ZZ4X.cjs.map +1 -0
- package/dist/chunk-WRFDB3QJ.cjs +2 -0
- package/dist/chunk-WRFDB3QJ.cjs.map +1 -0
- package/dist/chunk-WTCBORPB.cjs +2 -0
- package/dist/chunk-WTCBORPB.cjs.map +1 -0
- package/dist/chunk-XNJLSA6P.cjs +2 -0
- package/dist/chunk-XNJLSA6P.cjs.map +1 -0
- package/dist/chunk-YQGZMWDT.mjs +2 -0
- package/dist/chunk-YQGZMWDT.mjs.map +1 -0
- package/dist/chunk-YXLFOEZN.mjs +2 -0
- package/dist/chunk-YXLFOEZN.mjs.map +1 -0
- package/dist/chunk-ZAKA4TGK.cjs +2 -0
- package/dist/chunk-ZAKA4TGK.cjs.map +1 -0
- package/dist/chunk-ZQRACIGR.mjs +2 -0
- package/dist/chunk-ZQRACIGR.mjs.map +1 -0
- package/dist/contexts/exports.cjs +2 -0
- package/dist/contexts/exports.cjs.map +1 -0
- package/dist/contexts/{index.d.ts → exports.d.cts} +19 -28
- package/dist/contexts/{index.d.cts → exports.d.ts} +19 -28
- package/dist/contexts/exports.mjs +2 -0
- package/dist/contexts/exports.mjs.map +1 -0
- package/dist/contracts-CQIPk0Jc.d.cts +74 -0
- package/dist/contracts-CQIPk0Jc.d.ts +74 -0
- package/dist/{defaultFlags-V-tJs2K8.d.cts → defaultFlags-d0kPbT0i.d.cts} +1 -1
- package/dist/{defaultFlags-V-tJs2K8.d.ts → defaultFlags-d0kPbT0i.d.ts} +1 -1
- package/dist/dex-C_BB0b0O.d.cts +37 -0
- package/dist/dex-C_BB0b0O.d.ts +37 -0
- package/dist/enum/exports.cjs +2 -0
- package/dist/enum/exports.cjs.map +1 -0
- package/dist/enum/exports.d.cts +24 -0
- package/dist/enum/exports.d.ts +24 -0
- package/dist/enum/exports.mjs +2 -0
- package/dist/enum/exports.mjs.map +1 -0
- package/dist/errors/exports.cjs +2 -0
- package/dist/errors/exports.cjs.map +1 -0
- package/dist/errors/exports.d.cts +385 -0
- package/dist/errors/exports.d.ts +385 -0
- package/dist/errors/exports.mjs +2 -0
- package/dist/{getValidatorQueuedOperatorAddress-9xY2RUGe.d.cts → getValidatorQueuedOperatorAddress-BX35p2Lv.d.ts} +125 -15
- package/dist/{getValidatorQueuedOperatorAddress-Ne2zoiiV.d.ts → getValidatorQueuedOperatorAddress-It0GsdvQ.d.cts} +125 -15
- package/dist/global.d-Ba-NIojH.d.cts +474 -0
- package/dist/global.d-By70bEv2.d.ts +474 -0
- package/dist/honey-CYm0RWf4.d.cts +14 -0
- package/dist/honey-CYm0RWf4.d.ts +14 -0
- package/dist/hooks/exports.cjs +4 -0
- package/dist/hooks/exports.cjs.map +1 -0
- package/dist/hooks/{index.d.cts → exports.d.cts} +223 -173
- package/dist/hooks/{index.d.ts → exports.d.ts} +223 -173
- package/dist/hooks/exports.mjs +4 -0
- package/dist/hooks/exports.mjs.map +1 -0
- package/dist/{BexStatusProvider-nS3NcdxI.d.cts → transactionStore-BvStaXf3.d.ts} +41 -1
- package/dist/{BexStatusProvider-nS3NcdxI.d.ts → transactionStore-CQrGYSY2.d.cts} +41 -1
- package/dist/{txnEnum-BQKDfaeH.d.cts → txnEnum-BYNbCxla.d.cts} +1 -0
- package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-BYNbCxla.d.ts} +1 -0
- package/dist/types/exports.cjs +1 -0
- package/dist/types/exports.cjs.map +1 -0
- package/dist/types/exports.d.cts +58 -0
- package/dist/types/exports.d.ts +58 -0
- package/dist/types/exports.mjs +1 -0
- package/dist/{useHoneySwapState-C-9BV4VB.d.cts → useHoneySwapState-B-vmIP1b.d.cts} +1 -1
- package/dist/{useHoneySwapState-CUY5Sm1b.d.ts → useHoneySwapState-D1DKG_Of.d.ts} +1 -1
- package/dist/utils/exports.cjs +2 -0
- package/dist/utils/exports.cjs.map +1 -0
- package/dist/utils/{index.d.cts → exports.d.cts} +83 -20
- package/dist/utils/{index.d.ts → exports.d.ts} +83 -20
- package/dist/utils/exports.mjs +2 -0
- package/dist/utils/exports.mjs.map +1 -0
- package/package.json +16 -17
- package/src/abi/{index.ts → exports.ts} +3 -0
- package/src/abi/pol/LSTStakerVault.ts +2032 -0
- package/src/abi/utils/openChainErrors.ts +71 -30
- package/src/abi/utils/thirdwebMinimalAccount.ts +616 -0
- package/src/actions/clients/BeraApolloClient.ts +8 -6
- package/src/actions/dex/__tests__/aggregators.unit.test.ts +2 -5
- package/src/actions/dex/aggregators/base.ts +74 -16
- package/src/actions/dex/aggregators/bex.ts +54 -74
- package/src/actions/dex/aggregators/bgt.ts +31 -8
- package/src/actions/dex/aggregators/{enso.ts → enso/enso.ts} +18 -14
- package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +37 -0
- package/src/actions/dex/aggregators/enso/ensoErc4626.ts +176 -0
- package/src/actions/dex/aggregators/erc4626.ts +122 -0
- package/src/actions/dex/aggregators/fly.ts +59 -53
- package/src/actions/dex/aggregators/haiku.ts +52 -54
- package/src/actions/dex/aggregators/honey.ts +54 -45
- package/src/actions/dex/aggregators/kyberswap.ts +41 -39
- package/src/actions/dex/aggregators/oogabooga.ts +47 -46
- package/src/actions/dex/aggregators/openOcean.ts +51 -46
- package/src/actions/dex/aggregators/wbera.ts +54 -42
- package/src/actions/dex/b-sdk.ts +5 -2
- package/src/actions/dex/getIsTokenExploited.ts +2 -2
- package/src/actions/enso/{zap.ts → getEnsoSwapBundle.ts} +4 -5
- package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +73 -0
- package/src/actions/enso/{getEnsoUserToken.ts → getEnsoUserTokensWithBalances.ts} +42 -30
- package/src/actions/enso/util.ts +1 -1
- package/src/actions/{index.ts → exports.ts} +5 -0
- package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +1 -1
- package/src/actions/governance/__tests__/getQuorum.integration.test.ts +1 -1
- package/src/actions/governance/checkProposalField.ts +1 -1
- package/src/actions/governance/computeActualStatus.ts +1 -1
- package/src/actions/governance/getBodyErrors.ts +1 -1
- package/src/actions/governance/getDecodedFunctionData.ts +1 -4
- package/src/actions/governance/getProposalDetails.ts +2 -2
- package/src/actions/governance/getProposalFromTx.ts +1 -2
- package/src/actions/governance/getProposalParams.ts +7 -8
- package/src/actions/governance/getQuorum.ts +1 -2
- package/src/actions/honey/getCollateralWeights.ts +1 -1
- package/src/actions/honey/getHoneyCollaterals.ts +1 -0
- package/src/actions/honey/getHoneyVaultsBalance.ts +51 -55
- package/src/actions/honey/getSwapPayload.ts +37 -35
- package/src/actions/honey/tests/pyth.integration.test.ts +0 -1
- package/src/actions/pol/__tests__/getAllValidators.integration.test.ts +1 -1
- package/src/actions/pol/getEarnedStakedBeraVault.ts +31 -0
- package/src/actions/pol/getGlobalData.ts +14 -13
- package/src/actions/pol/getLSTStakeConfig.ts +67 -0
- package/src/actions/pol/getMarkets.ts +1 -1
- package/src/actions/pol/getRewardProofsByValidator.ts +1 -1
- package/src/actions/pol/getRewardVaultIncentives.ts +3 -5
- package/src/actions/pol/getRewardVaults.ts +2 -3
- package/src/actions/pol/getSWBeraVaultMetadata.ts +7 -5
- package/src/actions/pol/getSWBeraWithdrawal.ts +41 -27
- package/src/actions/pol/getStakeWithdrawalCooldown.ts +5 -7
- package/src/actions/pol/getStakingDailyAssets.ts +21 -0
- package/src/actions/pol/getStakingTokenInformation.ts +3 -4
- package/src/actions/pol/getTotalStakedAmount.ts +47 -0
- package/src/actions/pol/getUserClaimableIncentives.ts +1 -1
- package/src/actions/pol/getUserVaults.ts +8 -6
- package/src/actions/pol/getUserVaultsBalance.ts +4 -16
- package/src/actions/prices/getTokenCurrentPrices.ts +8 -3
- package/src/actions/tokens/getAllowances.ts +68 -41
- package/src/actions/tokens/getTokenInformation.ts +4 -1
- package/src/actions/tokens/getTokens.ts +1 -1
- package/src/actions/tokens/getUnderlyingToken.ts +53 -0
- package/src/actions/tokens/getWalletBalances.integration.test.ts +53 -14
- package/src/actions/tokens/getWalletBalances.ts +69 -43
- package/src/actions/transactions/beraWriteContract.integration.test.ts +18 -6
- package/src/actions/transactions/beraWriteContract.ts +3 -3
- package/src/actions/validators/getUserActiveValidators.ts +2 -3
- package/src/actions/validators/getUserBoostsOnValidator.ts +2 -3
- package/src/contexts/BeraFlags/defaultFlags.ts +4 -0
- package/src/contexts/SwrFallback.tsx +13 -3
- package/src/contexts/TokensProvider.tsx +35 -8
- package/src/{hooks/transactions → contexts}/TransactionStoreContext.tsx +32 -4
- package/src/contexts/block-time-provider.tsx +1 -1
- package/src/contexts/{index.ts → exports.ts} +1 -1
- package/src/data/contracts.ts +16 -1
- package/src/enum/contracts.ts +13 -0
- package/src/enum/dex.ts +29 -0
- package/src/enum/{index.ts → exports.ts} +3 -0
- package/src/enum/governance.ts +61 -0
- package/src/enum/honey.ts +12 -0
- package/src/enum/txnEnum.ts +1 -0
- package/src/errors/BeraError.ts +50 -11
- package/src/errors/BeraMonitoring.ts +66 -0
- package/src/errors/BeraTracing.ts +79 -0
- package/src/errors/BeraTracing.unit.test.ts +198 -0
- package/src/errors/RequestError.ts +2 -2
- package/src/errors/assert.ts +4 -2
- package/src/errors/assert.unit.test.ts +6 -2
- package/src/errors/errorMap.ts +16 -6
- package/src/errors/{index.ts → exports.ts} +7 -0
- package/src/errors/getErrorMessage.ts +22 -3
- package/src/errors/getRevertReason.integration.test.ts +17 -5
- package/src/errors/getRevertReason.ts +41 -2
- package/src/errors/initBeraError.ts +52 -7
- package/src/errors/parseViemError.ts +114 -27
- package/src/errors/severity.ts +12 -0
- package/src/hooks/bend/useGetConvertToAssets.ts +3 -2
- package/src/hooks/dex/useAggregatorsQuotes.ts +126 -365
- package/src/hooks/dex/useAllUserPools.ts +1 -1
- package/src/hooks/dex/useApiPool.ts +1 -1
- package/src/hooks/dex/useCreatePool.ts +6 -5
- package/src/hooks/dex/useExploitedTokens.ts +1 -1
- package/src/hooks/dex/useLiquidityMismatch.ts +2 -5
- package/src/hooks/dex/useLpPosition.ts +21 -20
- package/src/hooks/dex/useMultipleTokenApprovalsWithSlippage.ts +40 -29
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +1 -1
- package/src/hooks/dex/usePoolEvents.ts +1 -1
- package/src/hooks/dex/usePools.ts +1 -1
- package/src/hooks/dex/usePriceImpact.ts +40 -0
- package/src/hooks/dex/useSingleAggregatorQuote.ts +350 -0
- package/src/hooks/enso/useBendZapSupply.ts +216 -0
- package/src/hooks/enso/useEnsoSwapBundle.ts +107 -0
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +43 -0
- package/src/hooks/enso/useZapStakeBera.ts +113 -0
- package/src/hooks/{index.ts → exports.ts} +18 -7
- package/src/hooks/governance/useCreateProposal.ts +8 -8
- package/src/hooks/governance/usePollAllProposals.ts +1 -1
- package/src/hooks/governance/usePollProposal.ts +1 -1
- package/src/hooks/governance/usePollProposalThreshold.ts +1 -1
- package/src/hooks/governance/usePollUserDelegates.ts +1 -1
- package/src/hooks/governance/useProposalState.ts +2 -2
- package/src/hooks/honey/useCappedGlobally.ts +2 -1
- package/src/hooks/honey/useCappedRelatively.ts +1 -1
- package/src/hooks/honey/useCollateralWeights.ts +2 -1
- package/src/hooks/honey/useHoneyAlerts.ts +11 -11
- package/src/hooks/honey/useHoneyBalances.ts +7 -3
- package/src/hooks/honey/useHoneyGlobalData.ts +2 -1
- package/src/hooks/honey/useHoneySwapState.ts +2 -1
- package/src/hooks/honey/useHoneyVaultsBalance.ts +1 -1
- package/src/hooks/honey/useIsBadCollateralAsset.ts +2 -1
- package/src/hooks/honey/useIsBasketModeEnabled.ts +1 -1
- package/src/hooks/honey/usePythLatestPrices.ts +1 -1
- package/src/hooks/pol/useOnChainRewardVault.ts +3 -2
- package/src/hooks/pol/usePollGlobalData.ts +1 -1
- package/src/hooks/pol/usePollMarkets.ts +1 -1
- package/src/hooks/pol/useQueuedBeraUnlock.ts +17 -15
- package/src/hooks/pol/useRewardTokenToBeraRate.ts +6 -3
- package/src/hooks/pol/useRewardVault.ts +1 -1
- package/src/hooks/pol/useRewardVaults.ts +1 -1
- package/src/hooks/pol/useSWBeraVaultMetadata.ts +35 -0
- package/src/hooks/pol/useStakedAPR.ts +38 -0
- package/src/hooks/pol/useStakedData.ts +117 -0
- package/src/hooks/pol/useStakedSnapshots.ts +52 -0
- package/src/hooks/pol/useTotalStakedAmount.ts +30 -0
- package/src/hooks/pol/useUserVaultInfo.ts +1 -1
- package/src/hooks/pol/useVaultValidators.ts +1 -1
- package/src/hooks/tokens/useMultipleTokenInformation.ts +15 -6
- package/src/hooks/tokens/usePollAllowances.ts +15 -19
- package/src/hooks/tokens/usePollBalance.ts +8 -4
- package/src/hooks/tokens/usePollWalletBalances.ts +14 -11
- package/src/hooks/tokens/useStakingTokenInformation.ts +2 -1
- package/src/hooks/tokens/useTokenCurrentPrice.ts +4 -2
- package/src/hooks/tokens/useTokenCurrentPrices.ts +92 -13
- package/src/hooks/tokens/useTokenInformation.ts +11 -6
- package/src/hooks/tokens/useTokenPrice.ts +21 -0
- package/src/hooks/tokens/useTokenPrices.ts +133 -0
- package/src/hooks/tokens/useTokens.ts +1 -0
- package/src/hooks/tokens/useUnderlyingAsset.ts +23 -0
- package/src/hooks/transactions/transactionStore.ts +86 -65
- package/src/hooks/transactions/transactionStore.unit.test.ts +54 -1
- package/src/hooks/transactions/useAddRecentTransaction.ts +1 -1
- package/src/hooks/transactions/useRecentTransactions.ts +1 -1
- package/src/hooks/transactions/useSetTransactionStatus.ts +31 -0
- package/src/hooks/useContractWrite/useBeraContractWrite.ts +2 -1
- package/src/hooks/validators/useAllValidators.ts +1 -1
- package/src/hooks/validators/useApiValidator.ts +1 -1
- package/src/hooks/validators/useDailyValidatorBlockStats.ts +1 -1
- package/src/hooks/validators/useManagedValidatorByAccount.ts +1 -1
- package/src/hooks/validators/useManagedValidatorRole.ts +1 -1
- package/src/hooks/validators/useOnChainValidator.ts +1 -1
- package/src/hooks/validators/useStakingPoolBatch.ts +1 -1
- package/src/hooks/validators/useUserActiveValidators.ts +1 -1
- package/src/hooks/validators/useUserBoostsOnValidator.ts +1 -1
- package/src/hooks/validators/useUserClaimableIncentives.ts +8 -8
- package/src/hooks/validators/useValidator.ts +1 -1
- package/src/hooks/validators/useValidatorAnalytics.ts +1 -1
- package/src/hooks/validators/useValidatorCommission.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedCommission.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +1 -1
- package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -1
- package/src/types/{dex.ts → dex.d.ts} +96 -67
- package/src/types/{enso.ts → enso.d.ts} +1 -1
- package/src/types/exports.ts +8 -0
- package/src/types/{global.ts → global.d.ts} +1 -30
- package/src/types/{governance.ts → governance.d.ts} +2 -64
- package/src/types/{honeySwap.ts → honeySwap.d.ts} +1 -13
- package/src/types/{pol.ts → pol.d.ts} +12 -1
- package/src/types/staking.d.ts +22 -0
- package/src/utils/createEmitter.ts +122 -0
- package/src/utils/createEmitter.unit.test.ts +149 -0
- package/src/utils/{index.ts → exports.ts} +3 -2
- package/src/utils/filter.ts +34 -0
- package/src/utils/formatNumber.ts +1 -1
- package/src/utils/formatNumber.unit.test.ts +2 -1
- package/src/utils/formatTokenList.ts +4 -10
- package/src/utils/getHoneySwapMessage.test.ts +1 -2
- package/src/utils/getServerSideClient.ts +4 -5
- package/src/utils/isDifferenceExceedingThreshold.ts +1 -1
- package/src/utils/layerZeroScan.ts +122 -0
- package/src/utils/math.ts +1 -1
- package/src/utils/parseWhiskToken.ts +15 -0
- package/src/utils/poolNamings.ts +1 -1
- package/src/utils/tokens.ts +23 -7
- package/dist/HoneyConfigProvider-6PXZJMSU.d.cts +0 -562
- package/dist/HoneyConfigProvider-CwDFrt02.d.ts +0 -562
- package/dist/abi/index.cjs +0 -2
- package/dist/abi/index.cjs.map +0 -1
- package/dist/abi/index.mjs +0 -2
- package/dist/actions/index.cjs +0 -2
- package/dist/actions/index.cjs.map +0 -1
- package/dist/actions/index.mjs +0 -2
- package/dist/aggregatorsRouter-Cny4B_MB.d.cts +0 -593
- package/dist/aggregatorsRouter-Cny4B_MB.d.ts +0 -593
- package/dist/chunk-22MQVFHP.cjs +0 -2
- package/dist/chunk-22MQVFHP.cjs.map +0 -1
- package/dist/chunk-3TKSVFZ3.mjs +0 -2
- package/dist/chunk-3TKSVFZ3.mjs.map +0 -1
- package/dist/chunk-6VF3RF53.cjs +0 -3
- package/dist/chunk-6VF3RF53.cjs.map +0 -1
- package/dist/chunk-6W22TFYA.mjs +0 -2
- package/dist/chunk-6W22TFYA.mjs.map +0 -1
- package/dist/chunk-AMRJ4B36.mjs +0 -2
- package/dist/chunk-AMRJ4B36.mjs.map +0 -1
- package/dist/chunk-DS2ZDVKU.mjs +0 -2
- package/dist/chunk-DS2ZDVKU.mjs.map +0 -1
- package/dist/chunk-ED43NYSE.cjs +0 -2
- package/dist/chunk-ED43NYSE.cjs.map +0 -1
- package/dist/chunk-EU4WFADK.cjs +0 -2
- package/dist/chunk-EU4WFADK.cjs.map +0 -1
- package/dist/chunk-HCTFDGXL.mjs +0 -2
- package/dist/chunk-HCTFDGXL.mjs.map +0 -1
- package/dist/chunk-IOSYBHKU.mjs +0 -2
- package/dist/chunk-IOSYBHKU.mjs.map +0 -1
- package/dist/chunk-JMKLDDKY.cjs +0 -2
- package/dist/chunk-JMKLDDKY.cjs.map +0 -1
- package/dist/chunk-KMKUXP2S.mjs +0 -3
- package/dist/chunk-KMKUXP2S.mjs.map +0 -1
- package/dist/chunk-OJXJ6CZ4.mjs +0 -4
- package/dist/chunk-OJXJ6CZ4.mjs.map +0 -1
- package/dist/chunk-PHIOKO3A.mjs +0 -2
- package/dist/chunk-PHIOKO3A.mjs.map +0 -1
- package/dist/chunk-QCK474XD.cjs +0 -2
- package/dist/chunk-QCK474XD.cjs.map +0 -1
- package/dist/chunk-REDXXUK7.cjs +0 -2
- package/dist/chunk-REDXXUK7.cjs.map +0 -1
- package/dist/chunk-S74ZMG2G.cjs +0 -2
- package/dist/chunk-S74ZMG2G.cjs.map +0 -1
- package/dist/chunk-TOAXF4YW.cjs +0 -2
- package/dist/chunk-TOAXF4YW.cjs.map +0 -1
- package/dist/chunk-UZ5CB33M.cjs +0 -2
- package/dist/chunk-UZ5CB33M.cjs.map +0 -1
- package/dist/chunk-VYWYJR63.mjs +0 -2
- package/dist/chunk-VYWYJR63.mjs.map +0 -1
- package/dist/chunk-XFPTQMAK.cjs +0 -4
- package/dist/chunk-XFPTQMAK.cjs.map +0 -1
- package/dist/chunk-YK4NINF5.mjs +0 -2
- package/dist/chunk-YK4NINF5.mjs.map +0 -1
- package/dist/contexts/index.cjs +0 -2
- package/dist/contexts/index.cjs.map +0 -1
- package/dist/contexts/index.mjs +0 -2
- package/dist/contexts/index.mjs.map +0 -1
- package/dist/enum/index.cjs +0 -2
- package/dist/enum/index.cjs.map +0 -1
- package/dist/enum/index.d.cts +0 -31
- package/dist/enum/index.d.ts +0 -31
- package/dist/enum/index.mjs +0 -2
- package/dist/enum/index.mjs.map +0 -1
- package/dist/errors/index.cjs +0 -2
- package/dist/errors/index.cjs.map +0 -1
- package/dist/errors/index.d.cts +0 -204
- package/dist/errors/index.d.ts +0 -204
- package/dist/errors/index.mjs +0 -2
- package/dist/errors/index.mjs.map +0 -1
- package/dist/hooks/index.cjs +0 -4
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.mjs +0 -4
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/staking-F9Nx9TKD.d.ts +0 -246
- package/dist/staking-f4BpYH7l.d.cts +0 -246
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts +0 -56
- package/dist/types/index.d.ts +0 -56
- package/dist/types/index.mjs +0 -2
- package/dist/types/index.mjs.map +0 -1
- package/dist/utils/index.cjs +0 -2
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.mjs +0 -2
- package/dist/utils/index.mjs.map +0 -1
- package/src/actions/dex/getTransactionCount.ts +0 -29
- package/src/actions/enso/bend.ts +0 -143
- package/src/actions/enso/getEnsoUserToken.debug.test.ts +0 -57
- package/src/contexts/berajsProvider/context.tsx +0 -49
- package/src/contexts/berajsProvider/index.ts +0 -2
- package/src/contexts/berajsProvider/useBeraJs.ts +0 -18
- package/src/hooks/dex/usePollVaultIsPaused.ts +0 -30
- package/src/hooks/enso/useBendTransactionRequests.ts +0 -247
- package/src/hooks/enso/useEnsoZap.ts +0 -166
- package/src/hooks/enso/useZapTransactionRequests.ts +0 -81
- package/src/hooks/pol/useEarnedStakedBeraVault.ts +0 -59
- package/src/hooks/pol/useStakedBeraSnapshots.ts +0 -27
- package/src/hooks/validators/validatorRoleManager.ts +0 -0
- package/src/types/index.ts +0 -8
- package/src/types/staking.ts +0 -7
- package/src/utils/formatAggregatorsQuotes.ts +0 -57
- package/src/utils/formatAggregatorsQuotes.unit.test.ts +0 -191
- package/src/utils/sentryBeforeSend.ts +0 -52
- /package/dist/{abi/index.mjs.map → errors/exports.mjs.map} +0 -0
- /package/dist/{actions/index.mjs.map → types/exports.mjs.map} +0 -0
- /package/src/actions/dex/{__tests__ → aggregators}/haiku.integration.test.ts +0 -0
- /package/src/types/{bribe-boost.ts → bribe-boost.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/contexts/index.cjs","../../src/contexts/berajsProvider/context.tsx","../../src/contexts/berajsProvider/useBeraJs.ts","../../src/contexts/SwrFallback.tsx"],"names":["BigNumber","BeraJsContext","createContext","BeraJsProvider","children","isMounted","setIsMounted","useState","walletClient","useBeraWagmi","wallet","useBeraAccount","useEffect","jsx","useMemo","TransactionStoreProvider","useBeraJs","beraJsContext","useContext","useBeraJs_default","SWRFallback","fallback","key","value","SWRConfig"],"mappings":"AAAA,28BAAY,CAAC,yDAA2I,iCAA8B,iCAA8B,8BCQ7M,qGACe,+CAEuB,+CAiCvC,qBA7BNA,CAAU,MAAA,CAAO,CACf,cAAA,CAAgB,GAClB,CAAC,CAAA,CASM,IAAMC,CAAAA,CAAgBC,kCAAAA,KAAsC,CAAS,CAAA,CAErE,SAASC,CAAAA,CAAe,CAAE,QAAA,CAAAC,CAAS,CAAA,CAAsB,CAC9D,GAAM,CAACC,CAAAA,CAAWC,CAAY,CAAA,CAAIC,6BAAAA,CAAS,CAAK,CAAA,CAC1C,CAAE,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAa,CAChC,CAAE,MAAA,CAAAC,CAAO,CAAA,CAAIC,mCAAAA,CAAe,CAElC,OAAAC,8BAAAA,CAAU,CAAA,EAAMN,CAAAA,CAAa,CAAA,CAAI,CAAA,CAAG,CAAC,CAAC,CAAA,CAGpCO,6BAAAA,CAACZ,CAAc,QAAA,CAAd,CACC,KAAA,CAAO,CACL,OAAA,CAASa,4BAAAA,CACP,CAAA,EAAM,CAAC,iBAACJ,CAAAA,2BAAQ,SAAA,EAAWL,CAAAA,CAC3B,iBAACK,CAAAA,6BAAQ,SAAA,CAASL,CAAAA,CAAWG,CAAY,CAC3C,CACF,CAAA,CAEA,QAAA,CAAAK,6BAAAA,mBAACE,CAAA,CAA0B,QAAA,CAAAX,CAAAA,CAAS,CAAA,CACtC,CAEJ,CC/CA,SAOgBY,CAAAA,CAAAA,CAAY,CAC1B,IAAMC,CAAAA,CAAgBC,+BAAAA,CAAwB,CAAA,CAE9C,EAAA,CAAID,CAAAA,GAAkB,KAAA,CAAA,CACpB,MAAM,IAAI,KAAA,CAAM,2BAA2B,CAAA,CAG7C,OAAOA,CACT,CAEA,IAAOE,CAAAA,CAAQH,CAAAA,CChBf,kFACwB,0BACE,SAEVI,CAAAA,CAAY,CAC1B,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAjB,CACF,CAAA,CAGG,CACD,OAAAQ,8BAAAA,CAAU,CAAA,EAAM,CACd,MAAA,CAAO,OAAA,CAAQS,CAAQ,CAAA,CAAE,IAAA,CAAK,CAAC,CAACC,CAAAA,CAAKC,CAAK,CAAA,CAAA,EACnCD,CAAAA,CAMS,CAAA,CAAA,CAAA,CALZ,OAAA,CAAQ,IAAA,CAAK,aAAA,CAAeA,CAAAA,CAAKC,CAAK,CAAA,CAC/B,CAAA,CAAA,gBAAA,CACL,8GACF,CAAA,CACO,CAAA,CAAA,CAEV,CACH,CAAA,CAAG,CAACF,CAAQ,CAAC,CAAA,CAGXR,6BAAAA,cAACW,CAAA,CACC,KAAA,CAAO,CACL,QAAA,CAAAH,CACF,CAAA,CAEC,QAAA,CAAAjB,CAAAA,CACH,CAEJ,CAAA,ovBAAA","file":"/Users/pong/coding/monobera/packages/berajs/dist/contexts/index.cjs","sourcesContent":[null,"\"use client\";\n\nimport {\n createContext,\n type PropsWithChildren,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport BigNumber from \"bignumber.js\";\n\nimport { useBeraAccount, useBeraWagmi } from \"@berachain/wagmi/hooks\";\n\nimport { TransactionStoreProvider } from \"~/hooks/transactions/TransactionStoreContext\";\n\nBigNumber.config({\n EXPONENTIAL_AT: 1e9,\n});\n\nexport interface IBeraJsAPI {\n /**\n * @deprecated check `useBeraAccount.isConnected` instead and wrap transaction in ActionButton to ensure it's wallet chain is connected.\n */\n isReady?: boolean;\n}\n\nexport const BeraJsContext = createContext<IBeraJsAPI | undefined>(undefined);\n\nexport function BeraJsProvider({ children }: PropsWithChildren) {\n const [isMounted, setIsMounted] = useState(false);\n const { walletClient } = useBeraWagmi();\n const { wallet } = useBeraAccount();\n\n useEffect(() => setIsMounted(true), []);\n\n return (\n <BeraJsContext.Provider\n value={{\n isReady: useMemo(\n () => !!wallet?.address && isMounted,\n [wallet?.address, isMounted, walletClient],\n ),\n }}\n >\n <TransactionStoreProvider>{children}</TransactionStoreProvider>\n </BeraJsContext.Provider>\n );\n}\nexport default BeraJsProvider;\n","import { useContext } from \"react\";\n\nimport { BeraJsContext } from \"./context\";\n\n/**\n * @deprecated use useBeraAccount and useBeraWagmi instead\n */\nexport function useBeraJs() {\n const beraJsContext = useContext(BeraJsContext);\n\n if (beraJsContext === undefined) {\n throw new Error(\"bera js context undefined\");\n }\n\n return beraJsContext;\n}\n\nexport default useBeraJs;\n","import type React from \"react\";\nimport { useEffect } from \"react\";\nimport * as Sentry from \"@sentry/nextjs\";\nimport { SWRConfig } from \"swr\";\n\nexport function SWRFallback({\n fallback,\n children,\n}: {\n fallback: Record<string, any>;\n children: React.ReactNode;\n}) {\n useEffect(() => {\n Object.entries(fallback).some(([key, value]) => {\n if (!key) {\n console.warn(\"SWRFallback\", key, value);\n Sentry.captureException(\n \"Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR.\",\n );\n return true;\n } else return false;\n });\n }, [fallback]);\n\n return (\n <SWRConfig\n value={{\n fallback,\n }}\n >\n {children}\n </SWRConfig>\n );\n}\n"]}
|
package/dist/contexts/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as u,b as p,c as l,d as W,e as b,f as v,l as s,n as w,o as E,p as F,q as I,r as A,s as T,t as N,u as k}from"../chunk-KMKUXP2S.mjs";import"../chunk-VYWYJR63.mjs";import"../chunk-HCTFDGXL.mjs";import{createContext as d,useEffect as m,useMemo as c,useState as x}from"react";import B from"bignumber.js";import{useBeraAccount as R,useBeraWagmi as S}from"@berachain/wagmi/hooks";import{jsx as i}from"react/jsx-runtime";B.config({EXPONENTIAL_AT:1e9});var n=d(void 0);function X({children:e}){let[r,t]=x(!1),{walletClient:o}=S(),{wallet:a}=R();return m(()=>t(!0),[]),i(n.Provider,{value:{isReady:c(()=>!!a?.address&&r,[a?.address,r,o])},children:i(s,{children:e})})}import{useContext as g}from"react";function y(){let e=g(n);if(e===void 0)throw new Error("bera js context undefined");return e}var C=y;import{useEffect as P}from"react";import*as f from"@sentry/nextjs";import{SWRConfig as h}from"swr";import{jsx as J}from"react/jsx-runtime";function Y({fallback:e,children:r}){return P(()=>{Object.entries(e).some(([t,o])=>t?!1:(console.warn("SWRFallback",t,o),f.captureException("Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR."),!0))},[e]),J(h,{value:{fallback:e},children:r})}export{u as BeraFlagsProvider,n as BeraJsContext,X as BeraJsProvider,W as BexStateContext,v as BexStatusProvider,E as BlockTimeContext,F as BlockTimeProvider,I as HoneyConfigContext,A as HoneyConfigProvider,Y as SWRFallback,N as TokenContext,k as TokensProvider,l as useBeraFlag,p as useBeraFlags,C as useBeraJs,b as useBexStatus,w as useBlockTime,T as useHoneyConfig};
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/contexts/berajsProvider/context.tsx","../../src/contexts/berajsProvider/useBeraJs.ts","../../src/contexts/SwrFallback.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n createContext,\n type PropsWithChildren,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport BigNumber from \"bignumber.js\";\n\nimport { useBeraAccount, useBeraWagmi } from \"@berachain/wagmi/hooks\";\n\nimport { TransactionStoreProvider } from \"~/hooks/transactions/TransactionStoreContext\";\n\nBigNumber.config({\n EXPONENTIAL_AT: 1e9,\n});\n\nexport interface IBeraJsAPI {\n /**\n * @deprecated check `useBeraAccount.isConnected` instead and wrap transaction in ActionButton to ensure it's wallet chain is connected.\n */\n isReady?: boolean;\n}\n\nexport const BeraJsContext = createContext<IBeraJsAPI | undefined>(undefined);\n\nexport function BeraJsProvider({ children }: PropsWithChildren) {\n const [isMounted, setIsMounted] = useState(false);\n const { walletClient } = useBeraWagmi();\n const { wallet } = useBeraAccount();\n\n useEffect(() => setIsMounted(true), []);\n\n return (\n <BeraJsContext.Provider\n value={{\n isReady: useMemo(\n () => !!wallet?.address && isMounted,\n [wallet?.address, isMounted, walletClient],\n ),\n }}\n >\n <TransactionStoreProvider>{children}</TransactionStoreProvider>\n </BeraJsContext.Provider>\n );\n}\nexport default BeraJsProvider;\n","import { useContext } from \"react\";\n\nimport { BeraJsContext } from \"./context\";\n\n/**\n * @deprecated use useBeraAccount and useBeraWagmi instead\n */\nexport function useBeraJs() {\n const beraJsContext = useContext(BeraJsContext);\n\n if (beraJsContext === undefined) {\n throw new Error(\"bera js context undefined\");\n }\n\n return beraJsContext;\n}\n\nexport default useBeraJs;\n","import type React from \"react\";\nimport { useEffect } from \"react\";\nimport * as Sentry from \"@sentry/nextjs\";\nimport { SWRConfig } from \"swr\";\n\nexport function SWRFallback({\n fallback,\n children,\n}: {\n fallback: Record<string, any>;\n children: React.ReactNode;\n}) {\n useEffect(() => {\n Object.entries(fallback).some(([key, value]) => {\n if (!key) {\n console.warn(\"SWRFallback\", key, value);\n Sentry.captureException(\n \"Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR.\",\n );\n return true;\n } else return false;\n });\n }, [fallback]);\n\n return (\n <SWRConfig\n value={{\n fallback,\n }}\n >\n {children}\n </SWRConfig>\n );\n}\n"],"mappings":"qNAEA,OACE,iBAAAA,EAEA,aAAAC,EACA,WAAAC,EACA,YAAAC,MACK,QACP,OAAOC,MAAe,eAEtB,OAAS,kBAAAC,EAAgB,gBAAAC,MAAoB,yBAiCvC,cAAAC,MAAA,oBA7BNC,EAAU,OAAO,CACf,eAAgB,GAClB,CAAC,EASM,IAAMC,EAAgBC,EAAsC,MAAS,EAErE,SAASC,EAAe,CAAE,SAAAC,CAAS,EAAsB,CAC9D,GAAM,CAACC,EAAWC,CAAY,EAAIC,EAAS,EAAK,EAC1C,CAAE,aAAAC,CAAa,EAAIC,EAAa,EAChC,CAAE,OAAAC,CAAO,EAAIC,EAAe,EAElC,OAAAC,EAAU,IAAMN,EAAa,EAAI,EAAG,CAAC,CAAC,EAGpCP,EAACE,EAAc,SAAd,CACC,MAAO,CACL,QAASY,EACP,IAAM,CAAC,CAACH,GAAQ,SAAWL,EAC3B,CAACK,GAAQ,QAASL,EAAWG,CAAY,CAC3C,CACF,EAEA,SAAAT,EAACe,EAAA,CAA0B,SAAAV,EAAS,EACtC,CAEJ,CC/CA,OAAS,cAAAW,MAAkB,QAOpB,SAASC,GAAY,CAC1B,IAAMC,EAAgBC,EAAWC,CAAa,EAE9C,GAAIF,IAAkB,OACpB,MAAM,IAAI,MAAM,2BAA2B,EAG7C,OAAOA,CACT,CAEA,IAAOG,EAAQJ,EChBf,OAAS,aAAAK,MAAiB,QAC1B,UAAYC,MAAY,iBACxB,OAAS,aAAAC,MAAiB,MAsBtB,cAAAC,MAAA,oBApBG,SAASC,EAAY,CAC1B,SAAAC,EACA,SAAAC,CACF,EAGG,CACD,OAAAN,EAAU,IAAM,CACd,OAAO,QAAQK,CAAQ,EAAE,KAAK,CAAC,CAACE,EAAKC,CAAK,IACnCD,EAMS,IALZ,QAAQ,KAAK,cAAeA,EAAKC,CAAK,EAC/B,mBACL,8GACF,EACO,GAEV,CACH,EAAG,CAACH,CAAQ,CAAC,EAGXF,EAACD,EAAA,CACC,MAAO,CACL,SAAAG,CACF,EAEC,SAAAC,EACH,CAEJ","names":["createContext","useEffect","useMemo","useState","BigNumber","useBeraAccount","useBeraWagmi","jsx","BigNumber","BeraJsContext","createContext","BeraJsProvider","children","isMounted","setIsMounted","useState","walletClient","useBeraWagmi","wallet","useBeraAccount","useEffect","useMemo","TransactionStoreProvider","useContext","useBeraJs","beraJsContext","useContext","BeraJsContext","useBeraJs_default","useEffect","Sentry","SWRConfig","jsx","SWRFallback","fallback","children","key","value"]}
|
package/dist/enum/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUZ5CB33Mcjs = require('../chunk-UZ5CB33M.cjs');exports.DEFAULT_DEADLINE = _chunkUZ5CB33Mcjs.f; exports.DEFAULT_SLIPPAGE = _chunkUZ5CB33Mcjs.d; exports.OwnershipType = _chunkUZ5CB33Mcjs.a; exports.POLLING = _chunkUZ5CB33Mcjs.c; exports.ParameterPreset = _chunkUZ5CB33Mcjs.b; exports.SLIPPAGE_DEGEN_VALUE = _chunkUZ5CB33Mcjs.e; exports.SLIPPAGE_MODE = _chunkUZ5CB33Mcjs.g; exports.TRANSACTION_MODE = _chunkUZ5CB33Mcjs.h; exports.TransactionActionType = _chunkUZ5CB33Mcjs.i;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/enum/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/enum/index.cjs"],"names":[],"mappings":"AAAA,kIAAoD,waAAuM","file":"/Users/pong/coding/monobera/packages/berajs/dist/enum/index.cjs"}
|
package/dist/enum/index.d.cts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { P as POLLING } from '../polling-BKnyavLI.cjs';
|
|
2
|
-
export { T as TransactionActionType } from '../txnEnum-BQKDfaeH.cjs';
|
|
3
|
-
|
|
4
|
-
declare enum OwnershipType {
|
|
5
|
-
Governance = "Governance",
|
|
6
|
-
Fixed = "Fixed",
|
|
7
|
-
Custom = "Custom"
|
|
8
|
-
}
|
|
9
|
-
declare enum ParameterPreset {
|
|
10
|
-
USDBACKED = "USD-Backed Stablecoin",
|
|
11
|
-
ALGORITHMIC = "Algorithmic Stablecoin"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare const DEFAULT_SLIPPAGE: 0.5;
|
|
15
|
-
declare const SLIPPAGE_DEGEN_VALUE: 25;
|
|
16
|
-
/**
|
|
17
|
-
* Default
|
|
18
|
-
*/
|
|
19
|
-
declare const DEFAULT_DEADLINE: 60;
|
|
20
|
-
declare enum SLIPPAGE_MODE {
|
|
21
|
-
AUTO = "auto",
|
|
22
|
-
CUSTOM = "custom",
|
|
23
|
-
DEGEN = "degen"
|
|
24
|
-
}
|
|
25
|
-
declare enum TRANSACTION_MODE {
|
|
26
|
-
AUTO = "auto",
|
|
27
|
-
CUSTOM = "custom",
|
|
28
|
-
INFINITY = "infinity"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { DEFAULT_DEADLINE, DEFAULT_SLIPPAGE, OwnershipType, ParameterPreset, SLIPPAGE_DEGEN_VALUE, SLIPPAGE_MODE, TRANSACTION_MODE };
|
package/dist/enum/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { P as POLLING } from '../polling-BKnyavLI.js';
|
|
2
|
-
export { T as TransactionActionType } from '../txnEnum-BQKDfaeH.js';
|
|
3
|
-
|
|
4
|
-
declare enum OwnershipType {
|
|
5
|
-
Governance = "Governance",
|
|
6
|
-
Fixed = "Fixed",
|
|
7
|
-
Custom = "Custom"
|
|
8
|
-
}
|
|
9
|
-
declare enum ParameterPreset {
|
|
10
|
-
USDBACKED = "USD-Backed Stablecoin",
|
|
11
|
-
ALGORITHMIC = "Algorithmic Stablecoin"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare const DEFAULT_SLIPPAGE: 0.5;
|
|
15
|
-
declare const SLIPPAGE_DEGEN_VALUE: 25;
|
|
16
|
-
/**
|
|
17
|
-
* Default
|
|
18
|
-
*/
|
|
19
|
-
declare const DEFAULT_DEADLINE: 60;
|
|
20
|
-
declare enum SLIPPAGE_MODE {
|
|
21
|
-
AUTO = "auto",
|
|
22
|
-
CUSTOM = "custom",
|
|
23
|
-
DEGEN = "degen"
|
|
24
|
-
}
|
|
25
|
-
declare enum TRANSACTION_MODE {
|
|
26
|
-
AUTO = "auto",
|
|
27
|
-
CUSTOM = "custom",
|
|
28
|
-
INFINITY = "infinity"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { DEFAULT_DEADLINE, DEFAULT_SLIPPAGE, OwnershipType, ParameterPreset, SLIPPAGE_DEGEN_VALUE, SLIPPAGE_MODE, TRANSACTION_MODE };
|
package/dist/enum/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i}from"../chunk-YK4NINF5.mjs";export{f as DEFAULT_DEADLINE,d as DEFAULT_SLIPPAGE,a as OwnershipType,c as POLLING,b as ParameterPreset,e as SLIPPAGE_DEGEN_VALUE,g as SLIPPAGE_MODE,h as TRANSACTION_MODE,i as TransactionActionType};
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/enum/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/errors/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkS74ZMG2Gcjs = require('../chunk-S74ZMG2G.cjs');var _chunkED43NYSEcjs = require('../chunk-ED43NYSE.cjs');var _chunkJMKLDDKYcjs = require('../chunk-JMKLDDKY.cjs');exports.BeraError = _chunkJMKLDDKYcjs.f; exports.InvalidArgumentError = _chunkJMKLDDKYcjs.g; exports.NotFoundError = _chunkS74ZMG2Gcjs.f; exports.RequestError = _chunkED43NYSEcjs.a; exports.TransactionFailedError = _chunkS74ZMG2Gcjs.g; exports.assertAddress = _chunkS74ZMG2Gcjs.d; exports.assertAmount = _chunkS74ZMG2Gcjs.e; exports.assertDefined = _chunkS74ZMG2Gcjs.b; exports.assertPublicClient = _chunkS74ZMG2Gcjs.c; exports.getErrorMessage = _chunkJMKLDDKYcjs.b; exports.initBeraError = _chunkS74ZMG2Gcjs.a;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/errors/index.cjs"],"names":[],"mappings":"AAAA,kIAAmF,yDAA0C,yDAAwD,+fAA0O","file":"/Users/pong/coding/monobera/packages/berajs/dist/errors/index.cjs"}
|
package/dist/errors/index.d.cts
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { PublicClient, Address, TransactionReceipt } from 'viem';
|
|
2
|
-
import { I as IBeraErrorArgs, B as BeraError } from '../BeraError-D1HS_rbb.cjs';
|
|
3
|
-
export { R as RequestError } from '../RequestError-D8AE6xnI.cjs';
|
|
4
|
-
import { Hex } from '@berachain-foundation/berancer-sdk';
|
|
5
|
-
import '@sentry/nextjs';
|
|
6
|
-
import '@apollo/client';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Asserts that a value is defined.
|
|
10
|
-
* @throws An InvalidArgumentError if the value is undefined or null.
|
|
11
|
-
*/
|
|
12
|
-
declare function assertDefined<T>(
|
|
13
|
-
/**
|
|
14
|
-
* The value to assert.
|
|
15
|
-
*/
|
|
16
|
-
value: T,
|
|
17
|
-
/**
|
|
18
|
-
* The property name.
|
|
19
|
-
*/
|
|
20
|
-
property: string): asserts value is NonNullable<T>;
|
|
21
|
-
/**
|
|
22
|
-
* Asserts that a value is a PublicClient.
|
|
23
|
-
* @throws An InvalidArgumentError if the value is undefined or not a PublicClient.
|
|
24
|
-
*/
|
|
25
|
-
declare function assertPublicClient(
|
|
26
|
-
/**
|
|
27
|
-
* The value to assert.
|
|
28
|
-
*/
|
|
29
|
-
value: PublicClient | undefined,
|
|
30
|
-
/**
|
|
31
|
-
* The property name.
|
|
32
|
-
*/
|
|
33
|
-
property?: string): asserts value is PublicClient;
|
|
34
|
-
/**
|
|
35
|
-
* Asserts that a value is an address (20 bytes).
|
|
36
|
-
* @throws An InvalidArgumentError if the value is undefined, null, not a string, or not an address.
|
|
37
|
-
*/
|
|
38
|
-
declare function assertAddress(
|
|
39
|
-
/**
|
|
40
|
-
* The value to assert.
|
|
41
|
-
*/
|
|
42
|
-
value: string | undefined,
|
|
43
|
-
/**
|
|
44
|
-
* The property name.
|
|
45
|
-
*/
|
|
46
|
-
property: string): asserts value is Address;
|
|
47
|
-
/**
|
|
48
|
-
* Asserts that a value is a number greater than 0.
|
|
49
|
-
* @throws An InvalidArgumentError if the value is undefined, null, not a string or number, or not a number greater than 0.
|
|
50
|
-
*/
|
|
51
|
-
declare function assertAmount(
|
|
52
|
-
/**
|
|
53
|
-
* The value to assert.
|
|
54
|
-
*/
|
|
55
|
-
value: unknown,
|
|
56
|
-
/**
|
|
57
|
-
* The property name.
|
|
58
|
-
*/
|
|
59
|
-
property: string): asserts value is string | number;
|
|
60
|
-
|
|
61
|
-
declare function getErrorMessage({ reason, message, }: {
|
|
62
|
-
reason?: string | null;
|
|
63
|
-
message?: string;
|
|
64
|
-
}): string;
|
|
65
|
-
|
|
66
|
-
interface IInvalidArgumentErrorArgs extends IBeraErrorArgs {
|
|
67
|
-
/**
|
|
68
|
-
* The name of the argument that is invalid.
|
|
69
|
-
*/
|
|
70
|
-
property: string;
|
|
71
|
-
/**
|
|
72
|
-
* The value of the argument that is invalid.
|
|
73
|
-
*/
|
|
74
|
-
value: unknown;
|
|
75
|
-
/**
|
|
76
|
-
* The expected type of the value as a string, eg. string, number, boolean, etc.
|
|
77
|
-
*/
|
|
78
|
-
expected: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Error thrown when argument validation fails. (e.g. an argument is missing or invalid)
|
|
82
|
-
*
|
|
83
|
-
* Default level is "warning".
|
|
84
|
-
*
|
|
85
|
-
* @example ```ts
|
|
86
|
-
* if (!publicClient) {
|
|
87
|
-
* throw new InvalidArgumentError({
|
|
88
|
-
* property: "publicClient",
|
|
89
|
-
* value: publicClient,
|
|
90
|
-
* expected: "PublicClient",
|
|
91
|
-
* });
|
|
92
|
-
* }
|
|
93
|
-
* if (!address || !isAddress(address)) {
|
|
94
|
-
* throw new InvalidArgumentError({
|
|
95
|
-
* property: "address",
|
|
96
|
-
* value: address,
|
|
97
|
-
* expected: "Address",
|
|
98
|
-
* });
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
declare class InvalidArgumentError extends BeraError {
|
|
104
|
-
/**
|
|
105
|
-
* The name of the argument that is invalid.
|
|
106
|
-
*/
|
|
107
|
-
property: string;
|
|
108
|
-
/**
|
|
109
|
-
* The value of the argument that is invalid.
|
|
110
|
-
*/
|
|
111
|
-
value: unknown;
|
|
112
|
-
/**
|
|
113
|
-
* The expected value of the argument.
|
|
114
|
-
*/
|
|
115
|
-
expected: string;
|
|
116
|
-
constructor(args: IInvalidArgumentErrorArgs);
|
|
117
|
-
get isMissing(): boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Whether the argument is defined but invalid.
|
|
120
|
-
*/
|
|
121
|
-
get isInvalid(): boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Initialize a BeraError from an error.
|
|
126
|
-
*
|
|
127
|
-
* If the error is already a BeraError, it will be returned as is.
|
|
128
|
-
* Otherwise, a new BeraError will be created with the error as the cause.
|
|
129
|
-
*/
|
|
130
|
-
declare function initBeraError({ cause: error }: {
|
|
131
|
-
cause: unknown;
|
|
132
|
-
}): BeraError;
|
|
133
|
-
|
|
134
|
-
interface INotFoundErrorArgs extends IBeraErrorArgs {
|
|
135
|
-
resource: string;
|
|
136
|
-
id: string;
|
|
137
|
-
chainId: number;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Error thrown when a resource is not found.
|
|
141
|
-
*/
|
|
142
|
-
declare class NotFoundError extends BeraError {
|
|
143
|
-
/**
|
|
144
|
-
* The name of the resource that was not found.
|
|
145
|
-
*
|
|
146
|
-
* @example "Reward vault"
|
|
147
|
-
*/
|
|
148
|
-
resource: string;
|
|
149
|
-
/**
|
|
150
|
-
* The id of the resource that was not found.
|
|
151
|
-
*
|
|
152
|
-
* @example "0x1234567890123456789012345678901234567890"
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
constructor(args: INotFoundErrorArgs);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* This error is generally thrown by beraWriteContract when a transaction or simulation fails.
|
|
160
|
-
*/
|
|
161
|
-
declare class TransactionFailedError extends BeraError {
|
|
162
|
-
/**
|
|
163
|
-
* The hash of the transaction that failed.
|
|
164
|
-
*
|
|
165
|
-
* Null if the error is due to a simulation failure.
|
|
166
|
-
*/
|
|
167
|
-
txHash: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* The receipt of the transaction that failed.
|
|
170
|
-
*
|
|
171
|
-
* Null if the error is due to a simulation failure.
|
|
172
|
-
*/
|
|
173
|
-
receipt: TransactionReceipt | null;
|
|
174
|
-
/**
|
|
175
|
-
* The address of the contract that was called.
|
|
176
|
-
*/
|
|
177
|
-
to: Address | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* The data of the transaction that failed.
|
|
180
|
-
*/
|
|
181
|
-
callData: Hex | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* The block number of the transaction that failed.
|
|
184
|
-
*/
|
|
185
|
-
blockNumber: bigint | null;
|
|
186
|
-
/**
|
|
187
|
-
* The input of the transaction that failed.
|
|
188
|
-
*/
|
|
189
|
-
input: object;
|
|
190
|
-
/**
|
|
191
|
-
* The function name of the transaction that failed.
|
|
192
|
-
*/
|
|
193
|
-
functionName: string | undefined;
|
|
194
|
-
constructor(args: IBeraErrorArgs & {
|
|
195
|
-
txHash?: string;
|
|
196
|
-
receipt?: TransactionReceipt;
|
|
197
|
-
to?: Address;
|
|
198
|
-
blockNumber?: bigint;
|
|
199
|
-
functionName?: string;
|
|
200
|
-
input: object;
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export { BeraError, IBeraErrorArgs, type IInvalidArgumentErrorArgs, type INotFoundErrorArgs, InvalidArgumentError, NotFoundError, TransactionFailedError, assertAddress, assertAmount, assertDefined, assertPublicClient, getErrorMessage, initBeraError };
|
package/dist/errors/index.d.ts
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { PublicClient, Address, TransactionReceipt } from 'viem';
|
|
2
|
-
import { I as IBeraErrorArgs, B as BeraError } from '../BeraError-D1HS_rbb.js';
|
|
3
|
-
export { R as RequestError } from '../RequestError-m4jxyM7D.js';
|
|
4
|
-
import { Hex } from '@berachain-foundation/berancer-sdk';
|
|
5
|
-
import '@sentry/nextjs';
|
|
6
|
-
import '@apollo/client';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Asserts that a value is defined.
|
|
10
|
-
* @throws An InvalidArgumentError if the value is undefined or null.
|
|
11
|
-
*/
|
|
12
|
-
declare function assertDefined<T>(
|
|
13
|
-
/**
|
|
14
|
-
* The value to assert.
|
|
15
|
-
*/
|
|
16
|
-
value: T,
|
|
17
|
-
/**
|
|
18
|
-
* The property name.
|
|
19
|
-
*/
|
|
20
|
-
property: string): asserts value is NonNullable<T>;
|
|
21
|
-
/**
|
|
22
|
-
* Asserts that a value is a PublicClient.
|
|
23
|
-
* @throws An InvalidArgumentError if the value is undefined or not a PublicClient.
|
|
24
|
-
*/
|
|
25
|
-
declare function assertPublicClient(
|
|
26
|
-
/**
|
|
27
|
-
* The value to assert.
|
|
28
|
-
*/
|
|
29
|
-
value: PublicClient | undefined,
|
|
30
|
-
/**
|
|
31
|
-
* The property name.
|
|
32
|
-
*/
|
|
33
|
-
property?: string): asserts value is PublicClient;
|
|
34
|
-
/**
|
|
35
|
-
* Asserts that a value is an address (20 bytes).
|
|
36
|
-
* @throws An InvalidArgumentError if the value is undefined, null, not a string, or not an address.
|
|
37
|
-
*/
|
|
38
|
-
declare function assertAddress(
|
|
39
|
-
/**
|
|
40
|
-
* The value to assert.
|
|
41
|
-
*/
|
|
42
|
-
value: string | undefined,
|
|
43
|
-
/**
|
|
44
|
-
* The property name.
|
|
45
|
-
*/
|
|
46
|
-
property: string): asserts value is Address;
|
|
47
|
-
/**
|
|
48
|
-
* Asserts that a value is a number greater than 0.
|
|
49
|
-
* @throws An InvalidArgumentError if the value is undefined, null, not a string or number, or not a number greater than 0.
|
|
50
|
-
*/
|
|
51
|
-
declare function assertAmount(
|
|
52
|
-
/**
|
|
53
|
-
* The value to assert.
|
|
54
|
-
*/
|
|
55
|
-
value: unknown,
|
|
56
|
-
/**
|
|
57
|
-
* The property name.
|
|
58
|
-
*/
|
|
59
|
-
property: string): asserts value is string | number;
|
|
60
|
-
|
|
61
|
-
declare function getErrorMessage({ reason, message, }: {
|
|
62
|
-
reason?: string | null;
|
|
63
|
-
message?: string;
|
|
64
|
-
}): string;
|
|
65
|
-
|
|
66
|
-
interface IInvalidArgumentErrorArgs extends IBeraErrorArgs {
|
|
67
|
-
/**
|
|
68
|
-
* The name of the argument that is invalid.
|
|
69
|
-
*/
|
|
70
|
-
property: string;
|
|
71
|
-
/**
|
|
72
|
-
* The value of the argument that is invalid.
|
|
73
|
-
*/
|
|
74
|
-
value: unknown;
|
|
75
|
-
/**
|
|
76
|
-
* The expected type of the value as a string, eg. string, number, boolean, etc.
|
|
77
|
-
*/
|
|
78
|
-
expected: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Error thrown when argument validation fails. (e.g. an argument is missing or invalid)
|
|
82
|
-
*
|
|
83
|
-
* Default level is "warning".
|
|
84
|
-
*
|
|
85
|
-
* @example ```ts
|
|
86
|
-
* if (!publicClient) {
|
|
87
|
-
* throw new InvalidArgumentError({
|
|
88
|
-
* property: "publicClient",
|
|
89
|
-
* value: publicClient,
|
|
90
|
-
* expected: "PublicClient",
|
|
91
|
-
* });
|
|
92
|
-
* }
|
|
93
|
-
* if (!address || !isAddress(address)) {
|
|
94
|
-
* throw new InvalidArgumentError({
|
|
95
|
-
* property: "address",
|
|
96
|
-
* value: address,
|
|
97
|
-
* expected: "Address",
|
|
98
|
-
* });
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
declare class InvalidArgumentError extends BeraError {
|
|
104
|
-
/**
|
|
105
|
-
* The name of the argument that is invalid.
|
|
106
|
-
*/
|
|
107
|
-
property: string;
|
|
108
|
-
/**
|
|
109
|
-
* The value of the argument that is invalid.
|
|
110
|
-
*/
|
|
111
|
-
value: unknown;
|
|
112
|
-
/**
|
|
113
|
-
* The expected value of the argument.
|
|
114
|
-
*/
|
|
115
|
-
expected: string;
|
|
116
|
-
constructor(args: IInvalidArgumentErrorArgs);
|
|
117
|
-
get isMissing(): boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Whether the argument is defined but invalid.
|
|
120
|
-
*/
|
|
121
|
-
get isInvalid(): boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Initialize a BeraError from an error.
|
|
126
|
-
*
|
|
127
|
-
* If the error is already a BeraError, it will be returned as is.
|
|
128
|
-
* Otherwise, a new BeraError will be created with the error as the cause.
|
|
129
|
-
*/
|
|
130
|
-
declare function initBeraError({ cause: error }: {
|
|
131
|
-
cause: unknown;
|
|
132
|
-
}): BeraError;
|
|
133
|
-
|
|
134
|
-
interface INotFoundErrorArgs extends IBeraErrorArgs {
|
|
135
|
-
resource: string;
|
|
136
|
-
id: string;
|
|
137
|
-
chainId: number;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Error thrown when a resource is not found.
|
|
141
|
-
*/
|
|
142
|
-
declare class NotFoundError extends BeraError {
|
|
143
|
-
/**
|
|
144
|
-
* The name of the resource that was not found.
|
|
145
|
-
*
|
|
146
|
-
* @example "Reward vault"
|
|
147
|
-
*/
|
|
148
|
-
resource: string;
|
|
149
|
-
/**
|
|
150
|
-
* The id of the resource that was not found.
|
|
151
|
-
*
|
|
152
|
-
* @example "0x1234567890123456789012345678901234567890"
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
constructor(args: INotFoundErrorArgs);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* This error is generally thrown by beraWriteContract when a transaction or simulation fails.
|
|
160
|
-
*/
|
|
161
|
-
declare class TransactionFailedError extends BeraError {
|
|
162
|
-
/**
|
|
163
|
-
* The hash of the transaction that failed.
|
|
164
|
-
*
|
|
165
|
-
* Null if the error is due to a simulation failure.
|
|
166
|
-
*/
|
|
167
|
-
txHash: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* The receipt of the transaction that failed.
|
|
170
|
-
*
|
|
171
|
-
* Null if the error is due to a simulation failure.
|
|
172
|
-
*/
|
|
173
|
-
receipt: TransactionReceipt | null;
|
|
174
|
-
/**
|
|
175
|
-
* The address of the contract that was called.
|
|
176
|
-
*/
|
|
177
|
-
to: Address | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* The data of the transaction that failed.
|
|
180
|
-
*/
|
|
181
|
-
callData: Hex | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* The block number of the transaction that failed.
|
|
184
|
-
*/
|
|
185
|
-
blockNumber: bigint | null;
|
|
186
|
-
/**
|
|
187
|
-
* The input of the transaction that failed.
|
|
188
|
-
*/
|
|
189
|
-
input: object;
|
|
190
|
-
/**
|
|
191
|
-
* The function name of the transaction that failed.
|
|
192
|
-
*/
|
|
193
|
-
functionName: string | undefined;
|
|
194
|
-
constructor(args: IBeraErrorArgs & {
|
|
195
|
-
txHash?: string;
|
|
196
|
-
receipt?: TransactionReceipt;
|
|
197
|
-
to?: Address;
|
|
198
|
-
blockNumber?: bigint;
|
|
199
|
-
functionName?: string;
|
|
200
|
-
input: object;
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export { BeraError, IBeraErrorArgs, type IInvalidArgumentErrorArgs, type INotFoundErrorArgs, InvalidArgumentError, NotFoundError, TransactionFailedError, assertAddress, assertAmount, assertDefined, assertPublicClient, getErrorMessage, initBeraError };
|
package/dist/errors/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,b as f,c as g,d as h,e as i,f as j,g as k}from"../chunk-6W22TFYA.mjs";import{a as d}from"../chunk-PHIOKO3A.mjs";import{b as a,f as b,g as c}from"../chunk-HCTFDGXL.mjs";export{b as BeraError,c as InvalidArgumentError,j as NotFoundError,d as RequestError,k as TransactionFailedError,h as assertAddress,i as assertAmount,f as assertDefined,g as assertPublicClient,a as getErrorMessage,e as initBeraError};
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|