Skip to content

Commit

Permalink
Merge pull request #202 from DecentralCardGame/198-create-new-route-q…
Browse files Browse the repository at this point in the history
…_cards_content

Added q_card_contents
  • Loading branch information
lxgr-linux authored Jan 15, 2024
2 parents c28d34a + 1e19553 commit 757ece3
Show file tree
Hide file tree
Showing 22 changed files with 1,060 additions and 333 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo
if app.LastBlockHeight()%epochBlockTime == 0 {
cardchainmodule.UpdateNerfLevels(ctx, app.CardchainKeeper)
matchesEnabled, _ := app.CardchainKeeper.FeatureFlagModuleInstance.Get(ctx, string(cardchainmoduletypes.FeatureFlagName_Matches))
if matchesEnabled { // Only give voterigths to all users, when matches are not anabled
if matchesEnabled { // Only give voterigths to all users, when matches are not anabled
app.CardchainKeeper.AddVoteRightsToAllUsers(ctx)
}
}
Expand Down
62 changes: 62 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33104,6 +33104,56 @@ paths:
in: path
required: true
type: string
format: uint64
tags:
- Query
/DecentralCardGame/Cardchain/cardchain/q_card_contents/{cardIds}:
get:
summary: Queries a list of QCardContents items.
operationId: DecentralCardGameCardchainCardchainQCardContents
responses:
'200':
description: A successful response.
schema:
type: object
properties:
cards:
type: array
items:
type: object
properties:
content:
type: string
hash:
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: cardIds
in: path
required: true
type: array
items:
type: string
format: uint64
collectionFormat: csv
minItems: 1
tags:
- Query
/DecentralCardGame/Cardchain/cardchain/q_cardchain_info:
Expand Down Expand Up @@ -69318,6 +69368,18 @@ definitions:
type: string
hash:
type: string
DecentralCardGame.cardchain.cardchain.QueryQCardContentsResponse:
type: object
properties:
cards:
type: array
items:
type: object
properties:
content:
type: string
hash:
type: string
DecentralCardGame.cardchain.cardchain.QueryQCardchainInfoResponse:
type: object
properties:
Expand Down
Loading

0 comments on commit 757ece3

Please sign in to comment.