Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support relative amount for tokens and shares

オープン
#176 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
blockchain, cli

調査の方向性

アカウント転送の CLI エントリポイントから始め、残高、相対量、トランザクション手数料がどのように計算されるかを追跡します。金額または割合で指定するためにサポートする構文を定義し、それを転送およびその他の一覧にある操作にどのように適用すべきかを判断します。相対的なパーセンテージと割合が、手数料の差し引きやアカウントを空にする処理を含めて正しく機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Currently, there is no simple way to empty your account apart from copying and pasting the amount and subtracting the fee. One way to solve this is to support both the absolute number of tokens to transfer or the relative share of your account:

oasis account transfer <amount|share%> <to> [flags]

CLI would compute the correct amount by querying the account balance, compute the relative amount, compute the fee and subtract the fee from the relative amount.

In the case above, one could empty the account by invoking:

oasis account transfer 100% my_cold_wallet

The relative amount could as well be implemented for deposits, withdrawals, allowances, delegations and the same for the ParaTime-layer transactions. The undelegate command could also use the relative amount of shares.

主要言語
Go
スター
80
フォーク
23
平均マージ
9時間 43分
マージ済み PR(30日)
3

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oasisprotocol/cli のほかの issue

oasisprotocol/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。