Skip to main content

VoteInitializer variable

Signature:

VoteInitializer: {
name: "VoteERC20";
contractType: "vote";
schema: {
deploy: import("zod").ZodObject<import("zod").extendShape<import("zod").extendShape<{
name: import("zod").ZodString;
description: import("zod").ZodOptional<import("zod").ZodString>;
image: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodObject<{
data: import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodString]>;
name: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
data?: any;
name: string;
}, {
data?: any;
name: string;
}>]>, import("zod").ZodString]>>;
external_link: import("zod").ZodOptional<import("zod").ZodString>;
}, {
voting_delay_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_period_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_token_address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
voting_quorum_fraction: import("zod").ZodDefault<import("zod").ZodNumber>;
proposal_token_threshold: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt, import("zod").ZodType<ethers.BigNumber, import("zod").ZodTypeDef, ethers.BigNumber>]>, ethers.BigNumber, string | number | bigint | ethers.BigNumber>, string, string | number | bigint | ethers.BigNumber>>;
}>, {
trusted_forwarders: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">>;
}>, "strip", import("zod").ZodTypeAny, {
description?: string | undefined;
image?: any;
external_link?: string | undefined;
name: string;
trusted_forwarders: string[];
voting_delay_in_blocks: number;
voting_period_in_blocks: number;
voting_token_address: string;
voting_quorum_fraction: number;
proposal_token_threshold: string;
}, {
description?: string | undefined;
image?: any;
external_link?: string | undefined;
trusted_forwarders?: string[] | undefined;
voting_delay_in_blocks?: number | undefined;
voting_period_in_blocks?: number | undefined;
voting_quorum_fraction?: number | undefined;
proposal_token_threshold?: string | number | bigint | ethers.BigNumber | undefined;
name: string;
voting_token_address: string;
}>;
output: import("zod").ZodObject<import("zod").extendShape<import("zod").extendShape<{
name: import("zod").ZodString;
description: import("zod").ZodOptional<import("zod").ZodString>;
image: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodObject<{
data: import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodString]>;
name: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
data?: any;
name: string;
}, {
data?: any;
name: string;
}>]>, import("zod").ZodString]>>;
external_link: import("zod").ZodOptional<import("zod").ZodString>;
}, {
image: import("zod").ZodOptional<import("zod").ZodString>;
}>, import("zod").extendShape<{
voting_delay_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_period_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_token_address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
voting_quorum_fraction: import("zod").ZodDefault<import("zod").ZodNumber>;
proposal_token_threshold: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt, import("zod").ZodType<ethers.BigNumber, import("zod").ZodTypeDef, ethers.BigNumber>]>, ethers.BigNumber, string | number | bigint | ethers.BigNumber>, string, string | number | bigint | ethers.BigNumber>>;
}, {
proposal_token_threshold: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt, import("zod").ZodType<ethers.BigNumber, import("zod").ZodTypeDef, ethers.BigNumber>]>, ethers.BigNumber, string | number | bigint | ethers.BigNumber>;
}>>, "strip", import("zod").ZodTypeAny, {
description?: string | undefined;
image?: string | undefined;
external_link?: string | undefined;
name: string;
voting_delay_in_blocks: number;
voting_period_in_blocks: number;
voting_token_address: string;
voting_quorum_fraction: number;
proposal_token_threshold: ethers.BigNumber;
}, {
description?: string | undefined;
image?: string | undefined;
external_link?: string | undefined;
voting_delay_in_blocks?: number | undefined;
voting_period_in_blocks?: number | undefined;
voting_quorum_fraction?: number | undefined;
name: string;
voting_token_address: string;
proposal_token_threshold: string | number | bigint | ethers.BigNumber;
}>;
input: import("zod").ZodObject<import("zod").extendShape<{
name: import("zod").ZodString;
description: import("zod").ZodOptional<import("zod").ZodString>;
image: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodObject<{
data: import("zod").ZodUnion<[import("zod").ZodTypeAny, import("zod").ZodString]>;
name: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
data?: any;
name: string;
}, {
data?: any;
name: string;
}>]>, import("zod").ZodString]>>;
external_link: import("zod").ZodOptional<import("zod").ZodString>;
}, {
voting_delay_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_period_in_blocks: import("zod").ZodDefault<import("zod").ZodNumber>;
voting_token_address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
voting_quorum_fraction: import("zod").ZodDefault<import("zod").ZodNumber>;
proposal_token_threshold: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt, import("zod").ZodType<ethers.BigNumber, import("zod").ZodTypeDef, ethers.BigNumber>]>, ethers.BigNumber, string | number | bigint | ethers.BigNumber>, string, string | number | bigint | ethers.BigNumber>>;
}>, "strip", import("zod").ZodTypeAny, {
description?: string | undefined;
image?: any;
external_link?: string | undefined;
name: string;
voting_delay_in_blocks: number;
voting_period_in_blocks: number;
voting_token_address: string;
voting_quorum_fraction: number;
proposal_token_threshold: string;
}, {
description?: string | undefined;
image?: any;
external_link?: string | undefined;
voting_delay_in_blocks?: number | undefined;
voting_period_in_blocks?: number | undefined;
voting_quorum_fraction?: number | undefined;
proposal_token_threshold?: string | number | bigint | ethers.BigNumber | undefined;
name: string;
voting_token_address: string;
}>;
};
roles: readonly [];
initialize: (network: NetworkOrSignerOrProvider, address: string, storage: ThirdwebStorage<import("@thirdweb-dev/storage").IpfsUploadBatchOptions>, options?: {
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
} | undefined;
gasSettings?: {
maxPriceInGwei?: number | undefined;
speed?: "standard" | "fast" | "fastest" | undefined;
} | undefined;
gasless?: {
experimentalChainlessSupport?: boolean | undefined;
openzeppelin: {
relayerForwarderAddress?: string | undefined;
useEOAForwarder?: boolean | undefined;
relayerUrl: string;
};
} | {
biconomy: {
deadlineSeconds?: number | undefined;
apiId: string;
apiKey: string;
};
} | undefined;
} | undefined) => Promise<import("./prebuilt-implementations/vote").Vote>;
getAbi: (address: string, provider: ethers.providers.Provider, storage: ThirdwebStorage) => Promise<{
[x: string]: any;
name?: string | undefined;
inputs?: {
[x: string]: any;
stateMutability?: string | undefined;
components?: {
[x: string]: any;
type: string;
name: string;
}[] | undefined;
type: string;
name: string;
}[] | undefined;
outputs?: {
[x: string]: any;
stateMutability?: string | undefined;
components?: {
[x: string]: any;
type: string;
name: string;
}[] | undefined;
type: string;
name: string;
}[] | undefined;
type: string;
}[] | ({
inputs: never[];
stateMutability: string;
type: string;
name?: undefined;
anonymous?: undefined;
outputs?: undefined;
} | {
inputs: never[];
name: string;
type: string;
stateMutability?: undefined;
anonymous?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: {
indexed: boolean;
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
inputs: never[];
name: string;
outputs: {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
stateMutability: string;
type: string;
inputs?: undefined;
name?: undefined;
anonymous?: undefined;
outputs?: undefined;
})[]>;
}