Skip to content

feat(fees): phase 4c — aspens-admin operator-fee commands#122

Merged
tuddman merged 1 commit into
mainfrom
track-a/fees-phase4c-cli
Jun 1, 2026
Merged

feat(fees): phase 4c — aspens-admin operator-fee commands#122
tuddman merged 1 commit into
mainfrom
track-a/fees-phase4c-cli

Conversation

@tuddman

@tuddman tuddman commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Add CLI subcommands driving the SetOperatorFee/SetOperatorAdmin RPCs (4b), so a stack admin can manage an instance's operator fee. The arborter submits the on-chain call as operator_admin; the CLI only needs a JWT (no local key).

  • aspens lib (commands::admin): set_operator_fee(chain_network, recipient, bps)
    • set_operator_admin(chain_network, new_admin) — JWT-authenticated ConfigServiceClient calls returning the on-chain tx hash. Mirrors the set_trade_contract shape; regenerated config bindings included.
  • aspens-admin: set-operator-fee --chain-network --recipient --bps and rotate-operator-admin --chain-network --new-admin subcommands + dispatch, printing the returned tx signature.

get-fees (read) deferred — needs a GetFees RPC (no read path in 4b). Maintenance fee is factory-level, separate. Build + just fmt + clippy -D warnings + tests clean.

Add CLI subcommands driving the SetOperatorFee/SetOperatorAdmin RPCs (4b), so a
stack admin can manage an instance's operator fee. The arborter submits the
on-chain call as operator_admin; the CLI only needs a JWT (no local key).

- aspens lib (commands::admin): set_operator_fee(chain_network, recipient, bps)
  + set_operator_admin(chain_network, new_admin) — JWT-authenticated
  ConfigServiceClient calls returning the on-chain tx hash. Mirrors the
  set_trade_contract shape; regenerated config bindings included.
- aspens-admin: `set-operator-fee --chain-network --recipient --bps` and
  `rotate-operator-admin --chain-network --new-admin` subcommands + dispatch,
  printing the returned tx signature.

get-fees (read) deferred — needs a GetFees RPC (no read path in 4b). Maintenance
fee is factory-level, separate. Build + just fmt + clippy -D warnings + tests clean.
@tuddman tuddman merged commit 1789b20 into main Jun 1, 2026
9 checks passed
@tuddman tuddman deleted the track-a/fees-phase4c-cli branch June 1, 2026 23:02
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