Skip to content

Commit

Permalink
feat: pledge_debt, refactor node module funcs (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
SterlynLee authored and mattstweb committed Jun 9, 2023
1 parent fad56a6 commit 2b79b6d
Show file tree
Hide file tree
Showing 30 changed files with 2,919 additions and 455 deletions.
293 changes: 293 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46696,8 +46696,10 @@ paths:
role:
type: integer
format: int64
title: 0 - normal sp; 1 - super sp
validator:
type: string
title: validator this address delegates to
pagination:
type: object
properties:
Expand Down Expand Up @@ -46854,8 +46856,10 @@ paths:
role:
type: integer
format: int64
title: 0 - normal sp; 1 - super sp
validator:
type: string
title: validator this address delegates to
default:
description: An unexpected error response.
schema:
Expand Down Expand Up @@ -47212,6 +47216,198 @@ paths:
type: string
tags:
- Query
/SaoNetwork/sao/node/pledge_debt:
get:
summary: Queries a list of PledgeDebt items.
operationId: SaonetworkSaoNodePledgeDebtAll
responses:
'200':
description: A successful response.
schema:
type: object
properties:
pledgeDebt:
type: array
items:
type: object
properties:
sp:
type: string
debt:
type: object
properties:
denom:
type: string
amount:
type: string
description: >-
Coin defines a token with a denomination and an amount.


NOTE: The amount field is an Int which implements the
custom method

signatures required by gogoproto.
pagination:
type: object
properties:
next_key:
type: string
format: byte
description: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
total:
type: string
format: uint64
title: >-
total is total number of results available if
PageRequest.count_total

was set, its value is undefined otherwise
description: >-
PageResponse is to be embedded in gRPC response messages where
the

corresponding request message has used PageRequest.

message SomeResponse {
repeated Bar results = 1;
PageResponse page = 2;
}
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
parameters:
- name: pagination.key
description: |-
key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
in: query
required: false
type: string
format: byte
- name: pagination.offset
description: >-
offset is a numeric offset that can be used when key is unavailable.

It is less efficient than using key. Only one of offset or key
should

be set.
in: query
required: false
type: string
format: uint64
- name: pagination.limit
description: >-
limit is the total number of results to be returned in the result
page.

If left empty it will default to a value to be set by each app.
in: query
required: false
type: string
format: uint64
- name: pagination.count_total
description: >-
count_total is set to true to indicate that the result set should
include

a count of the total number of items available for pagination in
UIs.

count_total is only respected when offset is used. It is ignored
when key

is set.
in: query
required: false
type: boolean
- name: pagination.reverse
description: >-
reverse is set to true if results are to be returned in the
descending order.


Since: cosmos-sdk 0.43
in: query
required: false
type: boolean
tags:
- Query
/SaoNetwork/sao/node/pledge_debt/{sp}:
get:
summary: Queries a PledgeDebt by index.
operationId: SaonetworkSaoNodePledgeDebt
responses:
'200':
description: A successful response.
schema:
type: object
properties:
pledgeDebt:
type: object
properties:
sp:
type: string
debt:
type: object
properties:
denom:
type: string
amount:
type: string
description: >-
Coin defines a token with a denomination and an amount.


NOTE: The amount field is an Int which implements the
custom method

signatures required by gogoproto.
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
parameters:
- name: sp
in: path
required: true
type: string
tags:
- Query
/SaoNetwork/sao/node/pool:
get:
summary: Queries a Pool by index.
Expand Down Expand Up @@ -79043,8 +79239,10 @@ definitions:
role:
type: integer
format: int64
title: 0 - normal sp; 1 - super sp
validator:
type: string
title: validator this address delegates to
saonetwork.sao.node.Params:
type: object
properties:
Expand Down Expand Up @@ -79119,6 +79317,23 @@ definitions:
total_storage:
type: string
format: int64
saonetwork.sao.node.PledgeDebt:
type: object
properties:
sp:
type: string
debt:
type: object
properties:
denom:
type: string
amount:
type: string
description: |-
Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method
signatures required by gogoproto.
saonetwork.sao.node.Pool:
type: object
properties:
Expand Down Expand Up @@ -79241,8 +79456,61 @@ definitions:
role:
type: integer
format: int64
title: 0 - normal sp; 1 - super sp
validator:
type: string
title: validator this address delegates to
pagination:
type: object
properties:
next_key:
type: string
format: byte
description: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
total:
type: string
format: uint64
title: >-
total is total number of results available if
PageRequest.count_total

was set, its value is undefined otherwise
description: |-
PageResponse is to be embedded in gRPC response messages where the
corresponding request message has used PageRequest.

message SomeResponse {
repeated Bar results = 1;
PageResponse page = 2;
}
saonetwork.sao.node.QueryAllPledgeDebtResponse:
type: object
properties:
pledgeDebt:
type: array
items:
type: object
properties:
sp:
type: string
debt:
type: object
properties:
denom:
type: string
amount:
type: string
description: >-
Coin defines a token with a denomination and an amount.


NOTE: The amount field is an Int which implements the custom
method

signatures required by gogoproto.
pagination:
type: object
properties:
Expand Down Expand Up @@ -79394,8 +79662,33 @@ definitions:
role:
type: integer
format: int64
title: 0 - normal sp; 1 - super sp
validator:
type: string
title: validator this address delegates to
saonetwork.sao.node.QueryGetPledgeDebtResponse:
type: object
properties:
pledgeDebt:
type: object
properties:
sp:
type: string
debt:
type: object
properties:
denom:
type: string
amount:
type: string
description: >-
Coin defines a token with a denomination and an amount.


NOTE: The amount field is an Int which implements the custom
method

signatures required by gogoproto.
saonetwork.sao.node.QueryGetPledgeResponse:
type: object
properties:
Expand Down
Loading

0 comments on commit 2b79b6d

Please sign in to comment.