Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Council overhaul #97

Draft
wants to merge 18 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
275 changes: 256 additions & 19 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32948,6 +32948,10 @@ paths:
uniqueDropRatio:
type: string
format: uint64
councilVotingTimeLimit:
type: string
format: uint64
title: seconds till the council ends
description: >-
QueryParamsResponse is response type for the Query/Params RPC
method.
Expand Down Expand Up @@ -33005,6 +33009,7 @@ paths:
- bannedSoon
- bannedVerySoon
- none
- inCouncil
default: scheme
votePool:
type: string
Expand Down Expand Up @@ -33289,13 +33294,14 @@ paths:
status:
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
default: councilOpen
default: councilDoesNotExist
trialStart:
type: string
format: uint64
Expand Down Expand Up @@ -33325,6 +33331,131 @@ paths:
format: uint64
tags:
- Query
/DecentralCardGame/Cardchain/cardchain/q_councils/{status}:
get:
summary: Queries a list of QCouncils items.
operationId: DecentralCardGameCardchainCardchainQCouncils
responses:
'200':
description: A successful response.
schema:
type: object
properties:
councilssIds:
type: array
items:
type: string
format: uint64
councils:
type: array
items:
type: object
properties:
cardId:
type: string
format: uint64
voters:
type: array
items:
type: string
hashResponses:
type: array
items:
type: object
properties:
user:
type: string
hash:
type: string
clearResponses:
type: array
items:
type: object
properties:
user:
type: string
response:
type: string
enum:
- 'Yes'
- 'No'
- Suggestion
default: 'Yes'
suggestion:
type: string
treasury:
type: string
status:
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
default: councilDoesNotExist
trialStart:
type: string
format: uint64
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: status
in: path
required: true
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
- name: voters
in: query
required: false
type: array
items:
type: string
collectionFormat: multi
- name: card
in: query
required: false
type: string
format: uint64
- name: creator
in: query
required: false
type: string
- name: ignore.status
in: query
required: false
type: boolean
- name: ignore.card
in: query
required: false
type: boolean
tags:
- Query
/DecentralCardGame/Cardchain/cardchain/q_match/{matchId}:
get:
summary: Queries a list of QMatch items.
Expand Down Expand Up @@ -33994,14 +34125,20 @@ paths:
items:
type: string
format: uint64
CouncilStatus:
type: string
enum:
- available
- unavailable
- openCouncil
- startedCouncil
default: available
councilParticipation:
type: object
properties:
status:
type: string
enum:
- available
- unavailable
- openCouncil
- startedCouncil
default: available
council:
type: string
format: uint64
ReportMatches:
type: boolean
profileCard:
Expand Down Expand Up @@ -68635,13 +68772,14 @@ definitions:
DecentralCardGame.cardchain.cardchain.CouncelingStatus:
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
default: councilOpen
default: councilDoesNotExist
DecentralCardGame.cardchain.cardchain.Council:
type: object
properties:
Expand Down Expand Up @@ -68682,16 +68820,31 @@ definitions:
status:
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
default: councilOpen
default: councilDoesNotExist
trialStart:
type: string
format: uint64
DecentralCardGame.cardchain.cardchain.CouncilParticipation:
type: object
properties:
status:
type: string
enum:
- available
- unavailable
- openCouncil
- startedCouncil
default: available
council:
type: string
format: uint64
DecentralCardGame.cardchain.cardchain.CouncilStatus:
type: string
enum:
Expand All @@ -68700,6 +68853,13 @@ definitions:
- openCouncil
- startedCouncil
default: available
DecentralCardGame.cardchain.cardchain.IgnoreCouncils:
type: object
properties:
status:
type: boolean
card:
type: boolean
DecentralCardGame.cardchain.cardchain.IgnoreMatches:
type: object
properties:
Expand Down Expand Up @@ -68997,6 +69157,7 @@ definitions:
- bannedSoon
- bannedVerySoon
- none
- inCouncil
default: scheme
votePool:
type: string
Expand Down Expand Up @@ -69135,6 +69296,10 @@ definitions:
uniqueDropRatio:
type: string
format: uint64
councilVotingTimeLimit:
type: string
format: uint64
title: seconds till the council ends
description: Params defines the parameters for the module.
DecentralCardGame.cardchain.cardchain.QueryParamsResponse:
type: object
Expand Down Expand Up @@ -69208,6 +69373,10 @@ definitions:
uniqueDropRatio:
type: string
format: uint64
councilVotingTimeLimit:
type: string
format: uint64
title: seconds till the council ends
description: QueryParamsResponse is response type for the Query/Params RPC method.
DecentralCardGame.cardchain.cardchain.QueryQCardContentResponse:
type: object
Expand Down Expand Up @@ -69264,6 +69433,67 @@ definitions:
items:
type: string
format: uint64
DecentralCardGame.cardchain.cardchain.QueryQCouncilsResponse:
type: object
properties:
councilssIds:
type: array
items:
type: string
format: uint64
councils:
type: array
items:
type: object
properties:
cardId:
type: string
format: uint64
voters:
type: array
items:
type: string
hashResponses:
type: array
items:
type: object
properties:
user:
type: string
hash:
type: string
clearResponses:
type: array
items:
type: object
properties:
user:
type: string
response:
type: string
enum:
- 'Yes'
- 'No'
- Suggestion
default: 'Yes'
suggestion:
type: string
treasury:
type: string
status:
type: string
enum:
- councilDoesNotExist
- councilOpen
- councilCreated
- councilClosed
- commited
- revealed
- suggestionsMade
default: councilDoesNotExist
trialStart:
type: string
format: uint64
DecentralCardGame.cardchain.cardchain.QueryQMatchesResponse:
type: object
properties:
Expand Down Expand Up @@ -69541,6 +69771,7 @@ definitions:
- bannedSoon
- bannedVerySoon
- none
- inCouncil
default: scheme
DecentralCardGame.cardchain.cardchain.User:
type: object
Expand All @@ -69562,14 +69793,20 @@ definitions:
items:
type: string
format: uint64
CouncilStatus:
type: string
enum:
- available
- unavailable
- openCouncil
- startedCouncil
default: available
councilParticipation:
type: object
properties:
status:
type: string
enum:
- available
- unavailable
- openCouncil
- startedCouncil
default: available
council:
type: string
format: uint64
ReportMatches:
type: boolean
profileCard:
Expand Down
Loading
Loading