Skip to content

Commit

Permalink
feat: create irc request (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: Lior Zilpa <[email protected]>
  • Loading branch information
liorzilp and Lior Zilpa authored Apr 17, 2023
1 parent 9fda0cc commit a30fd43
Show file tree
Hide file tree
Showing 70 changed files with 3,433 additions and 728 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/release.yml

This file was deleted.

36 changes: 25 additions & 11 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins: ["20000token", "200000000stake"]
- name: bob
coins: ["10000token", "100000000stake"]
validator:
name: alice
staked: "100000000stake"
client:
openapi:
path: "docs/static/openapi.yml"
- name: alice
coins:
- 20000token
- 200000000stake
- name: bob
coins:
- 10000token
- 100000000stake
faucet:
name: bob
coins: ["5token", "100000stake"]
coins:
- 5token
- 100000stake
host: 0.0.0.0:4500
client:
openapi:
path: docs/static/openapi.yml
validators:
- name: alice
bonded: 100000000stake
224 changes: 224 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18782,6 +18782,173 @@ paths:
format: int64
tags:
- Query
/dymensionxyz/dymension/irc/irc_requests:
get:
operationId: DymensionxyzDymensionIrcIRCRequestAll
responses:
'200':
description: A successful response.
schema:
type: object
properties:
ircRequest:
type: array
items:
type: object
properties:
reqId:
type: string
format: uint64
request:
type: string
pagination:
type: object
properties:
next_key:
type: string
format: byte
title: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently
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
/dymensionxyz/dymension/irc/irc_requests/{reqId}:
get:
summary: Queries a list of IRCRequest items.
operationId: DymensionxyzDymensionIrcIRCRequest
responses:
'200':
description: A successful response.
schema:
type: object
properties:
ircRequest:
type: object
properties:
reqId:
type: string
format: uint64
request:
type: string
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: reqId
in: path
required: true
type: string
format: uint64
tags:
- Query
/dymensionxyz/dymension/irc/params:
get:
summary: Parameters queries the parameters of the module.
Expand Down Expand Up @@ -37745,9 +37912,66 @@ definitions:
description: >-
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount
response type.
dymensionxyz.dymension.irc.IRCRequest:
type: object
properties:
reqId:
type: string
format: uint64
request:
type: string
dymensionxyz.dymension.irc.Params:
type: object
description: Params defines the parameters for the module.
dymensionxyz.dymension.irc.QueryAllIRCRequestResponse:
type: object
properties:
ircRequest:
type: array
items:
type: object
properties:
reqId:
type: string
format: uint64
request:
type: string
pagination:
type: object
properties:
next_key:
type: string
format: byte
title: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently
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;
}
dymensionxyz.dymension.irc.QueryGetIRCRequestResponse:
type: object
properties:
ircRequest:
type: object
properties:
reqId:
type: string
format: uint64
request:
type: string
dymensionxyz.dymension.irc.QueryParamsResponse:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
syntax = "proto3";

package dymensionxyz.dymension.irc;

import "gogoproto/gogo.proto";
import "dymension/irc/params.proto";
import "dymension/irc/irc_requests.proto";

option go_package = "github.com/dymensionxyz/dymension/x/irc/types";

// GenesisState defines the irc module's genesis state.
message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
Params params = 1 [(gogoproto.nullable) = false];
repeated IRCRequest IRCRequestList = 2 [(gogoproto.nullable) = false];
}

Loading

0 comments on commit a30fd43

Please sign in to comment.