algorand / algorand/go-algorand

Add 'goal asset optin' and 'goal asset optout' subcommands.

未关闭
#1,861 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
FDE
主要语言
Go
星标
1.4k
派生
537
平均合并
1 天 7 小时
30 天内合并 PR
18

描述

## Summary
The `goal asset send` command has multiple modes which lead to overly complicated CLI arguments. Specifically, special arguments are required to optin and optout of an asset. These special configurations should be replaced by specific subcommand which only do one thing instead of all three.

## Scope/Requirements

The `goal asset optin` subcommand should have the following flags:
* `asset` - required, asset to optin to.
(`amount` and to will no longer be available, it will be set to 0 as required by the optin command)
(`to` will no longer be available, it will be set to the sender as required by the optin command)

The `goal asset optout` subcommand should have the following flags:
* `asset` - required, asset to optout of.
* `close-to` - optional, this will default to the asset reserve address.
* `to` - optional, this will default to the `close-to` address.
* `amount` - optional, it will default to 0.

## Urgency/Relative Priority
This is not urgent. Users haven't asked, but generally a good idea

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。