Remove stake API from this PR
This commit is contained in:
@@ -579,351 +579,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Get all delegations (delegation, undelegation) from a delegator",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/validators": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "Bech32 AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Query all validators that a delegator is bonded to",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/validators/{validatorAddr}": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "Bech32 AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "validatorAddr",
|
||||
"description": "Bech32 ValAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Query a validator that a delegator is bonded to",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/txs": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Get all staking txs (i.e msgs) from a delegator",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Tx"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/delegations": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "Bech32 AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"post": {
|
||||
"summary": "Submit delegation",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "body",
|
||||
"name": "delegation",
|
||||
"description": "The password of the account to remove from the KMS",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"account_number": {
|
||||
"type": "number"
|
||||
},
|
||||
"delegations": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"begin_unbondings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"complete_unbondings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"begin_redelegates": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"complete_redelegates": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"chain_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"gas": {
|
||||
"type": "number"
|
||||
},
|
||||
"sequence": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Tx"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/delegations/{validatorAddr}": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "Bech32 AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "validatorAddr",
|
||||
"description": "Bech32 ValAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Query the current delegation status between a delegator and a validator",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/delegators/{delegatorAddr}/unbonding_delegations/{validatorAddr}": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "delegatorAddr",
|
||||
"description": "Bech32 AccAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "validatorAddr",
|
||||
"description": "Bech32 ValAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Query all unbonding delegations between a delegator and a validator",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/validators": {
|
||||
"get": {
|
||||
"summary": "Get all validator candidates",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/stake/validators/{validatorAddr}": {
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "validatorAddr",
|
||||
"description": "Bech32 ValAddress of Delegator",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Query the information from a single validator",
|
||||
"tags": [
|
||||
"stake"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
|
||||
Reference in New Issue
Block a user