Skip to content

Commit

Permalink
add guess the number public getter variant
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 9, 2024
1 parent 43813a0 commit f199c11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
10 changes: 3 additions & 7 deletions packages/types/src/interfaces/integriteeWorker/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ export default {
types: {
IntegriteePublicGetter: {
_enum: {
total_issuance: 'CommunityIdentifier',
participant_count: 'CommunityIdentifier',
meetup_count: 'CommunityIdentifier',
ceremony_reward: 'CommunityIdentifier',
location_tolerance: 'CommunityIdentifier',
time_tolerance: 'CommunityIdentifier',
scheduler_state: 'CommunityIdentifier'
guess_the_number_last_lucky_number: null,
guess_the_number_last_winning_distance: null,
guess_the_number_info: null,
}
},
IntegriteeTrustedGetter: {
Expand Down
20 changes: 4 additions & 16 deletions packages/types/src/interfaces/integriteeWorker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* eslint-disable */

import type { BalanceType } from '@encointer/types/interfaces/balances';
import type { CommunityIdentifier } from '@encointer/types/interfaces/community';
import type { ParentchainId, ShardIdentifier } from '@encointer/types/interfaces/worker';
import type { Enum, Struct, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
Expand Down Expand Up @@ -41,21 +40,10 @@ export interface IntegriteeGetter extends Enum {

/** @name IntegriteePublicGetter */
export interface IntegriteePublicGetter extends Enum {
readonly isTotalIssuance: boolean;
readonly asTotalIssuance: CommunityIdentifier;
readonly isParticipantCount: boolean;
readonly asParticipantCount: CommunityIdentifier;
readonly isMeetupCount: boolean;
readonly asMeetupCount: CommunityIdentifier;
readonly isCeremonyReward: boolean;
readonly asCeremonyReward: CommunityIdentifier;
readonly isLocationTolerance: boolean;
readonly asLocationTolerance: CommunityIdentifier;
readonly isTimeTolerance: boolean;
readonly asTimeTolerance: CommunityIdentifier;
readonly isSchedulerState: boolean;
readonly asSchedulerState: CommunityIdentifier;
readonly type: 'TotalIssuance' | 'ParticipantCount' | 'MeetupCount' | 'CeremonyReward' | 'LocationTolerance' | 'TimeTolerance' | 'SchedulerState';
readonly isGuessTheNumberLastLuckyNumber: boolean;
readonly isGuessTheNumberLastWinningDistance: boolean;
readonly isGuessTheNumberInfo: boolean;
readonly type: 'GuessTheNumberLastLuckyNumber' | 'GuessTheNumberLastWinningDistance' | 'GuessTheNumberInfo';
}

/** @name IntegriteeTrustedCall */
Expand Down

0 comments on commit f199c11

Please sign in to comment.