UNPKG

l1-lottery-contracts

Version:

This repo contains smart contracts and related scripts for ZkNoid L1 Lottery proposed [here](https://forums.minaprotocol.com/t/zknoid-l1-lottery/6269)

91 lines (90 loc) 2.81 kB
import { Bool, Field, MerkleMapWitness, PublicKey, SmartContract, State } from 'o1js'; declare const DeployEvent_base: (new (value: { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }) => { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }) & { _isStruct: true; } & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{ round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }, { round: bigint; randomManager: { x: bigint; isOdd: boolean; }; plottery: { x: bigint; isOdd: boolean; }; }>, "fromFields"> & { fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }; } & { fromValue: (value: { round: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey | { x: Field | bigint; isOdd: Bool | boolean; }; plottery: PublicKey | { x: Field | bigint; isOdd: Bool | boolean; }; }) => { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }; toInput: (x: { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }) => { fields?: Field[] | undefined; packed?: [Field, number][] | undefined; }; toJSON: (x: { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }) => { round: string; randomManager: string; plottery: string; }; fromJSON: (x: { round: string; randomManager: string; plottery: string; }) => { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }; empty: () => { round: import("o1js/dist/node/lib/provable/field").Field; randomManager: PublicKey; plottery: PublicKey; }; }; export declare class DeployEvent extends DeployEvent_base { } export declare class MockedPlotteryFactory extends SmartContract { events: { 'deploy-plottery': typeof DeployEvent; }; roundsRoot: State<import("o1js/dist/node/lib/provable/field").Field>; init(): void; deployRound(witness: MerkleMapWitness, randomManager: PublicKey, plottery: PublicKey): Promise<void>; } export {};