feat(fees): phase 4c — aspens-admin operator-fee commands#122
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
set-operator-fee --chain-network --recipient --bpsandrotate-operator-admin --chain-network --new-adminsubcommands + 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.