-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
176 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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,15 @@ | ||
[ | ||
{ | ||
"inputs": [], | ||
"name": "getFlashLoanFeePercentage", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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
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,64 @@ | ||
/* 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 } from '@ethersproject/abi'; | ||
import type { Listener, Provider } from '@ethersproject/providers'; | ||
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from './common'; | ||
|
||
export interface ProtocolFeesCollectorInterface extends utils.Interface { | ||
functions: { | ||
'getFlashLoanFeePercentage()': FunctionFragment; | ||
}; | ||
|
||
getFunction(nameOrSignatureOrTopic: 'getFlashLoanFeePercentage'): FunctionFragment; | ||
|
||
encodeFunctionData(functionFragment: 'getFlashLoanFeePercentage', values?: undefined): string; | ||
|
||
decodeFunctionResult(functionFragment: 'getFlashLoanFeePercentage', data: BytesLike): Result; | ||
|
||
events: {}; | ||
} | ||
|
||
export interface ProtocolFeesCollector extends BaseContract { | ||
connect(signerOrProvider: Signer | Provider | string): this; | ||
attach(addressOrName: string): this; | ||
deployed(): Promise<this>; | ||
|
||
interface: ProtocolFeesCollectorInterface; | ||
|
||
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: { | ||
getFlashLoanFeePercentage(overrides?: CallOverrides): Promise<[BigNumber]>; | ||
}; | ||
|
||
getFlashLoanFeePercentage(overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
callStatic: { | ||
getFlashLoanFeePercentage(overrides?: CallOverrides): Promise<BigNumber>; | ||
}; | ||
|
||
filters: {}; | ||
|
||
estimateGas: { | ||
getFlashLoanFeePercentage(overrides?: CallOverrides): Promise<BigNumber>; | ||
}; | ||
|
||
populateTransaction: { | ||
getFlashLoanFeePercentage(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
}; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/logics/balancer-v2/contracts/factories/ProtocolFeesCollector__factory.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,33 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import { Contract, Signer, utils } from 'ethers'; | ||
import type { Provider } from '@ethersproject/providers'; | ||
import type { ProtocolFeesCollector, ProtocolFeesCollectorInterface } from '../ProtocolFeesCollector'; | ||
|
||
const _abi = [ | ||
{ | ||
inputs: [], | ||
name: 'getFlashLoanFeePercentage', | ||
outputs: [ | ||
{ | ||
internalType: 'uint256', | ||
name: '', | ||
type: 'uint256', | ||
}, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
] as const; | ||
|
||
export class ProtocolFeesCollector__factory { | ||
static readonly abi = _abi; | ||
static createInterface(): ProtocolFeesCollectorInterface { | ||
return new utils.Interface(_abi) as ProtocolFeesCollectorInterface; | ||
} | ||
static connect(address: string, signerOrProvider: Signer | Provider): ProtocolFeesCollector { | ||
return new Contract(address, _abi, signerOrProvider) as ProtocolFeesCollector; | ||
} | ||
} |
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
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
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