Skip to content

Commit

Permalink
feat: setup conditions for partial liquidation in liquidator itself
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Apr 12, 2024
1 parent f5579d3 commit 221a72c
Show file tree
Hide file tree
Showing 4 changed files with 642 additions and 66 deletions.
292 changes: 292 additions & 0 deletions src/generated/IACL.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BytesLike,
CallOverrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import type {
FunctionFragment,
Result,
EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import {
OnEvent,
PromiseOrValue,
TypedEvent,
TypedEventFilter,
TypedListener,
} from "@gearbox-protocol/sdk/lib/types/common";

export interface IACLInterface extends utils.Interface {
functions: {
"isConfigurator(address)": FunctionFragment;
"isPausableAdmin(address)": FunctionFragment;
"isUnpausableAdmin(address)": FunctionFragment;
"owner()": FunctionFragment;
"version()": FunctionFragment;
};

getFunction(
nameOrSignatureOrTopic:
| "isConfigurator"
| "isPausableAdmin"
| "isUnpausableAdmin"
| "owner"
| "version",
): FunctionFragment;

encodeFunctionData(
functionFragment: "isConfigurator",
values: [PromiseOrValue<string>],
): string;
encodeFunctionData(
functionFragment: "isPausableAdmin",
values: [PromiseOrValue<string>],
): string;
encodeFunctionData(
functionFragment: "isUnpausableAdmin",
values: [PromiseOrValue<string>],
): string;
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
encodeFunctionData(functionFragment: "version", values?: undefined): string;

decodeFunctionResult(
functionFragment: "isConfigurator",
data: BytesLike,
): Result;
decodeFunctionResult(
functionFragment: "isPausableAdmin",
data: BytesLike,
): Result;
decodeFunctionResult(
functionFragment: "isUnpausableAdmin",
data: BytesLike,
): Result;
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;

events: {
"PausableAdminAdded(address)": EventFragment;
"PausableAdminRemoved(address)": EventFragment;
"UnpausableAdminAdded(address)": EventFragment;
"UnpausableAdminRemoved(address)": EventFragment;
};

getEvent(nameOrSignatureOrTopic: "PausableAdminAdded"): EventFragment;
getEvent(nameOrSignatureOrTopic: "PausableAdminRemoved"): EventFragment;
getEvent(nameOrSignatureOrTopic: "UnpausableAdminAdded"): EventFragment;
getEvent(nameOrSignatureOrTopic: "UnpausableAdminRemoved"): EventFragment;
}

export interface PausableAdminAddedEventObject {
newAdmin: string;
}
export type PausableAdminAddedEvent = TypedEvent<
[string],
PausableAdminAddedEventObject
>;

export type PausableAdminAddedEventFilter =
TypedEventFilter<PausableAdminAddedEvent>;

export interface PausableAdminRemovedEventObject {
admin: string;
}
export type PausableAdminRemovedEvent = TypedEvent<
[string],
PausableAdminRemovedEventObject
>;

export type PausableAdminRemovedEventFilter =
TypedEventFilter<PausableAdminRemovedEvent>;

export interface UnpausableAdminAddedEventObject {
newAdmin: string;
}
export type UnpausableAdminAddedEvent = TypedEvent<
[string],
UnpausableAdminAddedEventObject
>;

export type UnpausableAdminAddedEventFilter =
TypedEventFilter<UnpausableAdminAddedEvent>;

export interface UnpausableAdminRemovedEventObject {
admin: string;
}
export type UnpausableAdminRemovedEvent = TypedEvent<
[string],
UnpausableAdminRemovedEventObject
>;

export type UnpausableAdminRemovedEventFilter =
TypedEventFilter<UnpausableAdminRemovedEvent>;

export interface IACL extends BaseContract {
contractName: "IACL";

connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

interface: IACLInterface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
): Promise<Array<TEvent>>;

listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>,
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>,
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;

functions: {
isConfigurator(
account: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<[boolean]>;

isPausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<[boolean]>;

isUnpausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<[boolean]>;

owner(overrides?: CallOverrides): Promise<[string]>;

version(overrides?: CallOverrides): Promise<[BigNumber]>;
};

isConfigurator(
account: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

isPausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

isUnpausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

owner(overrides?: CallOverrides): Promise<string>;

version(overrides?: CallOverrides): Promise<BigNumber>;

callStatic: {
isConfigurator(
account: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

isPausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

isUnpausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<boolean>;

owner(overrides?: CallOverrides): Promise<string>;

version(overrides?: CallOverrides): Promise<BigNumber>;
};

filters: {
"PausableAdminAdded(address)"(
newAdmin?: PromiseOrValue<string> | null,
): PausableAdminAddedEventFilter;
PausableAdminAdded(
newAdmin?: PromiseOrValue<string> | null,
): PausableAdminAddedEventFilter;

"PausableAdminRemoved(address)"(
admin?: PromiseOrValue<string> | null,
): PausableAdminRemovedEventFilter;
PausableAdminRemoved(
admin?: PromiseOrValue<string> | null,
): PausableAdminRemovedEventFilter;

"UnpausableAdminAdded(address)"(
newAdmin?: PromiseOrValue<string> | null,
): UnpausableAdminAddedEventFilter;
UnpausableAdminAdded(
newAdmin?: PromiseOrValue<string> | null,
): UnpausableAdminAddedEventFilter;

"UnpausableAdminRemoved(address)"(
admin?: PromiseOrValue<string> | null,
): UnpausableAdminRemovedEventFilter;
UnpausableAdminRemoved(
admin?: PromiseOrValue<string> | null,
): UnpausableAdminRemovedEventFilter;
};

estimateGas: {
isConfigurator(
account: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<BigNumber>;

isPausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<BigNumber>;

isUnpausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<BigNumber>;

owner(overrides?: CallOverrides): Promise<BigNumber>;

version(overrides?: CallOverrides): Promise<BigNumber>;
};

populateTransaction: {
isConfigurator(
account: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;

isPausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;

isUnpausableAdmin(
addr: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;

owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;

version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
};
}
Loading

0 comments on commit 221a72c

Please sign in to comment.