Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump client-sdk to 0.8.1 #206

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Bump client-sdk to 0.8.1 #206

merged 2 commits into from
Mar 8, 2024

Conversation

kostko
Copy link
Member

@kostko kostko commented Mar 6, 2024

This also adds RPC endpoint migrations and improvements to support for different denominations.

Copy link

netlify bot commented Mar 6, 2024

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 80f628b
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-cli/deploys/65eb1aca0729e600084888ee

@kostko kostko requested review from ptrus and matevz March 7, 2024 07:31
Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update the following files to reflect the new .io domain:

  • examples/account/config/cli.toml
  • examples/addressbook/config/cli.toml
  • examples/network-set-rpc/01-set-rpc.in
  • examples/network-set-rpc/config/cli.toml
  • examples/network/add-tcpip.in.static
  • examples/network/config/cli.toml
  • examples/paratime-remove/config/cli.toml
  • examples/wallet/config/cli.toml

@@ -17,15 +17,23 @@ import (
)

var transferCmd = &cobra.Command{
Use: "transfer <amount> <to>",
Use: "transfer <amount> [<denom>] <to>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting usage. I was thinking of introducing a slightly different flow for setting the validator's commission fee without the space character (e.g. --bounds 329000/2%/4%). A separate denominator argument makes sense here though. 👍

@kostko
Copy link
Member Author

kostko commented Mar 8, 2024

Please also update the following files to reflect the new .io domain:

But then it won't test the migrations? Maybe I'll add an explicit one for testing migrations.

@kostko kostko force-pushed the kostko/feature/rpcs-and-denoms branch from 3792167 to 5dd9b09 Compare March 8, 2024 08:25
@kostko
Copy link
Member Author

kostko commented Mar 8, 2024

Done, please take another look.

@kostko kostko requested a review from matevz March 8, 2024 10:03
@kostko kostko force-pushed the kostko/feature/rpcs-and-denoms branch from 5dd9b09 to 80f628b Compare March 8, 2024 14:03
Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the new denomination-specific operations and they work fine. However, I would suggest the following additions (can be in another PR):

  • oasis paratime list should have another column DENOMINATION(S) containing comma-separated currencies, number of decimals and the default one marked with (*). For example EUROe[18] (*), TEST[18]
  • new subcommand oasis paratime denom with
    • add <network> <paratime> <denomination> <number_of_decimals>
    • remove <network> <paratime> <denomination>
    • in the future, other ERC-20 related operations will also be covered by the denom subcommand
  • the list of registered denominations. This should probably go inside the oasis paratime show <paratime>

continue
}

pt.ConsensusDenomination = ptCfg.ConsensusDenomination
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the migrated config file I notcied the consensus denomination is set to _:

[networks.mainnet.denomination]
decimals = 9
symbol = 'ROSE'

[networks.mainnet.paratimes.sapphire]
consensus_denomination = '_'

Is this expected?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is because the native denomination is represented by an empty string which is not handled correctly during config loading.

There should also be a section under paratime denominations named _ representing the native denomination of the paratime.

@kostko kostko merged commit 5677cc0 into master Mar 8, 2024
4 checks passed
@kostko kostko deleted the kostko/feature/rpcs-and-denoms branch March 8, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants