Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompetitionSuggestion

Hierarchy

  • CompetitionSuggestion

Implements

Index

Constructors

constructor

Properties

context

context: Arc

id

id: string

Optional staticState

Optional suggestionId

suggestionId: undefined | number

Methods

fetchStaticState

getPosition

  • getPosition(): Promise<null | number>

isWinner

  • isWinner(): Promise<boolean>

redeem

setStaticState

state

vote

votes

Static calculateId

  • calculateId(opts: object): string

Static Private mapItemToObject

Static search

Object literals

Static fragments

fragments: object

CompetitionSuggestionFields

CompetitionSuggestionFields: DocumentNode = gql`fragment CompetitionSuggestionFields on CompetitionSuggestion {idsuggestionIdproposal {id}descriptionHashtitledescriptionurltags {id}# fulltext: [string]beneficiarysuggester# votes: [CompetitionVote!] @derivedFrom(field: "suggestion")totalVotescreatedAtredeemedAtrewardPercentagepositionInWinnerList}`

Generated using TypeDoc