algorand / algorand/go-algorand

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

Open
#1,861 0 comments 0 reactions 0 assignees View on GitHub
FDE
Dominant language
Go
Stars
1.4k
Forks
537
Avg merge
1d 6h
Merged PRs (30d)
17

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.