Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 9a956bb

Browse files
committed
scaffold event message
1 parent 686436f commit 9a956bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7433
-64
lines changed

docs/static/openapi.yml

+305
Original file line numberDiff line numberDiff line change
@@ -28270,6 +28270,202 @@ paths:
2827028270
additionalProperties: {}
2827128271
tags:
2827228272
- Query
28273+
/web-tree/story/story/event:
28274+
get:
28275+
summary: Queries a list of Event items.
28276+
operationId: WebtreeStoryStoryEventAll
28277+
responses:
28278+
'200':
28279+
description: A successful response.
28280+
schema:
28281+
type: object
28282+
properties:
28283+
Event:
28284+
type: array
28285+
items:
28286+
type: object
28287+
properties:
28288+
id:
28289+
type: string
28290+
format: uint64
28291+
giverId:
28292+
type: string
28293+
takerId:
28294+
type: string
28295+
giverSign:
28296+
type: string
28297+
takerSign:
28298+
type: string
28299+
unionId:
28300+
type: string
28301+
typeId:
28302+
type: string
28303+
body:
28304+
type: string
28305+
creator:
28306+
type: string
28307+
pagination:
28308+
type: object
28309+
properties:
28310+
next_key:
28311+
type: string
28312+
format: byte
28313+
title: |-
28314+
next_key is the key to be passed to PageRequest.key to
28315+
query the next page most efficiently
28316+
total:
28317+
type: string
28318+
format: uint64
28319+
title: >-
28320+
total is total number of results available if
28321+
PageRequest.count_total
28322+
28323+
was set, its value is undefined otherwise
28324+
description: >-
28325+
PageResponse is to be embedded in gRPC response messages where
28326+
the
28327+
28328+
corresponding request message has used PageRequest.
28329+
28330+
message SomeResponse {
28331+
repeated Bar results = 1;
28332+
PageResponse page = 2;
28333+
}
28334+
default:
28335+
description: An unexpected error response.
28336+
schema:
28337+
type: object
28338+
properties:
28339+
code:
28340+
type: integer
28341+
format: int32
28342+
message:
28343+
type: string
28344+
details:
28345+
type: array
28346+
items:
28347+
type: object
28348+
properties:
28349+
'@type':
28350+
type: string
28351+
additionalProperties: {}
28352+
parameters:
28353+
- name: pagination.key
28354+
description: |-
28355+
key is a value returned in PageResponse.next_key to begin
28356+
querying the next page most efficiently. Only one of offset or key
28357+
should be set.
28358+
in: query
28359+
required: false
28360+
type: string
28361+
format: byte
28362+
- name: pagination.offset
28363+
description: >-
28364+
offset is a numeric offset that can be used when key is unavailable.
28365+
28366+
It is less efficient than using key. Only one of offset or key
28367+
should
28368+
28369+
be set.
28370+
in: query
28371+
required: false
28372+
type: string
28373+
format: uint64
28374+
- name: pagination.limit
28375+
description: >-
28376+
limit is the total number of results to be returned in the result
28377+
page.
28378+
28379+
If left empty it will default to a value to be set by each app.
28380+
in: query
28381+
required: false
28382+
type: string
28383+
format: uint64
28384+
- name: pagination.count_total
28385+
description: >-
28386+
count_total is set to true to indicate that the result set should
28387+
include
28388+
28389+
a count of the total number of items available for pagination in
28390+
UIs.
28391+
28392+
count_total is only respected when offset is used. It is ignored
28393+
when key
28394+
28395+
is set.
28396+
in: query
28397+
required: false
28398+
type: boolean
28399+
- name: pagination.reverse
28400+
description: >-
28401+
reverse is set to true if results are to be returned in the
28402+
descending order.
28403+
28404+
28405+
Since: cosmos-sdk 0.43
28406+
in: query
28407+
required: false
28408+
type: boolean
28409+
tags:
28410+
- Query
28411+
'/web-tree/story/story/event/{id}':
28412+
get:
28413+
summary: Queries a Event by id.
28414+
operationId: WebtreeStoryStoryEvent
28415+
responses:
28416+
'200':
28417+
description: A successful response.
28418+
schema:
28419+
type: object
28420+
properties:
28421+
Event:
28422+
type: object
28423+
properties:
28424+
id:
28425+
type: string
28426+
format: uint64
28427+
giverId:
28428+
type: string
28429+
takerId:
28430+
type: string
28431+
giverSign:
28432+
type: string
28433+
takerSign:
28434+
type: string
28435+
unionId:
28436+
type: string
28437+
typeId:
28438+
type: string
28439+
body:
28440+
type: string
28441+
creator:
28442+
type: string
28443+
default:
28444+
description: An unexpected error response.
28445+
schema:
28446+
type: object
28447+
properties:
28448+
code:
28449+
type: integer
28450+
format: int32
28451+
message:
28452+
type: string
28453+
details:
28454+
type: array
28455+
items:
28456+
type: object
28457+
properties:
28458+
'@type':
28459+
type: string
28460+
additionalProperties: {}
28461+
parameters:
28462+
- name: id
28463+
in: path
28464+
required: true
28465+
type: string
28466+
format: uint64
28467+
tags:
28468+
- Query
2827328469
/webtree/story/story/params:
2827428470
get:
2827528471
summary: Parameters queries the parameters of the module.
@@ -48502,9 +48698,118 @@ definitions:
4850248698
title: >-
4850348699
SignatureCounts contains information about signature reporting for a
4850448700
number of blocks
48701+
webtree.story.story.Event:
48702+
type: object
48703+
properties:
48704+
id:
48705+
type: string
48706+
format: uint64
48707+
giverId:
48708+
type: string
48709+
takerId:
48710+
type: string
48711+
giverSign:
48712+
type: string
48713+
takerSign:
48714+
type: string
48715+
unionId:
48716+
type: string
48717+
typeId:
48718+
type: string
48719+
body:
48720+
type: string
48721+
creator:
48722+
type: string
48723+
webtree.story.story.MsgCreateEventResponse:
48724+
type: object
48725+
properties:
48726+
id:
48727+
type: string
48728+
format: uint64
48729+
webtree.story.story.MsgDeleteEventResponse:
48730+
type: object
48731+
webtree.story.story.MsgUpdateEventResponse:
48732+
type: object
4850548733
webtree.story.story.Params:
4850648734
type: object
4850748735
description: Params defines the parameters for the module.
48736+
webtree.story.story.QueryAllEventResponse:
48737+
type: object
48738+
properties:
48739+
Event:
48740+
type: array
48741+
items:
48742+
type: object
48743+
properties:
48744+
id:
48745+
type: string
48746+
format: uint64
48747+
giverId:
48748+
type: string
48749+
takerId:
48750+
type: string
48751+
giverSign:
48752+
type: string
48753+
takerSign:
48754+
type: string
48755+
unionId:
48756+
type: string
48757+
typeId:
48758+
type: string
48759+
body:
48760+
type: string
48761+
creator:
48762+
type: string
48763+
pagination:
48764+
type: object
48765+
properties:
48766+
next_key:
48767+
type: string
48768+
format: byte
48769+
title: |-
48770+
next_key is the key to be passed to PageRequest.key to
48771+
query the next page most efficiently
48772+
total:
48773+
type: string
48774+
format: uint64
48775+
title: >-
48776+
total is total number of results available if
48777+
PageRequest.count_total
48778+
48779+
was set, its value is undefined otherwise
48780+
description: |-
48781+
PageResponse is to be embedded in gRPC response messages where the
48782+
corresponding request message has used PageRequest.
48783+
48784+
message SomeResponse {
48785+
repeated Bar results = 1;
48786+
PageResponse page = 2;
48787+
}
48788+
webtree.story.story.QueryGetEventResponse:
48789+
type: object
48790+
properties:
48791+
Event:
48792+
type: object
48793+
properties:
48794+
id:
48795+
type: string
48796+
format: uint64
48797+
giverId:
48798+
type: string
48799+
takerId:
48800+
type: string
48801+
giverSign:
48802+
type: string
48803+
takerSign:
48804+
type: string
48805+
unionId:
48806+
type: string
48807+
typeId:
48808+
type: string
48809+
body:
48810+
type: string
48811+
creator:
48812+
type: string
4850848813
webtree.story.story.QueryParamsResponse:
4850948814
type: object
4851048815
properties:

proto/story/event.proto

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
syntax = "proto3";
2+
package webtree.story.story;
3+
4+
option go_package = "github.com/web-tree/story/x/story/types";
5+
6+
message Event {
7+
uint64 id = 1;
8+
string giverId = 2;
9+
string takerId = 3;
10+
string giverSign = 4;
11+
string takerSign = 5;
12+
string unionId = 6;
13+
string typeId = 7;
14+
string body = 8;
15+
string creator = 9;
16+
}

proto/story/genesis.proto

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package webtree.story.story;
33

44
import "gogoproto/gogo.proto";
55
import "story/params.proto";
6+
import "story/event.proto";
67
// this line is used by starport scaffolding # genesis/proto/import
78

89
option go_package = "github.com/web-tree/story/x/story/types";
@@ -11,5 +12,7 @@ option go_package = "github.com/web-tree/story/x/story/types";
1112
message GenesisState {
1213
Params params = 1 [(gogoproto.nullable) = false];
1314
string port_id = 2;
15+
repeated Event eventList = 3 [(gogoproto.nullable) = false];
16+
uint64 eventCount = 4;
1417
// this line is used by starport scaffolding # genesis/proto/state
1518
}

0 commit comments

Comments
 (0)