lyra-plugin-onchain-one
v0.4.0
Published
Lyra on-chain tools on @mysten/sui v1 (7k swap, NAVI/Suilend/Scallop, staking, vault/policy). The v1 half of the plugin; combined with lyra-plugin-onchain-two (v2) by the lyra-plugin-onchain facade.
Maintainers
Readme
lyra-plugin-onchain
The Sui limbs for lyra — the tools that do real on-chain work. Every
value-moving call is routed through the deterministic policy → simulate →
approve → execute pipeline, and (when a vault is provisioned) sources funds from
the on-chain Vault via one of its bounded exits (vault_transfer,
vault_borrow/vault_settle, vault_spend_capped), so nothing moves outside the
on-chain lyra::policy limits.
- Wallet / reads —
account.info,sui.balance - Transfers —
sui.send(recipient-allowlist aware) - Swaps —
swap(7k aggregator best-route across Cetus / Turbos / FlowX / Bluefin / Aftermath / Momentum / Kriya / DeepBook),cetus.quote - Lending —
scallop.*(markets / position / supply / withdraw),navi.*(markets / position / supply / withdraw / borrow / repay),suilend.*(position / supply / withdraw / borrow / repay) - Staking —
sui.stake/sui.unstake(native delegation),volo.stake/volo.unstake(liquid staking → vSUI) - Discovery —
defi.yields(DeFiLlama),deepbook.markets,protocols.list(the honest read-vs-execute capability map) - Storage —
walrus.store(durable, verifiable receipts/memory on Walrus) - Policy —
policy.create(provision anAgentPolicy+Vault),policy.show
Install
Auto-installed with lyra-ai-agent.
Or directly: bun add lyra-plugin-onchain.
The on-chain package it targets lives in
lyraai-protocol/contracts. See the
root README for the full architecture.
