trustwallet / blockatlas

Clean and lightweight cross-chain transaction API
MIT License
368 stars 229 forks source link

Staking result remove extra details about a coin #457

Closed vikmeup closed 4 years ago

vikmeup commented 4 years ago
"coin": {
                "coin": 118,
                "symbol": "ATOM",
                "name": "Cosmos ATOM",
                "decimals": 6
        }`

to

"coin": 118
vikmeup commented 4 years ago
"delegator": {
                        "id": "cosmosvaloper1fhr7e04ct0zslmkzqt9smakg3sxrdve6ulclj2",
                        "status": true,
                        "info": {
                            "name": "POS Bakerz",
                            "description": "POS Bakerz is a staking company operating secure and efficient nodes for different Proof-of-Stake cryptocurrencies such as Cosmos Network, Tezos, IRISnet, Terra Money and others.",
                            "image": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/cosmos/validators/assets/cosmosvaloper1fhr7e04ct0zslmkzqt9smakg3sxrdve6ulclj2/logo.png",
                            "website": "https://posbakerz.com/"
                        },
                        "details": {
                            "reward": {
                                "annual": 10.04212310250548
                            },
                            "locktime": 1814400,
                            "minimum_amount": "0"
                        }
                    },

to

"delegator": {
                        "id": "cosmosvaloper1fhr7e04ct0zslmkzqt9smakg3sxrdve6ulclj2",
                        "status": true,
                        "name": "POS Bakerz",
                       "description": "POS Bakerz is a staking company operating secure and efficient nodes for different Proof-of-Stake cryptocurrencies such as Cosmos Network, Tezos, IRISnet, Terra Money and others.",
                        "image": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/cosmos/validators/assets/cosmosvaloper1fhr7e04ct0zslmkzqt9smakg3sxrdve6ulclj2/logo.png",
                        "website": "https://posbakerz.com/"
                        "details": {
                            "reward": {
                                "annual": 10.04212310250548
                            },
                            "locktime": 1814400,
                            "minimum_amount": "0"
                        }
                    },
vikmeup commented 4 years ago

Add

{
    value: "123",
    pending_value: "123"
    balance: "123"
}
vikmeup commented 4 years ago

Add

enum Type {
    case auto
    case delegate
    case gas
    case lend
}
{
    type: Type
}
vikmeup commented 4 years ago

Most of it already implemented.