algorand / algorand/go-algorand

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

Đang mở
#1,861 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
FDE
Ngôn ngữ chính
Go
Star
1.4k
Fork
537
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
18

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.