near-cli
near-cli copied to clipboard
could we use some expressions when put gas or amount of Near
Is your feature request related to a problem? Please describe. When put Near amount in near-shell such as gas or attached near, we are always involve with many zeros. It is really tirable and fallible。
Describe the solution you'd like The better way is to support some mid-unit notation, like nanoNear, miliNear and etc. like 30 nanoNear.
Describe alternatives you've considered Also, we can support an math expression, like 30*10^14 when input amount of yachto Near.
Additional context this is an expected scenaro: near call pool.6fb1358 create_staking_pool '{"staking_pool_id":"xxxx", "owner_id":"yyyy", "stake_public_key":"ed25519:zzzzzz", "reward_fee_fraction": {"numerator": 10, "denominator": 100}}' --account_id yyyy --amount 30Near --gas 3*10^14