///
import BN from "bn.js";
import { ContractOptions } from "web3-eth-contract";
import { EventLog } from "web3-core";
import { EventEmitter } from "events";
import { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
export interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export declare type DuelStart = ContractEventLog<{
duelId: string;
wizardId1: string;
wizardId2: string;
timeoutBlock: string;
isAscensionBattle: boolean;
0: string;
1: string;
2: string;
3: string;
4: boolean;
}>;
export declare type DuelEnd = ContractEventLog<{
duelId: string;
wizardId1: string;
wizardId2: string;
moveSet1: string;
moveSet2: string;
power1: string;
power2: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
}>;
export declare type DuelTimeOut = ContractEventLog<{
duelId: string;
wizardId1: string;
wizardId2: string;
power1: string;
power2: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
export declare type WizardElimination = ContractEventLog<{
wizardId: string;
0: string;
}>;
export declare type AscensionStart = ContractEventLog<{
wizardId: string;
0: string;
}>;
export declare type AscensionPairUp = ContractEventLog<{
wizardId1: string;
wizardId2: string;
0: string;
1: string;
}>;
export declare type AscensionComplete = ContractEventLog<{
wizardId: string;
power: string;
0: string;
1: string;
}>;
export declare type Revive = ContractEventLog<{
wizId: string;
power: string;
0: string;
1: string;
}>;
export declare type PowerGifted = ContractEventLog<{
givingWizId: string;
receivingWizId: string;
amountGifted: string;
0: string;
1: string;
2: string;
}>;
export declare type PrizeClaimed = ContractEventLog<{
claimingWinnerId: string;
prizeAmount: string;
0: string;
1: string;
}>;
export declare type Paused = ContractEventLog<{
pauseEndingBlock: string;
0: string;
}>;
export declare type CEOTransferred = ContractEventLog<{
previousCeo: string;
newCeo: string;
0: string;
1: string;
}>;
export declare type COOTransferred = ContractEventLog<{
previousCoo: string;
newCoo: string;
0: string;
1: string;
}>;
export declare type CFOTransferred = ContractEventLog<{
previousCfo: string;
newCfo: string;
0: string;
1: string;
}>;
export interface CheezeWizardsBasicTournamentAbi extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): CheezeWizardsBasicTournamentAbi;
clone(): CheezeWizardsBasicTournamentAbi;
methods: {
cfoAddress(): NonPayableTransactionObject;
ceoAddress(): NonPayableTransactionObject;
pause(pauseDuration: number | string | BN): NonPayableTransactionObject;
setCfo(newCfo: string): NonPayableTransactionObject;
duelResolver(): NonPayableTransactionObject;
setCeo(newCeo: string): NonPayableTransactionObject;
setCoo(newCoo: string): NonPayableTransactionObject;
powerScale(): NonPayableTransactionObject;
cooAddress(): NonPayableTransactionObject;
isPaused(): NonPayableTransactionObject;
supportsInterface(interfaceId: string | number[]): NonPayableTransactionObject;
isActive(): NonPayableTransactionObject;
getWizard(wizardId: number | string | BN): NonPayableTransactionObject<{
affinity: string;
power: string;
maxPower: string;
nonce: string;
currentDuel: string;
ascending: boolean;
ascensionOpponent: string;
molded: boolean;
ready: boolean;
0: string;
1: string;
2: string;
3: string;
4: string;
5: boolean;
6: string;
7: boolean;
8: boolean;
}>;
wizardFingerprint(wizardId: number | string | BN): NonPayableTransactionObject;
isReady(wizardId: number | string | BN): NonPayableTransactionObject;
enterWizards(wizardIds: (number | string | BN)[], powers: (number | string | BN)[]): PayableTransactionObject;
revive(wizardId: number | string | BN): PayableTransactionObject;
updateAffinity(wizardId: number | string | BN): NonPayableTransactionObject;
startAscension(wizardId: number | string | BN): NonPayableTransactionObject;
challengeAscending(wizardId: number | string | BN, commitment: string | number[]): NonPayableTransactionObject;
acceptAscensionChallenge(commitment: string | number[]): NonPayableTransactionObject;
completeAscension(): NonPayableTransactionObject;
oneSidedCommit(committingWizardId: number | string | BN, otherWizardId: number | string | BN, commitment: string | number[]): NonPayableTransactionObject;
cancelCommitment(wizardId: number | string | BN): NonPayableTransactionObject;
doubleCommit(wizardId1: number | string | BN, wizardId2: number | string | BN, commit1: string | number[], commit2: string | number[], sig1: string | number[], sig2: string | number[]): NonPayableTransactionObject;
oneSidedReveal(committingWizardId: number | string | BN, commit: string | number[], moveSet: string | number[], salt: string | number[], otherWizardId: number | string | BN, otherCommit: string | number[]): NonPayableTransactionObject;
doubleReveal(wizardId1: number | string | BN, wizardId2: number | string | BN, commit1: string | number[], commit2: string | number[], moveSet1: string | number[], moveSet2: string | number[], salt1: string | number[], salt2: string | number[]): NonPayableTransactionObject;
resolveTimedOutDuel(wizardId1: number | string | BN, wizardId2: number | string | BN): NonPayableTransactionObject;
giftPower(sendingWizardId: number | string | BN, receivingWizardId: number | string | BN): NonPayableTransactionObject;
cullMoldedWithSurvivor(wizardIds: (number | string | BN)[], survivor: number | string | BN): NonPayableTransactionObject;
cullMoldedWithMolded(moldyWizardIds: (number | string | BN)[]): NonPayableTransactionObject;
cullTiredWizards(wizardIds: (number | string | BN)[]): NonPayableTransactionObject;
claimTheBigCheeze(claimingWinnerId: number | string | BN): NonPayableTransactionObject;
claimSharedWinnings(claimingWinnerId: number | string | BN, allWinners: (number | string | BN)[]): NonPayableTransactionObject;
destroy(): NonPayableTransactionObject;
};
events: {
DuelStart(cb?: Callback): EventEmitter;
DuelStart(options?: EventOptions, cb?: Callback): EventEmitter;
DuelEnd(cb?: Callback): EventEmitter;
DuelEnd(options?: EventOptions, cb?: Callback): EventEmitter;
DuelTimeOut(cb?: Callback): EventEmitter;
DuelTimeOut(options?: EventOptions, cb?: Callback): EventEmitter;
WizardElimination(cb?: Callback): EventEmitter;
WizardElimination(options?: EventOptions, cb?: Callback): EventEmitter;
AscensionStart(cb?: Callback): EventEmitter;
AscensionStart(options?: EventOptions, cb?: Callback): EventEmitter;
AscensionPairUp(cb?: Callback): EventEmitter;
AscensionPairUp(options?: EventOptions, cb?: Callback): EventEmitter;
AscensionComplete(cb?: Callback): EventEmitter;
AscensionComplete(options?: EventOptions, cb?: Callback): EventEmitter;
Revive(cb?: Callback): EventEmitter;
Revive(options?: EventOptions, cb?: Callback): EventEmitter;
PowerGifted(cb?: Callback): EventEmitter;
PowerGifted(options?: EventOptions, cb?: Callback): EventEmitter;
PrizeClaimed(cb?: Callback): EventEmitter;
PrizeClaimed(options?: EventOptions, cb?: Callback): EventEmitter;
Paused(cb?: Callback): EventEmitter;
Paused(options?: EventOptions, cb?: Callback): EventEmitter;
CEOTransferred(cb?: Callback): EventEmitter;
CEOTransferred(options?: EventOptions, cb?: Callback): EventEmitter;
COOTransferred(cb?: Callback): EventEmitter;
COOTransferred(options?: EventOptions, cb?: Callback): EventEmitter;
CFOTransferred(cb?: Callback): EventEmitter;
CFOTransferred(options?: EventOptions, cb?: Callback): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback): EventEmitter;
};
once(event: "DuelStart", cb: Callback): void;
once(event: "DuelStart", options: EventOptions, cb: Callback): void;
once(event: "DuelEnd", cb: Callback): void;
once(event: "DuelEnd", options: EventOptions, cb: Callback): void;
once(event: "DuelTimeOut", cb: Callback): void;
once(event: "DuelTimeOut", options: EventOptions, cb: Callback): void;
once(event: "WizardElimination", cb: Callback): void;
once(event: "WizardElimination", options: EventOptions, cb: Callback): void;
once(event: "AscensionStart", cb: Callback): void;
once(event: "AscensionStart", options: EventOptions, cb: Callback): void;
once(event: "AscensionPairUp", cb: Callback): void;
once(event: "AscensionPairUp", options: EventOptions, cb: Callback): void;
once(event: "AscensionComplete", cb: Callback): void;
once(event: "AscensionComplete", options: EventOptions, cb: Callback): void;
once(event: "Revive", cb: Callback): void;
once(event: "Revive", options: EventOptions, cb: Callback): void;
once(event: "PowerGifted", cb: Callback): void;
once(event: "PowerGifted", options: EventOptions, cb: Callback): void;
once(event: "PrizeClaimed", cb: Callback): void;
once(event: "PrizeClaimed", options: EventOptions, cb: Callback): void;
once(event: "Paused", cb: Callback): void;
once(event: "Paused", options: EventOptions, cb: Callback): void;
once(event: "CEOTransferred", cb: Callback): void;
once(event: "CEOTransferred", options: EventOptions, cb: Callback): void;
once(event: "COOTransferred", cb: Callback): void;
once(event: "COOTransferred", options: EventOptions, cb: Callback): void;
once(event: "CFOTransferred", cb: Callback): void;
once(event: "CFOTransferred", options: EventOptions, cb: Callback): void;
}