The first attempt's vote MCP tool inlined a Koios address_info pull helper in tools.rs that needed reqwest + pallas_codec + pallas_primitives as direct deps on aldabra-mcp — which it doesn't have. Compile failed. Cleaner: move the work into the dao crate where those deps already live. - ProposalUtxo gains `lovelace` + `proposal_st_asset_name_hex`. The vote builder needs both to construct the new proposal output. - KoiosDaoReader::list_proposals (was stubbed) now reads cfg.proposal_addr, decodes every UTxO's inline datum to ProposalDatum, and matches the ProposalST asset name against cfg.proposal_st_policy when set, falling back to the first asset on the utxo when not (Sulkta convention is one ProposalST + nothing else). - KoiosAsset.asset_name no longer #[allow(dead_code)] — it's read now. - tools.rs::dao_proposal_vote_unsigned switches to dao_reader.list_proposals + drops the inline pull helper. ~150 LOC simpler. |
||
|---|---|---|
| .. | ||
| aldabra-chain | ||
| aldabra-core | ||
| aldabra-dao | ||
| aldabra-mcp | ||