@reserve-protocol/sdk 0.0.3 → 0.1.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/README.md CHANGED
@@ -4,10 +4,12 @@ Core TypeScript SDK for DTF integrations.
4
4
 
5
5
  This package is environment-agnostic. It should work in modern Node, browser apps, React wrappers, scripts, and bots.
6
6
 
7
- Supported products and chains:
7
+ Implemented SDK product surface:
8
8
 
9
9
  - Index DTFs: Ethereum mainnet, Base, BSC.
10
- - Yield DTFs: Ethereum mainnet, Base.
10
+ - Account portfolio API reads: current portfolio, historical portfolio, and transactions.
11
+
12
+ Yield DTF catalog entries and subgraph defaults exist for Ethereum mainnet and Base, but `sdk.yield.get` and `sdk.yield.list` are not implemented yet.
11
13
 
12
14
  ## Usage
13
15
 
@@ -21,15 +23,15 @@ const dtf = await sdk.index.get({
21
23
  chainId: 8453,
22
24
  });
23
25
 
24
- const cmc20 = sdk.index.ref({
26
+ const indexDtf = sdk.index.ref({
25
27
  address: "0x...",
26
28
  chainId: 8453,
27
29
  });
28
30
 
29
- const proposals = await cmc20.proposals();
30
- const price = await cmc20.getPrice();
31
- const brand = await cmc20.getBrand();
32
- const basketAtBlock = await cmc20.basket(123n);
31
+ const proposals = await indexDtf.getProposals();
32
+ const price = await indexDtf.getPrice();
33
+ const brand = await indexDtf.getBrand();
34
+ const basketAtBlock = await indexDtf.getBasket(123n);
33
35
  ```
34
36
 
35
37
  With explicit configuration:
@@ -80,7 +82,11 @@ This is intentionally not part of the normal test suite or CI path.
80
82
  SDK errors use stable machine-readable codes:
81
83
 
82
84
  ```ts
83
- import { isSdkError } from "@reserve-protocol/sdk";
85
+ import { createDtfSdk, isSdkError } from "@reserve-protocol/sdk";
86
+
87
+ const sdk = createDtfSdk();
88
+ const address = "0x...";
89
+ const chainId = 8453;
84
90
 
85
91
  try {
86
92
  await sdk.index.get({ address, chainId });
@@ -103,4 +109,4 @@ The intended model:
103
109
  namespace methods -> client -> small transports -> mappers
104
110
  ```
105
111
 
106
- See [../../docs/sdk-architecture.md](../../docs/sdk-architecture.md).
112
+ See [../../docs/sdk/architecture.md](../../docs/sdk/architecture.md).
package/dist/index.d.mts CHANGED
@@ -399,6 +399,18 @@ type DtfClientApi = {
399
399
  readonly getIndexDtfRebalanceDetail: (params: GetIndexDtfRebalanceDetailParams) => Promise<ReserveApiIndexDtfRebalanceDetail>;
400
400
  };
401
401
  //#endregion
402
+ //#region src/client/explorer.d.ts
403
+ type DtfClientExplorerContractMetadata = {
404
+ readonly abi: Abi;
405
+ readonly contractName: string;
406
+ };
407
+ type DtfClientExplorer = {
408
+ readonly getContractMetadata: (params: {
409
+ readonly chainId: SupportedChainId;
410
+ readonly address: Address;
411
+ }) => Promise<DtfClientExplorerContractMetadata | null>;
412
+ };
413
+ //#endregion
402
414
  //#region src/transports/subgraph.d.ts
403
415
  type SubgraphDocument<TResult, TVariables extends Variables = Record<string, never>> = RequestDocument | TypedDocumentNode<TResult, TVariables> | TypedDocumentString<TResult, TVariables>;
404
416
  //#endregion
@@ -462,9 +474,11 @@ type DtfChainConfig = DtfClientSubgraphChainConfig & DtfClientViemChainConfig;
462
474
  type DtfClientConfig = {
463
475
  readonly apiBaseUrl?: string;
464
476
  readonly chains?: Partial<Record<SupportedChainId, DtfChainConfig>>;
477
+ readonly etherscanApiKey?: string | undefined;
465
478
  };
466
479
  type DtfClient = {
467
480
  readonly api: DtfClientApi;
481
+ readonly explorer: DtfClientExplorer;
468
482
  readonly subgraph: DtfClientSubgraph;
469
483
  readonly viem: DtfClientViem;
470
484
  };
@@ -25422,7 +25436,6 @@ declare function getRebalanceAuctions(client: DtfClient, params: {
25422
25436
  type IndexDtfGovernanceInput = Address | readonly Address[];
25423
25437
  type GetIndexDtfProposalsOptions = {
25424
25438
  readonly limit?: number;
25425
- readonly includeOptimisticState?: boolean;
25426
25439
  };
25427
25440
  type GetIndexDtfProposalsByAddressParams = DtfParams & {
25428
25441
  readonly dtf?: never;
@@ -25446,11 +25459,14 @@ type GetAllIndexDtfProposalsParams = {
25446
25459
  readonly limit?: number;
25447
25460
  readonly offset?: number;
25448
25461
  readonly states?: readonly ProposalState[];
25449
- readonly includeOptimisticState?: boolean;
25450
25462
  };
25451
25463
  type GetIndexDtfProposalParams = {
25452
25464
  readonly proposalId: string;
25453
25465
  } & DtfParams;
25466
+ type GetIndexDtfProposalVotingSnapshotParams = {
25467
+ readonly chainId: SupportedChainId;
25468
+ readonly proposalId: string;
25469
+ };
25454
25470
  type GetIndexDtfDelegatesParams = {
25455
25471
  readonly chainId: SupportedChainId;
25456
25472
  readonly stToken: Address;
@@ -25477,6 +25493,9 @@ type GetIndexDtfOptimisticProposalContextParams = {
25477
25493
  readonly governance: Address;
25478
25494
  readonly proposalId: string | bigint;
25479
25495
  readonly isOptimistic?: boolean;
25496
+ readonly voteToken?: Address;
25497
+ readonly snapshot?: bigint;
25498
+ readonly vetoThreshold?: bigint;
25480
25499
  };
25481
25500
  type GetIndexDtfLegacyVoteLocksParams = DtfParams | {
25482
25501
  readonly dtf: IndexDtf;
@@ -25507,7 +25526,7 @@ type GetIndexDtfProposalVoterStateParams = {
25507
25526
  readonly chainId: SupportedChainId;
25508
25527
  readonly governance: Address;
25509
25528
  readonly account: Address;
25510
- readonly proposal: Pick<IndexDtfProposalDetail, "id" | "voteStart" | "votes">;
25529
+ readonly proposal: Pick<IndexDtfProposalDetail, "id" | "isOptimistic" | "optimistic" | "voteStart" | "voteToken" | "votes">;
25511
25530
  };
25512
25531
  type GetIndexDtfOptimisticProposalVoterStateParams = {
25513
25532
  readonly chainId: SupportedChainId;
@@ -25523,10 +25542,18 @@ type ProposalVotingState = {
25523
25542
  readonly forVotesReachedQuorum: boolean;
25524
25543
  readonly participationQuorumReached: boolean;
25525
25544
  readonly vetoReached: boolean;
25545
+ readonly threshold: ProposalVotingThreshold;
25526
25546
  readonly for: number;
25527
25547
  readonly against: number;
25528
25548
  readonly abstain: number;
25529
25549
  };
25550
+ type ProposalVotingThreshold = {
25551
+ readonly currentVotes: Amount;
25552
+ readonly targetVotes?: Amount;
25553
+ readonly progress: number;
25554
+ readonly reached: boolean;
25555
+ readonly hasTarget: boolean;
25556
+ };
25530
25557
  type IndexDtfOptimisticGovernanceParams = {
25531
25558
  readonly vetoDelay: bigint;
25532
25559
  readonly vetoPeriod: bigint;
@@ -25556,8 +25583,9 @@ type IndexDtfProposalSummary = {
25556
25583
  readonly chainId: SupportedChainId;
25557
25584
  readonly governance: Address;
25558
25585
  readonly timelock: Address;
25586
+ readonly voteToken: Address;
25559
25587
  readonly dtf?: DtfParams;
25560
- readonly proposer?: Address;
25588
+ readonly proposer: Address;
25561
25589
  readonly description: string;
25562
25590
  readonly state: ProposalState;
25563
25591
  readonly creationTime: number;
@@ -25572,16 +25600,38 @@ type IndexDtfProposalSummary = {
25572
25600
  readonly againstWeightedVotes: Amount;
25573
25601
  readonly abstainWeightedVotes: Amount;
25574
25602
  readonly isOptimistic?: boolean;
25603
+ readonly wasChallenged?: boolean;
25604
+ readonly challengedProposalId?: string;
25575
25605
  readonly vetoThreshold?: bigint;
25576
- readonly voteToken?: Address;
25577
25606
  readonly optimistic?: IndexDtfOptimisticProposalContext;
25578
25607
  readonly votingState: ProposalVotingState;
25579
25608
  };
25609
+ type IndexDtfProposalList = {
25610
+ readonly proposals: readonly IndexDtfProposalSummary[];
25611
+ readonly proposalCount: number;
25612
+ };
25580
25613
  type IndexDtfProposalVote = {
25581
25614
  readonly voter: Address;
25582
25615
  readonly choice: string;
25583
25616
  readonly weight: Amount;
25584
25617
  };
25618
+ type IndexDtfProposalVotingSnapshot = {
25619
+ readonly id: string;
25620
+ readonly governance: Address;
25621
+ readonly voteToken: Address;
25622
+ readonly state: ProposalState;
25623
+ readonly voteStart: number;
25624
+ readonly voteEnd: number;
25625
+ readonly quorumVotes: Amount;
25626
+ readonly forWeightedVotes: Amount;
25627
+ readonly againstWeightedVotes: Amount;
25628
+ readonly abstainWeightedVotes: Amount;
25629
+ readonly isOptimistic?: boolean;
25630
+ readonly vetoThreshold?: bigint;
25631
+ readonly optimistic?: IndexDtfOptimisticProposalContext;
25632
+ readonly votes: readonly IndexDtfProposalVote[];
25633
+ readonly votingState: ProposalVotingState;
25634
+ };
25585
25635
  type IndexDtfDecodedCalldata = {
25586
25636
  readonly index: number;
25587
25637
  readonly target: Address;
@@ -25616,8 +25666,10 @@ type IndexDtfProposalDecoded = {
25616
25666
  readonly unknownCalls: readonly IndexDtfUnknownCalldata[];
25617
25667
  };
25618
25668
  type IndexDtfProposalDetail = IndexDtfProposalSummary & {
25669
+ readonly txnHash: Hex;
25619
25670
  readonly timelockId?: Hex;
25620
25671
  readonly queueBlock?: number;
25672
+ readonly queueTxnHash?: Hex;
25621
25673
  readonly queueTime?: number;
25622
25674
  readonly cancellationTime?: number;
25623
25675
  readonly targets: readonly Address[];
@@ -25633,6 +25685,8 @@ type IndexDtfDelegate = {
25633
25685
  readonly address: Address;
25634
25686
  readonly delegatedVotes: Amount;
25635
25687
  readonly optimisticDelegatedVotes: Amount;
25688
+ readonly weightedVotes: number;
25689
+ readonly optimisticWeightedVotes: number;
25636
25690
  readonly numberVotes: number;
25637
25691
  readonly numberOptimisticVotes: number;
25638
25692
  readonly hasBeenStandardDelegate: boolean;
@@ -25640,6 +25694,18 @@ type IndexDtfDelegate = {
25640
25694
  readonly tokenHoldersRepresentedAmount: number;
25641
25695
  readonly optimisticTokenHoldersRepresentedAmount: number;
25642
25696
  };
25697
+ type IndexDtfDelegates = {
25698
+ readonly delegates: readonly IndexDtfDelegate[];
25699
+ readonly normalDelegates: readonly IndexDtfDelegate[];
25700
+ readonly optimisticDelegates: readonly IndexDtfDelegate[];
25701
+ readonly totalDelegates: number;
25702
+ readonly currentDelegates: number;
25703
+ readonly totalNormalDelegates: number;
25704
+ readonly currentNormalDelegates: number;
25705
+ readonly totalOptimisticDelegates: number;
25706
+ readonly currentOptimisticDelegates: number;
25707
+ readonly voteSupply: Amount;
25708
+ };
25643
25709
  type IndexDtfGuardianGroup = {
25644
25710
  readonly governance: Address;
25645
25711
  readonly timelock: Address;
@@ -25661,6 +25727,7 @@ type IndexDtfVoterState = {
25661
25727
  readonly optimisticDelegate: Address | null;
25662
25728
  readonly balance: Amount;
25663
25729
  readonly votingPower: Amount;
25730
+ readonly votingWeight: number;
25664
25731
  readonly optimisticVotingPower: Amount | null;
25665
25732
  readonly voteSupply: Amount;
25666
25733
  readonly isSelfDelegated: boolean;
@@ -25722,7 +25789,63 @@ type ProposeIndexDtfProposalParams = IndexDtfProposalActionParams;
25722
25789
  type SubmitOptimisticIndexDtfProposalParams = IndexDtfProposalActionParams;
25723
25790
  //#endregion
25724
25791
  //#region src/index-dtf/governance/delegates.d.ts
25725
- declare function getDelegates(client: DtfClient, params: GetIndexDtfDelegatesParams): Promise<readonly IndexDtfDelegate[]>;
25792
+ declare function getDelegates(client: DtfClient, params: GetIndexDtfDelegatesParams): Promise<IndexDtfDelegates>;
25793
+ //#endregion
25794
+ //#region src/index-dtf/governance/contract-map.d.ts
25795
+ type ProposalContractDecoder = {
25796
+ readonly target: Address;
25797
+ readonly contract: string;
25798
+ readonly abi: Abi;
25799
+ };
25800
+ type IndexDtfProposalGovernanceContractContext = {
25801
+ readonly address: Address;
25802
+ readonly timelock: {
25803
+ readonly address: Address;
25804
+ readonly type?: string | null;
25805
+ };
25806
+ };
25807
+ type IndexDtfProposalDtfContractContext = {
25808
+ readonly address: Address;
25809
+ readonly proxyAdmin: Address;
25810
+ readonly legacyAdminGovernance: readonly Address[];
25811
+ readonly legacyTradingGovernance: readonly Address[];
25812
+ readonly ownerGovernance?: {
25813
+ readonly address: Address;
25814
+ readonly timelock: Address;
25815
+ };
25816
+ readonly tradingGovernance?: {
25817
+ readonly address: Address;
25818
+ readonly timelock: Address;
25819
+ };
25820
+ readonly stakingToken: {
25821
+ readonly address: Address;
25822
+ readonly legacyGovernance: readonly Address[];
25823
+ readonly governance?: {
25824
+ readonly address: Address;
25825
+ readonly timelock: Address;
25826
+ };
25827
+ };
25828
+ };
25829
+ //#endregion
25830
+ //#region src/index-dtf/governance/decoder.d.ts
25831
+ type DecodeIndexDtfProposalCalldatasParams = {
25832
+ readonly targets: readonly Address[];
25833
+ readonly calldatas: readonly `0x${string}`[];
25834
+ readonly contractMap: Map<string, ProposalContractDecoder>;
25835
+ };
25836
+ type DecodeIndexDtfProposalParams = {
25837
+ readonly chainId: SupportedChainId;
25838
+ readonly targets: readonly Address[];
25839
+ readonly calldatas: readonly `0x${string}`[];
25840
+ readonly dtf: IndexDtfProposalDtfContractContext;
25841
+ readonly proposalGovernance?: IndexDtfProposalGovernanceContractContext;
25842
+ };
25843
+ declare function decodeIndexDtfProposalCalldatas({
25844
+ targets,
25845
+ calldatas,
25846
+ contractMap
25847
+ }: DecodeIndexDtfProposalCalldatasParams): IndexDtfProposalDecoded;
25848
+ declare function decodeIndexDtfProposal(client: DtfClient, params: DecodeIndexDtfProposalParams): Promise<IndexDtfProposalDecoded>;
25726
25849
  //#endregion
25727
25850
  //#region src/index-dtf/governance/guardians.d.ts
25728
25851
  declare function getGuardians(client: DtfClient, params: GetIndexDtfGuardiansParams): Promise<IndexDtfGuardians>;
@@ -35939,14 +36062,20 @@ declare function buildIndexDtfSettingsProposal(client: DtfClient, params: BuildI
35939
36062
  //#endregion
35940
36063
  //#region src/index-dtf/governance/proposals.d.ts
35941
36064
  declare function getProposals(client: DtfClient, params: GetIndexDtfProposalsParams): Promise<readonly IndexDtfProposalSummary[]>;
36065
+ declare function getProposalList(client: DtfClient, params: GetIndexDtfProposalsParams): Promise<IndexDtfProposalList>;
35942
36066
  declare function getAllProposals(client: DtfClient, params: GetAllIndexDtfProposalsParams): Promise<readonly IndexDtfProposalSummary[]>;
35943
36067
  declare function getProposal(client: DtfClient, params: GetIndexDtfProposalParams): Promise<IndexDtfProposalDetail>;
36068
+ declare function getProposalVotingSnapshot(client: DtfClient, params: GetIndexDtfProposalVotingSnapshotParams): Promise<IndexDtfProposalVotingSnapshot>;
35944
36069
  //#endregion
35945
36070
  //#region src/index-dtf/governance/selector-registry.d.ts
35946
36071
  type IndexDtfSelectorData = {
35947
36072
  readonly target: Address;
35948
36073
  readonly selectors: readonly Hex[];
35949
36074
  };
36075
+ type IndexDtfOptimisticSelector = {
36076
+ readonly target: Address;
36077
+ readonly selector: Hex;
36078
+ };
35950
36079
  type GetSelectorRegistryParams = {
35951
36080
  readonly chainId: SupportedChainId;
35952
36081
  readonly registry: Address;
@@ -35963,6 +36092,7 @@ type PrepareSelectorRegistrySelectorsParams = GetSelectorRegistryParams & {
35963
36092
  declare function getSelectorRegistryTargets(client: DtfClient, params: GetSelectorRegistryParams): Promise<readonly Address[]>;
35964
36093
  declare function getSelectorRegistryAllowedSelectors(client: DtfClient, params: GetSelectorRegistryTargetParams): Promise<readonly Hex[]>;
35965
36094
  declare function getSelectorRegistryIsAllowed(client: DtfClient, params: GetSelectorRegistryIsAllowedParams): Promise<boolean>;
36095
+ declare function getOptimisticSelectors(client: DtfClient, params: GetSelectorRegistryParams): Promise<readonly IndexDtfOptimisticSelector[]>;
35966
36096
  declare function prepareSelectorRegistryRegisterSelectors(params: PrepareSelectorRegistrySelectorsParams): ContractCall<readonly [readonly {
35967
36097
  target: `0x${string}`;
35968
36098
  selectors: readonly `0x${string}`[];
@@ -43789,9 +43919,12 @@ declare function createIndexDtfNamespace(client: DtfClient): {
43789
43919
  prepareOpenAuction: typeof prepareIndexDtfOpenAuction;
43790
43920
  prepareOpenAuctionUnrestricted: typeof prepareIndexDtfOpenAuctionUnrestricted;
43791
43921
  getProposals: (params: GetIndexDtfProposalsParams) => Promise<readonly IndexDtfProposalSummary[]>;
43922
+ getProposalList: (params: GetIndexDtfProposalsParams) => Promise<IndexDtfProposalList>;
43792
43923
  getProposal: (params: GetIndexDtfProposalParams) => Promise<IndexDtfProposalDetail>;
43924
+ decodeProposalCalldatas: (params: Parameters<typeof decodeIndexDtfProposal>[1]) => Promise<IndexDtfProposalDecoded>;
43925
+ getProposalVotingSnapshot: (params: GetIndexDtfProposalVotingSnapshotParams) => Promise<IndexDtfProposalVotingSnapshot>;
43793
43926
  getAllProposals: (params: GetAllIndexDtfProposalsParams) => Promise<readonly IndexDtfProposalSummary[]>;
43794
- getDelegates: (params: GetIndexDtfDelegatesParams) => Promise<readonly IndexDtfDelegate[]>;
43927
+ getDelegates: (params: GetIndexDtfDelegatesParams) => Promise<IndexDtfDelegates>;
43795
43928
  getGuardians: (params: GetIndexDtfGuardiansParams) => Promise<IndexDtfGuardians>;
43796
43929
  getLegacyVoteLocks: (params: GetIndexDtfLegacyVoteLocksParams) => Promise<readonly `0x${string}`[]>;
43797
43930
  getVoterState: (params: GetIndexDtfVoterStateParams) => Promise<IndexDtfVoterState>;
@@ -43801,6 +43934,7 @@ declare function createIndexDtfNamespace(client: DtfClient): {
43801
43934
  optimisticProposers: `0x${string}`[];
43802
43935
  guardians: `0x${string}`[];
43803
43936
  }>;
43937
+ getOptimisticSelectors: (params: Parameters<typeof getOptimisticSelectors>[1]) => Promise<readonly IndexDtfOptimisticSelector[]>;
43804
43938
  getOptimisticVotes: (params: Parameters<typeof getOptimisticVotes>[1]) => Promise<Amount>;
43805
43939
  getPastOptimisticVotes: (params: Parameters<typeof getPastOptimisticVotes>[1]) => Promise<Amount>;
43806
43940
  getProposalThrottleCharges: (params: GetIndexDtfProposalThrottleChargesParams) => Promise<bigint>;
@@ -71091,8 +71225,10 @@ declare function createIndexDtfNamespace(client: DtfClient): {
71091
71225
  }];
71092
71226
  }], "openAuctionUnrestricted">;
71093
71227
  getProposals: (options?: GetIndexDtfProposalsOptions) => Promise<readonly IndexDtfProposalSummary[]>;
71228
+ getProposalList: (options?: GetIndexDtfProposalsOptions) => Promise<IndexDtfProposalList>;
71094
71229
  getProposal: (proposalId: string) => Promise<IndexDtfProposalDetail>;
71095
- getDelegates: (options: Pick<GetIndexDtfDelegatesParams, "stToken" | "limit">) => Promise<readonly IndexDtfDelegate[]>;
71230
+ getProposalVotingSnapshot: (proposalId: string) => Promise<IndexDtfProposalVotingSnapshot>;
71231
+ getDelegates: (options: Pick<GetIndexDtfDelegatesParams, "stToken" | "limit">) => Promise<IndexDtfDelegates>;
71096
71232
  getGuardians: () => Promise<IndexDtfGuardians>;
71097
71233
  getLegacyVoteLocks: () => Promise<readonly `0x${string}`[]>;
71098
71234
  getVoterState: (voter: Pick<GetIndexDtfVoterStateParams, "account" | "stToken">) => Promise<IndexDtfVoterState>;
@@ -112828,8 +112964,10 @@ declare function createIndexDtfRef(client: DtfClient, params: DtfParams): {
112828
112964
  }];
112829
112965
  }], "openAuctionUnrestricted">;
112830
112966
  getProposals: (options?: GetIndexDtfProposalsOptions) => Promise<readonly IndexDtfProposalSummary[]>;
112967
+ getProposalList: (options?: GetIndexDtfProposalsOptions) => Promise<IndexDtfProposalList>;
112831
112968
  getProposal: (proposalId: string) => Promise<IndexDtfProposalDetail>;
112832
- getDelegates: (options: Pick<GetIndexDtfDelegatesParams, "stToken" | "limit">) => Promise<readonly IndexDtfDelegate[]>;
112969
+ getProposalVotingSnapshot: (proposalId: string) => Promise<IndexDtfProposalVotingSnapshot>;
112970
+ getDelegates: (options: Pick<GetIndexDtfDelegatesParams, "stToken" | "limit">) => Promise<IndexDtfDelegates>;
112833
112971
  getGuardians: () => Promise<IndexDtfGuardians>;
112834
112972
  getLegacyVoteLocks: () => Promise<readonly `0x${string}`[]>;
112835
112973
  getVoterState: (voter: Pick<GetIndexDtfVoterStateParams, "account" | "stToken">) => Promise<IndexDtfVoterState>;
@@ -138017,7 +138155,11 @@ declare function prepareIndexDtfTimelockExecuteBatch(params: PrepareIndexDtfTime
138017
138155
  }): IndexDtfCall;
138018
138156
  //#endregion
138019
138157
  //#region src/index-dtf/governance/utils.d.ts
138158
+ type ProposalVoteStateInput = Pick<IndexDtfProposalSummary, "abstainWeightedVotes" | "againstWeightedVotes" | "executionETA" | "forWeightedVotes" | "quorumVotes" | "state" | "isOptimistic" | "vetoThreshold" | "voteEnd" | "voteStart"> & {
138159
+ readonly optimistic?: Partial<Pick<IndexDtfOptimisticProposalContext, "snapshotSupply" | "vetoThreshold" | "vetoThresholdVotes">>;
138160
+ };
138020
138161
  declare function getProposalGovernanceAddresses(dtf: IndexDtf): readonly Address[];
138162
+ declare function getProposalState(proposal: ProposalVoteStateInput, timestamp?: number): ProposalVotingState;
138021
138163
  //#endregion
138022
138164
  //#region src/create-dtf-sdk.d.ts
138023
138165
  type DtfSdkConfig = DtfClientConfig & {
@@ -138101,4 +138243,4 @@ type YieldDtfListItem = Pick<YieldDtf, "address" | "chainId" | "name" | "symbol"
138101
138243
  readonly performance?: readonly DtfPerformancePoint[];
138102
138244
  };
138103
138245
  //#endregion
138104
- 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 DiscoverDtf, DiscoverIndexDtfsByChainParams, DiscoverIndexDtfsFromSubgraphParams, DiscoverIndexDtfsParams, DtfBasketAsset, DtfBasketSummaryAsset, DtfBrand, type DtfChainConfig, type DtfClient, type DtfClientApi, type DtfClientConfig, 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, 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, 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, IndexDtfPlatformFee, IndexDtfPrice, IndexDtfPriceBasketAsset, IndexDtfPriceBasketToken, IndexDtfPricePoint, IndexDtfProposalActionParams, IndexDtfProposalDecoded, IndexDtfProposalDetail, IndexDtfProposalPayload, IndexDtfProposalSummary, IndexDtfProposalVote, IndexDtfProposalVoterState, IndexDtfProposalVotes, 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, 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, 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, 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, getProposalThrottleCharges as getIndexDtfProposalThrottleCharges, getProposalVoterState as getIndexDtfProposalVoterState, getProposalVotes as getIndexDtfProposalVotes, 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 };
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 };