@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
666 lines (617 loc) • 18.9 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
EventFragment,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedLogDescription,
TypedListener,
TypedContractMethod,
} from "../common";
export interface B3TRMultiSigInterface extends Interface {
getFunction(
nameOrSignature:
| "MAX_OWNER_COUNT"
| "addOwner"
| "changeRequirement"
| "confirmTransaction"
| "confirmations"
| "executeTransaction"
| "getConfirmations"
| "getOwners"
| "getTransactionCount"
| "getTransactionIds"
| "isConfirmed"
| "isOwner"
| "owners"
| "removeOwner"
| "replaceOwner"
| "required"
| "revokeConfirmation"
| "submitTransaction"
| "transactions"
): FunctionFragment;
getEvent(
nameOrSignatureOrTopic:
| "Confirmation"
| "Execution"
| "ExecutionFailure"
| "OwnerAdded"
| "OwnerRemoved"
| "RequirementChanged"
| "Revocation"
| "Submission"
): EventFragment;
encodeFunctionData(
functionFragment: "MAX_OWNER_COUNT",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "addOwner",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "changeRequirement",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "confirmTransaction",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "confirmations",
values: [BigNumberish, AddressLike]
): string;
encodeFunctionData(
functionFragment: "executeTransaction",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "getConfirmations",
values: [BigNumberish]
): string;
encodeFunctionData(functionFragment: "getOwners", values?: undefined): string;
encodeFunctionData(
functionFragment: "getTransactionCount",
values: [boolean, boolean]
): string;
encodeFunctionData(
functionFragment: "getTransactionIds",
values: [BigNumberish, BigNumberish, boolean, boolean]
): string;
encodeFunctionData(
functionFragment: "isConfirmed",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "isOwner",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "owners",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "removeOwner",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "replaceOwner",
values: [AddressLike, AddressLike]
): string;
encodeFunctionData(functionFragment: "required", values?: undefined): string;
encodeFunctionData(
functionFragment: "revokeConfirmation",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "submitTransaction",
values: [AddressLike, BigNumberish, BytesLike]
): string;
encodeFunctionData(
functionFragment: "transactions",
values: [BigNumberish]
): string;
decodeFunctionResult(
functionFragment: "MAX_OWNER_COUNT",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "addOwner", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "changeRequirement",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "confirmTransaction",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "confirmations",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "executeTransaction",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getConfirmations",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getOwners", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getTransactionCount",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getTransactionIds",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "isConfirmed",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "isOwner", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "owners", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "removeOwner",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "replaceOwner",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "required", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "revokeConfirmation",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "submitTransaction",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "transactions",
data: BytesLike
): Result;
}
export namespace ConfirmationEvent {
export type InputTuple = [sender: AddressLike, transactionId: BigNumberish];
export type OutputTuple = [sender: string, transactionId: bigint];
export interface OutputObject {
sender: string;
transactionId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace ExecutionEvent {
export type InputTuple = [transactionId: BigNumberish];
export type OutputTuple = [transactionId: bigint];
export interface OutputObject {
transactionId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace ExecutionFailureEvent {
export type InputTuple = [transactionId: BigNumberish];
export type OutputTuple = [transactionId: bigint];
export interface OutputObject {
transactionId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace OwnerAddedEvent {
export type InputTuple = [owner: AddressLike];
export type OutputTuple = [owner: string];
export interface OutputObject {
owner: 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 OwnerRemovedEvent {
export type InputTuple = [owner: AddressLike];
export type OutputTuple = [owner: string];
export interface OutputObject {
owner: 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 RequirementChangedEvent {
export type InputTuple = [required: BigNumberish];
export type OutputTuple = [required: bigint];
export interface OutputObject {
required: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace RevocationEvent {
export type InputTuple = [sender: AddressLike, transactionId: BigNumberish];
export type OutputTuple = [sender: string, transactionId: bigint];
export interface OutputObject {
sender: string;
transactionId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace SubmissionEvent {
export type InputTuple = [transactionId: BigNumberish];
export type OutputTuple = [transactionId: bigint];
export interface OutputObject {
transactionId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export interface B3TRMultiSig extends BaseContract {
connect(runner?: ContractRunner | null): B3TRMultiSig;
waitForDeployment(): Promise<this>;
interface: B3TRMultiSigInterface;
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>;
MAX_OWNER_COUNT: TypedContractMethod<[], [bigint], "view">;
addOwner: TypedContractMethod<[owner: AddressLike], [void], "nonpayable">;
changeRequirement: TypedContractMethod<
[_required: BigNumberish],
[void],
"nonpayable"
>;
confirmTransaction: TypedContractMethod<
[txId: BigNumberish],
[void],
"nonpayable"
>;
confirmations: TypedContractMethod<
[arg0: BigNumberish, arg1: AddressLike],
[boolean],
"view"
>;
executeTransaction: TypedContractMethod<
[txId: BigNumberish],
[void],
"nonpayable"
>;
getConfirmations: TypedContractMethod<
[txId: BigNumberish],
[string[]],
"view"
>;
getOwners: TypedContractMethod<[], [string[]], "view">;
getTransactionCount: TypedContractMethod<
[pending: boolean, executed: boolean],
[bigint],
"view"
>;
getTransactionIds: TypedContractMethod<
[from: BigNumberish, to: BigNumberish, pending: boolean, executed: boolean],
[bigint[]],
"view"
>;
isConfirmed: TypedContractMethod<[txId: BigNumberish], [boolean], "view">;
isOwner: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
owners: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
removeOwner: TypedContractMethod<[owner: AddressLike], [void], "nonpayable">;
replaceOwner: TypedContractMethod<
[oldOwner: AddressLike, newOwner: AddressLike],
[void],
"nonpayable"
>;
required: TypedContractMethod<[], [bigint], "view">;
revokeConfirmation: TypedContractMethod<
[txId: BigNumberish],
[void],
"nonpayable"
>;
submitTransaction: TypedContractMethod<
[destination: AddressLike, value: BigNumberish, data: BytesLike],
[bigint],
"nonpayable"
>;
transactions: TypedContractMethod<
[arg0: BigNumberish],
[
[string, bigint, string, boolean] & {
destination: string;
value: bigint;
data: string;
executed: boolean;
}
],
"view"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "MAX_OWNER_COUNT"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "addOwner"
): TypedContractMethod<[owner: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "changeRequirement"
): TypedContractMethod<[_required: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "confirmTransaction"
): TypedContractMethod<[txId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "confirmations"
): TypedContractMethod<
[arg0: BigNumberish, arg1: AddressLike],
[boolean],
"view"
>;
getFunction(
nameOrSignature: "executeTransaction"
): TypedContractMethod<[txId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "getConfirmations"
): TypedContractMethod<[txId: BigNumberish], [string[]], "view">;
getFunction(
nameOrSignature: "getOwners"
): TypedContractMethod<[], [string[]], "view">;
getFunction(
nameOrSignature: "getTransactionCount"
): TypedContractMethod<
[pending: boolean, executed: boolean],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "getTransactionIds"
): TypedContractMethod<
[from: BigNumberish, to: BigNumberish, pending: boolean, executed: boolean],
[bigint[]],
"view"
>;
getFunction(
nameOrSignature: "isConfirmed"
): TypedContractMethod<[txId: BigNumberish], [boolean], "view">;
getFunction(
nameOrSignature: "isOwner"
): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
getFunction(
nameOrSignature: "owners"
): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
getFunction(
nameOrSignature: "removeOwner"
): TypedContractMethod<[owner: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "replaceOwner"
): TypedContractMethod<
[oldOwner: AddressLike, newOwner: AddressLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "required"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "revokeConfirmation"
): TypedContractMethod<[txId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "submitTransaction"
): TypedContractMethod<
[destination: AddressLike, value: BigNumberish, data: BytesLike],
[bigint],
"nonpayable"
>;
getFunction(
nameOrSignature: "transactions"
): TypedContractMethod<
[arg0: BigNumberish],
[
[string, bigint, string, boolean] & {
destination: string;
value: bigint;
data: string;
executed: boolean;
}
],
"view"
>;
getEvent(
key: "Confirmation"
): TypedContractEvent<
ConfirmationEvent.InputTuple,
ConfirmationEvent.OutputTuple,
ConfirmationEvent.OutputObject
>;
getEvent(
key: "Execution"
): TypedContractEvent<
ExecutionEvent.InputTuple,
ExecutionEvent.OutputTuple,
ExecutionEvent.OutputObject
>;
getEvent(
key: "ExecutionFailure"
): TypedContractEvent<
ExecutionFailureEvent.InputTuple,
ExecutionFailureEvent.OutputTuple,
ExecutionFailureEvent.OutputObject
>;
getEvent(
key: "OwnerAdded"
): TypedContractEvent<
OwnerAddedEvent.InputTuple,
OwnerAddedEvent.OutputTuple,
OwnerAddedEvent.OutputObject
>;
getEvent(
key: "OwnerRemoved"
): TypedContractEvent<
OwnerRemovedEvent.InputTuple,
OwnerRemovedEvent.OutputTuple,
OwnerRemovedEvent.OutputObject
>;
getEvent(
key: "RequirementChanged"
): TypedContractEvent<
RequirementChangedEvent.InputTuple,
RequirementChangedEvent.OutputTuple,
RequirementChangedEvent.OutputObject
>;
getEvent(
key: "Revocation"
): TypedContractEvent<
RevocationEvent.InputTuple,
RevocationEvent.OutputTuple,
RevocationEvent.OutputObject
>;
getEvent(
key: "Submission"
): TypedContractEvent<
SubmissionEvent.InputTuple,
SubmissionEvent.OutputTuple,
SubmissionEvent.OutputObject
>;
filters: {
"Confirmation(address,uint256)": TypedContractEvent<
ConfirmationEvent.InputTuple,
ConfirmationEvent.OutputTuple,
ConfirmationEvent.OutputObject
>;
Confirmation: TypedContractEvent<
ConfirmationEvent.InputTuple,
ConfirmationEvent.OutputTuple,
ConfirmationEvent.OutputObject
>;
"Execution(uint256)": TypedContractEvent<
ExecutionEvent.InputTuple,
ExecutionEvent.OutputTuple,
ExecutionEvent.OutputObject
>;
Execution: TypedContractEvent<
ExecutionEvent.InputTuple,
ExecutionEvent.OutputTuple,
ExecutionEvent.OutputObject
>;
"ExecutionFailure(uint256)": TypedContractEvent<
ExecutionFailureEvent.InputTuple,
ExecutionFailureEvent.OutputTuple,
ExecutionFailureEvent.OutputObject
>;
ExecutionFailure: TypedContractEvent<
ExecutionFailureEvent.InputTuple,
ExecutionFailureEvent.OutputTuple,
ExecutionFailureEvent.OutputObject
>;
"OwnerAdded(address)": TypedContractEvent<
OwnerAddedEvent.InputTuple,
OwnerAddedEvent.OutputTuple,
OwnerAddedEvent.OutputObject
>;
OwnerAdded: TypedContractEvent<
OwnerAddedEvent.InputTuple,
OwnerAddedEvent.OutputTuple,
OwnerAddedEvent.OutputObject
>;
"OwnerRemoved(address)": TypedContractEvent<
OwnerRemovedEvent.InputTuple,
OwnerRemovedEvent.OutputTuple,
OwnerRemovedEvent.OutputObject
>;
OwnerRemoved: TypedContractEvent<
OwnerRemovedEvent.InputTuple,
OwnerRemovedEvent.OutputTuple,
OwnerRemovedEvent.OutputObject
>;
"RequirementChanged(uint256)": TypedContractEvent<
RequirementChangedEvent.InputTuple,
RequirementChangedEvent.OutputTuple,
RequirementChangedEvent.OutputObject
>;
RequirementChanged: TypedContractEvent<
RequirementChangedEvent.InputTuple,
RequirementChangedEvent.OutputTuple,
RequirementChangedEvent.OutputObject
>;
"Revocation(address,uint256)": TypedContractEvent<
RevocationEvent.InputTuple,
RevocationEvent.OutputTuple,
RevocationEvent.OutputObject
>;
Revocation: TypedContractEvent<
RevocationEvent.InputTuple,
RevocationEvent.OutputTuple,
RevocationEvent.OutputObject
>;
"Submission(uint256)": TypedContractEvent<
SubmissionEvent.InputTuple,
SubmissionEvent.OutputTuple,
SubmissionEvent.OutputObject
>;
Submission: TypedContractEvent<
SubmissionEvent.InputTuple,
SubmissionEvent.OutputTuple,
SubmissionEvent.OutputObject
>;
};
}