oasisprotocol / oasisprotocol/cli

Automatically query for native token when adding new ParaTime

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement paratime
Dominant language
Go
Stars
80
Forks
23
Avg merge
9h 43m
Merged PRs (30d)
3

Description

When running oasis paratime add, you need to enter description, the token name and the number of decimal symbols. The last two can be obtained automatically by calling https://github.com/oasisprotocol/oasis-sdk/blob/main/client-sdk/go/modules/accounts/accounts.go#L45. Unless --offline flag is explicitly provided, run the query and prefill denomination and number decimals.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation of oasis paratime add, then read the linked accounts.go API to understand how the native token denomination and decimal count are obtained. Done means the command queries and prefills both values by default, while --offline skips the query; verify the existing add flow and its tests if present.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.