@reserve-protocol/sdk 0.1.0 → 0.1.2

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _$viem from "viem";
2
- import { Abi, Address, Chain, ContractFunctionArgs, ContractFunctionName, Hex, Log, PublicClient, ReadContractParameters, ReadContractReturnType, WalletClient, erc20Abi } from "viem";
2
+ import { Abi, Address, Chain, ContractFunctionArgs, ContractFunctionName, Hex, Log, PublicClient, ReadContractParameters, ReadContractReturnType, erc20Abi } from "viem";
3
3
  import { RequestDocument, TypedDocumentString, Variables } from "graphql-request";
4
4
  import { z } from "zod";
5
5
  import { AuctionMetrics, OpenAuctionArgs, PriceRange, Rebalance, RebalanceLimits, RebalanceLimits as RebalanceLimits$1, TokenRebalanceParams, WeightRange } from "@reserve-protocol/dtf-rebalance-lib";
@@ -452,22 +452,14 @@ type DtfClientViemChainConfig = {
452
452
  type DtfClientViemConfig = {
453
453
  readonly chains: Partial<Record<SupportedChainId, DtfClientViemChainConfig>>;
454
454
  };
455
- type CreateWalletClientParams = {
456
- readonly chainId: SupportedChainId;
457
- readonly privateKey: Hex;
458
- readonly rpcUrls?: readonly string[];
459
- };
460
455
  type DtfClientReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, "pure" | "view"> = ContractFunctionName<abi, "pure" | "view">, args extends ContractFunctionArgs<abi, "pure" | "view", functionName> = ContractFunctionArgs<abi, "pure" | "view", functionName>> = ReadContractParameters<abi, functionName, args> & {
461
456
  readonly chainId: SupportedChainId;
462
457
  };
463
458
  type DtfClientViem = {
464
459
  readonly getPublicClient: (chainId: SupportedChainId) => PublicClient;
465
460
  readonly getRpcUrls: (chainId: SupportedChainId) => readonly string[];
466
- readonly createWalletClient: (params: CreateWalletClientParams) => WalletClient;
467
461
  readonly readContract: <const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, "pure" | "view">, const args extends ContractFunctionArgs<abi, "pure" | "view", functionName>>(params: DtfClientReadContractParameters<abi, functionName, args>) => Promise<ReadContractReturnType<abi, functionName, args>>;
468
462
  };
469
- /** Creates a viem WalletClient from a private key using the SDK's viem dependency. */
470
- declare function createWalletClient(params: CreateWalletClientParams): WalletClient;
471
463
  //#endregion
472
464
  //#region src/client/index.d.ts
473
465
  type DtfChainConfig = DtfClientSubgraphChainConfig & DtfClientViemChainConfig;
@@ -42670,7 +42662,10 @@ declare function prepareIndexDtfBasketApproval(params: PrepareIndexDtfBasketAppr
42670
42662
  }];
42671
42663
  }], "approve">;
42672
42664
  /** Applies basis-point slippage to redeem amounts while preserving token order. */
42673
- declare function getIndexDtfRedeemMinAmounts(amounts: readonly bigint[], slippageBps: number): readonly bigint[];
42665
+ declare function getIndexDtfRedeemMinAmounts(params: {
42666
+ readonly amounts: readonly bigint[];
42667
+ readonly slippageBps: number;
42668
+ }): readonly bigint[];
42674
42669
  //#endregion
42675
42670
  //#region src/index-dtf/dtf/issuance.d.ts
42676
42671
  type GetIndexDtfIssuanceStateParams = {
@@ -43822,7 +43817,10 @@ declare function prepareIndexDtfDeployAssetApproval(params: PrepareIndexDtfDeplo
43822
43817
  }];
43823
43818
  }], "approve">;
43824
43819
  declare function prepareIndexDtfDeployAssetApprovals(params: PrepareIndexDtfDeployApprovalsParams): readonly ReturnType<typeof prepareIndexDtfDeployAssetApproval>[];
43825
- declare function getIndexDtfDeployApprovalAmount(amount: bigint, approvalBufferBps?: number): bigint;
43820
+ declare function getIndexDtfDeployApprovalAmount(params: {
43821
+ readonly amount: bigint;
43822
+ readonly approvalBufferBps?: number | undefined;
43823
+ }): bigint;
43826
43824
  declare function extractIndexDtfDeployedAddress(logs: readonly Log[]): Address;
43827
43825
  declare function extractIndexDtfDeployedStakingTokenAddress(logs: readonly Log[]): Address;
43828
43826
  //#endregion
@@ -138243,4 +138241,4 @@ type YieldDtfListItem = Pick<YieldDtf, "address" | "chainId" | "name" | "symbol"
138243
138241
  readonly performance?: readonly DtfPerformancePoint[];
138244
138242
  };
138245
138243
  //#endregion
