-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
coins.yml
Outdated
handle: loom | ||
name: Loom | ||
decimal: 18 | ||
blockTime: 1000 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
platform/binance/api_test.go
Outdated
@@ -176,7 +177,7 @@ var tokenDst = blockatlas.Token{ | |||
Name: "Aeron", | |||
Symbol: "ARN", | |||
Decimals: 8, | |||
TokenId: "ARN-71B", | |||
TokenID: "ARN-71B", |
There was a problem hiding this comment.
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
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