Skip to content

Commit f299ffe

Browse files
author
nashqueue
committed
ignite cli scaffold map guess
1 parent d8dfe8e commit f299ffe

File tree

25 files changed

+3199
-134
lines changed

25 files changed

+3199
-134
lines changed

docs/static/openapi.yml

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30433,6 +30433,179 @@ paths:
3043330433
additionalProperties: {}
3043430434
tags:
3043530435
- Query
30436+
/YazzyYaz/wordle/wordle/guess:
30437+
get:
30438+
summary: Queries a list of Guess items.
30439+
operationId: YazzyyazWordleWordleGuessAll
30440+
responses:
30441+
'200':
30442+
description: A successful response.
30443+
schema:
30444+
type: object
30445+
properties:
30446+
guess:
30447+
type: array
30448+
items:
30449+
type: object
30450+
properties:
30451+
index:
30452+
type: string
30453+
word:
30454+
type: string
30455+
submitter:
30456+
type: string
30457+
count:
30458+
type: string
30459+
pagination:
30460+
type: object
30461+
properties:
30462+
next_key:
30463+
type: string
30464+
format: byte
30465+
title: |-
30466+
next_key is the key to be passed to PageRequest.key to
30467+
query the next page most efficiently
30468+
total:
30469+
type: string
30470+
format: uint64
30471+
title: >-
30472+
total is total number of results available if
30473+
PageRequest.count_total
30474+
30475+
was set, its value is undefined otherwise
30476+
description: >-
30477+
PageResponse is to be embedded in gRPC response messages where
30478+
the
30479+
30480+
corresponding request message has used PageRequest.
30481+
30482+
message SomeResponse {
30483+
repeated Bar results = 1;
30484+
PageResponse page = 2;
30485+
}
30486+
default:
30487+
description: An unexpected error response.
30488+
schema:
30489+
type: object
30490+
properties:
30491+
code:
30492+
type: integer
30493+
format: int32
30494+
message:
30495+
type: string
30496+
details:
30497+
type: array
30498+
items:
30499+
type: object
30500+
properties:
30501+
'@type':
30502+
type: string
30503+
additionalProperties: {}
30504+
parameters:
30505+
- name: pagination.key
30506+
description: |-
30507+
key is a value returned in PageResponse.next_key to begin
30508+
querying the next page most efficiently. Only one of offset or key
30509+
should be set.
30510+
in: query
30511+
required: false
30512+
type: string
30513+
format: byte
30514+
- name: pagination.offset
30515+
description: >-
30516+
offset is a numeric offset that can be used when key is unavailable.
30517+
30518+
It is less efficient than using key. Only one of offset or key
30519+
should
30520+
30521+
be set.
30522+
in: query
30523+
required: false
30524+
type: string
30525+
format: uint64
30526+
- name: pagination.limit
30527+
description: >-
30528+
limit is the total number of results to be returned in the result
30529+
page.
30530+
30531+
If left empty it will default to a value to be set by each app.
30532+
in: query
30533+
required: false
30534+
type: string
30535+
format: uint64
30536+
- name: pagination.count_total
30537+
description: >-
30538+
count_total is set to true to indicate that the result set should
30539+
include
30540+
30541+
a count of the total number of items available for pagination in
30542+
UIs.
30543+
30544+
count_total is only respected when offset is used. It is ignored
30545+
when key
30546+
30547+
is set.
30548+
in: query
30549+
required: false
30550+
type: boolean
30551+
- name: pagination.reverse
30552+
description: >-
30553+
reverse is set to true if results are to be returned in the
30554+
descending order.
30555+
30556+
30557+
Since: cosmos-sdk 0.43
30558+
in: query
30559+
required: false
30560+
type: boolean
30561+
tags:
30562+
- Query
30563+
'/YazzyYaz/wordle/wordle/guess/{index}':
30564+
get:
30565+
summary: Queries a Guess by index.
30566+
operationId: YazzyyazWordleWordleGuess
30567+
responses:
30568+
'200':
30569+
description: A successful response.
30570+
schema:
30571+
type: object
30572+
properties:
30573+
guess:
30574+
type: object
30575+
properties:
30576+
index:
30577+
type: string
30578+
word:
30579+
type: string
30580+
submitter:
30581+
type: string
30582+
count:
30583+
type: string
30584+
default:
30585+
description: An unexpected error response.
30586+
schema:
30587+
type: object
30588+
properties:
30589+
code:
30590+
type: integer
30591+
format: int32
30592+
message:
30593+
type: string
30594+
details:
30595+
type: array
30596+
items:
30597+
type: object
30598+
properties:
30599+
'@type':
30600+
type: string
30601+
additionalProperties: {}
30602+
parameters:
30603+
- name: index
30604+
in: path
30605+
required: true
30606+
type: string
30607+
tags:
30608+
- Query
3043630609
/YazzyYaz/wordle/wordle/params:
3043730610
get:
3043830611
summary: Parameters queries the parameters of the module.
@@ -52096,13 +52269,65 @@ definitions:
5209652269
title: >-
5209752270
SignatureCounts contains information about signature reporting for a
5209852271
number of blocks
52272+
yazzyyaz.wordle.wordle.Guess:
52273+
type: object
52274+
properties:
52275+
index:
52276+
type: string
52277+
word:
52278+
type: string
52279+
submitter:
52280+
type: string
52281+
count:
52282+
type: string
5209952283
yazzyyaz.wordle.wordle.MsgSubmitGuessResponse:
5210052284
type: object
5210152285
yazzyyaz.wordle.wordle.MsgSubmitWordleResponse:
5210252286
type: object
5210352287
yazzyyaz.wordle.wordle.Params:
5210452288
type: object
5210552289
description: Params defines the parameters for the module.
52290+
yazzyyaz.wordle.wordle.QueryAllGuessResponse:
52291+
type: object
52292+
properties:
52293+
guess:
52294+
type: array
52295+
items:
52296+
type: object
52297+
properties:
52298+
index:
52299+
type: string
52300+
word:
52301+
type: string
52302+
submitter:
52303+
type: string
52304+
count:
52305+
type: string
52306+
pagination:
52307+
type: object
52308+
properties:
52309+
next_key:
52310+
type: string
52311+
format: byte
52312+
title: |-
52313+
next_key is the key to be passed to PageRequest.key to
52314+
query the next page most efficiently
52315+
total:
52316+
type: string
52317+
format: uint64
52318+
title: >-
52319+
total is total number of results available if
52320+
PageRequest.count_total
52321+
52322+
was set, its value is undefined otherwise
52323+
description: |-
52324+
PageResponse is to be embedded in gRPC response messages where the
52325+
corresponding request message has used PageRequest.
52326+
52327+
message SomeResponse {
52328+
repeated Bar results = 1;
52329+
PageResponse page = 2;
52330+
}
5210652331
yazzyyaz.wordle.wordle.QueryAllWordleResponse:
5210752332
type: object
5210852333
properties:
@@ -52142,6 +52367,20 @@ definitions:
5214252367
repeated Bar results = 1;
5214352368
PageResponse page = 2;
5214452369
}
52370+
yazzyyaz.wordle.wordle.QueryGetGuessResponse:
52371+
type: object
52372+
properties:
52373+
guess:
52374+
type: object
52375+
properties:
52376+
index:
52377+
type: string
52378+
word:
52379+
type: string
52380+
submitter:
52381+
type: string
52382+
count:
52383+
type: string
5214552384
yazzyyaz.wordle.wordle.QueryGetWordleResponse:
5214652385
type: object
5214752386
properties:

