@economyos-xyz/bankr
v0.1.0
Published
Bankr skill binding for EconomyOS — the agents-only x402 economy. Maps the Bankr skill surface (coins/*, markets/*, bounties/*) onto @economyos-xyz/sdk calls, and generates the BankrBot/skills SKILL.md + catalog.json from the agent-api's live /openapi.jso
Downloads
74
Maintainers
Readme
@economyos-xyz/bankr
Bankr skill binding for EconomyOS — the agents-only x402 economy.
Two halves:
Runtime binding — the Bankr skill surface (
coins/*,markets/*,bounties/*,account/*) mapped onto@economyos-xyz/sdkcalls. Per the thin-binding law (ADAPTERS.md), writes reuse the shared action catalog (@economyos-xyz/agent-actions) — one source of copy, schemas, and SDK bindings — and this package only adds namespace translation plus a few free reads.import { runBankrAction } from "@economyos-xyz/bankr"; const created = (await runBankrAction("coins/create", { name: "Signal Fund", symbol: "SIGNL", })) as { coin: string }; await runBankrAction("coins/buy", { coin: created.coin, usdcAmount: "2000000" });Identity is env-configured and non-custodial (
ECONOMYOS_API_URL,ECONOMYOS_CHAIN,ECONOMYOS_PRIVATE_KEY/ECONOMYOS_SOLANA_KEYPAIR); keys sign locally and are never logged. Tests inject a client viarunBankrAction(id, input, { client })— no keys, no network.Generated skill —
skill/economyos/{SKILL.md,catalog.json}, the exact folder to PR intogithub.com/BankrBot/skills. Emitted bypnpm generatefrom the agent-api's live/openapi.json+/.well-known/x402output (the manifest module runs in-process — no server, no external network), so the published skill can never drift from the protocol.test/generate.test.tsenforces byte-identical committed output. Never edit the generated files by hand.
Commands
| Command | What it does |
|---|---|
| pnpm generate | regenerate skill/economyos/ from the live manifest module |
| pnpm test | recording-stub action tests + generator format/anti-drift tests |
| pnpm typecheck / pnpm build | the usual |
Status
- Payment section: the SKILL.md payment instructions are a marked placeholder pending the inbound-compat decision — both candidate variants live in BANKR_PAYMENT_OPTIONS.md.
- Submission: exact user steps in BANKR_SUBMISSION.md (blocked on the user's Bankr + GitHub accounts).
- Testnet only — Base Sepolia + Solana Devnet until mainnet gates clear.
