Skip to content

Commit d629b9e

Browse files
Add rankingBased field to proposal info ipfs metadata
1 parent 0fcc12c commit d629b9e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ docs/web_deploy/*
88
vendor/
99
public/
1010
internal/checker/usdc_abi/*
11-
internal/checker/usdc_abi
11+
internal/checker/usdc_abi
12+
docker-compose.yaml

docs/spec/components/schemas/ProposalInfo/ProposalInfoAttributesMetadata.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ properties:
1818
$ref: '#/components/schemas/Options'
1919
imageCid:
2020
type: string
21-
description: Proposal image CID
21+
description: Proposal image CID
22+
rankingBased:
23+
type: boolean
24+
description: Indicates if the proposal is ranking based

resources/model_proposal_info_attributes_metadata.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ type ProposalInfoAttributesMetadata struct {
1111
Description string `json:"description"`
1212
// Proposal image CID
1313
ImageCid string `json:"imageCid"`
14+
// Indicates if the proposal is ranking based
15+
RankingBased *bool `json:"rankingBased,omitempty"`
1416
// Title of the proposal
1517
Title string `json:"title"`
1618
}

0 commit comments

Comments
 (0)