This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(multicall): Resolve type errors (#402)
- Loading branch information
1 parent
5876957
commit 05b21be
Showing
13 changed files
with
1,287 additions
and
1,448 deletions.
There are no files selected for viewing
420 changes: 0 additions & 420 deletions
420
src/apps/keeper-dao/contracts/ethers/KeeperDaoLiquidityPoolDistributor.d.ts
This file was deleted.
Oops, something went wrong.
354 changes: 354 additions & 0 deletions
354
src/apps/keeper-dao/contracts/ethers/KeeperDaoLiquidityPoolDistributor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,354 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { | ||
BaseContract, | ||
BigNumber, | ||
BigNumberish, | ||
BytesLike, | ||
CallOverrides, | ||
ContractTransaction, | ||
Overrides, | ||
PopulatedTransaction, | ||
Signer, | ||
utils, | ||
} from 'ethers'; | ||
import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi'; | ||
import type { Listener, Provider } from '@ethersproject/providers'; | ||
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from './common'; | ||
|
||
export interface KeeperDaoLiquidityPoolDistributorInterface extends utils.Interface { | ||
functions: { | ||
'blacklistRecoverableToken(address)': FunctionFragment; | ||
'claim(address,uint256,uint256,bytes)': FunctionFragment; | ||
'claimedAmount(address)': FunctionFragment; | ||
'hashForSignature(address,uint256,uint256)': FunctionFragment; | ||
'lastUsedNonce(address)': FunctionFragment; | ||
'owner()': FunctionFragment; | ||
'recoverTokens(address)': FunctionFragment; | ||
'renounceOwnership()': FunctionFragment; | ||
'transferOwnership(address)': FunctionFragment; | ||
'updateAccountManager(address)': FunctionFragment; | ||
}; | ||
|
||
getFunction( | ||
nameOrSignatureOrTopic: | ||
| 'blacklistRecoverableToken' | ||
| 'claim' | ||
| 'claimedAmount' | ||
| 'hashForSignature' | ||
| 'lastUsedNonce' | ||
| 'owner' | ||
| 'recoverTokens' | ||
| 'renounceOwnership' | ||
| 'transferOwnership' | ||
| 'updateAccountManager', | ||
): FunctionFragment; | ||
|
||
encodeFunctionData(functionFragment: 'blacklistRecoverableToken', values: [string]): string; | ||
encodeFunctionData(functionFragment: 'claim', values: [string, BigNumberish, BigNumberish, BytesLike]): string; | ||
encodeFunctionData(functionFragment: 'claimedAmount', values: [string]): string; | ||
encodeFunctionData(functionFragment: 'hashForSignature', values: [string, BigNumberish, BigNumberish]): string; | ||
encodeFunctionData(functionFragment: 'lastUsedNonce', values: [string]): string; | ||
encodeFunctionData(functionFragment: 'owner', values?: undefined): string; | ||
encodeFunctionData(functionFragment: 'recoverTokens', values: [string]): string; | ||
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; | ||
encodeFunctionData(functionFragment: 'transferOwnership', values: [string]): string; | ||
encodeFunctionData(functionFragment: 'updateAccountManager', values: [string]): string; | ||
|
||
decodeFunctionResult(functionFragment: 'blacklistRecoverableToken', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'claim', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'claimedAmount', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'hashForSignature', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'lastUsedNonce', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'recoverTokens', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: 'updateAccountManager', data: BytesLike): Result; | ||
|
||
events: { | ||
'AccountManagerChanged(address,address)': EventFragment; | ||
'Claimed(address,uint256)': EventFragment; | ||
'OwnershipTransferred(address,address)': EventFragment; | ||
}; | ||
|
||
getEvent(nameOrSignatureOrTopic: 'AccountManagerChanged'): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: 'Claimed'): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; | ||
} | ||
|
||
export interface AccountManagerChangedEventObject { | ||
_oldAccountManager: string; | ||
_newAccountManager: string; | ||
} | ||
export type AccountManagerChangedEvent = TypedEvent<[string, string], AccountManagerChangedEventObject>; | ||
|
||
export type AccountManagerChangedEventFilter = TypedEventFilter<AccountManagerChangedEvent>; | ||
|
||
export interface ClaimedEventObject { | ||
_redeemer: string; | ||
_amount: BigNumber; | ||
} | ||
export type ClaimedEvent = TypedEvent<[string, BigNumber], ClaimedEventObject>; | ||
|
||
export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>; | ||
|
||
export interface OwnershipTransferredEventObject { | ||
previousOwner: string; | ||
newOwner: string; | ||
} | ||
export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; | ||
|
||
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>; | ||
|
||
export interface KeeperDaoLiquidityPoolDistributor extends BaseContract { | ||
connect(signerOrProvider: Signer | Provider | string): this; | ||
attach(addressOrName: string): this; | ||
deployed(): Promise<this>; | ||
|
||
interface: KeeperDaoLiquidityPoolDistributorInterface; | ||
|
||
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: { | ||
blacklistRecoverableToken( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
claim( | ||
_to: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
_signature: BytesLike, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
claimedAmount(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
|
||
hashForSignature( | ||
_owner: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
overrides?: CallOverrides, | ||
): Promise<[string]>; | ||
|
||
lastUsedNonce(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
|
||
owner(overrides?: CallOverrides): Promise<[string]>; | ||
|
||
recoverTokens( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
renounceOwnership(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>; | ||
|
||
transferOwnership( | ||
newOwner: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
updateAccountManager( | ||
_newAccountManager: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
}; | ||
|
||
blacklistRecoverableToken( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
claim( | ||
_to: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
_signature: BytesLike, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
claimedAmount(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
hashForSignature( | ||
_owner: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
overrides?: CallOverrides, | ||
): Promise<string>; | ||
|
||
lastUsedNonce(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
owner(overrides?: CallOverrides): Promise<string>; | ||
|
||
recoverTokens( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
renounceOwnership(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>; | ||
|
||
transferOwnership( | ||
newOwner: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
updateAccountManager( | ||
_newAccountManager: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<ContractTransaction>; | ||
|
||
callStatic: { | ||
blacklistRecoverableToken(_token: string, overrides?: CallOverrides): Promise<void>; | ||
|
||
claim( | ||
_to: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
_signature: BytesLike, | ||
overrides?: CallOverrides, | ||
): Promise<void>; | ||
|
||
claimedAmount(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
hashForSignature( | ||
_owner: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
overrides?: CallOverrides, | ||
): Promise<string>; | ||
|
||
lastUsedNonce(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
owner(overrides?: CallOverrides): Promise<string>; | ||
|
||
recoverTokens(_token: string, overrides?: CallOverrides): Promise<void>; | ||
|
||
renounceOwnership(overrides?: CallOverrides): Promise<void>; | ||
|
||
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>; | ||
|
||
updateAccountManager(_newAccountManager: string, overrides?: CallOverrides): Promise<void>; | ||
}; | ||
|
||
filters: { | ||
'AccountManagerChanged(address,address)'( | ||
_oldAccountManager?: string | null, | ||
_newAccountManager?: string | null, | ||
): AccountManagerChangedEventFilter; | ||
AccountManagerChanged( | ||
_oldAccountManager?: string | null, | ||
_newAccountManager?: string | null, | ||
): AccountManagerChangedEventFilter; | ||
|
||
'Claimed(address,uint256)'(_redeemer?: string | null, _amount?: null): ClaimedEventFilter; | ||
Claimed(_redeemer?: string | null, _amount?: null): ClaimedEventFilter; | ||
|
||
'OwnershipTransferred(address,address)'( | ||
previousOwner?: string | null, | ||
newOwner?: string | null, | ||
): OwnershipTransferredEventFilter; | ||
OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter; | ||
}; | ||
|
||
estimateGas: { | ||
blacklistRecoverableToken( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<BigNumber>; | ||
|
||
claim( | ||
_to: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
_signature: BytesLike, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<BigNumber>; | ||
|
||
claimedAmount(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
hashForSignature( | ||
_owner: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
overrides?: CallOverrides, | ||
): Promise<BigNumber>; | ||
|
||
lastUsedNonce(arg0: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
owner(overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
recoverTokens(_token: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>; | ||
|
||
renounceOwnership(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>; | ||
|
||
transferOwnership( | ||
newOwner: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<BigNumber>; | ||
|
||
updateAccountManager( | ||
_newAccountManager: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<BigNumber>; | ||
}; | ||
|
||
populateTransaction: { | ||
blacklistRecoverableToken( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<PopulatedTransaction>; | ||
|
||
claim( | ||
_to: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
_signature: BytesLike, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<PopulatedTransaction>; | ||
|
||
claimedAmount(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
|
||
hashForSignature( | ||
_owner: string, | ||
_earningsToDate: BigNumberish, | ||
_nonce: BigNumberish, | ||
overrides?: CallOverrides, | ||
): Promise<PopulatedTransaction>; | ||
|
||
lastUsedNonce(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
|
||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
|
||
recoverTokens( | ||
_token: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<PopulatedTransaction>; | ||
|
||
renounceOwnership(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>; | ||
|
||
transferOwnership( | ||
newOwner: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<PopulatedTransaction>; | ||
|
||
updateAccountManager( | ||
_newAccountManager: string, | ||
overrides?: Overrides & { from?: string | Promise<string> }, | ||
): Promise<PopulatedTransaction>; | ||
}; | ||
} |
Oops, something went wrong.