138246
- export { type AccountPortfolio, AddressAuthority, AmbiguousIndexDtfAlias, Amount, type Asset, Authority, AuthorityGroup, BlockNumber, BuildIndexDtfBasketProposalParams, type BuildIndexDtfBasketSettingsProposalParams, type BuildIndexDtfDaoSettingsProposalParams, type BuildIndexDtfInitialBasketParams, type BuildIndexDtfSettingsProposalParams, type BuildIndexDtfStartRebalanceArgsParams, type BuildIndexDtfStartRebalanceParams, BuiltIndexDtfBasketProposal, BuiltIndexDtfBasketProposalContext, BuiltIndexDtfOpenAuction, type BuiltIndexDtfProposal, type BuiltIndexDtfStartRebalance, type BuiltIndexDtfStartRebalanceAsset, CANCELLER_ROLE, CancelIndexDtfProposalParams, type ContractCall, type ContractCallPlan, type CreateWalletClientParams, DEFAULT_API_BASE_URL, DEFAULT_AUCTION_LAUNCHER_WINDOW, DEFAULT_INDEX_DTF_DEPLOY_FLAGS, DEFAULT_MAX_AUCTION_SIZE_USD, DEFAULT_RPC_URLS, type DecodeIndexDtfProposalParams, type DiscoverDtf, DiscoverIndexDtfsByChainParams, DiscoverIndexDtfsFromSubgraphParams, DiscoverIndexDtfsParams, DtfBasketAsset, DtfBasketSummaryAsset, DtfBrand, type DtfChainConfig, type DtfClient, type DtfClientApi, type DtfClientConfig, type DtfClientExplorer, type DtfClientExplorerContractMetadata, type DtfClientReadContractParameters, type DtfClientSubgraph, type DtfClientSubgraphChainConfig, type DtfClientSubgraphConfig, type DtfClientViem, type DtfClientViemChainConfig, type DtfClientViemConfig, DtfMarketData, DtfParams, DtfPerformancePoint, type DtfSdk, type DtfSdkConfig, DtfStatus, ExecuteIndexDtfProposalParams, FeeRecipients, Fees, Financials, GetAllIndexDtfProposalsParams, type GetAssetListParams, type GetBasketTokenPricesWithSnapshotParams, type GetDiscoverDtfsOptions, type GetDtfPricesParams, GetFullIndexDtfOptions, GetFullIndexDtfParams, type GetHistoricalTokenPricesParams, GetIndexDtfBasketOptions, GetIndexDtfBasketParams, GetIndexDtfBasketSnapshotOptions, GetIndexDtfBasketSnapshotParams, GetIndexDtfBidQuoteParams, GetIndexDtfCompletedRebalanceParams, GetIndexDtfCompletedRebalancesOptions, GetIndexDtfCompletedRebalancesParams, GetIndexDtfDelegatesParams, GetIndexDtfExposureParams, GetIndexDtfGuardiansParams, GetIndexDtfHoldersParams, GetIndexDtfIssuanceStateParams, GetIndexDtfLegacyVoteLocksParams, GetIndexDtfOptimisticGovernanceParams, GetIndexDtfOptimisticProposalContextParams, GetIndexDtfOptimisticProposalVoterStateParams, GetIndexDtfOptimisticVotesParams, GetIndexDtfOptions, GetIndexDtfParams, GetIndexDtfPastOptimisticVotesParams, GetIndexDtfPriceHistoryOptions, GetIndexDtfPriceHistoryParams, GetIndexDtfPriceParams, GetIndexDtfPricesParams, GetIndexDtfProposalParams, GetIndexDtfProposalThrottleChargesParams, GetIndexDtfProposalVoterStateParams, GetIndexDtfProposalVotesParams, GetIndexDtfProposalVotingSnapshotParams, GetIndexDtfProposalsOptions, GetIndexDtfProposalsParams, GetIndexDtfProposerStateParams, GetIndexDtfRebalanceParams, GetIndexDtfRebalancesOptions, GetIndexDtfRebalancesParams, GetIndexDtfTotalAssetsParams, GetIndexDtfTotalSupplyParams, GetIndexDtfTransactionsParams, GetIndexDtfVersionParams, GetIndexDtfVoterStateParams, type GetIndexDtfBasketSnapshotParams$1 as GetReserveApiIndexDtfBasketSnapshotParams, type GetIndexDtfPriceHistoryParams$1 as GetReserveApiIndexDtfPriceHistoryParams, type GetIndexDtfPriceParams$1 as GetReserveApiIndexDtfPriceParams, type GetIndexDtfRebalanceDetailParams as GetReserveApiIndexDtfRebalanceDetailParams, type GetIndexDtfRebalanceHistoryParams as GetReserveApiIndexDtfRebalanceHistoryParams, GetSelectorRegistryIsAllowedParams, GetSelectorRegistryParams, GetSelectorRegistryTargetParams, GetTokenPricesParams, GetTokenVolatilitiesParams, Governance, GovernanceAuthority, INDEX_DTF_DEPLOYER_ADDRESS, INDEX_DTF_GOVERNANCE_DEPLOYER_ADDRESS, INDEX_DTF_SUBGRAPH_URL, IndexDtf, IndexDtfActiveAuction, IndexDtfAdminRoles, IndexDtfAuction, IndexDtfBasket, IndexDtfBasketAsset, IndexDtfBasketAssetWithPrice, type IndexDtfBasketCurrentBalancesInput, type IndexDtfBasketDefinition, type IndexDtfBasketInput, IndexDtfBasketProposalBaseToken, IndexDtfBasketProposalInput, IndexDtfBasketProposalSharesInput, IndexDtfBasketProposalUnitsInput, type IndexDtfBasketSharesInput, IndexDtfBasketSnapshot, type IndexDtfBasketToken, type IndexDtfBasketTokenInput, type IndexDtfBasketUnitsInput, IndexDtfBasketWithPrice, IndexDtfBatchPrice, IndexDtfBid, IndexDtfBidQuote, IndexDtfBrand, IndexDtfBrandProfile, IndexDtfBrandSocials, IndexDtfCall, IndexDtfCatalogEntry, IndexDtfCompletedRebalance, IndexDtfCompletedRebalanceAuction, IndexDtfCompletedRebalanceBid, IndexDtfCompletedRebalanceDetail, IndexDtfCurrentRebalance, IndexDtfCurrentRebalanceState, IndexDtfDecodedCalldata, IndexDtfDecodedContractGroup, IndexDtfDelegate, IndexDtfDelegates, IndexDtfDeployAdditionalDetails, IndexDtfDeployBasicDetails, IndexDtfDeployFlags, IndexDtfDeployGovernanceParams, IndexDtfDeployGovernanceRoles, IndexDtfDeployRevenueDistributionParams, IndexDtfDiscoveryItem, IndexDtfExposureGroup, IndexDtfExposurePeriod, IndexDtfExposureToken, IndexDtfFeeRecipient, IndexDtfFull, IndexDtfGovernance, type IndexDtfGovernanceChanges, IndexDtfGovernanceInput, IndexDtfGuardianGroup, IndexDtfGuardians, IndexDtfHolder, IndexDtfHolderConcentration, IndexDtfHolders, type IndexDtfInitialBasket, IndexDtfInput, IndexDtfIssuanceAsset, IndexDtfIssuanceState, IndexDtfLatestAuction, IndexDtfMarket, IndexDtfOpenAuctionInput, IndexDtfOptimisticGovernance, IndexDtfOptimisticGovernanceParams, IndexDtfOptimisticProposalContext, IndexDtfOptimisticProposalVoterState, IndexDtfOptimisticSelector, IndexDtfPlatformFee, IndexDtfPrice, IndexDtfPriceBasketAsset, IndexDtfPriceBasketToken, IndexDtfPricePoint, IndexDtfProposalActionParams, IndexDtfProposalDecoded, IndexDtfProposalDetail, type IndexDtfProposalDtfContractContext, type IndexDtfProposalGovernanceContractContext, IndexDtfProposalList, IndexDtfProposalPayload, IndexDtfProposalSummary, IndexDtfProposalVote, IndexDtfProposalVoterState, IndexDtfProposalVotes, IndexDtfProposalVotingSnapshot, IndexDtfProposerState, IndexDtfRebalance, IndexDtfRebalanceConfig, type IndexDtfRef, IndexDtfRevenue, IndexDtfRevenueDistribution, type IndexDtfRevenueDistributionInput, type IndexDtfRevenueRecipientInput, IndexDtfRoles, IndexDtfSelectorData, IndexDtfTargetBasketPriceMode, IndexDtfTotalAssets, IndexDtfTransaction, IndexDtfTransactionType, IndexDtfUnknownCalldata, IndexDtfUnknownContractGroup, IndexDtfVoteParams, IndexDtfVoteSupport, IndexDtfVoterState, IndexDtfWriteVersion, ListIndexDtfsParams, OPTIMISTIC_PROPOSER_ROLE, type OpenAuctionArgs, OptimisticGovernanceSettings, type PortfolioIndexDtf, type PortfolioPeriod, type PortfolioReward, type PortfolioTransaction, type PortfolioVoteLock, PrepareIndexDtfAuctionLengthCallParams, type PrepareIndexDtfBasketApprovalParams, PrepareIndexDtfBidParams, PrepareIndexDtfCallParams, PrepareIndexDtfDeployApprovalParams, PrepareIndexDtfDeployApprovalsParams, PrepareIndexDtfDeployGovernedParams, PrepareIndexDtfDeployGovernedPlanParams, PrepareIndexDtfDeployParams, PrepareIndexDtfDeployPlanApprovalParams, PrepareIndexDtfDeployPlanParams, PrepareIndexDtfDeployStakingTokenParams, PrepareIndexDtfGovernorCallParams, type PrepareIndexDtfMintParams, type PrepareIndexDtfMintPlanParams, PrepareIndexDtfOptimisticGovernanceCallParams, PrepareIndexDtfPercentageCallParams, type PrepareIndexDtfRedeemParams, PrepareIndexDtfSetOptimisticParamsParams, PrepareIndexDtfSetRebalanceControlParams, PrepareIndexDtfTimelockCallParams, PrepareIndexDtfTokenCallParams, PrepareSelectorRegistrySelectorsParams, PrepareVoteLockDepositParams, PrepareVoteLockDepositPlanParams, PriceControl, type PriceRange, ProposalState, ProposalVotingState, ProposalVotingThreshold, ProposeIndexDtfProposalParams, type QueryIndexAllSubgraphsOptions, type QueryIndexSubgraphOptions, type QueryYieldSubgraphOptions, QueueIndexDtfProposalParams, ReadVoteLockAccountParams, ReadVoteLockAccountTimepointParams, ReadVoteLockAmountParams, ReadVoteLockCheckpointParams, ReadVoteLockLockParams, ReadVoteLockParams, ReadVoteLockRewardTokenParams, ReadVoteLockSharesParams, ReadVoteLockTimepointParams, ReadVoteLockUnderlyingAllowanceParams, ReadVoteLockUnderlyingBalanceParams, ReadVoteLockUnstakingManagerParams, ReadVoteLockUserRewardTrackerParams, type Rebalance, type RebalanceLimits, type ReserveApiDtfBasketToken, type ReserveApiDtfPrice, type ReserveApiHistoricalTokenPrices, type ReserveApiIndexDtfBasketSnapshot, type ReserveApiIndexDtfPrice, type ReserveApiIndexDtfPriceHistory, type ReserveApiIndexDtfRebalanceDetail, type ReserveApiIndexDtfRebalanceHistoryItem, ResolveIndexDtfAliasParams, ResolvedIndexDtfAlias, SUPPORTED_CHAINS, SdkError, type SdkErrorCode, type SdkErrorMeta, type SdkErrorOptions, type StartRebalanceArgsV5, type SubgraphDocument, SubmitOptimisticIndexDtfProposalParams, type SupportedChainId, Timelock, Token, TokenPrice, type TokenPriceWithSnapshot, TokenSnapshot, TokenVolatility, TokenWithSnapshot, VoteIndexDtfProposalParams, VoteLockDao, VoteLockState, VoteLockVault, type WeightRange, YIELD_DTF_SUBGRAPH_URL, YieldDtf, YieldDtfListItem, buildIndexDtfBasketProposal, buildIndexDtfBasketSettingsProposal, buildIndexDtfDaoSettingsProposal, buildIndexDtfDeployFeeRecipients, buildInitialBasket as buildIndexDtfInitialBasket, buildInitialBasket, buildIndexDtfSettingsProposal, buildIndexDtfStartRebalance, buildStartRebalanceArgs as buildIndexDtfStartRebalanceArgs, buildStartRebalanceArgs, createDtfClient, createDtfSdk, createIndexDtfNamespace, createIndexDtfRef, createPortfolioNamespace, createWalletClient, decodeIndexDtfProposal, decodeIndexDtfProposalCalldatas, discoverIndexDtfs, discoverIndexDtfsByChain, discoverIndexDtfsFromSubgraph, dtfCatalog, dtfIndexAbi, dtfIndexGovernanceAbi, dtfIndexGovernanceOptimisticAbi, dtfIndexGovernanceProposalAbi, dtfIndexStakingVaultAbi, dtfIndexStakingVaultOptimisticAbi, extractIndexDtfDeployedAddress, extractIndexDtfDeployedStakingTokenAddress, generateIndexDtfDeploymentNonce, getAccountPortfolio, getAccountPortfolioHistory, getAccountPortfolioTransactions, getActiveAuction, getActiveAuction as getIndexDtfActiveAuction, getAllProposals as getAllIndexDtfProposals, getBasketSharesFromUnits, getBasketSharesFromUnits as getIndexDtfBasketSharesFromUnits, getBasketUnitsFromShares, getBasketUnitsFromShares as getIndexDtfBasketUnitsFromShares, getBidQuote, getBidQuote as getIndexDtfBidQuote, getCompletedRebalance, getCompletedRebalance as getIndexDtfCompletedRebalance, getCompletedRebalances, getCompletedRebalances as getIndexDtfCompletedRebalances, getDiscoverDtfs, getDtf, getDtfPriceFromBalances, getDtfPriceFromBalances as getIndexDtfPriceFromBalances, getEffectiveRevenueDistribution, getEffectiveRevenueDistribution as getIndexDtfEffectiveRevenueDistribution, getFull as getFullIndexDtf, getFull as getIndexDtf, getIndexDtfApprovedRevenueTokens, getAssetList as getIndexDtfAssetList, getBasket as getIndexDtfBasket, getBasketSnapshot as getIndexDtfBasketSnapshot, getBasketWithPrice as getIndexDtfBasketWithPrice, getIndexDtfBidsEnabled, getBrand as getIndexDtfBrand, getIndexDtfCatalogEntries, getIndexDtfCurrentRebalance, getDelegates as getIndexDtfDelegates, getIndexDtfDeployApprovalAmount, getIndexDtfExposure, getGuardians as getIndexDtfGuardians, getIndexDtfHolders, getIndexDtfIssuanceState, getLatestAuction as getIndexDtfLatestAuction, getLatestAuction, getLegacyVoteLocks as getIndexDtfLegacyVoteLocks, getMandate as getIndexDtfMandate, getOptimisticGovernance as getIndexDtfOptimisticGovernance, getOptimisticProposalContext as getIndexDtfOptimisticProposalContext, getOptimisticProposalVoterState as getIndexDtfOptimisticProposalVoterState, getOptimisticSelectors as getIndexDtfOptimisticSelectors, getOptimisticSelectors, getOptimisticTimelockRoles as getIndexDtfOptimisticTimelockRoles, getOptimisticVotes as getIndexDtfOptimisticVotes, getPastOptimisticVotes as getIndexDtfPastOptimisticVotes, getIndexDtfPendingFeeShares, getIndexDtfPlatformFee, getPrice as getIndexDtfPrice, getPriceHistory as getIndexDtfPriceHistory, getPrices as getIndexDtfPrices, getProposal as getIndexDtfProposal, getProposalGovernanceAddresses as getIndexDtfProposalGovernanceAddresses, getProposalList as getIndexDtfProposalList, getProposalState as getIndexDtfProposalState, getProposalState, getProposalThrottleCharges as getIndexDtfProposalThrottleCharges, getProposalVoterState as getIndexDtfProposalVoterState, getProposalVotes as getIndexDtfProposalVotes, getProposalVotingSnapshot as getIndexDtfProposalVotingSnapshot, getProposals as getIndexDtfProposals, getProposerState as getIndexDtfProposerState, getRebalance as getIndexDtfRebalance, getRebalance, getRebalanceAuctions as getIndexDtfRebalanceAuctions, getRebalanceAuctions, getIndexDtfRebalanceControl, getRebalances as getIndexDtfRebalances, getRebalances, getIndexDtfRedeemMinAmounts, getIndexDtfRevenue, getSelectorRegistryAllowedSelectors as getIndexDtfSelectorRegistryAllowedSelectors, getSelectorRegistryAllowedSelectors, getSelectorRegistryIsAllowed as getIndexDtfSelectorRegistryIsAllowed, getSelectorRegistryIsAllowed, getSelectorRegistryTargets as getIndexDtfSelectorRegistryTargets, getSelectorRegistryTargets, getIndexDtfStatus, getIndexDtfStatuses, getTotalAssets as getIndexDtfTotalAssets, getTotalSupply as getIndexDtfTotalSupply, getIndexDtfTransactions, getVersion as getIndexDtfVersion, getVoteLockDao as getIndexDtfVoteLockDao, getVoteLockDao, getVoteLockDaos as getIndexDtfVoteLockDaos, getVoteLockDaos, getVoteLockState as getIndexDtfVoteLockState, getVoteLockState, getVoterState as getIndexDtfVoterState, getTokenData, getTokenPrices, getTokenVolatilities, getTokensData, hashIndexDtfProposalDescription, indexDtfBasketSchema as indexDtfBasketProposalSchema, indexDtfBasketSchema, indexDtfBasketTokenSchema as indexDtfBasketProposalTokenSchema, indexDtfBasketTokenSchema, indexDtfBasketSettingsProposalSchema, indexDtfBasketSharesSchema as indexDtfBasketSharesProposalSchema, indexDtfBasketSharesSchema, indexDtfBasketUnitsSchema as indexDtfBasketUnitsProposalSchema, indexDtfBasketUnitsSchema, indexDtfCatalog, indexDtfDaoSettingsProposalSchema, indexDtfGovernanceChangesSchema, indexDtfSettingsProposalSchema, indexDtfV5WriteAbi, indexDtfV6WriteAbi, isSdkError, listIndexDtfs, mapCurrentRebalance, prepareContractCall, prepareErc20Approval, prepareIndexDtfAddToAllowlist, prepareIndexDtfAddToBasket, prepareIndexDtfBasketApproval, prepareIndexDtfBid, prepareIndexDtfCancelProposal, prepareIndexDtfCloseAuction, prepareIndexDtfDeploy, prepareIndexDtfDeployAssetApproval, prepareIndexDtfDeployAssetApprovals, prepareIndexDtfDeployGoverned, prepareIndexDtfDeployGovernedPlan, prepareIndexDtfDeployPlan, prepareIndexDtfDeployStakingToken, prepareIndexDtfDeprecate, prepareIndexDtfDistributeFees, prepareIndexDtfEndRebalance, prepareIndexDtfExecuteProposal, prepareIndexDtfGovernorCancelProposal, prepareIndexDtfMint, prepareIndexDtfMintPlan, prepareIndexDtfOpenAuction, prepareIndexDtfOpenAuctionArgs, prepareIndexDtfOpenAuctionUnrestricted, prepareIndexDtfQueueProposal, prepareIndexDtfRedeem, prepareIndexDtfRelay, prepareIndexDtfRemoveFromAllowlist, prepareIndexDtfRemoveFromBasket, prepareIndexDtfRevokeOptimisticProposer, prepareIndexDtfSetAuctionLength, prepareIndexDtfSetBidsEnabled, prepareIndexDtfSetFeeRecipients, prepareIndexDtfSetLateQuorumVoteExtension, prepareIndexDtfSetMandate, prepareIndexDtfSetMintFee, prepareIndexDtfSetName, prepareIndexDtfSetOptimisticParams, prepareIndexDtfSetProposalThrottle, prepareIndexDtfSetRebalanceControl, prepareIndexDtfSetSelfFee, prepareIndexDtfSetTradeAllowlistEnabled, prepareIndexDtfSetTrustedFillerRegistry, prepareIndexDtfSetTvlFee, prepareIndexDtfSubmitOptimisticProposal, prepareIndexDtfSubmitProposal, prepareIndexDtfTimelockDelay, prepareIndexDtfTimelockExecuteBatch, prepareIndexDtfTimelockGrantRole, prepareIndexDtfTimelockRevokeRole, prepareIndexDtfUpdateTimelock, prepareIndexDtfVote, prepareIndexDtfVoteWithReason, prepareIndexDtfVoteWithReasonAndParams, prepareSelectorRegistryRegisterSelectors, prepareSelectorRegistryUnregisterSelectors, prepareVoteLockAddRewardToken, prepareVoteLockCancelLock, prepareVoteLockClaimLock, prepareVoteLockClaimRewards, prepareVoteLockDelegate, prepareVoteLockDelegateOptimistic, prepareVoteLockDeposit, prepareVoteLockDepositPlan, prepareVoteLockPoke, prepareVoteLockRemoveRewardToken, prepareVoteLockSetRewardRatio, prepareVoteLockSetUnstakingDelay, prepareVoteLockWithdraw, readVoteLockAllRewardTokens, readVoteLockAsset, readVoteLockBalanceOf, readVoteLockCheckpoint, readVoteLockClock, readVoteLockClockMode, readVoteLockConvertToAssets, readVoteLockConvertToShares, readVoteLockDelegates, readVoteLockDisallowedRewardToken, readVoteLockGetPastTotalSupply, readVoteLockGetPastVotes, readVoteLockGetVotes, readVoteLockLock, readVoteLockMaxDeposit, readVoteLockMaxMint, readVoteLockMaxRedeem, readVoteLockMaxWithdraw, readVoteLockNumCheckpoints, readVoteLockOptimisticDelegates, readVoteLockOptimisticVotes, readVoteLockPastOptimisticVotes, readVoteLockPreviewDeposit, readVoteLockPreviewMint, readVoteLockPreviewRedeem, readVoteLockPreviewWithdraw, readVoteLockRewardRatio, readVoteLockRewardTracker, readVoteLockTotalAssets, readVoteLockTotalSupply, readVoteLockUnderlyingAllowance, readVoteLockUnderlyingBalance, readVoteLockUnstakingDelay, readVoteLockUnstakingManager, readVoteLockUnstakingTargetToken, readVoteLockUnstakingVault, readVoteLockUserRewardTracker, resolveIndexDtfAlias, supportedChainIds, yieldDtfCatalog };
138244
+ export { type AccountPortfolio, AddressAuthority, AmbiguousIndexDtfAlias, Amount, type Asset, Authority, AuthorityGroup, BlockNumber, BuildIndexDtfBasketProposalParams, type BuildIndexDtfBasketSettingsProposalParams, type BuildIndexDtfDaoSettingsProposalParams, type BuildIndexDtfInitialBasketParams, type BuildIndexDtfSettingsProposalParams, type BuildIndexDtfStartRebalanceArgsParams, type BuildIndexDtfStartRebalanceParams, BuiltIndexDtfBasketProposal, BuiltIndexDtfBasketProposalContext, BuiltIndexDtfOpenAuction, type BuiltIndexDtfProposal, type BuiltIndexDtfStartRebalance, type BuiltIndexDtfStartRebalanceAsset, CANCELLER_ROLE, CancelIndexDtfProposalParams, type ContractCall, type ContractCallPlan, DEFAULT_API_BASE_URL, DEFAULT_AUCTION_LAUNCHER_WINDOW, DEFAULT_INDEX_DTF_DEPLOY_FLAGS, DEFAULT_MAX_AUCTION_SIZE_USD, DEFAULT_RPC_URLS, type DecodeIndexDtfProposalParams, type DiscoverDtf, DiscoverIndexDtfsByChainParams, DiscoverIndexDtfsFromSubgraphParams, DiscoverIndexDtfsParams, DtfBasketAsset, DtfBasketSummaryAsset, DtfBrand, type DtfChainConfig, type DtfClient, type DtfClientApi, type DtfClientConfig, type DtfClientExplorer, type DtfClientExplorerContractMetadata, type DtfClientReadContractParameters, type DtfClientSubgraph, type DtfClientSubgraphChainConfig, type DtfClientSubgraphConfig, type DtfClientViem, type DtfClientViemChainConfig, type DtfClientViemConfig, DtfMarketData, DtfParams, DtfPerformancePoint, type DtfSdk, type DtfSdkConfig, DtfStatus, ExecuteIndexDtfProposalParams, FeeRecipients, Fees, Financials, GetAllIndexDtfProposalsParams, type GetAssetListParams, type GetBasketTokenPricesWithSnapshotParams, type GetDiscoverDtfsOptions, type GetDtfPricesParams, GetFullIndexDtfOptions, GetFullIndexDtfParams, type GetHistoricalTokenPricesParams, GetIndexDtfBasketOptions, GetIndexDtfBasketParams, GetIndexDtfBasketSnapshotOptions, GetIndexDtfBasketSnapshotParams, GetIndexDtfBidQuoteParams, GetIndexDtfCompletedRebalanceParams, GetIndexDtfCompletedRebalancesOptions, GetIndexDtfCompletedRebalancesParams, GetIndexDtfDelegatesParams, GetIndexDtfExposureParams, GetIndexDtfGuardiansParams, GetIndexDtfHoldersParams, GetIndexDtfIssuanceStateParams, GetIndexDtfLegacyVoteLocksParams, GetIndexDtfOptimisticGovernanceParams, GetIndexDtfOptimisticProposalContextParams, GetIndexDtfOptimisticProposalVoterStateParams, GetIndexDtfOptimisticVotesParams, GetIndexDtfOptions, GetIndexDtfParams, GetIndexDtfPastOptimisticVotesParams, GetIndexDtfPriceHistoryOptions, GetIndexDtfPriceHistoryParams, GetIndexDtfPriceParams, GetIndexDtfPricesParams, GetIndexDtfProposalParams, GetIndexDtfProposalThrottleChargesParams, GetIndexDtfProposalVoterStateParams, GetIndexDtfProposalVotesParams, GetIndexDtfProposalVotingSnapshotParams, GetIndexDtfProposalsOptions, GetIndexDtfProposalsParams, GetIndexDtfProposerStateParams, GetIndexDtfRebalanceParams, GetIndexDtfRebalancesOptions, GetIndexDtfRebalancesParams, GetIndexDtfTotalAssetsParams, GetIndexDtfTotalSupplyParams, GetIndexDtfTransactionsParams, GetIndexDtfVersionParams, GetIndexDtfVoterStateParams, type GetIndexDtfBasketSnapshotParams$1 as GetReserveApiIndexDtfBasketSnapshotParams, type GetIndexDtfPriceHistoryParams$1 as GetReserveApiIndexDtfPriceHistoryParams, type GetIndexDtfPriceParams$1 as GetReserveApiIndexDtfPriceParams, type GetIndexDtfRebalanceDetailParams as GetReserveApiIndexDtfRebalanceDetailParams, type GetIndexDtfRebalanceHistoryParams as GetReserveApiIndexDtfRebalanceHistoryParams, GetSelectorRegistryIsAllowedParams, GetSelectorRegistryParams, GetSelectorRegistryTargetParams, GetTokenPricesParams, GetTokenVolatilitiesParams, Governance, GovernanceAuthority, INDEX_DTF_DEPLOYER_ADDRESS, INDEX_DTF_GOVERNANCE_DEPLOYER_ADDRESS, INDEX_DTF_SUBGRAPH_URL, IndexDtf, IndexDtfActiveAuction, IndexDtfAdminRoles, IndexDtfAuction, IndexDtfBasket, IndexDtfBasketAsset, IndexDtfBasketAssetWithPrice, type IndexDtfBasketCurrentBalancesInput, type IndexDtfBasketDefinition, type IndexDtfBasketInput, IndexDtfBasketProposalBaseToken, IndexDtfBasketProposalInput, IndexDtfBasketProposalSharesInput, IndexDtfBasketProposalUnitsInput, type IndexDtfBasketSharesInput, IndexDtfBasketSnapshot, type IndexDtfBasketToken, type IndexDtfBasketTokenInput, type IndexDtfBasketUnitsInput, IndexDtfBasketWithPrice, IndexDtfBatchPrice, IndexDtfBid, IndexDtfBidQuote, IndexDtfBrand, IndexDtfBrandProfile, IndexDtfBrandSocials, IndexDtfCall, IndexDtfCatalogEntry, IndexDtfCompletedRebalance, IndexDtfCompletedRebalanceAuction, IndexDtfCompletedRebalanceBid, IndexDtfCompletedRebalanceDetail, IndexDtfCurrentRebalance, IndexDtfCurrentRebalanceState, IndexDtfDecodedCalldata, IndexDtfDecodedContractGroup, IndexDtfDelegate, IndexDtfDelegates, IndexDtfDeployAdditionalDetails, IndexDtfDeployBasicDetails, IndexDtfDeployFlags, IndexDtfDeployGovernanceParams, IndexDtfDeployGovernanceRoles, IndexDtfDeployRevenueDistributionParams, IndexDtfDiscoveryItem, IndexDtfExposureGroup, IndexDtfExposurePeriod, IndexDtfExposureToken, IndexDtfFeeRecipient, IndexDtfFull, IndexDtfGovernance, type IndexDtfGovernanceChanges, IndexDtfGovernanceInput, IndexDtfGuardianGroup, IndexDtfGuardians, IndexDtfHolder, IndexDtfHolderConcentration, IndexDtfHolders, type IndexDtfInitialBasket, IndexDtfInput, IndexDtfIssuanceAsset, IndexDtfIssuanceState, IndexDtfLatestAuction, IndexDtfMarket, IndexDtfOpenAuctionInput, IndexDtfOptimisticGovernance, IndexDtfOptimisticGovernanceParams, IndexDtfOptimisticProposalContext, IndexDtfOptimisticProposalVoterState, IndexDtfOptimisticSelector, IndexDtfPlatformFee, IndexDtfPrice, IndexDtfPriceBasketAsset, IndexDtfPriceBasketToken, IndexDtfPricePoint, IndexDtfProposalActionParams, IndexDtfProposalDecoded, IndexDtfProposalDetail, type IndexDtfProposalDtfContractContext, type IndexDtfProposalGovernanceContractContext, IndexDtfProposalList, IndexDtfProposalPayload, IndexDtfProposalSummary, IndexDtfProposalVote, IndexDtfProposalVoterState, IndexDtfProposalVotes, IndexDtfProposalVotingSnapshot, IndexDtfProposerState, IndexDtfRebalance, IndexDtfRebalanceConfig, type IndexDtfRef, IndexDtfRevenue, IndexDtfRevenueDistribution, type IndexDtfRevenueDistributionInput, type IndexDtfRevenueRecipientInput, IndexDtfRoles, IndexDtfSelectorData, IndexDtfTargetBasketPriceMode, IndexDtfTotalAssets, IndexDtfTransaction, IndexDtfTransactionType, IndexDtfUnknownCalldata, IndexDtfUnknownContractGroup, IndexDtfVoteParams, IndexDtfVoteSupport, IndexDtfVoterState, IndexDtfWriteVersion, ListIndexDtfsParams, OPTIMISTIC_PROPOSER_ROLE, type OpenAuctionArgs, OptimisticGovernanceSettings, type PortfolioIndexDtf, type PortfolioPeriod, type PortfolioReward, type PortfolioTransaction, type PortfolioVoteLock, PrepareIndexDtfAuctionLengthCallParams, type PrepareIndexDtfBasketApprovalParams, PrepareIndexDtfBidParams, PrepareIndexDtfCallParams, PrepareIndexDtfDeployApprovalParams, PrepareIndexDtfDeployApprovalsParams, PrepareIndexDtfDeployGovernedParams, PrepareIndexDtfDeployGovernedPlanParams, PrepareIndexDtfDeployParams, PrepareIndexDtfDeployPlanApprovalParams, PrepareIndexDtfDeployPlanParams, PrepareIndexDtfDeployStakingTokenParams, PrepareIndexDtfGovernorCallParams, type PrepareIndexDtfMintParams, type PrepareIndexDtfMintPlanParams, PrepareIndexDtfOptimisticGovernanceCallParams, PrepareIndexDtfPercentageCallParams, type PrepareIndexDtfRedeemParams, PrepareIndexDtfSetOptimisticParamsParams, PrepareIndexDtfSetRebalanceControlParams, PrepareIndexDtfTimelockCallParams, PrepareIndexDtfTokenCallParams, PrepareSelectorRegistrySelectorsParams, PrepareVoteLockDepositParams, PrepareVoteLockDepositPlanParams, PriceControl, type PriceRange, ProposalState, ProposalVotingState, ProposalVotingThreshold, ProposeIndexDtfProposalParams, type QueryIndexAllSubgraphsOptions, type QueryIndexSubgraphOptions, type QueryYieldSubgraphOptions, QueueIndexDtfProposalParams, ReadVoteLockAccountParams, ReadVoteLockAccountTimepointParams, ReadVoteLockAmountParams, ReadVoteLockCheckpointParams, ReadVoteLockLockParams, ReadVoteLockParams, ReadVoteLockRewardTokenParams, ReadVoteLockSharesParams, ReadVoteLockTimepointParams, ReadVoteLockUnderlyingAllowanceParams, ReadVoteLockUnderlyingBalanceParams, ReadVoteLockUnstakingManagerParams, ReadVoteLockUserRewardTrackerParams, type Rebalance, type RebalanceLimits, type ReserveApiDtfBasketToken, type ReserveApiDtfPrice, type ReserveApiHistoricalTokenPrices, type ReserveApiIndexDtfBasketSnapshot, type ReserveApiIndexDtfPrice, type ReserveApiIndexDtfPriceHistory, type ReserveApiIndexDtfRebalanceDetail, type ReserveApiIndexDtfRebalanceHistoryItem, ResolveIndexDtfAliasParams, ResolvedIndexDtfAlias, SUPPORTED_CHAINS, SdkError, type SdkErrorCode, type SdkErrorMeta, type SdkErrorOptions, type StartRebalanceArgsV5, type SubgraphDocument, SubmitOptimisticIndexDtfProposalParams, type SupportedChainId, Timelock, Token, TokenPrice, type TokenPriceWithSnapshot, TokenSnapshot, TokenVolatility, TokenWithSnapshot, VoteIndexDtfProposalParams, VoteLockDao, VoteLockState, VoteLockVault, type WeightRange, YIELD_DTF_SUBGRAPH_URL, YieldDtf, YieldDtfListItem, buildIndexDtfBasketProposal, buildIndexDtfBasketSettingsProposal, buildIndexDtfDaoSettingsProposal, buildIndexDtfDeployFeeRecipients, buildInitialBasket as buildIndexDtfInitialBasket, buildInitialBasket, buildIndexDtfSettingsProposal, buildIndexDtfStartRebalance, buildStartRebalanceArgs as buildIndexDtfStartRebalanceArgs, buildStartRebalanceArgs, createDtfClient, createDtfSdk, createIndexDtfNamespace, createIndexDtfRef, createPortfolioNamespace, decodeIndexDtfProposal, decodeIndexDtfProposalCalldatas, discoverIndexDtfs, discoverIndexDtfsByChain, discoverIndexDtfsFromSubgraph, dtfCatalog, dtfIndexAbi, dtfIndexGovernanceAbi, dtfIndexGovernanceOptimisticAbi, dtfIndexGovernanceProposalAbi, dtfIndexStakingVaultAbi, dtfIndexStakingVaultOptimisticAbi, extractIndexDtfDeployedAddress, extractIndexDtfDeployedStakingTokenAddress, generateIndexDtfDeploymentNonce, getAccountPortfolio, getAccountPortfolioHistory, getAccountPortfolioTransactions, getActiveAuction, getActiveAuction as getIndexDtfActiveAuction, getAllProposals as getAllIndexDtfProposals, getBasketSharesFromUnits, getBasketSharesFromUnits as getIndexDtfBasketSharesFromUnits, getBasketUnitsFromShares, getBasketUnitsFromShares as getIndexDtfBasketUnitsFromShares, getBidQuote, getBidQuote as getIndexDtfBidQuote, getCompletedRebalance, getCompletedRebalance as getIndexDtfCompletedRebalance, getCompletedRebalances, getCompletedRebalances as getIndexDtfCompletedRebalances, getDiscoverDtfs, getDtf, getDtfPriceFromBalances, getDtfPriceFromBalances as getIndexDtfPriceFromBalances, getEffectiveRevenueDistribution, getEffectiveRevenueDistribution as getIndexDtfEffectiveRevenueDistribution, getFull as getFullIndexDtf, getFull as getIndexDtf, getIndexDtfApprovedRevenueTokens, getAssetList as getIndexDtfAssetList, getBasket as getIndexDtfBasket, getBasketSnapshot as getIndexDtfBasketSnapshot, getBasketWithPrice as getIndexDtfBasketWithPrice, getIndexDtfBidsEnabled, getBrand as getIndexDtfBrand, getIndexDtfCatalogEntries, getIndexDtfCurrentRebalance, getDelegates as getIndexDtfDelegates, getIndexDtfDeployApprovalAmount, getIndexDtfExposure, getGuardians as getIndexDtfGuardians, getIndexDtfHolders, getIndexDtfIssuanceState, getLatestAuction as getIndexDtfLatestAuction, getLatestAuction, getLegacyVoteLocks as getIndexDtfLegacyVoteLocks, getMandate as getIndexDtfMandate, getOptimisticGovernance as getIndexDtfOptimisticGovernance, getOptimisticProposalContext as getIndexDtfOptimisticProposalContext, getOptimisticProposalVoterState as getIndexDtfOptimisticProposalVoterState, getOptimisticSelectors as getIndexDtfOptimisticSelectors, getOptimisticSelectors, getOptimisticTimelockRoles as getIndexDtfOptimisticTimelockRoles, getOptimisticVotes as getIndexDtfOptimisticVotes, getPastOptimisticVotes as getIndexDtfPastOptimisticVotes, getIndexDtfPendingFeeShares, getIndexDtfPlatformFee, getPrice as getIndexDtfPrice, getPriceHistory as getIndexDtfPriceHistory, getPrices as getIndexDtfPrices, getProposal as getIndexDtfProposal, getProposalGovernanceAddresses as getIndexDtfProposalGovernanceAddresses, getProposalList as getIndexDtfProposalList, getProposalState as getIndexDtfProposalState, getProposalState, getProposalThrottleCharges as getIndexDtfProposalThrottleCharges, getProposalVoterState as getIndexDtfProposalVoterState, getProposalVotes as getIndexDtfProposalVotes, getProposalVotingSnapshot as getIndexDtfProposalVotingSnapshot, getProposals as getIndexDtfProposals, getProposerState as getIndexDtfProposerState, getRebalance as getIndexDtfRebalance, getRebalance, getRebalanceAuctions as getIndexDtfRebalanceAuctions, getRebalanceAuctions, getIndexDtfRebalanceControl, getRebalances as getIndexDtfRebalances, getRebalances, getIndexDtfRedeemMinAmounts, getIndexDtfRevenue, getSelectorRegistryAllowedSelectors as getIndexDtfSelectorRegistryAllowedSelectors, getSelectorRegistryAllowedSelectors, getSelectorRegistryIsAllowed as getIndexDtfSelectorRegistryIsAllowed, getSelectorRegistryIsAllowed, getSelectorRegistryTargets as getIndexDtfSelectorRegistryTargets, getSelectorRegistryTargets, getIndexDtfStatus, getIndexDtfStatuses, getTotalAssets as getIndexDtfTotalAssets, getTotalSupply as getIndexDtfTotalSupply, getIndexDtfTransactions, getVersion as getIndexDtfVersion, getVoteLockDao as getIndexDtfVoteLockDao, getVoteLockDao, getVoteLockDaos as getIndexDtfVoteLockDaos, getVoteLockDaos, getVoteLockState as getIndexDtfVoteLockState, getVoteLockState, getVoterState as getIndexDtfVoterState, getTokenData, getTokenPrices, getTokenVolatilities, getTokensData, hashIndexDtfProposalDescription, indexDtfBasketSchema as indexDtfBasketProposalSchema, indexDtfBasketSchema, indexDtfBasketTokenSchema as indexDtfBasketProposalTokenSchema, indexDtfBasketTokenSchema, indexDtfBasketSettingsProposalSchema, indexDtfBasketSharesSchema as indexDtfBasketSharesProposalSchema, indexDtfBasketSharesSchema, indexDtfBasketUnitsSchema as indexDtfBasketUnitsProposalSchema, indexDtfBasketUnitsSchema, indexDtfCatalog, indexDtfDaoSettingsProposalSchema, indexDtfGovernanceChangesSchema, indexDtfSettingsProposalSchema, indexDtfV5WriteAbi, indexDtfV6WriteAbi, isSdkError, listIndexDtfs, mapCurrentRebalance, prepareContractCall, prepareErc20Approval, prepareIndexDtfAddToAllowlist, prepareIndexDtfAddToBasket, prepareIndexDtfBasketApproval, prepareIndexDtfBid, prepareIndexDtfCancelProposal, prepareIndexDtfCloseAuction, prepareIndexDtfDeploy, prepareIndexDtfDeployAssetApproval, prepareIndexDtfDeployAssetApprovals, prepareIndexDtfDeployGoverned, prepareIndexDtfDeployGovernedPlan, prepareIndexDtfDeployPlan, prepareIndexDtfDeployStakingToken, prepareIndexDtfDeprecate, prepareIndexDtfDistributeFees, prepareIndexDtfEndRebalance, prepareIndexDtfExecuteProposal, prepareIndexDtfGovernorCancelProposal, prepareIndexDtfMint, prepareIndexDtfMintPlan, prepareIndexDtfOpenAuction, prepareIndexDtfOpenAuctionArgs, prepareIndexDtfOpenAuctionUnrestricted, prepareIndexDtfQueueProposal, prepareIndexDtfRedeem, prepareIndexDtfRelay, prepareIndexDtfRemoveFromAllowlist, prepareIndexDtfRemoveFromBasket, prepareIndexDtfRevokeOptimisticProposer, prepareIndexDtfSetAuctionLength, prepareIndexDtfSetBidsEnabled, prepareIndexDtfSetFeeRecipients, prepareIndexDtfSetLateQuorumVoteExtension, prepareIndexDtfSetMandate, prepareIndexDtfSetMintFee, prepareIndexDtfSetName, prepareIndexDtfSetOptimisticParams, prepareIndexDtfSetProposalThrottle, prepareIndexDtfSetRebalanceControl, prepareIndexDtfSetSelfFee, prepareIndexDtfSetTradeAllowlistEnabled, prepareIndexDtfSetTrustedFillerRegistry, prepareIndexDtfSetTvlFee, prepareIndexDtfSubmitOptimisticProposal, prepareIndexDtfSubmitProposal, prepareIndexDtfTimelockDelay, prepareIndexDtfTimelockExecuteBatch, prepareIndexDtfTimelockGrantRole, prepareIndexDtfTimelockRevokeRole, prepareIndexDtfUpdateTimelock, prepareIndexDtfVote, prepareIndexDtfVoteWithReason, prepareIndexDtfVoteWithReasonAndParams, prepareSelectorRegistryRegisterSelectors, prepareSelectorRegistryUnregisterSelectors, prepareVoteLockAddRewardToken, prepareVoteLockCancelLock, prepareVoteLockClaimLock, prepareVoteLockClaimRewards, prepareVoteLockDelegate, prepareVoteLockDelegateOptimistic, prepareVoteLockDeposit, prepareVoteLockDepositPlan, prepareVoteLockPoke, prepareVoteLockRemoveRewardToken, prepareVoteLockSetRewardRatio, prepareVoteLockSetUnstakingDelay, prepareVoteLockWithdraw, readVoteLockAllRewardTokens, readVoteLockAsset, readVoteLockBalanceOf, readVoteLockCheckpoint, readVoteLockClock, readVoteLockClockMode, readVoteLockConvertToAssets, readVoteLockConvertToShares, readVoteLockDelegates, readVoteLockDisallowedRewardToken, readVoteLockGetPastTotalSupply, readVoteLockGetPastVotes, readVoteLockGetVotes, readVoteLockLock, readVoteLockMaxDeposit, readVoteLockMaxMint, readVoteLockMaxRedeem, readVoteLockMaxWithdraw, readVoteLockNumCheckpoints, readVoteLockOptimisticDelegates, readVoteLockOptimisticVotes, readVoteLockPastOptimisticVotes, readVoteLockPreviewDeposit, readVoteLockPreviewMint, readVoteLockPreviewRedeem, readVoteLockPreviewWithdraw, readVoteLockRewardRatio, readVoteLockRewardTracker, readVoteLockTotalAssets, readVoteLockTotalSupply, readVoteLockUnderlyingAllowance, readVoteLockUnderlyingBalance, readVoteLockUnstakingDelay, readVoteLockUnstakingManager, readVoteLockUnstakingTargetToken, readVoteLockUnstakingVault, readVoteLockUserRewardTracker, resolveIndexDtfAlias, supportedChainIds, yieldDtfCatalog };
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import { bytesToHex, createPublicClient, createWalletClient as createWalletClient$1, decodeFunctionData, encodeAbiParameters, encodeFunctionData, erc20Abi, fallback, formatUnits, getAbiItem, getAddress, hexToBytes, http, isAddress, keccak256, pad, parseAbiParameters, parseEther, parseEventLogs, parseUnits, toBytes, zeroAddress, zeroHash } from "viem";
1
+ import { bytesToHex, createPublicClient, decodeFunctionData, encodeAbiParameters, encodeFunctionData, erc20Abi, fallback, formatUnits, getAbiItem, getAddress, hexToBytes, http, isAddress, keccak256, pad, parseAbiParameters, parseEther, parseEventLogs, parseUnits, toBytes, zeroAddress, zeroHash } from "viem";
2
2
  import { base, bsc, mainnet } from "viem/chains";
