Skip to content

Commit

Permalink
Sync weave 0.21.x with master
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed Apr 2, 2020
1 parent 0a52f24 commit 5f253cc
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 2,468 deletions.
232 changes: 1 addition & 231 deletions cmd/bnsapi/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
// 2020-04-02 11:02:25.4904652 +0000 UTC m=+10.383077301
// 2020-04-02 17:31:00.9840609 +0000 UTC m=+6.965954201

package docs

Expand All @@ -26,83 +26,6 @@ var doc = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/account/accounts": {
"get": {
"description": "The list is either the list of all the starname (orkun*neuma) for a given premium starname (*neuma), or the list of all starnames for a given owner address.\nYou need to provide exactly one argument, either the premium starname (*neuma) or the owner address.\n",
"tags": [
"Starname"
],
"summary": "Returns a list of ` + "`" + `bnsd/x/account` + "`" + ` entities (like orkun*neuma).",
"parameters": [
{
"type": "string",
"description": "Premium Starname ex: *neuma",
"name": "starname",
"in": "query"
},
{
"type": "string",
"description": "The owner address format is either in iov address (iov1c9eprq0gxdmwl9u25j568zj7ylqgc7ajyu8wxr) or hex (C1721181E83376EF978AA4A9A38A5E27C08C7BB2)",
"name": "owner",
"in": "query"
},
{
"type": "string",
"description": "Query by domain",
"name": "domain",
"in": "query"
},
{
"type": "integer",
"description": "Pagination offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handlers.MultipleObjectsResponse"
}
},
"404": {},
"500": {}
}
}
},
"/account/domains/": {
"get": {
"description": "The list of all premium starnames for a given admin.\nIf no admin address is provided, you get the list of all premium starnames.",
"tags": [
"Starname"
],
"summary": "Returns a list of ` + "`" + `bnsd/x/domain` + "`" + ` entities (like *neuma).",
"parameters": [
{
"type": "string",
"description": "The admin address may be in the bech32 (iov1c9eprq0gxdmwl9u25j568zj7ylqgc7ajyu8wxr) or hex (C1721181E83376EF978AA4A9A38A5E27C08C7BB2) format.",
"name": "admin",
"in": "query"
},
{
"type": "integer",
"description": "Pagination offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handlers.MultipleObjectsResponse"
}
},
"404": {}
}
}
},
"/account/nonce/address/{address}": {
"get": {
"description": "Returns nonce and public key registered for a given address if it was ever used.",
Expand Down Expand Up @@ -149,34 +72,6 @@ var doc = `{
}
}
},
"/account/resolve/{starname}": {
"get": {
"description": "Resolve a given starname (like orkun*neuma) and return all metadata related to this starname,\nlist of crypto-addresses (targets), expiration date and owner address of the starname.",
"tags": [
"Starname"
],
"summary": "Resolve a starname (orkun*neuma) and returns a ` + "`" + `bnsd/x/account` + "`" + ` entity (the associated info).",
"parameters": [
{
"type": "string",
"description": "starname ex: orkun*neuma",
"name": "starname",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/account.Account"
}
},
"404": {},
"500": {}
}
}
},
"/blocks/{blockHeight}": {
"get": {
"description": "get block detail by blockHeight",
Expand Down Expand Up @@ -463,78 +358,6 @@ var doc = `{
}
}
},
"/termdeposit/contracts": {
"get": {
"description": "The term deposit Contract are the contract defining the dates until which one can deposit.",
"tags": [
"IOV token"
],
"summary": "Returns a list of bnsd/x/termdeposit entities.",
"parameters": [
{
"type": "integer",
"description": "Pagination offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handlers.MultipleObjectsResponse"
}
},
"404": {},
"500": {}
}
}
},
"/termdeposit/deposits": {
"get": {
"description": "At most one of the query parameters must exist (excluding offset).\nThe query may be filtered by Depositor, in which case it returns all the deposits from the Depositor.\nThe query may be filtered by Deposit Contract, in which case it returns all the deposits from this Contract.\nThe query may be filtered by Contract ID, in which case it returns the deposits from the Deposit Contract with this ID.",
"tags": [
"IOV token"
],
"summary": "Returns a list of bnsd/x/termdeposit Deposit entities (individual deposits).",
"parameters": [
{
"type": "string",
"description": "Depositor address in bech32 (iov1c9eprq0gxdmwl9u25j568zj7ylqgc7ajyu8wxr) or hex(C1721181E83376EF978AA4A9A38A5E27C08C7BB2)",
"name": "depositor",
"in": "query"
},
{
"type": "string",
"description": "Base64 encoded ID",
"name": "contract",
"in": "query"
},
{
"type": "integer",
"description": "Integer encoded Contract ID",
"name": "contract_id",
"in": "query"
},
{
"type": "integer",
"description": "Pagination offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handlers.MultipleObjectsResponse"
}
},
"404": {},
"500": {}
}
}
},
"/tx/submit": {
"post": {
"description": "Submit transaction to the blockchain",
Expand Down Expand Up @@ -616,59 +439,6 @@ var doc = `{
}
},
"definitions": {
"account.Account": {
"type": "object",
"properties": {
"certificates": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"domain": {
"description": "Domain references a domain that this account belongs to.",
"type": "string"
},
"metadata": {
"type": "object",
"$ref": "#/definitions/weave.Metadata"
},
"name": {
"type": "string"
},
"owner": {
"description": "Owner is a weave.Address that controls this account. Can be empty.\n\nAn account can be administrated by the domain admin. In addition,\nownership can be assigned to an address to allow another party to manage\nselected account.",
"type": "object",
"$ref": "#/definitions/weave.Address"
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/account.BlockchainAddress"
}
},
"valid_until": {
"description": "Valid until defines the expiration date for the account. Expired account\ncannot be used or modified. This date is always considered in context of\nthe domain that this account belongs. Expired domain expires all belonging\naccounts as well, event if that account valid until date is not yet due.",
"type": "integer"
}
}
},
"account.BlockchainAddress": {
"type": "object",
"properties": {
"address": {
"description": "An address on the specified blockchain network. Address is not a\nweave.Address as we cannot know what is the format of an address on the\nchain that this token instance links to. Because we do not know the rules\nto validate an address for any blockchain ID, this is an arbitrary bulk of\ndata.\nIt is more convenient to always use encoded representation of each address\nand store it as a string. Using bytes while compact is not as comfortable\nto use.",
"type": "string"
},
"blockchain_id": {
"description": "An arbitrary blockchain ID.",
"type": "string"
}
}
},
"coin.Coin": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 5f253cc

Please sign in to comment.