FIX: Standardise /vaults
Desired
/asgard
https://testnet.thornode.thorchain.info/thorchain/vaults/asgard
- add "addresses" in the return object
{
"block_height": 82868,
"pub_key": "tthorpub1addwnpepq27nhxu3gy72lfhy0dstvtdsp90qjjvq9jczc6hwknhxrz2kgjas7cwvfh0",
"coins": [],
"type": "AsgardVault",
"status": "ActiveVault",
"status_since": 82868,
"membership": [],
"chains": [],
"inbound_tx_count": 7,
"outbound_tx_count": 11,
"pending_tx_block_heights": [],
"routers": [],
"status": "Disabled",
"addresses": []
}
/yggdrasil
- remove the "vault" object, and make structure same as Asgard:
{
"block_height": 82868,
"pub_key": "tthorpub1addwnpepq27nhxu3gy72lfhy0dstvtdsp90qjjvq9jczc6hwknhxrz2kgjas7cwvfh0",
"coins": [],
"type": "YggdrasilVault",
"status": "ActiveVault",
"status_since": 82868,
"membership": [],
"chains": [],
"inbound_tx_count": 7,
"outbound_tx_count": 11,
"pending_tx_block_heights": [],
"routers": [],
"status": "Disabled",
"bond": "2660986008570",
"total_value": "6915916",
"addresses": []
}
/pubkey
Current:
/thorchain/vault/{chain}/{address}
Desired:
/thorchain/vault/{pubkey}
The likely use of this is to find the current active pub keys, then do a search for each pubkey to locate the assets and address. Currently no use to search by address and chain.