proto/wordle/genesis.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package yazzyyaz.wordle.wordle;
44
import "gogoproto/gogo.proto";
55
import "wordle/params.proto";
66
import "wordle/wordle.proto";
7+
import "wordle/guess.proto";
78
// this line is used by starport scaffolding # genesis/proto/import
89

910
option go_package = "github.com/YazzyYaz/wordle/x/wordle/types";
@@ -12,5 +13,6 @@ option go_package = "github.com/YazzyYaz/wordle/x/wordle/types";
1213
message GenesisState {
1314
Params params = 1 [(gogoproto.nullable) = false];
1415
repeated Wordle wordleList = 2 [(gogoproto.nullable) = false];
16+
repeated Guess guessList = 3 [(gogoproto.nullable) = false];
1517
// this line is used by starport scaffolding # genesis/proto/state
1618
}

proto/wordle/guess.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
syntax = "proto3";
2+
package yazzyyaz.wordle.wordle;
3+
4+
option go_package = "github.com/YazzyYaz/wordle/x/wordle/types";
5+
6+
message Guess {
7+
string index = 1;
8+
string word = 2;
9+
string submitter = 3;
10+
string count = 4;
11+
12+
}
13+

proto/wordle/query.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "google/api/annotations.proto";
66
import "cosmos/base/query/v1beta1/pagination.proto";
77
import "wordle/params.proto";
88
import "wordle/wordle.proto";
9+
import "wordle/guess.proto";
910
// this line is used by starport scaffolding # 1
1011

1112
option go_package = "github.com/YazzyYaz/wordle/x/wordle/types";
@@ -26,6 +27,16 @@ service Query {
2627
option (google.api.http).get = "/YazzyYaz/wordle/wordle/wordle";
2728
}
2829

30+
// Queries a Guess by index.
31+
rpc Guess(QueryGetGuessRequest) returns (QueryGetGuessResponse) {
32+
option (google.api.http).get = "/YazzyYaz/wordle/wordle/guess/{index}";
33+
}
34+
35+
// Queries a list of Guess items.
36+
rpc GuessAll(QueryAllGuessRequest) returns (QueryAllGuessResponse) {
37+
option (google.api.http).get = "/YazzyYaz/wordle/wordle/guess";
38+
}
39+
2940
// this line is used by starport scaffolding # 2
3041
}
3142

@@ -56,4 +67,22 @@ message QueryAllWordleResponse {
5667
cosmos.base.query.v1beta1.PageResponse pagination = 2;
5768
}
5869

70+
message QueryGetGuessRequest {
71+
string index = 1;
72+
73+
}
74+
75+
message QueryGetGuessResponse {
76+
Guess guess = 1 [(gogoproto.nullable) = false];
77+
}
78+
79+
message QueryAllGuessRequest {
80+
cosmos.base.query.v1beta1.PageRequest pagination = 1;
81+
}
82+
83+
message QueryAllGuessResponse {
84+
repeated Guess guess = 1 [(gogoproto.nullable) = false];
85+
cosmos.base.query.v1beta1.PageResponse pagination = 2;
86+
}
87+
5988
// this line is used by starport scaffolding # 3

0 commit comments

Comments
 (0)