Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger Auto Gen - Mint #5185

Merged
merged 4 commits into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 149 additions & 16 deletions client/rest/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-10-11 19:45:43.865918 -0400 EDT m=+0.502680464
// 2019-10-12 10:23:02.549664 +0200 CEST m=+0.305256842

package docs

Expand Down Expand Up @@ -718,6 +718,72 @@ var doc = `{
}
}
},
"/minting/inflation": {
"get": {
"produces": [
"application/json"
],
"tags": [
"mint"
],
"summary": "Current minting annual provisions value",
"parameters": [
{
"type": "string",
"description": "Block height to execute query (defaults to chain tip)",
"name": "height",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/rest.mintAnnualProvisions"
}
},
"500": {
"description": "Returned on server error",
"schema": {
"$ref": "#/definitions/rest.ErrorResponse"
}
}
}
}
},
"/minting/parameters": {
"get": {
"produces": [
"application/json"
],
"tags": [
"mint"
],
"summary": "Minting module parameters",
"parameters": [
{
"type": "string",
"description": "Block height to execute query (defaults to chain tip)",
"name": "height",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/rest.mintParams"
}
},
"500": {
"description": "Returned on server error",
"schema": {
"$ref": "#/definitions/rest.ErrorResponse"
}
}
}
}
},
"/staking/delegators/{delegatorAddr}/delegations": {
"get": {
"description": "Query all delegations from a single delegator address",
Expand Down Expand Up @@ -2065,6 +2131,40 @@ var doc = `{
}
}
},
"rest.mintAnnualProvisions": {
"type": "object",
"properties": {
"height": {
"type": "integer"
},
"result": {
"type": "string"
}
}
},
"rest.mintInflation": {
"type": "object",
"properties": {
"height": {
"type": "integer"
},
"result": {
"type": "string"
}
}
},
"rest.mintParams": {
"type": "object",
"properties": {
"height": {
"type": "integer"
},
"result": {
"type": "object",
"$ref": "#/definitions/types.Params"
}
}
},
"rest.params": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2611,6 +2711,19 @@ var doc = `{
}
}
},
"types.DepositParams": {
"type": "object",
"properties": {
"max_deposit_period": {
"description": "Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months",
"type": "string"
},
"min_deposit": {
"description": "Minimum deposit for a proposal to enter voting period.",
"type": "string"
}
}
},
"types.Description": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2749,23 +2862,17 @@ var doc = `{
"types.Params": {
"type": "object",
"properties": {
"downtime_jail_duration": {
"type": "string"
},
"max_evidence_age": {
"type": "string"
},
"min_signed_per_window": {
"type": "string"
},
"signed_blocks_window": {
"type": "integer"
"deposit_params": {
"type": "object",
"$ref": "#/definitions/types.DepositParams"
},
"slash_fraction_double_sign": {
"type": "string"
"tally_params": {
"type": "object",
"$ref": "#/definitions/types.TallyParams"
},
"slash_fraction_downtime": {
"type": "string"
"voting_params": {
"type": "object",
"$ref": "#/definitions/types.VotingParams"
}
}
},
Expand Down Expand Up @@ -2989,6 +3096,23 @@ var doc = `{
}
}
},
"types.TallyParams": {
"type": "object",
"properties": {
"quorum": {
"description": "Minimum percentage of total stake needed to vote for a result to be considered valid",
"type": "string"
},
"threshold": {
"description": "Minimum proportion of Yes votes for proposal to pass. Initial value: 0.5",
"type": "string"
},
"veto": {
"description": "Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Initial value: 1/3",
"type": "string"
}
}
},
"types.TallyResult": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3186,6 +3310,15 @@ var doc = `{
}
}
},
"types.VotingParams": {
"type": "object",
"properties": {
"voting_period": {
"description": "Length of the voting period.",
"type": "string"
}
}
},
"utils.Proposer": {
"type": "object",
"properties": {
Expand Down
Loading