3
3
  import { ClientError, request } from "graphql-request";
4
- import { privateKeyToAccount } from "viem/accounts";
5
4
  import DecimalModule from "decimal.js-light";
6
5
  import { z } from "zod";
7
6
  import { D18d, D18n, Decimal, FolioVersion, getBasketDistribution, getOpenAuction, getStartRebalance, getTargetBasket } from "@reserve-protocol/dtf-rebalance-lib";
@@ -506,14 +505,6 @@ function createDtfClientViem({ chains }) {
506
505
  getRpcUrls(chainId) {
507
506
  return getChainConfig(chains, chainId).rpcUrls ?? [];
508
507
  },
509
- createWalletClient(params) {
510
- const chainConfig = getChainConfig(chains, params.chainId);
511
- return createConfiguredWalletClient({
512
- ...params,
513
- chain: chainConfig.chain,
514
- rpcUrls: params.rpcUrls ?? chainConfig.rpcUrls
515
- });
516
- },
517
508
  readContract({ chainId, ...params }) {
518
509
  return viem.getPublicClient(chainId).readContract(params);
519
510
  }
@@ -524,19 +515,6 @@ async function getLatestBlockTimepoint(viem, chainId) {
524
515
  const block = await viem.getPublicClient(chainId).getBlock();
525
516
  return block.timestamp > 0n ? block.timestamp - 1n : 0n;
526
517
  }
527
- /** Creates a viem WalletClient from a private key using the SDK's viem dependency. */
528
- function createWalletClient(params) {
529
- return createConfiguredWalletClient({
530
- ...params,
531
- chain: getWriteChain(params.chainId),
532
- rpcUrls: params.rpcUrls ?? DEFAULT_RPC_URLS[params.chainId]
533
- });
534
- }
535
- function getWriteChain(chainId) {
536
- const chain = SUPPORTED_CHAINS[chainId];
537
- if (!chain) throwUnsupportedChain(chainId);
538
- return chain;
539
- }
540
518
  function createDefaultPublicClient(chainId, chain, rpcUrls) {
541
519
  if (!chain) throwUnsupportedChain(chainId);
542
520
  return createPublicClient({
@@ -544,15 +522,6 @@ function createDefaultPublicClient(chainId, chain, rpcUrls) {
544
522
  transport: rpcUrls && rpcUrls.length > 0 ? fallback(rpcUrls.map((url) => http(url))) : http()
545
523
  });
546
524
  }
547
- function createConfiguredWalletClient({ chainId, privateKey, chain, rpcUrls }) {
548
- const writeChain = chain ?? getWriteChain(chainId);
549
- const transport = rpcUrls && rpcUrls.length > 0 ? fallback(rpcUrls.map((url) => http(url))) : http();
550
- return createWalletClient$1({
551
- account: privateKeyToAccount(privateKey),
552
- chain: writeChain,
553
- transport
554
- });
555
- }
556
525
  function getChainConfig(chains, chainId) {
557
526
  const chainConfig = chains[chainId];
558
527
  if (!chainConfig) throwUnsupportedChain(chainId);
@@ -11340,11 +11309,15 @@ function prepareIndexDtfDeployAssetApprovals(params) {
11340
11309
  return params.assets.map((token, index) => prepareIndexDtfDeployAssetApproval({
11341
11310
  chainId: params.chainId,
11342
11311
  token,
11343
- amount: getIndexDtfDeployApprovalAmount(params.amounts[index] ?? 0n, params.approvalBufferBps)
11312
+ amount: getIndexDtfDeployApprovalAmount({
11313
+ amount: params.amounts[index] ?? 0n,
11314
+ approvalBufferBps: params.approvalBufferBps
11315
+ })
11344
11316
  }));
11345
11317
  }
11346
- function getIndexDtfDeployApprovalAmount(amount, approvalBufferBps = 2e4) {
11347
- if (amount < 0n) throw new SdkError({
11318
+ function getIndexDtfDeployApprovalAmount(params) {
11319
+ const approvalBufferBps = params.approvalBufferBps ?? 2e4;
11320
+ if (params.amount < 0n) throw new SdkError({
11348
11321
  code: "INVALID_INPUT",
11349
11322
  message: "approval amount must be non-negative"
11350
11323
  });
@@ -11353,7 +11326,7 @@ function getIndexDtfDeployApprovalAmount(amount, approvalBufferBps = 2e4) {
11353
11326
  message: "approvalBufferBps must be an integer greater than or equal to 10000",
11354
11327
  meta: { approvalBufferBps }
11355
11328
  });
11356
- return amount * BigInt(approvalBufferBps) / 10000n;
11329
+ return params.amount * BigInt(approvalBufferBps) / 10000n;
11357
11330
  }
11358
11331
  function extractIndexDtfDeployedAddress(logs) {
11359
11332
  const governed = parseEventLogs({
@@ -15503,14 +15476,14 @@ function prepareIndexDtfBasketApproval(params) {
15503
15476
  });
15504
15477
  }
15505
15478
  /** Applies basis-point slippage to redeem amounts while preserving token order. */
15506
- function getIndexDtfRedeemMinAmounts(amounts, slippageBps) {
15507
- if (!Number.isInteger(slippageBps) || slippageBps < 0 || slippageBps > 1e4) throw new SdkError({
15479
+ function getIndexDtfRedeemMinAmounts(params) {
15480
+ if (!Number.isInteger(params.slippageBps) || params.slippageBps < 0 || params.slippageBps > 1e4) throw new SdkError({
15508
15481
  code: "INVALID_INPUT",
15509
15482
  message: "slippageBps must be an integer between 0 and 10000",
15510
- meta: { slippageBps }
15483
+ meta: { slippageBps: params.slippageBps }
15511
15484
  });
15512
- const keepBps = BigInt(1e4 - slippageBps);
15513
- return amounts.map((amount) => amount * keepBps / 10000n);
15485
+ const keepBps = BigInt(1e4 - params.slippageBps);
15486
+ return params.amounts.map((amount) => amount * keepBps / 10000n);
15514
15487
  }
15515
15488
  function getMintArgs(params) {
15516
15489
  return [
@@ -24812,8 +24785,8 @@ function withChallengeState(proposals) {
24812
24785
  }
24813
24786
  function getChallengeDescription(description) {
24814
24787
  if (!description.startsWith(CHALLENGE_DESCRIPTION_PREFIX)) return;
24815
- const challengeDescription = description.slice(17).trim();
24816
- return challengeDescription.length > 0 ? challengeDescription : void 0;
24788
+ const challengeDescription = description.slice(17).replace(/^ /, "");
24789
+ return challengeDescription.trim().length > 0 ? challengeDescription : void 0;
24817
24790
  }
24818
24791
  function getProposalFilter(states) {
24819
24792
  if (!states || states.length === 0) return;
@@ -27135,4 +27108,4 @@ async function getDiscoverDtfs(client, { chainId, limit, offset, sort } = {}) {
27135
27108
  }));
27136
27109
  }
27137
27110
  //#endregion
27138
- export { CANCELLER_ROLE, DEFAULT_API_BASE_URL, DEFAULT_INDEX_DTF_DEPLOY_FLAGS, DEFAULT_RPC_URLS, INDEX_DTF_DEPLOYER_ADDRESS, INDEX_DTF_GOVERNANCE_DEPLOYER_ADDRESS, INDEX_DTF_SUBGRAPH_URL, OPTIMISTIC_PROPOSER_ROLE, SUPPORTED_CHAINS, SdkError, YIELD_DTF_SUBGRAPH_URL, buildIndexDtfBasketProposal, buildIndexDtfBasketSettingsProposal, buildIndexDtfDaoSettingsProposal, buildIndexDtfDeployFeeRecipients, buildInitialBasket as buildIndexDtfInitialBasket, buildIndexDtfSettingsProposal, buildIndexDtfStartRebalance, buildStartRebalanceArgs as buildIndexDtfStartRebalanceArgs, createDtfClient, createDtfSdk, createIndexDtfNamespace, createIndexDtfRef, createPortfolioNamespace, createWalletClient, decodeIndexDtfProposal, decodeIndexDtfProposalCalldatas, discoverIndexDtfs, discoverIndexDtfsByChain, discoverIndexDtfsFromSubgraph, dtfCatalog, dtfIndexAbi, dtfIndexGovernanceAbi, dtfIndexGovernanceOptimisticAbi, dtfIndexGovernanceProposalAbi, dtfIndexStakingVaultAbi, dtfIndexStakingVaultOptimisticAbi, extractIndexDtfDeployedAddress, extractIndexDtfDeployedStakingTokenAddress, generateIndexDtfDeploymentNonce, getAccountPortfolio, getAccountPortfolioHistory, getAccountPortfolioTransactions, getAllProposals as getAllIndexDtfProposals, getDiscoverDtfs, getDtf, getFull as getFullIndexDtf, getFull as getIndexDtf, getActiveAuction as getIndexDtfActiveAuction, getIndexDtfApprovedRevenueTokens, getAssetList as getIndexDtfAssetList, getBasket as getIndexDtfBasket, getBasketSharesFromUnits as getIndexDtfBasketSharesFromUnits, getBasketSnapshot as getIndexDtfBasketSnapshot, getBasketUnitsFromShares as getIndexDtfBasketUnitsFromShares, getBasketWithPrice as getIndexDtfBasketWithPrice, getBidQuote as getIndexDtfBidQuote, getIndexDtfBidsEnabled, getBrand as getIndexDtfBrand, getIndexDtfCatalogEntries, getCompletedRebalance as getIndexDtfCompletedRebalance, getCompletedRebalances as getIndexDtfCompletedRebalances, getIndexDtfCurrentRebalance, getDelegates as getIndexDtfDelegates, getIndexDtfDeployApprovalAmount, getEffectiveRevenueDistribution as getIndexDtfEffectiveRevenueDistribution, getIndexDtfExposure, getGuardians as getIndexDtfGuardians, getIndexDtfHolders, getIndexDtfIssuanceState, getLatestAuction as getIndexDtfLatestAuction, getLegacyVoteLocks as getIndexDtfLegacyVoteLocks, getMandate as getIndexDtfMandate, getOptimisticGovernance as getIndexDtfOptimisticGovernance, getOptimisticProposalContext as getIndexDtfOptimisticProposalContext, getOptimisticProposalVoterState as getIndexDtfOptimisticProposalVoterState, getOptimisticSelectors as getIndexDtfOptimisticSelectors, getOptimisticTimelockRoles as getIndexDtfOptimisticTimelockRoles, getOptimisticVotes as getIndexDtfOptimisticVotes, getPastOptimisticVotes as getIndexDtfPastOptimisticVotes, getIndexDtfPendingFeeShares, getIndexDtfPlatformFee, getPrice as getIndexDtfPrice, getDtfPriceFromBalances as getIndexDtfPriceFromBalances, getPriceHistory as getIndexDtfPriceHistory, getPrices as getIndexDtfPrices, getProposal as getIndexDtfProposal, getProposalGovernanceAddresses as getIndexDtfProposalGovernanceAddresses, getProposalList as getIndexDtfProposalList, getProposalState as getIndexDtfProposalState, getProposalState, getProposalThrottleCharges as getIndexDtfProposalThrottleCharges, getProposalVoterState as getIndexDtfProposalVoterState, getProposalVotes as getIndexDtfProposalVotes, getProposalVotingSnapshot as getIndexDtfProposalVotingSnapshot, getProposals as getIndexDtfProposals, getProposerState as getIndexDtfProposerState, getRebalance as getIndexDtfRebalance, getRebalanceAuctions as getIndexDtfRebalanceAuctions, getIndexDtfRebalanceControl, getRebalances as getIndexDtfRebalances, getIndexDtfRedeemMinAmounts, getIndexDtfRevenue, getSelectorRegistryAllowedSelectors as getIndexDtfSelectorRegistryAllowedSelectors, getSelectorRegistryIsAllowed as getIndexDtfSelectorRegistryIsAllowed, getSelectorRegistryTargets as getIndexDtfSelectorRegistryTargets, getIndexDtfStatus, getIndexDtfStatuses, getTotalAssets as getIndexDtfTotalAssets, getTotalSupply as getIndexDtfTotalSupply, getIndexDtfTransactions, getVersion as getIndexDtfVersion, getVoteLockDao as getIndexDtfVoteLockDao, getVoteLockDaos as getIndexDtfVoteLockDaos, getVoteLockState as getIndexDtfVoteLockState, getVoterState as getIndexDtfVoterState, getTokenData, getTokenPrices, getTokenVolatilities, getTokensData, hashIndexDtfProposalDescription, indexDtfBasketSchema as indexDtfBasketProposalSchema, indexDtfBasketSchema, indexDtfBasketTokenSchema as indexDtfBasketProposalTokenSchema, indexDtfBasketTokenSchema, indexDtfBasketSettingsProposalSchema, indexDtfBasketSharesSchema as indexDtfBasketSharesProposalSchema, indexDtfBasketSharesSchema, indexDtfBasketUnitsSchema as indexDtfBasketUnitsProposalSchema, indexDtfBasketUnitsSchema, indexDtfCatalog, indexDtfDaoSettingsProposalSchema, indexDtfGovernanceChangesSchema, indexDtfSettingsProposalSchema, indexDtfV5WriteAbi, indexDtfV6WriteAbi, isSdkError, listIndexDtfs, prepareContractCall, prepareErc20Approval, prepareIndexDtfAddToAllowlist, prepareIndexDtfAddToBasket, prepareIndexDtfBasketApproval, prepareIndexDtfBid, prepareIndexDtfCancelProposal, prepareIndexDtfCloseAuction, prepareIndexDtfDeploy, prepareIndexDtfDeployAssetApproval, prepareIndexDtfDeployAssetApprovals, prepareIndexDtfDeployGoverned, prepareIndexDtfDeployGovernedPlan, prepareIndexDtfDeployPlan, prepareIndexDtfDeployStakingToken, prepareIndexDtfDeprecate, prepareIndexDtfDistributeFees, prepareIndexDtfEndRebalance, prepareIndexDtfExecuteProposal, prepareIndexDtfGovernorCancelProposal, prepareIndexDtfMint, prepareIndexDtfMintPlan, prepareIndexDtfOpenAuction, prepareIndexDtfOpenAuctionArgs, prepareIndexDtfOpenAuctionUnrestricted, prepareIndexDtfQueueProposal, prepareIndexDtfRedeem, prepareIndexDtfRelay, prepareIndexDtfRemoveFromAllowlist, prepareIndexDtfRemoveFromBasket, prepareIndexDtfRevokeOptimisticProposer, prepareIndexDtfSetAuctionLength, prepareIndexDtfSetBidsEnabled, prepareIndexDtfSetFeeRecipients, prepareIndexDtfSetLateQuorumVoteExtension, prepareIndexDtfSetMandate, prepareIndexDtfSetMintFee, prepareIndexDtfSetName, prepareIndexDtfSetOptimisticParams, prepareIndexDtfSetProposalThrottle, prepareIndexDtfSetRebalanceControl, prepareIndexDtfSetSelfFee, prepareIndexDtfSetTradeAllowlistEnabled, prepareIndexDtfSetTrustedFillerRegistry, prepareIndexDtfSetTvlFee, prepareIndexDtfSubmitOptimisticProposal, prepareIndexDtfSubmitProposal, prepareIndexDtfTimelockDelay, prepareIndexDtfTimelockExecuteBatch, prepareIndexDtfTimelockGrantRole, prepareIndexDtfTimelockRevokeRole, prepareIndexDtfUpdateTimelock, prepareIndexDtfVote, prepareIndexDtfVoteWithReason, prepareIndexDtfVoteWithReasonAndParams, prepareSelectorRegistryRegisterSelectors, prepareSelectorRegistryUnregisterSelectors, prepareVoteLockAddRewardToken, prepareVoteLockCancelLock, prepareVoteLockClaimLock, prepareVoteLockClaimRewards, prepareVoteLockDelegate, prepareVoteLockDelegateOptimistic, prepareVoteLockDeposit, prepareVoteLockDepositPlan, prepareVoteLockPoke, prepareVoteLockRemoveRewardToken, prepareVoteLockSetRewardRatio, prepareVoteLockSetUnstakingDelay, prepareVoteLockWithdraw, readVoteLockAllRewardTokens, readVoteLockAsset, readVoteLockBalanceOf, readVoteLockCheckpoint, readVoteLockClock, readVoteLockClockMode, readVoteLockConvertToAssets, readVoteLockConvertToShares, readVoteLockDelegates, readVoteLockDisallowedRewardToken, readVoteLockGetPastTotalSupply, readVoteLockGetPastVotes, readVoteLockGetVotes, readVoteLockLock, readVoteLockMaxDeposit, readVoteLockMaxMint, readVoteLockMaxRedeem, readVoteLockMaxWithdraw, readVoteLockNumCheckpoints, readVoteLockOptimisticDelegates, readVoteLockOptimisticVotes, readVoteLockPastOptimisticVotes, readVoteLockPreviewDeposit, readVoteLockPreviewMint, readVoteLockPreviewRedeem, readVoteLockPreviewWithdraw, readVoteLockRewardRatio, readVoteLockRewardTracker, readVoteLockTotalAssets, readVoteLockTotalSupply, readVoteLockUnderlyingAllowance, readVoteLockUnderlyingBalance, readVoteLockUnstakingDelay, readVoteLockUnstakingManager, readVoteLockUnstakingTargetToken, readVoteLockUnstakingVault, readVoteLockUserRewardTracker, resolveIndexDtfAlias, supportedChainIds, yieldDtfCatalog };
27111
+ export { CANCELLER_ROLE, DEFAULT_API_BASE_URL, DEFAULT_INDEX_DTF_DEPLOY_FLAGS, DEFAULT_RPC_URLS, INDEX_DTF_DEPLOYER_ADDRESS, INDEX_DTF_GOVERNANCE_DEPLOYER_ADDRESS, INDEX_DTF_SUBGRAPH_URL, OPTIMISTIC_PROPOSER_ROLE, SUPPORTED_CHAINS, SdkError, YIELD_DTF_SUBGRAPH_URL, buildIndexDtfBasketProposal, buildIndexDtfBasketSettingsProposal, buildIndexDtfDaoSettingsProposal, buildIndexDtfDeployFeeRecipients, buildInitialBasket as buildIndexDtfInitialBasket, buildIndexDtfSettingsProposal, buildIndexDtfStartRebalance, buildStartRebalanceArgs as buildIndexDtfStartRebalanceArgs, createDtfClient, createDtfSdk, createIndexDtfNamespace, createIndexDtfRef, createPortfolioNamespace, decodeIndexDtfProposal, decodeIndexDtfProposalCalldatas, discoverIndexDtfs, discoverIndexDtfsByChain, discoverIndexDtfsFromSubgraph, dtfCatalog, dtfIndexAbi, dtfIndexGovernanceAbi, dtfIndexGovernanceOptimisticAbi, dtfIndexGovernanceProposalAbi, dtfIndexStakingVaultAbi, dtfIndexStakingVaultOptimisticAbi, extractIndexDtfDeployedAddress, extractIndexDtfDeployedStakingTokenAddress, generateIndexDtfDeploymentNonce, getAccountPortfolio, getAccountPortfolioHistory, getAccountPortfolioTransactions, getAllProposals as getAllIndexDtfProposals, getDiscoverDtfs, getDtf, getFull as getFullIndexDtf, getFull as getIndexDtf, getActiveAuction as getIndexDtfActiveAuction, getIndexDtfApprovedRevenueTokens, getAssetList as getIndexDtfAssetList, getBasket as getIndexDtfBasket, getBasketSharesFromUnits as getIndexDtfBasketSharesFromUnits, getBasketSnapshot as getIndexDtfBasketSnapshot, getBasketUnitsFromShares as getIndexDtfBasketUnitsFromShares, getBasketWithPrice as getIndexDtfBasketWithPrice, getBidQuote as getIndexDtfBidQuote, getIndexDtfBidsEnabled, getBrand as getIndexDtfBrand, getIndexDtfCatalogEntries, getCompletedRebalance as getIndexDtfCompletedRebalance, getCompletedRebalances as getIndexDtfCompletedRebalances, getIndexDtfCurrentRebalance, getDelegates as getIndexDtfDelegates, getIndexDtfDeployApprovalAmount, getEffectiveRevenueDistribution as getIndexDtfEffectiveRevenueDistribution, getIndexDtfExposure, getGuardians as getIndexDtfGuardians, getIndexDtfHolders, getIndexDtfIssuanceState, getLatestAuction as getIndexDtfLatestAuction, getLegacyVoteLocks as getIndexDtfLegacyVoteLocks, getMandate as getIndexDtfMandate, getOptimisticGovernance as getIndexDtfOptimisticGovernance, getOptimisticProposalContext as getIndexDtfOptimisticProposalContext, getOptimisticProposalVoterState as getIndexDtfOptimisticProposalVoterState, getOptimisticSelectors as getIndexDtfOptimisticSelectors, getOptimisticTimelockRoles as getIndexDtfOptimisticTimelockRoles, getOptimisticVotes as getIndexDtfOptimisticVotes, getPastOptimisticVotes as getIndexDtfPastOptimisticVotes, getIndexDtfPendingFeeShares, getIndexDtfPlatformFee, getPrice as getIndexDtfPrice, getDtfPriceFromBalances as getIndexDtfPriceFromBalances, getPriceHistory as getIndexDtfPriceHistory, getPrices as getIndexDtfPrices, getProposal as getIndexDtfProposal, getProposalGovernanceAddresses as getIndexDtfProposalGovernanceAddresses, getProposalList as getIndexDtfProposalList, getProposalState as getIndexDtfProposalState, getProposalState, getProposalThrottleCharges as getIndexDtfProposalThrottleCharges, getProposalVoterState as getIndexDtfProposalVoterState, getProposalVotes as getIndexDtfProposalVotes, getProposalVotingSnapshot as getIndexDtfProposalVotingSnapshot, getProposals as getIndexDtfProposals, getProposerState as getIndexDtfProposerState, getRebalance as getIndexDtfRebalance, getRebalanceAuctions as getIndexDtfRebalanceAuctions, getIndexDtfRebalanceControl, getRebalances as getIndexDtfRebalances, getIndexDtfRedeemMinAmounts, getIndexDtfRevenue, getSelectorRegistryAllowedSelectors as getIndexDtfSelectorRegistryAllowedSelectors, getSelectorRegistryIsAllowed as getIndexDtfSelectorRegistryIsAllowed, getSelectorRegistryTargets as getIndexDtfSelectorRegistryTargets, getIndexDtfStatus, getIndexDtfStatuses, getTotalAssets as getIndexDtfTotalAssets, getTotalSupply as getIndexDtfTotalSupply, getIndexDtfTransactions, getVersion as getIndexDtfVersion, getVoteLockDao as getIndexDtfVoteLockDao, getVoteLockDaos as getIndexDtfVoteLockDaos, getVoteLockState as getIndexDtfVoteLockState, getVoterState as getIndexDtfVoterState, getTokenData, getTokenPrices, getTokenVolatilities, getTokensData, hashIndexDtfProposalDescription, indexDtfBasketSchema as indexDtfBasketProposalSchema, indexDtfBasketSchema, indexDtfBasketTokenSchema as indexDtfBasketProposalTokenSchema, indexDtfBasketTokenSchema, indexDtfBasketSettingsProposalSchema, indexDtfBasketSharesSchema as indexDtfBasketSharesProposalSchema, indexDtfBasketSharesSchema, indexDtfBasketUnitsSchema as indexDtfBasketUnitsProposalSchema, indexDtfBasketUnitsSchema, indexDtfCatalog, indexDtfDaoSettingsProposalSchema, indexDtfGovernanceChangesSchema, indexDtfSettingsProposalSchema, indexDtfV5WriteAbi, indexDtfV6WriteAbi, isSdkError, listIndexDtfs, prepareContractCall, prepareErc20Approval, prepareIndexDtfAddToAllowlist, prepareIndexDtfAddToBasket, prepareIndexDtfBasketApproval, prepareIndexDtfBid, prepareIndexDtfCancelProposal, prepareIndexDtfCloseAuction, prepareIndexDtfDeploy, prepareIndexDtfDeployAssetApproval, prepareIndexDtfDeployAssetApprovals, prepareIndexDtfDeployGoverned, prepareIndexDtfDeployGovernedPlan, prepareIndexDtfDeployPlan, prepareIndexDtfDeployStakingToken, prepareIndexDtfDeprecate, prepareIndexDtfDistributeFees, prepareIndexDtfEndRebalance, prepareIndexDtfExecuteProposal, prepareIndexDtfGovernorCancelProposal, prepareIndexDtfMint, prepareIndexDtfMintPlan, prepareIndexDtfOpenAuction, prepareIndexDtfOpenAuctionArgs, prepareIndexDtfOpenAuctionUnrestricted, prepareIndexDtfQueueProposal, prepareIndexDtfRedeem, prepareIndexDtfRelay, prepareIndexDtfRemoveFromAllowlist, prepareIndexDtfRemoveFromBasket, prepareIndexDtfRevokeOptimisticProposer, prepareIndexDtfSetAuctionLength, prepareIndexDtfSetBidsEnabled, prepareIndexDtfSetFeeRecipients, prepareIndexDtfSetLateQuorumVoteExtension, prepareIndexDtfSetMandate, prepareIndexDtfSetMintFee, prepareIndexDtfSetName, prepareIndexDtfSetOptimisticParams, prepareIndexDtfSetProposalThrottle, prepareIndexDtfSetRebalanceControl, prepareIndexDtfSetSelfFee, prepareIndexDtfSetTradeAllowlistEnabled, prepareIndexDtfSetTrustedFillerRegistry, prepareIndexDtfSetTvlFee, prepareIndexDtfSubmitOptimisticProposal, prepareIndexDtfSubmitProposal, prepareIndexDtfTimelockDelay, prepareIndexDtfTimelockExecuteBatch, prepareIndexDtfTimelockGrantRole, prepareIndexDtfTimelockRevokeRole, prepareIndexDtfUpdateTimelock, prepareIndexDtfVote, prepareIndexDtfVoteWithReason, prepareIndexDtfVoteWithReasonAndParams, prepareSelectorRegistryRegisterSelectors, prepareSelectorRegistryUnregisterSelectors, prepareVoteLockAddRewardToken, prepareVoteLockCancelLock, prepareVoteLockClaimLock, prepareVoteLockClaimRewards, prepareVoteLockDelegate, prepareVoteLockDelegateOptimistic, prepareVoteLockDeposit, prepareVoteLockDepositPlan, prepareVoteLockPoke, prepareVoteLockRemoveRewardToken, prepareVoteLockSetRewardRatio, prepareVoteLockSetUnstakingDelay, prepareVoteLockWithdraw, readVoteLockAllRewardTokens, readVoteLockAsset, readVoteLockBalanceOf, readVoteLockCheckpoint, readVoteLockClock, readVoteLockClockMode, readVoteLockConvertToAssets, readVoteLockConvertToShares, readVoteLockDelegates, readVoteLockDisallowedRewardToken, readVoteLockGetPastTotalSupply, readVoteLockGetPastVotes, readVoteLockGetVotes, readVoteLockLock, readVoteLockMaxDeposit, readVoteLockMaxMint, readVoteLockMaxRedeem, readVoteLockMaxWithdraw, readVoteLockNumCheckpoints, readVoteLockOptimisticDelegates, readVoteLockOptimisticVotes, readVoteLockPastOptimisticVotes, readVoteLockPreviewDeposit, readVoteLockPreviewMint, readVoteLockPreviewRedeem, readVoteLockPreviewWithdraw, readVoteLockRewardRatio, readVoteLockRewardTracker, readVoteLockTotalAssets, readVoteLockTotalSupply, readVoteLockUnderlyingAllowance, readVoteLockUnderlyingBalance, readVoteLockUnstakingDelay, readVoteLockUnstakingManager, readVoteLockUnstakingTargetToken, readVoteLockUnstakingVault, readVoteLockUserRewardTracker, resolveIndexDtfAlias, supportedChainIds, yieldDtfCatalog };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Core TypeScript SDK for DTF interface integrations.",
5
5
  "keywords": [
6
6
  "dtf",