@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
344 lines (320 loc) • 10.3 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
FunctionFragment,
Interface,
EventFragment,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedLogDescription,
TypedListener,
} from "../../../common";
export interface ExternalContractsUtilsInterface extends Interface {
getEvent(
nameOrSignatureOrTopic:
| "B3TRGovernorSet"
| "EmissionsSet"
| "NavigatorRegistrySet"
| "RelayerRewardsPoolSet"
| "VeBetterPassportSet"
| "VoterRewardsSet"
| "X2EarnAppsSet"
): EventFragment;
}
export namespace B3TRGovernorSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace EmissionsSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace NavigatorRegistrySetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace RelayerRewardsPoolSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace VeBetterPassportSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace VoterRewardsSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace X2EarnAppsSetEvent {
export type InputTuple = [
oldContractAddress: AddressLike,
newContractAddress: AddressLike
];
export type OutputTuple = [
oldContractAddress: string,
newContractAddress: string
];
export interface OutputObject {
oldContractAddress: string;
newContractAddress: string;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export interface ExternalContractsUtils extends BaseContract {
connect(runner?: ContractRunner | null): ExternalContractsUtils;
waitForDeployment(): Promise<this>;
interface: ExternalContractsUtilsInterface;
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>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getEvent(
key: "B3TRGovernorSet"
): TypedContractEvent<
B3TRGovernorSetEvent.InputTuple,
B3TRGovernorSetEvent.OutputTuple,
B3TRGovernorSetEvent.OutputObject
>;
getEvent(
key: "EmissionsSet"
): TypedContractEvent<
EmissionsSetEvent.InputTuple,
EmissionsSetEvent.OutputTuple,
EmissionsSetEvent.OutputObject
>;
getEvent(
key: "NavigatorRegistrySet"
): TypedContractEvent<
NavigatorRegistrySetEvent.InputTuple,
NavigatorRegistrySetEvent.OutputTuple,
NavigatorRegistrySetEvent.OutputObject
>;
getEvent(
key: "RelayerRewardsPoolSet"
): TypedContractEvent<
RelayerRewardsPoolSetEvent.InputTuple,
RelayerRewardsPoolSetEvent.OutputTuple,
RelayerRewardsPoolSetEvent.OutputObject
>;
getEvent(
key: "VeBetterPassportSet"
): TypedContractEvent<
VeBetterPassportSetEvent.InputTuple,
VeBetterPassportSetEvent.OutputTuple,
VeBetterPassportSetEvent.OutputObject
>;
getEvent(
key: "VoterRewardsSet"
): TypedContractEvent<
VoterRewardsSetEvent.InputTuple,
VoterRewardsSetEvent.OutputTuple,
VoterRewardsSetEvent.OutputObject
>;
getEvent(
key: "X2EarnAppsSet"
): TypedContractEvent<
X2EarnAppsSetEvent.InputTuple,
X2EarnAppsSetEvent.OutputTuple,
X2EarnAppsSetEvent.OutputObject
>;
filters: {
"B3TRGovernorSet(address,address)": TypedContractEvent<
B3TRGovernorSetEvent.InputTuple,
B3TRGovernorSetEvent.OutputTuple,
B3TRGovernorSetEvent.OutputObject
>;
B3TRGovernorSet: TypedContractEvent<
B3TRGovernorSetEvent.InputTuple,
B3TRGovernorSetEvent.OutputTuple,
B3TRGovernorSetEvent.OutputObject
>;
"EmissionsSet(address,address)": TypedContractEvent<
EmissionsSetEvent.InputTuple,
EmissionsSetEvent.OutputTuple,
EmissionsSetEvent.OutputObject
>;
EmissionsSet: TypedContractEvent<
EmissionsSetEvent.InputTuple,
EmissionsSetEvent.OutputTuple,
EmissionsSetEvent.OutputObject
>;
"NavigatorRegistrySet(address,address)": TypedContractEvent<
NavigatorRegistrySetEvent.InputTuple,
NavigatorRegistrySetEvent.OutputTuple,
NavigatorRegistrySetEvent.OutputObject
>;
NavigatorRegistrySet: TypedContractEvent<
NavigatorRegistrySetEvent.InputTuple,
NavigatorRegistrySetEvent.OutputTuple,
NavigatorRegistrySetEvent.OutputObject
>;
"RelayerRewardsPoolSet(address,address)": TypedContractEvent<
RelayerRewardsPoolSetEvent.InputTuple,
RelayerRewardsPoolSetEvent.OutputTuple,
RelayerRewardsPoolSetEvent.OutputObject
>;
RelayerRewardsPoolSet: TypedContractEvent<
RelayerRewardsPoolSetEvent.InputTuple,
RelayerRewardsPoolSetEvent.OutputTuple,
RelayerRewardsPoolSetEvent.OutputObject
>;
"VeBetterPassportSet(address,address)": TypedContractEvent<
VeBetterPassportSetEvent.InputTuple,
VeBetterPassportSetEvent.OutputTuple,
VeBetterPassportSetEvent.OutputObject
>;
VeBetterPassportSet: TypedContractEvent<
VeBetterPassportSetEvent.InputTuple,
VeBetterPassportSetEvent.OutputTuple,
VeBetterPassportSetEvent.OutputObject
>;
"VoterRewardsSet(address,address)": TypedContractEvent<
VoterRewardsSetEvent.InputTuple,
VoterRewardsSetEvent.OutputTuple,
VoterRewardsSetEvent.OutputObject
>;
VoterRewardsSet: TypedContractEvent<
VoterRewardsSetEvent.InputTuple,
VoterRewardsSetEvent.OutputTuple,
VoterRewardsSetEvent.OutputObject
>;
"X2EarnAppsSet(address,address)": TypedContractEvent<
X2EarnAppsSetEvent.InputTuple,
X2EarnAppsSetEvent.OutputTuple,
X2EarnAppsSetEvent.OutputObject
>;
X2EarnAppsSet: TypedContractEvent<
X2EarnAppsSetEvent.InputTuple,
X2EarnAppsSetEvent.OutputTuple,
X2EarnAppsSetEvent.OutputObject
>;
};
}