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

Add blockatlas GetValidators RPC endpoints #1

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

atchapcyp
Copy link

@atchapcyp atchapcyp commented Sep 5, 2019

To provide staking data to trustwallet/blockatlas.
This PR is step 3 in implementation.

We need to provide these RPC method in loomchain

  • GetValidators to get validators information.
  • GetRate to get Annual percentage rate.
    //Staking Loom has fix annual interests rate.
    ...

ref: https://developer.trustwallet.com/staking#step-3-define-rpc-endpoints-for-blockatlas
ref 2: loomnetwork/loomchain#1461

@atchapcyp atchapcyp changed the title [WIP] Add blockatlas client RPC endpoints Add blockatlas GetValidators RPC endpoints Sep 11, 2019
coins.yml Outdated
handle: loom
name: Loom
decimal: 18
blockTime: 1000

Choose a reason for hiding this comment

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

blocktime = 1500

go.mod Outdated
@@ -9,16 +9,16 @@ require (
github.com/go-redis/redis v6.15.2+incompatible
github.com/mitchellh/mapstructure v1.1.2
github.com/mr-tron/base58 v1.1.2
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect

Choose a reason for hiding this comment

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

Why are these removed? If it is not necessary, I think we should not change their go.mod.

go.sum Outdated
github.com/onsi/ginkgo v1.10.1 h1:q/mM8GF/n0shIN8SaAZ0V+jnLPzen6WIVZdiwrRlMlo=
github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=

Choose a reason for hiding this comment

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

ditto

@@ -176,7 +177,7 @@ var tokenDst = blockatlas.Token{
Name: "Aeron",
Symbol: "ARN",
Decimals: 8,
TokenId: "ARN-71B",
TokenID: "ARN-71B",

Choose a reason for hiding this comment

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

Revert this back to TokenId

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