2024-12-01 01:08:51 +00:00
|
|
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2025-01-04 18:39:49 +00:00
|
|
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
2024-12-01 01:08:51 +00:00
|
|
|
export declare namespace BalanceAggregator {
|
|
|
|
type StakedBalanceStruct = {
|
|
|
|
balance: BigNumberish;
|
|
|
|
isContract: boolean;
|
|
|
|
};
|
|
|
|
type StakedBalanceStructOutput = [
|
|
|
|
balance: bigint,
|
|
|
|
isContract: boolean
|
|
|
|
] & {
|
|
|
|
balance: bigint;
|
|
|
|
isContract: boolean;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
export interface BalanceAggregatorInterface extends Interface {
|
2025-01-04 18:39:49 +00:00
|
|
|
getFunction(nameOrSignature: "getStaked" | "getStakedBalances" | "governance" | "isContract" | "relayerRegistry" | "torn"): FunctionFragment;
|
2024-12-01 01:08:51 +00:00
|
|
|
encodeFunctionData(functionFragment: "getStaked", values: [AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "getStakedBalances", values: [AddressLike[]]): string;
|
2025-01-04 18:39:49 +00:00
|
|
|
encodeFunctionData(functionFragment: "governance", values?: undefined): string;
|
2024-12-01 01:08:51 +00:00
|
|
|
encodeFunctionData(functionFragment: "isContract", values: [AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "relayerRegistry", values?: undefined): string;
|
|
|
|
encodeFunctionData(functionFragment: "torn", values?: undefined): string;
|
|
|
|
decodeFunctionResult(functionFragment: "getStaked", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "getStakedBalances", data: BytesLike): Result;
|
2025-01-04 18:39:49 +00:00
|
|
|
decodeFunctionResult(functionFragment: "governance", data: BytesLike): Result;
|
2024-12-01 01:08:51 +00:00
|
|
|
decodeFunctionResult(functionFragment: "isContract", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "relayerRegistry", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "torn", data: BytesLike): Result;
|
|
|
|
}
|
|
|
|
export interface BalanceAggregator extends BaseContract {
|
|
|
|
connect(runner?: ContractRunner | null): BalanceAggregator;
|
|
|
|
waitForDeployment(): Promise<this>;
|
|
|
|
interface: BalanceAggregatorInterface;
|
|
|
|
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>;
|
|
|
|
getStaked: TypedContractMethod<[
|
|
|
|
_addr: AddressLike
|
|
|
|
], [
|
|
|
|
BalanceAggregator.StakedBalanceStructOutput
|
|
|
|
], "view">;
|
|
|
|
getStakedBalances: TypedContractMethod<[
|
|
|
|
addresses: AddressLike[]
|
|
|
|
], [
|
|
|
|
BalanceAggregator.StakedBalanceStructOutput[]
|
|
|
|
], "view">;
|
2025-01-04 18:39:49 +00:00
|
|
|
governance: TypedContractMethod<[], [string], "view">;
|
2024-12-01 01:08:51 +00:00
|
|
|
isContract: TypedContractMethod<[_addr: AddressLike], [boolean], "view">;
|
|
|
|
relayerRegistry: TypedContractMethod<[], [string], "view">;
|
|
|
|
torn: TypedContractMethod<[], [string], "view">;
|
|
|
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
|
|
getFunction(nameOrSignature: "getStaked"): TypedContractMethod<[
|
|
|
|
_addr: AddressLike
|
|
|
|
], [
|
|
|
|
BalanceAggregator.StakedBalanceStructOutput
|
|
|
|
], "view">;
|
|
|
|
getFunction(nameOrSignature: "getStakedBalances"): TypedContractMethod<[
|
|
|
|
addresses: AddressLike[]
|
|
|
|
], [
|
|
|
|
BalanceAggregator.StakedBalanceStructOutput[]
|
|
|
|
], "view">;
|
2025-01-04 18:39:49 +00:00
|
|
|
getFunction(nameOrSignature: "governance"): TypedContractMethod<[], [string], "view">;
|
2024-12-01 01:08:51 +00:00
|
|
|
getFunction(nameOrSignature: "isContract"): TypedContractMethod<[_addr: AddressLike], [boolean], "view">;
|
|
|
|
getFunction(nameOrSignature: "relayerRegistry"): TypedContractMethod<[], [string], "view">;
|
|
|
|
getFunction(nameOrSignature: "torn"): TypedContractMethod<[], [string], "view">;
|
|
|
|
filters: {};
|
|
|
|
}
|