Skip to content

Commit

Permalink
typechain updates
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 21, 2023
1 parent 03b0867 commit 961a219
Show file tree
Hide file tree
Showing 12 changed files with 638 additions and 213 deletions.
93 changes: 70 additions & 23 deletions src/types/contracts/ERC20Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from './com
export interface ERC20PoolInterface extends utils.Interface {
functions: {
'addCollateral(uint256,uint256,uint256)': FunctionFragment;
'addQuoteToken(uint256,uint256,uint256,bool)': FunctionFragment;
'addQuoteToken(uint256,uint256,uint256)': FunctionFragment;
'approveLPTransferors(address[])': FunctionFragment;
'approvedTransferors(address,address)': FunctionFragment;
'auctionInfo(address)': FunctionFragment;
Expand Down Expand Up @@ -57,7 +57,7 @@ export interface ERC20PoolInterface extends utils.Interface {
'loansInfo()': FunctionFragment;
'lpAllowance(uint256,address,address)': FunctionFragment;
'maxFlashLoan(address)': FunctionFragment;
'moveQuoteToken(uint256,uint256,uint256,uint256,bool)': FunctionFragment;
'moveQuoteToken(uint256,uint256,uint256,uint256)': FunctionFragment;
'multicall(bytes[])': FunctionFragment;
'pledgedCollateral()': FunctionFragment;
'poolType()': FunctionFragment;
Expand Down Expand Up @@ -151,7 +151,7 @@ export interface ERC20PoolInterface extends utils.Interface {
): string;
encodeFunctionData(
functionFragment: 'addQuoteToken',
values: [BigNumberish, BigNumberish, BigNumberish, boolean]
values: [BigNumberish, BigNumberish, BigNumberish]
): string;
encodeFunctionData(functionFragment: 'approveLPTransferors', values: [string[]]): string;
encodeFunctionData(functionFragment: 'approvedTransferors', values: [string, string]): string;
Expand Down Expand Up @@ -209,7 +209,7 @@ export interface ERC20PoolInterface extends utils.Interface {
encodeFunctionData(functionFragment: 'maxFlashLoan', values: [string]): string;
encodeFunctionData(
functionFragment: 'moveQuoteToken',
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, boolean]
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
): string;
encodeFunctionData(functionFragment: 'multicall', values: [BytesLike[]]): string;
encodeFunctionData(functionFragment: 'pledgedCollateral', values?: undefined): string;
Expand Down Expand Up @@ -326,6 +326,7 @@ export interface ERC20PoolInterface extends utils.Interface {
'DrawDebt(address,uint256,uint256,uint256)': EventFragment;
'Flashloan(address,address,uint256)': EventFragment;
'IncreaseLPAllowance(address,address,uint256[],uint256[])': EventFragment;
'InterestUpdateFailure()': EventFragment;
'Kick(address,uint256,uint256,uint256)': EventFragment;
'KickReserveAuction(uint256,uint256,uint256)': EventFragment;
'LoanStamped(address)': EventFragment;
Expand Down Expand Up @@ -356,6 +357,7 @@ export interface ERC20PoolInterface extends utils.Interface {
getEvent(nameOrSignatureOrTopic: 'DrawDebt'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'Flashloan'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'IncreaseLPAllowance'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'InterestUpdateFailure'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'Kick'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'KickReserveAuction'): EventFragment;
getEvent(nameOrSignatureOrTopic: 'LoanStamped'): EventFragment;
Expand Down Expand Up @@ -525,6 +527,11 @@ export type IncreaseLPAllowanceEvent = TypedEvent<

export type IncreaseLPAllowanceEventFilter = TypedEventFilter<IncreaseLPAllowanceEvent>;

export interface InterestUpdateFailureEventObject {}
export type InterestUpdateFailureEvent = TypedEvent<[], InterestUpdateFailureEventObject>;

export type InterestUpdateFailureEventFilter = TypedEventFilter<InterestUpdateFailureEvent>;

export interface KickEventObject {
borrower: string;
debt: BigNumber;
Expand Down Expand Up @@ -740,7 +747,6 @@ export interface ERC20Pool extends BaseContract {
amount_: BigNumberish,
index_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

Expand All @@ -755,13 +761,25 @@ export interface ERC20Pool extends BaseContract {
borrower_: string,
overrides?: CallOverrides
): Promise<
[string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string, string, string] & {
[
string,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
string,
string,
string
] & {
kicker_: string;
bondFactor_: BigNumber;
bondSize_: BigNumber;
kickTime_: BigNumber;
referencePrice_: BigNumber;
neutralPrice_: BigNumber;
debtToCollateral_: BigNumber;
head_: string;
next_: string;
prev_: string;
Expand Down Expand Up @@ -909,7 +927,6 @@ export interface ERC20Pool extends BaseContract {
fromIndex_: BigNumberish,
toIndex_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

Expand Down Expand Up @@ -947,7 +964,9 @@ export interface ERC20Pool extends BaseContract {
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

reservesInfo(overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>;
reservesInfo(
overrides?: CallOverrides
): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;

revokeLPAllowance(
spender_: string,
Expand Down Expand Up @@ -1014,7 +1033,6 @@ export interface ERC20Pool extends BaseContract {
amount_: BigNumberish,
index_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

Expand All @@ -1029,13 +1047,25 @@ export interface ERC20Pool extends BaseContract {
borrower_: string,
overrides?: CallOverrides
): Promise<
[string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string, string, string] & {
[
string,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
string,
string,
string
] & {
kicker_: string;
bondFactor_: BigNumber;
bondSize_: BigNumber;
kickTime_: BigNumber;
referencePrice_: BigNumber;
neutralPrice_: BigNumber;
debtToCollateral_: BigNumber;
head_: string;
next_: string;
prev_: string;
Expand Down Expand Up @@ -1169,7 +1199,6 @@ export interface ERC20Pool extends BaseContract {
fromIndex_: BigNumberish,
toIndex_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

Expand Down Expand Up @@ -1207,7 +1236,9 @@ export interface ERC20Pool extends BaseContract {
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;

reservesInfo(overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>;
reservesInfo(
overrides?: CallOverrides
): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;

revokeLPAllowance(
spender_: string,
Expand Down Expand Up @@ -1274,9 +1305,8 @@ export interface ERC20Pool extends BaseContract {
amount_: BigNumberish,
index_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: CallOverrides
): Promise<BigNumber>;
): Promise<[BigNumber, BigNumber] & { bucketLP_: BigNumber; addedAmount_: BigNumber }>;

approveLPTransferors(transferors_: string[], overrides?: CallOverrides): Promise<void>;

Expand All @@ -1286,13 +1316,25 @@ export interface ERC20Pool extends BaseContract {
borrower_: string,
overrides?: CallOverrides
): Promise<
[string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string, string, string] & {
[
string,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
BigNumber,
string,
string,
string
] & {
kicker_: string;
bondFactor_: BigNumber;
bondSize_: BigNumber;
kickTime_: BigNumber;
referencePrice_: BigNumber;
neutralPrice_: BigNumber;
debtToCollateral_: BigNumber;
head_: string;
next_: string;
prev_: string;
Expand Down Expand Up @@ -1424,7 +1466,6 @@ export interface ERC20Pool extends BaseContract {
fromIndex_: BigNumberish,
toIndex_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber, BigNumber] & {
Expand Down Expand Up @@ -1475,7 +1516,9 @@ export interface ERC20Pool extends BaseContract {
overrides?: CallOverrides
): Promise<BigNumber>;

reservesInfo(overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>;
reservesInfo(
overrides?: CallOverrides
): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;

revokeLPAllowance(
spender_: string,
Expand All @@ -1489,7 +1532,12 @@ export interface ERC20Pool extends BaseContract {
borrowerAddress_: string,
maxDepth_: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
): Promise<
[BigNumber, boolean] & {
collateralSettled_: BigNumber;
isBorrowerSettled_: boolean;
}
>;

stampLoan(overrides?: CallOverrides): Promise<void>;

Expand Down Expand Up @@ -1522,7 +1570,7 @@ export interface ERC20Pool extends BaseContract {
recipient_: string,
maxAmount_: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
): Promise<BigNumber>;
};

filters: {
Expand Down Expand Up @@ -1675,6 +1723,9 @@ export interface ERC20Pool extends BaseContract {
amounts?: null
): IncreaseLPAllowanceEventFilter;

'InterestUpdateFailure()'(): InterestUpdateFailureEventFilter;
InterestUpdateFailure(): InterestUpdateFailureEventFilter;

'Kick(address,uint256,uint256,uint256)'(
borrower?: string | null,
debt?: null,
Expand Down Expand Up @@ -1836,7 +1887,6 @@ export interface ERC20Pool extends BaseContract {
amount_: BigNumberish,
index_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<BigNumber>;

Expand Down Expand Up @@ -1964,7 +2014,6 @@ export interface ERC20Pool extends BaseContract {
fromIndex_: BigNumberish,
toIndex_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<BigNumber>;

Expand Down Expand Up @@ -2067,7 +2116,6 @@ export interface ERC20Pool extends BaseContract {
amount_: BigNumberish,
index_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;

Expand Down Expand Up @@ -2218,7 +2266,6 @@ export interface ERC20Pool extends BaseContract {
fromIndex_: BigNumberish,
toIndex_: BigNumberish,
expiry_: BigNumberish,
revertIfBelowLup_: boolean,
overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;

Expand Down
9 changes: 5 additions & 4 deletions src/types/contracts/ERC20PoolFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@ export interface ERC20PoolFactoryInterface extends utils.Interface {
decodeFunctionResult(functionFragment: 'implementation', data: BytesLike): Result;

events: {
'PoolCreated(address)': EventFragment;
'PoolCreated(address,bytes32)': EventFragment;
};

getEvent(nameOrSignatureOrTopic: 'PoolCreated'): EventFragment;
}

export interface PoolCreatedEventObject {
pool_: string;
subsetHash_: string;
}
export type PoolCreatedEvent = TypedEvent<[string], PoolCreatedEventObject>;
export type PoolCreatedEvent = TypedEvent<[string, string], PoolCreatedEventObject>;

export type PoolCreatedEventFilter = TypedEventFilter<PoolCreatedEvent>;

Expand Down Expand Up @@ -208,8 +209,8 @@ export interface ERC20PoolFactory extends BaseContract {
};

filters: {
'PoolCreated(address)'(pool_?: null): PoolCreatedEventFilter;
PoolCreated(pool_?: null): PoolCreatedEventFilter;
'PoolCreated(address,bytes32)'(pool_?: null, subsetHash_?: null): PoolCreatedEventFilter;
PoolCreated(pool_?: null, subsetHash_?: null): PoolCreatedEventFilter;
};

estimateGas: {
Expand Down
Loading

0 comments on commit 961a219

Please sign in to comment.