From 3b8b9ef9bcc5561ff2996e76d0e2920228950678 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Sat, 1 Feb 2020 10:49:12 -0500 Subject: [PATCH] fix: correct tx broadcasting post format (#356) --- swagger-ui/swagger.yaml | 60 ++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/swagger-ui/swagger.yaml b/swagger-ui/swagger.yaml index 02fad03a..e3b526d1 100644 --- a/swagger-ui/swagger.yaml +++ b/swagger-ui/swagger.yaml @@ -112,7 +112,7 @@ summary: Syncing state of node tags: - Tendermint RPC - description: Get if the node is currently syning with other nodes + description: Get the syncing status of the node produces: - application/json responses: @@ -298,7 +298,7 @@ $ref: "#/definitions/StdTx" mode: type: string - example: block + example: sync responses: 200: description: Tx broadcasting result @@ -1991,7 +1991,19 @@ value: type: string Msg: - type: string + type: object + required: + - from + properties: + type: + type: string + example: "cosmos-sdk/MsgSend" + value: + type: object + properties: + from: + type: string + example: kava1mzqz3jfs9nzfp6v7qp647rv0afxlu2csl0txmq Address: type: string description: bech32 encoded address @@ -2005,13 +2017,28 @@ properties: denom: type: string - example: stake + example: ukava amount: type: string example: "50" Hash: type: string example: EE5F3404034C524501629B56E0DDC38FAD651F04 + Signature: + type: object + properties: + signature: + type: string + example: "W1HfKcc4F0rCSoxheZ7fsrB5nGK58U4gKysuzsmUwhloVnCxmbCx289uVMMvQN6tOcQsz7hMVTJrXSA1xzevvw==" + pubkey: + type: object + properties: + type: + type: string + example: "tendermint/PubKeySecp256k1" + value: + type: string + example: "Agey31h/NYpcy0sYm4liHMrXJMzbQUrgV4uHd/w09CXN" TxQuery: type: object properties: @@ -2078,27 +2105,10 @@ $ref: "#/definitions/Coin" memo: type: string - signature: - type: object - properties: - signature: - type: string - example: MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY= - pub_key: - type: object - properties: - type: - type: string - example: "tendermint/PubKeySecp256k1" - value: - type: string - example: "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" - account_number: - type: string - example: "0" - sequence: - type: string - example: "0" + signatures: + type: array + items: + $ref: "#/definitions/Signature" BlockID: type: object properties: