@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
294 lines (265 loc) • 8.53 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "../../common";
export interface IX2EarnCreatorInterface extends Interface {
getFunction(
nameOrSignature:
| "balanceOf"
| "burn"
| "grantRole"
| "hasRole"
| "pause"
| "paused"
| "revokeRole"
| "safeMint"
| "selfMint"
| "selfMintEnabled"
| "supportsInterface"
| "tokenByIndex"
| "tokenOfOwnerByIndex"
| "tokenURI"
| "totalSupply"
| "unpause"
): FunctionFragment;
encodeFunctionData(
functionFragment: "balanceOf",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string;
encodeFunctionData(
functionFragment: "grantRole",
values: [BytesLike, AddressLike]
): string;
encodeFunctionData(
functionFragment: "hasRole",
values: [BytesLike, AddressLike]
): string;
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
encodeFunctionData(
functionFragment: "revokeRole",
values: [BytesLike, AddressLike]
): string;
encodeFunctionData(
functionFragment: "safeMint",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "selfMint", values?: undefined): string;
encodeFunctionData(
functionFragment: "selfMintEnabled",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "supportsInterface",
values: [BytesLike]
): string;
encodeFunctionData(
functionFragment: "tokenByIndex",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "tokenOfOwnerByIndex",
values: [AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "tokenURI",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "totalSupply",
values?: undefined
): string;
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "safeMint", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "selfMint", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "selfMintEnabled",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "supportsInterface",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "tokenByIndex",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "tokenOfOwnerByIndex",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "totalSupply",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
}
export interface IX2EarnCreator extends BaseContract {
connect(runner?: ContractRunner | null): IX2EarnCreator;
waitForDeployment(): Promise<this>;
interface: IX2EarnCreatorInterface;
queryFilter<TCEvent extends TypedContractEvent>(
event: TCEvent,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
on<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
on<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
listeners<TCEvent extends TypedContractEvent>(
event: TCEvent
): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(
event?: TCEvent
): Promise<this>;
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
burn: TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
grantRole: TypedContractMethod<
[role: BytesLike, account: AddressLike],
[void],
"nonpayable"
>;
hasRole: TypedContractMethod<
[role: BytesLike, account: AddressLike],
[boolean],
"view"
>;
pause: TypedContractMethod<[], [void], "nonpayable">;
paused: TypedContractMethod<[], [boolean], "view">;
revokeRole: TypedContractMethod<
[role: BytesLike, account: AddressLike],
[void],
"nonpayable"
>;
safeMint: TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
selfMint: TypedContractMethod<[], [void], "nonpayable">;
selfMintEnabled: TypedContractMethod<[], [boolean], "view">;
supportsInterface: TypedContractMethod<
[interfaceId: BytesLike],
[boolean],
"view"
>;
tokenByIndex: TypedContractMethod<[index: BigNumberish], [bigint], "view">;
tokenOfOwnerByIndex: TypedContractMethod<
[owner: AddressLike, index: BigNumberish],
[bigint],
"view"
>;
tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
totalSupply: TypedContractMethod<[], [bigint], "view">;
unpause: TypedContractMethod<[], [void], "nonpayable">;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "balanceOf"
): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "burn"
): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "grantRole"
): TypedContractMethod<
[role: BytesLike, account: AddressLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "hasRole"
): TypedContractMethod<
[role: BytesLike, account: AddressLike],
[boolean],
"view"
>;
getFunction(
nameOrSignature: "pause"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "paused"
): TypedContractMethod<[], [boolean], "view">;
getFunction(
nameOrSignature: "revokeRole"
): TypedContractMethod<
[role: BytesLike, account: AddressLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "safeMint"
): TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "selfMint"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "selfMintEnabled"
): TypedContractMethod<[], [boolean], "view">;
getFunction(
nameOrSignature: "supportsInterface"
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
getFunction(
nameOrSignature: "tokenByIndex"
): TypedContractMethod<[index: BigNumberish], [bigint], "view">;
getFunction(
nameOrSignature: "tokenOfOwnerByIndex"
): TypedContractMethod<
[owner: AddressLike, index: BigNumberish],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "tokenURI"
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
getFunction(
nameOrSignature: "totalSupply"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "unpause"
): TypedContractMethod<[], [void], "nonpayable">;
filters: {};
}