koinos / koinos/koinos-cli

[FEATURE]: Simplified rclimit management when payer is another wallet

Open
#168 4 comments 0 reactions 0 assignees View on GitHub
bug task
Dominant language
Go
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### New feature

Currently, managing rclimit with delegated mana is manual.

```
🔓 > rclimit
Current rc limit: 10.000000

🔓 > rclimit 100
Set rc limit to 100.000000

🔓 > upload contract.wasm contract.abi
cannot upload contract, payer does not have the rc to cover transaction rc limit

🔓 > rclimit 90
Set rc limit to 90.000000

🔓 > upload contract.wasm contract.abi
Contract uploaded with address
Transaction with ID containing 1 operations submitted.
Mana cost: 11.20280306 (Disk: 43604, Network: 48962, Compute: 680636)
```

If the delegator has a lot of mana, it's easy, but it would be easier if you could set it as a percentage of the payer's mana balance. Similar to the default experience where it's set to 100% of the current wallet's mana balance.

```
🔓 > rclimit
Current rc limit: 100.000000% (10117.572038)
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the CLI's rclimit and upload command entry points, then trace how the payer's mana balance and transaction rc limit are obtained. The feature is complete when rclimit can display and accept a percentage of the payer's mana balance, while uploads use that limit successfully without manual adjustment.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.