Open
Description
Is your feature request related to a problem? Please describe.
As a tapcli user
I want to be able to refer to to the notional / nominal name of an asset rather than the obtuse "asset id"
in order to make my UX easier
Describe the solution you'd like
Title: Create "Asset Book" Feature
Description
The purpose of this feature will be similar to an address book, allowing users to easily map human-readable, client-side-defined asset names (e.g. USDx, $marketname, stablecoin_x etc) to the Taproot Assets cryptographic protocol identifier asset_id
. This will provide a convenient way for users to specify assets when using tapcli without having to use the long assetIDName
or asset_id
directly.
Feature deliverables:
- A new ./cmd/tapcli/ will be added to manage the asset book
- ./cmd/tapcli/* functions, which accept asset IDs, will be enhanced to refer to their personal asset book to map an
asset name
toasset_id
- Suggested subcommands:
a
oradd
to add a new asset-name entry
e
oredit
to edit an existing asset-name entry
d
ordelete
to delete a asset-name entry
l
orlist
to list all asset-name entries
s
orsearch
to search for specific asset-names by name or keyword
o
orexport
to export the entire address book to a file
i
orimport
to import a file of asset-name data into the address book - The asset book should: handle multiple asset names and their corresponding asset IDs.
- The asset book should: provide appropriate error reporting in disallowed cases:
- Assert that only one asset_id can be assigned/mapped to an
asset name
in theasset book
(e.g.)
- Assert that only one asset_id can be assigned/mapped to an
- Consider tapcli providing information if an additional asset name is assigned to an asset_id
- i.e. an asset_id may have an unconstrained number of names associated with it (Earth, Gaja, Pale blue dot all refer to the same location)
Existing Repo Areas to be incorporate the feature into existing asset_id specification
Feature site (Suggested)
./cmd/tapcli/asset-book.go
./cmd/tapcli/commands/asset-book/
Metadata
Metadata
Assignees
Type
Projects
Status
🆕 New