diff --git a/.changeset/governance-spell-deployments.md b/.changeset/governance-spell-deployments.md deleted file mode 100644 index 51495a1..0000000 --- a/.changeset/governance-spell-deployments.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@reserve-protocol/sdk": patch ---- - -Decode proposals to every `GovernanceSpell_09_18_2026` deployment (the 2% and 1% threshold redeployments on Ethereum, Base and BSC) and OPEN's `GovernanceSpell_10_21_2026`, so a preview names them without the explorer ABI fallback. diff --git a/.changeset/vote-token-decimals.md b/.changeset/vote-token-decimals.md deleted file mode 100644 index 0fd3a5b..0000000 --- a/.changeset/vote-token-decimals.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@reserve-protocol/sdk": patch ---- - -Index DTF governance amounts now use the decimals of the vote token. Before, the SDK formatted them with 18 decimals, so a DAO with a 6-decimal vote token (for example a vote-lock vault on USDC) showed a quorum of 0.00000000000003 instead of 0.03. Raw values did not change. - -- Proposals, proposal lists and voting snapshots get a `voteTokenDecimals` field from the subgraph. `getProposalState` uses it for the threshold amounts and uses 18 when it is missing. -- `getVoterState`, `getProposalVoterState`, `getOptimisticProposalVoterState`, `getOptimisticVotes`, `getPastOptimisticVotes` and `getOptimisticProposalContext` read `decimals()` in the same multicall as their other reads. -- `getDelegates` reads the vote token decimals from the subgraph. -- The vote-lock state formats `optimisticVotingPower` with the vault decimals. -- `getProposalVotes`, `getProposerState` and `getOptimisticProposalContext` accept an optional `voteTokenDecimals`. Without it, `getProposalVotes` and `getProposerState` with a `timepoint` make one more `decimals()` call. diff --git a/packages/react-sdk/CHANGELOG.md b/packages/react-sdk/CHANGELOG.md index 0ce9f52..3144b2a 100644 --- a/packages/react-sdk/CHANGELOG.md +++ b/packages/react-sdk/CHANGELOG.md @@ -1,5 +1,13 @@ # @reserve-protocol/react-sdk +## 0.8.1 + +### Patch Changes + +- Updated dependencies [b72d19b] +- Updated dependencies [e5341f3] + - @reserve-protocol/sdk@0.8.1 + ## 0.8.0 ### Minor Changes diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json index 6805bf1..6e2c064 100644 --- a/packages/react-sdk/package.json +++ b/packages/react-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@reserve-protocol/react-sdk", - "version": "0.8.0", + "version": "0.8.1", "description": "React Query hooks for DTF interface integrations.", "keywords": [ "dtf", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index f42a05c..5828a91 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,18 @@ # @reserve-protocol/sdk +## 0.8.1 + +### Patch Changes + +- b72d19b: Decode proposals to every `GovernanceSpell_09_18_2026` deployment (the 2% and 1% threshold redeployments on Ethereum, Base and BSC) and OPEN's `GovernanceSpell_10_21_2026`, so a preview names them without the explorer ABI fallback. +- e5341f3: Index DTF governance amounts now use the decimals of the vote token. Before, the SDK formatted them with 18 decimals, so a DAO with a 6-decimal vote token (for example a vote-lock vault on USDC) showed a quorum of 0.00000000000003 instead of 0.03. Raw values did not change. + + - Proposals, proposal lists and voting snapshots get a `voteTokenDecimals` field from the subgraph. `getProposalState` uses it for the threshold amounts and uses 18 when it is missing. + - `getVoterState`, `getProposalVoterState`, `getOptimisticProposalVoterState`, `getOptimisticVotes`, `getPastOptimisticVotes` and `getOptimisticProposalContext` read `decimals()` in the same multicall as their other reads. + - `getDelegates` reads the vote token decimals from the subgraph. + - The vote-lock state formats `optimisticVotingPower` with the vault decimals. + - `getProposalVotes`, `getProposerState` and `getOptimisticProposalContext` accept an optional `voteTokenDecimals`. Without it, `getProposalVotes` and `getProposerState` with a `timepoint` make one more `decimals()` call. + ## 0.8.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 003e2e8..df697dd 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@reserve-protocol/sdk", - "version": "0.8.0", + "version": "0.8.1", "description": "Core TypeScript SDK for DTF interface integrations.", "keywords": [ "dtf",