feat(dao-mcp): wire dao_proposal_vote_unsigned + slot↔ms helper
- DaoProposalVoteArgs (dao? + proposal_id + result_tag + fee_lovelace) - mainnet_slot_to_posix_ms: Shelley genesis constants (slot 4_492_800, posix 1_596_059_091_000) for converting tip+VALIDITY_RANGE_SLOTS into the Voted lock's posix_time field - pull_proposal_utxos helper: address_info → decode every UTxO's inline datum into ProposalDatum, return matching proposal_id by id match (`KoiosDaoReader::list_proposals` is still stubbed; this is a focused write-path read) - mainnet-only network gate (preprod/preview slot↔ms is Phase 5) - get_info instructions text mentions write tools - drop unused pallas_addresses::Address + pallas_txbuilder::ExUnits imports surfaced by clippy
This commit is contained in:
parent
59cdd92b57
commit
d9f852d8bd
2 changed files with 390 additions and 3 deletions
|
|
@ -59,10 +59,9 @@
|
|||
//! - **Vote retraction** — `RetractVotes` redeemer path is its own builder
|
||||
//! (Phase 4 follow-up).
|
||||
|
||||
use pallas_addresses::Address;
|
||||
use pallas_codec::minicbor;
|
||||
use pallas_crypto::hash::Hash;
|
||||
use pallas_txbuilder::{BuildConway, ExUnits, Input, Output, StagingTransaction};
|
||||
use pallas_txbuilder::{BuildConway, Input, Output, StagingTransaction};
|
||||
|
||||
use crate::agora::proposal::{
|
||||
ProposalDatum, ProposalRedeemer, ProposalStatus, ProposalVotes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue