Skip to content

Commit

Permalink
adding the gridnode module
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed Nov 9, 2023
1 parent cdfd3ad commit ccadcc7
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ release/
go.work
go.work.sum
go.work.backup
stress_test.log
stress_test.log

test.log
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ version: 1
accounts:
- name: alice
coins:
- 200000000ugd
- 200000000000000ugd
cointype: 88888888
- name: bob
coins:
- 100000000ugd
- 200000000000000ugd
cointype: 88888888
client:
openapi:
Expand Down
216 changes: 216 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34959,6 +34959,142 @@ paths:
additionalProperties: {}
tags:
- Query
/gridnode/all-delegations:
get:
operationId: CosmossdkgridnodeGridnodeAllDelegations
responses:
'200':
description: A successful response.
schema:
type: object
properties:
delegations:
type: array
items:
type: object
properties:
account:
type: string
delegated_amount:
type: string
format: int64
unbonding_entries:
type: array
items:
type: object
properties:
amount:
type: string
format: int64
completion_time:
type: string
format: int64
title: New field for unbonding entries
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
/gridnode/delegate-tokens:
post:
operationId: CosmossdkgridnodeGridnodeDelegateTokens
Expand Down Expand Up @@ -70956,6 +71092,26 @@ definitions:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
cosmossdkgridnode.gridnode.DelegationInfo:
type: object
properties:
account:
type: string
delegated_amount:
type: string
format: int64
unbonding_entries:
type: array
items:
type: object
properties:
amount:
type: string
format: int64
completion_time:
type: string
format: int64
title: New field for unbonding entries
cosmossdkgridnode.gridnode.MsgGridnodeDelegate:
type: object
properties:
Expand Down Expand Up @@ -71013,6 +71169,57 @@ definitions:
cosmossdkgridnode.gridnode.Params:
type: object
description: Params defines the parameters for the module.
cosmossdkgridnode.gridnode.QueryAllDelegationsResponse:
type: object
properties:
delegations:
type: array
items:
type: object
properties:
account:
type: string
delegated_amount:
type: string
format: int64
unbonding_entries:
type: array
items:
type: object
properties:
amount:
type: string
format: int64
completion_time:
type: string
format: int64
title: New field for unbonding entries
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;
}
cosmossdkgridnode.gridnode.QueryDelegatedAmountResponse:
type: object
properties:
Expand Down Expand Up @@ -71077,6 +71284,15 @@ definitions:
description: >-
QueryUnbondingEntriesResponse is the response type for the
Query/UnbondingEntries RPC method.
cosmossdkgridnode.gridnode.SimpleUnbondingEntry:
type: object
properties:
amount:
type: string
format: int64
completion_time:
type: string
format: int64
cosmossdkgridnode.gridnode.UnbondingEntry:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.72
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.105
github.com/unigrid-project/cosmos-sdk-ugdmint v0.0.63
github.com/unigrid-project/cosmos-sdk-unigrid-hedgehog-vesting v0.0.50
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,8 @@ github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=
github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.72 h1:XvB3ZZaDzcFSPaHoZDQjKkKLp3Uxgx3xIyYTcGpYSBA=
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.72/go.mod h1:Bv5NjdLpJ2qjR8Oi18FfM1jhwzDYvOK2ihrIAv/p+cA=
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.105 h1:qdqfOVyBJWkU7N7K0pNYqTP2js/FDQqVLsl/bwTgspo=
github.com/unigrid-project/cosmos-sdk-gridnode v0.0.105/go.mod h1:Bv5NjdLpJ2qjR8Oi18FfM1jhwzDYvOK2ihrIAv/p+cA=
github.com/unigrid-project/cosmos-sdk-ugdmint v0.0.63 h1:mQXQ3a7+ti+UsyLB4NwL8TUL0k4mOmGSlgbLzmpbwCE=
github.com/unigrid-project/cosmos-sdk-ugdmint v0.0.63/go.mod h1:IQBurErJi44DZiaCMkG6sMXJNR9JRple25CBuurJf9M=
github.com/unigrid-project/cosmos-sdk-unigrid-hedgehog-vesting v0.0.50 h1:Qr8swbJAdZVigyLyL0t0JfCxiIK0yXPvX1P+QsdYrsA=
Expand Down

0 comments on commit ccadcc7

Please sign in to comment.