Skip to content

Version Packages#10

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Closed

Version Packages#10
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@reserve-protocol/react-sdk@0.3.0

Minor Changes

  • e7bcc93: Full Yield DTF (RToken) domain: reads, issuance, staking, governance, auctions, APY, and proposal building.

    sdk.yield is now a complete namespace (the NOT_IMPLEMENTED placeholder is gone):

    • Core reads: get, list (with dtf-catalog status/logo), getContracts, getState, getPrice (on-chain via the protocol facade — no Reserve API), getBasket, getHolders, getTransactions, plus sdk.yield.ref({ address, chainId }).
    • Issuance/staking: facade quotes, getMaxIssuable, getStakingState (incl. pending unstakings), getStakeHistory, and prepare builders for issue/redeem/redeemCustom/stake/unstake/withdraw/cancelUnstake with approval plans.
    • Governance: getGovernance (quorum/threshold always read on-chain, both Alexios and Anastasius flavors), getProposals/getProposal (authoritative on-chain state), getVoterState, getProposalVotePower, and vote/queue/execute/cancel/propose builders — including the guardian timelock cancel path.
    • Auctions/revenue: getRevenue (canStart reconciled with pending recollateralization, amounts in each token's decimals), getTrades, getDutchAuction, and run-auctions/rebalance/bid/claim-rewards builders.
    • APY: SDK-owned DefiLlama integration (getCollateralYields, COLLATERAL_POOL_MAP), pure computeYieldDtfApy, getApy, and realized staking APY from exchange-rate snapshots.
    • Proposal builders for every governed parameter (delays, buffers, slippage, ratios, throttles, freezes, auction lengths), roles (YIELD_DTF_ROLES), prime basket + refresh, backup config, and revenue distribution; toYieldDtfProposalPayload composes them into proposals.
    • Shared OZ governor call builders in lib/governor-calls (prepareGovernorVote/Propose/Queue/Execute/Cancel, prepareTimelockCancel, getGovernorTimelockOperationId) — the index-dtf governance actions now encode through the same module.
    • react-sdk: ~25 useYieldDtf* query hooks + call hooks with dtfQueryKeys.yield.* and staleTime defaults.
    • ABIs exported: facade read/act, rToken, Main, stRSR(+Votes), basket handler, governance (both flavors), broker, distributor, furnace, backing manager, revenue trader, dutch trade.

    Breaking: the speculative YieldDtf/YieldDtfListItem placeholder types are replaced by the real Yield DTF type set.

    Validated end-to-end against live eUSD, ETH+ (mainnet), and bsdETH (base): pnpm --filter @reserve-protocol/sdk validate:yield.

Patch Changes

  • Updated dependencies [e7bcc93]
    • @reserve-protocol/sdk@0.3.0

@reserve-protocol/sdk@0.3.0

Minor Changes

  • e7bcc93: Full Yield DTF (RToken) domain: reads, issuance, staking, governance, auctions, APY, and proposal building.

    sdk.yield is now a complete namespace (the NOT_IMPLEMENTED placeholder is gone):

    • Core reads: get, list (with dtf-catalog status/logo), getContracts, getState, getPrice (on-chain via the protocol facade — no Reserve API), getBasket, getHolders, getTransactions, plus sdk.yield.ref({ address, chainId }).
    • Issuance/staking: facade quotes, getMaxIssuable, getStakingState (incl. pending unstakings), getStakeHistory, and prepare builders for issue/redeem/redeemCustom/stake/unstake/withdraw/cancelUnstake with approval plans.
    • Governance: getGovernance (quorum/threshold always read on-chain, both Alexios and Anastasius flavors), getProposals/getProposal (authoritative on-chain state), getVoterState, getProposalVotePower, and vote/queue/execute/cancel/propose builders — including the guardian timelock cancel path.
    • Auctions/revenue: getRevenue (canStart reconciled with pending recollateralization, amounts in each token's decimals), getTrades, getDutchAuction, and run-auctions/rebalance/bid/claim-rewards builders.
    • APY: SDK-owned DefiLlama integration (getCollateralYields, COLLATERAL_POOL_MAP), pure computeYieldDtfApy, getApy, and realized staking APY from exchange-rate snapshots.
    • Proposal builders for every governed parameter (delays, buffers, slippage, ratios, throttles, freezes, auction lengths), roles (YIELD_DTF_ROLES), prime basket + refresh, backup config, and revenue distribution; toYieldDtfProposalPayload composes them into proposals.
    • Shared OZ governor call builders in lib/governor-calls (prepareGovernorVote/Propose/Queue/Execute/Cancel, prepareTimelockCancel, getGovernorTimelockOperationId) — the index-dtf governance actions now encode through the same module.
    • react-sdk: ~25 useYieldDtf* query hooks + call hooks with dtfQueryKeys.yield.* and staleTime defaults.
    • ABIs exported: facade read/act, rToken, Main, stRSR(+Votes), basket handler, governance (both flavors), broker, distributor, furnace, backing manager, revenue trader, dutch trade.

    Breaking: the speculative YieldDtf/YieldDtfListItem placeholder types are replaced by the real Yield DTF type set.

    Validated end-to-end against live eUSD, ETH+ (mainnet), and bsdETH (base): pnpm --filter @reserve-protocol/sdk validate:yield.

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 82ce3da to 11cda99 Compare June 18, 2026 19:38
@lcamargof lcamargof closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant