|
| 1 | +/* Autogenerated file. Do not edit manually. */ |
| 2 | +/* tslint:disable */ |
| 3 | +/* eslint-disable */ |
| 4 | +import type { |
| 5 | + BaseContract, |
| 6 | + BigNumberish, |
| 7 | + BytesLike, |
| 8 | + FunctionFragment, |
| 9 | + Result, |
| 10 | + Interface, |
| 11 | + EventFragment, |
| 12 | + AddressLike, |
| 13 | + ContractRunner, |
| 14 | + ContractMethod, |
| 15 | + Listener, |
| 16 | +} from "ethers"; |
| 17 | +import type { |
| 18 | + TypedContractEvent, |
| 19 | + TypedDeferredTopicFilter, |
| 20 | + TypedEventLog, |
| 21 | + TypedLogDescription, |
| 22 | + TypedListener, |
| 23 | + TypedContractMethod, |
| 24 | +} from "./common"; |
| 25 | + |
| 26 | +export interface AaveFLTakerInterface extends Interface { |
| 27 | + getFunction( |
| 28 | + nameOrSignature: |
| 29 | + | "aavePool" |
| 30 | + | "allowedFLReceiver" |
| 31 | + | "owner" |
| 32 | + | "renounceOwnership" |
| 33 | + | "setAllowedFLReceiver" |
| 34 | + | "takeFlashLoan" |
| 35 | + | "transferOwnership" |
| 36 | + ): FunctionFragment; |
| 37 | + |
| 38 | + getEvent( |
| 39 | + nameOrSignatureOrTopic: "OwnershipTransferred" | "SetAllowedFLReceiver" |
| 40 | + ): EventFragment; |
| 41 | + |
| 42 | + encodeFunctionData(functionFragment: "aavePool", values?: undefined): string; |
| 43 | + encodeFunctionData( |
| 44 | + functionFragment: "allowedFLReceiver", |
| 45 | + values: [AddressLike] |
| 46 | + ): string; |
| 47 | + encodeFunctionData(functionFragment: "owner", values?: undefined): string; |
| 48 | + encodeFunctionData( |
| 49 | + functionFragment: "renounceOwnership", |
| 50 | + values?: undefined |
| 51 | + ): string; |
| 52 | + encodeFunctionData( |
| 53 | + functionFragment: "setAllowedFLReceiver", |
| 54 | + values: [AddressLike, boolean] |
| 55 | + ): string; |
| 56 | + encodeFunctionData( |
| 57 | + functionFragment: "takeFlashLoan", |
| 58 | + values: [AddressLike, BigNumberish, BytesLike] |
| 59 | + ): string; |
| 60 | + encodeFunctionData( |
| 61 | + functionFragment: "transferOwnership", |
| 62 | + values: [AddressLike] |
| 63 | + ): string; |
| 64 | + |
| 65 | + decodeFunctionResult(functionFragment: "aavePool", data: BytesLike): Result; |
| 66 | + decodeFunctionResult( |
| 67 | + functionFragment: "allowedFLReceiver", |
| 68 | + data: BytesLike |
| 69 | + ): Result; |
| 70 | + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; |
| 71 | + decodeFunctionResult( |
| 72 | + functionFragment: "renounceOwnership", |
| 73 | + data: BytesLike |
| 74 | + ): Result; |
| 75 | + decodeFunctionResult( |
| 76 | + functionFragment: "setAllowedFLReceiver", |
| 77 | + data: BytesLike |
| 78 | + ): Result; |
| 79 | + decodeFunctionResult( |
| 80 | + functionFragment: "takeFlashLoan", |
| 81 | + data: BytesLike |
| 82 | + ): Result; |
| 83 | + decodeFunctionResult( |
| 84 | + functionFragment: "transferOwnership", |
| 85 | + data: BytesLike |
| 86 | + ): Result; |
| 87 | +} |
| 88 | + |
| 89 | +export namespace OwnershipTransferredEvent { |
| 90 | + export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; |
| 91 | + export type OutputTuple = [previousOwner: string, newOwner: string]; |
| 92 | + export interface OutputObject { |
| 93 | + previousOwner: string; |
| 94 | + newOwner: string; |
| 95 | + } |
| 96 | + export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; |
| 97 | + export type Filter = TypedDeferredTopicFilter<Event>; |
| 98 | + export type Log = TypedEventLog<Event>; |
| 99 | + export type LogDescription = TypedLogDescription<Event>; |
| 100 | +} |
| 101 | + |
| 102 | +export namespace SetAllowedFLReceiverEvent { |
| 103 | + export type InputTuple = [consumer: AddressLike, status: boolean]; |
| 104 | + export type OutputTuple = [consumer: string, status: boolean]; |
| 105 | + export interface OutputObject { |
| 106 | + consumer: string; |
| 107 | + status: boolean; |
| 108 | + } |
| 109 | + export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; |
| 110 | + export type Filter = TypedDeferredTopicFilter<Event>; |
| 111 | + export type Log = TypedEventLog<Event>; |
| 112 | + export type LogDescription = TypedLogDescription<Event>; |
| 113 | +} |
| 114 | + |
| 115 | +export interface AaveFLTaker extends BaseContract { |
| 116 | + connect(runner?: ContractRunner | null): AaveFLTaker; |
| 117 | + waitForDeployment(): Promise<this>; |
| 118 | + |
| 119 | + interface: AaveFLTakerInterface; |
| 120 | + |
| 121 | + queryFilter<TCEvent extends TypedContractEvent>( |
| 122 | + event: TCEvent, |
| 123 | + fromBlockOrBlockhash?: string | number | undefined, |
| 124 | + toBlock?: string | number | undefined |
| 125 | + ): Promise<Array<TypedEventLog<TCEvent>>>; |
| 126 | + queryFilter<TCEvent extends TypedContractEvent>( |
| 127 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 128 | + fromBlockOrBlockhash?: string | number | undefined, |
| 129 | + toBlock?: string | number | undefined |
| 130 | + ): Promise<Array<TypedEventLog<TCEvent>>>; |
| 131 | + |
| 132 | + on<TCEvent extends TypedContractEvent>( |
| 133 | + event: TCEvent, |
| 134 | + listener: TypedListener<TCEvent> |
| 135 | + ): Promise<this>; |
| 136 | + on<TCEvent extends TypedContractEvent>( |
| 137 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 138 | + listener: TypedListener<TCEvent> |
| 139 | + ): Promise<this>; |
| 140 | + |
| 141 | + once<TCEvent extends TypedContractEvent>( |
| 142 | + event: TCEvent, |
| 143 | + listener: TypedListener<TCEvent> |
| 144 | + ): Promise<this>; |
| 145 | + once<TCEvent extends TypedContractEvent>( |
| 146 | + filter: TypedDeferredTopicFilter<TCEvent>, |
| 147 | + listener: TypedListener<TCEvent> |
| 148 | + ): Promise<this>; |
| 149 | + |
| 150 | + listeners<TCEvent extends TypedContractEvent>( |
| 151 | + event: TCEvent |
| 152 | + ): Promise<Array<TypedListener<TCEvent>>>; |
| 153 | + listeners(eventName?: string): Promise<Array<Listener>>; |
| 154 | + removeAllListeners<TCEvent extends TypedContractEvent>( |
| 155 | + event?: TCEvent |
| 156 | + ): Promise<this>; |
| 157 | + |
| 158 | + aavePool: TypedContractMethod<[], [string], "view">; |
| 159 | + |
| 160 | + allowedFLReceiver: TypedContractMethod< |
| 161 | + [arg0: AddressLike], |
| 162 | + [boolean], |
| 163 | + "view" |
| 164 | + >; |
| 165 | + |
| 166 | + owner: TypedContractMethod<[], [string], "view">; |
| 167 | + |
| 168 | + renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; |
| 169 | + |
| 170 | + setAllowedFLReceiver: TypedContractMethod< |
| 171 | + [receiver: AddressLike, status: boolean], |
| 172 | + [void], |
| 173 | + "nonpayable" |
| 174 | + >; |
| 175 | + |
| 176 | + takeFlashLoan: TypedContractMethod< |
| 177 | + [asset: AddressLike, amount: BigNumberish, data: BytesLike], |
| 178 | + [void], |
| 179 | + "nonpayable" |
| 180 | + >; |
| 181 | + |
| 182 | + transferOwnership: TypedContractMethod< |
| 183 | + [newOwner: AddressLike], |
| 184 | + [void], |
| 185 | + "nonpayable" |
| 186 | + >; |
| 187 | + |
| 188 | + getFunction<T extends ContractMethod = ContractMethod>( |
| 189 | + key: string | FunctionFragment |
| 190 | + ): T; |
| 191 | + |
| 192 | + getFunction( |
| 193 | + nameOrSignature: "aavePool" |
| 194 | + ): TypedContractMethod<[], [string], "view">; |
| 195 | + getFunction( |
| 196 | + nameOrSignature: "allowedFLReceiver" |
| 197 | + ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; |
| 198 | + getFunction( |
| 199 | + nameOrSignature: "owner" |
| 200 | + ): TypedContractMethod<[], [string], "view">; |
| 201 | + getFunction( |
| 202 | + nameOrSignature: "renounceOwnership" |
| 203 | + ): TypedContractMethod<[], [void], "nonpayable">; |
| 204 | + getFunction( |
| 205 | + nameOrSignature: "setAllowedFLReceiver" |
| 206 | + ): TypedContractMethod< |
| 207 | + [receiver: AddressLike, status: boolean], |
| 208 | + [void], |
| 209 | + "nonpayable" |
| 210 | + >; |
| 211 | + getFunction( |
| 212 | + nameOrSignature: "takeFlashLoan" |
| 213 | + ): TypedContractMethod< |
| 214 | + [asset: AddressLike, amount: BigNumberish, data: BytesLike], |
| 215 | + [void], |
| 216 | + "nonpayable" |
| 217 | + >; |
| 218 | + getFunction( |
| 219 | + nameOrSignature: "transferOwnership" |
| 220 | + ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; |
| 221 | + |
| 222 | + getEvent( |
| 223 | + key: "OwnershipTransferred" |
| 224 | + ): TypedContractEvent< |
| 225 | + OwnershipTransferredEvent.InputTuple, |
| 226 | + OwnershipTransferredEvent.OutputTuple, |
| 227 | + OwnershipTransferredEvent.OutputObject |
| 228 | + >; |
| 229 | + getEvent( |
| 230 | + key: "SetAllowedFLReceiver" |
| 231 | + ): TypedContractEvent< |
| 232 | + SetAllowedFLReceiverEvent.InputTuple, |
| 233 | + SetAllowedFLReceiverEvent.OutputTuple, |
| 234 | + SetAllowedFLReceiverEvent.OutputObject |
| 235 | + >; |
| 236 | + |
| 237 | + filters: { |
| 238 | + "OwnershipTransferred(address,address)": TypedContractEvent< |
| 239 | + OwnershipTransferredEvent.InputTuple, |
| 240 | + OwnershipTransferredEvent.OutputTuple, |
| 241 | + OwnershipTransferredEvent.OutputObject |
| 242 | + >; |
| 243 | + OwnershipTransferred: TypedContractEvent< |
| 244 | + OwnershipTransferredEvent.InputTuple, |
| 245 | + OwnershipTransferredEvent.OutputTuple, |
| 246 | + OwnershipTransferredEvent.OutputObject |
| 247 | + >; |
| 248 | + |
| 249 | + "SetAllowedFLReceiver(address,bool)": TypedContractEvent< |
| 250 | + SetAllowedFLReceiverEvent.InputTuple, |
| 251 | + SetAllowedFLReceiverEvent.OutputTuple, |
| 252 | + SetAllowedFLReceiverEvent.OutputObject |
| 253 | + >; |
| 254 | + SetAllowedFLReceiver: TypedContractEvent< |
| 255 | + SetAllowedFLReceiverEvent.InputTuple, |
| 256 | + SetAllowedFLReceiverEvent.OutputTuple, |
| 257 | + SetAllowedFLReceiverEvent.OutputObject |
| 258 | + >; |
| 259 | + }; |
| 260 | +} |
0 commit comments