mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
4599caca07
* query get price implemented - /pricefeed/price/xrp:usd * query rawprices implemented - /pricefeed/rawprices/xrp:usd * refactored to QueryWithMarketIDParams, added rest logic for QueryOracles * new query get oracles implemented for cli and rest - /pricefeed/oracles/xrp:usd * tx postprice implemented - /pricefeed/postprice/{MsgPostPrice} * updated contrib with post-price examples and added to README * added cliCtx.WithHeight(height) and removed import comment
31 lines
721 B
JSON
31 lines
721 B
JSON
{
|
|
"type": "cosmos-sdk/StdTx",
|
|
"value": {
|
|
"msg": [
|
|
{
|
|
"type": "pricefeed/MsgPostPrice",
|
|
"value": {
|
|
"from": "kava15qdefkmwswysgg4qxgqpqr35k3m49pkx2jdfnw",
|
|
"market_id": "xrp:usd",
|
|
"price": "0.290000000000000000",
|
|
"expiry": "2100-03-29T10:40:00Z"
|
|
}
|
|
}
|
|
],
|
|
"fee": {
|
|
"amount": [],
|
|
"gas": "500000"
|
|
},
|
|
"signatures": [
|
|
{
|
|
"pub_key": {
|
|
"type": "tendermint/PubKeySecp256k1",
|
|
"value": "Az740XKIPCJtnZLmJfktTfhsEStEJE3n2iRVyJ3wko43"
|
|
},
|
|
"signature": "1CMkPnD0UYSpIgPTIGUjroM/16DizLgrR+NSNlsjNs1b5cvD2j3VMfYM0nyBa4IC305RkBOUdthTPc6RPZWDGg=="
|
|
}
|
|
],
|
|
"memo": ""
|
|
}
|
|
}
|