diff --git a/src/apps/aurigami/assets/logo.png b/src/apps/aurigami/assets/logo.png deleted file mode 100644 index f6a9b5a23..000000000 Binary files a/src/apps/aurigami/assets/logo.png and /dev/null differ diff --git a/src/apps/aurigami/aurigami.module.ts b/src/apps/aurigami/aurigami.module.ts deleted file mode 100644 index b984eb39f..000000000 --- a/src/apps/aurigami/aurigami.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; - -import { AuroraAurigamiBorrowContractPositionFetcher } from './aurora/aurigami.borrow.contract-position-fetcher'; -import { AuroraAurigamiClaimableContractPositionFetcher } from './aurora/aurigami.claimable.contract-position-fetcher'; -import { AuroraAurigamiPositionPresenter } from './aurora/aurigami.position-presenter'; -import { AuroraAurigamiSupplyTokenFetcher } from './aurora/aurigami.supply.token-fetcher'; -import { AurigamiContractFactory } from './contracts'; - -@Module({ - providers: [ - AurigamiContractFactory, - AuroraAurigamiBorrowContractPositionFetcher, - AuroraAurigamiClaimableContractPositionFetcher, - AuroraAurigamiPositionPresenter, - AuroraAurigamiSupplyTokenFetcher, - ], -}) -export class AurigamiAppModule extends AbstractApp() {} diff --git a/src/apps/aurigami/aurora/aurigami.borrow.contract-position-fetcher.ts b/src/apps/aurigami/aurora/aurigami.borrow.contract-position-fetcher.ts deleted file mode 100644 index d680ac9bd..000000000 --- a/src/apps/aurigami/aurora/aurigami.borrow.contract-position-fetcher.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - CompoundBorrowContractPositionFetcher, - CompoundBorrowTokenDataProps, - GetMarketsParams, -} from '~apps/compound/common/compound.borrow.contract-position-fetcher'; -import { - GetDataPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, -} from '~position/template/contract-position.template.types'; - -import { AurigamiAuToken, AurigamiComptroller, AurigamiContractFactory } from '../contracts'; - -@PositionTemplate() -export class AuroraAurigamiBorrowContractPositionFetcher extends CompoundBorrowContractPositionFetcher< - AurigamiAuToken, - AurigamiComptroller -> { - groupLabel = 'Lending'; - comptrollerAddress = '0x817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(AurigamiContractFactory) protected readonly contractFactory: AurigamiContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.aurigamiAuToken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.aurigamiComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetTokenDefinitionsParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetDataPropsParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa(params: GetDataPropsParams) { - const [underlyingToken] = params.contractPosition.tokens; - const auTokenDecimals = await this.getCTokenDecimals(params); - return 18 + underlyingToken.decimals - auTokenDecimals; - } - - async getBorrowRate({ contract }: GetDataPropsParams) { - return contract.callStatic.borrowRatePerTimestamp().catch(() => 0); - } - - async getCash({ contract }: GetDataPropsParams) { - return contract.getCash(); - } - - async getCTokenSupply({ contract }: GetDataPropsParams) { - return contract.totalSupply(); - } - - async getCTokenDecimals({ contract }: GetDataPropsParams) { - return contract.decimals(); - } - - async getBorrowBalance({ address, contract }: GetTokenBalancesParams) { - return contract.callStatic.borrowBalanceCurrent(address); - } -} diff --git a/src/apps/aurigami/aurora/aurigami.claimable.contract-position-fetcher.ts b/src/apps/aurigami/aurora/aurigami.claimable.contract-position-fetcher.ts deleted file mode 100644 index 6ad2cdef5..000000000 --- a/src/apps/aurigami/aurora/aurigami.claimable.contract-position-fetcher.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { Inject } from '@nestjs/common'; -import { BigNumberish } from 'ethers'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; -import { MetaType } from '~position/position.interface'; -import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; -import { - DefaultContractPositionDefinition, - GetDisplayPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, - UnderlyingTokenDefinition, -} from '~position/template/contract-position.template.types'; - -import { AurigamiComptroller, AurigamiContractFactory } from '../contracts'; - -@PositionTemplate() -export class AuroraAurigamiClaimableContractPositionFetcher extends ContractPositionTemplatePositionFetcher { - groupLabel = 'Rewards'; - - private lensAddress = '0xffdffbdb966cb84b50e62d70105f2dbf2e0a1e70'; - private fairLaunchAddress = '0xc9a848ac73e378516b16e4eebba5ef6afbc0bbc2'; - private rewardTokenAddress = '0x09c9d464b58d96837f8d8b6f4d9fe4ad408d3a4f'; // PLY - private comptrollerAddress = '0x817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb'; - private stakingPoolIds = [0]; // Currently aurigami has only 1 staking pool - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(AurigamiContractFactory) private readonly contractFactory: AurigamiContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): AurigamiComptroller { - return this.contractFactory.aurigamiComptroller({ address, network: this.network }); - } - - async getDefinitions(): Promise { - return [{ address: this.comptrollerAddress }]; - } - - async getTokenDefinitions( - _opts: GetTokenDefinitionsParams, - ): Promise { - return [ - { - metaType: MetaType.CLAIMABLE, - address: this.rewardTokenAddress, - network: this.network, - }, - ]; - } - - async getLabel({ contractPosition }: GetDisplayPropsParams) { - const rewardToken = contractPosition.tokens[0]; - return `Claimable ${getLabelFromToken(rewardToken)}`; - } - - async getTokenBalancesPerPosition({ - address, - contractPosition, - }: GetTokenBalancesParams): Promise { - const { address: comptrollerAddress } = contractPosition; - - const lensContract = this.contractFactory.aurigamiLens({ address: this.lensAddress, network: this.network }); - const rewardMetadata = await lensContract.callStatic.claimRewards( - comptrollerAddress, - this.fairLaunchAddress, - this.stakingPoolIds, - { from: address }, - ); - - return [rewardMetadata.plyAccrured]; - } -} diff --git a/src/apps/aurigami/aurora/aurigami.position-presenter.ts b/src/apps/aurigami/aurora/aurigami.position-presenter.ts deleted file mode 100644 index c7b2e8d9e..000000000 --- a/src/apps/aurigami/aurora/aurigami.position-presenter.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; -import { CompoundPositionPresenter } from '~apps/compound/common/compound.position-presenter'; - -@PresenterTemplate() -export class AuroraAurigamiPositionPresenter extends CompoundPositionPresenter {} diff --git a/src/apps/aurigami/aurora/aurigami.supply.token-fetcher.ts b/src/apps/aurigami/aurora/aurigami.supply.token-fetcher.ts deleted file mode 100644 index 12ae45e7d..000000000 --- a/src/apps/aurigami/aurora/aurigami.supply.token-fetcher.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { CompoundSupplyTokenFetcher, GetMarketsParams } from '~apps/compound/common/compound.supply.token-fetcher'; -import { - GetDataPropsParams, - GetPricePerShareParams, - GetUnderlyingTokensParams, -} from '~position/template/app-token.template.types'; - -import { AurigamiAuToken, AurigamiComptroller, AurigamiContractFactory } from '../contracts'; - -@PositionTemplate() -export class AuroraAurigamiSupplyTokenFetcher extends CompoundSupplyTokenFetcher { - groupLabel = 'Lending'; - comptrollerAddress = '0x817af6cfaf35bdc1a634d6cc94ee9e4c68369aeb'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(AurigamiContractFactory) protected readonly contractFactory: AurigamiContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.aurigamiAuToken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.aurigamiComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetUnderlyingTokensParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetPricePerShareParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa({ appToken }: GetPricePerShareParams) { - const [underlyingToken] = appToken.tokens; - return 18 + underlyingToken.decimals - appToken.decimals; - } - - async getSupplyRate({ contract }: GetDataPropsParams) { - return contract.supplyRatePerTimestamp().catch(() => 0); - } -} diff --git a/src/apps/aurigami/contracts/abis/aurigami-au-token.json b/src/apps/aurigami/contracts/abis/aurigami-au-token.json deleted file mode 100644 index 496cfe06a..000000000 --- a/src/apps/aurigami/contracts/abis/aurigami-au-token.json +++ /dev/null @@ -1,1299 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "underlying_", - "type": "address" - }, - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name_", - "type": "string" - }, - { - "internalType": "string", - "name": "symbol_", - "type": "string" - }, - { - "internalType": "uint8", - "name": "decimals_", - "type": "uint8" - }, - { - "internalType": "address payable", - "name": "admin_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "BadInput", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidAccountPair", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidCloseAmountRequested", - "type": "error" - }, - { - "inputs": [], - "name": "MarketNotFresh", - "type": "error" - }, - { - "inputs": [], - "name": "TokenInsufficientCash", - "type": "error" - }, - { - "inputs": [], - "name": "Unauthorized", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "cashPrior", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "interestAccumulated", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "AccrueInterest", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "Borrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auTokenCollateral", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "LiquidateBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintTokens", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "oldComptroller", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "NewComptroller", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "oldInterestRateModel", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "NewMarketInterestRateModel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPendingAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldProtocolSeizeShareMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newProtocolSeizeShareMantissa", - "type": "uint256" - } - ], - "name": "NewProtocolSeizeShare", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldReserveFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "NewReserveFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "RepayBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "benefactor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "admin", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesReduced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [], - "name": "_acceptAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - } - ], - "name": "_addReserves", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - } - ], - "name": "_reduceReserves", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "_setComptroller", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "_setInterestRateModel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "_setPendingAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newProtocolSeizeShareMantissa", - "type": "uint256" - } - ], - "name": "_setProtocolSeizeShare", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "_setReserveFactor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accrualBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accrueInterest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address payable", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOfUnderlying", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "borrow", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "borrowBalanceCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "borrowBalanceStored", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowRatePerTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "comptroller", - "outputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateStored", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAccountSnapshot", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBorrowDataOfAccount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getCash", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getSupplyDataOfOneAccount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account1", - "type": "address" - }, - { - "internalType": "address", - "name": "account2", - "type": "address" - } - ], - "name": "getSupplyDataOfTwoAccount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "interestRateModel", - "outputs": [ - { - "internalType": "contract InterestRateModel", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isAuToken", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "internalType": "contract AuTokenInterface", - "name": "auTokenCollateral", - "type": "address" - } - ], - "name": "liquidateBorrow", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { - "internalType": "address payable", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolSeizeShareMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - } - ], - "name": "redeemUnderlying", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrow", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrowBehalf", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "reserveFactorMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "seize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "supplyRatePerTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract EIP20NonStandardInterface", - "name": "token", - "type": "address" - } - ], - "name": "sweepToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrows", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrowsCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "underlying", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/aurigami/contracts/abis/aurigami-comptroller.json b/src/apps/aurigami/contracts/abis/aurigami-comptroller.json deleted file mode 100644 index 1cf2b3267..000000000 --- a/src/apps/aurigami/contracts/abis/aurigami-comptroller.json +++ /dev/null @@ -1,1948 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "InsufficientLiquidity", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientShortfall", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidCollateralFactor", - "type": "error" - }, - { - "inputs": [], - "name": "MarketAlreadyListed", - "type": "error" - }, - { - "inputs": [], - "name": "MarketCollateralFactorZero", - "type": "error" - }, - { - "inputs": [], - "name": "MarketNotListed", - "type": "error" - }, - { - "inputs": [], - "name": "NonzeroBorrowBalance", - "type": "error" - }, - { - "inputs": [], - "name": "PriceError", - "type": "error" - }, - { - "inputs": [], - "name": "TooMuchRepay", - "type": "error" - }, - { - "inputs": [], - "name": "Unauthorized", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "action", - "type": "string" - }, - { - "indexed": false, - "internalType": "bool", - "name": "pauseState", - "type": "bool" - } - ], - "name": "ActionPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "contributor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSpeed", - "type": "uint256" - } - ], - "name": "ContributorPlySpeedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint8", - "name": "tokenType", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "plyDelta", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "plyBorrowIndex", - "type": "uint256" - } - ], - "name": "DistributedBorrowerReward", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint8", - "name": "tokenType", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "plyDelta", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "plyBorrowIndex", - "type": "uint256" - } - ], - "name": "DistributedSupplierReward", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "MarketEntered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "MarketExited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "MarketListed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newBorrowCap", - "type": "uint256" - } - ], - "name": "NewBorrowCap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldBorrowCapGuardian", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newBorrowCapGuardian", - "type": "address" - } - ], - "name": "NewBorrowCapGuardian", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldCloseFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCloseFactorMantissa", - "type": "uint256" - } - ], - "name": "NewCloseFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldCollateralFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCollateralFactorMantissa", - "type": "uint256" - } - ], - "name": "NewCollateralFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldLiquidationIncentiveMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newLiquidationIncentiveMantissa", - "type": "uint256" - } - ], - "name": "NewLiquidationIncentive", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newMintCap", - "type": "uint256" - } - ], - "name": "NewMintCap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldMintCapGuardian", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newMintCapGuardian", - "type": "address" - } - ], - "name": "NewMintCapGuardian", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPauseGuardian", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPauseGuardian", - "type": "address" - } - ], - "name": "NewPauseGuardian", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract PriceOracle", - "name": "oldPriceOracle", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract PriceOracle", - "name": "newPriceOracle", - "type": "address" - } - ], - "name": "NewPriceOracle", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "PlyGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "tokenType", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "isSupply", - "type": "bool" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSpeed", - "type": "uint256" - } - ], - "name": "SpeedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "newStatus", - "type": "bool" - } - ], - "name": "WhitelistStatusChanged", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "contract Unitroller", - "name": "unitroller", - "type": "address" - } - ], - "name": "_become", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "_borrowGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "_grantPly", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "_mintGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newBorrowCapGuardian", - "type": "address" - } - ], - "name": "_setBorrowCapGuardian", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setBorrowPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newCloseFactorMantissa", - "type": "uint256" - } - ], - "name": "_setCloseFactor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "newCollateralFactorMantissa", - "type": "uint256" - } - ], - "name": "_setCollateralFactor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newLiquidationIncentiveMantissa", - "type": "uint256" - } - ], - "name": "_setLiquidationIncentive", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "newBorrowCaps", - "type": "uint256[]" - } - ], - "name": "_setMarketBorrowCaps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "newMintCaps", - "type": "uint256[]" - } - ], - "name": "_setMarketMintCaps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxAssets", - "type": "uint256" - } - ], - "name": "_setMaxAssets", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newMintCapGuardian", - "type": "address" - } - ], - "name": "_setMintCapGuardian", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - }, - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setMintPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newPauseGuardian", - "type": "address" - } - ], - "name": "_setPauseGuardian", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract PriceOracle", - "name": "newOracle", - "type": "address" - } - ], - "name": "_setPriceOracle", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "rewardType", - "type": "uint8" - }, - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "rewardSpeeds", - "type": "uint256[]" - }, - { - "internalType": "bool[]", - "name": "isSupply", - "type": "bool[]" - } - ], - "name": "_setRewardSpeeds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setSeizePaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setTransferPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "_supportMarket", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "accountAssets", - "outputs": [ - { - "internalType": "contract AuToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "allMarkets", - "outputs": [ - { - "internalType": "contract AuToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aurora", - "outputs": [ - { - "internalType": "contract EIP20Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "borrowAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "borrowCapGuardian", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "borrowCaps", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "borrowGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "checkMembership", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "rewardType", - "type": "uint8" - }, - { - "internalType": "address", - "name": "holder", - "type": "address" - } - ], - "name": "claimReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "rewardType", - "type": "uint8" - }, - { - "internalType": "address", - "name": "holder", - "type": "address" - }, - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - } - ], - "name": "claimReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "rewardType", - "type": "uint8" - }, - { - "internalType": "address[]", - "name": "holders", - "type": "address[]" - }, - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - }, - { - "internalType": "bool", - "name": "borrowers", - "type": "bool" - }, - { - "internalType": "bool", - "name": "suppliers", - "type": "bool" - } - ], - "name": "claimReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "closeFactorMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "comptrollerImplementation", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "auTokens", - "type": "address[]" - } - ], - "name": "enterMarkets", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auTokenAddress", - "type": "address" - } - ], - "name": "exitMarket", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAccountLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllMarkets", - "outputs": [ - { - "internalType": "contract AuToken[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAssetsIn", - "outputs": [ - { - "internalType": "contract AuToken[]", - "name": "assetsIn", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "address", - "name": "auTokenModify", - "type": "address" - }, - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "getHypotheticalAccountLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "initialIndexConstant", - "outputs": [ - { - "internalType": "uint224", - "name": "", - "type": "uint224" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "address", - "name": "claimer", - "type": "address" - } - ], - "name": "isAllowedToClaimReward", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isComptroller", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isWhitelisted", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "auTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "liquidateBorrowAllowed", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "auTokenCollateral", - "type": "address" - }, - { - "internalType": "uint256", - "name": "actualRepayAmount", - "type": "uint256" - } - ], - "name": "liquidateCalculateSeizeTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "liquidationIncentiveMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "markets", - "outputs": [ - { - "internalType": "bool", - "name": "isListed", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "collateralFactorMantissa", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isPlyed", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxAssets", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - } - ], - "name": "mintAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "mintCapGuardian", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "mintCaps", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "mintGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "oracle", - "outputs": [ - { - "internalType": "contract PriceOracle", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pauseGuardian", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingComptrollerImplementation", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ply", - "outputs": [ - { - "internalType": "contract EIP20Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pulp", - "outputs": [ - { - "internalType": "contract PULPInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "redeemAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrowAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardAccrued", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardAurora", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardBorrowState", - "outputs": [ - { - "internalType": "uint224", - "name": "index", - "type": "uint224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardBorrowerIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardClaimStart", - "outputs": [ - { - "internalType": "uint32", - "name": "", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardPly", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "name": "rewardRate", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "name": "rewardSpeeds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardSupplierIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewardSupplyState", - "outputs": [ - { - "internalType": "uint224", - "name": "index", - "type": "uint224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "auTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "seizeAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "seizeGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract PULPInterface", - "name": "newPulp", - "type": "address" - } - ], - "name": "setLockAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "newRewardClaimStart", - "type": "uint32" - } - ], - "name": "setRewardClaimStart", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract EIP20Interface", - "name": "newPly", - "type": "address" - }, - { - "internalType": "contract EIP20Interface", - "name": "newAurora", - "type": "address" - } - ], - "name": "setTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "addr", - "type": "address" - }, - { - "internalType": "bool", - "name": "whitelisted", - "type": "bool" - } - ], - "name": "setWhitelisted", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "transferTokens", - "type": "uint256" - } - ], - "name": "transferAllowed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "transferGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/aurigami/contracts/abis/aurigami-lens.json b/src/apps/aurigami/contracts/abis/aurigami-lens.json deleted file mode 100644 index 9bf23fa0e..000000000 --- a/src/apps/aurigami/contracts/abis/aurigami-lens.json +++ /dev/null @@ -1,813 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "_WNEAR", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "previousAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "AdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "beacon", - "type": "address" - } - ], - "name": "BeaconUpgraded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "Upgraded", - "type": "event" - }, - { - "inputs": [], - "name": "WNEAR", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "auTokenBalances", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "balanceOf", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowBalanceCurrent", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "balanceOfUnderlying", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenBalance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenAllowance", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenBalances", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - } - ], - "name": "auTokenBalancesAll", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "balanceOf", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowBalanceCurrent", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "balanceOfUnderlying", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenBalance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenAllowance", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenBalances[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - } - ], - "name": "auTokenMetadataAllNonView", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "exchangeRateCurrent", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "supplyRatePerBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowRatePerBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveFactorMantissa", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalReserves", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalCash", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isListed", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "collateralFactorMantissa", - "type": "uint256" - }, - { - "internalType": "address", - "name": "underlyingAssetAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "auTokenDecimals", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "underlyingDecimals", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "plyRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "plyRewardBorrowSpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardBorrowSpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowCap", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenMetadata[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "auTokenMetadataNonView", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "exchangeRateCurrent", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "supplyRatePerBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowRatePerBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "reserveFactorMantissa", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalReserves", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalCash", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isListed", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "collateralFactorMantissa", - "type": "uint256" - }, - { - "internalType": "address", - "name": "underlyingAssetAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "auTokenDecimals", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "underlyingDecimals", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "plyRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "plyRewardBorrowSpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardBorrowSpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowCap", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenMetadata", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "auTokenUnderlyingPrice", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "underlyingPrice", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenUnderlyingPrice", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract AuToken[]", - "name": "auTokens", - "type": "address[]" - } - ], - "name": "auTokenUnderlyingPriceAll", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "auToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "underlyingPrice", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AuTokenUnderlyingPrice[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerLensInterface", - "name": "comptroller", - "type": "address" - }, - { - "internalType": "contract AuriFairLaunchInterface", - "name": "fairLaunch", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "pids", - "type": "uint256[]" - } - ], - "name": "claimRewards", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "plyAccrured", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraClaimable", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "wnearClaimable", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.RewardBalancesMetadata", - "name": "rewardData", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerLensInterface", - "name": "comptroller", - "type": "address" - } - ], - "name": "getAccountLimits", - "outputs": [ - { - "components": [ - { - "internalType": "contract AuToken[]", - "name": "markets", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "liquidity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "shortfall", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.AccountLimits", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerLensInterface", - "name": "comptroller", - "type": "address" - } - ], - "name": "getAddresses", - "outputs": [ - { - "internalType": "address", - "name": "ply", - "type": "address" - }, - { - "internalType": "address", - "name": "aurora", - "type": "address" - }, - { - "internalType": "address", - "name": "wnear", - "type": "address" - }, - { - "internalType": "address", - "name": "pulp", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract PULPInterface", - "name": "pulp", - "type": "address" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "int256", - "name": "weekInt", - "type": "int256" - } - ], - "name": "getPercentLock", - "outputs": [ - { - "internalType": "uint256", - "name": "percentLock", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerLensInterface", - "name": "comptroller", - "type": "address" - }, - { - "internalType": "contract AuToken", - "name": "auToken", - "type": "address" - } - ], - "name": "getRewardSpeeds", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "plyRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "plyRewardBorrowSpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardSupplySpeed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraRewardBorrowSpeed", - "type": "uint256" - } - ], - "internalType": "struct AuriLens.RewardSpeeds", - "name": "rewardSpeeds", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract PULPInterface", - "name": "pulp", - "type": "address" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "targetUnlockPercent", - "type": "uint256" - } - ], - "name": "getWeekToUnlock", - "outputs": [ - { - "internalType": "int256", - "name": "", - "type": "int256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingOwner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proxiableUUID", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - }, - { - "internalType": "bool", - "name": "direct", - "type": "bool" - }, - { - "internalType": "bool", - "name": "renounce", - "type": "bool" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - } - ], - "name": "upgradeTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "upgradeToAndCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - } -] diff --git a/src/apps/aurigami/contracts/ethers/AurigamiAuToken.ts b/src/apps/aurigami/contracts/ethers/AurigamiAuToken.ts deleted file mode 100644 index 7dedf3d2e..000000000 --- a/src/apps/aurigami/contracts/ethers/AurigamiAuToken.ts +++ /dev/null @@ -1,1499 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface AurigamiAuTokenInterface extends utils.Interface { - functions: { - '_acceptAdmin()': FunctionFragment; - '_addReserves(uint256)': FunctionFragment; - '_reduceReserves(uint256)': FunctionFragment; - '_setComptroller(address)': FunctionFragment; - '_setInterestRateModel(address)': FunctionFragment; - '_setPendingAdmin(address)': FunctionFragment; - '_setProtocolSeizeShare(uint256)': FunctionFragment; - '_setReserveFactor(uint256)': FunctionFragment; - 'accrualBlockTimestamp()': FunctionFragment; - 'accrueInterest()': FunctionFragment; - 'admin()': FunctionFragment; - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'balanceOfUnderlying(address)': FunctionFragment; - 'borrow(uint256)': FunctionFragment; - 'borrowBalanceCurrent(address)': FunctionFragment; - 'borrowBalanceStored(address)': FunctionFragment; - 'borrowIndex()': FunctionFragment; - 'borrowRatePerTimestamp()': FunctionFragment; - 'comptroller()': FunctionFragment; - 'decimals()': FunctionFragment; - 'exchangeRateCurrent()': FunctionFragment; - 'exchangeRateStored()': FunctionFragment; - 'getAccountSnapshot(address)': FunctionFragment; - 'getBorrowDataOfAccount(address)': FunctionFragment; - 'getCash()': FunctionFragment; - 'getSupplyDataOfOneAccount(address)': FunctionFragment; - 'getSupplyDataOfTwoAccount(address,address)': FunctionFragment; - 'interestRateModel()': FunctionFragment; - 'isAuToken()': FunctionFragment; - 'liquidateBorrow(address,uint256,address)': FunctionFragment; - 'mint(uint256)': FunctionFragment; - 'name()': FunctionFragment; - 'pendingAdmin()': FunctionFragment; - 'protocolSeizeShareMantissa()': FunctionFragment; - 'redeem(uint256)': FunctionFragment; - 'redeemUnderlying(uint256)': FunctionFragment; - 'repayBorrow(uint256)': FunctionFragment; - 'repayBorrowBehalf(address,uint256)': FunctionFragment; - 'reserveFactorMantissa()': FunctionFragment; - 'seize(address,address,uint256)': FunctionFragment; - 'supplyRatePerTimestamp()': FunctionFragment; - 'sweepToken(address)': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalBorrows()': FunctionFragment; - 'totalBorrowsCurrent()': FunctionFragment; - 'totalReserves()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'underlying()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | '_acceptAdmin' - | '_addReserves' - | '_reduceReserves' - | '_setComptroller' - | '_setInterestRateModel' - | '_setPendingAdmin' - | '_setProtocolSeizeShare' - | '_setReserveFactor' - | 'accrualBlockTimestamp' - | 'accrueInterest' - | 'admin' - | 'allowance' - | 'approve' - | 'balanceOf' - | 'balanceOfUnderlying' - | 'borrow' - | 'borrowBalanceCurrent' - | 'borrowBalanceStored' - | 'borrowIndex' - | 'borrowRatePerTimestamp' - | 'comptroller' - | 'decimals' - | 'exchangeRateCurrent' - | 'exchangeRateStored' - | 'getAccountSnapshot' - | 'getBorrowDataOfAccount' - | 'getCash' - | 'getSupplyDataOfOneAccount' - | 'getSupplyDataOfTwoAccount' - | 'interestRateModel' - | 'isAuToken' - | 'liquidateBorrow' - | 'mint' - | 'name' - | 'pendingAdmin' - | 'protocolSeizeShareMantissa' - | 'redeem' - | 'redeemUnderlying' - | 'repayBorrow' - | 'repayBorrowBehalf' - | 'reserveFactorMantissa' - | 'seize' - | 'supplyRatePerTimestamp' - | 'sweepToken' - | 'symbol' - | 'totalBorrows' - | 'totalBorrowsCurrent' - | 'totalReserves' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'underlying', - ): FunctionFragment; - - encodeFunctionData(functionFragment: '_acceptAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: '_addReserves', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_reduceReserves', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setComptroller', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setInterestRateModel', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setPendingAdmin', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setProtocolSeizeShare', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setReserveFactor', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'accrualBlockTimestamp', values?: undefined): string; - encodeFunctionData(functionFragment: 'accrueInterest', values?: undefined): string; - encodeFunctionData(functionFragment: 'admin', values?: undefined): string; - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'balanceOfUnderlying', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrow', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowBalanceCurrent', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowBalanceStored', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowIndex', values?: undefined): string; - encodeFunctionData(functionFragment: 'borrowRatePerTimestamp', values?: undefined): string; - encodeFunctionData(functionFragment: 'comptroller', values?: undefined): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData(functionFragment: 'exchangeRateCurrent', values?: undefined): string; - encodeFunctionData(functionFragment: 'exchangeRateStored', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAccountSnapshot', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getBorrowDataOfAccount', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getCash', values?: undefined): string; - encodeFunctionData(functionFragment: 'getSupplyDataOfOneAccount', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getSupplyDataOfTwoAccount', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'interestRateModel', values?: undefined): string; - encodeFunctionData(functionFragment: 'isAuToken', values?: undefined): string; - encodeFunctionData( - functionFragment: 'liquidateBorrow', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'mint', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: 'protocolSeizeShareMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'redeem', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'redeemUnderlying', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'repayBorrow', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'repayBorrowBehalf', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'reserveFactorMantissa', values?: undefined): string; - encodeFunctionData( - functionFragment: 'seize', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'supplyRatePerTimestamp', values?: undefined): string; - encodeFunctionData(functionFragment: 'sweepToken', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalBorrows', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalBorrowsCurrent', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalReserves', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'underlying', values?: undefined): string; - - decodeFunctionResult(functionFragment: '_acceptAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_addReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_reduceReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setComptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setInterestRateModel', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setProtocolSeizeShare', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setReserveFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accrualBlockTimestamp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accrueInterest', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOfUnderlying', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowBalanceCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowBalanceStored', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowRatePerTimestamp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'comptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exchangeRateCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exchangeRateStored', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAccountSnapshot', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getBorrowDataOfAccount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getCash', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getSupplyDataOfOneAccount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getSupplyDataOfTwoAccount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'interestRateModel', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isAuToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateBorrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'protocolSeizeShareMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeem', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemUnderlying', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrowBehalf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'reserveFactorMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'supplyRatePerTimestamp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'sweepToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalBorrows', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalBorrowsCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'underlying', data: BytesLike): Result; - - events: { - 'AccrueInterest(uint256,uint256,uint256,uint256)': EventFragment; - 'Approval(address,address,uint256)': EventFragment; - 'Borrow(address,uint256,uint256,uint256)': EventFragment; - 'LiquidateBorrow(address,address,uint256,address,uint256)': EventFragment; - 'Mint(address,uint256,uint256)': EventFragment; - 'NewAdmin(address,address)': EventFragment; - 'NewComptroller(address,address)': EventFragment; - 'NewMarketInterestRateModel(address,address)': EventFragment; - 'NewPendingAdmin(address,address)': EventFragment; - 'NewProtocolSeizeShare(uint256,uint256)': EventFragment; - 'NewReserveFactor(uint256,uint256)': EventFragment; - 'Redeem(address,uint256,uint256)': EventFragment; - 'RepayBorrow(address,address,uint256,uint256,uint256)': EventFragment; - 'ReservesAdded(address,uint256,uint256)': EventFragment; - 'ReservesReduced(address,uint256,uint256)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AccrueInterest'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Borrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LiquidateBorrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Mint'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewAdmin'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewComptroller'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewMarketInterestRateModel'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPendingAdmin'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewProtocolSeizeShare'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewReserveFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Redeem'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RepayBorrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ReservesAdded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ReservesReduced'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; -} - -export interface AccrueInterestEventObject { - cashPrior: BigNumber; - interestAccumulated: BigNumber; - borrowIndex: BigNumber; - totalBorrows: BigNumber; -} -export type AccrueInterestEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], AccrueInterestEventObject>; - -export type AccrueInterestEventFilter = TypedEventFilter; - -export interface ApprovalEventObject { - owner: string; - spender: string; - amount: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface BorrowEventObject { - borrower: string; - borrowAmount: BigNumber; - accountBorrows: BigNumber; - totalBorrows: BigNumber; -} -export type BorrowEvent = TypedEvent<[string, BigNumber, BigNumber, BigNumber], BorrowEventObject>; - -export type BorrowEventFilter = TypedEventFilter; - -export interface LiquidateBorrowEventObject { - liquidator: string; - borrower: string; - repayAmount: BigNumber; - auTokenCollateral: string; - seizeTokens: BigNumber; -} -export type LiquidateBorrowEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber], - LiquidateBorrowEventObject ->; - -export type LiquidateBorrowEventFilter = TypedEventFilter; - -export interface MintEventObject { - minter: string; - mintAmount: BigNumber; - mintTokens: BigNumber; -} -export type MintEvent = TypedEvent<[string, BigNumber, BigNumber], MintEventObject>; - -export type MintEventFilter = TypedEventFilter; - -export interface NewAdminEventObject { - oldAdmin: string; - newAdmin: string; -} -export type NewAdminEvent = TypedEvent<[string, string], NewAdminEventObject>; - -export type NewAdminEventFilter = TypedEventFilter; - -export interface NewComptrollerEventObject { - oldComptroller: string; - newComptroller: string; -} -export type NewComptrollerEvent = TypedEvent<[string, string], NewComptrollerEventObject>; - -export type NewComptrollerEventFilter = TypedEventFilter; - -export interface NewMarketInterestRateModelEventObject { - oldInterestRateModel: string; - newInterestRateModel: string; -} -export type NewMarketInterestRateModelEvent = TypedEvent<[string, string], NewMarketInterestRateModelEventObject>; - -export type NewMarketInterestRateModelEventFilter = TypedEventFilter; - -export interface NewPendingAdminEventObject { - oldPendingAdmin: string; - newPendingAdmin: string; -} -export type NewPendingAdminEvent = TypedEvent<[string, string], NewPendingAdminEventObject>; - -export type NewPendingAdminEventFilter = TypedEventFilter; - -export interface NewProtocolSeizeShareEventObject { - oldProtocolSeizeShareMantissa: BigNumber; - newProtocolSeizeShareMantissa: BigNumber; -} -export type NewProtocolSeizeShareEvent = TypedEvent<[BigNumber, BigNumber], NewProtocolSeizeShareEventObject>; - -export type NewProtocolSeizeShareEventFilter = TypedEventFilter; - -export interface NewReserveFactorEventObject { - oldReserveFactorMantissa: BigNumber; - newReserveFactorMantissa: BigNumber; -} -export type NewReserveFactorEvent = TypedEvent<[BigNumber, BigNumber], NewReserveFactorEventObject>; - -export type NewReserveFactorEventFilter = TypedEventFilter; - -export interface RedeemEventObject { - redeemer: string; - redeemAmount: BigNumber; - redeemTokens: BigNumber; -} -export type RedeemEvent = TypedEvent<[string, BigNumber, BigNumber], RedeemEventObject>; - -export type RedeemEventFilter = TypedEventFilter; - -export interface RepayBorrowEventObject { - payer: string; - borrower: string; - repayAmount: BigNumber; - accountBorrows: BigNumber; - totalBorrows: BigNumber; -} -export type RepayBorrowEvent = TypedEvent<[string, string, BigNumber, BigNumber, BigNumber], RepayBorrowEventObject>; - -export type RepayBorrowEventFilter = TypedEventFilter; - -export interface ReservesAddedEventObject { - benefactor: string; - addAmount: BigNumber; - newTotalReserves: BigNumber; -} -export type ReservesAddedEvent = TypedEvent<[string, BigNumber, BigNumber], ReservesAddedEventObject>; - -export type ReservesAddedEventFilter = TypedEventFilter; - -export interface ReservesReducedEventObject { - admin: string; - reduceAmount: BigNumber; - newTotalReserves: BigNumber; -} -export type ReservesReducedEvent = TypedEvent<[string, BigNumber, BigNumber], ReservesReducedEventObject>; - -export type ReservesReducedEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - amount: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface AurigamiAuToken extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AurigamiAuTokenInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setProtocolSeizeShare( - newProtocolSeizeShareMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise<[BigNumber]>; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise<[string]>; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowIndex(overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowRatePerTimestamp(overrides?: CallOverrides): Promise<[BigNumber]>; - - comptroller(overrides?: CallOverrides): Promise<[string]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise<[BigNumber]>; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getBorrowDataOfAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise<[BigNumber]>; - - getSupplyDataOfOneAccount( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - getSupplyDataOfTwoAccount( - account1: PromiseOrValue, - account2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - interestRateModel(overrides?: CallOverrides): Promise<[string]>; - - isAuToken(overrides?: CallOverrides): Promise<[boolean]>; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - pendingAdmin(overrides?: CallOverrides): Promise<[string]>; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerTimestamp(overrides?: CallOverrides): Promise<[BigNumber]>; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalBorrows(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise<[string]>; - }; - - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setProtocolSeizeShare( - newProtocolSeizeShareMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerTimestamp(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getBorrowDataOfAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise; - - getSupplyDataOfOneAccount( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - getSupplyDataOfTwoAccount( - account1: PromiseOrValue, - account2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - interestRateModel(overrides?: CallOverrides): Promise; - - isAuToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerTimestamp(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - - callStatic: { - _acceptAdmin(overrides?: CallOverrides): Promise; - - _addReserves(addAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - _reduceReserves(reduceAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setComptroller(newComptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setInterestRateModel(newInterestRateModel: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setPendingAdmin(newPendingAdmin: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setProtocolSeizeShare( - newProtocolSeizeShareMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setReserveFactor(newReserveFactorMantissa: PromiseOrValue, overrides?: CallOverrides): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: CallOverrides): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrow(borrowAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerTimestamp(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: CallOverrides): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getBorrowDataOfAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise; - - getSupplyDataOfOneAccount( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - getSupplyDataOfTwoAccount( - account1: PromiseOrValue, - account2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - interestRateModel(overrides?: CallOverrides): Promise; - - isAuToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - mint(mintAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem(redeemTokens: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemUnderlying(redeemAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - repayBorrow(repayAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - supplyRatePerTimestamp(overrides?: CallOverrides): Promise; - - sweepToken(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: CallOverrides): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; - - filters: { - 'AccrueInterest(uint256,uint256,uint256,uint256)'( - cashPrior?: null, - interestAccumulated?: null, - borrowIndex?: null, - totalBorrows?: null, - ): AccrueInterestEventFilter; - AccrueInterest( - cashPrior?: null, - interestAccumulated?: null, - borrowIndex?: null, - totalBorrows?: null, - ): AccrueInterestEventFilter; - - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - amount?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - amount?: null, - ): ApprovalEventFilter; - - 'Borrow(address,uint256,uint256,uint256)'( - borrower?: null, - borrowAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): BorrowEventFilter; - Borrow(borrower?: null, borrowAmount?: null, accountBorrows?: null, totalBorrows?: null): BorrowEventFilter; - - 'LiquidateBorrow(address,address,uint256,address,uint256)'( - liquidator?: null, - borrower?: null, - repayAmount?: null, - auTokenCollateral?: null, - seizeTokens?: null, - ): LiquidateBorrowEventFilter; - LiquidateBorrow( - liquidator?: null, - borrower?: null, - repayAmount?: null, - auTokenCollateral?: null, - seizeTokens?: null, - ): LiquidateBorrowEventFilter; - - 'Mint(address,uint256,uint256)'(minter?: null, mintAmount?: null, mintTokens?: null): MintEventFilter; - Mint(minter?: null, mintAmount?: null, mintTokens?: null): MintEventFilter; - - 'NewAdmin(address,address)'(oldAdmin?: null, newAdmin?: null): NewAdminEventFilter; - NewAdmin(oldAdmin?: null, newAdmin?: null): NewAdminEventFilter; - - 'NewComptroller(address,address)'(oldComptroller?: null, newComptroller?: null): NewComptrollerEventFilter; - NewComptroller(oldComptroller?: null, newComptroller?: null): NewComptrollerEventFilter; - - 'NewMarketInterestRateModel(address,address)'( - oldInterestRateModel?: null, - newInterestRateModel?: null, - ): NewMarketInterestRateModelEventFilter; - NewMarketInterestRateModel( - oldInterestRateModel?: null, - newInterestRateModel?: null, - ): NewMarketInterestRateModelEventFilter; - - 'NewPendingAdmin(address,address)'(oldPendingAdmin?: null, newPendingAdmin?: null): NewPendingAdminEventFilter; - NewPendingAdmin(oldPendingAdmin?: null, newPendingAdmin?: null): NewPendingAdminEventFilter; - - 'NewProtocolSeizeShare(uint256,uint256)'( - oldProtocolSeizeShareMantissa?: null, - newProtocolSeizeShareMantissa?: null, - ): NewProtocolSeizeShareEventFilter; - NewProtocolSeizeShare( - oldProtocolSeizeShareMantissa?: null, - newProtocolSeizeShareMantissa?: null, - ): NewProtocolSeizeShareEventFilter; - - 'NewReserveFactor(uint256,uint256)'( - oldReserveFactorMantissa?: null, - newReserveFactorMantissa?: null, - ): NewReserveFactorEventFilter; - NewReserveFactor(oldReserveFactorMantissa?: null, newReserveFactorMantissa?: null): NewReserveFactorEventFilter; - - 'Redeem(address,uint256,uint256)'(redeemer?: null, redeemAmount?: null, redeemTokens?: null): RedeemEventFilter; - Redeem(redeemer?: null, redeemAmount?: null, redeemTokens?: null): RedeemEventFilter; - - 'RepayBorrow(address,address,uint256,uint256,uint256)'( - payer?: null, - borrower?: null, - repayAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): RepayBorrowEventFilter; - RepayBorrow( - payer?: null, - borrower?: null, - repayAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): RepayBorrowEventFilter; - - 'ReservesAdded(address,uint256,uint256)'( - benefactor?: null, - addAmount?: null, - newTotalReserves?: null, - ): ReservesAddedEventFilter; - ReservesAdded(benefactor?: null, addAmount?: null, newTotalReserves?: null): ReservesAddedEventFilter; - - 'ReservesReduced(address,uint256,uint256)'( - admin?: null, - reduceAmount?: null, - newTotalReserves?: null, - ): ReservesReducedEventFilter; - ReservesReduced(admin?: null, reduceAmount?: null, newTotalReserves?: null): ReservesReducedEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - amount?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - amount?: null, - ): TransferEventFilter; - }; - - estimateGas: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setProtocolSeizeShare( - newProtocolSeizeShareMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerTimestamp(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBorrowDataOfAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getCash(overrides?: CallOverrides): Promise; - - getSupplyDataOfOneAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getSupplyDataOfTwoAccount( - account1: PromiseOrValue, - account2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isAuToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerTimestamp(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setProtocolSeizeShare( - newProtocolSeizeShareMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerTimestamp(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBorrowDataOfAccount(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getCash(overrides?: CallOverrides): Promise; - - getSupplyDataOfOneAccount( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getSupplyDataOfTwoAccount( - account1: PromiseOrValue, - account2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isAuToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerTimestamp(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/aurigami/contracts/ethers/AurigamiComptroller.ts b/src/apps/aurigami/contracts/ethers/AurigamiComptroller.ts deleted file mode 100644 index 5c27435e7..000000000 --- a/src/apps/aurigami/contracts/ethers/AurigamiComptroller.ts +++ /dev/null @@ -1,2552 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface AurigamiComptrollerInterface extends utils.Interface { - functions: { - '_become(address)': FunctionFragment; - '_borrowGuardianPaused()': FunctionFragment; - '_grantPly(address,uint256)': FunctionFragment; - '_mintGuardianPaused()': FunctionFragment; - '_setBorrowCapGuardian(address)': FunctionFragment; - '_setBorrowPaused(address,bool)': FunctionFragment; - '_setCloseFactor(uint256)': FunctionFragment; - '_setCollateralFactor(address,uint256)': FunctionFragment; - '_setLiquidationIncentive(uint256)': FunctionFragment; - '_setMarketBorrowCaps(address[],uint256[])': FunctionFragment; - '_setMarketMintCaps(address[],uint256[])': FunctionFragment; - '_setMaxAssets(uint256)': FunctionFragment; - '_setMintCapGuardian(address)': FunctionFragment; - '_setMintPaused(address,bool)': FunctionFragment; - '_setPauseGuardian(address)': FunctionFragment; - '_setPriceOracle(address)': FunctionFragment; - '_setRewardSpeeds(uint8,address[],uint256[],bool[])': FunctionFragment; - '_setSeizePaused(bool)': FunctionFragment; - '_setTransferPaused(bool)': FunctionFragment; - '_supportMarket(address)': FunctionFragment; - 'accountAssets(address,uint256)': FunctionFragment; - 'admin()': FunctionFragment; - 'allMarkets(uint256)': FunctionFragment; - 'aurora()': FunctionFragment; - 'borrowAllowed(address,address,uint256)': FunctionFragment; - 'borrowCapGuardian()': FunctionFragment; - 'borrowCaps(address)': FunctionFragment; - 'borrowGuardianPaused(address)': FunctionFragment; - 'checkMembership(address,address)': FunctionFragment; - 'claimReward(uint8,address)': FunctionFragment; - 'claimReward(uint8,address,address[])': FunctionFragment; - 'claimReward(uint8,address[],address[],bool,bool)': FunctionFragment; - 'closeFactorMantissa()': FunctionFragment; - 'comptrollerImplementation()': FunctionFragment; - 'enterMarkets(address[])': FunctionFragment; - 'exitMarket(address)': FunctionFragment; - 'getAccountLiquidity(address)': FunctionFragment; - 'getAllMarkets()': FunctionFragment; - 'getAssetsIn(address)': FunctionFragment; - 'getHypotheticalAccountLiquidity(address,address,uint256,uint256)': FunctionFragment; - 'initialIndexConstant()': FunctionFragment; - 'isAllowedToClaimReward(address,address)': FunctionFragment; - 'isComptroller()': FunctionFragment; - 'isWhitelisted(address)': FunctionFragment; - 'liquidateBorrowAllowed(address,address,address,address,uint256)': FunctionFragment; - 'liquidateCalculateSeizeTokens(address,address,uint256)': FunctionFragment; - 'liquidationIncentiveMantissa()': FunctionFragment; - 'markets(address)': FunctionFragment; - 'maxAssets()': FunctionFragment; - 'mintAllowed(address,address,uint256)': FunctionFragment; - 'mintCapGuardian()': FunctionFragment; - 'mintCaps(address)': FunctionFragment; - 'mintGuardianPaused(address)': FunctionFragment; - 'oracle()': FunctionFragment; - 'pauseGuardian()': FunctionFragment; - 'pendingAdmin()': FunctionFragment; - 'pendingComptrollerImplementation()': FunctionFragment; - 'ply()': FunctionFragment; - 'pulp()': FunctionFragment; - 'redeemAllowed(address,address,uint256)': FunctionFragment; - 'repayBorrowAllowed(address,address,address,uint256)': FunctionFragment; - 'rewardAccrued(uint8,address)': FunctionFragment; - 'rewardAurora()': FunctionFragment; - 'rewardBorrowState(uint8,address)': FunctionFragment; - 'rewardBorrowerIndex(uint8,address,address)': FunctionFragment; - 'rewardClaimStart()': FunctionFragment; - 'rewardPly()': FunctionFragment; - 'rewardRate(uint8)': FunctionFragment; - 'rewardSpeeds(uint8,address,bool)': FunctionFragment; - 'rewardSupplierIndex(uint8,address,address)': FunctionFragment; - 'rewardSupplyState(uint8,address)': FunctionFragment; - 'seizeAllowed(address,address,address,address,uint256)': FunctionFragment; - 'seizeGuardianPaused()': FunctionFragment; - 'setLockAddress(address)': FunctionFragment; - 'setRewardClaimStart(uint32)': FunctionFragment; - 'setTokens(address,address)': FunctionFragment; - 'setWhitelisted(address,bool)': FunctionFragment; - 'transferAllowed(address,address,address,uint256)': FunctionFragment; - 'transferGuardianPaused()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | '_become' - | '_borrowGuardianPaused' - | '_grantPly' - | '_mintGuardianPaused' - | '_setBorrowCapGuardian' - | '_setBorrowPaused' - | '_setCloseFactor' - | '_setCollateralFactor' - | '_setLiquidationIncentive' - | '_setMarketBorrowCaps' - | '_setMarketMintCaps' - | '_setMaxAssets' - | '_setMintCapGuardian' - | '_setMintPaused' - | '_setPauseGuardian' - | '_setPriceOracle' - | '_setRewardSpeeds' - | '_setSeizePaused' - | '_setTransferPaused' - | '_supportMarket' - | 'accountAssets' - | 'admin' - | 'allMarkets' - | 'aurora' - | 'borrowAllowed' - | 'borrowCapGuardian' - | 'borrowCaps' - | 'borrowGuardianPaused' - | 'checkMembership' - | 'claimReward(uint8,address)' - | 'claimReward(uint8,address,address[])' - | 'claimReward(uint8,address[],address[],bool,bool)' - | 'closeFactorMantissa' - | 'comptrollerImplementation' - | 'enterMarkets' - | 'exitMarket' - | 'getAccountLiquidity' - | 'getAllMarkets' - | 'getAssetsIn' - | 'getHypotheticalAccountLiquidity' - | 'initialIndexConstant' - | 'isAllowedToClaimReward' - | 'isComptroller' - | 'isWhitelisted' - | 'liquidateBorrowAllowed' - | 'liquidateCalculateSeizeTokens' - | 'liquidationIncentiveMantissa' - | 'markets' - | 'maxAssets' - | 'mintAllowed' - | 'mintCapGuardian' - | 'mintCaps' - | 'mintGuardianPaused' - | 'oracle' - | 'pauseGuardian' - | 'pendingAdmin' - | 'pendingComptrollerImplementation' - | 'ply' - | 'pulp' - | 'redeemAllowed' - | 'repayBorrowAllowed' - | 'rewardAccrued' - | 'rewardAurora' - | 'rewardBorrowState' - | 'rewardBorrowerIndex' - | 'rewardClaimStart' - | 'rewardPly' - | 'rewardRate' - | 'rewardSpeeds' - | 'rewardSupplierIndex' - | 'rewardSupplyState' - | 'seizeAllowed' - | 'seizeGuardianPaused' - | 'setLockAddress' - | 'setRewardClaimStart' - | 'setTokens' - | 'setWhitelisted' - | 'transferAllowed' - | 'transferGuardianPaused', - ): FunctionFragment; - - encodeFunctionData(functionFragment: '_become', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_borrowGuardianPaused', values?: undefined): string; - encodeFunctionData( - functionFragment: '_grantPly', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_mintGuardianPaused', values?: undefined): string; - encodeFunctionData(functionFragment: '_setBorrowCapGuardian', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setBorrowPaused', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setCloseFactor', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setCollateralFactor', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setLiquidationIncentive', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setMarketBorrowCaps', - values: [PromiseOrValue[], PromiseOrValue[]], - ): string; - encodeFunctionData( - functionFragment: '_setMarketMintCaps', - values: [PromiseOrValue[], PromiseOrValue[]], - ): string; - encodeFunctionData(functionFragment: '_setMaxAssets', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setMintCapGuardian', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setMintPaused', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setPauseGuardian', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setPriceOracle', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setRewardSpeeds', - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue[], - ], - ): string; - encodeFunctionData(functionFragment: '_setSeizePaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setTransferPaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_supportMarket', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'accountAssets', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'admin', values?: undefined): string; - encodeFunctionData(functionFragment: 'allMarkets', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'aurora', values?: undefined): string; - encodeFunctionData( - functionFragment: 'borrowAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'borrowCapGuardian', values?: undefined): string; - encodeFunctionData(functionFragment: 'borrowCaps', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowGuardianPaused', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'checkMembership', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'claimReward(uint8,address)', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'claimReward(uint8,address,address[])', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue[]], - ): string; - encodeFunctionData( - functionFragment: 'claimReward(uint8,address[],address[],bool,bool)', - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'closeFactorMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'comptrollerImplementation', values?: undefined): string; - encodeFunctionData(functionFragment: 'enterMarkets', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'exitMarket', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getAccountLiquidity', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getAllMarkets', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAssetsIn', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getHypotheticalAccountLiquidity', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'initialIndexConstant', values?: undefined): string; - encodeFunctionData( - functionFragment: 'isAllowedToClaimReward', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'isComptroller', values?: undefined): string; - encodeFunctionData(functionFragment: 'isWhitelisted', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'liquidateBorrowAllowed', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'liquidateCalculateSeizeTokens', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'liquidationIncentiveMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'markets', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'maxAssets', values?: undefined): string; - encodeFunctionData( - functionFragment: 'mintAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'mintCapGuardian', values?: undefined): string; - encodeFunctionData(functionFragment: 'mintCaps', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'mintGuardianPaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'oracle', values?: undefined): string; - encodeFunctionData(functionFragment: 'pauseGuardian', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingComptrollerImplementation', values?: undefined): string; - encodeFunctionData(functionFragment: 'ply', values?: undefined): string; - encodeFunctionData(functionFragment: 'pulp', values?: undefined): string; - encodeFunctionData( - functionFragment: 'redeemAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'repayBorrowAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'rewardAccrued', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'rewardAurora', values?: undefined): string; - encodeFunctionData( - functionFragment: 'rewardBorrowState', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'rewardBorrowerIndex', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'rewardClaimStart', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardPly', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardRate', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'rewardSpeeds', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'rewardSupplierIndex', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'rewardSupplyState', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'seizeAllowed', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'seizeGuardianPaused', values?: undefined): string; - encodeFunctionData(functionFragment: 'setLockAddress', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setRewardClaimStart', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setTokens', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'setWhitelisted', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'transferGuardianPaused', values?: undefined): string; - - decodeFunctionResult(functionFragment: '_become', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_borrowGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_grantPly', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_mintGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setBorrowCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setBorrowPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setCloseFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setCollateralFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setLiquidationIncentive', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMarketBorrowCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMarketMintCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMaxAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMintCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMintPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPauseGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPriceOracle', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setRewardSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setSeizePaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setTransferPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_supportMarket', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accountAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'aurora', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'checkMembership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimReward(uint8,address)', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimReward(uint8,address,address[])', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimReward(uint8,address[],address[],bool,bool)', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'closeFactorMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'comptrollerImplementation', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'enterMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exitMarket', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAccountLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAllMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAssetsIn', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getHypotheticalAccountLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialIndexConstant', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isAllowedToClaimReward', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isComptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isWhitelisted', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateBorrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateCalculateSeizeTokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidationIncentiveMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'markets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'maxAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'oracle', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pauseGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingComptrollerImplementation', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'ply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pulp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardAccrued', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardAurora', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardBorrowState', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardBorrowerIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardClaimStart', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardPly', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardRate', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardSupplierIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardSupplyState', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seizeAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seizeGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setLockAddress', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setRewardClaimStart', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setTokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setWhitelisted', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferGuardianPaused', data: BytesLike): Result; - - events: { - 'ActionPaused(string,bool)': EventFragment; - 'ContributorPlySpeedUpdated(address,uint256)': EventFragment; - 'DistributedBorrowerReward(uint8,address,address,uint256,uint256)': EventFragment; - 'DistributedSupplierReward(uint8,address,address,uint256,uint256)': EventFragment; - 'MarketEntered(address,address)': EventFragment; - 'MarketExited(address,address)': EventFragment; - 'MarketListed(address)': EventFragment; - 'NewBorrowCap(address,uint256)': EventFragment; - 'NewBorrowCapGuardian(address,address)': EventFragment; - 'NewCloseFactor(uint256,uint256)': EventFragment; - 'NewCollateralFactor(address,uint256,uint256)': EventFragment; - 'NewLiquidationIncentive(uint256,uint256)': EventFragment; - 'NewMintCap(address,uint256)': EventFragment; - 'NewMintCapGuardian(address,address)': EventFragment; - 'NewPauseGuardian(address,address)': EventFragment; - 'NewPriceOracle(address,address)': EventFragment; - 'PlyGranted(address,uint256)': EventFragment; - 'SpeedUpdated(uint8,address,bool,uint256)': EventFragment; - 'WhitelistStatusChanged(address,bool)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'ActionPaused'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ContributorPlySpeedUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'DistributedBorrowerReward'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'DistributedSupplierReward'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketEntered'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketExited'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketListed'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewBorrowCap'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewBorrowCapGuardian'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewCloseFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewCollateralFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewLiquidationIncentive'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewMintCap'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewMintCapGuardian'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPauseGuardian'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPriceOracle'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'PlyGranted'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'SpeedUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'WhitelistStatusChanged'): EventFragment; -} - -export interface ActionPausedEventObject { - action: string; - pauseState: boolean; -} -export type ActionPausedEvent = TypedEvent<[string, boolean], ActionPausedEventObject>; - -export type ActionPausedEventFilter = TypedEventFilter; - -export interface ContributorPlySpeedUpdatedEventObject { - contributor: string; - newSpeed: BigNumber; -} -export type ContributorPlySpeedUpdatedEvent = TypedEvent<[string, BigNumber], ContributorPlySpeedUpdatedEventObject>; - -export type ContributorPlySpeedUpdatedEventFilter = TypedEventFilter; - -export interface DistributedBorrowerRewardEventObject { - tokenType: number; - auToken: string; - borrower: string; - plyDelta: BigNumber; - plyBorrowIndex: BigNumber; -} -export type DistributedBorrowerRewardEvent = TypedEvent< - [number, string, string, BigNumber, BigNumber], - DistributedBorrowerRewardEventObject ->; - -export type DistributedBorrowerRewardEventFilter = TypedEventFilter; - -export interface DistributedSupplierRewardEventObject { - tokenType: number; - auToken: string; - borrower: string; - plyDelta: BigNumber; - plyBorrowIndex: BigNumber; -} -export type DistributedSupplierRewardEvent = TypedEvent< - [number, string, string, BigNumber, BigNumber], - DistributedSupplierRewardEventObject ->; - -export type DistributedSupplierRewardEventFilter = TypedEventFilter; - -export interface MarketEnteredEventObject { - auToken: string; - account: string; -} -export type MarketEnteredEvent = TypedEvent<[string, string], MarketEnteredEventObject>; - -export type MarketEnteredEventFilter = TypedEventFilter; - -export interface MarketExitedEventObject { - auToken: string; - account: string; -} -export type MarketExitedEvent = TypedEvent<[string, string], MarketExitedEventObject>; - -export type MarketExitedEventFilter = TypedEventFilter; - -export interface MarketListedEventObject { - auToken: string; -} -export type MarketListedEvent = TypedEvent<[string], MarketListedEventObject>; - -export type MarketListedEventFilter = TypedEventFilter; - -export interface NewBorrowCapEventObject { - auToken: string; - newBorrowCap: BigNumber; -} -export type NewBorrowCapEvent = TypedEvent<[string, BigNumber], NewBorrowCapEventObject>; - -export type NewBorrowCapEventFilter = TypedEventFilter; - -export interface NewBorrowCapGuardianEventObject { - oldBorrowCapGuardian: string; - newBorrowCapGuardian: string; -} -export type NewBorrowCapGuardianEvent = TypedEvent<[string, string], NewBorrowCapGuardianEventObject>; - -export type NewBorrowCapGuardianEventFilter = TypedEventFilter; - -export interface NewCloseFactorEventObject { - oldCloseFactorMantissa: BigNumber; - newCloseFactorMantissa: BigNumber; -} -export type NewCloseFactorEvent = TypedEvent<[BigNumber, BigNumber], NewCloseFactorEventObject>; - -export type NewCloseFactorEventFilter = TypedEventFilter; - -export interface NewCollateralFactorEventObject { - auToken: string; - oldCollateralFactorMantissa: BigNumber; - newCollateralFactorMantissa: BigNumber; -} -export type NewCollateralFactorEvent = TypedEvent<[string, BigNumber, BigNumber], NewCollateralFactorEventObject>; - -export type NewCollateralFactorEventFilter = TypedEventFilter; - -export interface NewLiquidationIncentiveEventObject { - oldLiquidationIncentiveMantissa: BigNumber; - newLiquidationIncentiveMantissa: BigNumber; -} -export type NewLiquidationIncentiveEvent = TypedEvent<[BigNumber, BigNumber], NewLiquidationIncentiveEventObject>; - -export type NewLiquidationIncentiveEventFilter = TypedEventFilter; - -export interface NewMintCapEventObject { - auToken: string; - newMintCap: BigNumber; -} -export type NewMintCapEvent = TypedEvent<[string, BigNumber], NewMintCapEventObject>; - -export type NewMintCapEventFilter = TypedEventFilter; - -export interface NewMintCapGuardianEventObject { - oldMintCapGuardian: string; - newMintCapGuardian: string; -} -export type NewMintCapGuardianEvent = TypedEvent<[string, string], NewMintCapGuardianEventObject>; - -export type NewMintCapGuardianEventFilter = TypedEventFilter; - -export interface NewPauseGuardianEventObject { - oldPauseGuardian: string; - newPauseGuardian: string; -} -export type NewPauseGuardianEvent = TypedEvent<[string, string], NewPauseGuardianEventObject>; - -export type NewPauseGuardianEventFilter = TypedEventFilter; - -export interface NewPriceOracleEventObject { - oldPriceOracle: string; - newPriceOracle: string; -} -export type NewPriceOracleEvent = TypedEvent<[string, string], NewPriceOracleEventObject>; - -export type NewPriceOracleEventFilter = TypedEventFilter; - -export interface PlyGrantedEventObject { - recipient: string; - amount: BigNumber; -} -export type PlyGrantedEvent = TypedEvent<[string, BigNumber], PlyGrantedEventObject>; - -export type PlyGrantedEventFilter = TypedEventFilter; - -export interface SpeedUpdatedEventObject { - tokenType: number; - auToken: string; - isSupply: boolean; - newSpeed: BigNumber; -} -export type SpeedUpdatedEvent = TypedEvent<[number, string, boolean, BigNumber], SpeedUpdatedEventObject>; - -export type SpeedUpdatedEventFilter = TypedEventFilter; - -export interface WhitelistStatusChangedEventObject { - addr: string; - newStatus: boolean; -} -export type WhitelistStatusChangedEvent = TypedEvent<[string, boolean], WhitelistStatusChangedEventObject>; - -export type WhitelistStatusChangedEventFilter = TypedEventFilter; - -export interface AurigamiComptroller extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AurigamiComptrollerInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - _grantPly( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - auToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - auTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketMintCaps( - auTokens: PromiseOrValue[], - newMintCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - _maxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintCapGuardian( - newMintCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardSpeeds( - rewardType: PromiseOrValue, - auTokens: PromiseOrValue[], - rewardSpeeds: PromiseOrValue[], - isSupply: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[string]>; - - admin(overrides?: CallOverrides): Promise<[string]>; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - aurora(overrides?: CallOverrides): Promise<[string]>; - - borrowAllowed( - auToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise<[string]>; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - checkMembership( - account: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[boolean]>; - - 'claimReward(uint8,address)'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address,address[])'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address[],address[],bool,bool)'( - rewardType: PromiseOrValue, - holders: PromiseOrValue[], - auTokens: PromiseOrValue[], - borrowers: PromiseOrValue, - suppliers: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - comptrollerImplementation(overrides?: CallOverrides): Promise<[string]>; - - enterMarkets( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - auTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise<[string[]]>; - - getAssetsIn( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[string[]] & { assetsIn: string[] }>; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - auTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - initialIndexConstant(overrides?: CallOverrides): Promise<[BigNumber]>; - - isAllowedToClaimReward( - user: PromiseOrValue, - claimer: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[boolean]>; - - isComptroller(overrides?: CallOverrides): Promise<[boolean]>; - - isWhitelisted(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - liquidateBorrowAllowed( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[void]>; - - liquidateCalculateSeizeTokens( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isPlyed: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise<[BigNumber]>; - - mintAllowed( - auToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintCapGuardian(overrides?: CallOverrides): Promise<[string]>; - - mintCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - oracle(overrides?: CallOverrides): Promise<[string]>; - - pauseGuardian(overrides?: CallOverrides): Promise<[string]>; - - pendingAdmin(overrides?: CallOverrides): Promise<[string]>; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise<[string]>; - - ply(overrides?: CallOverrides): Promise<[string]>; - - pulp(overrides?: CallOverrides): Promise<[string]>; - - redeemAllowed( - auToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - auToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardAccrued( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - rewardAurora(overrides?: CallOverrides): Promise<[number]>; - - rewardBorrowState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - rewardBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - rewardClaimStart(overrides?: CallOverrides): Promise<[number]>; - - rewardPly(overrides?: CallOverrides): Promise<[number]>; - - rewardRate(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - rewardSpeeds( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - rewardSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - rewardSupplyState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - seizeAllowed( - auTokenCollateral: PromiseOrValue, - auTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - setLockAddress( - newPulp: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardClaimStart( - newRewardClaimStart: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setTokens( - newPly: PromiseOrValue, - newAurora: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setWhitelisted( - addr: PromiseOrValue, - whitelisted: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - auToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - }; - - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _grantPly( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - auToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - auTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketMintCaps( - auTokens: PromiseOrValue[], - newMintCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - _maxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintCapGuardian( - newMintCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardSpeeds( - rewardType: PromiseOrValue, - auTokens: PromiseOrValue[], - rewardSpeeds: PromiseOrValue[], - isSupply: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - aurora(overrides?: CallOverrides): Promise; - - borrowAllowed( - auToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - checkMembership( - account: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address)'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address,address[])'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address[],address[],bool,bool)'( - rewardType: PromiseOrValue, - holders: PromiseOrValue[], - auTokens: PromiseOrValue[], - borrowers: PromiseOrValue, - suppliers: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - auTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - auTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - initialIndexConstant(overrides?: CallOverrides): Promise; - - isAllowedToClaimReward( - user: PromiseOrValue, - claimer: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isWhitelisted(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateCalculateSeizeTokens( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isPlyed: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - auToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintCapGuardian(overrides?: CallOverrides): Promise; - - mintCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - ply(overrides?: CallOverrides): Promise; - - pulp(overrides?: CallOverrides): Promise; - - redeemAllowed( - auToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - auToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardAccrued( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardAurora(overrides?: CallOverrides): Promise; - - rewardBorrowState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - rewardBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardClaimStart(overrides?: CallOverrides): Promise; - - rewardPly(overrides?: CallOverrides): Promise; - - rewardRate(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardSpeeds( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplyState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - seizeAllowed( - auTokenCollateral: PromiseOrValue, - auTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - setLockAddress( - newPulp: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardClaimStart( - newRewardClaimStart: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setTokens( - newPly: PromiseOrValue, - newAurora: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setWhitelisted( - addr: PromiseOrValue, - whitelisted: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - auToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - - callStatic: { - _become(unitroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _grantPly( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian(newBorrowCapGuardian: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setBorrowPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setCloseFactor(newCloseFactorMantissa: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setCollateralFactor( - auToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setMarketBorrowCaps( - auTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - _setMarketMintCaps( - auTokens: PromiseOrValue[], - newMintCaps: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - _setMaxAssets(_maxAssets: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setMintCapGuardian(newMintCapGuardian: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setMintPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setPauseGuardian(newPauseGuardian: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setPriceOracle(newOracle: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setRewardSpeeds( - rewardType: PromiseOrValue, - auTokens: PromiseOrValue[], - rewardSpeeds: PromiseOrValue[], - isSupply: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - _setSeizePaused(state: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setTransferPaused(state: PromiseOrValue, overrides?: CallOverrides): Promise; - - _supportMarket(auToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - aurora(overrides?: CallOverrides): Promise; - - borrowAllowed( - auToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - checkMembership( - account: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address)'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address,address[])'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address[],address[],bool,bool)'( - rewardType: PromiseOrValue, - holders: PromiseOrValue[], - auTokens: PromiseOrValue[], - borrowers: PromiseOrValue, - suppliers: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets(auTokens: PromiseOrValue[], overrides?: CallOverrides): Promise; - - exitMarket(auTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - auTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - initialIndexConstant(overrides?: CallOverrides): Promise; - - isAllowedToClaimReward( - user: PromiseOrValue, - claimer: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isWhitelisted(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateCalculateSeizeTokens( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isPlyed: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - auToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - mintCapGuardian(overrides?: CallOverrides): Promise; - - mintCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - ply(overrides?: CallOverrides): Promise; - - pulp(overrides?: CallOverrides): Promise; - - redeemAllowed( - auToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - repayBorrowAllowed( - auToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardAccrued( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardAurora(overrides?: CallOverrides): Promise; - - rewardBorrowState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - rewardBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardClaimStart(overrides?: CallOverrides): Promise; - - rewardPly(overrides?: CallOverrides): Promise; - - rewardRate(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardSpeeds( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplyState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; timestamp: number }>; - - seizeAllowed( - auTokenCollateral: PromiseOrValue, - auTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - setLockAddress(newPulp: PromiseOrValue, overrides?: CallOverrides): Promise; - - setRewardClaimStart(newRewardClaimStart: PromiseOrValue, overrides?: CallOverrides): Promise; - - setTokens( - newPly: PromiseOrValue, - newAurora: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - setWhitelisted( - addr: PromiseOrValue, - whitelisted: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferAllowed( - auToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - }; - - filters: { - 'ActionPaused(string,bool)'(action?: null, pauseState?: null): ActionPausedEventFilter; - ActionPaused(action?: null, pauseState?: null): ActionPausedEventFilter; - - 'ContributorPlySpeedUpdated(address,uint256)'( - contributor?: PromiseOrValue | null, - newSpeed?: null, - ): ContributorPlySpeedUpdatedEventFilter; - ContributorPlySpeedUpdated( - contributor?: PromiseOrValue | null, - newSpeed?: null, - ): ContributorPlySpeedUpdatedEventFilter; - - 'DistributedBorrowerReward(uint8,address,address,uint256,uint256)'( - tokenType?: PromiseOrValue | null, - auToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - plyDelta?: null, - plyBorrowIndex?: null, - ): DistributedBorrowerRewardEventFilter; - DistributedBorrowerReward( - tokenType?: PromiseOrValue | null, - auToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - plyDelta?: null, - plyBorrowIndex?: null, - ): DistributedBorrowerRewardEventFilter; - - 'DistributedSupplierReward(uint8,address,address,uint256,uint256)'( - tokenType?: PromiseOrValue | null, - auToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - plyDelta?: null, - plyBorrowIndex?: null, - ): DistributedSupplierRewardEventFilter; - DistributedSupplierReward( - tokenType?: PromiseOrValue | null, - auToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - plyDelta?: null, - plyBorrowIndex?: null, - ): DistributedSupplierRewardEventFilter; - - 'MarketEntered(address,address)'(auToken?: null, account?: null): MarketEnteredEventFilter; - MarketEntered(auToken?: null, account?: null): MarketEnteredEventFilter; - - 'MarketExited(address,address)'(auToken?: null, account?: null): MarketExitedEventFilter; - MarketExited(auToken?: null, account?: null): MarketExitedEventFilter; - - 'MarketListed(address)'(auToken?: null): MarketListedEventFilter; - MarketListed(auToken?: null): MarketListedEventFilter; - - 'NewBorrowCap(address,uint256)'( - auToken?: PromiseOrValue | null, - newBorrowCap?: null, - ): NewBorrowCapEventFilter; - NewBorrowCap(auToken?: PromiseOrValue | null, newBorrowCap?: null): NewBorrowCapEventFilter; - - 'NewBorrowCapGuardian(address,address)'( - oldBorrowCapGuardian?: null, - newBorrowCapGuardian?: null, - ): NewBorrowCapGuardianEventFilter; - NewBorrowCapGuardian(oldBorrowCapGuardian?: null, newBorrowCapGuardian?: null): NewBorrowCapGuardianEventFilter; - - 'NewCloseFactor(uint256,uint256)'( - oldCloseFactorMantissa?: null, - newCloseFactorMantissa?: null, - ): NewCloseFactorEventFilter; - NewCloseFactor(oldCloseFactorMantissa?: null, newCloseFactorMantissa?: null): NewCloseFactorEventFilter; - - 'NewCollateralFactor(address,uint256,uint256)'( - auToken?: null, - oldCollateralFactorMantissa?: null, - newCollateralFactorMantissa?: null, - ): NewCollateralFactorEventFilter; - NewCollateralFactor( - auToken?: null, - oldCollateralFactorMantissa?: null, - newCollateralFactorMantissa?: null, - ): NewCollateralFactorEventFilter; - - 'NewLiquidationIncentive(uint256,uint256)'( - oldLiquidationIncentiveMantissa?: null, - newLiquidationIncentiveMantissa?: null, - ): NewLiquidationIncentiveEventFilter; - NewLiquidationIncentive( - oldLiquidationIncentiveMantissa?: null, - newLiquidationIncentiveMantissa?: null, - ): NewLiquidationIncentiveEventFilter; - - 'NewMintCap(address,uint256)'(auToken?: PromiseOrValue | null, newMintCap?: null): NewMintCapEventFilter; - NewMintCap(auToken?: PromiseOrValue | null, newMintCap?: null): NewMintCapEventFilter; - - 'NewMintCapGuardian(address,address)'( - oldMintCapGuardian?: null, - newMintCapGuardian?: null, - ): NewMintCapGuardianEventFilter; - NewMintCapGuardian(oldMintCapGuardian?: null, newMintCapGuardian?: null): NewMintCapGuardianEventFilter; - - 'NewPauseGuardian(address,address)'(oldPauseGuardian?: null, newPauseGuardian?: null): NewPauseGuardianEventFilter; - NewPauseGuardian(oldPauseGuardian?: null, newPauseGuardian?: null): NewPauseGuardianEventFilter; - - 'NewPriceOracle(address,address)'(oldPriceOracle?: null, newPriceOracle?: null): NewPriceOracleEventFilter; - NewPriceOracle(oldPriceOracle?: null, newPriceOracle?: null): NewPriceOracleEventFilter; - - 'PlyGranted(address,uint256)'(recipient?: null, amount?: null): PlyGrantedEventFilter; - PlyGranted(recipient?: null, amount?: null): PlyGrantedEventFilter; - - 'SpeedUpdated(uint8,address,bool,uint256)'( - tokenType?: null, - auToken?: PromiseOrValue | null, - isSupply?: null, - newSpeed?: null, - ): SpeedUpdatedEventFilter; - SpeedUpdated( - tokenType?: null, - auToken?: PromiseOrValue | null, - isSupply?: null, - newSpeed?: null, - ): SpeedUpdatedEventFilter; - - 'WhitelistStatusChanged(address,bool)'(addr?: null, newStatus?: null): WhitelistStatusChangedEventFilter; - WhitelistStatusChanged(addr?: null, newStatus?: null): WhitelistStatusChangedEventFilter; - }; - - estimateGas: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _grantPly( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - auToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - auTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketMintCaps( - auTokens: PromiseOrValue[], - newMintCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - _maxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintCapGuardian( - newMintCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardSpeeds( - rewardType: PromiseOrValue, - auTokens: PromiseOrValue[], - rewardSpeeds: PromiseOrValue[], - isSupply: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - aurora(overrides?: CallOverrides): Promise; - - borrowAllowed( - auToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - checkMembership( - account: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address)'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address,address[])'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address[],address[],bool,bool)'( - rewardType: PromiseOrValue, - holders: PromiseOrValue[], - auTokens: PromiseOrValue[], - borrowers: PromiseOrValue, - suppliers: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - auTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - auTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialIndexConstant(overrides?: CallOverrides): Promise; - - isAllowedToClaimReward( - user: PromiseOrValue, - claimer: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isWhitelisted(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateCalculateSeizeTokens( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - auToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintCapGuardian(overrides?: CallOverrides): Promise; - - mintCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - ply(overrides?: CallOverrides): Promise; - - pulp(overrides?: CallOverrides): Promise; - - redeemAllowed( - auToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - auToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardAccrued( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardAurora(overrides?: CallOverrides): Promise; - - rewardBorrowState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardClaimStart(overrides?: CallOverrides): Promise; - - rewardPly(overrides?: CallOverrides): Promise; - - rewardRate(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardSpeeds( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplyState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - seizeAllowed( - auTokenCollateral: PromiseOrValue, - auTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - setLockAddress( - newPulp: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardClaimStart( - newRewardClaimStart: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setTokens( - newPly: PromiseOrValue, - newAurora: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setWhitelisted( - addr: PromiseOrValue, - whitelisted: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - auToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _grantPly( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - auToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - auTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketMintCaps( - auTokens: PromiseOrValue[], - newMintCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - _maxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintCapGuardian( - newMintCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - auToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardSpeeds( - rewardType: PromiseOrValue, - auTokens: PromiseOrValue[], - rewardSpeeds: PromiseOrValue[], - isSupply: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - aurora(overrides?: CallOverrides): Promise; - - borrowAllowed( - auToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - checkMembership( - account: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'claimReward(uint8,address)'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address,address[])'( - rewardType: PromiseOrValue, - holder: PromiseOrValue, - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'claimReward(uint8,address[],address[],bool,bool)'( - rewardType: PromiseOrValue, - holders: PromiseOrValue[], - auTokens: PromiseOrValue[], - borrowers: PromiseOrValue, - suppliers: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - auTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - auTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialIndexConstant(overrides?: CallOverrides): Promise; - - isAllowedToClaimReward( - user: PromiseOrValue, - claimer: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isWhitelisted(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateCalculateSeizeTokens( - auTokenBorrowed: PromiseOrValue, - auTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - auToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintCapGuardian(overrides?: CallOverrides): Promise; - - mintCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - ply(overrides?: CallOverrides): Promise; - - pulp(overrides?: CallOverrides): Promise; - - redeemAllowed( - auToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - auToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardAccrued( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardAurora(overrides?: CallOverrides): Promise; - - rewardBorrowState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardClaimStart(overrides?: CallOverrides): Promise; - - rewardPly(overrides?: CallOverrides): Promise; - - rewardRate(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardSpeeds( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardSupplyState( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - seizeAllowed( - auTokenCollateral: PromiseOrValue, - auTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - setLockAddress( - newPulp: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardClaimStart( - newRewardClaimStart: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setTokens( - newPly: PromiseOrValue, - newAurora: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setWhitelisted( - addr: PromiseOrValue, - whitelisted: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - auToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/aurigami/contracts/ethers/AurigamiLens.ts b/src/apps/aurigami/contracts/ethers/AurigamiLens.ts deleted file mode 100644 index 0b11d0909..000000000 --- a/src/apps/aurigami/contracts/ethers/AurigamiLens.ts +++ /dev/null @@ -1,843 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - 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, PromiseOrValue } from './common'; - -export declare namespace AuriLens { - export type AuTokenBalancesStruct = { - auToken: PromiseOrValue; - balanceOf: PromiseOrValue; - borrowBalanceCurrent: PromiseOrValue; - balanceOfUnderlying: PromiseOrValue; - tokenBalance: PromiseOrValue; - tokenAllowance: PromiseOrValue; - }; - - export type AuTokenBalancesStructOutput = [string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - auToken: string; - balanceOf: BigNumber; - borrowBalanceCurrent: BigNumber; - balanceOfUnderlying: BigNumber; - tokenBalance: BigNumber; - tokenAllowance: BigNumber; - }; - - export type AuTokenMetadataStruct = { - auToken: PromiseOrValue; - exchangeRateCurrent: PromiseOrValue; - supplyRatePerBlock: PromiseOrValue; - borrowRatePerBlock: PromiseOrValue; - reserveFactorMantissa: PromiseOrValue; - totalBorrows: PromiseOrValue; - totalReserves: PromiseOrValue; - totalSupply: PromiseOrValue; - totalCash: PromiseOrValue; - isListed: PromiseOrValue; - collateralFactorMantissa: PromiseOrValue; - underlyingAssetAddress: PromiseOrValue; - auTokenDecimals: PromiseOrValue; - underlyingDecimals: PromiseOrValue; - plyRewardSupplySpeed: PromiseOrValue; - plyRewardBorrowSpeed: PromiseOrValue; - auroraRewardSupplySpeed: PromiseOrValue; - auroraRewardBorrowSpeed: PromiseOrValue; - borrowCap: PromiseOrValue; - }; - - export type AuTokenMetadataStructOutput = [ - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - boolean, - BigNumber, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - ] & { - auToken: string; - exchangeRateCurrent: BigNumber; - supplyRatePerBlock: BigNumber; - borrowRatePerBlock: BigNumber; - reserveFactorMantissa: BigNumber; - totalBorrows: BigNumber; - totalReserves: BigNumber; - totalSupply: BigNumber; - totalCash: BigNumber; - isListed: boolean; - collateralFactorMantissa: BigNumber; - underlyingAssetAddress: string; - auTokenDecimals: BigNumber; - underlyingDecimals: BigNumber; - plyRewardSupplySpeed: BigNumber; - plyRewardBorrowSpeed: BigNumber; - auroraRewardSupplySpeed: BigNumber; - auroraRewardBorrowSpeed: BigNumber; - borrowCap: BigNumber; - }; - - export type AuTokenUnderlyingPriceStruct = { - auToken: PromiseOrValue; - underlyingPrice: PromiseOrValue; - }; - - export type AuTokenUnderlyingPriceStructOutput = [string, BigNumber] & { - auToken: string; - underlyingPrice: BigNumber; - }; - - export type RewardBalancesMetadataStruct = { - plyAccrured: PromiseOrValue; - auroraClaimable: PromiseOrValue; - wnearClaimable: PromiseOrValue; - }; - - export type RewardBalancesMetadataStructOutput = [BigNumber, BigNumber, BigNumber] & { - plyAccrured: BigNumber; - auroraClaimable: BigNumber; - wnearClaimable: BigNumber; - }; - - export type AccountLimitsStruct = { - markets: PromiseOrValue[]; - liquidity: PromiseOrValue; - shortfall: PromiseOrValue; - }; - - export type AccountLimitsStructOutput = [string[], BigNumber, BigNumber] & { - markets: string[]; - liquidity: BigNumber; - shortfall: BigNumber; - }; - - export type RewardSpeedsStruct = { - plyRewardSupplySpeed: PromiseOrValue; - plyRewardBorrowSpeed: PromiseOrValue; - auroraRewardSupplySpeed: PromiseOrValue; - auroraRewardBorrowSpeed: PromiseOrValue; - }; - - export type RewardSpeedsStructOutput = [BigNumber, BigNumber, BigNumber, BigNumber] & { - plyRewardSupplySpeed: BigNumber; - plyRewardBorrowSpeed: BigNumber; - auroraRewardSupplySpeed: BigNumber; - auroraRewardBorrowSpeed: BigNumber; - }; -} - -export interface AurigamiLensInterface extends utils.Interface { - functions: { - 'WNEAR()': FunctionFragment; - 'auTokenBalances(address)': FunctionFragment; - 'auTokenBalancesAll(address[])': FunctionFragment; - 'auTokenMetadataAllNonView(address[])': FunctionFragment; - 'auTokenMetadataNonView(address)': FunctionFragment; - 'auTokenUnderlyingPrice(address)': FunctionFragment; - 'auTokenUnderlyingPriceAll(address[])': FunctionFragment; - 'claimOwnership()': FunctionFragment; - 'claimRewards(address,address,uint256[])': FunctionFragment; - 'getAccountLimits(address)': FunctionFragment; - 'getAddresses(address)': FunctionFragment; - 'getPercentLock(address,address,int256)': FunctionFragment; - 'getRewardSpeeds(address,address)': FunctionFragment; - 'getWeekToUnlock(address,address,uint256)': FunctionFragment; - 'initialize()': FunctionFragment; - 'owner()': FunctionFragment; - 'pendingOwner()': FunctionFragment; - 'proxiableUUID()': FunctionFragment; - 'transferOwnership(address,bool,bool)': FunctionFragment; - 'upgradeTo(address)': FunctionFragment; - 'upgradeToAndCall(address,bytes)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'WNEAR' - | 'auTokenBalances' - | 'auTokenBalancesAll' - | 'auTokenMetadataAllNonView' - | 'auTokenMetadataNonView' - | 'auTokenUnderlyingPrice' - | 'auTokenUnderlyingPriceAll' - | 'claimOwnership' - | 'claimRewards' - | 'getAccountLimits' - | 'getAddresses' - | 'getPercentLock' - | 'getRewardSpeeds' - | 'getWeekToUnlock' - | 'initialize' - | 'owner' - | 'pendingOwner' - | 'proxiableUUID' - | 'transferOwnership' - | 'upgradeTo' - | 'upgradeToAndCall', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'WNEAR', values?: undefined): string; - encodeFunctionData(functionFragment: 'auTokenBalances', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'auTokenBalancesAll', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'auTokenMetadataAllNonView', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'auTokenMetadataNonView', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'auTokenUnderlyingPrice', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'auTokenUnderlyingPriceAll', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'claimOwnership', values?: undefined): string; - encodeFunctionData( - functionFragment: 'claimRewards', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue[]], - ): string; - encodeFunctionData(functionFragment: 'getAccountLimits', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getAddresses', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getPercentLock', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'getRewardSpeeds', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'getWeekToUnlock', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'initialize', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingOwner', values?: undefined): string; - encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transferOwnership', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'upgradeTo', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'upgradeToAndCall', - values: [PromiseOrValue, PromiseOrValue], - ): string; - - decodeFunctionResult(functionFragment: 'WNEAR', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenBalances', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenBalancesAll', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenMetadataAllNonView', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenMetadataNonView', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenUnderlyingPrice', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auTokenUnderlyingPriceAll', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimRewards', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAccountLimits', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAddresses', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getPercentLock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getRewardSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getWeekToUnlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingOwner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result; - - events: { - 'AdminChanged(address,address)': EventFragment; - 'BeaconUpgraded(address)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'Upgraded(address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'BeaconUpgraded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment; -} - -export interface AdminChangedEventObject { - previousAdmin: string; - newAdmin: string; -} -export type AdminChangedEvent = TypedEvent<[string, string], AdminChangedEventObject>; - -export type AdminChangedEventFilter = TypedEventFilter; - -export interface BeaconUpgradedEventObject { - beacon: string; -} -export type BeaconUpgradedEvent = TypedEvent<[string], BeaconUpgradedEventObject>; - -export type BeaconUpgradedEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface AurigamiLens extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AurigamiLensInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - WNEAR(overrides?: CallOverrides): Promise<[string]>; - - auTokenBalances( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenBalancesAll( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataAllNonView( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataNonView( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenUnderlyingPrice( - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[AuriLens.AuTokenUnderlyingPriceStructOutput]>; - - auTokenUnderlyingPriceAll( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise<[AuriLens.AuTokenUnderlyingPriceStructOutput[]]>; - - claimOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - claimRewards( - comptroller: PromiseOrValue, - fairLaunch: PromiseOrValue, - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLimits( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[AuriLens.AccountLimitsStructOutput]>; - - getAddresses( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, string, string, string] & { - ply: string; - aurora: string; - wnear: string; - pulp: string; - } - >; - - getPercentLock( - pulp: PromiseOrValue, - account: PromiseOrValue, - weekInt: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber] & { percentLock: BigNumber }>; - - getRewardSpeeds( - comptroller: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [AuriLens.RewardSpeedsStructOutput] & { - rewardSpeeds: AuriLens.RewardSpeedsStructOutput; - } - >; - - getWeekToUnlock( - pulp: PromiseOrValue, - account: PromiseOrValue, - targetUnlockPercent: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - initialize(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingOwner(overrides?: CallOverrides): Promise<[string]>; - - proxiableUUID(overrides?: CallOverrides): Promise<[string]>; - - transferOwnership( - newOwner: PromiseOrValue, - direct: PromiseOrValue, - renounce: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - }; - - WNEAR(overrides?: CallOverrides): Promise; - - auTokenBalances( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenBalancesAll( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataAllNonView( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataNonView( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenUnderlyingPrice( - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - auTokenUnderlyingPriceAll( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - claimOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - claimRewards( - comptroller: PromiseOrValue, - fairLaunch: PromiseOrValue, - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLimits( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getAddresses( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, string, string, string] & { - ply: string; - aurora: string; - wnear: string; - pulp: string; - } - >; - - getPercentLock( - pulp: PromiseOrValue, - account: PromiseOrValue, - weekInt: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardSpeeds( - comptroller: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getWeekToUnlock( - pulp: PromiseOrValue, - account: PromiseOrValue, - targetUnlockPercent: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - proxiableUUID(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - direct: PromiseOrValue, - renounce: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - WNEAR(overrides?: CallOverrides): Promise; - - auTokenBalances( - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - auTokenBalancesAll( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - auTokenMetadataAllNonView( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - auTokenMetadataNonView( - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - auTokenUnderlyingPrice( - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - auTokenUnderlyingPriceAll( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - claimOwnership(overrides?: CallOverrides): Promise; - - claimRewards( - comptroller: PromiseOrValue, - fairLaunch: PromiseOrValue, - pids: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - getAccountLimits( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getAddresses( - comptroller: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, string, string, string] & { - ply: string; - aurora: string; - wnear: string; - pulp: string; - } - >; - - getPercentLock( - pulp: PromiseOrValue, - account: PromiseOrValue, - weekInt: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardSpeeds( - comptroller: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getWeekToUnlock( - pulp: PromiseOrValue, - account: PromiseOrValue, - targetUnlockPercent: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - proxiableUUID(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - direct: PromiseOrValue, - renounce: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - upgradeTo(newImplementation: PromiseOrValue, overrides?: CallOverrides): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - }; - - filters: { - 'AdminChanged(address,address)'(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter; - AdminChanged(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter; - - 'BeaconUpgraded(address)'(beacon?: PromiseOrValue | null): BeaconUpgradedEventFilter; - BeaconUpgraded(beacon?: PromiseOrValue | null): BeaconUpgradedEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'Upgraded(address)'(implementation?: PromiseOrValue | null): UpgradedEventFilter; - Upgraded(implementation?: PromiseOrValue | null): UpgradedEventFilter; - }; - - estimateGas: { - WNEAR(overrides?: CallOverrides): Promise; - - auTokenBalances( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenBalancesAll( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataAllNonView( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataNonView( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenUnderlyingPrice(auToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - auTokenUnderlyingPriceAll(auTokens: PromiseOrValue[], overrides?: CallOverrides): Promise; - - claimOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - claimRewards( - comptroller: PromiseOrValue, - fairLaunch: PromiseOrValue, - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLimits(comptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAddresses(comptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - getPercentLock( - pulp: PromiseOrValue, - account: PromiseOrValue, - weekInt: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardSpeeds( - comptroller: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getWeekToUnlock( - pulp: PromiseOrValue, - account: PromiseOrValue, - targetUnlockPercent: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - proxiableUUID(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - direct: PromiseOrValue, - renounce: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - WNEAR(overrides?: CallOverrides): Promise; - - auTokenBalances( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenBalancesAll( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataAllNonView( - auTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenMetadataNonView( - auToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auTokenUnderlyingPrice(auToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - auTokenUnderlyingPriceAll( - auTokens: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - claimOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - claimRewards( - comptroller: PromiseOrValue, - fairLaunch: PromiseOrValue, - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLimits(comptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAddresses(comptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - getPercentLock( - pulp: PromiseOrValue, - account: PromiseOrValue, - weekInt: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardSpeeds( - comptroller: PromiseOrValue, - auToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getWeekToUnlock( - pulp: PromiseOrValue, - account: PromiseOrValue, - targetUnlockPercent: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - proxiableUUID(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - direct: PromiseOrValue, - renounce: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/aurigami/contracts/ethers/common.ts b/src/apps/aurigami/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/aurigami/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/aurigami/contracts/ethers/factories/AurigamiAuToken__factory.ts b/src/apps/aurigami/contracts/ethers/factories/AurigamiAuToken__factory.ts deleted file mode 100644 index 8bdae21a0..000000000 --- a/src/apps/aurigami/contracts/ethers/factories/AurigamiAuToken__factory.ts +++ /dev/null @@ -1,1317 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { AurigamiAuToken, AurigamiAuTokenInterface } from '../AurigamiAuToken'; - -const _abi = [ - { - inputs: [ - { - internalType: 'address', - name: 'underlying_', - type: 'address', - }, - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { - internalType: 'string', - name: 'name_', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol_', - type: 'string', - }, - { - internalType: 'uint8', - name: 'decimals_', - type: 'uint8', - }, - { - internalType: 'address payable', - name: 'admin_', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'BadInput', - type: 'error', - }, - { - inputs: [], - name: 'InvalidAccountPair', - type: 'error', - }, - { - inputs: [], - name: 'InvalidCloseAmountRequested', - type: 'error', - }, - { - inputs: [], - name: 'MarketNotFresh', - type: 'error', - }, - { - inputs: [], - name: 'TokenInsufficientCash', - type: 'error', - }, - { - inputs: [], - name: 'Unauthorized', - type: 'error', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'cashPrior', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'interestAccumulated', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'AccrueInterest', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'Borrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'auTokenCollateral', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'LiquidateBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintTokens', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'NewAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'oldComptroller', - type: 'address', - }, - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: 'NewComptroller', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'oldInterestRateModel', - type: 'address', - }, - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: 'NewMarketInterestRateModel', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPendingAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: 'NewPendingAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldProtocolSeizeShareMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newProtocolSeizeShareMantissa', - type: 'uint256', - }, - ], - name: 'NewProtocolSeizeShare', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldReserveFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewReserveFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'RepayBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'benefactor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'admin', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesReduced', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - inputs: [], - name: '_acceptAdmin', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - ], - name: '_addReserves', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - ], - name: '_reduceReserves', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: '_setComptroller', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: '_setInterestRateModel', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address payable', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: '_setPendingAdmin', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newProtocolSeizeShareMantissa', - type: 'uint256', - }, - ], - name: '_setProtocolSeizeShare', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: '_setReserveFactor', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accrualBlockTimestamp', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'accrueInterest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'admin', - outputs: [ - { - internalType: 'address payable', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'balanceOfUnderlying', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'borrow', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'borrowBalanceCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'borrowBalanceStored', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowRatePerTimestamp', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'comptroller', - outputs: [ - { - internalType: 'contract ComptrollerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateStored', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAccountSnapshot', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getBorrowDataOfAccount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getCash', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getSupplyDataOfOneAccount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account1', - type: 'address', - }, - { - internalType: 'address', - name: 'account2', - type: 'address', - }, - ], - name: 'getSupplyDataOfTwoAccount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'interestRateModel', - outputs: [ - { - internalType: 'contract InterestRateModel', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isAuToken', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - internalType: 'contract AuTokenInterface', - name: 'auTokenCollateral', - type: 'address', - }, - ], - name: 'liquidateBorrow', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingAdmin', - outputs: [ - { - internalType: 'address payable', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolSeizeShareMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'redeem', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - ], - name: 'redeemUnderlying', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrow', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrowBehalf', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'reserveFactorMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'seize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'supplyRatePerTimestamp', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract EIP20NonStandardInterface', - name: 'token', - type: 'address', - }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrows', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrowsCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalReserves', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'src', - type: 'address', - }, - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'underlying', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export class AurigamiAuToken__factory { - static readonly abi = _abi; - static createInterface(): AurigamiAuTokenInterface { - return new utils.Interface(_abi) as AurigamiAuTokenInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): AurigamiAuToken { - return new Contract(address, _abi, signerOrProvider) as AurigamiAuToken; - } -} diff --git a/src/apps/aurigami/contracts/ethers/factories/AurigamiComptroller__factory.ts b/src/apps/aurigami/contracts/ethers/factories/AurigamiComptroller__factory.ts deleted file mode 100644 index 456821dfc..000000000 --- a/src/apps/aurigami/contracts/ethers/factories/AurigamiComptroller__factory.ts +++ /dev/null @@ -1,1966 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { AurigamiComptroller, AurigamiComptrollerInterface } from '../AurigamiComptroller'; - -const _abi = [ - { - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'InsufficientLiquidity', - type: 'error', - }, - { - inputs: [], - name: 'InsufficientShortfall', - type: 'error', - }, - { - inputs: [], - name: 'InvalidCollateralFactor', - type: 'error', - }, - { - inputs: [], - name: 'MarketAlreadyListed', - type: 'error', - }, - { - inputs: [], - name: 'MarketCollateralFactorZero', - type: 'error', - }, - { - inputs: [], - name: 'MarketNotListed', - type: 'error', - }, - { - inputs: [], - name: 'NonzeroBorrowBalance', - type: 'error', - }, - { - inputs: [], - name: 'PriceError', - type: 'error', - }, - { - inputs: [], - name: 'TooMuchRepay', - type: 'error', - }, - { - inputs: [], - name: 'Unauthorized', - type: 'error', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'action', - type: 'string', - }, - { - indexed: false, - internalType: 'bool', - name: 'pauseState', - type: 'bool', - }, - ], - name: 'ActionPaused', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'contributor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newSpeed', - type: 'uint256', - }, - ], - name: 'ContributorPlySpeedUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint8', - name: 'tokenType', - type: 'uint8', - }, - { - indexed: true, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'plyDelta', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'plyBorrowIndex', - type: 'uint256', - }, - ], - name: 'DistributedBorrowerReward', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint8', - name: 'tokenType', - type: 'uint8', - }, - { - indexed: true, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'plyDelta', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'plyBorrowIndex', - type: 'uint256', - }, - ], - name: 'DistributedSupplierReward', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'MarketEntered', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'MarketExited', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'MarketListed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newBorrowCap', - type: 'uint256', - }, - ], - name: 'NewBorrowCap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldBorrowCapGuardian', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newBorrowCapGuardian', - type: 'address', - }, - ], - name: 'NewBorrowCapGuardian', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldCloseFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCloseFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewCloseFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldCollateralFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCollateralFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewCollateralFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldLiquidationIncentiveMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newLiquidationIncentiveMantissa', - type: 'uint256', - }, - ], - name: 'NewLiquidationIncentive', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newMintCap', - type: 'uint256', - }, - ], - name: 'NewMintCap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldMintCapGuardian', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newMintCapGuardian', - type: 'address', - }, - ], - name: 'NewMintCapGuardian', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPauseGuardian', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPauseGuardian', - type: 'address', - }, - ], - name: 'NewPauseGuardian', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract PriceOracle', - name: 'oldPriceOracle', - type: 'address', - }, - { - indexed: false, - internalType: 'contract PriceOracle', - name: 'newPriceOracle', - type: 'address', - }, - ], - name: 'NewPriceOracle', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'PlyGranted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'tokenType', - type: 'uint8', - }, - { - indexed: true, - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'isSupply', - type: 'bool', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newSpeed', - type: 'uint256', - }, - ], - name: 'SpeedUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'addr', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'newStatus', - type: 'bool', - }, - ], - name: 'WhitelistStatusChanged', - type: 'event', - }, - { - inputs: [ - { - internalType: 'contract Unitroller', - name: 'unitroller', - type: 'address', - }, - ], - name: '_become', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: '_borrowGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: '_grantPly', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: '_mintGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newBorrowCapGuardian', - type: 'address', - }, - ], - name: '_setBorrowCapGuardian', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setBorrowPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newCloseFactorMantissa', - type: 'uint256', - }, - ], - name: '_setCloseFactor', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'newCollateralFactorMantissa', - type: 'uint256', - }, - ], - name: '_setCollateralFactor', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newLiquidationIncentiveMantissa', - type: 'uint256', - }, - ], - name: '_setLiquidationIncentive', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'newBorrowCaps', - type: 'uint256[]', - }, - ], - name: '_setMarketBorrowCaps', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'newMintCaps', - type: 'uint256[]', - }, - ], - name: '_setMarketMintCaps', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_maxAssets', - type: 'uint256', - }, - ], - name: '_setMaxAssets', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newMintCapGuardian', - type: 'address', - }, - ], - name: '_setMintCapGuardian', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setMintPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newPauseGuardian', - type: 'address', - }, - ], - name: '_setPauseGuardian', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract PriceOracle', - name: 'newOracle', - type: 'address', - }, - ], - name: '_setPriceOracle', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'rewardType', - type: 'uint8', - }, - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'rewardSpeeds', - type: 'uint256[]', - }, - { - internalType: 'bool[]', - name: 'isSupply', - type: 'bool[]', - }, - ], - name: '_setRewardSpeeds', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setSeizePaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setTransferPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: '_supportMarket', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'accountAssets', - outputs: [ - { - internalType: 'contract AuToken', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'admin', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'allMarkets', - outputs: [ - { - internalType: 'contract AuToken', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aurora', - outputs: [ - { - internalType: 'contract EIP20Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'borrowAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'borrowCapGuardian', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'borrowCaps', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'borrowGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'checkMembership', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'rewardType', - type: 'uint8', - }, - { - internalType: 'address', - name: 'holder', - type: 'address', - }, - ], - name: 'claimReward', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'rewardType', - type: 'uint8', - }, - { - internalType: 'address', - name: 'holder', - type: 'address', - }, - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - ], - name: 'claimReward', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'rewardType', - type: 'uint8', - }, - { - internalType: 'address[]', - name: 'holders', - type: 'address[]', - }, - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - { - internalType: 'bool', - name: 'borrowers', - type: 'bool', - }, - { - internalType: 'bool', - name: 'suppliers', - type: 'bool', - }, - ], - name: 'claimReward', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'closeFactorMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'comptrollerImplementation', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'auTokens', - type: 'address[]', - }, - ], - name: 'enterMarkets', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auTokenAddress', - type: 'address', - }, - ], - name: 'exitMarket', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAccountLiquidity', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAllMarkets', - outputs: [ - { - internalType: 'contract AuToken[]', - name: '', - type: 'address[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAssetsIn', - outputs: [ - { - internalType: 'contract AuToken[]', - name: 'assetsIn', - type: 'address[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'address', - name: 'auTokenModify', - type: 'address', - }, - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'getHypotheticalAccountLiquidity', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'initialIndexConstant', - outputs: [ - { - internalType: 'uint224', - name: '', - type: 'uint224', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'user', - type: 'address', - }, - { - internalType: 'address', - name: 'claimer', - type: 'address', - }, - ], - name: 'isAllowedToClaimReward', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isComptroller', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'isWhitelisted', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'auTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'liquidateBorrowAllowed', - outputs: [], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'auTokenCollateral', - type: 'address', - }, - { - internalType: 'uint256', - name: 'actualRepayAmount', - type: 'uint256', - }, - ], - name: 'liquidateCalculateSeizeTokens', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'liquidationIncentiveMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'markets', - outputs: [ - { - internalType: 'bool', - name: 'isListed', - type: 'bool', - }, - { - internalType: 'uint256', - name: 'collateralFactorMantissa', - type: 'uint256', - }, - { - internalType: 'bool', - name: 'isPlyed', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxAssets', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - ], - name: 'mintAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'mintCapGuardian', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'mintCaps', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'mintGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'oracle', - outputs: [ - { - internalType: 'contract PriceOracle', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pauseGuardian', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingAdmin', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingComptrollerImplementation', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ply', - outputs: [ - { - internalType: 'contract EIP20Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pulp', - outputs: [ - { - internalType: 'contract PULPInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'redeemAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrowAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewardAccrued', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardAurora', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewardBorrowState', - outputs: [ - { - internalType: 'uint224', - name: 'index', - type: 'uint224', - }, - { - internalType: 'uint32', - name: 'timestamp', - type: 'uint32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewardBorrowerIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardClaimStart', - outputs: [ - { - internalType: 'uint32', - name: '', - type: 'uint32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardPly', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - name: 'rewardRate', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - name: 'rewardSpeeds', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewardSupplierIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewardSupplyState', - outputs: [ - { - internalType: 'uint224', - name: 'index', - type: 'uint224', - }, - { - internalType: 'uint32', - name: 'timestamp', - type: 'uint32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'auTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'seizeAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'seizeGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract PULPInterface', - name: 'newPulp', - type: 'address', - }, - ], - name: 'setLockAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint32', - name: 'newRewardClaimStart', - type: 'uint32', - }, - ], - name: 'setRewardClaimStart', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract EIP20Interface', - name: 'newPly', - type: 'address', - }, - { - internalType: 'contract EIP20Interface', - name: 'newAurora', - type: 'address', - }, - ], - name: 'setTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'addr', - type: 'address', - }, - { - internalType: 'bool', - name: 'whitelisted', - type: 'bool', - }, - ], - name: 'setWhitelisted', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'address', - name: 'src', - type: 'address', - }, - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'transferTokens', - type: 'uint256', - }, - ], - name: 'transferAllowed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'transferGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export class AurigamiComptroller__factory { - static readonly abi = _abi; - static createInterface(): AurigamiComptrollerInterface { - return new utils.Interface(_abi) as AurigamiComptrollerInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): AurigamiComptroller { - return new Contract(address, _abi, signerOrProvider) as AurigamiComptroller; - } -} diff --git a/src/apps/aurigami/contracts/ethers/factories/AurigamiLens__factory.ts b/src/apps/aurigami/contracts/ethers/factories/AurigamiLens__factory.ts deleted file mode 100644 index a597ad36e..000000000 --- a/src/apps/aurigami/contracts/ethers/factories/AurigamiLens__factory.ts +++ /dev/null @@ -1,831 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { AurigamiLens, AurigamiLensInterface } from '../AurigamiLens'; - -const _abi = [ - { - inputs: [ - { - internalType: 'contract IERC20', - name: '_WNEAR', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'previousAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'AdminChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'beacon', - type: 'address', - }, - ], - name: 'BeaconUpgraded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'implementation', - type: 'address', - }, - ], - name: 'Upgraded', - type: 'event', - }, - { - inputs: [], - name: 'WNEAR', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'auTokenBalances', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'balanceOf', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowBalanceCurrent', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'balanceOfUnderlying', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenBalance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenAllowance', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenBalances', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - ], - name: 'auTokenBalancesAll', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'balanceOf', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowBalanceCurrent', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'balanceOfUnderlying', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenBalance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenAllowance', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenBalances[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - ], - name: 'auTokenMetadataAllNonView', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'exchangeRateCurrent', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'supplyRatePerBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowRatePerBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'reserveFactorMantissa', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalReserves', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalCash', - type: 'uint256', - }, - { - internalType: 'bool', - name: 'isListed', - type: 'bool', - }, - { - internalType: 'uint256', - name: 'collateralFactorMantissa', - type: 'uint256', - }, - { - internalType: 'address', - name: 'underlyingAssetAddress', - type: 'address', - }, - { - internalType: 'uint256', - name: 'auTokenDecimals', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'underlyingDecimals', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'plyRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'plyRewardBorrowSpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardBorrowSpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowCap', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenMetadata[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'auTokenMetadataNonView', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'exchangeRateCurrent', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'supplyRatePerBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowRatePerBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'reserveFactorMantissa', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalReserves', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalCash', - type: 'uint256', - }, - { - internalType: 'bool', - name: 'isListed', - type: 'bool', - }, - { - internalType: 'uint256', - name: 'collateralFactorMantissa', - type: 'uint256', - }, - { - internalType: 'address', - name: 'underlyingAssetAddress', - type: 'address', - }, - { - internalType: 'uint256', - name: 'auTokenDecimals', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'underlyingDecimals', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'plyRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'plyRewardBorrowSpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardBorrowSpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowCap', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenMetadata', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'auTokenUnderlyingPrice', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'underlyingPrice', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenUnderlyingPrice', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract AuToken[]', - name: 'auTokens', - type: 'address[]', - }, - ], - name: 'auTokenUnderlyingPriceAll', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'auToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'underlyingPrice', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AuTokenUnderlyingPrice[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerLensInterface', - name: 'comptroller', - type: 'address', - }, - { - internalType: 'contract AuriFairLaunchInterface', - name: 'fairLaunch', - type: 'address', - }, - { - internalType: 'uint256[]', - name: 'pids', - type: 'uint256[]', - }, - ], - name: 'claimRewards', - outputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'plyAccrured', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraClaimable', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'wnearClaimable', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.RewardBalancesMetadata', - name: 'rewardData', - type: 'tuple', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerLensInterface', - name: 'comptroller', - type: 'address', - }, - ], - name: 'getAccountLimits', - outputs: [ - { - components: [ - { - internalType: 'contract AuToken[]', - name: 'markets', - type: 'address[]', - }, - { - internalType: 'uint256', - name: 'liquidity', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'shortfall', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.AccountLimits', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerLensInterface', - name: 'comptroller', - type: 'address', - }, - ], - name: 'getAddresses', - outputs: [ - { - internalType: 'address', - name: 'ply', - type: 'address', - }, - { - internalType: 'address', - name: 'aurora', - type: 'address', - }, - { - internalType: 'address', - name: 'wnear', - type: 'address', - }, - { - internalType: 'address', - name: 'pulp', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract PULPInterface', - name: 'pulp', - type: 'address', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'int256', - name: 'weekInt', - type: 'int256', - }, - ], - name: 'getPercentLock', - outputs: [ - { - internalType: 'uint256', - name: 'percentLock', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerLensInterface', - name: 'comptroller', - type: 'address', - }, - { - internalType: 'contract AuToken', - name: 'auToken', - type: 'address', - }, - ], - name: 'getRewardSpeeds', - outputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'plyRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'plyRewardBorrowSpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardSupplySpeed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraRewardBorrowSpeed', - type: 'uint256', - }, - ], - internalType: 'struct AuriLens.RewardSpeeds', - name: 'rewardSpeeds', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract PULPInterface', - name: 'pulp', - type: 'address', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'targetUnlockPercent', - type: 'uint256', - }, - ], - name: 'getWeekToUnlock', - outputs: [ - { - internalType: 'int256', - name: '', - type: 'int256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingOwner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proxiableUUID', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - { - internalType: 'bool', - name: 'direct', - type: 'bool', - }, - { - internalType: 'bool', - name: 'renounce', - type: 'bool', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - }, - ], - name: 'upgradeTo', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'upgradeToAndCall', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, -]; - -export class AurigamiLens__factory { - static readonly abi = _abi; - static createInterface(): AurigamiLensInterface { - return new utils.Interface(_abi) as AurigamiLensInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): AurigamiLens { - return new Contract(address, _abi, signerOrProvider) as AurigamiLens; - } -} diff --git a/src/apps/aurigami/contracts/ethers/factories/index.ts b/src/apps/aurigami/contracts/ethers/factories/index.ts deleted file mode 100644 index 29991cc3e..000000000 --- a/src/apps/aurigami/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { AurigamiAuToken__factory } from './AurigamiAuToken__factory'; -export { AurigamiComptroller__factory } from './AurigamiComptroller__factory'; -export { AurigamiLens__factory } from './AurigamiLens__factory'; diff --git a/src/apps/aurigami/contracts/ethers/index.ts b/src/apps/aurigami/contracts/ethers/index.ts deleted file mode 100644 index fbd2f9ba3..000000000 --- a/src/apps/aurigami/contracts/ethers/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { AurigamiAuToken } from './AurigamiAuToken'; -export type { AurigamiComptroller } from './AurigamiComptroller'; -export type { AurigamiLens } from './AurigamiLens'; -export * as factories from './factories'; -export { AurigamiAuToken__factory } from './factories/AurigamiAuToken__factory'; -export { AurigamiComptroller__factory } from './factories/AurigamiComptroller__factory'; -export { AurigamiLens__factory } from './factories/AurigamiLens__factory'; diff --git a/src/apps/aurigami/contracts/index.ts b/src/apps/aurigami/contracts/index.ts deleted file mode 100644 index 1fdfc7bbd..000000000 --- a/src/apps/aurigami/contracts/index.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { AurigamiAuToken__factory, AurigamiComptroller__factory, AurigamiLens__factory } from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class AurigamiContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - aurigamiAuToken({ address, network }: ContractOpts) { - return AurigamiAuToken__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - aurigamiComptroller({ address, network }: ContractOpts) { - return AurigamiComptroller__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - aurigamiLens({ address, network }: ContractOpts) { - return AurigamiLens__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { AurigamiAuToken } from './ethers'; -export type { AurigamiComptroller } from './ethers'; -export type { AurigamiLens } from './ethers'; diff --git a/src/apps/aurora-plus/assets/logo.png b/src/apps/aurora-plus/assets/logo.png deleted file mode 100644 index 5ac8186f6..000000000 Binary files a/src/apps/aurora-plus/assets/logo.png and /dev/null differ diff --git a/src/apps/aurora-plus/aurora-plus.module.ts b/src/apps/aurora-plus/aurora-plus.module.ts deleted file mode 100644 index b916f4440..000000000 --- a/src/apps/aurora-plus/aurora-plus.module.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; - -import { AuroraAuroraPlusStakeContractPositionFetcher } from './aurora/aurora-plus.stake.contract-position-fetcher'; -import { AuroraPlusContractFactory } from './contracts'; - -@Module({ - providers: [ - AuroraPlusContractFactory, - // Aurora - AuroraAuroraPlusStakeContractPositionFetcher, - ], -}) -export class AuroraPlusAppModule extends AbstractApp() {} diff --git a/src/apps/aurora-plus/aurora/aurora-plus.stake.contract-position-fetcher.ts b/src/apps/aurora-plus/aurora/aurora-plus.stake.contract-position-fetcher.ts deleted file mode 100644 index 0492176ae..000000000 --- a/src/apps/aurora-plus/aurora/aurora-plus.stake.contract-position-fetcher.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Inject } from '@nestjs/common'; -import { range } from 'lodash'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { MetaType } from '~position/position.interface'; -import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; -import { GetTokenBalancesParams, GetTokenDefinitionsParams } from '~position/template/contract-position.template.types'; - -import { AuroraPlusContractFactory, Staking } from '../contracts'; - -const rewardTokenToIgnore = ['0x6ede987a51d7b4d3945e7a76af59ff2b968910a8']; - -@PositionTemplate() -export class AuroraAuroraPlusStakeContractPositionFetcher extends ContractPositionTemplatePositionFetcher { - groupLabel = 'Staked Aurora'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(AuroraPlusContractFactory) protected readonly contractFactory: AuroraPlusContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): Staking { - return this.contractFactory.staking({ address, network: this.network }); - } - - async getDefinitions() { - return [{ address: '0xccc2b1ad21666a5847a804a73a41f904c4a4a0ec' }]; - } - - async getTokenDefinitions({ contract }: GetTokenDefinitionsParams) { - const streamCount = await contract.getStreamsCount(); - const streamIDs = range(0, streamCount.toNumber()); - const rewardTokenAddressesRaw = await Promise.all( - streamIDs.map((streamID: number) => contract.getStream(streamID).then(r => r.rewardToken.toLowerCase())), - ); - - const rewardTokenAddresses = rewardTokenAddressesRaw.filter(token => !rewardTokenToIgnore.includes(token)); - - return [ - { - metaType: MetaType.SUPPLIED, - address: '0x8bec47865ade3b172a928df8f990bc7f2a3b9f79', - network: this.network, - }, - ...rewardTokenAddresses.map(address => ({ - metaType: MetaType.CLAIMABLE, - address, - network: this.network, - })), - ]; - } - - async getLabel() { - return `Staked AURORA`; - } - - async getTokenBalancesPerPosition({ address, contract }: GetTokenBalancesParams) { - const streamCount = await contract.getStreamsCount(); - const streamIDs = range(0, streamCount.toNumber()); - const rewardTokenValuesRaw = await Promise.all(streamIDs.map(streamID => contract.getPending(streamID, address))); - const depositAmount = await contract.getUserTotalDeposit(address); - - return [depositAmount, ...rewardTokenValuesRaw]; - } -} diff --git a/src/apps/aurora-plus/contracts/abis/staking.json b/src/apps/aurora-plus/contracts/abis/staking.json deleted file mode 100644 index a015ca58e..000000000 --- a/src/apps/aurora-plus/contracts/abis/staking.json +++ /dev/null @@ -1,1668 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "previousAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "AdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "beacon", - "type": "address" - } - ], - "name": "BeaconUpgraded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Pending", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Released", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Staked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "auroraAmount", - "type": "uint256" - } - ], - "name": "StreamCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "StreamOwnerRewardReleased", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "StreamProposalCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "maxDepositAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "auroraDepositAmount", - "type": "uint256" - } - ], - "name": "StreamProposed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "StreamRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Unstaked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "Upgraded", - "type": "event" - }, - { - "inputs": [], - "name": "AIRDROP_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "CLAIM_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "FOUR_YEARS", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ONE_MONTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PAUSE_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "STREAM_MANAGER_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "adminDelegatecall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "flags", - "type": "uint256" - } - ], - "name": "adminPause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "key", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "adminSstore", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "key", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "mask", - "type": "uint256" - } - ], - "name": "adminSstoreWithMask", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "auroraToken", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "streamIds", - "type": "uint256[]" - } - ], - "name": "batchClaimOnBehalfOfAnotherUser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "accounts", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "streamIds", - "type": "uint256[]" - } - ], - "name": "batchClaimOnBehalfOfOtherUsers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "streamIds", - "type": "uint256[]" - } - ], - "name": "batchMoveRewardsToPending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "streamIds", - "type": "uint256[]" - } - ], - "name": "batchWithdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "cancelStreamProposal", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "claimAllOnBehalfOfAnotherUser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "accounts", - "type": "address[]" - } - ], - "name": "claimAllOnBehalfOfOtherUsers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "claimOnBehalfOfAnotherUser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardTokenAmount", - "type": "uint256" - } - ], - "name": "createStream", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAmountOfShares", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "getLatestRewardPerShare", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getPending", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getReleaseTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "getRewardPerShare", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getRewardPerShareForUser", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastUpdate", - "type": "uint256" - } - ], - "name": "getRewardsAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "getStream", - "outputs": [ - { - "internalType": "address", - "name": "streamOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "auroraDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraClaimedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardClaimedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastTimeOwnerClaimed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rps", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tau", - "type": "uint256" - }, - { - "internalType": "enum JetStakingV1.StreamStatus", - "name": "status", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getStreamClaimableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "getStreamOwnerClaimableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "getStreamSchedule", - "outputs": [ - { - "internalType": "uint256[]", - "name": "scheduleTimes", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "scheduleRewards", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStreamsCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTotalAmountOfStakedAurora", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "getTreasuryBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getUserShares", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getUserTotalDeposit", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "aurora", - "type": "address" - }, - { - "internalType": "address", - "name": "streamOwner", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "scheduleTimes", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "scheduleRewards", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "tauAuroraStream", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_flags", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_treasury", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_maxWeight", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_minWeight", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "maxWeight", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "minWeight", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "moveAllRewardsToPending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "moveRewardsToPending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "streamOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "auroraDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minDepositAmount", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "scheduleTimes", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "scheduleRewards", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "tau", - "type": "uint256" - } - ], - "name": "proposeStream", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "releaseAuroraRewardsToStreamOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "streamFundReceiver", - "type": "address" - } - ], - "name": "removeStream", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "rewardsSchedule", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "stakeOnBehalfOfAnotherUser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "accounts", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "batchAmount", - "type": "uint256" - } - ], - "name": "stakeOnBehalfOfOtherUsers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "startEndScheduleIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "startIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "endIndex", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAmountOfStakedAurora", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAuroraShares", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalStreamShares", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "touchedAt", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "treasury", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "unstake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unstakeAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_treasury", - "type": "address" - } - ], - "name": "updateTreasury", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - } - ], - "name": "upgradeTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "upgradeToAndCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "users", - "outputs": [ - { - "internalType": "uint256", - "name": "deposit", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "auroraShares", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "streamShares", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "streamId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/aurora-plus/contracts/ethers/Staking.ts b/src/apps/aurora-plus/contracts/ethers/Staking.ts deleted file mode 100644 index a1f045e54..000000000 --- a/src/apps/aurora-plus/contracts/ethers/Staking.ts +++ /dev/null @@ -1,2332 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - 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, PromiseOrValue } from './common'; - -export interface StakingInterface extends utils.Interface { - functions: { - 'AIRDROP_ROLE()': FunctionFragment; - 'CLAIM_ROLE()': FunctionFragment; - 'DEFAULT_ADMIN_ROLE()': FunctionFragment; - 'FOUR_YEARS()': FunctionFragment; - 'ONE_MONTH()': FunctionFragment; - 'PAUSE_ROLE()': FunctionFragment; - 'STREAM_MANAGER_ROLE()': FunctionFragment; - 'adminDelegatecall(address,bytes)': FunctionFragment; - 'adminPause(uint256)': FunctionFragment; - 'adminSstore(uint256,uint256)': FunctionFragment; - 'adminSstoreWithMask(uint256,uint256,uint256)': FunctionFragment; - 'auroraToken()': FunctionFragment; - 'batchClaimOnBehalfOfAnotherUser(address,uint256[])': FunctionFragment; - 'batchClaimOnBehalfOfOtherUsers(address[],uint256[])': FunctionFragment; - 'batchMoveRewardsToPending(uint256[])': FunctionFragment; - 'batchWithdraw(uint256[])': FunctionFragment; - 'cancelStreamProposal(uint256)': FunctionFragment; - 'claimAllOnBehalfOfAnotherUser(address)': FunctionFragment; - 'claimAllOnBehalfOfOtherUsers(address[])': FunctionFragment; - 'claimOnBehalfOfAnotherUser(address,uint256)': FunctionFragment; - 'createStream(uint256,uint256)': FunctionFragment; - 'getAmountOfShares(uint256,address)': FunctionFragment; - 'getLatestRewardPerShare(uint256)': FunctionFragment; - 'getPending(uint256,address)': FunctionFragment; - 'getReleaseTime(uint256,address)': FunctionFragment; - 'getRewardPerShare(uint256)': FunctionFragment; - 'getRewardPerShareForUser(uint256,address)': FunctionFragment; - 'getRewardsAmount(uint256,uint256)': FunctionFragment; - 'getRoleAdmin(bytes32)': FunctionFragment; - 'getStream(uint256)': FunctionFragment; - 'getStreamClaimableAmount(uint256,address)': FunctionFragment; - 'getStreamOwnerClaimableAmount(uint256)': FunctionFragment; - 'getStreamSchedule(uint256)': FunctionFragment; - 'getStreamsCount()': FunctionFragment; - 'getTotalAmountOfStakedAurora()': FunctionFragment; - 'getTreasuryBalance(address)': FunctionFragment; - 'getUserShares(address)': FunctionFragment; - 'getUserTotalDeposit(address)': FunctionFragment; - 'grantRole(bytes32,address)': FunctionFragment; - 'hasRole(bytes32,address)': FunctionFragment; - 'initialize(address,address,uint256[],uint256[],uint256,uint256,address,uint256,uint256)': FunctionFragment; - 'maxWeight()': FunctionFragment; - 'minWeight()': FunctionFragment; - 'moveAllRewardsToPending()': FunctionFragment; - 'moveRewardsToPending(uint256)': FunctionFragment; - 'paused()': FunctionFragment; - 'proposeStream(address,address,uint256,uint256,uint256,uint256[],uint256[],uint256)': FunctionFragment; - 'releaseAuroraRewardsToStreamOwner(uint256)': FunctionFragment; - 'removeStream(uint256,address)': FunctionFragment; - 'renounceRole(bytes32,address)': FunctionFragment; - 'revokeRole(bytes32,address)': FunctionFragment; - 'rewardsSchedule(uint256,uint256,uint256)': FunctionFragment; - 'stake(uint256)': FunctionFragment; - 'stakeOnBehalfOfAnotherUser(address,uint256)': FunctionFragment; - 'stakeOnBehalfOfOtherUsers(address[],uint256[],uint256)': FunctionFragment; - 'startEndScheduleIndex(uint256,uint256,uint256)': FunctionFragment; - 'supportsInterface(bytes4)': FunctionFragment; - 'totalAmountOfStakedAurora()': FunctionFragment; - 'totalAuroraShares()': FunctionFragment; - 'totalStreamShares()': FunctionFragment; - 'touchedAt()': FunctionFragment; - 'treasury()': FunctionFragment; - 'unstake(uint256)': FunctionFragment; - 'unstakeAll()': FunctionFragment; - 'updateTreasury(address)': FunctionFragment; - 'upgradeTo(address)': FunctionFragment; - 'upgradeToAndCall(address,bytes)': FunctionFragment; - 'users(address)': FunctionFragment; - 'withdraw(uint256)': FunctionFragment; - 'withdrawAll()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'AIRDROP_ROLE' - | 'CLAIM_ROLE' - | 'DEFAULT_ADMIN_ROLE' - | 'FOUR_YEARS' - | 'ONE_MONTH' - | 'PAUSE_ROLE' - | 'STREAM_MANAGER_ROLE' - | 'adminDelegatecall' - | 'adminPause' - | 'adminSstore' - | 'adminSstoreWithMask' - | 'auroraToken' - | 'batchClaimOnBehalfOfAnotherUser' - | 'batchClaimOnBehalfOfOtherUsers' - | 'batchMoveRewardsToPending' - | 'batchWithdraw' - | 'cancelStreamProposal' - | 'claimAllOnBehalfOfAnotherUser' - | 'claimAllOnBehalfOfOtherUsers' - | 'claimOnBehalfOfAnotherUser' - | 'createStream' - | 'getAmountOfShares' - | 'getLatestRewardPerShare' - | 'getPending' - | 'getReleaseTime' - | 'getRewardPerShare' - | 'getRewardPerShareForUser' - | 'getRewardsAmount' - | 'getRoleAdmin' - | 'getStream' - | 'getStreamClaimableAmount' - | 'getStreamOwnerClaimableAmount' - | 'getStreamSchedule' - | 'getStreamsCount' - | 'getTotalAmountOfStakedAurora' - | 'getTreasuryBalance' - | 'getUserShares' - | 'getUserTotalDeposit' - | 'grantRole' - | 'hasRole' - | 'initialize' - | 'maxWeight' - | 'minWeight' - | 'moveAllRewardsToPending' - | 'moveRewardsToPending' - | 'paused' - | 'proposeStream' - | 'releaseAuroraRewardsToStreamOwner' - | 'removeStream' - | 'renounceRole' - | 'revokeRole' - | 'rewardsSchedule' - | 'stake' - | 'stakeOnBehalfOfAnotherUser' - | 'stakeOnBehalfOfOtherUsers' - | 'startEndScheduleIndex' - | 'supportsInterface' - | 'totalAmountOfStakedAurora' - | 'totalAuroraShares' - | 'totalStreamShares' - | 'touchedAt' - | 'treasury' - | 'unstake' - | 'unstakeAll' - | 'updateTreasury' - | 'upgradeTo' - | 'upgradeToAndCall' - | 'users' - | 'withdraw' - | 'withdrawAll', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'AIRDROP_ROLE', values?: undefined): string; - encodeFunctionData(functionFragment: 'CLAIM_ROLE', values?: undefined): string; - encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string; - encodeFunctionData(functionFragment: 'FOUR_YEARS', values?: undefined): string; - encodeFunctionData(functionFragment: 'ONE_MONTH', values?: undefined): string; - encodeFunctionData(functionFragment: 'PAUSE_ROLE', values?: undefined): string; - encodeFunctionData(functionFragment: 'STREAM_MANAGER_ROLE', values?: undefined): string; - encodeFunctionData( - functionFragment: 'adminDelegatecall', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'adminPause', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'adminSstore', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'adminSstoreWithMask', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'auroraToken', values?: undefined): string; - encodeFunctionData( - functionFragment: 'batchClaimOnBehalfOfAnotherUser', - values: [PromiseOrValue, PromiseOrValue[]], - ): string; - encodeFunctionData( - functionFragment: 'batchClaimOnBehalfOfOtherUsers', - values: [PromiseOrValue[], PromiseOrValue[]], - ): string; - encodeFunctionData(functionFragment: 'batchMoveRewardsToPending', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'batchWithdraw', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'cancelStreamProposal', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'claimAllOnBehalfOfAnotherUser', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'claimAllOnBehalfOfOtherUsers', values: [PromiseOrValue[]]): string; - encodeFunctionData( - functionFragment: 'claimOnBehalfOfAnotherUser', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'createStream', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'getAmountOfShares', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'getLatestRewardPerShare', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getPending', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'getReleaseTime', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'getRewardPerShare', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getRewardPerShareForUser', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'getRewardsAmount', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'getRoleAdmin', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getStream', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getStreamClaimableAmount', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'getStreamOwnerClaimableAmount', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getStreamSchedule', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getStreamsCount', values?: undefined): string; - encodeFunctionData(functionFragment: 'getTotalAmountOfStakedAurora', values?: undefined): string; - encodeFunctionData(functionFragment: 'getTreasuryBalance', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getUserShares', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getUserTotalDeposit', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'grantRole', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'hasRole', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'initialize', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'maxWeight', values?: undefined): string; - encodeFunctionData(functionFragment: 'minWeight', values?: undefined): string; - encodeFunctionData(functionFragment: 'moveAllRewardsToPending', values?: undefined): string; - encodeFunctionData(functionFragment: 'moveRewardsToPending', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'paused', values?: undefined): string; - encodeFunctionData( - functionFragment: 'proposeStream', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'releaseAuroraRewardsToStreamOwner', - values: [PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'removeStream', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'renounceRole', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'revokeRole', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'rewardsSchedule', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'stake', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'stakeOnBehalfOfAnotherUser', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'stakeOnBehalfOfOtherUsers', - values: [PromiseOrValue[], PromiseOrValue[], PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'startEndScheduleIndex', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'supportsInterface', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'totalAmountOfStakedAurora', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalAuroraShares', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalStreamShares', values?: undefined): string; - encodeFunctionData(functionFragment: 'touchedAt', values?: undefined): string; - encodeFunctionData(functionFragment: 'treasury', values?: undefined): string; - encodeFunctionData(functionFragment: 'unstake', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'unstakeAll', values?: undefined): string; - encodeFunctionData(functionFragment: 'updateTreasury', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'upgradeTo', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'upgradeToAndCall', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'users', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'withdraw', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'withdrawAll', values?: undefined): string; - - decodeFunctionResult(functionFragment: 'AIRDROP_ROLE', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'CLAIM_ROLE', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'FOUR_YEARS', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'ONE_MONTH', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'PAUSE_ROLE', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'STREAM_MANAGER_ROLE', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'adminDelegatecall', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'adminPause', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'adminSstore', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'adminSstoreWithMask', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'auroraToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'batchClaimOnBehalfOfAnotherUser', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'batchClaimOnBehalfOfOtherUsers', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'batchMoveRewardsToPending', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'batchWithdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'cancelStreamProposal', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimAllOnBehalfOfAnotherUser', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimAllOnBehalfOfOtherUsers', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'claimOnBehalfOfAnotherUser', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'createStream', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAmountOfShares', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getLatestRewardPerShare', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getPending', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getReleaseTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getRewardPerShare', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getRewardPerShareForUser', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getRewardsAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getStream', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getStreamClaimableAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getStreamOwnerClaimableAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getStreamSchedule', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getStreamsCount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getTotalAmountOfStakedAurora', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getTreasuryBalance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getUserShares', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getUserTotalDeposit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'maxWeight', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'minWeight', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'moveAllRewardsToPending', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'moveRewardsToPending', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'paused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'proposeStream', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'releaseAuroraRewardsToStreamOwner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'removeStream', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardsSchedule', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stake', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stakeOnBehalfOfAnotherUser', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stakeOnBehalfOfOtherUsers', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'startEndScheduleIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalAmountOfStakedAurora', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalAuroraShares', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalStreamShares', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'touchedAt', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'treasury', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'unstake', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'unstakeAll', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'updateTreasury', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'users', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawAll', data: BytesLike): Result; - - events: { - 'AdminChanged(address,address)': EventFragment; - 'BeaconUpgraded(address)': EventFragment; - 'Pending(uint256,address,uint256)': EventFragment; - 'Released(uint256,address,uint256)': EventFragment; - 'RoleAdminChanged(bytes32,bytes32,bytes32)': EventFragment; - 'RoleGranted(bytes32,address,address)': EventFragment; - 'RoleRevoked(bytes32,address,address)': EventFragment; - 'Staked(address,uint256,uint256)': EventFragment; - 'StreamCreated(uint256,address,address,uint256,uint256)': EventFragment; - 'StreamOwnerRewardReleased(uint256,address,uint256)': EventFragment; - 'StreamProposalCancelled(uint256,address,address)': EventFragment; - 'StreamProposed(uint256,address,address,uint256,uint256)': EventFragment; - 'StreamRemoved(uint256,address,address)': EventFragment; - 'Unstaked(address,uint256)': EventFragment; - 'Upgraded(address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'BeaconUpgraded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Pending'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Released'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleAdminChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleGranted'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleRevoked'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Staked'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StreamCreated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StreamOwnerRewardReleased'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StreamProposalCancelled'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StreamProposed'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StreamRemoved'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Unstaked'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment; -} - -export interface AdminChangedEventObject { - previousAdmin: string; - newAdmin: string; -} -export type AdminChangedEvent = TypedEvent<[string, string], AdminChangedEventObject>; - -export type AdminChangedEventFilter = TypedEventFilter; - -export interface BeaconUpgradedEventObject { - beacon: string; -} -export type BeaconUpgradedEvent = TypedEvent<[string], BeaconUpgradedEventObject>; - -export type BeaconUpgradedEventFilter = TypedEventFilter; - -export interface PendingEventObject { - streamId: BigNumber; - user: string; - amount: BigNumber; -} -export type PendingEvent = TypedEvent<[BigNumber, string, BigNumber], PendingEventObject>; - -export type PendingEventFilter = TypedEventFilter; - -export interface ReleasedEventObject { - streamId: BigNumber; - user: string; - amount: BigNumber; -} -export type ReleasedEvent = TypedEvent<[BigNumber, string, BigNumber], ReleasedEventObject>; - -export type ReleasedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent<[string, string, string], RoleAdminChangedEventObject>; - -export type RoleAdminChangedEventFilter = TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent<[string, string, string], RoleGrantedEventObject>; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent<[string, string, string], RoleRevokedEventObject>; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface StakedEventObject { - user: string; - amount: BigNumber; - shares: BigNumber; -} -export type StakedEvent = TypedEvent<[string, BigNumber, BigNumber], StakedEventObject>; - -export type StakedEventFilter = TypedEventFilter; - -export interface StreamCreatedEventObject { - streamId: BigNumber; - owner: string; - token: string; - tokenAmount: BigNumber; - auroraAmount: BigNumber; -} -export type StreamCreatedEvent = TypedEvent< - [BigNumber, string, string, BigNumber, BigNumber], - StreamCreatedEventObject ->; - -export type StreamCreatedEventFilter = TypedEventFilter; - -export interface StreamOwnerRewardReleasedEventObject { - streamId: BigNumber; - owner: string; - amount: BigNumber; -} -export type StreamOwnerRewardReleasedEvent = TypedEvent< - [BigNumber, string, BigNumber], - StreamOwnerRewardReleasedEventObject ->; - -export type StreamOwnerRewardReleasedEventFilter = TypedEventFilter; - -export interface StreamProposalCancelledEventObject { - streamId: BigNumber; - owner: string; - token: string; -} -export type StreamProposalCancelledEvent = TypedEvent<[BigNumber, string, string], StreamProposalCancelledEventObject>; - -export type StreamProposalCancelledEventFilter = TypedEventFilter; - -export interface StreamProposedEventObject { - streamId: BigNumber; - owner: string; - token: string; - maxDepositAmount: BigNumber; - auroraDepositAmount: BigNumber; -} -export type StreamProposedEvent = TypedEvent< - [BigNumber, string, string, BigNumber, BigNumber], - StreamProposedEventObject ->; - -export type StreamProposedEventFilter = TypedEventFilter; - -export interface StreamRemovedEventObject { - streamId: BigNumber; - owner: string; - token: string; -} -export type StreamRemovedEvent = TypedEvent<[BigNumber, string, string], StreamRemovedEventObject>; - -export type StreamRemovedEventFilter = TypedEventFilter; - -export interface UnstakedEventObject { - user: string; - amount: BigNumber; -} -export type UnstakedEvent = TypedEvent<[string, BigNumber], UnstakedEventObject>; - -export type UnstakedEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface Staking extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: StakingInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - AIRDROP_ROLE(overrides?: CallOverrides): Promise<[string]>; - - CLAIM_ROLE(overrides?: CallOverrides): Promise<[string]>; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - FOUR_YEARS(overrides?: CallOverrides): Promise<[BigNumber]>; - - ONE_MONTH(overrides?: CallOverrides): Promise<[BigNumber]>; - - PAUSE_ROLE(overrides?: CallOverrides): Promise<[string]>; - - STREAM_MANAGER_ROLE(overrides?: CallOverrides): Promise<[string]>; - - adminDelegatecall( - target: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - adminPause( - flags: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstore( - key: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstoreWithMask( - key: PromiseOrValue, - value: PromiseOrValue, - mask: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auroraToken(overrides?: CallOverrides): Promise<[string]>; - - batchClaimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchClaimOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchMoveRewardsToPending( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchWithdraw( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - cancelStreamProposal( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfAnotherUser( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - createStream( - streamId: PromiseOrValue, - rewardTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAmountOfShares( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getLatestRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getPending( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getReleaseTime( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getRewardPerShareForUser( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getRewardsAmount( - streamId: PromiseOrValue, - lastUpdate: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getRoleAdmin(role: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - getStream( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [ - string, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - ] & { - streamOwner: string; - rewardToken: string; - auroraDepositAmount: BigNumber; - auroraClaimedAmount: BigNumber; - rewardDepositAmount: BigNumber; - rewardClaimedAmount: BigNumber; - maxDepositAmount: BigNumber; - lastTimeOwnerClaimed: BigNumber; - rps: BigNumber; - tau: BigNumber; - status: number; - } - >; - - getStreamClaimableAmount( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getStreamOwnerClaimableAmount( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - getStreamSchedule( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber[], BigNumber[]] & { - scheduleTimes: BigNumber[]; - scheduleRewards: BigNumber[]; - } - >; - - getStreamsCount(overrides?: CallOverrides): Promise<[BigNumber]>; - - getTotalAmountOfStakedAurora(overrides?: CallOverrides): Promise<[BigNumber]>; - - getTreasuryBalance(token: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getUserShares(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getUserTotalDeposit(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[boolean]>; - - initialize( - aurora: PromiseOrValue, - streamOwner: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tauAuroraStream: PromiseOrValue, - _flags: PromiseOrValue, - _treasury: PromiseOrValue, - _maxWeight: PromiseOrValue, - _minWeight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - maxWeight(overrides?: CallOverrides): Promise<[BigNumber]>; - - minWeight(overrides?: CallOverrides): Promise<[BigNumber]>; - - moveAllRewardsToPending(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - moveRewardsToPending( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - paused(overrides?: CallOverrides): Promise<[BigNumber]>; - - proposeStream( - streamOwner: PromiseOrValue, - rewardToken: PromiseOrValue, - auroraDepositAmount: PromiseOrValue, - maxDepositAmount: PromiseOrValue, - minDepositAmount: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tau: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - releaseAuroraRewardsToStreamOwner( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeStream( - streamId: PromiseOrValue, - streamFundReceiver: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardsSchedule( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfAnotherUser( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - amounts: PromiseOrValue[], - batchAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - startEndScheduleIndex( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { startIndex: BigNumber; endIndex: BigNumber }>; - - supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - totalAmountOfStakedAurora(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalAuroraShares(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalStreamShares(overrides?: CallOverrides): Promise<[BigNumber]>; - - touchedAt(overrides?: CallOverrides): Promise<[BigNumber]>; - - treasury(overrides?: CallOverrides): Promise<[string]>; - - unstake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unstakeAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - updateTreasury( - _treasury: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - users( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - deposit: BigNumber; - auroraShares: BigNumber; - streamShares: BigNumber; - } - >; - - withdraw( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - AIRDROP_ROLE(overrides?: CallOverrides): Promise; - - CLAIM_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - FOUR_YEARS(overrides?: CallOverrides): Promise; - - ONE_MONTH(overrides?: CallOverrides): Promise; - - PAUSE_ROLE(overrides?: CallOverrides): Promise; - - STREAM_MANAGER_ROLE(overrides?: CallOverrides): Promise; - - adminDelegatecall( - target: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - adminPause( - flags: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstore( - key: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstoreWithMask( - key: PromiseOrValue, - value: PromiseOrValue, - mask: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auroraToken(overrides?: CallOverrides): Promise; - - batchClaimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchClaimOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchMoveRewardsToPending( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchWithdraw( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - cancelStreamProposal( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfAnotherUser( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - createStream( - streamId: PromiseOrValue, - rewardTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAmountOfShares( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getLatestRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getPending( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getReleaseTime( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getRewardPerShareForUser( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardsAmount( - streamId: PromiseOrValue, - lastUpdate: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin(role: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStream( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & { - streamOwner: string; - rewardToken: string; - auroraDepositAmount: BigNumber; - auroraClaimedAmount: BigNumber; - rewardDepositAmount: BigNumber; - rewardClaimedAmount: BigNumber; - maxDepositAmount: BigNumber; - lastTimeOwnerClaimed: BigNumber; - rps: BigNumber; - tau: BigNumber; - status: number; - } - >; - - getStreamClaimableAmount( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamOwnerClaimableAmount(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStreamSchedule( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber[], BigNumber[]] & { - scheduleTimes: BigNumber[]; - scheduleRewards: BigNumber[]; - } - >; - - getStreamsCount(overrides?: CallOverrides): Promise; - - getTotalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - getTreasuryBalance(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserShares(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserTotalDeposit(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize( - aurora: PromiseOrValue, - streamOwner: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tauAuroraStream: PromiseOrValue, - _flags: PromiseOrValue, - _treasury: PromiseOrValue, - _maxWeight: PromiseOrValue, - _minWeight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - maxWeight(overrides?: CallOverrides): Promise; - - minWeight(overrides?: CallOverrides): Promise; - - moveAllRewardsToPending(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - moveRewardsToPending( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - proposeStream( - streamOwner: PromiseOrValue, - rewardToken: PromiseOrValue, - auroraDepositAmount: PromiseOrValue, - maxDepositAmount: PromiseOrValue, - minDepositAmount: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tau: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - releaseAuroraRewardsToStreamOwner( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeStream( - streamId: PromiseOrValue, - streamFundReceiver: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardsSchedule( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfAnotherUser( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - amounts: PromiseOrValue[], - batchAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - startEndScheduleIndex( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { startIndex: BigNumber; endIndex: BigNumber }>; - - supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - totalAuroraShares(overrides?: CallOverrides): Promise; - - totalStreamShares(overrides?: CallOverrides): Promise; - - touchedAt(overrides?: CallOverrides): Promise; - - treasury(overrides?: CallOverrides): Promise; - - unstake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unstakeAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - updateTreasury( - _treasury: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - users( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - deposit: BigNumber; - auroraShares: BigNumber; - streamShares: BigNumber; - } - >; - - withdraw( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - callStatic: { - AIRDROP_ROLE(overrides?: CallOverrides): Promise; - - CLAIM_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - FOUR_YEARS(overrides?: CallOverrides): Promise; - - ONE_MONTH(overrides?: CallOverrides): Promise; - - PAUSE_ROLE(overrides?: CallOverrides): Promise; - - STREAM_MANAGER_ROLE(overrides?: CallOverrides): Promise; - - adminDelegatecall( - target: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - adminPause(flags: PromiseOrValue, overrides?: CallOverrides): Promise; - - adminSstore( - key: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - adminSstoreWithMask( - key: PromiseOrValue, - value: PromiseOrValue, - mask: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - auroraToken(overrides?: CallOverrides): Promise; - - batchClaimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamIds: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - batchClaimOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - streamIds: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - batchMoveRewardsToPending(streamIds: PromiseOrValue[], overrides?: CallOverrides): Promise; - - batchWithdraw(streamIds: PromiseOrValue[], overrides?: CallOverrides): Promise; - - cancelStreamProposal(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - claimAllOnBehalfOfAnotherUser(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - claimAllOnBehalfOfOtherUsers(accounts: PromiseOrValue[], overrides?: CallOverrides): Promise; - - claimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - createStream( - streamId: PromiseOrValue, - rewardTokenAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getAmountOfShares( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getLatestRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getPending( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getReleaseTime( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getRewardPerShareForUser( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardsAmount( - streamId: PromiseOrValue, - lastUpdate: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin(role: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStream( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [ - string, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - ] & { - streamOwner: string; - rewardToken: string; - auroraDepositAmount: BigNumber; - auroraClaimedAmount: BigNumber; - rewardDepositAmount: BigNumber; - rewardClaimedAmount: BigNumber; - maxDepositAmount: BigNumber; - lastTimeOwnerClaimed: BigNumber; - rps: BigNumber; - tau: BigNumber; - status: number; - } - >; - - getStreamClaimableAmount( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamOwnerClaimableAmount( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamSchedule( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber[], BigNumber[]] & { - scheduleTimes: BigNumber[]; - scheduleRewards: BigNumber[]; - } - >; - - getStreamsCount(overrides?: CallOverrides): Promise; - - getTotalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - getTreasuryBalance(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserShares(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserTotalDeposit(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize( - aurora: PromiseOrValue, - streamOwner: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tauAuroraStream: PromiseOrValue, - _flags: PromiseOrValue, - _treasury: PromiseOrValue, - _maxWeight: PromiseOrValue, - _minWeight: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - maxWeight(overrides?: CallOverrides): Promise; - - minWeight(overrides?: CallOverrides): Promise; - - moveAllRewardsToPending(overrides?: CallOverrides): Promise; - - moveRewardsToPending(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - proposeStream( - streamOwner: PromiseOrValue, - rewardToken: PromiseOrValue, - auroraDepositAmount: PromiseOrValue, - maxDepositAmount: PromiseOrValue, - minDepositAmount: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tau: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - releaseAuroraRewardsToStreamOwner(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - removeStream( - streamId: PromiseOrValue, - streamFundReceiver: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardsSchedule( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stake(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - stakeOnBehalfOfAnotherUser( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stakeOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - amounts: PromiseOrValue[], - batchAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - startEndScheduleIndex( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { startIndex: BigNumber; endIndex: BigNumber }>; - - supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - totalAuroraShares(overrides?: CallOverrides): Promise; - - totalStreamShares(overrides?: CallOverrides): Promise; - - touchedAt(overrides?: CallOverrides): Promise; - - treasury(overrides?: CallOverrides): Promise; - - unstake(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - unstakeAll(overrides?: CallOverrides): Promise; - - updateTreasury(_treasury: PromiseOrValue, overrides?: CallOverrides): Promise; - - upgradeTo(newImplementation: PromiseOrValue, overrides?: CallOverrides): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - users( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - deposit: BigNumber; - auroraShares: BigNumber; - streamShares: BigNumber; - } - >; - - withdraw(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdrawAll(overrides?: CallOverrides): Promise; - }; - - filters: { - 'AdminChanged(address,address)'(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter; - AdminChanged(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter; - - 'BeaconUpgraded(address)'(beacon?: PromiseOrValue | null): BeaconUpgradedEventFilter; - BeaconUpgraded(beacon?: PromiseOrValue | null): BeaconUpgradedEventFilter; - - 'Pending(uint256,address,uint256)'( - streamId?: PromiseOrValue | null, - user?: PromiseOrValue | null, - amount?: null, - ): PendingEventFilter; - Pending( - streamId?: PromiseOrValue | null, - user?: PromiseOrValue | null, - amount?: null, - ): PendingEventFilter; - - 'Released(uint256,address,uint256)'( - streamId?: PromiseOrValue | null, - user?: PromiseOrValue | null, - amount?: null, - ): ReleasedEventFilter; - Released( - streamId?: PromiseOrValue | null, - user?: PromiseOrValue | null, - amount?: null, - ): ReleasedEventFilter; - - 'RoleAdminChanged(bytes32,bytes32,bytes32)'( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null, - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null, - ): RoleAdminChangedEventFilter; - - 'RoleGranted(bytes32,address,address)'( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null, - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null, - ): RoleGrantedEventFilter; - - 'RoleRevoked(bytes32,address,address)'( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null, - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null, - ): RoleRevokedEventFilter; - - 'Staked(address,uint256,uint256)'( - user?: PromiseOrValue | null, - amount?: null, - shares?: null, - ): StakedEventFilter; - Staked(user?: PromiseOrValue | null, amount?: null, shares?: null): StakedEventFilter; - - 'StreamCreated(uint256,address,address,uint256,uint256)'( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - tokenAmount?: null, - auroraAmount?: null, - ): StreamCreatedEventFilter; - StreamCreated( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - tokenAmount?: null, - auroraAmount?: null, - ): StreamCreatedEventFilter; - - 'StreamOwnerRewardReleased(uint256,address,uint256)'( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - amount?: null, - ): StreamOwnerRewardReleasedEventFilter; - StreamOwnerRewardReleased( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - amount?: null, - ): StreamOwnerRewardReleasedEventFilter; - - 'StreamProposalCancelled(uint256,address,address)'( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - ): StreamProposalCancelledEventFilter; - StreamProposalCancelled( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - ): StreamProposalCancelledEventFilter; - - 'StreamProposed(uint256,address,address,uint256,uint256)'( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - maxDepositAmount?: null, - auroraDepositAmount?: null, - ): StreamProposedEventFilter; - StreamProposed( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - maxDepositAmount?: null, - auroraDepositAmount?: null, - ): StreamProposedEventFilter; - - 'StreamRemoved(uint256,address,address)'( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - ): StreamRemovedEventFilter; - StreamRemoved( - streamId?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - token?: PromiseOrValue | null, - ): StreamRemovedEventFilter; - - 'Unstaked(address,uint256)'(user?: PromiseOrValue | null, amount?: null): UnstakedEventFilter; - Unstaked(user?: PromiseOrValue | null, amount?: null): UnstakedEventFilter; - - 'Upgraded(address)'(implementation?: PromiseOrValue | null): UpgradedEventFilter; - Upgraded(implementation?: PromiseOrValue | null): UpgradedEventFilter; - }; - - estimateGas: { - AIRDROP_ROLE(overrides?: CallOverrides): Promise; - - CLAIM_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - FOUR_YEARS(overrides?: CallOverrides): Promise; - - ONE_MONTH(overrides?: CallOverrides): Promise; - - PAUSE_ROLE(overrides?: CallOverrides): Promise; - - STREAM_MANAGER_ROLE(overrides?: CallOverrides): Promise; - - adminDelegatecall( - target: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - adminPause( - flags: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstore( - key: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstoreWithMask( - key: PromiseOrValue, - value: PromiseOrValue, - mask: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auroraToken(overrides?: CallOverrides): Promise; - - batchClaimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchClaimOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchMoveRewardsToPending( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchWithdraw( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - cancelStreamProposal( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfAnotherUser( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - createStream( - streamId: PromiseOrValue, - rewardTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAmountOfShares( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getLatestRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getPending( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getReleaseTime( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getRewardPerShareForUser( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardsAmount( - streamId: PromiseOrValue, - lastUpdate: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin(role: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStream(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStreamClaimableAmount( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamOwnerClaimableAmount( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamSchedule(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStreamsCount(overrides?: CallOverrides): Promise; - - getTotalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - getTreasuryBalance(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserShares(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserTotalDeposit(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize( - aurora: PromiseOrValue, - streamOwner: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tauAuroraStream: PromiseOrValue, - _flags: PromiseOrValue, - _treasury: PromiseOrValue, - _maxWeight: PromiseOrValue, - _minWeight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - maxWeight(overrides?: CallOverrides): Promise; - - minWeight(overrides?: CallOverrides): Promise; - - moveAllRewardsToPending(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - moveRewardsToPending( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - proposeStream( - streamOwner: PromiseOrValue, - rewardToken: PromiseOrValue, - auroraDepositAmount: PromiseOrValue, - maxDepositAmount: PromiseOrValue, - minDepositAmount: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tau: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - releaseAuroraRewardsToStreamOwner( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeStream( - streamId: PromiseOrValue, - streamFundReceiver: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardsSchedule( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfAnotherUser( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - amounts: PromiseOrValue[], - batchAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - startEndScheduleIndex( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - totalAuroraShares(overrides?: CallOverrides): Promise; - - totalStreamShares(overrides?: CallOverrides): Promise; - - touchedAt(overrides?: CallOverrides): Promise; - - treasury(overrides?: CallOverrides): Promise; - - unstake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unstakeAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - updateTreasury( - _treasury: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - users(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - populateTransaction: { - AIRDROP_ROLE(overrides?: CallOverrides): Promise; - - CLAIM_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - FOUR_YEARS(overrides?: CallOverrides): Promise; - - ONE_MONTH(overrides?: CallOverrides): Promise; - - PAUSE_ROLE(overrides?: CallOverrides): Promise; - - STREAM_MANAGER_ROLE(overrides?: CallOverrides): Promise; - - adminDelegatecall( - target: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - adminPause( - flags: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstore( - key: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - adminSstoreWithMask( - key: PromiseOrValue, - value: PromiseOrValue, - mask: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - auroraToken(overrides?: CallOverrides): Promise; - - batchClaimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchClaimOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchMoveRewardsToPending( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - batchWithdraw( - streamIds: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - cancelStreamProposal( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfAnotherUser( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimAllOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - claimOnBehalfOfAnotherUser( - account: PromiseOrValue, - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - createStream( - streamId: PromiseOrValue, - rewardTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAmountOfShares( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getLatestRewardPerShare( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getPending( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getReleaseTime( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardPerShare(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getRewardPerShareForUser( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRewardsAmount( - streamId: PromiseOrValue, - lastUpdate: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin(role: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStream(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStreamClaimableAmount( - streamId: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamOwnerClaimableAmount( - streamId: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - getStreamSchedule(streamId: PromiseOrValue, overrides?: CallOverrides): Promise; - - getStreamsCount(overrides?: CallOverrides): Promise; - - getTotalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - getTreasuryBalance(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserShares(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getUserTotalDeposit(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize( - aurora: PromiseOrValue, - streamOwner: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tauAuroraStream: PromiseOrValue, - _flags: PromiseOrValue, - _treasury: PromiseOrValue, - _maxWeight: PromiseOrValue, - _minWeight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - maxWeight(overrides?: CallOverrides): Promise; - - minWeight(overrides?: CallOverrides): Promise; - - moveAllRewardsToPending(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - moveRewardsToPending( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - proposeStream( - streamOwner: PromiseOrValue, - rewardToken: PromiseOrValue, - auroraDepositAmount: PromiseOrValue, - maxDepositAmount: PromiseOrValue, - minDepositAmount: PromiseOrValue, - scheduleTimes: PromiseOrValue[], - scheduleRewards: PromiseOrValue[], - tau: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - releaseAuroraRewardsToStreamOwner( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeStream( - streamId: PromiseOrValue, - streamFundReceiver: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardsSchedule( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfAnotherUser( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakeOnBehalfOfOtherUsers( - accounts: PromiseOrValue[], - amounts: PromiseOrValue[], - batchAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - startEndScheduleIndex( - streamId: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalAmountOfStakedAurora(overrides?: CallOverrides): Promise; - - totalAuroraShares(overrides?: CallOverrides): Promise; - - totalStreamShares(overrides?: CallOverrides): Promise; - - touchedAt(overrides?: CallOverrides): Promise; - - treasury(overrides?: CallOverrides): Promise; - - unstake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unstakeAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - updateTreasury( - _treasury: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue }, - ): Promise; - - users(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw( - streamId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; -} diff --git a/src/apps/aurora-plus/contracts/ethers/common.ts b/src/apps/aurora-plus/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/aurora-plus/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/aurora-plus/contracts/ethers/factories/Staking__factory.ts b/src/apps/aurora-plus/contracts/ethers/factories/Staking__factory.ts deleted file mode 100644 index bc76aa03c..000000000 --- a/src/apps/aurora-plus/contracts/ethers/factories/Staking__factory.ts +++ /dev/null @@ -1,1686 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { Staking, StakingInterface } from '../Staking'; - -const _abi = [ - { - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'previousAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'AdminChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'beacon', - type: 'address', - }, - ], - name: 'BeaconUpgraded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Pending', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Released', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - indexed: true, - internalType: 'bytes32', - name: 'previousAdminRole', - type: 'bytes32', - }, - { - indexed: true, - internalType: 'bytes32', - name: 'newAdminRole', - type: 'bytes32', - }, - ], - name: 'RoleAdminChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - ], - name: 'RoleGranted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - ], - name: 'RoleRevoked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Staked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'auroraAmount', - type: 'uint256', - }, - ], - name: 'StreamCreated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'StreamOwnerRewardReleased', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - ], - name: 'StreamProposalCancelled', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'maxDepositAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'auroraDepositAmount', - type: 'uint256', - }, - ], - name: 'StreamProposed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - ], - name: 'StreamRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Unstaked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'implementation', - type: 'address', - }, - ], - name: 'Upgraded', - type: 'event', - }, - { - inputs: [], - name: 'AIRDROP_ROLE', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'CLAIM_ROLE', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'DEFAULT_ADMIN_ROLE', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'FOUR_YEARS', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ONE_MONTH', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'PAUSE_ROLE', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'STREAM_MANAGER_ROLE', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'target', - type: 'address', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'adminDelegatecall', - outputs: [ - { - internalType: 'bytes', - name: '', - type: 'bytes', - }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'flags', - type: 'uint256', - }, - ], - name: 'adminPause', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'key', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'adminSstore', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'key', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'mask', - type: 'uint256', - }, - ], - name: 'adminSstoreWithMask', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'auroraToken', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256[]', - name: 'streamIds', - type: 'uint256[]', - }, - ], - name: 'batchClaimOnBehalfOfAnotherUser', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'accounts', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'streamIds', - type: 'uint256[]', - }, - ], - name: 'batchClaimOnBehalfOfOtherUsers', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'streamIds', - type: 'uint256[]', - }, - ], - name: 'batchMoveRewardsToPending', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'streamIds', - type: 'uint256[]', - }, - ], - name: 'batchWithdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'cancelStreamProposal', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'claimAllOnBehalfOfAnotherUser', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'accounts', - type: 'address[]', - }, - ], - name: 'claimAllOnBehalfOfOtherUsers', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'claimOnBehalfOfAnotherUser', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardTokenAmount', - type: 'uint256', - }, - ], - name: 'createStream', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAmountOfShares', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'getLatestRewardPerShare', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getPending', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getReleaseTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'getRewardPerShare', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getRewardPerShareForUser', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastUpdate', - type: 'uint256', - }, - ], - name: 'getRewardsAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - ], - name: 'getRoleAdmin', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'getStream', - outputs: [ - { - internalType: 'address', - name: 'streamOwner', - type: 'address', - }, - { - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'auroraDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraClaimedAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardClaimedAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'maxDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastTimeOwnerClaimed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rps', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tau', - type: 'uint256', - }, - { - internalType: 'enum JetStakingV1.StreamStatus', - name: 'status', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getStreamClaimableAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'getStreamOwnerClaimableAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'getStreamSchedule', - outputs: [ - { - internalType: 'uint256[]', - name: 'scheduleTimes', - type: 'uint256[]', - }, - { - internalType: 'uint256[]', - name: 'scheduleRewards', - type: 'uint256[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getStreamsCount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getTotalAmountOfStakedAurora', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - ], - name: 'getTreasuryBalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getUserShares', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getUserTotalDeposit', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'grantRole', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'hasRole', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'aurora', - type: 'address', - }, - { - internalType: 'address', - name: 'streamOwner', - type: 'address', - }, - { - internalType: 'uint256[]', - name: 'scheduleTimes', - type: 'uint256[]', - }, - { - internalType: 'uint256[]', - name: 'scheduleRewards', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'tauAuroraStream', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_flags', - type: 'uint256', - }, - { - internalType: 'address', - name: '_treasury', - type: 'address', - }, - { - internalType: 'uint256', - name: '_maxWeight', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_minWeight', - type: 'uint256', - }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'maxWeight', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'minWeight', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'moveAllRewardsToPending', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'moveRewardsToPending', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'paused', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'streamOwner', - type: 'address', - }, - { - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'auroraDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'maxDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'minDepositAmount', - type: 'uint256', - }, - { - internalType: 'uint256[]', - name: 'scheduleTimes', - type: 'uint256[]', - }, - { - internalType: 'uint256[]', - name: 'scheduleRewards', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'tau', - type: 'uint256', - }, - ], - name: 'proposeStream', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'releaseAuroraRewardsToStreamOwner', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'streamFundReceiver', - type: 'address', - }, - ], - name: 'removeStream', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'renounceRole', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 'role', - type: 'bytes32', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'revokeRole', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'start', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'end', - type: 'uint256', - }, - ], - name: 'rewardsSchedule', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'stake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'stakeOnBehalfOfAnotherUser', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'accounts', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'amounts', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'batchAmount', - type: 'uint256', - }, - ], - name: 'stakeOnBehalfOfOtherUsers', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'start', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'end', - type: 'uint256', - }, - ], - name: 'startEndScheduleIndex', - outputs: [ - { - internalType: 'uint256', - name: 'startIndex', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'endIndex', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes4', - name: 'interfaceId', - type: 'bytes4', - }, - ], - name: 'supportsInterface', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalAmountOfStakedAurora', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalAuroraShares', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalStreamShares', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'touchedAt', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'treasury', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'unstake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'unstakeAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_treasury', - type: 'address', - }, - ], - name: 'updateTreasury', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - }, - ], - name: 'upgradeTo', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'upgradeToAndCall', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'users', - outputs: [ - { - internalType: 'uint256', - name: 'deposit', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'auroraShares', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'streamShares', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'streamId', - type: 'uint256', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class Staking__factory { - static readonly abi = _abi; - static createInterface(): StakingInterface { - return new utils.Interface(_abi) as StakingInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Staking { - return new Contract(address, _abi, signerOrProvider) as Staking; - } -} diff --git a/src/apps/aurora-plus/contracts/ethers/factories/index.ts b/src/apps/aurora-plus/contracts/ethers/factories/index.ts deleted file mode 100644 index 7a01e5214..000000000 --- a/src/apps/aurora-plus/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Staking__factory } from './Staking__factory'; diff --git a/src/apps/aurora-plus/contracts/ethers/index.ts b/src/apps/aurora-plus/contracts/ethers/index.ts deleted file mode 100644 index 3c336f63e..000000000 --- a/src/apps/aurora-plus/contracts/ethers/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Staking } from './Staking'; -export * as factories from './factories'; -export { Staking__factory } from './factories/Staking__factory'; diff --git a/src/apps/aurora-plus/contracts/index.ts b/src/apps/aurora-plus/contracts/index.ts deleted file mode 100644 index ad19455e4..000000000 --- a/src/apps/aurora-plus/contracts/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { Staking__factory } from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class AuroraPlusContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - staking({ address, network }: ContractOpts) { - return Staking__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { Staking } from './ethers'; diff --git a/src/apps/bastion-protocol/assets/logo.png b/src/apps/bastion-protocol/assets/logo.png deleted file mode 100644 index 11c8501e8..000000000 Binary files a/src/apps/bastion-protocol/assets/logo.png and /dev/null differ diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-borrow.contract-position-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-borrow.contract-position-fetcher.ts deleted file mode 100644 index 985a42894..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-borrow.contract-position-fetcher.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - CompoundBorrowContractPositionFetcher, - CompoundBorrowTokenDataProps, - GetMarketsParams, -} from '~apps/compound/common/compound.borrow.contract-position-fetcher'; -import { - GetDataPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, -} from '~position/template/contract-position.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolAuroraEcosystemBorrowContractPositionFetcher extends CompoundBorrowContractPositionFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Aurora Ecosystem Realm'; - comptrollerAddress = '0xe1cf09bda2e089c63330f0ffe3f6d6b790835973'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetTokenDefinitionsParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetDataPropsParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa(params: GetDataPropsParams) { - const [underlyingToken] = params.contractPosition.tokens; - const auTokenDecimals = await this.getCTokenDecimals(params); - return 18 + underlyingToken.decimals - auTokenDecimals; - } - - async getBorrowRate({ contract }: GetDataPropsParams) { - return contract.callStatic.borrowRatePerBlock().catch(() => 0); - } - - async getCash({ contract }: GetDataPropsParams) { - return contract.getCash(); - } - - async getCTokenSupply({ contract }: GetDataPropsParams) { - return contract.totalSupply(); - } - - async getCTokenDecimals({ contract }: GetDataPropsParams) { - return contract.decimals(); - } - - async getBorrowBalance({ - address, - contract, - }: GetTokenBalancesParams) { - return contract.callStatic.borrowBalanceCurrent(address); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-supply.token-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-supply.token-fetcher.ts deleted file mode 100644 index 84b61abd5..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.aurora-ecosystem-supply.token-fetcher.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { CompoundSupplyTokenFetcher, GetMarketsParams } from '~apps/compound/common/compound.supply.token-fetcher'; -import { - GetUnderlyingTokensParams, - GetPricePerShareParams, - GetDataPropsParams, -} from '~position/template/app-token.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolAuroraEcosystemSupplyTokenFetcher extends CompoundSupplyTokenFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Aurora Ecosystem Realm'; - comptrollerAddress = '0xe1cf09bda2e089c63330f0ffe3f6d6b790835973'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string): BastionProtocolCtoken { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetUnderlyingTokensParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetPricePerShareParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getSupplyRate({ contract }: GetDataPropsParams) { - return contract.supplyRatePerBlock(); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-borrow.contract-position-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-borrow.contract-position-fetcher.ts deleted file mode 100644 index ec5081201..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-borrow.contract-position-fetcher.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - CompoundBorrowContractPositionFetcher, - CompoundBorrowTokenDataProps, - GetMarketsParams, -} from '~apps/compound/common/compound.borrow.contract-position-fetcher'; -import { - GetDataPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, -} from '~position/template/contract-position.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolMainHubBorrowContractPositionFetcher extends CompoundBorrowContractPositionFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Main Hub Realm'; - comptrollerAddress = '0x6de54724e128274520606f038591a00c5e94a1f6'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetTokenDefinitionsParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetDataPropsParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa(params: GetDataPropsParams) { - const [underlyingToken] = params.contractPosition.tokens; - const auTokenDecimals = await this.getCTokenDecimals(params); - return 18 + underlyingToken.decimals - auTokenDecimals; - } - - async getBorrowRate({ contract }: GetDataPropsParams) { - return contract.callStatic.borrowRatePerBlock().catch(() => 0); - } - - async getCash({ contract }: GetDataPropsParams) { - return contract.getCash(); - } - - async getCTokenSupply({ contract }: GetDataPropsParams) { - return contract.totalSupply(); - } - - async getCTokenDecimals({ contract }: GetDataPropsParams) { - return contract.decimals(); - } - - async getBorrowBalance({ - address, - contract, - }: GetTokenBalancesParams) { - return contract.callStatic.borrowBalanceCurrent(address); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-supply.token-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-supply.token-fetcher.ts deleted file mode 100644 index 1d4f8121c..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.main-hub-supply.token-fetcher.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { CompoundSupplyTokenFetcher, GetMarketsParams } from '~apps/compound/common/compound.supply.token-fetcher'; -import { - GetUnderlyingTokensParams, - GetPricePerShareParams, - GetDataPropsParams, -} from '~position/template/app-token.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolMainHubSupplyTokenFetcher extends CompoundSupplyTokenFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Main Hub Realm'; - comptrollerAddress = '0x6de54724e128274520606f038591a00c5e94a1f6'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string): BastionProtocolCtoken { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetUnderlyingTokensParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetPricePerShareParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getSupplyRate({ contract }: GetDataPropsParams) { - return contract.supplyRatePerBlock(); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-borrow.contract-position-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-borrow.contract-position-fetcher.ts deleted file mode 100644 index af9684945..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-borrow.contract-position-fetcher.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - CompoundBorrowContractPositionFetcher, - CompoundBorrowTokenDataProps, - GetMarketsParams, -} from '~apps/compound/common/compound.borrow.contract-position-fetcher'; -import { - GetDataPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, -} from '~position/template/contract-position.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolMultichainBorrowContractPositionFetcher extends CompoundBorrowContractPositionFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Multichain Realm'; - comptrollerAddress = '0xa195b3d7aa34e47fb2d2e5a682df2d9efa2daf06'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetTokenDefinitionsParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetDataPropsParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa(params: GetDataPropsParams) { - const [underlyingToken] = params.contractPosition.tokens; - const auTokenDecimals = await this.getCTokenDecimals(params); - return 18 + underlyingToken.decimals - auTokenDecimals; - } - - async getBorrowRate({ contract }: GetDataPropsParams) { - return contract.callStatic.borrowRatePerBlock().catch(() => 0); - } - - async getCash({ contract }: GetDataPropsParams) { - return contract.getCash(); - } - - async getCTokenSupply({ contract }: GetDataPropsParams) { - return contract.totalSupply(); - } - - async getCTokenDecimals({ contract }: GetDataPropsParams) { - return contract.decimals(); - } - - async getBorrowBalance({ - address, - contract, - }: GetTokenBalancesParams) { - return contract.callStatic.borrowBalanceCurrent(address); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-supply.token-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-supply.token-fetcher.ts deleted file mode 100644 index bce58a98e..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.multichain-supply.token-fetcher.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { CompoundSupplyTokenFetcher, GetMarketsParams } from '~apps/compound/common/compound.supply.token-fetcher'; -import { - GetUnderlyingTokensParams, - GetPricePerShareParams, - GetDataPropsParams, -} from '~position/template/app-token.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolMultichainSupplyTokenFetcher extends CompoundSupplyTokenFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Multichain Realm'; - comptrollerAddress = '0xa195b3d7aa34e47fb2d2e5a682df2d9efa2daf06'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string): BastionProtocolCtoken { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetUnderlyingTokensParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetPricePerShareParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getSupplyRate({ contract }: GetDataPropsParams) { - return contract.supplyRatePerBlock(); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.pool.token-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.pool.token-fetcher.ts deleted file mode 100644 index b551ce068..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.pool.token-fetcher.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; -import { Erc20 } from '~contract/contracts'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { - DefaultAppTokenDataProps, - GetAddressesParams, - GetDataPropsParams, - GetDisplayPropsParams, - GetPricePerShareParams, - GetUnderlyingTokensParams, -} from '~position/template/app-token.template.types'; - -import { BastionProtocolContractFactory } from '../contracts'; - -export type BastionProtocolPoolTokenDefinition = { - address: string; - swapAddress: string; -}; - -@PositionTemplate() -export class AuroraBastionProtocolPoolTokenFetcher extends AppTokenTemplatePositionFetcher< - Erc20, - DefaultAppTokenDataProps, - BastionProtocolPoolTokenDefinition -> { - groupLabel = 'Pools'; - - poolDefinitions = [ - { - swapAddress: '0x6287e912a9ccd4d5874ae15d3c89556b2a05f080', - tokenAddress: '0x0039f0641156cac478b0debab086d78b66a69a01', - }, - ]; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): Erc20 { - return this.contractFactory.erc20({ address, network: this.network }); - } - - async getDefinitions() { - return this.poolDefinitions.map(v => ({ - address: v.tokenAddress, - swapAddress: v.swapAddress, - })); - } - - async getAddresses({ definitions }: GetAddressesParams) { - return definitions.map(v => v.address); - } - - async getUnderlyingTokenDefinitions({ - definition, - multicall, - }: GetUnderlyingTokensParams) { - const swapContract = this.contractFactory.bastionProtocolSwap({ - address: definition.swapAddress, - network: this.network, - }); - - return [ - { address: await multicall.wrap(swapContract).getToken(0), network: this.network }, - { address: await multicall.wrap(swapContract).getToken(1), network: this.network }, - ]; - } - - async getPricePerShare({ - definition, - multicall, - appToken, - }: GetPricePerShareParams) { - if (appToken.supply === 0) return [0, 0]; - const swapContract = this.contractFactory.bastionProtocolSwap({ - address: definition.swapAddress, - network: this.network, - }); - - const [reserveRaw0, reserveRaw1] = await Promise.all([ - multicall.wrap(swapContract).getTokenBalance(0), - multicall.wrap(swapContract).getTokenBalance(1), - ]); - - const reserves = [reserveRaw0, reserveRaw1].map((v, i) => Number(v) / 10 ** appToken.tokens[i].decimals); - return reserves.map(v => v / appToken.supply); - } - - async getLiquidity({ appToken }: GetDataPropsParams) { - return appToken.supply * appToken.price; - } - - async getReserves({ appToken }: GetDataPropsParams) { - return (appToken.pricePerShare as number[]).map(v => v * appToken.supply); - } - - async getApy(_params: GetDataPropsParams) { - return 0; - } - - async getLabel({ appToken }: GetDisplayPropsParams) { - return appToken.tokens.map(v => getLabelFromToken(v)).join(' / '); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.position-presenter.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.position-presenter.ts deleted file mode 100644 index b5be23fd7..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.position-presenter.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { sumBy } from 'lodash'; - -import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; -import { PresentationConfig } from '~app/app.interface'; -import { MetadataItemWithLabel } from '~balance/balance-fetcher.interface'; -import { DefaultDataProps } from '~position/display.interface'; -import { PositionPresenterTemplate, ReadonlyBalances } from '~position/template/position-presenter.template'; - -@PresenterTemplate() -export class AuroraBastionProtocolPositionPresenter extends PositionPresenterTemplate { - explorePresentationConfig: PresentationConfig = { - tabs: [ - { - label: 'Main Hub', - viewType: 'split', - views: [ - { - viewType: 'list', - label: 'Supply', - groupIds: ['supply-main-hub'], - }, - { - viewType: 'list', - label: 'Borrow', - groupIds: ['borrow-main-hub'], - }, - ], - }, - { - label: 'Staked Near', - viewType: 'split', - views: [ - { - viewType: 'list', - label: 'Supply', - groupIds: ['supply-staked-near'], - }, - { - viewType: 'list', - label: 'Borrow', - groupIds: ['borrow-staked-near'], - }, - ], - }, - { - label: 'Aurora Ecosystem', - viewType: 'split', - views: [ - { - viewType: 'list', - label: 'Supply', - groupIds: ['supply-aurora-ecosystem'], - }, - { - viewType: 'list', - label: 'Borrow', - groupIds: ['borrow-aurora-ecosystem'], - }, - ], - }, - { - label: 'Multichain Realm', - viewType: 'split', - views: [ - { - viewType: 'list', - label: 'Supply', - groupIds: ['supply-multichain'], - }, - { - viewType: 'list', - label: 'Borrow', - groupIds: ['borrow-multichain'], - }, - ], - }, - { - label: 'Stableswap Pools', - viewType: 'list', - groupIds: ['pool'], - }, - ], - }; - - override metadataItemsForBalanceGroup( - groupLabel: string, - balances: ReadonlyBalances, - _dataProps?: DefaultDataProps, - ): MetadataItemWithLabel[] { - if (['Staked NEAR Realm', 'Multichain Realm', 'Main Hub Realm', 'Aurora Ecosystem Realm'].includes(groupLabel)) { - const collaterals = balances.filter(balance => balance.balanceUSD > 0); - const debt = balances.filter(balance => balance.balanceUSD < 0); - const totalCollateralUSD = sumBy(collaterals, a => a.balanceUSD); - const totalDebtUSD = sumBy(debt, a => a.balanceUSD); - const utilRatio = (Math.abs(totalDebtUSD) / totalCollateralUSD) * 100; - - return [ - { - label: 'Collateral', - value: totalCollateralUSD, - type: 'dollar', - }, - { - label: 'Debt', - value: totalDebtUSD, - type: 'dollar', - }, - { - label: 'Utilization Rate', - value: utilRatio, - type: 'pct', - }, - ]; - } - - return []; - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-borrow.contract-position-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-borrow.contract-position-fetcher.ts deleted file mode 100644 index 0face11ac..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-borrow.contract-position-fetcher.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - CompoundBorrowContractPositionFetcher, - CompoundBorrowTokenDataProps, - GetMarketsParams, -} from '~apps/compound/common/compound.borrow.contract-position-fetcher'; -import { - GetDataPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, -} from '~position/template/contract-position.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolStakedNearBorrowContractPositionFetcher extends CompoundBorrowContractPositionFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Staked NEAR Realm'; - comptrollerAddress = '0xe550a886716241afb7ee276e647207d7667e1e79'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string) { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetTokenDefinitionsParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetDataPropsParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getExchangeRateMantissa(params: GetDataPropsParams) { - const [underlyingToken] = params.contractPosition.tokens; - const auTokenDecimals = await this.getCTokenDecimals(params); - return 18 + underlyingToken.decimals - auTokenDecimals; - } - - async getBorrowRate({ contract }: GetDataPropsParams) { - return contract.callStatic.borrowRatePerBlock().catch(() => 0); - } - - async getCash({ contract }: GetDataPropsParams) { - return contract.getCash(); - } - - async getCTokenSupply({ contract }: GetDataPropsParams) { - return contract.totalSupply(); - } - - async getCTokenDecimals({ contract }: GetDataPropsParams) { - return contract.decimals(); - } - - async getBorrowBalance({ - address, - contract, - }: GetTokenBalancesParams) { - return contract.callStatic.borrowBalanceCurrent(address); - } -} diff --git a/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-supply.token-fetcher.ts b/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-supply.token-fetcher.ts deleted file mode 100644 index 353926786..000000000 --- a/src/apps/bastion-protocol/aurora/bastion-protocol.staked-near-supply.token-fetcher.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { CompoundSupplyTokenFetcher, GetMarketsParams } from '~apps/compound/common/compound.supply.token-fetcher'; -import { - GetUnderlyingTokensParams, - GetPricePerShareParams, - GetDataPropsParams, -} from '~position/template/app-token.template.types'; - -import { BastionProtocolComptroller, BastionProtocolContractFactory, BastionProtocolCtoken } from '../contracts'; - -@PositionTemplate() -export class AuroraBastionProtocolStakedNearSupplyTokenFetcher extends CompoundSupplyTokenFetcher< - BastionProtocolCtoken, - BastionProtocolComptroller -> { - groupLabel = 'Staked NEAR Realm'; - comptrollerAddress = '0xe550a886716241afb7ee276e647207d7667e1e79'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BastionProtocolContractFactory) protected readonly contractFactory: BastionProtocolContractFactory, - ) { - super(appToolkit); - } - - getCompoundCTokenContract(address: string): BastionProtocolCtoken { - return this.contractFactory.bastionProtocolCtoken({ address, network: this.network }); - } - - getCompoundComptrollerContract(address: string) { - return this.contractFactory.bastionProtocolComptroller({ address, network: this.network }); - } - - async getMarkets({ contract }: GetMarketsParams) { - return contract.getAllMarkets(); - } - - async getUnderlyingAddress({ contract }: GetUnderlyingTokensParams) { - return contract.underlying(); - } - - async getExchangeRate({ contract }: GetPricePerShareParams) { - return contract.callStatic.exchangeRateCurrent(); - } - - async getSupplyRate({ contract }: GetDataPropsParams) { - return contract.supplyRatePerBlock(); - } -} diff --git a/src/apps/bastion-protocol/bastion-protocol.module.ts b/src/apps/bastion-protocol/bastion-protocol.module.ts deleted file mode 100644 index 6df428a12..000000000 --- a/src/apps/bastion-protocol/bastion-protocol.module.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; - -import { AuroraBastionProtocolAuroraEcosystemBorrowContractPositionFetcher } from './aurora/bastion-protocol.aurora-ecosystem-borrow.contract-position-fetcher'; -import { AuroraBastionProtocolAuroraEcosystemSupplyTokenFetcher } from './aurora/bastion-protocol.aurora-ecosystem-supply.token-fetcher'; -import { AuroraBastionProtocolMainHubBorrowContractPositionFetcher } from './aurora/bastion-protocol.main-hub-borrow.contract-position-fetcher'; -import { AuroraBastionProtocolMainHubSupplyTokenFetcher } from './aurora/bastion-protocol.main-hub-supply.token-fetcher'; -import { AuroraBastionProtocolMultichainBorrowContractPositionFetcher } from './aurora/bastion-protocol.multichain-borrow.contract-position-fetcher'; -import { AuroraBastionProtocolMultichainSupplyTokenFetcher } from './aurora/bastion-protocol.multichain-supply.token-fetcher'; -import { AuroraBastionProtocolPoolTokenFetcher } from './aurora/bastion-protocol.pool.token-fetcher'; -import { AuroraBastionProtocolPositionPresenter } from './aurora/bastion-protocol.position-presenter'; -import { AuroraBastionProtocolStakedNearBorrowContractPositionFetcher } from './aurora/bastion-protocol.staked-near-borrow.contract-position-fetcher'; -import { AuroraBastionProtocolStakedNearSupplyTokenFetcher } from './aurora/bastion-protocol.staked-near-supply.token-fetcher'; -import { BastionProtocolContractFactory } from './contracts'; - -@Module({ - providers: [ - BastionProtocolContractFactory, - AuroraBastionProtocolPoolTokenFetcher, - AuroraBastionProtocolMainHubSupplyTokenFetcher, - AuroraBastionProtocolStakedNearSupplyTokenFetcher, - AuroraBastionProtocolAuroraEcosystemSupplyTokenFetcher, - AuroraBastionProtocolMultichainSupplyTokenFetcher, - AuroraBastionProtocolMainHubBorrowContractPositionFetcher, - AuroraBastionProtocolStakedNearBorrowContractPositionFetcher, - AuroraBastionProtocolAuroraEcosystemBorrowContractPositionFetcher, - AuroraBastionProtocolMultichainBorrowContractPositionFetcher, - AuroraBastionProtocolPositionPresenter, - ], -}) -export class BastionProtocolAppModule extends AbstractApp() {} diff --git a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-comptroller.json b/src/apps/bastion-protocol/contracts/abis/bastion-protocol-comptroller.json deleted file mode 100644 index 954fb2111..000000000 --- a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-comptroller.json +++ /dev/null @@ -1,2214 +0,0 @@ -[ - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "action", - "type": "string" - }, - { - "indexed": false, - "internalType": "bool", - "name": "pauseState", - "type": "bool" - } - ], - "name": "ActionPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldCompAccrued", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCompAccrued", - "type": "uint256" - } - ], - "name": "CompAccruedAdjusted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSpeed", - "type": "uint256" - } - ], - "name": "CompBorrowSpeedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "CompGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldCompReceivable", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCompReceivable", - "type": "uint256" - } - ], - "name": "CompReceivableUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSpeed", - "type": "uint256" - } - ], - "name": "CompSupplySpeedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "contributor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSpeed", - "type": "uint256" - } - ], - "name": "ContributorCompSpeedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "compDelta", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "compBorrowIndex", - "type": "uint256" - } - ], - "name": "DistributedBorrowerComp", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "supplier", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "compDelta", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "compSupplyIndex", - "type": "uint256" - } - ], - "name": "DistributedSupplierComp", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "error", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "info", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "detail", - "type": "uint256" - } - ], - "name": "Failure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "MarketEntered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "MarketExited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - } - ], - "name": "MarketListed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newBorrowCap", - "type": "uint256" - } - ], - "name": "NewBorrowCap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldBorrowCapGuardian", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newBorrowCapGuardian", - "type": "address" - } - ], - "name": "NewBorrowCapGuardian", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldCloseFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCloseFactorMantissa", - "type": "uint256" - } - ], - "name": "NewCloseFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldCollateralFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newCollateralFactorMantissa", - "type": "uint256" - } - ], - "name": "NewCollateralFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldLiquidationIncentiveMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newLiquidationIncentiveMantissa", - "type": "uint256" - } - ], - "name": "NewLiquidationIncentive", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldMaxAssets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newMaxAssets", - "type": "uint256" - } - ], - "name": "NewMaxAssets", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPauseGuardian", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPauseGuardian", - "type": "address" - } - ], - "name": "NewPauseGuardian", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract PriceOracle", - "name": "oldPriceOracle", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract PriceOracle", - "name": "newPriceOracle", - "type": "address" - } - ], - "name": "NewPriceOracle", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldRewardDistributor", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newRewardDistributor", - "type": "address" - } - ], - "name": "NewRewardDistributor", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract Unitroller", - "name": "unitroller", - "type": "address" - } - ], - "name": "_become", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_borrowGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_mintGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "newBorrowCapGuardian", - "type": "address" - } - ], - "name": "_setBorrowCapGuardian", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setBorrowPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "newCloseFactorMantissa", - "type": "uint256" - } - ], - "name": "_setCloseFactor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "newCollateralFactorMantissa", - "type": "uint256" - } - ], - "name": "_setCollateralFactor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "newLiquidationIncentiveMantissa", - "type": "uint256" - } - ], - "name": "_setLiquidationIncentive", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract CToken[]", - "name": "cTokens", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "newBorrowCaps", - "type": "uint256[]" - } - ], - "name": "_setMarketBorrowCaps", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "newMaxAssets", - "type": "uint256" - } - ], - "name": "_setMaxAssets", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - }, - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setMintPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "newPauseGuardian", - "type": "address" - } - ], - "name": "_setPauseGuardian", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract PriceOracle", - "name": "newOracle", - "type": "address" - } - ], - "name": "_setPriceOracle", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address payable", - "name": "newRewardDistributor", - "type": "address" - } - ], - "name": "_setRewardDistributor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setSeizePaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "bool", - "name": "state", - "type": "bool" - } - ], - "name": "_setTransferPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - } - ], - "name": "_supportMarket", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "accountAssets", - "outputs": [ - { - "internalType": "contract CToken", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "allMarkets", - "outputs": [ - { - "internalType": "contract CToken", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "borrowAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "borrowCapGuardian", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "borrowCaps", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "borrowGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "borrowVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - } - ], - "name": "checkMembership", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "closeFactorMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compAccrued", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compBorrowSpeeds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compBorrowState", - "outputs": [ - { - "internalType": "uint224", - "name": "index", - "type": "uint224" - }, - { - "internalType": "uint32", - "name": "block", - "type": "uint32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compBorrowerIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compContributorSpeeds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "compInitialIndex", - "outputs": [ - { - "internalType": "uint224", - "name": "", - "type": "uint224" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "compRate", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compReceivable", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compSpeeds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compSupplierIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compSupplySpeeds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "compSupplyState", - "outputs": [ - { - "internalType": "uint224", - "name": "index", - "type": "uint224" - }, - { - "internalType": "uint32", - "name": "block", - "type": "uint32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "comptrollerImplementation", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address[]", - "name": "cTokens", - "type": "address[]" - } - ], - "name": "enterMarkets", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cTokenAddress", - "type": "address" - } - ], - "name": "exitMarket", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAccountLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getAllMarkets", - "outputs": [ - { - "internalType": "contract CToken[]", - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAssetsIn", - "outputs": [ - { - "internalType": "contract CToken[]", - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenModify", - "type": "address" - }, - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "getHypotheticalAccountLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isComptroller", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "contract CToken", - "name": "cToken", - "type": "address" - } - ], - "name": "isDeprecated", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "cTokenAddress", - "type": "address" - } - ], - "name": "isMarketListed", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "lastContributorBlock", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "liquidateBorrowAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "actualRepayAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "liquidateBorrowVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "cTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "internalType": "uint256", - "name": "actualRepayAmount", - "type": "uint256" - } - ], - "name": "liquidateCalculateSeizeTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "liquidationIncentiveMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "markets", - "outputs": [ - { - "internalType": "bool", - "name": "isListed", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "collateralFactorMantissa", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isComped", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "maxAssets", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - } - ], - "name": "mintAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "mintGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "internalType": "uint256", - "name": "actualMintAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "mintTokens", - "type": "uint256" - } - ], - "name": "mintVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "oracle", - "outputs": [ - { - "internalType": "contract PriceOracle", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pauseGuardian", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingComptrollerImplementation", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "proposal65FixExecuted", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "redeemAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "redeemVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrowAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "actualRepayAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "borrowerIndex", - "type": "uint256" - } - ], - "name": "repayBorrowVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardDistributor", - "outputs": [ - { - "internalType": "address payable", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "seizeAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "seizeGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "internalType": "address", - "name": "cTokenBorrowed", - "type": "address" - }, - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "seizeVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "transferTokens", - "type": "uint256" - } - ], - "name": "transferAllowed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "transferGuardianPaused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "transferTokens", - "type": "uint256" - } - ], - "name": "transferVerify", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-ctoken.json b/src/apps/bastion-protocol/contracts/abis/bastion-protocol-ctoken.json deleted file mode 100644 index 343749739..000000000 --- a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-ctoken.json +++ /dev/null @@ -1,1431 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "cashPrior", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "interestAccumulated", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "AccrueInterest", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "Borrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "error", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "info", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "detail", - "type": "uint256" - } - ], - "name": "Failure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "LiquidateBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintTokens", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "oldComptroller", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "NewComptroller", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "oldInterestRateModel", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "NewMarketInterestRateModel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPendingAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldReserveFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "NewReserveFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "RepayBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "benefactor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "admin", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesReduced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": false, - "inputs": [], - "name": "_acceptAdmin", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - } - ], - "name": "_addReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "compLikeDelegatee", - "type": "address" - } - ], - "name": "_delegateCompLikeTo", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - } - ], - "name": "_reduceReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "_setComptroller", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "_setInterestRateModel", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address payable", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "_setPendingAdmin", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "_setReserveFactor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "accrualBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "accrueInterest", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address payable", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOfUnderlying", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - } - ], - "name": "borrow", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "borrowBalanceCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "borrowBalanceStored", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "borrowIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "borrowRatePerBlock", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "comptroller", - "outputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "exchangeRateCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "exchangeRateStored", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getAccountSnapshot", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getCash", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "underlying_", - "type": "address" - }, - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name_", - "type": "string" - }, - { - "internalType": "string", - "name": "symbol_", - "type": "string" - }, - { - "internalType": "uint8", - "name": "decimals_", - "type": "uint8" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name_", - "type": "string" - }, - { - "internalType": "string", - "name": "symbol_", - "type": "string" - }, - { - "internalType": "uint8", - "name": "decimals_", - "type": "uint8" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "interestRateModel", - "outputs": [ - { - "internalType": "contract InterestRateModel", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isCToken", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "internalType": "contract CTokenInterface", - "name": "cTokenCollateral", - "type": "address" - } - ], - "name": "liquidateBorrow", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { - "internalType": "address payable", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "protocolSeizeShareMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - } - ], - "name": "redeemUnderlying", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrow", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - } - ], - "name": "repayBorrowBehalf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "reserveFactorMantissa", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "seize", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "supplyRatePerBlock", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "contract EIP20NonStandardInterface", - "name": "token", - "type": "address" - } - ], - "name": "sweepToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalBorrows", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "totalBorrowsCurrent", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "underlying", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-lptoken.json b/src/apps/bastion-protocol/contracts/abis/bastion-protocol-lptoken.json deleted file mode 100644 index 04266ecd1..000000000 --- a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-lptoken.json +++ /dev/null @@ -1,397 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "burnFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" - } - ], - "name": "increaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "symbol", - "type": "string" - } - ], - "name": "initialize", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-swap.json b/src/apps/bastion-protocol/contracts/abis/bastion-protocol-swap.json deleted file mode 100644 index 01e49a41c..000000000 --- a/src/apps/bastion-protocol/contracts/abis/bastion-protocol-swap.json +++ /dev/null @@ -1,1011 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "provider", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenAmounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "fees", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "invariant", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpTokenSupply", - "type": "uint256" - } - ], - "name": "AddLiquidity", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "tokenIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amountFee", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "protocolFee", - "type": "uint256" - } - ], - "name": "FlashLoan", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newAdminFee", - "type": "uint256" - } - ], - "name": "NewAdminFee", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newSwapFee", - "type": "uint256" - } - ], - "name": "NewSwapFee", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newWithdrawFee", - "type": "uint256" - } - ], - "name": "NewWithdrawFee", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "Paused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldA", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newA", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "initialTime", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "futureTime", - "type": "uint256" - } - ], - "name": "RampA", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "provider", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenAmounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpTokenSupply", - "type": "uint256" - } - ], - "name": "RemoveLiquidity", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "provider", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenAmounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "fees", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "invariant", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpTokenSupply", - "type": "uint256" - } - ], - "name": "RemoveLiquidityImbalance", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "provider", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpTokenAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpTokenSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "boughtId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokensBought", - "type": "uint256" - } - ], - "name": "RemoveLiquidityOne", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "currentA", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "StopRampA", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokensSold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokensBought", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "soldId", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "boughtId", - "type": "uint128" - } - ], - "name": "TokenSwap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "Unpaused", - "type": "event" - }, - { - "inputs": [], - "name": "MAX_BPS", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "minToMint", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "addLiquidity", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "calculateRemoveLiquidity", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenAmount", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "tokenIndex", - "type": "uint8" - } - ], - "name": "calculateRemoveLiquidityOneToken", - "outputs": [ - { - "internalType": "uint256", - "name": "availableTokenAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "tokenIndexFrom", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "tokenIndexTo", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "dx", - "type": "uint256" - } - ], - "name": "calculateSwap", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "internalType": "bool", - "name": "deposit", - "type": "bool" - } - ], - "name": "calculateTokenAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "params", - "type": "bytes" - } - ], - "name": "flashLoan", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "flashLoanFeeBPS", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getA", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAPrecise", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "getAdminBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "index", - "type": "uint8" - } - ], - "name": "getToken", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "index", - "type": "uint8" - } - ], - "name": "getTokenBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenAddress", - "type": "address" - } - ], - "name": "getTokenIndex", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getVirtualPrice", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20[]", - "name": "_pooledTokens", - "type": "address[]" - }, - { - "internalType": "uint8[]", - "name": "decimals", - "type": "uint8[]" - }, - { - "internalType": "string", - "name": "lpTokenName", - "type": "string" - }, - { - "internalType": "string", - "name": "lpTokenSymbol", - "type": "string" - }, - { - "internalType": "uint256", - "name": "_a", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_adminFee", - "type": "uint256" - }, - { - "internalType": "address", - "name": "lpTokenTargetAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolFeeShareBPS", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "futureA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "futureTime", - "type": "uint256" - } - ], - "name": "rampA", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "minAmounts", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidity", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "maxBurnAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidityImbalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenAmount", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "tokenIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "minAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "removeLiquidityOneToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newAdminFee", - "type": "uint256" - } - ], - "name": "setAdminFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newFlashLoanFeeBPS", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newProtocolFeeShareBPS", - "type": "uint256" - } - ], - "name": "setFlashLoanFees", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newSwapFee", - "type": "uint256" - } - ], - "name": "setSwapFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stopRampA", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "tokenIndexFrom", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "tokenIndexTo", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "dx", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minDy", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "swap", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "swapStorage", - "outputs": [ - { - "internalType": "uint256", - "name": "initialA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "futureA", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "initialATime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "futureATime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "swapFee", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "adminFee", - "type": "uint256" - }, - { - "internalType": "contract LPToken", - "name": "lpToken", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAdminFees", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolComptroller.ts b/src/apps/bastion-protocol/contracts/ethers/BastionProtocolComptroller.ts deleted file mode 100644 index 09d2dedf0..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolComptroller.ts +++ /dev/null @@ -1,2483 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BastionProtocolComptrollerInterface extends utils.Interface { - functions: { - '_become(address)': FunctionFragment; - '_borrowGuardianPaused()': FunctionFragment; - '_mintGuardianPaused()': FunctionFragment; - '_setBorrowCapGuardian(address)': FunctionFragment; - '_setBorrowPaused(address,bool)': FunctionFragment; - '_setCloseFactor(uint256)': FunctionFragment; - '_setCollateralFactor(address,uint256)': FunctionFragment; - '_setLiquidationIncentive(uint256)': FunctionFragment; - '_setMarketBorrowCaps(address[],uint256[])': FunctionFragment; - '_setMaxAssets(uint256)': FunctionFragment; - '_setMintPaused(address,bool)': FunctionFragment; - '_setPauseGuardian(address)': FunctionFragment; - '_setPriceOracle(address)': FunctionFragment; - '_setRewardDistributor(address)': FunctionFragment; - '_setSeizePaused(bool)': FunctionFragment; - '_setTransferPaused(bool)': FunctionFragment; - '_supportMarket(address)': FunctionFragment; - 'accountAssets(address,uint256)': FunctionFragment; - 'admin()': FunctionFragment; - 'allMarkets(uint256)': FunctionFragment; - 'borrowAllowed(address,address,uint256)': FunctionFragment; - 'borrowCapGuardian()': FunctionFragment; - 'borrowCaps(address)': FunctionFragment; - 'borrowGuardianPaused(address)': FunctionFragment; - 'borrowVerify(address,address,uint256)': FunctionFragment; - 'checkMembership(address,address)': FunctionFragment; - 'closeFactorMantissa()': FunctionFragment; - 'compAccrued(address)': FunctionFragment; - 'compBorrowSpeeds(address)': FunctionFragment; - 'compBorrowState(address)': FunctionFragment; - 'compBorrowerIndex(address,address)': FunctionFragment; - 'compContributorSpeeds(address)': FunctionFragment; - 'compInitialIndex()': FunctionFragment; - 'compRate()': FunctionFragment; - 'compReceivable(address)': FunctionFragment; - 'compSpeeds(address)': FunctionFragment; - 'compSupplierIndex(address,address)': FunctionFragment; - 'compSupplySpeeds(address)': FunctionFragment; - 'compSupplyState(address)': FunctionFragment; - 'comptrollerImplementation()': FunctionFragment; - 'enterMarkets(address[])': FunctionFragment; - 'exitMarket(address)': FunctionFragment; - 'getAccountLiquidity(address)': FunctionFragment; - 'getAllMarkets()': FunctionFragment; - 'getAssetsIn(address)': FunctionFragment; - 'getBlockTimestamp()': FunctionFragment; - 'getHypotheticalAccountLiquidity(address,address,uint256,uint256)': FunctionFragment; - 'isComptroller()': FunctionFragment; - 'isDeprecated(address)': FunctionFragment; - 'isMarketListed(address)': FunctionFragment; - 'lastContributorBlock(address)': FunctionFragment; - 'liquidateBorrowAllowed(address,address,address,address,uint256)': FunctionFragment; - 'liquidateBorrowVerify(address,address,address,address,uint256,uint256)': FunctionFragment; - 'liquidateCalculateSeizeTokens(address,address,uint256)': FunctionFragment; - 'liquidationIncentiveMantissa()': FunctionFragment; - 'markets(address)': FunctionFragment; - 'maxAssets()': FunctionFragment; - 'mintAllowed(address,address,uint256)': FunctionFragment; - 'mintGuardianPaused(address)': FunctionFragment; - 'mintVerify(address,address,uint256,uint256)': FunctionFragment; - 'oracle()': FunctionFragment; - 'pauseGuardian()': FunctionFragment; - 'pendingAdmin()': FunctionFragment; - 'pendingComptrollerImplementation()': FunctionFragment; - 'proposal65FixExecuted()': FunctionFragment; - 'redeemAllowed(address,address,uint256)': FunctionFragment; - 'redeemVerify(address,address,uint256,uint256)': FunctionFragment; - 'repayBorrowAllowed(address,address,address,uint256)': FunctionFragment; - 'repayBorrowVerify(address,address,address,uint256,uint256)': FunctionFragment; - 'rewardDistributor()': FunctionFragment; - 'seizeAllowed(address,address,address,address,uint256)': FunctionFragment; - 'seizeGuardianPaused()': FunctionFragment; - 'seizeVerify(address,address,address,address,uint256)': FunctionFragment; - 'transferAllowed(address,address,address,uint256)': FunctionFragment; - 'transferGuardianPaused()': FunctionFragment; - 'transferVerify(address,address,address,uint256)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | '_become' - | '_borrowGuardianPaused' - | '_mintGuardianPaused' - | '_setBorrowCapGuardian' - | '_setBorrowPaused' - | '_setCloseFactor' - | '_setCollateralFactor' - | '_setLiquidationIncentive' - | '_setMarketBorrowCaps' - | '_setMaxAssets' - | '_setMintPaused' - | '_setPauseGuardian' - | '_setPriceOracle' - | '_setRewardDistributor' - | '_setSeizePaused' - | '_setTransferPaused' - | '_supportMarket' - | 'accountAssets' - | 'admin' - | 'allMarkets' - | 'borrowAllowed' - | 'borrowCapGuardian' - | 'borrowCaps' - | 'borrowGuardianPaused' - | 'borrowVerify' - | 'checkMembership' - | 'closeFactorMantissa' - | 'compAccrued' - | 'compBorrowSpeeds' - | 'compBorrowState' - | 'compBorrowerIndex' - | 'compContributorSpeeds' - | 'compInitialIndex' - | 'compRate' - | 'compReceivable' - | 'compSpeeds' - | 'compSupplierIndex' - | 'compSupplySpeeds' - | 'compSupplyState' - | 'comptrollerImplementation' - | 'enterMarkets' - | 'exitMarket' - | 'getAccountLiquidity' - | 'getAllMarkets' - | 'getAssetsIn' - | 'getBlockTimestamp' - | 'getHypotheticalAccountLiquidity' - | 'isComptroller' - | 'isDeprecated' - | 'isMarketListed' - | 'lastContributorBlock' - | 'liquidateBorrowAllowed' - | 'liquidateBorrowVerify' - | 'liquidateCalculateSeizeTokens' - | 'liquidationIncentiveMantissa' - | 'markets' - | 'maxAssets' - | 'mintAllowed' - | 'mintGuardianPaused' - | 'mintVerify' - | 'oracle' - | 'pauseGuardian' - | 'pendingAdmin' - | 'pendingComptrollerImplementation' - | 'proposal65FixExecuted' - | 'redeemAllowed' - | 'redeemVerify' - | 'repayBorrowAllowed' - | 'repayBorrowVerify' - | 'rewardDistributor' - | 'seizeAllowed' - | 'seizeGuardianPaused' - | 'seizeVerify' - | 'transferAllowed' - | 'transferGuardianPaused' - | 'transferVerify', - ): FunctionFragment; - - encodeFunctionData(functionFragment: '_become', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_borrowGuardianPaused', values?: undefined): string; - encodeFunctionData(functionFragment: '_mintGuardianPaused', values?: undefined): string; - encodeFunctionData(functionFragment: '_setBorrowCapGuardian', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setBorrowPaused', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setCloseFactor', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setCollateralFactor', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setLiquidationIncentive', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setMarketBorrowCaps', - values: [PromiseOrValue[], PromiseOrValue[]], - ): string; - encodeFunctionData(functionFragment: '_setMaxAssets', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: '_setMintPaused', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: '_setPauseGuardian', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setPriceOracle', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setRewardDistributor', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setSeizePaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setTransferPaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_supportMarket', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'accountAssets', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'admin', values?: undefined): string; - encodeFunctionData(functionFragment: 'allMarkets', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'borrowAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'borrowCapGuardian', values?: undefined): string; - encodeFunctionData(functionFragment: 'borrowCaps', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowGuardianPaused', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'borrowVerify', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'checkMembership', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'closeFactorMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'compAccrued', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'compBorrowSpeeds', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'compBorrowState', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'compBorrowerIndex', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'compContributorSpeeds', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'compInitialIndex', values?: undefined): string; - encodeFunctionData(functionFragment: 'compRate', values?: undefined): string; - encodeFunctionData(functionFragment: 'compReceivable', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'compSpeeds', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'compSupplierIndex', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'compSupplySpeeds', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'compSupplyState', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'comptrollerImplementation', values?: undefined): string; - encodeFunctionData(functionFragment: 'enterMarkets', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'exitMarket', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getAccountLiquidity', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getAllMarkets', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAssetsIn', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getBlockTimestamp', values?: undefined): string; - encodeFunctionData( - functionFragment: 'getHypotheticalAccountLiquidity', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'isComptroller', values?: undefined): string; - encodeFunctionData(functionFragment: 'isDeprecated', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'isMarketListed', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'lastContributorBlock', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'liquidateBorrowAllowed', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'liquidateBorrowVerify', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'liquidateCalculateSeizeTokens', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'liquidationIncentiveMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'markets', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'maxAssets', values?: undefined): string; - encodeFunctionData( - functionFragment: 'mintAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'mintGuardianPaused', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'mintVerify', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'oracle', values?: undefined): string; - encodeFunctionData(functionFragment: 'pauseGuardian', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingComptrollerImplementation', values?: undefined): string; - encodeFunctionData(functionFragment: 'proposal65FixExecuted', values?: undefined): string; - encodeFunctionData( - functionFragment: 'redeemAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'redeemVerify', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'repayBorrowAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'repayBorrowVerify', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'rewardDistributor', values?: undefined): string; - encodeFunctionData( - functionFragment: 'seizeAllowed', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'seizeGuardianPaused', values?: undefined): string; - encodeFunctionData( - functionFragment: 'seizeVerify', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'transferAllowed', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'transferGuardianPaused', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transferVerify', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - - decodeFunctionResult(functionFragment: '_become', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_borrowGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_mintGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setBorrowCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setBorrowPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setCloseFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setCollateralFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setLiquidationIncentive', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMarketBorrowCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMaxAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setMintPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPauseGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPriceOracle', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setRewardDistributor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setSeizePaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setTransferPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_supportMarket', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accountAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowCapGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowCaps', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'checkMembership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'closeFactorMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compAccrued', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compBorrowSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compBorrowState', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compBorrowerIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compContributorSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compInitialIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compRate', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compReceivable', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compSpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compSupplierIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compSupplySpeeds', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compSupplyState', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'comptrollerImplementation', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'enterMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exitMarket', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAccountLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAllMarkets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAssetsIn', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getBlockTimestamp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getHypotheticalAccountLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isComptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isDeprecated', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isMarketListed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lastContributorBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateBorrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateBorrowVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateCalculateSeizeTokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidationIncentiveMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'markets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'maxAssets', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mintVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'oracle', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pauseGuardian', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingComptrollerImplementation', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'proposal65FixExecuted', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrowAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrowVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardDistributor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seizeAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seizeGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seizeVerify', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferAllowed', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferGuardianPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferVerify', data: BytesLike): Result; - - events: { - 'ActionPaused(address,string,bool)': EventFragment; - 'CompAccruedAdjusted(address,uint256,uint256)': EventFragment; - 'CompBorrowSpeedUpdated(address,uint256)': EventFragment; - 'CompGranted(address,uint256)': EventFragment; - 'CompReceivableUpdated(address,uint256,uint256)': EventFragment; - 'CompSupplySpeedUpdated(address,uint256)': EventFragment; - 'ContributorCompSpeedUpdated(address,uint256)': EventFragment; - 'DistributedBorrowerComp(address,address,uint256,uint256)': EventFragment; - 'DistributedSupplierComp(address,address,uint256,uint256)': EventFragment; - 'Failure(uint256,uint256,uint256)': EventFragment; - 'MarketEntered(address,address)': EventFragment; - 'MarketExited(address,address)': EventFragment; - 'MarketListed(address)': EventFragment; - 'NewBorrowCap(address,uint256)': EventFragment; - 'NewBorrowCapGuardian(address,address)': EventFragment; - 'NewCloseFactor(uint256,uint256)': EventFragment; - 'NewCollateralFactor(address,uint256,uint256)': EventFragment; - 'NewLiquidationIncentive(uint256,uint256)': EventFragment; - 'NewMaxAssets(uint256,uint256)': EventFragment; - 'NewPauseGuardian(address,address)': EventFragment; - 'NewPriceOracle(address,address)': EventFragment; - 'NewRewardDistributor(address,address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'ActionPaused'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'CompAccruedAdjusted'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'CompBorrowSpeedUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'CompGranted'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'CompReceivableUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'CompSupplySpeedUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ContributorCompSpeedUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'DistributedBorrowerComp'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'DistributedSupplierComp'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Failure'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketEntered'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketExited'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'MarketListed'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewBorrowCap'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewBorrowCapGuardian'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewCloseFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewCollateralFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewLiquidationIncentive'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewMaxAssets'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPauseGuardian'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPriceOracle'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewRewardDistributor'): EventFragment; -} - -export interface ActionPausedEventObject { - cToken: string; - action: string; - pauseState: boolean; -} -export type ActionPausedEvent = TypedEvent<[string, string, boolean], ActionPausedEventObject>; - -export type ActionPausedEventFilter = TypedEventFilter; - -export interface CompAccruedAdjustedEventObject { - user: string; - oldCompAccrued: BigNumber; - newCompAccrued: BigNumber; -} -export type CompAccruedAdjustedEvent = TypedEvent<[string, BigNumber, BigNumber], CompAccruedAdjustedEventObject>; - -export type CompAccruedAdjustedEventFilter = TypedEventFilter; - -export interface CompBorrowSpeedUpdatedEventObject { - cToken: string; - newSpeed: BigNumber; -} -export type CompBorrowSpeedUpdatedEvent = TypedEvent<[string, BigNumber], CompBorrowSpeedUpdatedEventObject>; - -export type CompBorrowSpeedUpdatedEventFilter = TypedEventFilter; - -export interface CompGrantedEventObject { - recipient: string; - amount: BigNumber; -} -export type CompGrantedEvent = TypedEvent<[string, BigNumber], CompGrantedEventObject>; - -export type CompGrantedEventFilter = TypedEventFilter; - -export interface CompReceivableUpdatedEventObject { - user: string; - oldCompReceivable: BigNumber; - newCompReceivable: BigNumber; -} -export type CompReceivableUpdatedEvent = TypedEvent<[string, BigNumber, BigNumber], CompReceivableUpdatedEventObject>; - -export type CompReceivableUpdatedEventFilter = TypedEventFilter; - -export interface CompSupplySpeedUpdatedEventObject { - cToken: string; - newSpeed: BigNumber; -} -export type CompSupplySpeedUpdatedEvent = TypedEvent<[string, BigNumber], CompSupplySpeedUpdatedEventObject>; - -export type CompSupplySpeedUpdatedEventFilter = TypedEventFilter; - -export interface ContributorCompSpeedUpdatedEventObject { - contributor: string; - newSpeed: BigNumber; -} -export type ContributorCompSpeedUpdatedEvent = TypedEvent<[string, BigNumber], ContributorCompSpeedUpdatedEventObject>; - -export type ContributorCompSpeedUpdatedEventFilter = TypedEventFilter; - -export interface DistributedBorrowerCompEventObject { - cToken: string; - borrower: string; - compDelta: BigNumber; - compBorrowIndex: BigNumber; -} -export type DistributedBorrowerCompEvent = TypedEvent< - [string, string, BigNumber, BigNumber], - DistributedBorrowerCompEventObject ->; - -export type DistributedBorrowerCompEventFilter = TypedEventFilter; - -export interface DistributedSupplierCompEventObject { - cToken: string; - supplier: string; - compDelta: BigNumber; - compSupplyIndex: BigNumber; -} -export type DistributedSupplierCompEvent = TypedEvent< - [string, string, BigNumber, BigNumber], - DistributedSupplierCompEventObject ->; - -export type DistributedSupplierCompEventFilter = TypedEventFilter; - -export interface FailureEventObject { - error: BigNumber; - info: BigNumber; - detail: BigNumber; -} -export type FailureEvent = TypedEvent<[BigNumber, BigNumber, BigNumber], FailureEventObject>; - -export type FailureEventFilter = TypedEventFilter; - -export interface MarketEnteredEventObject { - cToken: string; - account: string; -} -export type MarketEnteredEvent = TypedEvent<[string, string], MarketEnteredEventObject>; - -export type MarketEnteredEventFilter = TypedEventFilter; - -export interface MarketExitedEventObject { - cToken: string; - account: string; -} -export type MarketExitedEvent = TypedEvent<[string, string], MarketExitedEventObject>; - -export type MarketExitedEventFilter = TypedEventFilter; - -export interface MarketListedEventObject { - cToken: string; -} -export type MarketListedEvent = TypedEvent<[string], MarketListedEventObject>; - -export type MarketListedEventFilter = TypedEventFilter; - -export interface NewBorrowCapEventObject { - cToken: string; - newBorrowCap: BigNumber; -} -export type NewBorrowCapEvent = TypedEvent<[string, BigNumber], NewBorrowCapEventObject>; - -export type NewBorrowCapEventFilter = TypedEventFilter; - -export interface NewBorrowCapGuardianEventObject { - oldBorrowCapGuardian: string; - newBorrowCapGuardian: string; -} -export type NewBorrowCapGuardianEvent = TypedEvent<[string, string], NewBorrowCapGuardianEventObject>; - -export type NewBorrowCapGuardianEventFilter = TypedEventFilter; - -export interface NewCloseFactorEventObject { - oldCloseFactorMantissa: BigNumber; - newCloseFactorMantissa: BigNumber; -} -export type NewCloseFactorEvent = TypedEvent<[BigNumber, BigNumber], NewCloseFactorEventObject>; - -export type NewCloseFactorEventFilter = TypedEventFilter; - -export interface NewCollateralFactorEventObject { - cToken: string; - oldCollateralFactorMantissa: BigNumber; - newCollateralFactorMantissa: BigNumber; -} -export type NewCollateralFactorEvent = TypedEvent<[string, BigNumber, BigNumber], NewCollateralFactorEventObject>; - -export type NewCollateralFactorEventFilter = TypedEventFilter; - -export interface NewLiquidationIncentiveEventObject { - oldLiquidationIncentiveMantissa: BigNumber; - newLiquidationIncentiveMantissa: BigNumber; -} -export type NewLiquidationIncentiveEvent = TypedEvent<[BigNumber, BigNumber], NewLiquidationIncentiveEventObject>; - -export type NewLiquidationIncentiveEventFilter = TypedEventFilter; - -export interface NewMaxAssetsEventObject { - oldMaxAssets: BigNumber; - newMaxAssets: BigNumber; -} -export type NewMaxAssetsEvent = TypedEvent<[BigNumber, BigNumber], NewMaxAssetsEventObject>; - -export type NewMaxAssetsEventFilter = TypedEventFilter; - -export interface NewPauseGuardianEventObject { - oldPauseGuardian: string; - newPauseGuardian: string; -} -export type NewPauseGuardianEvent = TypedEvent<[string, string], NewPauseGuardianEventObject>; - -export type NewPauseGuardianEventFilter = TypedEventFilter; - -export interface NewPriceOracleEventObject { - oldPriceOracle: string; - newPriceOracle: string; -} -export type NewPriceOracleEvent = TypedEvent<[string, string], NewPriceOracleEventObject>; - -export type NewPriceOracleEventFilter = TypedEventFilter; - -export interface NewRewardDistributorEventObject { - oldRewardDistributor: string; - newRewardDistributor: string; -} -export type NewRewardDistributorEvent = TypedEvent<[string, string], NewRewardDistributorEventObject>; - -export type NewRewardDistributorEventFilter = TypedEventFilter; - -export interface BastionProtocolComptroller extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BastionProtocolComptrollerInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - _mintGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - cToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - cTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - newMaxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardDistributor( - newRewardDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - cToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[string]>; - - admin(overrides?: CallOverrides): Promise<[string]>; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - borrowAllowed( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise<[string]>; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - borrowVerify( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - checkMembership( - account: PromiseOrValue, - cToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[boolean]>; - - closeFactorMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - compAccrued(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compBorrowSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compBorrowState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - compBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - compContributorSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compInitialIndex(overrides?: CallOverrides): Promise<[BigNumber]>; - - compRate(overrides?: CallOverrides): Promise<[BigNumber]>; - - compReceivable(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - compSupplySpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - compSupplyState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - comptrollerImplementation(overrides?: CallOverrides): Promise<[string]>; - - enterMarkets( - cTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - cTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise<[string[]]>; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise<[string[]]>; - - getBlockTimestamp(overrides?: CallOverrides): Promise<[BigNumber]>; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - cTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - isComptroller(overrides?: CallOverrides): Promise<[boolean]>; - - isDeprecated(cToken: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - isMarketListed(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - lastContributorBlock(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - liquidateBorrowAllowed( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateBorrowVerify( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateCalculateSeizeTokens( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isComped: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise<[BigNumber]>; - - mintAllowed( - cToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - mintVerify( - cToken: PromiseOrValue, - minter: PromiseOrValue, - actualMintAmount: PromiseOrValue, - mintTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - oracle(overrides?: CallOverrides): Promise<[string]>; - - pauseGuardian(overrides?: CallOverrides): Promise<[string]>; - - pendingAdmin(overrides?: CallOverrides): Promise<[string]>; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise<[string]>; - - proposal65FixExecuted(overrides?: CallOverrides): Promise<[boolean]>; - - redeemAllowed( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemVerify( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemAmount: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowVerify( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - borrowerIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardDistributor(overrides?: CallOverrides): Promise<[string]>; - - seizeAllowed( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - seizeVerify( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise<[boolean]>; - - transferVerify( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - cToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - cTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - newMaxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardDistributor( - newRewardDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - cToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowAllowed( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowVerify( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - checkMembership( - account: PromiseOrValue, - cToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - compAccrued(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - compBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compContributorSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compInitialIndex(overrides?: CallOverrides): Promise; - - compRate(overrides?: CallOverrides): Promise; - - compReceivable(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compSupplySpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplyState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - cTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - cTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBlockTimestamp(overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - cTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - isComptroller(overrides?: CallOverrides): Promise; - - isDeprecated(cToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - isMarketListed(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - lastContributorBlock(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateBorrowVerify( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateCalculateSeizeTokens( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isComped: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - cToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintVerify( - cToken: PromiseOrValue, - minter: PromiseOrValue, - actualMintAmount: PromiseOrValue, - mintTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - proposal65FixExecuted(overrides?: CallOverrides): Promise; - - redeemAllowed( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemVerify( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemAmount: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowVerify( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - borrowerIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardDistributor(overrides?: CallOverrides): Promise; - - seizeAllowed( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - seizeVerify( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - - transferVerify( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - _become(unitroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian(newBorrowCapGuardian: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setBorrowPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setCollateralFactor( - cToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setMarketBorrowCaps( - cTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: CallOverrides, - ): Promise; - - _setMaxAssets(newMaxAssets: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setMintPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - _setPauseGuardian(newPauseGuardian: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setPriceOracle(newOracle: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setRewardDistributor(newRewardDistributor: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setSeizePaused(state: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setTransferPaused(state: PromiseOrValue, overrides?: CallOverrides): Promise; - - _supportMarket(cToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowAllowed( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowVerify( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - checkMembership( - account: PromiseOrValue, - cToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - compAccrued(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - compBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compContributorSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compInitialIndex(overrides?: CallOverrides): Promise; - - compRate(overrides?: CallOverrides): Promise; - - compReceivable(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compSupplySpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplyState( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, number] & { index: BigNumber; block: number }>; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets(cTokens: PromiseOrValue[], overrides?: CallOverrides): Promise; - - exitMarket(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAccountLiquidity( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBlockTimestamp(overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - cTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber]>; - - isComptroller(overrides?: CallOverrides): Promise; - - isDeprecated(cToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - isMarketListed(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - lastContributorBlock(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateBorrowVerify( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidateCalculateSeizeTokens( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber]>; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [boolean, BigNumber, boolean] & { - isListed: boolean; - collateralFactorMantissa: BigNumber; - isComped: boolean; - } - >; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - cToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintVerify( - cToken: PromiseOrValue, - minter: PromiseOrValue, - actualMintAmount: PromiseOrValue, - mintTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - proposal65FixExecuted(overrides?: CallOverrides): Promise; - - redeemAllowed( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - redeemVerify( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemAmount: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - repayBorrowAllowed( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - repayBorrowVerify( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - borrowerIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - rewardDistributor(overrides?: CallOverrides): Promise; - - seizeAllowed( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - seizeVerify( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferAllowed( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - - transferVerify( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - }; - - filters: { - 'ActionPaused(address,string,bool)'(cToken?: null, action?: null, pauseState?: null): ActionPausedEventFilter; - ActionPaused(cToken?: null, action?: null, pauseState?: null): ActionPausedEventFilter; - - 'CompAccruedAdjusted(address,uint256,uint256)'( - user?: PromiseOrValue | null, - oldCompAccrued?: null, - newCompAccrued?: null, - ): CompAccruedAdjustedEventFilter; - CompAccruedAdjusted( - user?: PromiseOrValue | null, - oldCompAccrued?: null, - newCompAccrued?: null, - ): CompAccruedAdjustedEventFilter; - - 'CompBorrowSpeedUpdated(address,uint256)'( - cToken?: PromiseOrValue | null, - newSpeed?: null, - ): CompBorrowSpeedUpdatedEventFilter; - CompBorrowSpeedUpdated(cToken?: PromiseOrValue | null, newSpeed?: null): CompBorrowSpeedUpdatedEventFilter; - - 'CompGranted(address,uint256)'(recipient?: null, amount?: null): CompGrantedEventFilter; - CompGranted(recipient?: null, amount?: null): CompGrantedEventFilter; - - 'CompReceivableUpdated(address,uint256,uint256)'( - user?: PromiseOrValue | null, - oldCompReceivable?: null, - newCompReceivable?: null, - ): CompReceivableUpdatedEventFilter; - CompReceivableUpdated( - user?: PromiseOrValue | null, - oldCompReceivable?: null, - newCompReceivable?: null, - ): CompReceivableUpdatedEventFilter; - - 'CompSupplySpeedUpdated(address,uint256)'( - cToken?: PromiseOrValue | null, - newSpeed?: null, - ): CompSupplySpeedUpdatedEventFilter; - CompSupplySpeedUpdated(cToken?: PromiseOrValue | null, newSpeed?: null): CompSupplySpeedUpdatedEventFilter; - - 'ContributorCompSpeedUpdated(address,uint256)'( - contributor?: PromiseOrValue | null, - newSpeed?: null, - ): ContributorCompSpeedUpdatedEventFilter; - ContributorCompSpeedUpdated( - contributor?: PromiseOrValue | null, - newSpeed?: null, - ): ContributorCompSpeedUpdatedEventFilter; - - 'DistributedBorrowerComp(address,address,uint256,uint256)'( - cToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - compDelta?: null, - compBorrowIndex?: null, - ): DistributedBorrowerCompEventFilter; - DistributedBorrowerComp( - cToken?: PromiseOrValue | null, - borrower?: PromiseOrValue | null, - compDelta?: null, - compBorrowIndex?: null, - ): DistributedBorrowerCompEventFilter; - - 'DistributedSupplierComp(address,address,uint256,uint256)'( - cToken?: PromiseOrValue | null, - supplier?: PromiseOrValue | null, - compDelta?: null, - compSupplyIndex?: null, - ): DistributedSupplierCompEventFilter; - DistributedSupplierComp( - cToken?: PromiseOrValue | null, - supplier?: PromiseOrValue | null, - compDelta?: null, - compSupplyIndex?: null, - ): DistributedSupplierCompEventFilter; - - 'Failure(uint256,uint256,uint256)'(error?: null, info?: null, detail?: null): FailureEventFilter; - Failure(error?: null, info?: null, detail?: null): FailureEventFilter; - - 'MarketEntered(address,address)'(cToken?: null, account?: null): MarketEnteredEventFilter; - MarketEntered(cToken?: null, account?: null): MarketEnteredEventFilter; - - 'MarketExited(address,address)'(cToken?: null, account?: null): MarketExitedEventFilter; - MarketExited(cToken?: null, account?: null): MarketExitedEventFilter; - - 'MarketListed(address)'(cToken?: null): MarketListedEventFilter; - MarketListed(cToken?: null): MarketListedEventFilter; - - 'NewBorrowCap(address,uint256)'( - cToken?: PromiseOrValue | null, - newBorrowCap?: null, - ): NewBorrowCapEventFilter; - NewBorrowCap(cToken?: PromiseOrValue | null, newBorrowCap?: null): NewBorrowCapEventFilter; - - 'NewBorrowCapGuardian(address,address)'( - oldBorrowCapGuardian?: null, - newBorrowCapGuardian?: null, - ): NewBorrowCapGuardianEventFilter; - NewBorrowCapGuardian(oldBorrowCapGuardian?: null, newBorrowCapGuardian?: null): NewBorrowCapGuardianEventFilter; - - 'NewCloseFactor(uint256,uint256)'( - oldCloseFactorMantissa?: null, - newCloseFactorMantissa?: null, - ): NewCloseFactorEventFilter; - NewCloseFactor(oldCloseFactorMantissa?: null, newCloseFactorMantissa?: null): NewCloseFactorEventFilter; - - 'NewCollateralFactor(address,uint256,uint256)'( - cToken?: null, - oldCollateralFactorMantissa?: null, - newCollateralFactorMantissa?: null, - ): NewCollateralFactorEventFilter; - NewCollateralFactor( - cToken?: null, - oldCollateralFactorMantissa?: null, - newCollateralFactorMantissa?: null, - ): NewCollateralFactorEventFilter; - - 'NewLiquidationIncentive(uint256,uint256)'( - oldLiquidationIncentiveMantissa?: null, - newLiquidationIncentiveMantissa?: null, - ): NewLiquidationIncentiveEventFilter; - NewLiquidationIncentive( - oldLiquidationIncentiveMantissa?: null, - newLiquidationIncentiveMantissa?: null, - ): NewLiquidationIncentiveEventFilter; - - 'NewMaxAssets(uint256,uint256)'(oldMaxAssets?: null, newMaxAssets?: null): NewMaxAssetsEventFilter; - NewMaxAssets(oldMaxAssets?: null, newMaxAssets?: null): NewMaxAssetsEventFilter; - - 'NewPauseGuardian(address,address)'(oldPauseGuardian?: null, newPauseGuardian?: null): NewPauseGuardianEventFilter; - NewPauseGuardian(oldPauseGuardian?: null, newPauseGuardian?: null): NewPauseGuardianEventFilter; - - 'NewPriceOracle(address,address)'(oldPriceOracle?: null, newPriceOracle?: null): NewPriceOracleEventFilter; - NewPriceOracle(oldPriceOracle?: null, newPriceOracle?: null): NewPriceOracleEventFilter; - - 'NewRewardDistributor(address,address)'( - oldRewardDistributor?: null, - newRewardDistributor?: null, - ): NewRewardDistributorEventFilter; - NewRewardDistributor(oldRewardDistributor?: null, newRewardDistributor?: null): NewRewardDistributorEventFilter; - }; - - estimateGas: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - cToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - cTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - newMaxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardDistributor( - newRewardDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - cToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowAllowed( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowVerify( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - checkMembership( - account: PromiseOrValue, - cToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - compAccrued(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowState(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compContributorSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compInitialIndex(overrides?: CallOverrides): Promise; - - compRate(overrides?: CallOverrides): Promise; - - compReceivable(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compSupplySpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplyState(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - cTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - cTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBlockTimestamp(overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - cTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isDeprecated(cToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - isMarketListed(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - lastContributorBlock(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateBorrowVerify( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateCalculateSeizeTokens( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - cToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintVerify( - cToken: PromiseOrValue, - minter: PromiseOrValue, - actualMintAmount: PromiseOrValue, - mintTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - proposal65FixExecuted(overrides?: CallOverrides): Promise; - - redeemAllowed( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemVerify( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemAmount: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowVerify( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - borrowerIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardDistributor(overrides?: CallOverrides): Promise; - - seizeAllowed( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - seizeVerify( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - - transferVerify( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - _become( - unitroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _borrowGuardianPaused(overrides?: CallOverrides): Promise; - - _mintGuardianPaused(overrides?: CallOverrides): Promise; - - _setBorrowCapGuardian( - newBorrowCapGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setBorrowPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCloseFactor( - newCloseFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setCollateralFactor( - cToken: PromiseOrValue, - newCollateralFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setLiquidationIncentive( - newLiquidationIncentiveMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMarketBorrowCaps( - cTokens: PromiseOrValue[], - newBorrowCaps: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMaxAssets( - newMaxAssets: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setMintPaused( - cToken: PromiseOrValue, - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPauseGuardian( - newPauseGuardian: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPriceOracle( - newOracle: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setRewardDistributor( - newRewardDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setSeizePaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setTransferPaused( - state: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _supportMarket( - cToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accountAssets( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - admin(overrides?: CallOverrides): Promise; - - allMarkets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowAllowed( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowCapGuardian(overrides?: CallOverrides): Promise; - - borrowCaps(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowVerify( - cToken: PromiseOrValue, - borrower: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - checkMembership( - account: PromiseOrValue, - cToken: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - closeFactorMantissa(overrides?: CallOverrides): Promise; - - compAccrued(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowState(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compBorrowerIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compContributorSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compInitialIndex(overrides?: CallOverrides): Promise; - - compRate(overrides?: CallOverrides): Promise; - - compReceivable(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplierIndex( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - compSupplySpeeds(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - compSupplyState(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - comptrollerImplementation(overrides?: CallOverrides): Promise; - - enterMarkets( - cTokens: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - exitMarket( - cTokenAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - getAccountLiquidity(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getAllMarkets(overrides?: CallOverrides): Promise; - - getAssetsIn(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBlockTimestamp(overrides?: CallOverrides): Promise; - - getHypotheticalAccountLiquidity( - account: PromiseOrValue, - cTokenModify: PromiseOrValue, - redeemTokens: PromiseOrValue, - borrowAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - isComptroller(overrides?: CallOverrides): Promise; - - isDeprecated(cToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - isMarketListed(cTokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - lastContributorBlock(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - liquidateBorrowAllowed( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateBorrowVerify( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - liquidateCalculateSeizeTokens( - cTokenBorrowed: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - liquidationIncentiveMantissa(overrides?: CallOverrides): Promise; - - markets(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - maxAssets(overrides?: CallOverrides): Promise; - - mintAllowed( - cToken: PromiseOrValue, - minter: PromiseOrValue, - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mintGuardianPaused(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - mintVerify( - cToken: PromiseOrValue, - minter: PromiseOrValue, - actualMintAmount: PromiseOrValue, - mintTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - oracle(overrides?: CallOverrides): Promise; - - pauseGuardian(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - pendingComptrollerImplementation(overrides?: CallOverrides): Promise; - - proposal65FixExecuted(overrides?: CallOverrides): Promise; - - redeemAllowed( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemVerify( - cToken: PromiseOrValue, - redeemer: PromiseOrValue, - redeemAmount: PromiseOrValue, - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowAllowed( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowVerify( - cToken: PromiseOrValue, - payer: PromiseOrValue, - borrower: PromiseOrValue, - actualRepayAmount: PromiseOrValue, - borrowerIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - rewardDistributor(overrides?: CallOverrides): Promise; - - seizeAllowed( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - seizeGuardianPaused(overrides?: CallOverrides): Promise; - - seizeVerify( - cTokenCollateral: PromiseOrValue, - cTokenBorrowed: PromiseOrValue, - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferAllowed( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferGuardianPaused(overrides?: CallOverrides): Promise; - - transferVerify( - cToken: PromiseOrValue, - src: PromiseOrValue, - dst: PromiseOrValue, - transferTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolCtoken.ts b/src/apps/bastion-protocol/contracts/ethers/BastionProtocolCtoken.ts deleted file mode 100644 index 53b28be33..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolCtoken.ts +++ /dev/null @@ -1,1545 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BastionProtocolCtokenInterface extends utils.Interface { - functions: { - '_acceptAdmin()': FunctionFragment; - '_addReserves(uint256)': FunctionFragment; - '_delegateCompLikeTo(address)': FunctionFragment; - '_reduceReserves(uint256)': FunctionFragment; - '_setComptroller(address)': FunctionFragment; - '_setInterestRateModel(address)': FunctionFragment; - '_setPendingAdmin(address)': FunctionFragment; - '_setReserveFactor(uint256)': FunctionFragment; - 'accrualBlockTimestamp()': FunctionFragment; - 'accrueInterest()': FunctionFragment; - 'admin()': FunctionFragment; - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'balanceOfUnderlying(address)': FunctionFragment; - 'borrow(uint256)': FunctionFragment; - 'borrowBalanceCurrent(address)': FunctionFragment; - 'borrowBalanceStored(address)': FunctionFragment; - 'borrowIndex()': FunctionFragment; - 'borrowRatePerBlock()': FunctionFragment; - 'comptroller()': FunctionFragment; - 'decimals()': FunctionFragment; - 'exchangeRateCurrent()': FunctionFragment; - 'exchangeRateStored()': FunctionFragment; - 'getAccountSnapshot(address)': FunctionFragment; - 'getCash()': FunctionFragment; - 'initialize(address,address,address,uint256,string,string,uint8)': FunctionFragment; - 'initialize(address,address,uint256,string,string,uint8)': FunctionFragment; - 'interestRateModel()': FunctionFragment; - 'isCToken()': FunctionFragment; - 'liquidateBorrow(address,uint256,address)': FunctionFragment; - 'mint(uint256)': FunctionFragment; - 'name()': FunctionFragment; - 'pendingAdmin()': FunctionFragment; - 'protocolSeizeShareMantissa()': FunctionFragment; - 'redeem(uint256)': FunctionFragment; - 'redeemUnderlying(uint256)': FunctionFragment; - 'repayBorrow(uint256)': FunctionFragment; - 'repayBorrowBehalf(address,uint256)': FunctionFragment; - 'reserveFactorMantissa()': FunctionFragment; - 'seize(address,address,uint256)': FunctionFragment; - 'supplyRatePerBlock()': FunctionFragment; - 'sweepToken(address)': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalBorrows()': FunctionFragment; - 'totalBorrowsCurrent()': FunctionFragment; - 'totalReserves()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'underlying()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | '_acceptAdmin' - | '_addReserves' - | '_delegateCompLikeTo' - | '_reduceReserves' - | '_setComptroller' - | '_setInterestRateModel' - | '_setPendingAdmin' - | '_setReserveFactor' - | 'accrualBlockTimestamp' - | 'accrueInterest' - | 'admin' - | 'allowance' - | 'approve' - | 'balanceOf' - | 'balanceOfUnderlying' - | 'borrow' - | 'borrowBalanceCurrent' - | 'borrowBalanceStored' - | 'borrowIndex' - | 'borrowRatePerBlock' - | 'comptroller' - | 'decimals' - | 'exchangeRateCurrent' - | 'exchangeRateStored' - | 'getAccountSnapshot' - | 'getCash' - | 'initialize(address,address,address,uint256,string,string,uint8)' - | 'initialize(address,address,uint256,string,string,uint8)' - | 'interestRateModel' - | 'isCToken' - | 'liquidateBorrow' - | 'mint' - | 'name' - | 'pendingAdmin' - | 'protocolSeizeShareMantissa' - | 'redeem' - | 'redeemUnderlying' - | 'repayBorrow' - | 'repayBorrowBehalf' - | 'reserveFactorMantissa' - | 'seize' - | 'supplyRatePerBlock' - | 'sweepToken' - | 'symbol' - | 'totalBorrows' - | 'totalBorrowsCurrent' - | 'totalReserves' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'underlying', - ): FunctionFragment; - - encodeFunctionData(functionFragment: '_acceptAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: '_addReserves', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_delegateCompLikeTo', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_reduceReserves', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setComptroller', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setInterestRateModel', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setPendingAdmin', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: '_setReserveFactor', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'accrualBlockTimestamp', values?: undefined): string; - encodeFunctionData(functionFragment: 'accrueInterest', values?: undefined): string; - encodeFunctionData(functionFragment: 'admin', values?: undefined): string; - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'balanceOfUnderlying', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrow', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowBalanceCurrent', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowBalanceStored', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'borrowIndex', values?: undefined): string; - encodeFunctionData(functionFragment: 'borrowRatePerBlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'comptroller', values?: undefined): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData(functionFragment: 'exchangeRateCurrent', values?: undefined): string; - encodeFunctionData(functionFragment: 'exchangeRateStored', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAccountSnapshot', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getCash', values?: undefined): string; - encodeFunctionData( - functionFragment: 'initialize(address,address,address,uint256,string,string,uint8)', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData( - functionFragment: 'initialize(address,address,uint256,string,string,uint8)', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'interestRateModel', values?: undefined): string; - encodeFunctionData(functionFragment: 'isCToken', values?: undefined): string; - encodeFunctionData( - functionFragment: 'liquidateBorrow', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'mint', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'pendingAdmin', values?: undefined): string; - encodeFunctionData(functionFragment: 'protocolSeizeShareMantissa', values?: undefined): string; - encodeFunctionData(functionFragment: 'redeem', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'redeemUnderlying', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'repayBorrow', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'repayBorrowBehalf', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'reserveFactorMantissa', values?: undefined): string; - encodeFunctionData( - functionFragment: 'seize', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'supplyRatePerBlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'sweepToken', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalBorrows', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalBorrowsCurrent', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalReserves', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'underlying', values?: undefined): string; - - decodeFunctionResult(functionFragment: '_acceptAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_addReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_delegateCompLikeTo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_reduceReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setComptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setInterestRateModel', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setPendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: '_setReserveFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accrualBlockTimestamp', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'accrueInterest', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOfUnderlying', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowBalanceCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowBalanceStored', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'borrowRatePerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'comptroller', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exchangeRateCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exchangeRateStored', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAccountSnapshot', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getCash', data: BytesLike): Result; - decodeFunctionResult( - functionFragment: 'initialize(address,address,address,uint256,string,string,uint8)', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'initialize(address,address,uint256,string,string,uint8)', - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: 'interestRateModel', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'isCToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'liquidateBorrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingAdmin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'protocolSeizeShareMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeem', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemUnderlying', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrow', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'repayBorrowBehalf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'reserveFactorMantissa', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'seize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'supplyRatePerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'sweepToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalBorrows', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalBorrowsCurrent', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'underlying', data: BytesLike): Result; - - events: { - 'AccrueInterest(uint256,uint256,uint256,uint256)': EventFragment; - 'Approval(address,address,uint256)': EventFragment; - 'Borrow(address,uint256,uint256,uint256)': EventFragment; - 'Failure(uint256,uint256,uint256)': EventFragment; - 'LiquidateBorrow(address,address,uint256,address,uint256)': EventFragment; - 'Mint(address,uint256,uint256)': EventFragment; - 'NewAdmin(address,address)': EventFragment; - 'NewComptroller(address,address)': EventFragment; - 'NewMarketInterestRateModel(address,address)': EventFragment; - 'NewPendingAdmin(address,address)': EventFragment; - 'NewReserveFactor(uint256,uint256)': EventFragment; - 'Redeem(address,uint256,uint256)': EventFragment; - 'RepayBorrow(address,address,uint256,uint256,uint256)': EventFragment; - 'ReservesAdded(address,uint256,uint256)': EventFragment; - 'ReservesReduced(address,uint256,uint256)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AccrueInterest'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Borrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Failure'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LiquidateBorrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Mint'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewAdmin'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewComptroller'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewMarketInterestRateModel'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewPendingAdmin'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewReserveFactor'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Redeem'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RepayBorrow'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ReservesAdded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ReservesReduced'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; -} - -export interface AccrueInterestEventObject { - cashPrior: BigNumber; - interestAccumulated: BigNumber; - borrowIndex: BigNumber; - totalBorrows: BigNumber; -} -export type AccrueInterestEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], AccrueInterestEventObject>; - -export type AccrueInterestEventFilter = TypedEventFilter; - -export interface ApprovalEventObject { - owner: string; - spender: string; - amount: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface BorrowEventObject { - borrower: string; - borrowAmount: BigNumber; - accountBorrows: BigNumber; - totalBorrows: BigNumber; -} -export type BorrowEvent = TypedEvent<[string, BigNumber, BigNumber, BigNumber], BorrowEventObject>; - -export type BorrowEventFilter = TypedEventFilter; - -export interface FailureEventObject { - error: BigNumber; - info: BigNumber; - detail: BigNumber; -} -export type FailureEvent = TypedEvent<[BigNumber, BigNumber, BigNumber], FailureEventObject>; - -export type FailureEventFilter = TypedEventFilter; - -export interface LiquidateBorrowEventObject { - liquidator: string; - borrower: string; - repayAmount: BigNumber; - cTokenCollateral: string; - seizeTokens: BigNumber; -} -export type LiquidateBorrowEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber], - LiquidateBorrowEventObject ->; - -export type LiquidateBorrowEventFilter = TypedEventFilter; - -export interface MintEventObject { - minter: string; - mintAmount: BigNumber; - mintTokens: BigNumber; -} -export type MintEvent = TypedEvent<[string, BigNumber, BigNumber], MintEventObject>; - -export type MintEventFilter = TypedEventFilter; - -export interface NewAdminEventObject { - oldAdmin: string; - newAdmin: string; -} -export type NewAdminEvent = TypedEvent<[string, string], NewAdminEventObject>; - -export type NewAdminEventFilter = TypedEventFilter; - -export interface NewComptrollerEventObject { - oldComptroller: string; - newComptroller: string; -} -export type NewComptrollerEvent = TypedEvent<[string, string], NewComptrollerEventObject>; - -export type NewComptrollerEventFilter = TypedEventFilter; - -export interface NewMarketInterestRateModelEventObject { - oldInterestRateModel: string; - newInterestRateModel: string; -} -export type NewMarketInterestRateModelEvent = TypedEvent<[string, string], NewMarketInterestRateModelEventObject>; - -export type NewMarketInterestRateModelEventFilter = TypedEventFilter; - -export interface NewPendingAdminEventObject { - oldPendingAdmin: string; - newPendingAdmin: string; -} -export type NewPendingAdminEvent = TypedEvent<[string, string], NewPendingAdminEventObject>; - -export type NewPendingAdminEventFilter = TypedEventFilter; - -export interface NewReserveFactorEventObject { - oldReserveFactorMantissa: BigNumber; - newReserveFactorMantissa: BigNumber; -} -export type NewReserveFactorEvent = TypedEvent<[BigNumber, BigNumber], NewReserveFactorEventObject>; - -export type NewReserveFactorEventFilter = TypedEventFilter; - -export interface RedeemEventObject { - redeemer: string; - redeemAmount: BigNumber; - redeemTokens: BigNumber; -} -export type RedeemEvent = TypedEvent<[string, BigNumber, BigNumber], RedeemEventObject>; - -export type RedeemEventFilter = TypedEventFilter; - -export interface RepayBorrowEventObject { - payer: string; - borrower: string; - repayAmount: BigNumber; - accountBorrows: BigNumber; - totalBorrows: BigNumber; -} -export type RepayBorrowEvent = TypedEvent<[string, string, BigNumber, BigNumber, BigNumber], RepayBorrowEventObject>; - -export type RepayBorrowEventFilter = TypedEventFilter; - -export interface ReservesAddedEventObject { - benefactor: string; - addAmount: BigNumber; - newTotalReserves: BigNumber; -} -export type ReservesAddedEvent = TypedEvent<[string, BigNumber, BigNumber], ReservesAddedEventObject>; - -export type ReservesAddedEventFilter = TypedEventFilter; - -export interface ReservesReducedEventObject { - admin: string; - reduceAmount: BigNumber; - newTotalReserves: BigNumber; -} -export type ReservesReducedEvent = TypedEvent<[string, BigNumber, BigNumber], ReservesReducedEventObject>; - -export type ReservesReducedEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - amount: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface BastionProtocolCtoken extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BastionProtocolCtokenInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _delegateCompLikeTo( - compLikeDelegatee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise<[BigNumber]>; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise<[string]>; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowIndex(overrides?: CallOverrides): Promise<[BigNumber]>; - - borrowRatePerBlock(overrides?: CallOverrides): Promise<[BigNumber]>; - - comptroller(overrides?: CallOverrides): Promise<[string]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise<[BigNumber]>; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise<[BigNumber]>; - - 'initialize(address,address,address,uint256,string,string,uint8)'( - underlying_: PromiseOrValue, - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'initialize(address,address,uint256,string,string,uint8)'( - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise<[string]>; - - isCToken(overrides?: CallOverrides): Promise<[boolean]>; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - pendingAdmin(overrides?: CallOverrides): Promise<[string]>; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise<[BigNumber]>; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerBlock(overrides?: CallOverrides): Promise<[BigNumber]>; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalBorrows(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise<[BigNumber]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise<[string]>; - }; - - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _delegateCompLikeTo( - compLikeDelegatee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerBlock(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise; - - 'initialize(address,address,address,uint256,string,string,uint8)'( - underlying_: PromiseOrValue, - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'initialize(address,address,uint256,string,string,uint8)'( - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isCToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerBlock(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - - callStatic: { - _acceptAdmin(overrides?: CallOverrides): Promise; - - _addReserves(addAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - _delegateCompLikeTo(compLikeDelegatee: PromiseOrValue, overrides?: CallOverrides): Promise; - - _reduceReserves(reduceAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setComptroller(newComptroller: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setInterestRateModel(newInterestRateModel: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setPendingAdmin(newPendingAdmin: PromiseOrValue, overrides?: CallOverrides): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: CallOverrides): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrow(borrowAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerBlock(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: CallOverrides): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber]>; - - getCash(overrides?: CallOverrides): Promise; - - 'initialize(address,address,address,uint256,string,string,uint8)'( - underlying_: PromiseOrValue, - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - 'initialize(address,address,uint256,string,string,uint8)'( - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isCToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - mint(mintAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem(redeemTokens: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemUnderlying(redeemAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - repayBorrow(repayAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - supplyRatePerBlock(overrides?: CallOverrides): Promise; - - sweepToken(token: PromiseOrValue, overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: CallOverrides): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; - - filters: { - 'AccrueInterest(uint256,uint256,uint256,uint256)'( - cashPrior?: null, - interestAccumulated?: null, - borrowIndex?: null, - totalBorrows?: null, - ): AccrueInterestEventFilter; - AccrueInterest( - cashPrior?: null, - interestAccumulated?: null, - borrowIndex?: null, - totalBorrows?: null, - ): AccrueInterestEventFilter; - - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - amount?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - amount?: null, - ): ApprovalEventFilter; - - 'Borrow(address,uint256,uint256,uint256)'( - borrower?: null, - borrowAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): BorrowEventFilter; - Borrow(borrower?: null, borrowAmount?: null, accountBorrows?: null, totalBorrows?: null): BorrowEventFilter; - - 'Failure(uint256,uint256,uint256)'(error?: null, info?: null, detail?: null): FailureEventFilter; - Failure(error?: null, info?: null, detail?: null): FailureEventFilter; - - 'LiquidateBorrow(address,address,uint256,address,uint256)'( - liquidator?: null, - borrower?: null, - repayAmount?: null, - cTokenCollateral?: null, - seizeTokens?: null, - ): LiquidateBorrowEventFilter; - LiquidateBorrow( - liquidator?: null, - borrower?: null, - repayAmount?: null, - cTokenCollateral?: null, - seizeTokens?: null, - ): LiquidateBorrowEventFilter; - - 'Mint(address,uint256,uint256)'(minter?: null, mintAmount?: null, mintTokens?: null): MintEventFilter; - Mint(minter?: null, mintAmount?: null, mintTokens?: null): MintEventFilter; - - 'NewAdmin(address,address)'(oldAdmin?: null, newAdmin?: null): NewAdminEventFilter; - NewAdmin(oldAdmin?: null, newAdmin?: null): NewAdminEventFilter; - - 'NewComptroller(address,address)'(oldComptroller?: null, newComptroller?: null): NewComptrollerEventFilter; - NewComptroller(oldComptroller?: null, newComptroller?: null): NewComptrollerEventFilter; - - 'NewMarketInterestRateModel(address,address)'( - oldInterestRateModel?: null, - newInterestRateModel?: null, - ): NewMarketInterestRateModelEventFilter; - NewMarketInterestRateModel( - oldInterestRateModel?: null, - newInterestRateModel?: null, - ): NewMarketInterestRateModelEventFilter; - - 'NewPendingAdmin(address,address)'(oldPendingAdmin?: null, newPendingAdmin?: null): NewPendingAdminEventFilter; - NewPendingAdmin(oldPendingAdmin?: null, newPendingAdmin?: null): NewPendingAdminEventFilter; - - 'NewReserveFactor(uint256,uint256)'( - oldReserveFactorMantissa?: null, - newReserveFactorMantissa?: null, - ): NewReserveFactorEventFilter; - NewReserveFactor(oldReserveFactorMantissa?: null, newReserveFactorMantissa?: null): NewReserveFactorEventFilter; - - 'Redeem(address,uint256,uint256)'(redeemer?: null, redeemAmount?: null, redeemTokens?: null): RedeemEventFilter; - Redeem(redeemer?: null, redeemAmount?: null, redeemTokens?: null): RedeemEventFilter; - - 'RepayBorrow(address,address,uint256,uint256,uint256)'( - payer?: null, - borrower?: null, - repayAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): RepayBorrowEventFilter; - RepayBorrow( - payer?: null, - borrower?: null, - repayAmount?: null, - accountBorrows?: null, - totalBorrows?: null, - ): RepayBorrowEventFilter; - - 'ReservesAdded(address,uint256,uint256)'( - benefactor?: null, - addAmount?: null, - newTotalReserves?: null, - ): ReservesAddedEventFilter; - ReservesAdded(benefactor?: null, addAmount?: null, newTotalReserves?: null): ReservesAddedEventFilter; - - 'ReservesReduced(address,uint256,uint256)'( - admin?: null, - reduceAmount?: null, - newTotalReserves?: null, - ): ReservesReducedEventFilter; - ReservesReduced(admin?: null, reduceAmount?: null, newTotalReserves?: null): ReservesReducedEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - amount?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - amount?: null, - ): TransferEventFilter; - }; - - estimateGas: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _delegateCompLikeTo( - compLikeDelegatee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerBlock(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getCash(overrides?: CallOverrides): Promise; - - 'initialize(address,address,address,uint256,string,string,uint8)'( - underlying_: PromiseOrValue, - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'initialize(address,address,uint256,string,string,uint8)'( - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isCToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerBlock(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - _acceptAdmin(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - _addReserves( - addAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _delegateCompLikeTo( - compLikeDelegatee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _reduceReserves( - reduceAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setComptroller( - newComptroller: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setInterestRateModel( - newInterestRateModel: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setPendingAdmin( - newPendingAdmin: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - _setReserveFactor( - newReserveFactorMantissa: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - accrualBlockTimestamp(overrides?: CallOverrides): Promise; - - accrueInterest(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - admin(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOfUnderlying( - owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrow( - borrowAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - borrowBalanceCurrent(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowBalanceStored(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - borrowIndex(overrides?: CallOverrides): Promise; - - borrowRatePerBlock(overrides?: CallOverrides): Promise; - - comptroller(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - exchangeRateCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - exchangeRateStored(overrides?: CallOverrides): Promise; - - getAccountSnapshot(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getCash(overrides?: CallOverrides): Promise; - - 'initialize(address,address,address,uint256,string,string,uint8)'( - underlying_: PromiseOrValue, - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - 'initialize(address,address,uint256,string,string,uint8)'( - comptroller_: PromiseOrValue, - interestRateModel_: PromiseOrValue, - initialExchangeRateMantissa_: PromiseOrValue, - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - interestRateModel(overrides?: CallOverrides): Promise; - - isCToken(overrides?: CallOverrides): Promise; - - liquidateBorrow( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - cTokenCollateral: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - mintAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - pendingAdmin(overrides?: CallOverrides): Promise; - - protocolSeizeShareMantissa(overrides?: CallOverrides): Promise; - - redeem( - redeemTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - redeemUnderlying( - redeemAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrow( - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - repayBorrowBehalf( - borrower: PromiseOrValue, - repayAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - reserveFactorMantissa(overrides?: CallOverrides): Promise; - - seize( - liquidator: PromiseOrValue, - borrower: PromiseOrValue, - seizeTokens: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - supplyRatePerBlock(overrides?: CallOverrides): Promise; - - sweepToken( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalBorrows(overrides?: CallOverrides): Promise; - - totalBorrowsCurrent(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - totalReserves(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - underlying(overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolLptoken.ts b/src/apps/bastion-protocol/contracts/ethers/BastionProtocolLptoken.ts deleted file mode 100644 index dad6033bc..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolLptoken.ts +++ /dev/null @@ -1,608 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BastionProtocolLptokenInterface extends utils.Interface { - functions: { - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'burn(uint256)': FunctionFragment; - 'burnFrom(address,uint256)': FunctionFragment; - 'decimals()': FunctionFragment; - 'decreaseAllowance(address,uint256)': FunctionFragment; - 'increaseAllowance(address,uint256)': FunctionFragment; - 'initialize(string,string)': FunctionFragment; - 'mint(address,uint256)': FunctionFragment; - 'name()': FunctionFragment; - 'owner()': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'allowance' - | 'approve' - | 'balanceOf' - | 'burn' - | 'burnFrom' - | 'decimals' - | 'decreaseAllowance' - | 'increaseAllowance' - | 'initialize' - | 'mint' - | 'name' - | 'owner' - | 'renounceOwnership' - | 'symbol' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'transferOwnership', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'burn', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'burnFrom', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData( - functionFragment: 'decreaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'increaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'initialize', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'mint', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'burn', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'burnFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decreaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'increaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - - events: { - 'Approval(address,address,uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface BastionProtocolLptoken extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BastionProtocolLptokenInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - initialize( - name: PromiseOrValue, - symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - initialize( - name: PromiseOrValue, - symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - initialize( - name: PromiseOrValue, - symbol: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - mint( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - filters: { - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - initialize( - name: PromiseOrValue, - symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - initialize( - name: PromiseOrValue, - symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - mint( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolSwap.ts b/src/apps/bastion-protocol/contracts/ethers/BastionProtocolSwap.ts deleted file mode 100644 index 97788fb1f..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/BastionProtocolSwap.ts +++ /dev/null @@ -1,1275 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BastionProtocolSwapInterface extends utils.Interface { - functions: { - 'MAX_BPS()': FunctionFragment; - 'addLiquidity(uint256[],uint256,uint256)': FunctionFragment; - 'calculateRemoveLiquidity(uint256)': FunctionFragment; - 'calculateRemoveLiquidityOneToken(uint256,uint8)': FunctionFragment; - 'calculateSwap(uint8,uint8,uint256)': FunctionFragment; - 'calculateTokenAmount(uint256[],bool)': FunctionFragment; - 'flashLoan(address,address,uint256,bytes)': FunctionFragment; - 'flashLoanFeeBPS()': FunctionFragment; - 'getA()': FunctionFragment; - 'getAPrecise()': FunctionFragment; - 'getAdminBalance(uint256)': FunctionFragment; - 'getToken(uint8)': FunctionFragment; - 'getTokenBalance(uint8)': FunctionFragment; - 'getTokenIndex(address)': FunctionFragment; - 'getVirtualPrice()': FunctionFragment; - 'initialize(address[],uint8[],string,string,uint256,uint256,uint256,address)': FunctionFragment; - 'owner()': FunctionFragment; - 'pause()': FunctionFragment; - 'paused()': FunctionFragment; - 'protocolFeeShareBPS()': FunctionFragment; - 'rampA(uint256,uint256)': FunctionFragment; - 'removeLiquidity(uint256,uint256[],uint256)': FunctionFragment; - 'removeLiquidityImbalance(uint256[],uint256,uint256)': FunctionFragment; - 'removeLiquidityOneToken(uint256,uint8,uint256,uint256)': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'setAdminFee(uint256)': FunctionFragment; - 'setFlashLoanFees(uint256,uint256)': FunctionFragment; - 'setSwapFee(uint256)': FunctionFragment; - 'stopRampA()': FunctionFragment; - 'swap(uint8,uint8,uint256,uint256,uint256)': FunctionFragment; - 'swapStorage()': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'unpause()': FunctionFragment; - 'withdrawAdminFees()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'MAX_BPS' - | 'addLiquidity' - | 'calculateRemoveLiquidity' - | 'calculateRemoveLiquidityOneToken' - | 'calculateSwap' - | 'calculateTokenAmount' - | 'flashLoan' - | 'flashLoanFeeBPS' - | 'getA' - | 'getAPrecise' - | 'getAdminBalance' - | 'getToken' - | 'getTokenBalance' - | 'getTokenIndex' - | 'getVirtualPrice' - | 'initialize' - | 'owner' - | 'pause' - | 'paused' - | 'protocolFeeShareBPS' - | 'rampA' - | 'removeLiquidity' - | 'removeLiquidityImbalance' - | 'removeLiquidityOneToken' - | 'renounceOwnership' - | 'setAdminFee' - | 'setFlashLoanFees' - | 'setSwapFee' - | 'stopRampA' - | 'swap' - | 'swapStorage' - | 'transferOwnership' - | 'unpause' - | 'withdrawAdminFees', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'MAX_BPS', values?: undefined): string; - encodeFunctionData( - functionFragment: 'addLiquidity', - values: [PromiseOrValue[], PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'calculateRemoveLiquidity', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'calculateRemoveLiquidityOneToken', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'calculateSwap', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'calculateTokenAmount', - values: [PromiseOrValue[], PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'flashLoan', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'flashLoanFeeBPS', values?: undefined): string; - encodeFunctionData(functionFragment: 'getA', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAPrecise', values?: undefined): string; - encodeFunctionData(functionFragment: 'getAdminBalance', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getToken', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getTokenBalance', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getTokenIndex', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'getVirtualPrice', values?: undefined): string; - encodeFunctionData( - functionFragment: 'initialize', - values: [ - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'pause', values?: undefined): string; - encodeFunctionData(functionFragment: 'paused', values?: undefined): string; - encodeFunctionData(functionFragment: 'protocolFeeShareBPS', values?: undefined): string; - encodeFunctionData( - functionFragment: 'rampA', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'removeLiquidity', - values: [PromiseOrValue, PromiseOrValue[], PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'removeLiquidityImbalance', - values: [PromiseOrValue[], PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'removeLiquidityOneToken', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'setAdminFee', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'setFlashLoanFees', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'setSwapFee', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'stopRampA', values?: undefined): string; - encodeFunctionData( - functionFragment: 'swap', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'swapStorage', values?: undefined): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'unpause', values?: undefined): string; - encodeFunctionData(functionFragment: 'withdrawAdminFees', values?: undefined): string; - - decodeFunctionResult(functionFragment: 'MAX_BPS', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'addLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'calculateRemoveLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'calculateRemoveLiquidityOneToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'calculateSwap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'calculateTokenAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'flashLoan', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'flashLoanFeeBPS', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getA', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAPrecise', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getAdminBalance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getTokenBalance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getTokenIndex', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getVirtualPrice', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pause', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'paused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'protocolFeeShareBPS', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rampA', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'removeLiquidity', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'removeLiquidityImbalance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'removeLiquidityOneToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setAdminFee', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setFlashLoanFees', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setSwapFee', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stopRampA', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swapStorage', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'unpause', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawAdminFees', data: BytesLike): Result; - - events: { - 'AddLiquidity(address,uint256[],uint256[],uint256,uint256)': EventFragment; - 'FlashLoan(address,uint8,uint256,uint256,uint256)': EventFragment; - 'NewAdminFee(uint256)': EventFragment; - 'NewSwapFee(uint256)': EventFragment; - 'NewWithdrawFee(uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'Paused(address)': EventFragment; - 'RampA(uint256,uint256,uint256,uint256)': EventFragment; - 'RemoveLiquidity(address,uint256[],uint256)': EventFragment; - 'RemoveLiquidityImbalance(address,uint256[],uint256[],uint256,uint256)': EventFragment; - 'RemoveLiquidityOne(address,uint256,uint256,uint256,uint256)': EventFragment; - 'StopRampA(uint256,uint256)': EventFragment; - 'TokenSwap(address,uint256,uint256,uint128,uint128)': EventFragment; - 'Unpaused(address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AddLiquidity'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'FlashLoan'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewAdminFee'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewSwapFee'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'NewWithdrawFee'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Paused'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RampA'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RemoveLiquidity'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RemoveLiquidityImbalance'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RemoveLiquidityOne'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'StopRampA'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'TokenSwap'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Unpaused'): EventFragment; -} - -export interface AddLiquidityEventObject { - provider: string; - tokenAmounts: BigNumber[]; - fees: BigNumber[]; - invariant: BigNumber; - lpTokenSupply: BigNumber; -} -export type AddLiquidityEvent = TypedEvent< - [string, BigNumber[], BigNumber[], BigNumber, BigNumber], - AddLiquidityEventObject ->; - -export type AddLiquidityEventFilter = TypedEventFilter; - -export interface FlashLoanEventObject { - receiver: string; - tokenIndex: number; - amount: BigNumber; - amountFee: BigNumber; - protocolFee: BigNumber; -} -export type FlashLoanEvent = TypedEvent<[string, number, BigNumber, BigNumber, BigNumber], FlashLoanEventObject>; - -export type FlashLoanEventFilter = TypedEventFilter; - -export interface NewAdminFeeEventObject { - newAdminFee: BigNumber; -} -export type NewAdminFeeEvent = TypedEvent<[BigNumber], NewAdminFeeEventObject>; - -export type NewAdminFeeEventFilter = TypedEventFilter; - -export interface NewSwapFeeEventObject { - newSwapFee: BigNumber; -} -export type NewSwapFeeEvent = TypedEvent<[BigNumber], NewSwapFeeEventObject>; - -export type NewSwapFeeEventFilter = TypedEventFilter; - -export interface NewWithdrawFeeEventObject { - newWithdrawFee: BigNumber; -} -export type NewWithdrawFeeEvent = TypedEvent<[BigNumber], NewWithdrawFeeEventObject>; - -export type NewWithdrawFeeEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface RampAEventObject { - oldA: BigNumber; - newA: BigNumber; - initialTime: BigNumber; - futureTime: BigNumber; -} -export type RampAEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], RampAEventObject>; - -export type RampAEventFilter = TypedEventFilter; - -export interface RemoveLiquidityEventObject { - provider: string; - tokenAmounts: BigNumber[]; - lpTokenSupply: BigNumber; -} -export type RemoveLiquidityEvent = TypedEvent<[string, BigNumber[], BigNumber], RemoveLiquidityEventObject>; - -export type RemoveLiquidityEventFilter = TypedEventFilter; - -export interface RemoveLiquidityImbalanceEventObject { - provider: string; - tokenAmounts: BigNumber[]; - fees: BigNumber[]; - invariant: BigNumber; - lpTokenSupply: BigNumber; -} -export type RemoveLiquidityImbalanceEvent = TypedEvent< - [string, BigNumber[], BigNumber[], BigNumber, BigNumber], - RemoveLiquidityImbalanceEventObject ->; - -export type RemoveLiquidityImbalanceEventFilter = TypedEventFilter; - -export interface RemoveLiquidityOneEventObject { - provider: string; - lpTokenAmount: BigNumber; - lpTokenSupply: BigNumber; - boughtId: BigNumber; - tokensBought: BigNumber; -} -export type RemoveLiquidityOneEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber, BigNumber], - RemoveLiquidityOneEventObject ->; - -export type RemoveLiquidityOneEventFilter = TypedEventFilter; - -export interface StopRampAEventObject { - currentA: BigNumber; - time: BigNumber; -} -export type StopRampAEvent = TypedEvent<[BigNumber, BigNumber], StopRampAEventObject>; - -export type StopRampAEventFilter = TypedEventFilter; - -export interface TokenSwapEventObject { - buyer: string; - tokensSold: BigNumber; - tokensBought: BigNumber; - soldId: BigNumber; - boughtId: BigNumber; -} -export type TokenSwapEvent = TypedEvent<[string, BigNumber, BigNumber, BigNumber, BigNumber], TokenSwapEventObject>; - -export type TokenSwapEventFilter = TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface BastionProtocolSwap extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BastionProtocolSwapInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - MAX_BPS(overrides?: CallOverrides): Promise<[BigNumber]>; - - addLiquidity( - amounts: PromiseOrValue[], - minToMint: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - calculateRemoveLiquidity(amount: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber[]]>; - - calculateRemoveLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber] & { availableTokenAmount: BigNumber }>; - - calculateSwap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - calculateTokenAmount( - amounts: PromiseOrValue[], - deposit: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - flashLoan( - receiver: PromiseOrValue, - token: PromiseOrValue, - amount: PromiseOrValue, - params: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - flashLoanFeeBPS(overrides?: CallOverrides): Promise<[BigNumber]>; - - getA(overrides?: CallOverrides): Promise<[BigNumber]>; - - getAPrecise(overrides?: CallOverrides): Promise<[BigNumber]>; - - getAdminBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getToken(index: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - getTokenBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - getTokenIndex(tokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise<[number]>; - - getVirtualPrice(overrides?: CallOverrides): Promise<[BigNumber]>; - - initialize( - _pooledTokens: PromiseOrValue[], - decimals: PromiseOrValue[], - lpTokenName: PromiseOrValue, - lpTokenSymbol: PromiseOrValue, - _a: PromiseOrValue, - _fee: PromiseOrValue, - _adminFee: PromiseOrValue, - lpTokenTargetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - protocolFeeShareBPS(overrides?: CallOverrides): Promise<[BigNumber]>; - - rampA( - futureA: PromiseOrValue, - futureTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidity( - amount: PromiseOrValue, - minAmounts: PromiseOrValue[], - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityImbalance( - amounts: PromiseOrValue[], - maxBurnAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - minAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - setAdminFee( - newAdminFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFlashLoanFees( - newFlashLoanFeeBPS: PromiseOrValue, - newProtocolFeeShareBPS: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setSwapFee( - newSwapFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stopRampA(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - swap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - minDy: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swapStorage(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string] & { - initialA: BigNumber; - futureA: BigNumber; - initialATime: BigNumber; - futureATime: BigNumber; - swapFee: BigNumber; - adminFee: BigNumber; - lpToken: string; - } - >; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unpause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - withdrawAdminFees(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - MAX_BPS(overrides?: CallOverrides): Promise; - - addLiquidity( - amounts: PromiseOrValue[], - minToMint: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - calculateRemoveLiquidity(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - calculateRemoveLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateSwap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateTokenAmount( - amounts: PromiseOrValue[], - deposit: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - flashLoan( - receiver: PromiseOrValue, - token: PromiseOrValue, - amount: PromiseOrValue, - params: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - flashLoanFeeBPS(overrides?: CallOverrides): Promise; - - getA(overrides?: CallOverrides): Promise; - - getAPrecise(overrides?: CallOverrides): Promise; - - getAdminBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getToken(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenIndex(tokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - - initialize( - _pooledTokens: PromiseOrValue[], - decimals: PromiseOrValue[], - lpTokenName: PromiseOrValue, - lpTokenSymbol: PromiseOrValue, - _a: PromiseOrValue, - _fee: PromiseOrValue, - _adminFee: PromiseOrValue, - lpTokenTargetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - paused(overrides?: CallOverrides): Promise; - - protocolFeeShareBPS(overrides?: CallOverrides): Promise; - - rampA( - futureA: PromiseOrValue, - futureTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidity( - amount: PromiseOrValue, - minAmounts: PromiseOrValue[], - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityImbalance( - amounts: PromiseOrValue[], - maxBurnAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - minAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - setAdminFee( - newAdminFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFlashLoanFees( - newFlashLoanFeeBPS: PromiseOrValue, - newProtocolFeeShareBPS: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setSwapFee( - newSwapFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stopRampA(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - swap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - minDy: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swapStorage(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string] & { - initialA: BigNumber; - futureA: BigNumber; - initialATime: BigNumber; - futureATime: BigNumber; - swapFee: BigNumber; - adminFee: BigNumber; - lpToken: string; - } - >; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unpause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - withdrawAdminFees(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - callStatic: { - MAX_BPS(overrides?: CallOverrides): Promise; - - addLiquidity( - amounts: PromiseOrValue[], - minToMint: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateRemoveLiquidity(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - calculateRemoveLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateSwap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateTokenAmount( - amounts: PromiseOrValue[], - deposit: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - flashLoan( - receiver: PromiseOrValue, - token: PromiseOrValue, - amount: PromiseOrValue, - params: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - flashLoanFeeBPS(overrides?: CallOverrides): Promise; - - getA(overrides?: CallOverrides): Promise; - - getAPrecise(overrides?: CallOverrides): Promise; - - getAdminBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getToken(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenIndex(tokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - - initialize( - _pooledTokens: PromiseOrValue[], - decimals: PromiseOrValue[], - lpTokenName: PromiseOrValue, - lpTokenSymbol: PromiseOrValue, - _a: PromiseOrValue, - _fee: PromiseOrValue, - _adminFee: PromiseOrValue, - lpTokenTargetAddress: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - protocolFeeShareBPS(overrides?: CallOverrides): Promise; - - rampA( - futureA: PromiseOrValue, - futureTime: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - removeLiquidity( - amount: PromiseOrValue, - minAmounts: PromiseOrValue[], - deadline: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - removeLiquidityImbalance( - amounts: PromiseOrValue[], - maxBurnAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - removeLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - minAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - setAdminFee(newAdminFee: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFlashLoanFees( - newFlashLoanFeeBPS: PromiseOrValue, - newProtocolFeeShareBPS: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - setSwapFee(newSwapFee: PromiseOrValue, overrides?: CallOverrides): Promise; - - stopRampA(overrides?: CallOverrides): Promise; - - swap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - minDy: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - swapStorage(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string] & { - initialA: BigNumber; - futureA: BigNumber; - initialATime: BigNumber; - futureATime: BigNumber; - swapFee: BigNumber; - adminFee: BigNumber; - lpToken: string; - } - >; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - withdrawAdminFees(overrides?: CallOverrides): Promise; - }; - - filters: { - 'AddLiquidity(address,uint256[],uint256[],uint256,uint256)'( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - fees?: null, - invariant?: null, - lpTokenSupply?: null, - ): AddLiquidityEventFilter; - AddLiquidity( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - fees?: null, - invariant?: null, - lpTokenSupply?: null, - ): AddLiquidityEventFilter; - - 'FlashLoan(address,uint8,uint256,uint256,uint256)'( - receiver?: PromiseOrValue | null, - tokenIndex?: null, - amount?: null, - amountFee?: null, - protocolFee?: null, - ): FlashLoanEventFilter; - FlashLoan( - receiver?: PromiseOrValue | null, - tokenIndex?: null, - amount?: null, - amountFee?: null, - protocolFee?: null, - ): FlashLoanEventFilter; - - 'NewAdminFee(uint256)'(newAdminFee?: null): NewAdminFeeEventFilter; - NewAdminFee(newAdminFee?: null): NewAdminFeeEventFilter; - - 'NewSwapFee(uint256)'(newSwapFee?: null): NewSwapFeeEventFilter; - NewSwapFee(newSwapFee?: null): NewSwapFeeEventFilter; - - 'NewWithdrawFee(uint256)'(newWithdrawFee?: null): NewWithdrawFeeEventFilter; - NewWithdrawFee(newWithdrawFee?: null): NewWithdrawFeeEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'Paused(address)'(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - 'RampA(uint256,uint256,uint256,uint256)'( - oldA?: null, - newA?: null, - initialTime?: null, - futureTime?: null, - ): RampAEventFilter; - RampA(oldA?: null, newA?: null, initialTime?: null, futureTime?: null): RampAEventFilter; - - 'RemoveLiquidity(address,uint256[],uint256)'( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - lpTokenSupply?: null, - ): RemoveLiquidityEventFilter; - RemoveLiquidity( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - lpTokenSupply?: null, - ): RemoveLiquidityEventFilter; - - 'RemoveLiquidityImbalance(address,uint256[],uint256[],uint256,uint256)'( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - fees?: null, - invariant?: null, - lpTokenSupply?: null, - ): RemoveLiquidityImbalanceEventFilter; - RemoveLiquidityImbalance( - provider?: PromiseOrValue | null, - tokenAmounts?: null, - fees?: null, - invariant?: null, - lpTokenSupply?: null, - ): RemoveLiquidityImbalanceEventFilter; - - 'RemoveLiquidityOne(address,uint256,uint256,uint256,uint256)'( - provider?: PromiseOrValue | null, - lpTokenAmount?: null, - lpTokenSupply?: null, - boughtId?: null, - tokensBought?: null, - ): RemoveLiquidityOneEventFilter; - RemoveLiquidityOne( - provider?: PromiseOrValue | null, - lpTokenAmount?: null, - lpTokenSupply?: null, - boughtId?: null, - tokensBought?: null, - ): RemoveLiquidityOneEventFilter; - - 'StopRampA(uint256,uint256)'(currentA?: null, time?: null): StopRampAEventFilter; - StopRampA(currentA?: null, time?: null): StopRampAEventFilter; - - 'TokenSwap(address,uint256,uint256,uint128,uint128)'( - buyer?: PromiseOrValue | null, - tokensSold?: null, - tokensBought?: null, - soldId?: null, - boughtId?: null, - ): TokenSwapEventFilter; - TokenSwap( - buyer?: PromiseOrValue | null, - tokensSold?: null, - tokensBought?: null, - soldId?: null, - boughtId?: null, - ): TokenSwapEventFilter; - - 'Unpaused(address)'(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - }; - - estimateGas: { - MAX_BPS(overrides?: CallOverrides): Promise; - - addLiquidity( - amounts: PromiseOrValue[], - minToMint: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - calculateRemoveLiquidity(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - calculateRemoveLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateSwap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateTokenAmount( - amounts: PromiseOrValue[], - deposit: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - flashLoan( - receiver: PromiseOrValue, - token: PromiseOrValue, - amount: PromiseOrValue, - params: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - flashLoanFeeBPS(overrides?: CallOverrides): Promise; - - getA(overrides?: CallOverrides): Promise; - - getAPrecise(overrides?: CallOverrides): Promise; - - getAdminBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getToken(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenIndex(tokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - - initialize( - _pooledTokens: PromiseOrValue[], - decimals: PromiseOrValue[], - lpTokenName: PromiseOrValue, - lpTokenSymbol: PromiseOrValue, - _a: PromiseOrValue, - _fee: PromiseOrValue, - _adminFee: PromiseOrValue, - lpTokenTargetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - paused(overrides?: CallOverrides): Promise; - - protocolFeeShareBPS(overrides?: CallOverrides): Promise; - - rampA( - futureA: PromiseOrValue, - futureTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidity( - amount: PromiseOrValue, - minAmounts: PromiseOrValue[], - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityImbalance( - amounts: PromiseOrValue[], - maxBurnAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - minAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - setAdminFee( - newAdminFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFlashLoanFees( - newFlashLoanFeeBPS: PromiseOrValue, - newProtocolFeeShareBPS: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setSwapFee( - newSwapFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stopRampA(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - swap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - minDy: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swapStorage(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unpause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - withdrawAdminFees(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - populateTransaction: { - MAX_BPS(overrides?: CallOverrides): Promise; - - addLiquidity( - amounts: PromiseOrValue[], - minToMint: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - calculateRemoveLiquidity( - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateRemoveLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateSwap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - calculateTokenAmount( - amounts: PromiseOrValue[], - deposit: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - flashLoan( - receiver: PromiseOrValue, - token: PromiseOrValue, - amount: PromiseOrValue, - params: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - flashLoanFeeBPS(overrides?: CallOverrides): Promise; - - getA(overrides?: CallOverrides): Promise; - - getAPrecise(overrides?: CallOverrides): Promise; - - getAdminBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getToken(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenBalance(index: PromiseOrValue, overrides?: CallOverrides): Promise; - - getTokenIndex(tokenAddress: PromiseOrValue, overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - - initialize( - _pooledTokens: PromiseOrValue[], - decimals: PromiseOrValue[], - lpTokenName: PromiseOrValue, - lpTokenSymbol: PromiseOrValue, - _a: PromiseOrValue, - _fee: PromiseOrValue, - _adminFee: PromiseOrValue, - lpTokenTargetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - paused(overrides?: CallOverrides): Promise; - - protocolFeeShareBPS(overrides?: CallOverrides): Promise; - - rampA( - futureA: PromiseOrValue, - futureTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidity( - amount: PromiseOrValue, - minAmounts: PromiseOrValue[], - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityImbalance( - amounts: PromiseOrValue[], - maxBurnAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - removeLiquidityOneToken( - tokenAmount: PromiseOrValue, - tokenIndex: PromiseOrValue, - minAmount: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - setAdminFee( - newAdminFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFlashLoanFees( - newFlashLoanFeeBPS: PromiseOrValue, - newProtocolFeeShareBPS: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setSwapFee( - newSwapFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stopRampA(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - swap( - tokenIndexFrom: PromiseOrValue, - tokenIndexTo: PromiseOrValue, - dx: PromiseOrValue, - minDy: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swapStorage(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unpause(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - withdrawAdminFees(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; -} diff --git a/src/apps/bastion-protocol/contracts/ethers/common.ts b/src/apps/bastion-protocol/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolComptroller__factory.ts b/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolComptroller__factory.ts deleted file mode 100644 index 656e93d89..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolComptroller__factory.ts +++ /dev/null @@ -1,2232 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BastionProtocolComptroller, BastionProtocolComptrollerInterface } from '../BastionProtocolComptroller'; - -const _abi = [ - { - inputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'string', - name: 'action', - type: 'string', - }, - { - indexed: false, - internalType: 'bool', - name: 'pauseState', - type: 'bool', - }, - ], - name: 'ActionPaused', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldCompAccrued', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCompAccrued', - type: 'uint256', - }, - ], - name: 'CompAccruedAdjusted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newSpeed', - type: 'uint256', - }, - ], - name: 'CompBorrowSpeedUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'CompGranted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldCompReceivable', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCompReceivable', - type: 'uint256', - }, - ], - name: 'CompReceivableUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newSpeed', - type: 'uint256', - }, - ], - name: 'CompSupplySpeedUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'contributor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newSpeed', - type: 'uint256', - }, - ], - name: 'ContributorCompSpeedUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'compDelta', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'compBorrowIndex', - type: 'uint256', - }, - ], - name: 'DistributedBorrowerComp', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'supplier', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'compDelta', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'compSupplyIndex', - type: 'uint256', - }, - ], - name: 'DistributedSupplierComp', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'error', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'info', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'detail', - type: 'uint256', - }, - ], - name: 'Failure', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'MarketEntered', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'MarketExited', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - ], - name: 'MarketListed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newBorrowCap', - type: 'uint256', - }, - ], - name: 'NewBorrowCap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldBorrowCapGuardian', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newBorrowCapGuardian', - type: 'address', - }, - ], - name: 'NewBorrowCapGuardian', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldCloseFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCloseFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewCloseFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldCollateralFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newCollateralFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewCollateralFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldLiquidationIncentiveMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newLiquidationIncentiveMantissa', - type: 'uint256', - }, - ], - name: 'NewLiquidationIncentive', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldMaxAssets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newMaxAssets', - type: 'uint256', - }, - ], - name: 'NewMaxAssets', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPauseGuardian', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPauseGuardian', - type: 'address', - }, - ], - name: 'NewPauseGuardian', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract PriceOracle', - name: 'oldPriceOracle', - type: 'address', - }, - { - indexed: false, - internalType: 'contract PriceOracle', - name: 'newPriceOracle', - type: 'address', - }, - ], - name: 'NewPriceOracle', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldRewardDistributor', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newRewardDistributor', - type: 'address', - }, - ], - name: 'NewRewardDistributor', - type: 'event', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract Unitroller', - name: 'unitroller', - type: 'address', - }, - ], - name: '_become', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: '_borrowGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: '_mintGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'newBorrowCapGuardian', - type: 'address', - }, - ], - name: '_setBorrowCapGuardian', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setBorrowPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'newCloseFactorMantissa', - type: 'uint256', - }, - ], - name: '_setCloseFactor', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - internalType: 'uint256', - name: 'newCollateralFactorMantissa', - type: 'uint256', - }, - ], - name: '_setCollateralFactor', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'newLiquidationIncentiveMantissa', - type: 'uint256', - }, - ], - name: '_setLiquidationIncentive', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract CToken[]', - name: 'cTokens', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'newBorrowCaps', - type: 'uint256[]', - }, - ], - name: '_setMarketBorrowCaps', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'newMaxAssets', - type: 'uint256', - }, - ], - name: '_setMaxAssets', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setMintPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'newPauseGuardian', - type: 'address', - }, - ], - name: '_setPauseGuardian', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract PriceOracle', - name: 'newOracle', - type: 'address', - }, - ], - name: '_setPriceOracle', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address payable', - name: 'newRewardDistributor', - type: 'address', - }, - ], - name: '_setRewardDistributor', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setSeizePaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'bool', - name: 'state', - type: 'bool', - }, - ], - name: '_setTransferPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - ], - name: '_supportMarket', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'accountAssets', - outputs: [ - { - internalType: 'contract CToken', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'admin', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'allMarkets', - outputs: [ - { - internalType: 'contract CToken', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'borrowAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'borrowCapGuardian', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'borrowCaps', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'borrowGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'borrowVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - ], - name: 'checkMembership', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'closeFactorMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compAccrued', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compBorrowSpeeds', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compBorrowState', - outputs: [ - { - internalType: 'uint224', - name: 'index', - type: 'uint224', - }, - { - internalType: 'uint32', - name: 'block', - type: 'uint32', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compBorrowerIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compContributorSpeeds', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'compInitialIndex', - outputs: [ - { - internalType: 'uint224', - name: '', - type: 'uint224', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'compRate', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compReceivable', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compSpeeds', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compSupplierIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compSupplySpeeds', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'compSupplyState', - outputs: [ - { - internalType: 'uint224', - name: 'index', - type: 'uint224', - }, - { - internalType: 'uint32', - name: 'block', - type: 'uint32', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'comptrollerImplementation', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address[]', - name: 'cTokens', - type: 'address[]', - }, - ], - name: 'enterMarkets', - outputs: [ - { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cTokenAddress', - type: 'address', - }, - ], - name: 'exitMarket', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAccountLiquidity', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getAllMarkets', - outputs: [ - { - internalType: 'contract CToken[]', - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAssetsIn', - outputs: [ - { - internalType: 'contract CToken[]', - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getBlockTimestamp', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenModify', - type: 'address', - }, - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'getHypotheticalAccountLiquidity', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isComptroller', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'contract CToken', - name: 'cToken', - type: 'address', - }, - ], - name: 'isDeprecated', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'cTokenAddress', - type: 'address', - }, - ], - name: 'isMarketListed', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'lastContributorBlock', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'liquidateBorrowAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'actualRepayAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'liquidateBorrowVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'cTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - internalType: 'uint256', - name: 'actualRepayAmount', - type: 'uint256', - }, - ], - name: 'liquidateCalculateSeizeTokens', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'liquidationIncentiveMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'markets', - outputs: [ - { - internalType: 'bool', - name: 'isListed', - type: 'bool', - }, - { - internalType: 'uint256', - name: 'collateralFactorMantissa', - type: 'uint256', - }, - { - internalType: 'bool', - name: 'isComped', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'maxAssets', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - ], - name: 'mintAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'mintGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - internalType: 'uint256', - name: 'actualMintAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'mintTokens', - type: 'uint256', - }, - ], - name: 'mintVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'oracle', - outputs: [ - { - internalType: 'contract PriceOracle', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'pauseGuardian', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'pendingAdmin', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'pendingComptrollerImplementation', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'proposal65FixExecuted', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'redeemAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'redeemVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrowAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'actualRepayAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'borrowerIndex', - type: 'uint256', - }, - ], - name: 'repayBorrowVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardDistributor', - outputs: [ - { - internalType: 'address payable', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'seizeAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'seizeGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - internalType: 'address', - name: 'cTokenBorrowed', - type: 'address', - }, - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'seizeVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'src', - type: 'address', - }, - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'transferTokens', - type: 'uint256', - }, - ], - name: 'transferAllowed', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'transferGuardianPaused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'cToken', - type: 'address', - }, - { - internalType: 'address', - name: 'src', - type: 'address', - }, - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'transferTokens', - type: 'uint256', - }, - ], - name: 'transferVerify', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class BastionProtocolComptroller__factory { - static readonly abi = _abi; - static createInterface(): BastionProtocolComptrollerInterface { - return new utils.Interface(_abi) as BastionProtocolComptrollerInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BastionProtocolComptroller { - return new Contract(address, _abi, signerOrProvider) as BastionProtocolComptroller; - } -} diff --git a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolCtoken__factory.ts b/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolCtoken__factory.ts deleted file mode 100644 index edbf6ec90..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolCtoken__factory.ts +++ /dev/null @@ -1,1449 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BastionProtocolCtoken, BastionProtocolCtokenInterface } from '../BastionProtocolCtoken'; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'cashPrior', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'interestAccumulated', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'AccrueInterest', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'Borrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'error', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'info', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'detail', - type: 'uint256', - }, - ], - name: 'Failure', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'LiquidateBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintTokens', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'NewAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'oldComptroller', - type: 'address', - }, - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: 'NewComptroller', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'oldInterestRateModel', - type: 'address', - }, - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: 'NewMarketInterestRateModel', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPendingAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: 'NewPendingAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldReserveFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewReserveFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'RepayBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'benefactor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'admin', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesReduced', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - constant: false, - inputs: [], - name: '_acceptAdmin', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - ], - name: '_addReserves', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'compLikeDelegatee', - type: 'address', - }, - ], - name: '_delegateCompLikeTo', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - ], - name: '_reduceReserves', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: '_setComptroller', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: '_setInterestRateModel', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address payable', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: '_setPendingAdmin', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: '_setReserveFactor', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'accrualBlockTimestamp', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'accrueInterest', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'admin', - outputs: [ - { - internalType: 'address payable', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'balanceOfUnderlying', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - ], - name: 'borrow', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'borrowBalanceCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'borrowBalanceStored', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'borrowIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'borrowRatePerBlock', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'comptroller', - outputs: [ - { - internalType: 'contract ComptrollerInterface', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'exchangeRateCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'exchangeRateStored', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'getAccountSnapshot', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getCash', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'underlying_', - type: 'address', - }, - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { - internalType: 'string', - name: 'name_', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol_', - type: 'string', - }, - { - internalType: 'uint8', - name: 'decimals_', - type: 'uint8', - }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { - internalType: 'string', - name: 'name_', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol_', - type: 'string', - }, - { - internalType: 'uint8', - name: 'decimals_', - type: 'uint8', - }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'interestRateModel', - outputs: [ - { - internalType: 'contract InterestRateModel', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isCToken', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - internalType: 'contract CTokenInterface', - name: 'cTokenCollateral', - type: 'address', - }, - ], - name: 'liquidateBorrow', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - ], - name: 'mint', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'pendingAdmin', - outputs: [ - { - internalType: 'address payable', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'protocolSeizeShareMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'redeem', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - ], - name: 'redeemUnderlying', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrow', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - ], - name: 'repayBorrowBehalf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'reserveFactorMantissa', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'seize', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'supplyRatePerBlock', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'contract EIP20NonStandardInterface', - name: 'token', - type: 'address', - }, - ], - name: 'sweepToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalBorrows', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'totalBorrowsCurrent', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalReserves', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'src', - type: 'address', - }, - { - internalType: 'address', - name: 'dst', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'underlying', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, -]; - -export class BastionProtocolCtoken__factory { - static readonly abi = _abi; - static createInterface(): BastionProtocolCtokenInterface { - return new utils.Interface(_abi) as BastionProtocolCtokenInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BastionProtocolCtoken { - return new Contract(address, _abi, signerOrProvider) as BastionProtocolCtoken; - } -} diff --git a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolLptoken__factory.ts b/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolLptoken__factory.ts deleted file mode 100644 index 511a01da1..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolLptoken__factory.ts +++ /dev/null @@ -1,415 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BastionProtocolLptoken, BastionProtocolLptokenInterface } from '../BastionProtocolLptoken'; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'burnFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'subtractedValue', - type: 'uint256', - }, - ], - name: 'decreaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'addedValue', - type: 'uint256', - }, - ], - name: 'increaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - ], - name: 'initialize', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class BastionProtocolLptoken__factory { - static readonly abi = _abi; - static createInterface(): BastionProtocolLptokenInterface { - return new utils.Interface(_abi) as BastionProtocolLptokenInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BastionProtocolLptoken { - return new Contract(address, _abi, signerOrProvider) as BastionProtocolLptoken; - } -} diff --git a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolSwap__factory.ts b/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolSwap__factory.ts deleted file mode 100644 index 1d8bf5f8c..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/factories/BastionProtocolSwap__factory.ts +++ /dev/null @@ -1,1029 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BastionProtocolSwap, BastionProtocolSwapInterface } from '../BastionProtocolSwap'; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'provider', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'tokenAmounts', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'fees', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256', - name: 'invariant', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpTokenSupply', - type: 'uint256', - }, - ], - name: 'AddLiquidity', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - indexed: false, - internalType: 'uint8', - name: 'tokenIndex', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amountFee', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'protocolFee', - type: 'uint256', - }, - ], - name: 'FlashLoan', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'newAdminFee', - type: 'uint256', - }, - ], - name: 'NewAdminFee', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'newSwapFee', - type: 'uint256', - }, - ], - name: 'NewSwapFee', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'newWithdrawFee', - type: 'uint256', - }, - ], - name: 'NewWithdrawFee', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'Paused', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldA', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newA', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'initialTime', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'futureTime', - type: 'uint256', - }, - ], - name: 'RampA', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'provider', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'tokenAmounts', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpTokenSupply', - type: 'uint256', - }, - ], - name: 'RemoveLiquidity', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'provider', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'tokenAmounts', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'fees', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256', - name: 'invariant', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpTokenSupply', - type: 'uint256', - }, - ], - name: 'RemoveLiquidityImbalance', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'provider', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpTokenAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpTokenSupply', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'boughtId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokensBought', - type: 'uint256', - }, - ], - name: 'RemoveLiquidityOne', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'currentA', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'time', - type: 'uint256', - }, - ], - name: 'StopRampA', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'buyer', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokensSold', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokensBought', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint128', - name: 'soldId', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'boughtId', - type: 'uint128', - }, - ], - name: 'TokenSwap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'Unpaused', - type: 'event', - }, - { - inputs: [], - name: 'MAX_BPS', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'amounts', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'minToMint', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - ], - name: 'addLiquidity', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'calculateRemoveLiquidity', - outputs: [ - { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'tokenIndex', - type: 'uint8', - }, - ], - name: 'calculateRemoveLiquidityOneToken', - outputs: [ - { - internalType: 'uint256', - name: 'availableTokenAmount', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'tokenIndexFrom', - type: 'uint8', - }, - { - internalType: 'uint8', - name: 'tokenIndexTo', - type: 'uint8', - }, - { - internalType: 'uint256', - name: 'dx', - type: 'uint256', - }, - ], - name: 'calculateSwap', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'amounts', - type: 'uint256[]', - }, - { - internalType: 'bool', - name: 'deposit', - type: 'bool', - }, - ], - name: 'calculateTokenAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - internalType: 'contract IERC20', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'bytes', - name: 'params', - type: 'bytes', - }, - ], - name: 'flashLoan', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'flashLoanFeeBPS', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getA', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAPrecise', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'index', - type: 'uint256', - }, - ], - name: 'getAdminBalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'index', - type: 'uint8', - }, - ], - name: 'getToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'index', - type: 'uint8', - }, - ], - name: 'getTokenBalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'tokenAddress', - type: 'address', - }, - ], - name: 'getTokenIndex', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getVirtualPrice', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IERC20[]', - name: '_pooledTokens', - type: 'address[]', - }, - { - internalType: 'uint8[]', - name: 'decimals', - type: 'uint8[]', - }, - { - internalType: 'string', - name: 'lpTokenName', - type: 'string', - }, - { - internalType: 'string', - name: 'lpTokenSymbol', - type: 'string', - }, - { - internalType: 'uint256', - name: '_a', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_adminFee', - type: 'uint256', - }, - { - internalType: 'address', - name: 'lpTokenTargetAddress', - type: 'address', - }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pause', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'paused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolFeeShareBPS', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'futureA', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'futureTime', - type: 'uint256', - }, - ], - name: 'rampA', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256[]', - name: 'minAmounts', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - ], - name: 'removeLiquidity', - outputs: [ - { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'amounts', - type: 'uint256[]', - }, - { - internalType: 'uint256', - name: 'maxBurnAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - ], - name: 'removeLiquidityImbalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'tokenIndex', - type: 'uint8', - }, - { - internalType: 'uint256', - name: 'minAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - ], - name: 'removeLiquidityOneToken', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newAdminFee', - type: 'uint256', - }, - ], - name: 'setAdminFee', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newFlashLoanFeeBPS', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'newProtocolFeeShareBPS', - type: 'uint256', - }, - ], - name: 'setFlashLoanFees', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newSwapFee', - type: 'uint256', - }, - ], - name: 'setSwapFee', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'stopRampA', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'tokenIndexFrom', - type: 'uint8', - }, - { - internalType: 'uint8', - name: 'tokenIndexTo', - type: 'uint8', - }, - { - internalType: 'uint256', - name: 'dx', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'minDy', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - ], - name: 'swap', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'swapStorage', - outputs: [ - { - internalType: 'uint256', - name: 'initialA', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'futureA', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'initialATime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'futureATime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'swapFee', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'adminFee', - type: 'uint256', - }, - { - internalType: 'contract LPToken', - name: 'lpToken', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'unpause', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAdminFees', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class BastionProtocolSwap__factory { - static readonly abi = _abi; - static createInterface(): BastionProtocolSwapInterface { - return new utils.Interface(_abi) as BastionProtocolSwapInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BastionProtocolSwap { - return new Contract(address, _abi, signerOrProvider) as BastionProtocolSwap; - } -} diff --git a/src/apps/bastion-protocol/contracts/ethers/factories/index.ts b/src/apps/bastion-protocol/contracts/ethers/factories/index.ts deleted file mode 100644 index a7fbb6cb3..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { BastionProtocolComptroller__factory } from './BastionProtocolComptroller__factory'; -export { BastionProtocolCtoken__factory } from './BastionProtocolCtoken__factory'; -export { BastionProtocolLptoken__factory } from './BastionProtocolLptoken__factory'; -export { BastionProtocolSwap__factory } from './BastionProtocolSwap__factory'; diff --git a/src/apps/bastion-protocol/contracts/ethers/index.ts b/src/apps/bastion-protocol/contracts/ethers/index.ts deleted file mode 100644 index 1feba4393..000000000 --- a/src/apps/bastion-protocol/contracts/ethers/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { BastionProtocolComptroller } from './BastionProtocolComptroller'; -export type { BastionProtocolCtoken } from './BastionProtocolCtoken'; -export type { BastionProtocolLptoken } from './BastionProtocolLptoken'; -export type { BastionProtocolSwap } from './BastionProtocolSwap'; -export * as factories from './factories'; -export { BastionProtocolComptroller__factory } from './factories/BastionProtocolComptroller__factory'; -export { BastionProtocolCtoken__factory } from './factories/BastionProtocolCtoken__factory'; -export { BastionProtocolLptoken__factory } from './factories/BastionProtocolLptoken__factory'; -export { BastionProtocolSwap__factory } from './factories/BastionProtocolSwap__factory'; diff --git a/src/apps/bastion-protocol/contracts/index.ts b/src/apps/bastion-protocol/contracts/index.ts deleted file mode 100644 index 2b7345757..000000000 --- a/src/apps/bastion-protocol/contracts/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { - BastionProtocolComptroller__factory, - BastionProtocolCtoken__factory, - BastionProtocolLptoken__factory, - BastionProtocolSwap__factory, -} from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class BastionProtocolContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - bastionProtocolComptroller({ address, network }: ContractOpts) { - return BastionProtocolComptroller__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - bastionProtocolCtoken({ address, network }: ContractOpts) { - return BastionProtocolCtoken__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - bastionProtocolLptoken({ address, network }: ContractOpts) { - return BastionProtocolLptoken__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - bastionProtocolSwap({ address, network }: ContractOpts) { - return BastionProtocolSwap__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { BastionProtocolComptroller } from './ethers'; -export type { BastionProtocolCtoken } from './ethers'; -export type { BastionProtocolLptoken } from './ethers'; -export type { BastionProtocolSwap } from './ethers'; diff --git a/src/apps/beefy/beefy.module.ts b/src/apps/beefy/beefy.module.ts index f79338121..7090b8902 100644 --- a/src/apps/beefy/beefy.module.ts +++ b/src/apps/beefy/beefy.module.ts @@ -16,7 +16,6 @@ import { BeefyContractFactory } from './contracts'; import { EthereumBeefyVaultTokenFetcher } from './ethereum/beefy.vault.token-fetcher'; import { FantomBeefyBoostVaultContractPositionFetcher } from './fantom/beefy.boost-vault.contract-position-fetcher'; import { FantomBeefyVaultTokenFetcher } from './fantom/beefy.vault.token-fetcher'; -import { MoonriverBeefyVaultTokenFetcher } from './moonriver/beefy.vault.token-fetcher'; import { OptimismBeefyBoostVaultContractPositionFetcher } from './optimism/beefy.boost-vault.contract-position-fetcher'; import { OptimismBeefyVaultTokenFetcher } from './optimism/beefy.vault.token-fetcher'; import { PolygonBeefyBoostVaultContractPositionFetcher } from './polygon/beefy.boost-vault.contract-position-fetcher'; @@ -45,8 +44,6 @@ import { PolygonBeefyVaultTokenFetcher } from './polygon/beefy.vault.token-fetch // Fantom FantomBeefyVaultTokenFetcher, FantomBeefyBoostVaultContractPositionFetcher, - // Moonriver - MoonriverBeefyVaultTokenFetcher, // Optimism OptimismBeefyVaultTokenFetcher, OptimismBeefyBoostVaultContractPositionFetcher, diff --git a/src/apps/beefy/common/beefy.vault.token-definition-resolver.ts b/src/apps/beefy/common/beefy.vault.token-definition-resolver.ts index 497cf4a6d..746e47e17 100644 --- a/src/apps/beefy/common/beefy.vault.token-definition-resolver.ts +++ b/src/apps/beefy/common/beefy.vault.token-definition-resolver.ts @@ -25,9 +25,7 @@ const NETWORK_NAME: Partial> = { [Network.AVALANCHE_MAINNET]: 'avax', [Network.ARBITRUM_MAINNET]: 'arbitrum', [Network.ETHEREUM_MAINNET]: 'ethereum', - [Network.MOONRIVER_MAINNET]: 'moonriver', [Network.CELO_MAINNET]: 'celo', - [Network.AURORA_MAINNET]: 'aurora', [Network.BASE_MAINNET]: 'base', }; diff --git a/src/apps/beefy/moonriver/beefy.vault.token-fetcher.ts b/src/apps/beefy/moonriver/beefy.vault.token-fetcher.ts deleted file mode 100644 index da655d9e2..000000000 --- a/src/apps/beefy/moonriver/beefy.vault.token-fetcher.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; - -import { BeefyVaultTokenFetcher } from '../common/beefy.vault.token-fetcher'; - -@PositionTemplate() -export class MoonriverBeefyVaultTokenFetcher extends BeefyVaultTokenFetcher { - groupLabel = 'Vaults'; -} diff --git a/src/apps/bluebit/assets/logo.png b/src/apps/bluebit/assets/logo.png deleted file mode 100644 index 4c68b8bf5..000000000 Binary files a/src/apps/bluebit/assets/logo.png and /dev/null differ diff --git a/src/apps/bluebit/aurora/bluebit.farm.contract-position-fetcher.ts b/src/apps/bluebit/aurora/bluebit.farm.contract-position-fetcher.ts deleted file mode 100644 index 982c60edd..000000000 --- a/src/apps/bluebit/aurora/bluebit.farm.contract-position-fetcher.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Inject } from '@nestjs/common'; -import { BigNumberish } from 'ethers'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - GetMasterChefDataPropsParams, - GetMasterChefTokenBalancesParams, - MasterChefTemplateContractPositionFetcher, - RewardRateUnit, -} from '~position/template/master-chef.template.contract-position-fetcher'; - -import { BluebitChef, BluebitContractFactory } from '../contracts'; - -@PositionTemplate() -export class AuroraBluebitFarmContractPositionFetcher extends MasterChefTemplateContractPositionFetcher { - groupLabel = 'Farms'; - chefAddress = '0x947dd92990343ae1d6cbe2102ea84ef73bc5790e'; - rewardRateUnit = RewardRateUnit.BLOCK; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BluebitContractFactory) protected readonly contractFactory: BluebitContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): BluebitChef { - return this.contractFactory.bluebitChef({ address, network: this.network }); - } - - async getPoolLength(contract: BluebitChef) { - return contract.poolLength(); - } - - async getStakedTokenAddress(contract: BluebitChef, poolIndex: number) { - const multicall = this.appToolkit.getMulticall(this.network); - const pool = await contract.pools(poolIndex); - const vaultContract = this.contractFactory.vault({ address: pool.vault.toLowerCase(), network: this.network }); - return multicall.wrap(vaultContract).swapPair(); - } - - async getRewardTokenAddress(contract: BluebitChef) { - return contract.bluebitToken(); - } - - async getTotalAllocPoints({ contract }: GetMasterChefDataPropsParams): Promise { - return contract.totalAllocPoint(); - } - - async getTotalRewardRate({ contract }: GetMasterChefDataPropsParams): Promise { - return contract.rewardPerBlock(); - } - - async getPoolAllocPoints({ contract, definition }: GetMasterChefDataPropsParams): Promise { - return contract.pools(definition.poolIndex).then(v => v.allocPoint); - } - - async getStakedTokenBalance({ - address, - contract, - contractPosition, - }: GetMasterChefTokenBalancesParams): Promise { - return contract.pendingRewards(contractPosition.dataProps.poolIndex, address); - } - - async getRewardTokenBalance({ - address, - contract, - contractPosition, - }: GetMasterChefTokenBalancesParams): Promise { - const [user, pool] = await Promise.all([ - contract.users(contractPosition.dataProps.poolIndex, address), - contract.pools(contractPosition.dataProps.poolIndex), - ]); - - if (Number(user.shares) === 0 || Number(pool.shares) === 0) return 0; - - const vault = this.contractFactory.vault({ address: pool.vault, network: this.network }); - return user.shares.mul(await vault.totalSupply()).div(pool.shares); - } -} diff --git a/src/apps/bluebit/aurora/bluebit.voting-escrow.contract-position-fetcher.ts b/src/apps/bluebit/aurora/bluebit.voting-escrow.contract-position-fetcher.ts deleted file mode 100644 index ca07ed99d..000000000 --- a/src/apps/bluebit/aurora/bluebit.voting-escrow.contract-position-fetcher.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { GetTokenDefinitionsParams, GetTokenBalancesParams } from '~position/template/contract-position.template.types'; -import { VotingEscrowTemplateContractPositionFetcher } from '~position/template/voting-escrow.template.contract-position-fetcher'; - -import { BluebitContractFactory, BluebitVeToken } from '../contracts'; - -@PositionTemplate() -export class AuroraBluebitVotingEscrowContractPositionFetcher extends VotingEscrowTemplateContractPositionFetcher { - groupLabel = 'Voting Escrow'; - veTokenAddress = '0xdf7c547f332351a86db0d89a89799a7ab4ec9deb'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(BluebitContractFactory) protected readonly contractFactory: BluebitContractFactory, - ) { - super(appToolkit); - } - - getEscrowContract(address: string): BluebitVeToken { - return this.contractFactory.bluebitVeToken({ address, network: this.network }); - } - - getEscrowedTokenAddress({ contract }: GetTokenDefinitionsParams) { - return contract.token(); - } - - async getEscrowedTokenBalance({ contract, address }: GetTokenBalancesParams) { - return contract.lockedOf(address).then(v => v.amount); - } -} diff --git a/src/apps/bluebit/bluebit.module.ts b/src/apps/bluebit/bluebit.module.ts deleted file mode 100644 index 862e81af9..000000000 --- a/src/apps/bluebit/bluebit.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; - -import { AuroraBluebitFarmContractPositionFetcher } from './aurora/bluebit.farm.contract-position-fetcher'; -import { AuroraBluebitVotingEscrowContractPositionFetcher } from './aurora/bluebit.voting-escrow.contract-position-fetcher'; -import { BluebitContractFactory } from './contracts'; - -@Module({ - providers: [ - BluebitContractFactory, - // Aurora - AuroraBluebitFarmContractPositionFetcher, - AuroraBluebitVotingEscrowContractPositionFetcher, - ], -}) -export class BluebitAppModule extends AbstractApp() {} diff --git a/src/apps/bluebit/contracts/abis/bluebit-chef.json b/src/apps/bluebit/contracts/abis/bluebit-chef.json deleted file mode 100644 index 264fc5179..000000000 --- a/src/apps/bluebit/contracts/abis/bluebit-chef.json +++ /dev/null @@ -1,822 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "contract IveToken", - "name": "_veToken", - "type": "address" - }, - { - "internalType": "contract IBluebitToken", - "name": "_bluebitToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_rewardPerBlock", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "BluebitTokenChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalShares", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - } - ], - "name": "Compound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "previousValue", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "newValue", - "type": "uint256" - } - ], - "name": "FactorWeightChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "FeeDistributorChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Harvest", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Harvests", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "ManagerChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "OwnerChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bool", - "name": "previousValue", - "type": "bool" - }, - { - "indexed": true, - "internalType": "bool", - "name": "newValue", - "type": "bool" - } - ], - "name": "PauseChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vault", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "allocPoint", - "type": "uint256" - } - ], - "name": "PoolChange", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "previousValue", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "newValue", - "type": "uint256" - } - ], - "name": "RewardPerBlockChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "veTokenChanged", - "type": "event" - }, - { - "inputs": [], - "name": "bluebitToken", - "outputs": [ - { - "internalType": "contract IBluebitToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "factorWeight", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeDistributor", - "outputs": [ - { - "internalType": "contract IFeeDistributor", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "locked", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "pools", - "outputs": [ - { - "internalType": "contract IVault", - "name": "vault", - "type": "address" - }, - { - "internalType": "uint256", - "name": "shares", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "weights", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "allocPoint", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardPerWeight", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastRewardBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "interestRatePerBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastCompoundBlock", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardPerBlock", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "name": "setManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "name": "setOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "_paused", - "type": "bool" - } - ], - "name": "setPaused", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalAllocPoint", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "users", - "outputs": [ - { - "internalType": "uint256", - "name": "shares", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "weights", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardDebt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastDepositedTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastDepositedAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "veToken", - "outputs": [ - { - "internalType": "contract IveToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IveToken", - "name": "_address", - "type": "address" - } - ], - "name": "setveToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IBluebitToken", - "name": "_address", - "type": "address" - } - ], - "name": "setBluebitToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IVault", - "name": "vault", - "type": "address" - }, - { - "internalType": "uint256", - "name": "allocPoint", - "type": "uint256" - } - ], - "name": "setPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "contract IVault", - "name": "vault", - "type": "address" - } - ], - "name": "migratePool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "weight", - "type": "uint256" - } - ], - "name": "setFactorWeight", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "setRewardPerBlock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IFeeDistributor", - "name": "_address", - "type": "address" - } - ], - "name": "setFeeDistributor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "poolLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bluebitTokenTotalSupply", - "type": "uint256" - } - ], - "name": "poolRewards", - "outputs": [ - { - "internalType": "uint256", - "name": "rewards", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "pendingRewards", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - } - ], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "harvests", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - } - ], - "name": "compound", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/bluebit/contracts/abis/bluebit-ve-token.json b/src/apps/bluebit/contracts/abis/bluebit-ve-token.json deleted file mode 100644 index d3db76216..000000000 --- a/src/apps/bluebit/contracts/abis/bluebit-ve-token.json +++ /dev/null @@ -1,406 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "unlockTime", - "type": "uint256" - } - ], - "name": "Locked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Unlocked", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "increaseAmount", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "unlockTime", - "type": "uint256" - } - ], - "name": "increaseTime", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "unlockTime", - "type": "uint256" - } - ], - "name": "lock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unlock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "lockedOf", - "outputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "unlockTime", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalLocked", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "rate", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "name": "rateAt", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "token", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/bluebit/contracts/abis/stats.json b/src/apps/bluebit/contracts/abis/stats.json deleted file mode 100644 index d2ab7b50a..000000000 --- a/src/apps/bluebit/contracts/abis/stats.json +++ /dev/null @@ -1,454 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "pools", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "vault", - "type": "address" - }, - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deposits", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "allocPoint", - "type": "uint256" - } - ], - "internalType": "struct IStats.Pool[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "vaults", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "vault", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "apr", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalDeposits", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "accountDeposits", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalRewards", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "accountRewards", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "depositTokenPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewardTokenPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "withdrawInterval", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "withdrawFee", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "accountWeights", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalWeights", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastDepositedTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastDepositedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "allocPoint", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rewards", - "type": "uint256" - } - ], - "internalType": "struct IStats.Vault[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "summary", - "outputs": [ - { - "internalType": "uint256", - "name": "tvl", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deposites", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "bbtBalance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "veBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "pendingRewards", - "outputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bbt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ve", - "type": "uint256" - } - ], - "name": "getBoostFactor", - "outputs": [ - { - "internalType": "uint256", - "name": "boost", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toMaxBoost", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "stakeInfo", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "unlockTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "accountLocked", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalLocked", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "veBalance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "veTotalSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenPrice", - "type": "uint256" - } - ], - "internalType": "struct IStats.Stake", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "rebateInfo", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "totalLocked", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "weekToken0Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "weekToken1Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastToken0Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastToken1Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "claimableToken0Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "claimableToken1Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "claimableRate", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "token0Price", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "token1Price", - "type": "uint256" - }, - { - "internalType": "string", - "name": "token0Name", - "type": "string" - }, - { - "internalType": "string", - "name": "token1Name", - "type": "string" - } - ], - "internalType": "struct IStats.Rebate", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "performanceFees", - "outputs": [ - { - "internalType": "uint256", - "name": "controllerFee", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "treasuryFee", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "rebateFee", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "name": "getTotalBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/bluebit/contracts/abis/vault.json b/src/apps/bluebit/contracts/abis/vault.json deleted file mode 100644 index fbb1fd81c..000000000 --- a/src/apps/bluebit/contracts/abis/vault.json +++ /dev/null @@ -1,299 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "FeeDistributorChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "RewardTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "RewardTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "RewarderChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousValue", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newValue", - "type": "address" - } - ], - "name": "SwapPathChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "previousValue", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "newValue", - "type": "uint256" - } - ], - "name": "WithdrawFeeChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "previousValue", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "newValue", - "type": "uint256" - } - ], - "name": "WithdrawIntervalChanged", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IFeeDistributor", - "name": "feeDistributor", - "type": "address" - } - ], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "pairType", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swapPair", - "outputs": [ - { - "internalType": "contract ISwapPair", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swapPath", - "outputs": [ - { - "internalType": "contract ISwapPath", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swapRouter", - "outputs": [ - { - "internalType": "contract ISwapRouter", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawFee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawInterval", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stableSwap", - "outputs": [ - { - "internalType": "contract IStableSwap", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tokens", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getVirtualPrice", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/bluebit/contracts/ethers/BluebitChef.ts b/src/apps/bluebit/contracts/ethers/BluebitChef.ts deleted file mode 100644 index 8b97f723c..000000000 --- a/src/apps/bluebit/contracts/ethers/BluebitChef.ts +++ /dev/null @@ -1,1081 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BluebitChefInterface extends utils.Interface { - functions: { - 'bluebitToken()': FunctionFragment; - 'factorWeight()': FunctionFragment; - 'feeDistributor()': FunctionFragment; - 'locked()': FunctionFragment; - 'manager()': FunctionFragment; - 'owner()': FunctionFragment; - 'paused()': FunctionFragment; - 'pools(uint256)': FunctionFragment; - 'rewardPerBlock()': FunctionFragment; - 'setManager(address)': FunctionFragment; - 'setOwner(address)': FunctionFragment; - 'setPaused(bool)': FunctionFragment; - 'totalAllocPoint()': FunctionFragment; - 'users(uint256,address)': FunctionFragment; - 'veToken()': FunctionFragment; - 'setveToken(address)': FunctionFragment; - 'setBluebitToken(address)': FunctionFragment; - 'setPool(address,uint256)': FunctionFragment; - 'migratePool(uint256,address)': FunctionFragment; - 'setFactorWeight(uint256)': FunctionFragment; - 'setRewardPerBlock(uint256)': FunctionFragment; - 'setFeeDistributor(address)': FunctionFragment; - 'poolLength()': FunctionFragment; - 'poolRewards(uint256,uint256)': FunctionFragment; - 'pendingRewards(uint256,address)': FunctionFragment; - 'deposit(uint256,uint256)': FunctionFragment; - 'withdraw(uint256,uint256)': FunctionFragment; - 'harvest(uint256)': FunctionFragment; - 'harvests()': FunctionFragment; - 'compound(uint256)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'bluebitToken' - | 'factorWeight' - | 'feeDistributor' - | 'locked' - | 'manager' - | 'owner' - | 'paused' - | 'pools' - | 'rewardPerBlock' - | 'setManager' - | 'setOwner' - | 'setPaused' - | 'totalAllocPoint' - | 'users' - | 'veToken' - | 'setveToken' - | 'setBluebitToken' - | 'setPool' - | 'migratePool' - | 'setFactorWeight' - | 'setRewardPerBlock' - | 'setFeeDistributor' - | 'poolLength' - | 'poolRewards' - | 'pendingRewards' - | 'deposit' - | 'withdraw' - | 'harvest' - | 'harvests' - | 'compound', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'bluebitToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'factorWeight', values?: undefined): string; - encodeFunctionData(functionFragment: 'feeDistributor', values?: undefined): string; - encodeFunctionData(functionFragment: 'locked', values?: undefined): string; - encodeFunctionData(functionFragment: 'manager', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'paused', values?: undefined): string; - encodeFunctionData(functionFragment: 'pools', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'rewardPerBlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'setManager', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setOwner', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setPaused', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'totalAllocPoint', values?: undefined): string; - encodeFunctionData(functionFragment: 'users', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'veToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'setveToken', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setBluebitToken', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'setPool', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'migratePool', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'setFactorWeight', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setRewardPerBlock', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setFeeDistributor', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'poolLength', values?: undefined): string; - encodeFunctionData( - functionFragment: 'poolRewards', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'pendingRewards', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'deposit', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'withdraw', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'harvest', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'harvests', values?: undefined): string; - encodeFunctionData(functionFragment: 'compound', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'bluebitToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'factorWeight', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'feeDistributor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'locked', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'manager', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'paused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pools', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardPerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setManager', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setOwner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setPaused', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalAllocPoint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'users', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'veToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setveToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setBluebitToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setPool', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'migratePool', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setFactorWeight', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setRewardPerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setFeeDistributor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'poolLength', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'poolRewards', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingRewards', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'harvest', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'harvests', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'compound', data: BytesLike): Result; - - events: { - 'BluebitTokenChanged(address,address)': EventFragment; - 'Compound(uint256,uint256,uint256)': EventFragment; - 'Deposited(address,uint256,uint256)': EventFragment; - 'FactorWeightChanged(uint256,uint256)': EventFragment; - 'FeeDistributorChanged(address,address)': EventFragment; - 'Harvest(address,uint256,uint256)': EventFragment; - 'Harvests(address,uint256)': EventFragment; - 'ManagerChanged(address,address)': EventFragment; - 'OwnerChanged(address,address)': EventFragment; - 'PauseChanged(bool,bool)': EventFragment; - 'PoolChange(address,uint256,uint256)': EventFragment; - 'RewardPerBlockChanged(uint256,uint256)': EventFragment; - 'Withdrawn(address,uint256,uint256)': EventFragment; - 'veTokenChanged(address,address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'BluebitTokenChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Compound'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Deposited'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'FactorWeightChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'FeeDistributorChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Harvest'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Harvests'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'ManagerChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnerChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'PauseChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'PoolChange'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardPerBlockChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Withdrawn'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'veTokenChanged'): EventFragment; -} - -export interface BluebitTokenChangedEventObject { - previousValue: string; - newValue: string; -} -export type BluebitTokenChangedEvent = TypedEvent<[string, string], BluebitTokenChangedEventObject>; - -export type BluebitTokenChangedEventFilter = TypedEventFilter; - -export interface CompoundEventObject { - pid: BigNumber; - totalShares: BigNumber; - totalSupply: BigNumber; -} -export type CompoundEvent = TypedEvent<[BigNumber, BigNumber, BigNumber], CompoundEventObject>; - -export type CompoundEventFilter = TypedEventFilter; - -export interface DepositedEventObject { - account: string; - pid: BigNumber; - amount: BigNumber; -} -export type DepositedEvent = TypedEvent<[string, BigNumber, BigNumber], DepositedEventObject>; - -export type DepositedEventFilter = TypedEventFilter; - -export interface FactorWeightChangedEventObject { - previousValue: BigNumber; - newValue: BigNumber; -} -export type FactorWeightChangedEvent = TypedEvent<[BigNumber, BigNumber], FactorWeightChangedEventObject>; - -export type FactorWeightChangedEventFilter = TypedEventFilter; - -export interface FeeDistributorChangedEventObject { - previousValue: string; - newValue: string; -} -export type FeeDistributorChangedEvent = TypedEvent<[string, string], FeeDistributorChangedEventObject>; - -export type FeeDistributorChangedEventFilter = TypedEventFilter; - -export interface HarvestEventObject { - account: string; - pid: BigNumber; - amount: BigNumber; -} -export type HarvestEvent = TypedEvent<[string, BigNumber, BigNumber], HarvestEventObject>; - -export type HarvestEventFilter = TypedEventFilter; - -export interface HarvestsEventObject { - account: string; - amount: BigNumber; -} -export type HarvestsEvent = TypedEvent<[string, BigNumber], HarvestsEventObject>; - -export type HarvestsEventFilter = TypedEventFilter; - -export interface ManagerChangedEventObject { - previousValue: string; - newValue: string; -} -export type ManagerChangedEvent = TypedEvent<[string, string], ManagerChangedEventObject>; - -export type ManagerChangedEventFilter = TypedEventFilter; - -export interface OwnerChangedEventObject { - previousValue: string; - newValue: string; -} -export type OwnerChangedEvent = TypedEvent<[string, string], OwnerChangedEventObject>; - -export type OwnerChangedEventFilter = TypedEventFilter; - -export interface PauseChangedEventObject { - previousValue: boolean; - newValue: boolean; -} -export type PauseChangedEvent = TypedEvent<[boolean, boolean], PauseChangedEventObject>; - -export type PauseChangedEventFilter = TypedEventFilter; - -export interface PoolChangeEventObject { - vault: string; - pid: BigNumber; - allocPoint: BigNumber; -} -export type PoolChangeEvent = TypedEvent<[string, BigNumber, BigNumber], PoolChangeEventObject>; - -export type PoolChangeEventFilter = TypedEventFilter; - -export interface RewardPerBlockChangedEventObject { - previousValue: BigNumber; - newValue: BigNumber; -} -export type RewardPerBlockChangedEvent = TypedEvent<[BigNumber, BigNumber], RewardPerBlockChangedEventObject>; - -export type RewardPerBlockChangedEventFilter = TypedEventFilter; - -export interface WithdrawnEventObject { - account: string; - pid: BigNumber; - amount: BigNumber; -} -export type WithdrawnEvent = TypedEvent<[string, BigNumber, BigNumber], WithdrawnEventObject>; - -export type WithdrawnEventFilter = TypedEventFilter; - -export interface veTokenChangedEventObject { - previousValue: string; - newValue: string; -} -export type veTokenChangedEvent = TypedEvent<[string, string], veTokenChangedEventObject>; - -export type veTokenChangedEventFilter = TypedEventFilter; - -export interface BluebitChef extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BluebitChefInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - bluebitToken(overrides?: CallOverrides): Promise<[string]>; - - factorWeight(overrides?: CallOverrides): Promise<[BigNumber]>; - - feeDistributor(overrides?: CallOverrides): Promise<[string]>; - - locked(overrides?: CallOverrides): Promise<[boolean]>; - - manager(overrides?: CallOverrides): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - pools( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - vault: string; - shares: BigNumber; - weights: BigNumber; - allocPoint: BigNumber; - rewardPerWeight: BigNumber; - lastRewardBlock: BigNumber; - interestRatePerBlock: BigNumber; - lastCompoundBlock: BigNumber; - } - >; - - rewardPerBlock(overrides?: CallOverrides): Promise<[BigNumber]>; - - setManager( - _manager: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPaused( - _paused: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise<[BigNumber]>; - - users( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - shares: BigNumber; - weights: BigNumber; - rewardDebt: BigNumber; - lastDepositedTime: BigNumber; - lastDepositedAmount: BigNumber; - } - >; - - veToken(overrides?: CallOverrides): Promise<[string]>; - - setveToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setBluebitToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPool( - vault: PromiseOrValue, - allocPoint: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - migratePool( - pid: PromiseOrValue, - vault: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFactorWeight( - weight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardPerBlock( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeDistributor( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - poolLength(overrides?: CallOverrides): Promise<[BigNumber]>; - - poolRewards( - pid: PromiseOrValue, - bluebitTokenTotalSupply: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { rewards: BigNumber; fee: BigNumber }>; - - pendingRewards( - pid: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvests(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - compound( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - bluebitToken(overrides?: CallOverrides): Promise; - - factorWeight(overrides?: CallOverrides): Promise; - - feeDistributor(overrides?: CallOverrides): Promise; - - locked(overrides?: CallOverrides): Promise; - - manager(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pools( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - vault: string; - shares: BigNumber; - weights: BigNumber; - allocPoint: BigNumber; - rewardPerWeight: BigNumber; - lastRewardBlock: BigNumber; - interestRatePerBlock: BigNumber; - lastCompoundBlock: BigNumber; - } - >; - - rewardPerBlock(overrides?: CallOverrides): Promise; - - setManager( - _manager: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPaused( - _paused: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - users( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - shares: BigNumber; - weights: BigNumber; - rewardDebt: BigNumber; - lastDepositedTime: BigNumber; - lastDepositedAmount: BigNumber; - } - >; - - veToken(overrides?: CallOverrides): Promise; - - setveToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setBluebitToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPool( - vault: PromiseOrValue, - allocPoint: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - migratePool( - pid: PromiseOrValue, - vault: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFactorWeight( - weight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardPerBlock( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeDistributor( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - poolRewards( - pid: PromiseOrValue, - bluebitTokenTotalSupply: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { rewards: BigNumber; fee: BigNumber }>; - - pendingRewards( - pid: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvests(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - compound( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - bluebitToken(overrides?: CallOverrides): Promise; - - factorWeight(overrides?: CallOverrides): Promise; - - feeDistributor(overrides?: CallOverrides): Promise; - - locked(overrides?: CallOverrides): Promise; - - manager(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pools( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - vault: string; - shares: BigNumber; - weights: BigNumber; - allocPoint: BigNumber; - rewardPerWeight: BigNumber; - lastRewardBlock: BigNumber; - interestRatePerBlock: BigNumber; - lastCompoundBlock: BigNumber; - } - >; - - rewardPerBlock(overrides?: CallOverrides): Promise; - - setManager(_manager: PromiseOrValue, overrides?: CallOverrides): Promise; - - setOwner(_owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - setPaused(_paused: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - users( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - shares: BigNumber; - weights: BigNumber; - rewardDebt: BigNumber; - lastDepositedTime: BigNumber; - lastDepositedAmount: BigNumber; - } - >; - - veToken(overrides?: CallOverrides): Promise; - - setveToken(_address: PromiseOrValue, overrides?: CallOverrides): Promise; - - setBluebitToken(_address: PromiseOrValue, overrides?: CallOverrides): Promise; - - setPool( - vault: PromiseOrValue, - allocPoint: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - migratePool( - pid: PromiseOrValue, - vault: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - setFactorWeight(weight: PromiseOrValue, overrides?: CallOverrides): Promise; - - setRewardPerBlock(_value: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFeeDistributor(_address: PromiseOrValue, overrides?: CallOverrides): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - poolRewards( - pid: PromiseOrValue, - bluebitTokenTotalSupply: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { rewards: BigNumber; fee: BigNumber }>; - - pendingRewards( - pid: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - harvest(pid: PromiseOrValue, overrides?: CallOverrides): Promise; - - harvests(overrides?: CallOverrides): Promise; - - compound(pid: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - filters: { - 'BluebitTokenChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): BluebitTokenChangedEventFilter; - BluebitTokenChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): BluebitTokenChangedEventFilter; - - 'Compound(uint256,uint256,uint256)'(pid?: null, totalShares?: null, totalSupply?: null): CompoundEventFilter; - Compound(pid?: null, totalShares?: null, totalSupply?: null): CompoundEventFilter; - - 'Deposited(address,uint256,uint256)'( - account?: PromiseOrValue | null, - pid?: null, - amount?: null, - ): DepositedEventFilter; - Deposited(account?: PromiseOrValue | null, pid?: null, amount?: null): DepositedEventFilter; - - 'FactorWeightChanged(uint256,uint256)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FactorWeightChangedEventFilter; - FactorWeightChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FactorWeightChangedEventFilter; - - 'FeeDistributorChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FeeDistributorChangedEventFilter; - FeeDistributorChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FeeDistributorChangedEventFilter; - - 'Harvest(address,uint256,uint256)'( - account?: PromiseOrValue | null, - pid?: null, - amount?: null, - ): HarvestEventFilter; - Harvest(account?: PromiseOrValue | null, pid?: null, amount?: null): HarvestEventFilter; - - 'Harvests(address,uint256)'(account?: PromiseOrValue | null, amount?: null): HarvestsEventFilter; - Harvests(account?: PromiseOrValue | null, amount?: null): HarvestsEventFilter; - - 'ManagerChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): ManagerChangedEventFilter; - ManagerChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): ManagerChangedEventFilter; - - 'OwnerChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): OwnerChangedEventFilter; - OwnerChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): OwnerChangedEventFilter; - - 'PauseChanged(bool,bool)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): PauseChangedEventFilter; - PauseChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): PauseChangedEventFilter; - - 'PoolChange(address,uint256,uint256)'( - vault?: PromiseOrValue | null, - pid?: null, - allocPoint?: null, - ): PoolChangeEventFilter; - PoolChange(vault?: PromiseOrValue | null, pid?: null, allocPoint?: null): PoolChangeEventFilter; - - 'RewardPerBlockChanged(uint256,uint256)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): RewardPerBlockChangedEventFilter; - RewardPerBlockChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): RewardPerBlockChangedEventFilter; - - 'Withdrawn(address,uint256,uint256)'( - account?: PromiseOrValue | null, - pid?: null, - amount?: null, - ): WithdrawnEventFilter; - Withdrawn(account?: PromiseOrValue | null, pid?: null, amount?: null): WithdrawnEventFilter; - - 'veTokenChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): veTokenChangedEventFilter; - veTokenChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): veTokenChangedEventFilter; - }; - - estimateGas: { - bluebitToken(overrides?: CallOverrides): Promise; - - factorWeight(overrides?: CallOverrides): Promise; - - feeDistributor(overrides?: CallOverrides): Promise; - - locked(overrides?: CallOverrides): Promise; - - manager(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pools(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardPerBlock(overrides?: CallOverrides): Promise; - - setManager( - _manager: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPaused( - _paused: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - users( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - veToken(overrides?: CallOverrides): Promise; - - setveToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setBluebitToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPool( - vault: PromiseOrValue, - allocPoint: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - migratePool( - pid: PromiseOrValue, - vault: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFactorWeight( - weight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardPerBlock( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeDistributor( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - poolRewards( - pid: PromiseOrValue, - bluebitTokenTotalSupply: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - pendingRewards( - pid: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvests(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - compound( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - bluebitToken(overrides?: CallOverrides): Promise; - - factorWeight(overrides?: CallOverrides): Promise; - - feeDistributor(overrides?: CallOverrides): Promise; - - locked(overrides?: CallOverrides): Promise; - - manager(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pools(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - rewardPerBlock(overrides?: CallOverrides): Promise; - - setManager( - _manager: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPaused( - _paused: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - users( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - veToken(overrides?: CallOverrides): Promise; - - setveToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setBluebitToken( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setPool( - vault: PromiseOrValue, - allocPoint: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - migratePool( - pid: PromiseOrValue, - vault: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFactorWeight( - weight: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setRewardPerBlock( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeDistributor( - _address: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - poolRewards( - pid: PromiseOrValue, - bluebitTokenTotalSupply: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - pendingRewards( - pid: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvests(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - compound( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/bluebit/contracts/ethers/BluebitVeToken.ts b/src/apps/bluebit/contracts/ethers/BluebitVeToken.ts deleted file mode 100644 index 91882779d..000000000 --- a/src/apps/bluebit/contracts/ethers/BluebitVeToken.ts +++ /dev/null @@ -1,566 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface BluebitVeTokenInterface extends utils.Interface { - functions: { - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'decimals()': FunctionFragment; - 'name()': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'increaseAmount(uint256)': FunctionFragment; - 'increaseTime(uint256)': FunctionFragment; - 'lock(uint256,uint256)': FunctionFragment; - 'unlock()': FunctionFragment; - 'lockedOf(address)': FunctionFragment; - 'totalLocked()': FunctionFragment; - 'rate(address)': FunctionFragment; - 'rateAt(address,uint256)': FunctionFragment; - 'token()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'allowance' - | 'approve' - | 'balanceOf' - | 'decimals' - | 'name' - | 'symbol' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'increaseAmount' - | 'increaseTime' - | 'lock' - | 'unlock' - | 'lockedOf' - | 'totalLocked' - | 'rate' - | 'rateAt' - | 'token', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'increaseAmount', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'increaseTime', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'lock', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'unlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'lockedOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'totalLocked', values?: undefined): string; - encodeFunctionData(functionFragment: 'rate', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'rateAt', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'token', values?: undefined): string; - - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'increaseAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'increaseTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'unlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lockedOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalLocked', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rate', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rateAt', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'token', data: BytesLike): Result; - - events: { - 'Approval(address,address,uint256)': EventFragment; - 'Locked(address,uint256,uint256)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - 'Unlocked(address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Locked'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Unlocked'): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface LockedEventObject { - account: string; - amount: BigNumber; - unlockTime: BigNumber; -} -export type LockedEvent = TypedEvent<[string, BigNumber, BigNumber], LockedEventObject>; - -export type LockedEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface UnlockedEventObject { - account: string; - amount: BigNumber; -} -export type UnlockedEvent = TypedEvent<[string, BigNumber], UnlockedEventObject>; - -export type UnlockedEventFilter = TypedEventFilter; - -export interface BluebitVeToken extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: BluebitVeTokenInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAmount( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseTime( - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lock( - amount: PromiseOrValue, - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unlock(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - lockedOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; unlockTime: BigNumber }>; - - totalLocked(overrides?: CallOverrides): Promise<[BigNumber]>; - - rate(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - rateAt( - account: PromiseOrValue, - timestamp: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - token(overrides?: CallOverrides): Promise<[string]>; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAmount( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseTime( - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lock( - amount: PromiseOrValue, - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unlock(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - lockedOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; unlockTime: BigNumber }>; - - totalLocked(overrides?: CallOverrides): Promise; - - rate(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rateAt( - account: PromiseOrValue, - timestamp: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - token(overrides?: CallOverrides): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - increaseAmount(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseTime(unlockTime: PromiseOrValue, overrides?: CallOverrides): Promise; - - lock( - amount: PromiseOrValue, - unlockTime: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - unlock(overrides?: CallOverrides): Promise; - - lockedOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; unlockTime: BigNumber }>; - - totalLocked(overrides?: CallOverrides): Promise; - - rate(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rateAt( - account: PromiseOrValue, - timestamp: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - token(overrides?: CallOverrides): Promise; - }; - - filters: { - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - - 'Locked(address,uint256,uint256)'( - account?: PromiseOrValue | null, - amount?: null, - unlockTime?: null, - ): LockedEventFilter; - Locked(account?: PromiseOrValue | null, amount?: null, unlockTime?: null): LockedEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - - 'Unlocked(address,uint256)'(account?: PromiseOrValue | null, amount?: null): UnlockedEventFilter; - Unlocked(account?: PromiseOrValue | null, amount?: null): UnlockedEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAmount( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseTime( - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lock( - amount: PromiseOrValue, - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unlock(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - lockedOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalLocked(overrides?: CallOverrides): Promise; - - rate(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rateAt( - account: PromiseOrValue, - timestamp: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - token(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAmount( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseTime( - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lock( - amount: PromiseOrValue, - unlockTime: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - unlock(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - lockedOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - totalLocked(overrides?: CallOverrides): Promise; - - rate(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rateAt( - account: PromiseOrValue, - timestamp: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - token(overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/bluebit/contracts/ethers/Stats.ts b/src/apps/bluebit/contracts/ethers/Stats.ts deleted file mode 100644 index 39ac9e940..000000000 --- a/src/apps/bluebit/contracts/ethers/Stats.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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, PromiseOrValue } from './common'; - -export declare namespace IStats { - export type PoolStruct = { - vault: PromiseOrValue; - balance: PromiseOrValue; - deposits: PromiseOrValue; - price: PromiseOrValue; - allocPoint: PromiseOrValue; - }; - - export type PoolStructOutput = [string, BigNumber, BigNumber, BigNumber, BigNumber] & { - vault: string; - balance: BigNumber; - deposits: BigNumber; - price: BigNumber; - allocPoint: BigNumber; - }; - - export type VaultStruct = { - vault: PromiseOrValue; - token: PromiseOrValue; - apr: PromiseOrValue; - balance: PromiseOrValue; - totalDeposits: PromiseOrValue; - accountDeposits: PromiseOrValue; - totalRewards: PromiseOrValue; - accountRewards: PromiseOrValue; - depositTokenPrice: PromiseOrValue; - rewardTokenPrice: PromiseOrValue; - withdrawInterval: PromiseOrValue; - withdrawFee: PromiseOrValue; - accountWeights: PromiseOrValue; - totalWeights: PromiseOrValue; - lastDepositedTime: PromiseOrValue; - lastDepositedAmount: PromiseOrValue; - allocPoint: PromiseOrValue; - rewards: PromiseOrValue; - }; - - export type VaultStructOutput = [ - string, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - ] & { - vault: string; - token: string; - apr: BigNumber; - balance: BigNumber; - totalDeposits: BigNumber; - accountDeposits: BigNumber; - totalRewards: BigNumber; - accountRewards: BigNumber; - depositTokenPrice: BigNumber; - rewardTokenPrice: BigNumber; - withdrawInterval: BigNumber; - withdrawFee: BigNumber; - accountWeights: BigNumber; - totalWeights: BigNumber; - lastDepositedTime: BigNumber; - lastDepositedAmount: BigNumber; - allocPoint: BigNumber; - rewards: BigNumber; - }; - - export type StakeStruct = { - token: PromiseOrValue; - unlockTime: PromiseOrValue; - accountLocked: PromiseOrValue; - totalLocked: PromiseOrValue; - totalSupply: PromiseOrValue; - veBalance: PromiseOrValue; - veTotalSupply: PromiseOrValue; - tokenPrice: PromiseOrValue; - }; - - export type StakeStructOutput = [ - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - ] & { - token: string; - unlockTime: BigNumber; - accountLocked: BigNumber; - totalLocked: BigNumber; - totalSupply: BigNumber; - veBalance: BigNumber; - veTotalSupply: BigNumber; - tokenPrice: BigNumber; - }; - - export type RebateStruct = { - totalLocked: PromiseOrValue; - weekToken0Amount: PromiseOrValue; - weekToken1Amount: PromiseOrValue; - lastToken0Amount: PromiseOrValue; - lastToken1Amount: PromiseOrValue; - claimableToken0Amount: PromiseOrValue; - claimableToken1Amount: PromiseOrValue; - claimableRate: PromiseOrValue; - tokenPrice: PromiseOrValue; - token0Price: PromiseOrValue; - token1Price: PromiseOrValue; - token0Name: PromiseOrValue; - token1Name: PromiseOrValue; - }; - - export type RebateStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - string, - string, - ] & { - totalLocked: BigNumber; - weekToken0Amount: BigNumber; - weekToken1Amount: BigNumber; - lastToken0Amount: BigNumber; - lastToken1Amount: BigNumber; - claimableToken0Amount: BigNumber; - claimableToken1Amount: BigNumber; - claimableRate: BigNumber; - tokenPrice: BigNumber; - token0Price: BigNumber; - token1Price: BigNumber; - token0Name: string; - token1Name: string; - }; -} - -export interface StatsInterface extends utils.Interface { - functions: { - 'pools(address)': FunctionFragment; - 'vaults(address)': FunctionFragment; - 'summary(address)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'pendingRewards(address)': FunctionFragment; - 'getBoostFactor(uint256,uint256,uint256)': FunctionFragment; - 'stakeInfo(address)': FunctionFragment; - 'rebateInfo(address)': FunctionFragment; - 'performanceFees()': FunctionFragment; - 'getTotalBalance(address[])': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'pools' - | 'vaults' - | 'summary' - | 'balanceOf' - | 'pendingRewards' - | 'getBoostFactor' - | 'stakeInfo' - | 'rebateInfo' - | 'performanceFees' - | 'getTotalBalance', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'pools', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'vaults', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'summary', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'pendingRewards', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'getBoostFactor', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'stakeInfo', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'rebateInfo', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'performanceFees', values?: undefined): string; - encodeFunctionData(functionFragment: 'getTotalBalance', values: [PromiseOrValue[]]): string; - - decodeFunctionResult(functionFragment: 'pools', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'vaults', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'summary', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingRewards', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getBoostFactor', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stakeInfo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rebateInfo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'performanceFees', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getTotalBalance', data: BytesLike): Result; - - events: {}; -} - -export interface Stats extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: StatsInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - pools(account: PromiseOrValue, overrides?: CallOverrides): Promise<[IStats.PoolStructOutput[]]>; - - vaults(account: PromiseOrValue, overrides?: CallOverrides): Promise<[IStats.VaultStructOutput[]]>; - - summary( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { tvl: BigNumber; deposites: BigNumber }>; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { bbtBalance: BigNumber; veBalance: BigNumber }>; - - pendingRewards( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; price: BigNumber }>; - - getBoostFactor( - pid: PromiseOrValue, - bbt: PromiseOrValue, - ve: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { boost: BigNumber; toMaxBoost: BigNumber }>; - - stakeInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise<[IStats.StakeStructOutput]>; - - rebateInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise<[IStats.RebateStructOutput]>; - - performanceFees(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber] & { - controllerFee: BigNumber; - treasuryFee: BigNumber; - rebateFee: BigNumber; - } - >; - - getTotalBalance(arg0: PromiseOrValue[], overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - pools(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - vaults(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - summary( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { tvl: BigNumber; deposites: BigNumber }>; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { bbtBalance: BigNumber; veBalance: BigNumber }>; - - pendingRewards( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; price: BigNumber }>; - - getBoostFactor( - pid: PromiseOrValue, - bbt: PromiseOrValue, - ve: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { boost: BigNumber; toMaxBoost: BigNumber }>; - - stakeInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rebateInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - performanceFees(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber] & { - controllerFee: BigNumber; - treasuryFee: BigNumber; - rebateFee: BigNumber; - } - >; - - getTotalBalance(arg0: PromiseOrValue[], overrides?: CallOverrides): Promise; - - callStatic: { - pools(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - vaults(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - summary( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { tvl: BigNumber; deposites: BigNumber }>; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { bbtBalance: BigNumber; veBalance: BigNumber }>; - - pendingRewards( - account: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; price: BigNumber }>; - - getBoostFactor( - pid: PromiseOrValue, - bbt: PromiseOrValue, - ve: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { boost: BigNumber; toMaxBoost: BigNumber }>; - - stakeInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rebateInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - performanceFees(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, BigNumber] & { - controllerFee: BigNumber; - treasuryFee: BigNumber; - rebateFee: BigNumber; - } - >; - - getTotalBalance(arg0: PromiseOrValue[], overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - pools(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - vaults(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - summary(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - pendingRewards(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBoostFactor( - pid: PromiseOrValue, - bbt: PromiseOrValue, - ve: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stakeInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rebateInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - performanceFees(overrides?: CallOverrides): Promise; - - getTotalBalance(arg0: PromiseOrValue[], overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - pools(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - vaults(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - summary(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - pendingRewards(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - getBoostFactor( - pid: PromiseOrValue, - bbt: PromiseOrValue, - ve: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - stakeInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - rebateInfo(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - performanceFees(overrides?: CallOverrides): Promise; - - getTotalBalance(arg0: PromiseOrValue[], overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/bluebit/contracts/ethers/Vault.ts b/src/apps/bluebit/contracts/ethers/Vault.ts deleted file mode 100644 index 668c8fc8a..000000000 --- a/src/apps/bluebit/contracts/ethers/Vault.ts +++ /dev/null @@ -1,417 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface VaultInterface extends utils.Interface { - functions: { - 'deposit(uint256)': FunctionFragment; - 'harvest(address)': FunctionFragment; - 'init()': FunctionFragment; - 'pairType()': FunctionFragment; - 'swapPair()': FunctionFragment; - 'swapPath()': FunctionFragment; - 'swapRouter()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'withdraw(uint256)': FunctionFragment; - 'withdrawFee()': FunctionFragment; - 'withdrawInterval()': FunctionFragment; - 'stableSwap()': FunctionFragment; - 'tokens()': FunctionFragment; - 'getVirtualPrice()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'deposit' - | 'harvest' - | 'init' - | 'pairType' - | 'swapPair' - | 'swapPath' - | 'swapRouter' - | 'totalSupply' - | 'withdraw' - | 'withdrawFee' - | 'withdrawInterval' - | 'stableSwap' - | 'tokens' - | 'getVirtualPrice', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'deposit', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'harvest', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'init', values?: undefined): string; - encodeFunctionData(functionFragment: 'pairType', values?: undefined): string; - encodeFunctionData(functionFragment: 'swapPair', values?: undefined): string; - encodeFunctionData(functionFragment: 'swapPath', values?: undefined): string; - encodeFunctionData(functionFragment: 'swapRouter', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData(functionFragment: 'withdraw', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'withdrawFee', values?: undefined): string; - encodeFunctionData(functionFragment: 'withdrawInterval', values?: undefined): string; - encodeFunctionData(functionFragment: 'stableSwap', values?: undefined): string; - encodeFunctionData(functionFragment: 'tokens', values?: undefined): string; - encodeFunctionData(functionFragment: 'getVirtualPrice', values?: undefined): string; - - decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'harvest', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'init', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pairType', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swapPair', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swapPath', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swapRouter', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawFee', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawInterval', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stableSwap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'tokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getVirtualPrice', data: BytesLike): Result; - - events: { - 'FeeDistributorChanged(address,address)': EventFragment; - 'RewardTokenAdded(address)': EventFragment; - 'RewardTokenRemoved(address)': EventFragment; - 'RewarderChanged(address,address)': EventFragment; - 'SwapPathChanged(address,address)': EventFragment; - 'WithdrawFeeChanged(uint256,uint256)': EventFragment; - 'WithdrawIntervalChanged(uint256,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'FeeDistributorChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardTokenAdded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardTokenRemoved'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewarderChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'SwapPathChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'WithdrawFeeChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'WithdrawIntervalChanged'): EventFragment; -} - -export interface FeeDistributorChangedEventObject { - previousValue: string; - newValue: string; -} -export type FeeDistributorChangedEvent = TypedEvent<[string, string], FeeDistributorChangedEventObject>; - -export type FeeDistributorChangedEventFilter = TypedEventFilter; - -export interface RewardTokenAddedEventObject { - token: string; -} -export type RewardTokenAddedEvent = TypedEvent<[string], RewardTokenAddedEventObject>; - -export type RewardTokenAddedEventFilter = TypedEventFilter; - -export interface RewardTokenRemovedEventObject { - token: string; -} -export type RewardTokenRemovedEvent = TypedEvent<[string], RewardTokenRemovedEventObject>; - -export type RewardTokenRemovedEventFilter = TypedEventFilter; - -export interface RewarderChangedEventObject { - previousValue: string; - newValue: string; -} -export type RewarderChangedEvent = TypedEvent<[string, string], RewarderChangedEventObject>; - -export type RewarderChangedEventFilter = TypedEventFilter; - -export interface SwapPathChangedEventObject { - previousValue: string; - newValue: string; -} -export type SwapPathChangedEvent = TypedEvent<[string, string], SwapPathChangedEventObject>; - -export type SwapPathChangedEventFilter = TypedEventFilter; - -export interface WithdrawFeeChangedEventObject { - previousValue: BigNumber; - newValue: BigNumber; -} -export type WithdrawFeeChangedEvent = TypedEvent<[BigNumber, BigNumber], WithdrawFeeChangedEventObject>; - -export type WithdrawFeeChangedEventFilter = TypedEventFilter; - -export interface WithdrawIntervalChangedEventObject { - previousValue: BigNumber; - newValue: BigNumber; -} -export type WithdrawIntervalChangedEvent = TypedEvent<[BigNumber, BigNumber], WithdrawIntervalChangedEventObject>; - -export type WithdrawIntervalChangedEventFilter = TypedEventFilter; - -export interface Vault extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: VaultInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - deposit( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - feeDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - init(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - pairType(overrides?: CallOverrides): Promise<[BigNumber]>; - - swapPair(overrides?: CallOverrides): Promise<[string]>; - - swapPath(overrides?: CallOverrides): Promise<[string]>; - - swapRouter(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawFee(overrides?: CallOverrides): Promise<[BigNumber]>; - - withdrawInterval(overrides?: CallOverrides): Promise<[BigNumber]>; - - stableSwap(overrides?: CallOverrides): Promise<[string]>; - - tokens(overrides?: CallOverrides): Promise<[BigNumber]>; - - getVirtualPrice(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - deposit( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - feeDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - init(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - pairType(overrides?: CallOverrides): Promise; - - swapPair(overrides?: CallOverrides): Promise; - - swapPath(overrides?: CallOverrides): Promise; - - swapRouter(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawFee(overrides?: CallOverrides): Promise; - - withdrawInterval(overrides?: CallOverrides): Promise; - - stableSwap(overrides?: CallOverrides): Promise; - - tokens(overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - - callStatic: { - deposit(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - harvest(feeDistributor: PromiseOrValue, overrides?: CallOverrides): Promise; - - init(overrides?: CallOverrides): Promise; - - pairType(overrides?: CallOverrides): Promise; - - swapPair(overrides?: CallOverrides): Promise; - - swapPath(overrides?: CallOverrides): Promise; - - swapRouter(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - withdraw(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdrawFee(overrides?: CallOverrides): Promise; - - withdrawInterval(overrides?: CallOverrides): Promise; - - stableSwap(overrides?: CallOverrides): Promise; - - tokens(overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - }; - - filters: { - 'FeeDistributorChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FeeDistributorChangedEventFilter; - FeeDistributorChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): FeeDistributorChangedEventFilter; - - 'RewardTokenAdded(address)'(token?: PromiseOrValue | null): RewardTokenAddedEventFilter; - RewardTokenAdded(token?: PromiseOrValue | null): RewardTokenAddedEventFilter; - - 'RewardTokenRemoved(address)'(token?: PromiseOrValue | null): RewardTokenRemovedEventFilter; - RewardTokenRemoved(token?: PromiseOrValue | null): RewardTokenRemovedEventFilter; - - 'RewarderChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): RewarderChangedEventFilter; - RewarderChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): RewarderChangedEventFilter; - - 'SwapPathChanged(address,address)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): SwapPathChangedEventFilter; - SwapPathChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): SwapPathChangedEventFilter; - - 'WithdrawFeeChanged(uint256,uint256)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): WithdrawFeeChangedEventFilter; - WithdrawFeeChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): WithdrawFeeChangedEventFilter; - - 'WithdrawIntervalChanged(uint256,uint256)'( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): WithdrawIntervalChangedEventFilter; - WithdrawIntervalChanged( - previousValue?: PromiseOrValue | null, - newValue?: PromiseOrValue | null, - ): WithdrawIntervalChangedEventFilter; - }; - - estimateGas: { - deposit( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - feeDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - init(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - pairType(overrides?: CallOverrides): Promise; - - swapPair(overrides?: CallOverrides): Promise; - - swapPath(overrides?: CallOverrides): Promise; - - swapRouter(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawFee(overrides?: CallOverrides): Promise; - - withdrawInterval(overrides?: CallOverrides): Promise; - - stableSwap(overrides?: CallOverrides): Promise; - - tokens(overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - deposit( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - feeDistributor: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - init(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - pairType(overrides?: CallOverrides): Promise; - - swapPair(overrides?: CallOverrides): Promise; - - swapPath(overrides?: CallOverrides): Promise; - - swapRouter(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawFee(overrides?: CallOverrides): Promise; - - withdrawInterval(overrides?: CallOverrides): Promise; - - stableSwap(overrides?: CallOverrides): Promise; - - tokens(overrides?: CallOverrides): Promise; - - getVirtualPrice(overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/bluebit/contracts/ethers/common.ts b/src/apps/bluebit/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/bluebit/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/bluebit/contracts/ethers/factories/BluebitChef__factory.ts b/src/apps/bluebit/contracts/ethers/factories/BluebitChef__factory.ts deleted file mode 100644 index e62d5105f..000000000 --- a/src/apps/bluebit/contracts/ethers/factories/BluebitChef__factory.ts +++ /dev/null @@ -1,840 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BluebitChef, BluebitChefInterface } from '../BluebitChef'; - -const _abi = [ - { - inputs: [ - { - internalType: 'contract IveToken', - name: '_veToken', - type: 'address', - }, - { - internalType: 'contract IBluebitToken', - name: '_bluebitToken', - type: 'address', - }, - { - internalType: 'uint256', - name: '_rewardPerBlock', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'BluebitTokenChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalShares', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - ], - name: 'Compound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Deposited', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'previousValue', - type: 'uint256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'newValue', - type: 'uint256', - }, - ], - name: 'FactorWeightChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'FeeDistributorChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Harvest', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Harvests', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'ManagerChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'OwnerChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bool', - name: 'previousValue', - type: 'bool', - }, - { - indexed: true, - internalType: 'bool', - name: 'newValue', - type: 'bool', - }, - ], - name: 'PauseChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'vault', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - ], - name: 'PoolChange', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'previousValue', - type: 'uint256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'newValue', - type: 'uint256', - }, - ], - name: 'RewardPerBlockChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Withdrawn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'veTokenChanged', - type: 'event', - }, - { - inputs: [], - name: 'bluebitToken', - outputs: [ - { - internalType: 'contract IBluebitToken', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'factorWeight', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeDistributor', - outputs: [ - { - internalType: 'contract IFeeDistributor', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'locked', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'manager', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'paused', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'pools', - outputs: [ - { - internalType: 'contract IVault', - name: 'vault', - type: 'address', - }, - { - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'weights', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardPerWeight', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastRewardBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'interestRatePerBlock', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastCompoundBlock', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardPerBlock', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_manager', - type: 'address', - }, - ], - name: 'setManager', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_owner', - type: 'address', - }, - ], - name: 'setOwner', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bool', - name: '_paused', - type: 'bool', - }, - ], - name: 'setPaused', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalAllocPoint', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'users', - outputs: [ - { - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'weights', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardDebt', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastDepositedTime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastDepositedAmount', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'veToken', - outputs: [ - { - internalType: 'contract IveToken', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IveToken', - name: '_address', - type: 'address', - }, - ], - name: 'setveToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IBluebitToken', - name: '_address', - type: 'address', - }, - ], - name: 'setBluebitToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IVault', - name: 'vault', - type: 'address', - }, - { - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - ], - name: 'setPool', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'contract IVault', - name: 'vault', - type: 'address', - }, - ], - name: 'migratePool', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'weight', - type: 'uint256', - }, - ], - name: 'setFactorWeight', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'setRewardPerBlock', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IFeeDistributor', - name: '_address', - type: 'address', - }, - ], - name: 'setFeeDistributor', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'poolLength', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'bluebitTokenTotalSupply', - type: 'uint256', - }, - ], - name: 'poolRewards', - outputs: [ - { - internalType: 'uint256', - name: 'rewards', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'pendingRewards', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - ], - name: 'harvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'harvests', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - ], - name: 'compound', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class BluebitChef__factory { - static readonly abi = _abi; - static createInterface(): BluebitChefInterface { - return new utils.Interface(_abi) as BluebitChefInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BluebitChef { - return new Contract(address, _abi, signerOrProvider) as BluebitChef; - } -} diff --git a/src/apps/bluebit/contracts/ethers/factories/BluebitVeToken__factory.ts b/src/apps/bluebit/contracts/ethers/factories/BluebitVeToken__factory.ts deleted file mode 100644 index fc5e2d31c..000000000 --- a/src/apps/bluebit/contracts/ethers/factories/BluebitVeToken__factory.ts +++ /dev/null @@ -1,429 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { BluebitVeToken, BluebitVeTokenInterface } from '../BluebitVeToken'; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'unlockTime', - type: 'uint256', - }, - ], - name: 'Locked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Unlocked', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'increaseAmount', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'unlockTime', - type: 'uint256', - }, - ], - name: 'increaseTime', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'unlockTime', - type: 'uint256', - }, - ], - name: 'lock', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'unlock', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'lockedOf', - outputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'unlockTime', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalLocked', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'rate', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'timestamp', - type: 'uint256', - }, - ], - name: 'rateAt', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'token', - outputs: [ - { - type: 'address', - name: '', - }, - ], - inputs: [], - stateMutability: 'view', - type: 'function', - }, -]; - -export class BluebitVeToken__factory { - static readonly abi = _abi; - static createInterface(): BluebitVeTokenInterface { - return new utils.Interface(_abi) as BluebitVeTokenInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): BluebitVeToken { - return new Contract(address, _abi, signerOrProvider) as BluebitVeToken; - } -} diff --git a/src/apps/bluebit/contracts/ethers/factories/Stats__factory.ts b/src/apps/bluebit/contracts/ethers/factories/Stats__factory.ts deleted file mode 100644 index 20cdb8400..000000000 --- a/src/apps/bluebit/contracts/ethers/factories/Stats__factory.ts +++ /dev/null @@ -1,472 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { Stats, StatsInterface } from '../Stats'; - -const _abi = [ - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'pools', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'vault', - type: 'address', - }, - { - internalType: 'uint256', - name: 'balance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deposits', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'price', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - ], - internalType: 'struct IStats.Pool[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'vaults', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'vault', - type: 'address', - }, - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'apr', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'balance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalDeposits', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'accountDeposits', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalRewards', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'accountRewards', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'depositTokenPrice', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardTokenPrice', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'withdrawInterval', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'withdrawFee', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'accountWeights', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalWeights', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastDepositedTime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastDepositedAmount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewards', - type: 'uint256', - }, - ], - internalType: 'struct IStats.Vault[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'summary', - outputs: [ - { - internalType: 'uint256', - name: 'tvl', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deposites', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: 'bbtBalance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'veBalance', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'pendingRewards', - outputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'price', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'bbt', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 've', - type: 'uint256', - }, - ], - name: 'getBoostFactor', - outputs: [ - { - internalType: 'uint256', - name: 'boost', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'toMaxBoost', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'stakeInfo', - outputs: [ - { - components: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'unlockTime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'accountLocked', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalLocked', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'veBalance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'veTotalSupply', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenPrice', - type: 'uint256', - }, - ], - internalType: 'struct IStats.Stake', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'rebateInfo', - outputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'totalLocked', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'weekToken0Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'weekToken1Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastToken0Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastToken1Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'claimableToken0Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'claimableToken1Amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'claimableRate', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenPrice', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'token0Price', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'token1Price', - type: 'uint256', - }, - { - internalType: 'string', - name: 'token0Name', - type: 'string', - }, - { - internalType: 'string', - name: 'token1Name', - type: 'string', - }, - ], - internalType: 'struct IStats.Rebate', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'performanceFees', - outputs: [ - { - internalType: 'uint256', - name: 'controllerFee', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'treasuryFee', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rebateFee', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '', - type: 'address[]', - }, - ], - name: 'getTotalBalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export class Stats__factory { - static readonly abi = _abi; - static createInterface(): StatsInterface { - return new utils.Interface(_abi) as StatsInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Stats { - return new Contract(address, _abi, signerOrProvider) as Stats; - } -} diff --git a/src/apps/bluebit/contracts/ethers/factories/Vault__factory.ts b/src/apps/bluebit/contracts/ethers/factories/Vault__factory.ts deleted file mode 100644 index 55cb1f42a..000000000 --- a/src/apps/bluebit/contracts/ethers/factories/Vault__factory.ts +++ /dev/null @@ -1,317 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { Vault, VaultInterface } from '../Vault'; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'FeeDistributorChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - ], - name: 'RewardTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'token', - type: 'address', - }, - ], - name: 'RewardTokenRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'RewarderChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousValue', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newValue', - type: 'address', - }, - ], - name: 'SwapPathChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'previousValue', - type: 'uint256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'newValue', - type: 'uint256', - }, - ], - name: 'WithdrawFeeChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'previousValue', - type: 'uint256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'newValue', - type: 'uint256', - }, - ], - name: 'WithdrawIntervalChanged', - type: 'event', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IFeeDistributor', - name: 'feeDistributor', - type: 'address', - }, - ], - name: 'harvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'init', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'pairType', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'swapPair', - outputs: [ - { - internalType: 'contract ISwapPair', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'swapPath', - outputs: [ - { - internalType: 'contract ISwapPath', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'swapRouter', - outputs: [ - { - internalType: 'contract ISwapRouter', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawFee', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'withdrawInterval', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stableSwap', - outputs: [ - { - internalType: 'contract IStableSwap', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'tokens', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getVirtualPrice', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export class Vault__factory { - static readonly abi = _abi; - static createInterface(): VaultInterface { - return new utils.Interface(_abi) as VaultInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Vault { - return new Contract(address, _abi, signerOrProvider) as Vault; - } -} diff --git a/src/apps/bluebit/contracts/ethers/factories/index.ts b/src/apps/bluebit/contracts/ethers/factories/index.ts deleted file mode 100644 index 2ed96b151..000000000 --- a/src/apps/bluebit/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { BluebitChef__factory } from './BluebitChef__factory'; -export { BluebitVeToken__factory } from './BluebitVeToken__factory'; -export { Stats__factory } from './Stats__factory'; -export { Vault__factory } from './Vault__factory'; diff --git a/src/apps/bluebit/contracts/ethers/index.ts b/src/apps/bluebit/contracts/ethers/index.ts deleted file mode 100644 index 3b93b7b8b..000000000 --- a/src/apps/bluebit/contracts/ethers/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { BluebitChef } from './BluebitChef'; -export type { BluebitVeToken } from './BluebitVeToken'; -export type { Stats } from './Stats'; -export type { Vault } from './Vault'; -export * as factories from './factories'; -export { BluebitChef__factory } from './factories/BluebitChef__factory'; -export { BluebitVeToken__factory } from './factories/BluebitVeToken__factory'; -export { Stats__factory } from './factories/Stats__factory'; -export { Vault__factory } from './factories/Vault__factory'; diff --git a/src/apps/bluebit/contracts/index.ts b/src/apps/bluebit/contracts/index.ts deleted file mode 100644 index b750fd1cc..000000000 --- a/src/apps/bluebit/contracts/index.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { BluebitChef__factory, BluebitVeToken__factory, Stats__factory, Vault__factory } from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class BluebitContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - bluebitChef({ address, network }: ContractOpts) { - return BluebitChef__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - bluebitVeToken({ address, network }: ContractOpts) { - return BluebitVeToken__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - stats({ address, network }: ContractOpts) { - return Stats__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - vault({ address, network }: ContractOpts) { - return Vault__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { BluebitChef } from './ethers'; -export type { BluebitVeToken } from './ethers'; -export type { Stats } from './ethers'; -export type { Vault } from './ethers'; diff --git a/src/apps/cask-protocol/aurora/cask-protocol.wallet.token-fetcher.ts b/src/apps/cask-protocol/aurora/cask-protocol.wallet.token-fetcher.ts deleted file mode 100644 index 49a1258f5..000000000 --- a/src/apps/cask-protocol/aurora/cask-protocol.wallet.token-fetcher.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; - -import { CaskProtocolWalletTokenFetcher } from '../common/cask-protocol.wallet.token-fetcher'; - -@PositionTemplate() -export class AuroraCaskProtocolWalletTokenFetcher extends CaskProtocolWalletTokenFetcher { - groupLabel = 'Vaults'; - caskVaultContractAddress = '0x3b2b4b547daeebf3a703288cb43650f0f287b9ff'; -} diff --git a/src/apps/cask-protocol/cask-protocol.module.ts b/src/apps/cask-protocol/cask-protocol.module.ts index db3e6cbb9..5244f27b3 100644 --- a/src/apps/cask-protocol/cask-protocol.module.ts +++ b/src/apps/cask-protocol/cask-protocol.module.ts @@ -3,7 +3,6 @@ import { Module } from '@nestjs/common'; import { AbstractApp } from '~app/app.dynamic-module'; import { ArbitrumCaskProtocolWalletTokenFetcher } from './arbitrum/cask-protocol.wallet.token-fetcher'; -import { AuroraCaskProtocolWalletTokenFetcher } from './aurora/cask-protocol.wallet.token-fetcher'; import { AvalancheCaskProtocolWalletTokenFetcher } from './avalanche/cask-protocol.wallet.token-fetcher'; import { BinanceSmartChainCaskProtocolWalletTokenFetcher } from './binance-smart-chain/cask-protocol.wallet.token-fetcher'; import { CeloCaskProtocolWalletTokenFetcher } from './celo/cask-protocol.wallet.token-fetcher'; @@ -17,7 +16,6 @@ import { PolygonCaskProtocolWalletTokenFetcher } from './polygon/cask-protocol.w providers: [ CaskProtocolContractFactory, ArbitrumCaskProtocolWalletTokenFetcher, - AuroraCaskProtocolWalletTokenFetcher, AvalancheCaskProtocolWalletTokenFetcher, BinanceSmartChainCaskProtocolWalletTokenFetcher, CeloCaskProtocolWalletTokenFetcher, diff --git a/src/apps/koyo/aurora/koyo.pool.token-fetcher.ts b/src/apps/koyo/aurora/koyo.pool.token-fetcher.ts deleted file mode 100644 index 64a0ce7d8..000000000 --- a/src/apps/koyo/aurora/koyo.pool.token-fetcher.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { BalancerV2PoolTokenFetcher } from '~apps/balancer-v2/common/balancer-v2.pool.token-fetcher'; - -@PositionTemplate() -export class AuroraKoyoPoolTokenFetcher extends BalancerV2PoolTokenFetcher { - groupLabel = 'Pools'; - subgraphUrl = 'https://api.thegraph.com/subgraphs/name/koyo-finance/exchange-subgraph-aurora?source=zapper'; - vaultAddress = '0x0613adbd846cb73e65aa474b785f52697af04c0b'; - minLiquidity = 0; -} diff --git a/src/apps/koyo/koyo.module.ts b/src/apps/koyo/koyo.module.ts index acce5edd4..fa4beeba3 100644 --- a/src/apps/koyo/koyo.module.ts +++ b/src/apps/koyo/koyo.module.ts @@ -3,16 +3,9 @@ import { Module } from '@nestjs/common'; import { AbstractApp } from '~app/app.dynamic-module'; import { BalancerV2ContractFactory } from '~apps/balancer-v2/contracts'; -import { AuroraKoyoPoolTokenFetcher } from './aurora/koyo.pool.token-fetcher'; -import { MoonriverKoyoPoolTokenFetcher } from './moonriver/koyo.pool.token-fetcher'; import { PolygonKoyoPoolTokenFetcher } from './polygon/koyo.pool.token-fetcher'; @Module({ - providers: [ - BalancerV2ContractFactory, - AuroraKoyoPoolTokenFetcher, - MoonriverKoyoPoolTokenFetcher, - PolygonKoyoPoolTokenFetcher, - ], + providers: [BalancerV2ContractFactory, PolygonKoyoPoolTokenFetcher], }) export class KoyoAppModule extends AbstractApp() {} diff --git a/src/apps/koyo/moonriver/koyo.pool.token-fetcher.ts b/src/apps/koyo/moonriver/koyo.pool.token-fetcher.ts deleted file mode 100644 index 258b6221d..000000000 --- a/src/apps/koyo/moonriver/koyo.pool.token-fetcher.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { BalancerV2PoolTokenFetcher } from '~apps/balancer-v2/common/balancer-v2.pool.token-fetcher'; - -@PositionTemplate() -export class MoonriverKoyoPoolTokenFetcher extends BalancerV2PoolTokenFetcher { - groupLabel = 'Pools'; - subgraphUrl = 'https://api.thegraph.com/subgraphs/name/koyo-finance/exchange-subgraph-moonriver?source=zapper'; - vaultAddress = '0xea1e627c12df4e054d61fd408ff7186353ac6ca1'; - minLiquidity = 0; -} diff --git a/src/apps/lido/lido.module.ts b/src/apps/lido/lido.module.ts index 910d45a33..f6a49d77a 100644 --- a/src/apps/lido/lido.module.ts +++ b/src/apps/lido/lido.module.ts @@ -5,14 +5,8 @@ import { AbstractApp } from '~app/app.dynamic-module'; import { LidoContractFactory } from './contracts'; import { EthereumLidoStethTokenFetcher } from './ethereum/lido.steth.token-fetcher'; import { EthereumLidoWstethTokenFetcher } from './ethereum/lido.wsteth.token-fetcher'; -import { MoonriverLidoStksmTokenFetcher } from './moonriver/lido.stksm.token-fetcher'; @Module({ - providers: [ - LidoContractFactory, - EthereumLidoStethTokenFetcher, - EthereumLidoWstethTokenFetcher, - MoonriverLidoStksmTokenFetcher, - ], + providers: [LidoContractFactory, EthereumLidoStethTokenFetcher, EthereumLidoWstethTokenFetcher], }) export class LidoAppModule extends AbstractApp() {} diff --git a/src/apps/lido/moonriver/lido.stksm.token-fetcher.ts b/src/apps/lido/moonriver/lido.stksm.token-fetcher.ts deleted file mode 100644 index e44e6c0cc..000000000 --- a/src/apps/lido/moonriver/lido.stksm.token-fetcher.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Inject } from '@nestjs/common'; -import { BigNumber } from 'bignumber.js'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { GetPricePerShareParams } from '~position/template/app-token.template.types'; - -import { LidoContractFactory } from '../contracts'; -import { LidoStksm } from '../contracts/ethers/LidoStksm'; - -@PositionTemplate() -export class MoonriverLidoStksmTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'stKSM'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(LidoContractFactory) protected readonly contractFactory: LidoContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): LidoStksm { - return this.contractFactory.lidoStksm({ network: this.network, address }); - } - - async getAddresses() { - return ['0xffc7780c34b450d917d557e728f033033cb4fa8c']; - } - - async getUnderlyingTokenDefinitions() { - return [{ address: '0x0000000000000000000000000000000000000000', network: this.network }]; - } - - async getPricePerShare({ contract }: GetPricePerShareParams) { - const pricePerShareRaw = await contract.getPooledKSMByShares(new BigNumber(10).pow(18).toFixed(0)); - return [Number(pricePerShareRaw) / 10 ** 18]; - } -} diff --git a/src/apps/pickle/aurora/pickle.jar.token-fetcher.ts b/src/apps/pickle/aurora/pickle.jar.token-fetcher.ts deleted file mode 100644 index 1d884ade7..000000000 --- a/src/apps/pickle/aurora/pickle.jar.token-fetcher.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; - -import { PickleJarTokenFetcher } from '../common/pickle.jar.token-fetcher'; - -@PositionTemplate() -export class AuroraPickleJarTokenFetcher extends PickleJarTokenFetcher { - groupLabel = 'Jars'; -} diff --git a/src/apps/pickle/common/pickle.api.jar-registry.ts b/src/apps/pickle/common/pickle.api.jar-registry.ts index a380a5104..4d5f4a100 100644 --- a/src/apps/pickle/common/pickle.api.jar-registry.ts +++ b/src/apps/pickle/common/pickle.api.jar-registry.ts @@ -21,11 +21,9 @@ const NETWORK_MAPPING = { [Network.ETHEREUM_MAINNET]: 'eth', [Network.POLYGON_MAINNET]: 'polygon', [Network.ARBITRUM_MAINNET]: 'arbitrum', - [Network.MOONRIVER_MAINNET]: 'moonriver', [Network.OPTIMISM_MAINNET]: 'optimism', [Network.FANTOM_OPERA_MAINNET]: 'fantom', [Network.GNOSIS_MAINNET]: 'gnosis', - [Network.AURORA_MAINNET]: 'aurora', }; @Injectable() diff --git a/src/apps/pickle/moonriver/pickle.jar.token-fetcher.ts b/src/apps/pickle/moonriver/pickle.jar.token-fetcher.ts deleted file mode 100644 index 861803ad0..000000000 --- a/src/apps/pickle/moonriver/pickle.jar.token-fetcher.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; - -import { PickleJarTokenFetcher } from '../common/pickle.jar.token-fetcher'; - -@PositionTemplate() -export class MoonriverPickleJarTokenFetcher extends PickleJarTokenFetcher { - groupLabel = 'Jars'; -} diff --git a/src/apps/pickle/pickle.module.ts b/src/apps/pickle/pickle.module.ts index 7e04ad380..726ef1f37 100644 --- a/src/apps/pickle/pickle.module.ts +++ b/src/apps/pickle/pickle.module.ts @@ -6,7 +6,6 @@ import { UniswapV3ContractFactory } from '~apps/uniswap-v3/contracts'; import { ArbitrumPickleJarTokenFetcher } from './arbitrum/pickle.jar.token-fetcher'; import { ArbitrumPickleFarmContractPositionFetcher } from './arbitrum/pickle.masterchef-v2-farm.contract-position-fetcher'; -import { AuroraPickleJarTokenFetcher } from './aurora/pickle.jar.token-fetcher'; import { PickleApiJarRegistry } from './common/pickle.api.jar-registry'; import { PickleContractFactory } from './contracts'; import { EthereumUniV3PickleJarTokenFetcher } from './ethereum/pickle.jar-univ3.token-fetcher'; @@ -16,7 +15,6 @@ import { EthereumPickleSingleRewardPositionFetcher } from './ethereum/pickle.sin import { EthereumPickleVotingEscrowContractPositionFetcher } from './ethereum/pickle.voting-escrow.contract-position-fetcher'; import { FantomPickleJarTokenFetcher } from './fantom/pickle.jar.token-fetcher'; import { GnosisPickleJarTokenFetcher } from './gnosis/pickle.jar.token-fetcher'; -import { MoonriverPickleJarTokenFetcher } from './moonriver/pickle.jar.token-fetcher'; import { OptimismUniV3PickleJarTokenFetcher } from './optimism/pickle.jar-univ3.token-fetcher'; import { OptimismPickleJarTokenFetcher } from './optimism/pickle.jar.token-fetcher'; import { OptimismPickleFarmContractPositionFetcher } from './optimism/pickle.masterchef-v2-farm.contract-position-fetcher'; @@ -28,7 +26,6 @@ import { PolygonPickleFarmContractPositionFetcher } from './polygon/pickle.maste providers: [ ArbitrumPickleFarmContractPositionFetcher, ArbitrumPickleJarTokenFetcher, - AuroraPickleJarTokenFetcher, EthereumPickleFarmContractPositionFetcher, EthereumPickleJarTokenFetcher, EthereumPickleSingleRewardPositionFetcher, @@ -36,7 +33,6 @@ import { PolygonPickleFarmContractPositionFetcher } from './polygon/pickle.maste EthereumUniV3PickleJarTokenFetcher, FantomPickleJarTokenFetcher, GnosisPickleJarTokenFetcher, - MoonriverPickleJarTokenFetcher, OptimismPickleFarmContractPositionFetcher, OptimismPickleJarTokenFetcher, OptimismUniV3PickleJarTokenFetcher, diff --git a/src/apps/trisolaris/assets/logo.png b/src/apps/trisolaris/assets/logo.png deleted file mode 100644 index c0be27007..000000000 Binary files a/src/apps/trisolaris/assets/logo.png and /dev/null differ diff --git a/src/apps/trisolaris/aurora/trisolaris.farm.contract-position-fetcher.ts b/src/apps/trisolaris/aurora/trisolaris.farm.contract-position-fetcher.ts deleted file mode 100644 index 31949aa8c..000000000 --- a/src/apps/trisolaris/aurora/trisolaris.farm.contract-position-fetcher.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { ZERO_ADDRESS } from '~app-toolkit/constants/address'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { - GetMasterChefV2ExtraRewardTokenBalancesParams, - GetMasterChefV2ExtraRewardTokenRewardRates, - MasterChefV2TemplateContractPositionFetcher, -} from '~position/template/master-chef-v2.template.contract-position-fetcher'; -import { - GetMasterChefDataPropsParams, - GetMasterChefTokenBalancesParams, - RewardRateUnit, -} from '~position/template/master-chef.template.contract-position-fetcher'; - -import { TrisolarisMasterChef, TrisolarisRewarder, TrisolarisContractFactory } from '../contracts'; - -@PositionTemplate() -export class AuroraTrisolarisFarmContractPositionFetcher extends MasterChefV2TemplateContractPositionFetcher< - TrisolarisMasterChef, - TrisolarisRewarder -> { - groupLabel = 'Farms'; - chefAddress = '0x3838956710bcc9d122dd23863a0549ca8d5675d6'; - rewardRateUnit = RewardRateUnit.BLOCK; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(TrisolarisContractFactory) protected readonly contractFactory: TrisolarisContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): TrisolarisMasterChef { - return this.contractFactory.trisolarisMasterChef({ address, network: this.network }); - } - - getExtraRewarderContract(address: string): TrisolarisRewarder { - return this.contractFactory.trisolarisRewarder({ address, network: this.network }); - } - - async getPoolLength(contract: TrisolarisMasterChef) { - return contract.poolLength(); - } - - async getStakedTokenAddress(contract: TrisolarisMasterChef, poolIndex: number) { - return contract.lpToken(poolIndex); - } - - async getRewardTokenAddress(contract: TrisolarisMasterChef) { - return contract.TRI(); - } - - async getExtraRewarder(contract: TrisolarisMasterChef, poolIndex: number) { - return contract.rewarder(poolIndex); - } - - async getExtraRewardTokenAddresses(contract: TrisolarisRewarder, poolIndex: number) { - return contract.pendingTokens(poolIndex, ZERO_ADDRESS, 0).then(v => [v.rewardTokens[0]]); - } - - async getTotalAllocPoints({ contract }: GetMasterChefDataPropsParams) { - return contract.totalAllocPoint(); - } - - async getTotalRewardRate({ contract }: GetMasterChefDataPropsParams) { - return contract.triPerBlock(); - } - - async getPoolAllocPoints({ contract, definition }: GetMasterChefDataPropsParams) { - return contract.poolInfo(definition.poolIndex).then(v => v.allocPoint); - } - - async getExtraRewardTokenRewardRates({ - rewarderContract, - }: GetMasterChefV2ExtraRewardTokenRewardRates) { - return rewarderContract.tokenPerBlock(); - } - - async getStakedTokenBalance({ - address, - contract, - contractPosition, - }: GetMasterChefTokenBalancesParams) { - return contract.userInfo(contractPosition.dataProps.poolIndex, address).then(v => v.amount); - } - - async getRewardTokenBalance({ - address, - contract, - contractPosition, - }: GetMasterChefTokenBalancesParams) { - return contract.pendingTri(contractPosition.dataProps.poolIndex, address); - } - - async getExtraRewardTokenBalances({ - address, - rewarderContract, - contractPosition, - }: GetMasterChefV2ExtraRewardTokenBalancesParams) { - return rewarderContract - .pendingTokens(contractPosition.dataProps.poolIndex, address, 0) - .then(v => v.rewardAmounts[0]); - } -} diff --git a/src/apps/trisolaris/aurora/trisolaris.pool.token-fetcher.ts b/src/apps/trisolaris/aurora/trisolaris.pool.token-fetcher.ts deleted file mode 100644 index d7b5025f9..000000000 --- a/src/apps/trisolaris/aurora/trisolaris.pool.token-fetcher.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { UniswapV2DefaultPoolOnChainTemplateTokenFetcher } from '~apps/uniswap-v2/common/uniswap-v2.default.pool.on-chain.template.token-fetcher'; - -@PositionTemplate() -export class AuroraTrisolarisPoolTokenFetcher extends UniswapV2DefaultPoolOnChainTemplateTokenFetcher { - factoryAddress = '0xc66f594268041db60507f00703b152492fb176e7'; - groupLabel = 'Pools'; -} diff --git a/src/apps/trisolaris/contracts/abis/trisolaris-factory.json b/src/apps/trisolaris/contracts/abis/trisolaris-factory.json deleted file mode 100644 index 792261a11..000000000 --- a/src/apps/trisolaris/contracts/abis/trisolaris-factory.json +++ /dev/null @@ -1,97 +0,0 @@ -[ - { - "inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "token0", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "token1", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "pair", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "PairCreated", - "type": "event" - }, - { - "constant": true, - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "allPairs", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "allPairsLength", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" } - ], - "name": "createPair", - "outputs": [{ "internalType": "address", "name": "pair", "type": "address" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "feeTo", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "feeToSetter", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "getPair", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "address", "name": "_feeTo", "type": "address" }], - "name": "setFeeTo", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }], - "name": "setFeeToSetter", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/trisolaris/contracts/abis/trisolaris-master-chef.json b/src/apps/trisolaris/contracts/abis/trisolaris-master-chef.json deleted file mode 100644 index 2c22872c0..000000000 --- a/src/apps/trisolaris/contracts/abis/trisolaris-master-chef.json +++ /dev/null @@ -1,311 +0,0 @@ -[ - { - "inputs": [ - { "internalType": "contract IMasterChef", "name": "_MASTER_CHEF", "type": "address" }, - { "internalType": "contract IERC20", "name": "_tri", "type": "address" }, - { "internalType": "uint256", "name": "_MASTER_PID", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" } - ], - "name": "EmergencyWithdraw", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "Harvest", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "LogInit", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" }, - { "indexed": true, "internalType": "contract IERC20", "name": "lpToken", "type": "address" }, - { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" } - ], - "name": "LogPoolAddition", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" }, - { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" }, - { "indexed": false, "internalType": "bool", "name": "overwrite", "type": "bool" } - ], - "name": "LogSetPool", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint64", "name": "lastRewardBlock", "type": "uint64" }, - { "indexed": false, "internalType": "uint256", "name": "lpSupply", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "accTriPerShare", "type": "uint256" } - ], - "name": "LogUpdatePool", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, - { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [], - "name": "MASTER_CHEF", - "outputs": [{ "internalType": "contract IMasterChef", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MASTER_PID", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "TRI", - "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "allocPoint", "type": "uint256" }, - { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" }, - { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" } - ], - "name": "add", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "emergencyWithdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [], "name": "harvestFromMasterChef", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [{ "internalType": "contract IERC20", "name": "dummyToken", "type": "address" }], - "name": "init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "lpToken", - "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256[]", "name": "pids", "type": "uint256[]" }], - "name": "massUpdatePools", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_pid", "type": "uint256" }, - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "pendingTri", - "outputs": [{ "internalType": "uint256", "name": "pending", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "poolInfo", - "outputs": [ - { "internalType": "uint128", "name": "accTriPerShare", "type": "uint128" }, - { "internalType": "uint64", "name": "lastRewardBlock", "type": "uint64" }, - { "internalType": "uint64", "name": "allocPoint", "type": "uint64" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "poolLength", - "outputs": [{ "internalType": "uint256", "name": "pools", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewarder", - "outputs": [{ "internalType": "contract IRewarder", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_pid", "type": "uint256" }, - { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" }, - { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" }, - { "internalType": "bool", "name": "overwrite", "type": "bool" } - ], - "name": "set", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalAllocPoint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "triPerBlock", - "outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "pid", "type": "uint256" }], - "name": "updatePool", - "outputs": [ - { - "components": [ - { "internalType": "uint128", "name": "accTriPerShare", "type": "uint128" }, - { "internalType": "uint64", "name": "lastRewardBlock", "type": "uint64" }, - { "internalType": "uint64", "name": "allocPoint", "type": "uint64" } - ], - "internalType": "struct MasterChefV2.PoolInfo", - "name": "pool", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "userInfo", - "outputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "int256", "name": "rewardDebt", "type": "int256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "pid", "type": "uint256" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "withdrawAndHarvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/trisolaris/contracts/abis/trisolaris-pair.json b/src/apps/trisolaris/contracts/abis/trisolaris-pair.json deleted file mode 100644 index 809791bab..000000000 --- a/src/apps/trisolaris/contracts/abis/trisolaris-pair.json +++ /dev/null @@ -1,345 +0,0 @@ -[ - { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount1", "type": "uint256" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount0In", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount1In", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount0Out", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "amount1Out", "type": "uint256" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" } - ], - "name": "Swap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "uint112", "name": "reserve0", "type": "uint112" }, - { "indexed": false, "internalType": "uint112", "name": "reserve1", "type": "uint112" } - ], - "name": "Sync", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_LIQUIDITY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getReserves", - "outputs": [ - { "internalType": "uint112", "name": "_reserve0", "type": "uint112" }, - { "internalType": "uint112", "name": "_reserve1", "type": "uint112" }, - { "internalType": "uint32", "name": "_blockTimestampLast", "type": "uint32" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_token0", "type": "address" }, - { "internalType": "address", "name": "_token1", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "kLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "liquidity", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price0CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price1CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], - "name": "skim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount0Out", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1Out", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "sync", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/trisolaris/contracts/abis/trisolaris-rewarder.json b/src/apps/trisolaris/contracts/abis/trisolaris-rewarder.json deleted file mode 100644 index 588b097c6..000000000 --- a/src/apps/trisolaris/contracts/abis/trisolaris-rewarder.json +++ /dev/null @@ -1,173 +0,0 @@ -[ - { - "inputs": [ - { "internalType": "contract IERC20", "name": "_rewardToken", "type": "address" }, - { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" }, - { "internalType": "uint256", "name": "_tokenPerBlock", "type": "uint256" }, - { "internalType": "contract IMasterChefV2", "name": "_mcv2", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "uint256", "name": "oldAllocPoint", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "newAllocPoint", "type": "uint256" } - ], - "name": "AllocPointUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "OnReward", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "uint256", "name": "oldRate", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "newRate", "type": "uint256" } - ], - "name": "RewardRateUpdated", - "type": "event" - }, - { - "inputs": [], - "name": "MCV2", - "outputs": [{ "internalType": "contract IMasterChefV2", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lpToken", - "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "address", "name": "_user", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "_lpAmount", "type": "uint256" } - ], - "name": "onTriReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "address", "name": "_user", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "pendingTokens", - "outputs": [ - { "internalType": "contract IERC20[]", "name": "rewardTokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "rewardAmounts", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "poolInfo", - "outputs": [ - { "internalType": "uint256", "name": "accTokenPerShare", "type": "uint256" }, - { "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "address payable", "name": "to", "type": "address" } - ], - "name": "reclaimTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [], - "name": "rewardToken", - "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_tokenPerBlock", "type": "uint256" }], - "name": "setRewardRate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "tokenPerBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "updatePool", - "outputs": [ - { - "components": [ - { "internalType": "uint256", "name": "accTokenPerShare", "type": "uint256" }, - { "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" } - ], - "internalType": "struct ComplexRewarder.PoolInfo", - "name": "pool", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "userInfo", - "outputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/src/apps/trisolaris/contracts/ethers/TrisolarisFactory.ts b/src/apps/trisolaris/contracts/ethers/TrisolarisFactory.ts deleted file mode 100644 index d832aa334..000000000 --- a/src/apps/trisolaris/contracts/ethers/TrisolarisFactory.ts +++ /dev/null @@ -1,251 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface TrisolarisFactoryInterface extends utils.Interface { - functions: { - 'allPairs(uint256)': FunctionFragment; - 'allPairsLength()': FunctionFragment; - 'createPair(address,address)': FunctionFragment; - 'feeTo()': FunctionFragment; - 'feeToSetter()': FunctionFragment; - 'getPair(address,address)': FunctionFragment; - 'setFeeTo(address)': FunctionFragment; - 'setFeeToSetter(address)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'allPairs' - | 'allPairsLength' - | 'createPair' - | 'feeTo' - | 'feeToSetter' - | 'getPair' - | 'setFeeTo' - | 'setFeeToSetter', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'allPairs', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'allPairsLength', values?: undefined): string; - encodeFunctionData(functionFragment: 'createPair', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'feeTo', values?: undefined): string; - encodeFunctionData(functionFragment: 'feeToSetter', values?: undefined): string; - encodeFunctionData(functionFragment: 'getPair', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setFeeTo', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'setFeeToSetter', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'allPairs', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allPairsLength', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'createPair', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'feeTo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'feeToSetter', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getPair', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setFeeTo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setFeeToSetter', data: BytesLike): Result; - - events: { - 'PairCreated(address,address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'PairCreated'): EventFragment; -} - -export interface PairCreatedEventObject { - token0: string; - token1: string; - pair: string; - arg3: BigNumber; -} -export type PairCreatedEvent = TypedEvent<[string, string, string, BigNumber], PairCreatedEventObject>; - -export type PairCreatedEventFilter = TypedEventFilter; - -export interface TrisolarisFactory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: TrisolarisFactoryInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allPairs(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - allPairsLength(overrides?: CallOverrides): Promise<[BigNumber]>; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - feeTo(overrides?: CallOverrides): Promise<[string]>; - - feeToSetter(overrides?: CallOverrides): Promise<[string]>; - - getPair(arg0: PromiseOrValue, arg1: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - allPairs(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair(arg0: PromiseOrValue, arg1: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - allPairs(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair(arg0: PromiseOrValue, arg1: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFeeTo(_feeTo: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFeeToSetter(_feeToSetter: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - filters: { - 'PairCreated(address,address,address,uint256)'( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null, - ): PairCreatedEventFilter; - PairCreated( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null, - ): PairCreatedEventFilter; - }; - - estimateGas: { - allPairs(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair(arg0: PromiseOrValue, arg1: PromiseOrValue, overrides?: CallOverrides): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - allPairs(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/trisolaris/contracts/ethers/TrisolarisMasterChef.ts b/src/apps/trisolaris/contracts/ethers/TrisolarisMasterChef.ts deleted file mode 100644 index b1a198b71..000000000 --- a/src/apps/trisolaris/contracts/ethers/TrisolarisMasterChef.ts +++ /dev/null @@ -1,947 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export declare namespace MasterChefV2 { - export type PoolInfoStruct = { - accTriPerShare: PromiseOrValue; - lastRewardBlock: PromiseOrValue; - allocPoint: PromiseOrValue; - }; - - export type PoolInfoStructOutput = [BigNumber, BigNumber, BigNumber] & { - accTriPerShare: BigNumber; - lastRewardBlock: BigNumber; - allocPoint: BigNumber; - }; -} - -export interface TrisolarisMasterChefInterface extends utils.Interface { - functions: { - 'MASTER_CHEF()': FunctionFragment; - 'MASTER_PID()': FunctionFragment; - 'TRI()': FunctionFragment; - 'add(uint256,address,address)': FunctionFragment; - 'deposit(uint256,uint256,address)': FunctionFragment; - 'emergencyWithdraw(uint256,address)': FunctionFragment; - 'harvest(uint256,address)': FunctionFragment; - 'harvestFromMasterChef()': FunctionFragment; - 'init(address)': FunctionFragment; - 'lpToken(uint256)': FunctionFragment; - 'massUpdatePools(uint256[])': FunctionFragment; - 'owner()': FunctionFragment; - 'pendingTri(uint256,address)': FunctionFragment; - 'poolInfo(uint256)': FunctionFragment; - 'poolLength()': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'rewarder(uint256)': FunctionFragment; - 'set(uint256,uint256,address,bool)': FunctionFragment; - 'totalAllocPoint()': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'triPerBlock()': FunctionFragment; - 'updatePool(uint256)': FunctionFragment; - 'userInfo(uint256,address)': FunctionFragment; - 'withdraw(uint256,uint256,address)': FunctionFragment; - 'withdrawAndHarvest(uint256,uint256,address)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'MASTER_CHEF' - | 'MASTER_PID' - | 'TRI' - | 'add' - | 'deposit' - | 'emergencyWithdraw' - | 'harvest' - | 'harvestFromMasterChef' - | 'init' - | 'lpToken' - | 'massUpdatePools' - | 'owner' - | 'pendingTri' - | 'poolInfo' - | 'poolLength' - | 'renounceOwnership' - | 'rewarder' - | 'set' - | 'totalAllocPoint' - | 'transferOwnership' - | 'triPerBlock' - | 'updatePool' - | 'userInfo' - | 'withdraw' - | 'withdrawAndHarvest', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'MASTER_CHEF', values?: undefined): string; - encodeFunctionData(functionFragment: 'MASTER_PID', values?: undefined): string; - encodeFunctionData(functionFragment: 'TRI', values?: undefined): string; - encodeFunctionData( - functionFragment: 'add', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'deposit', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'emergencyWithdraw', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'harvest', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'harvestFromMasterChef', values?: undefined): string; - encodeFunctionData(functionFragment: 'init', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'lpToken', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'massUpdatePools', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData( - functionFragment: 'pendingTri', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'poolInfo', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'poolLength', values?: undefined): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewarder', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'set', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'totalAllocPoint', values?: undefined): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'triPerBlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'updatePool', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'userInfo', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'withdraw', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'withdrawAndHarvest', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - - decodeFunctionResult(functionFragment: 'MASTER_CHEF', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'MASTER_PID', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'TRI', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'add', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'emergencyWithdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'harvest', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'harvestFromMasterChef', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'init', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lpToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'massUpdatePools', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingTri', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'poolInfo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'poolLength', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewarder', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'set', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalAllocPoint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'triPerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'updatePool', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'userInfo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawAndHarvest', data: BytesLike): Result; - - events: { - 'Deposit(address,uint256,uint256,address)': EventFragment; - 'EmergencyWithdraw(address,uint256,uint256,address)': EventFragment; - 'Harvest(address,uint256,uint256)': EventFragment; - 'LogInit()': EventFragment; - 'LogPoolAddition(uint256,uint256,address,address)': EventFragment; - 'LogSetPool(uint256,uint256,address,bool)': EventFragment; - 'LogUpdatePool(uint256,uint64,uint256,uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'Withdraw(address,uint256,uint256,address)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Deposit'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'EmergencyWithdraw'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Harvest'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LogInit'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LogPoolAddition'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LogSetPool'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'LogUpdatePool'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Withdraw'): EventFragment; -} - -export interface DepositEventObject { - user: string; - pid: BigNumber; - amount: BigNumber; - to: string; -} -export type DepositEvent = TypedEvent<[string, BigNumber, BigNumber, string], DepositEventObject>; - -export type DepositEventFilter = TypedEventFilter; - -export interface EmergencyWithdrawEventObject { - user: string; - pid: BigNumber; - amount: BigNumber; - to: string; -} -export type EmergencyWithdrawEvent = TypedEvent<[string, BigNumber, BigNumber, string], EmergencyWithdrawEventObject>; - -export type EmergencyWithdrawEventFilter = TypedEventFilter; - -export interface HarvestEventObject { - user: string; - pid: BigNumber; - amount: BigNumber; -} -export type HarvestEvent = TypedEvent<[string, BigNumber, BigNumber], HarvestEventObject>; - -export type HarvestEventFilter = TypedEventFilter; - -export interface LogInitEventObject {} -export type LogInitEvent = TypedEvent<[], LogInitEventObject>; - -export type LogInitEventFilter = TypedEventFilter; - -export interface LogPoolAdditionEventObject { - pid: BigNumber; - allocPoint: BigNumber; - lpToken: string; - rewarder: string; -} -export type LogPoolAdditionEvent = TypedEvent<[BigNumber, BigNumber, string, string], LogPoolAdditionEventObject>; - -export type LogPoolAdditionEventFilter = TypedEventFilter; - -export interface LogSetPoolEventObject { - pid: BigNumber; - allocPoint: BigNumber; - rewarder: string; - overwrite: boolean; -} -export type LogSetPoolEvent = TypedEvent<[BigNumber, BigNumber, string, boolean], LogSetPoolEventObject>; - -export type LogSetPoolEventFilter = TypedEventFilter; - -export interface LogUpdatePoolEventObject { - pid: BigNumber; - lastRewardBlock: BigNumber; - lpSupply: BigNumber; - accTriPerShare: BigNumber; -} -export type LogUpdatePoolEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], LogUpdatePoolEventObject>; - -export type LogUpdatePoolEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface WithdrawEventObject { - user: string; - pid: BigNumber; - amount: BigNumber; - to: string; -} -export type WithdrawEvent = TypedEvent<[string, BigNumber, BigNumber, string], WithdrawEventObject>; - -export type WithdrawEventFilter = TypedEventFilter; - -export interface TrisolarisMasterChef extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: TrisolarisMasterChefInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - MASTER_CHEF(overrides?: CallOverrides): Promise<[string]>; - - MASTER_PID(overrides?: CallOverrides): Promise<[BigNumber]>; - - TRI(overrides?: CallOverrides): Promise<[string]>; - - add( - allocPoint: PromiseOrValue, - _lpToken: PromiseOrValue, - _rewarder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - emergencyWithdraw( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvestFromMasterChef(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - init( - dummyToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lpToken(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - massUpdatePools( - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingTri( - _pid: PromiseOrValue, - _user: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber] & { pending: BigNumber }>; - - poolInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - accTriPerShare: BigNumber; - lastRewardBlock: BigNumber; - allocPoint: BigNumber; - } - >; - - poolLength(overrides?: CallOverrides): Promise<[BigNumber] & { pools: BigNumber }>; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewarder(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; - - set( - _pid: PromiseOrValue, - _allocPoint: PromiseOrValue, - _rewarder: PromiseOrValue, - overwrite: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise<[BigNumber]>; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - triPerBlock(overrides?: CallOverrides): Promise<[BigNumber] & { amount: BigNumber }>; - - updatePool( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userInfo( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAndHarvest( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - MASTER_CHEF(overrides?: CallOverrides): Promise; - - MASTER_PID(overrides?: CallOverrides): Promise; - - TRI(overrides?: CallOverrides): Promise; - - add( - allocPoint: PromiseOrValue, - _lpToken: PromiseOrValue, - _rewarder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - emergencyWithdraw( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvestFromMasterChef(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - init( - dummyToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lpToken(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - massUpdatePools( - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTri( - _pid: PromiseOrValue, - _user: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - accTriPerShare: BigNumber; - lastRewardBlock: BigNumber; - allocPoint: BigNumber; - } - >; - - poolLength(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewarder(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - set( - _pid: PromiseOrValue, - _allocPoint: PromiseOrValue, - _rewarder: PromiseOrValue, - overwrite: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - triPerBlock(overrides?: CallOverrides): Promise; - - updatePool( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userInfo( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAndHarvest( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - MASTER_CHEF(overrides?: CallOverrides): Promise; - - MASTER_PID(overrides?: CallOverrides): Promise; - - TRI(overrides?: CallOverrides): Promise; - - add( - allocPoint: PromiseOrValue, - _lpToken: PromiseOrValue, - _rewarder: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - emergencyWithdraw( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - harvest(pid: PromiseOrValue, to: PromiseOrValue, overrides?: CallOverrides): Promise; - - harvestFromMasterChef(overrides?: CallOverrides): Promise; - - init(dummyToken: PromiseOrValue, overrides?: CallOverrides): Promise; - - lpToken(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - massUpdatePools(pids: PromiseOrValue[], overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTri( - _pid: PromiseOrValue, - _user: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - accTriPerShare: BigNumber; - lastRewardBlock: BigNumber; - allocPoint: BigNumber; - } - >; - - poolLength(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - rewarder(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - set( - _pid: PromiseOrValue, - _allocPoint: PromiseOrValue, - _rewarder: PromiseOrValue, - overwrite: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - triPerBlock(overrides?: CallOverrides): Promise; - - updatePool( - pid: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - userInfo( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - withdrawAndHarvest( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - }; - - filters: { - 'Deposit(address,uint256,uint256,address)'( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): DepositEventFilter; - Deposit( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): DepositEventFilter; - - 'EmergencyWithdraw(address,uint256,uint256,address)'( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): EmergencyWithdrawEventFilter; - EmergencyWithdraw( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): EmergencyWithdrawEventFilter; - - 'Harvest(address,uint256,uint256)'( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - ): HarvestEventFilter; - Harvest( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - ): HarvestEventFilter; - - 'LogInit()'(): LogInitEventFilter; - LogInit(): LogInitEventFilter; - - 'LogPoolAddition(uint256,uint256,address,address)'( - pid?: PromiseOrValue | null, - allocPoint?: null, - lpToken?: PromiseOrValue | null, - rewarder?: PromiseOrValue | null, - ): LogPoolAdditionEventFilter; - LogPoolAddition( - pid?: PromiseOrValue | null, - allocPoint?: null, - lpToken?: PromiseOrValue | null, - rewarder?: PromiseOrValue | null, - ): LogPoolAdditionEventFilter; - - 'LogSetPool(uint256,uint256,address,bool)'( - pid?: PromiseOrValue | null, - allocPoint?: null, - rewarder?: PromiseOrValue | null, - overwrite?: null, - ): LogSetPoolEventFilter; - LogSetPool( - pid?: PromiseOrValue | null, - allocPoint?: null, - rewarder?: PromiseOrValue | null, - overwrite?: null, - ): LogSetPoolEventFilter; - - 'LogUpdatePool(uint256,uint64,uint256,uint256)'( - pid?: PromiseOrValue | null, - lastRewardBlock?: null, - lpSupply?: null, - accTriPerShare?: null, - ): LogUpdatePoolEventFilter; - LogUpdatePool( - pid?: PromiseOrValue | null, - lastRewardBlock?: null, - lpSupply?: null, - accTriPerShare?: null, - ): LogUpdatePoolEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'Withdraw(address,uint256,uint256,address)'( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): WithdrawEventFilter; - Withdraw( - user?: PromiseOrValue | null, - pid?: PromiseOrValue | null, - amount?: null, - to?: PromiseOrValue | null, - ): WithdrawEventFilter; - }; - - estimateGas: { - MASTER_CHEF(overrides?: CallOverrides): Promise; - - MASTER_PID(overrides?: CallOverrides): Promise; - - TRI(overrides?: CallOverrides): Promise; - - add( - allocPoint: PromiseOrValue, - _lpToken: PromiseOrValue, - _rewarder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - emergencyWithdraw( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvestFromMasterChef(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - init( - dummyToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lpToken(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - massUpdatePools( - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTri( - _pid: PromiseOrValue, - _user: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewarder(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - set( - _pid: PromiseOrValue, - _allocPoint: PromiseOrValue, - _rewarder: PromiseOrValue, - overwrite: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - triPerBlock(overrides?: CallOverrides): Promise; - - updatePool( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userInfo( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAndHarvest( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - MASTER_CHEF(overrides?: CallOverrides): Promise; - - MASTER_PID(overrides?: CallOverrides): Promise; - - TRI(overrides?: CallOverrides): Promise; - - add( - allocPoint: PromiseOrValue, - _lpToken: PromiseOrValue, - _rewarder: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - emergencyWithdraw( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvest( - pid: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - harvestFromMasterChef(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - init( - dummyToken: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lpToken(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - massUpdatePools( - pids: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTri( - _pid: PromiseOrValue, - _user: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - poolLength(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewarder(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - set( - _pid: PromiseOrValue, - _allocPoint: PromiseOrValue, - _rewarder: PromiseOrValue, - overwrite: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - totalAllocPoint(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - triPerBlock(overrides?: CallOverrides): Promise; - - updatePool( - pid: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userInfo( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - withdraw( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAndHarvest( - pid: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/trisolaris/contracts/ethers/TrisolarisPair.ts b/src/apps/trisolaris/contracts/ethers/TrisolarisPair.ts deleted file mode 100644 index ad7756efc..000000000 --- a/src/apps/trisolaris/contracts/ethers/TrisolarisPair.ts +++ /dev/null @@ -1,827 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface TrisolarisPairInterface extends utils.Interface { - functions: { - 'DOMAIN_SEPARATOR()': FunctionFragment; - 'MINIMUM_LIQUIDITY()': FunctionFragment; - 'PERMIT_TYPEHASH()': FunctionFragment; - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'burn(address)': FunctionFragment; - 'decimals()': FunctionFragment; - 'factory()': FunctionFragment; - 'getReserves()': FunctionFragment; - 'initialize(address,address)': FunctionFragment; - 'kLast()': FunctionFragment; - 'mint(address)': FunctionFragment; - 'name()': FunctionFragment; - 'nonces(address)': FunctionFragment; - 'permit(address,address,uint256,uint256,uint8,bytes32,bytes32)': FunctionFragment; - 'price0CumulativeLast()': FunctionFragment; - 'price1CumulativeLast()': FunctionFragment; - 'skim(address)': FunctionFragment; - 'swap(uint256,uint256,address,bytes)': FunctionFragment; - 'symbol()': FunctionFragment; - 'sync()': FunctionFragment; - 'token0()': FunctionFragment; - 'token1()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'DOMAIN_SEPARATOR' - | 'MINIMUM_LIQUIDITY' - | 'PERMIT_TYPEHASH' - | 'allowance' - | 'approve' - | 'balanceOf' - | 'burn' - | 'decimals' - | 'factory' - | 'getReserves' - | 'initialize' - | 'kLast' - | 'mint' - | 'name' - | 'nonces' - | 'permit' - | 'price0CumulativeLast' - | 'price1CumulativeLast' - | 'skim' - | 'swap' - | 'symbol' - | 'sync' - | 'token0' - | 'token1' - | 'totalSupply' - | 'transfer' - | 'transferFrom', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR', values?: undefined): string; - encodeFunctionData(functionFragment: 'MINIMUM_LIQUIDITY', values?: undefined): string; - encodeFunctionData(functionFragment: 'PERMIT_TYPEHASH', values?: undefined): string; - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'burn', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData(functionFragment: 'factory', values?: undefined): string; - encodeFunctionData(functionFragment: 'getReserves', values?: undefined): string; - encodeFunctionData(functionFragment: 'initialize', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'kLast', values?: undefined): string; - encodeFunctionData(functionFragment: 'mint', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'nonces', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'permit', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'price0CumulativeLast', values?: undefined): string; - encodeFunctionData(functionFragment: 'price1CumulativeLast', values?: undefined): string; - encodeFunctionData(functionFragment: 'skim', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'swap', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'sync', values?: undefined): string; - encodeFunctionData(functionFragment: 'token0', values?: undefined): string; - encodeFunctionData(functionFragment: 'token1', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - - decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'MINIMUM_LIQUIDITY', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'PERMIT_TYPEHASH', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'burn', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getReserves', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'kLast', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'nonces', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'permit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'price0CumulativeLast', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'price1CumulativeLast', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'skim', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'swap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'sync', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'token0', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'token1', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - - events: { - 'Approval(address,address,uint256)': EventFragment; - 'Burn(address,uint256,uint256,address)': EventFragment; - 'Mint(address,uint256,uint256)': EventFragment; - 'Swap(address,uint256,uint256,uint256,uint256,address)': EventFragment; - 'Sync(uint112,uint112)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Burn'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Mint'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Swap'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Sync'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface BurnEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; - to: string; -} -export type BurnEvent = TypedEvent<[string, BigNumber, BigNumber, string], BurnEventObject>; - -export type BurnEventFilter = TypedEventFilter; - -export interface MintEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type MintEvent = TypedEvent<[string, BigNumber, BigNumber], MintEventObject>; - -export type MintEventFilter = TypedEventFilter; - -export interface SwapEventObject { - sender: string; - amount0In: BigNumber; - amount1In: BigNumber; - amount0Out: BigNumber; - amount1Out: BigNumber; - to: string; -} -export type SwapEvent = TypedEvent<[string, BigNumber, BigNumber, BigNumber, BigNumber, string], SwapEventObject>; - -export type SwapEventFilter = TypedEventFilter; - -export interface SyncEventObject { - reserve0: BigNumber; - reserve1: BigNumber; -} -export type SyncEvent = TypedEvent<[BigNumber, BigNumber], SyncEventObject>; - -export type SyncEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface TrisolarisPair extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: TrisolarisPairInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise<[BigNumber]>; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getReserves(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - kLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - nonces(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - price1CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - sync(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - token0(overrides?: CallOverrides): Promise<[string]>; - - token1(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance(arg0: PromiseOrValue, arg1: PromiseOrValue, overrides?: CallOverrides): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - balanceOf(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber }>; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint(to: PromiseOrValue, overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim(to: PromiseOrValue, overrides?: CallOverrides): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - }; - - filters: { - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - - 'Burn(address,uint256,uint256,address)'( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null, - ): BurnEventFilter; - Burn( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null, - ): BurnEventFilter; - - 'Mint(address,uint256,uint256)'( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - ): MintEventFilter; - Mint(sender?: PromiseOrValue | null, amount0?: null, amount1?: null): MintEventFilter; - - 'Swap(address,uint256,uint256,uint256,uint256,address)'( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null, - ): SwapEventFilter; - Swap( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null, - ): SwapEventFilter; - - 'Sync(uint112,uint112)'(reserve0?: null, reserve1?: null): SyncEventFilter; - Sync(reserve0?: null, reserve1?: null): SyncEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - }; - - estimateGas: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn(to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint(to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim(to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - balanceOf(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/trisolaris/contracts/ethers/TrisolarisRewarder.ts b/src/apps/trisolaris/contracts/ethers/TrisolarisRewarder.ts deleted file mode 100644 index be05ef11d..000000000 --- a/src/apps/trisolaris/contracts/ethers/TrisolarisRewarder.ts +++ /dev/null @@ -1,495 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export declare namespace ComplexRewarder { - export type PoolInfoStruct = { - accTokenPerShare: PromiseOrValue; - lastRewardBlock: PromiseOrValue; - }; - - export type PoolInfoStructOutput = [BigNumber, BigNumber] & { - accTokenPerShare: BigNumber; - lastRewardBlock: BigNumber; - }; -} - -export interface TrisolarisRewarderInterface extends utils.Interface { - functions: { - 'MCV2()': FunctionFragment; - 'lpToken()': FunctionFragment; - 'onTriReward(uint256,address,address,uint256,uint256)': FunctionFragment; - 'owner()': FunctionFragment; - 'pendingTokens(uint256,address,uint256)': FunctionFragment; - 'poolInfo()': FunctionFragment; - 'reclaimTokens(address,uint256,address)': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'rewardToken()': FunctionFragment; - 'setRewardRate(uint256)': FunctionFragment; - 'tokenPerBlock()': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'updatePool()': FunctionFragment; - 'userInfo(address)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'MCV2' - | 'lpToken' - | 'onTriReward' - | 'owner' - | 'pendingTokens' - | 'poolInfo' - | 'reclaimTokens' - | 'renounceOwnership' - | 'rewardToken' - | 'setRewardRate' - | 'tokenPerBlock' - | 'transferOwnership' - | 'updatePool' - | 'userInfo', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'MCV2', values?: undefined): string; - encodeFunctionData(functionFragment: 'lpToken', values?: undefined): string; - encodeFunctionData( - functionFragment: 'onTriReward', - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - ], - ): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData( - functionFragment: 'pendingTokens', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'poolInfo', values?: undefined): string; - encodeFunctionData( - functionFragment: 'reclaimTokens', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'setRewardRate', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'tokenPerBlock', values?: undefined): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'updatePool', values?: undefined): string; - encodeFunctionData(functionFragment: 'userInfo', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'MCV2', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lpToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'onTriReward', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'pendingTokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'poolInfo', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'reclaimTokens', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'setRewardRate', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'tokenPerBlock', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'updatePool', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'userInfo', data: BytesLike): Result; - - events: { - 'AllocPointUpdated(uint256,uint256)': EventFragment; - 'OnReward(address,uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'RewardRateUpdated(uint256,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'AllocPointUpdated'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OnReward'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardRateUpdated'): EventFragment; -} - -export interface AllocPointUpdatedEventObject { - oldAllocPoint: BigNumber; - newAllocPoint: BigNumber; -} -export type AllocPointUpdatedEvent = TypedEvent<[BigNumber, BigNumber], AllocPointUpdatedEventObject>; - -export type AllocPointUpdatedEventFilter = TypedEventFilter; - -export interface OnRewardEventObject { - user: string; - amount: BigNumber; -} -export type OnRewardEvent = TypedEvent<[string, BigNumber], OnRewardEventObject>; - -export type OnRewardEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface RewardRateUpdatedEventObject { - oldRate: BigNumber; - newRate: BigNumber; -} -export type RewardRateUpdatedEvent = TypedEvent<[BigNumber, BigNumber], RewardRateUpdatedEventObject>; - -export type RewardRateUpdatedEventFilter = TypedEventFilter; - -export interface TrisolarisRewarder extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: TrisolarisRewarderInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - MCV2(overrides?: CallOverrides): Promise<[string]>; - - lpToken(overrides?: CallOverrides): Promise<[string]>; - - onTriReward( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - arg3: PromiseOrValue, - _lpAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingTokens( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string[], BigNumber[]] & { - rewardTokens: string[]; - rewardAmounts: BigNumber[]; - } - >; - - poolInfo(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber] & { - accTokenPerShare: BigNumber; - lastRewardBlock: BigNumber; - } - >; - - reclaimTokens( - token: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardToken(overrides?: CallOverrides): Promise<[string]>; - - setRewardRate( - _tokenPerBlock: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - tokenPerBlock(overrides?: CallOverrides): Promise<[BigNumber]>; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - updatePool(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - userInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - }; - - MCV2(overrides?: CallOverrides): Promise; - - lpToken(overrides?: CallOverrides): Promise; - - onTriReward( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - arg3: PromiseOrValue, - _lpAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTokens( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string[], BigNumber[]] & { - rewardTokens: string[]; - rewardAmounts: BigNumber[]; - } - >; - - poolInfo(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber] & { - accTokenPerShare: BigNumber; - lastRewardBlock: BigNumber; - } - >; - - reclaimTokens( - token: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - setRewardRate( - _tokenPerBlock: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - tokenPerBlock(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - updatePool(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - userInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - - callStatic: { - MCV2(overrides?: CallOverrides): Promise; - - lpToken(overrides?: CallOverrides): Promise; - - onTriReward( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - arg3: PromiseOrValue, - _lpAmount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTokens( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise< - [string[], BigNumber[]] & { - rewardTokens: string[]; - rewardAmounts: BigNumber[]; - } - >; - - poolInfo(overrides?: CallOverrides): Promise< - [BigNumber, BigNumber] & { - accTokenPerShare: BigNumber; - lastRewardBlock: BigNumber; - } - >; - - reclaimTokens( - token: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - setRewardRate(_tokenPerBlock: PromiseOrValue, overrides?: CallOverrides): Promise; - - tokenPerBlock(overrides?: CallOverrides): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - updatePool(overrides?: CallOverrides): Promise; - - userInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber, BigNumber] & { amount: BigNumber; rewardDebt: BigNumber }>; - }; - - filters: { - 'AllocPointUpdated(uint256,uint256)'(oldAllocPoint?: null, newAllocPoint?: null): AllocPointUpdatedEventFilter; - AllocPointUpdated(oldAllocPoint?: null, newAllocPoint?: null): AllocPointUpdatedEventFilter; - - 'OnReward(address,uint256)'(user?: PromiseOrValue | null, amount?: null): OnRewardEventFilter; - OnReward(user?: PromiseOrValue | null, amount?: null): OnRewardEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'RewardRateUpdated(uint256,uint256)'(oldRate?: null, newRate?: null): RewardRateUpdatedEventFilter; - RewardRateUpdated(oldRate?: null, newRate?: null): RewardRateUpdatedEventFilter; - }; - - estimateGas: { - MCV2(overrides?: CallOverrides): Promise; - - lpToken(overrides?: CallOverrides): Promise; - - onTriReward( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - arg3: PromiseOrValue, - _lpAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTokens( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo(overrides?: CallOverrides): Promise; - - reclaimTokens( - token: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - setRewardRate( - _tokenPerBlock: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - tokenPerBlock(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - updatePool(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - userInfo(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - MCV2(overrides?: CallOverrides): Promise; - - lpToken(overrides?: CallOverrides): Promise; - - onTriReward( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - arg3: PromiseOrValue, - _lpAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingTokens( - arg0: PromiseOrValue, - _user: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - poolInfo(overrides?: CallOverrides): Promise; - - reclaimTokens( - token: PromiseOrValue, - amount: PromiseOrValue, - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - setRewardRate( - _tokenPerBlock: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - tokenPerBlock(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - updatePool(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - userInfo(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - }; -} diff --git a/src/apps/trisolaris/contracts/ethers/common.ts b/src/apps/trisolaris/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/trisolaris/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisFactory__factory.ts b/src/apps/trisolaris/contracts/ethers/factories/TrisolarisFactory__factory.ts deleted file mode 100644 index df5cfb21b..000000000 --- a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisFactory__factory.ts +++ /dev/null @@ -1,211 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { TrisolarisFactory, TrisolarisFactoryInterface } from '../TrisolarisFactory'; - -const _abi = [ - { - inputs: [ - { - internalType: 'address', - name: '_feeToSetter', - type: 'address', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'token0', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'token1', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'pair', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'PairCreated', - type: 'event', - }, - { - constant: true, - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'allPairs', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'allPairsLength', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'tokenA', - type: 'address', - }, - { - internalType: 'address', - name: 'tokenB', - type: 'address', - }, - ], - name: 'createPair', - outputs: [ - { - internalType: 'address', - name: 'pair', - type: 'address', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'feeTo', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'feeToSetter', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'getPair', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: '_feeTo', - type: 'address', - }, - ], - name: 'setFeeTo', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: '_feeToSetter', - type: 'address', - }, - ], - name: 'setFeeToSetter', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class TrisolarisFactory__factory { - static readonly abi = _abi; - static createInterface(): TrisolarisFactoryInterface { - return new utils.Interface(_abi) as TrisolarisFactoryInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): TrisolarisFactory { - return new Contract(address, _abi, signerOrProvider) as TrisolarisFactory; - } -} diff --git a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisMasterChef__factory.ts b/src/apps/trisolaris/contracts/ethers/factories/TrisolarisMasterChef__factory.ts deleted file mode 100644 index 44f488c3c..000000000 --- a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisMasterChef__factory.ts +++ /dev/null @@ -1,733 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { TrisolarisMasterChef, TrisolarisMasterChefInterface } from '../TrisolarisMasterChef'; - -const _abi = [ - { - inputs: [ - { - internalType: 'contract IMasterChef', - name: '_MASTER_CHEF', - type: 'address', - }, - { - internalType: 'contract IERC20', - name: '_tri', - type: 'address', - }, - { - internalType: 'uint256', - name: '_MASTER_PID', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'Deposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'EmergencyWithdraw', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Harvest', - type: 'event', - }, - { - anonymous: false, - inputs: [], - name: 'LogInit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - { - indexed: true, - internalType: 'contract IERC20', - name: 'lpToken', - type: 'address', - }, - { - indexed: true, - internalType: 'contract IRewarder', - name: 'rewarder', - type: 'address', - }, - ], - name: 'LogPoolAddition', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - { - indexed: true, - internalType: 'contract IRewarder', - name: 'rewarder', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'overwrite', - type: 'bool', - }, - ], - name: 'LogSetPool', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint64', - name: 'lastRewardBlock', - type: 'uint64', - }, - { - indexed: false, - internalType: 'uint256', - name: 'lpSupply', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accTriPerShare', - type: 'uint256', - }, - ], - name: 'LogUpdatePool', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'Withdraw', - type: 'event', - }, - { - inputs: [], - name: 'MASTER_CHEF', - outputs: [ - { - internalType: 'contract IMasterChef', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'MASTER_PID', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'TRI', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'allocPoint', - type: 'uint256', - }, - { - internalType: 'contract IERC20', - name: '_lpToken', - type: 'address', - }, - { - internalType: 'contract IRewarder', - name: '_rewarder', - type: 'address', - }, - ], - name: 'add', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'emergencyWithdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'harvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'harvestFromMasterChef', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IERC20', - name: 'dummyToken', - type: 'address', - }, - ], - name: 'init', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'lpToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256[]', - name: 'pids', - type: 'uint256[]', - }, - ], - name: 'massUpdatePools', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_pid', - type: 'uint256', - }, - { - internalType: 'address', - name: '_user', - type: 'address', - }, - ], - name: 'pendingTri', - outputs: [ - { - internalType: 'uint256', - name: 'pending', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'poolInfo', - outputs: [ - { - internalType: 'uint128', - name: 'accTriPerShare', - type: 'uint128', - }, - { - internalType: 'uint64', - name: 'lastRewardBlock', - type: 'uint64', - }, - { - internalType: 'uint64', - name: 'allocPoint', - type: 'uint64', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'poolLength', - outputs: [ - { - internalType: 'uint256', - name: 'pools', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'rewarder', - outputs: [ - { - internalType: 'contract IRewarder', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_allocPoint', - type: 'uint256', - }, - { - internalType: 'contract IRewarder', - name: '_rewarder', - type: 'address', - }, - { - internalType: 'bool', - name: 'overwrite', - type: 'bool', - }, - ], - name: 'set', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalAllocPoint', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'triPerBlock', - outputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - ], - name: 'updatePool', - outputs: [ - { - components: [ - { - internalType: 'uint128', - name: 'accTriPerShare', - type: 'uint128', - }, - { - internalType: 'uint64', - name: 'lastRewardBlock', - type: 'uint64', - }, - { - internalType: 'uint64', - name: 'allocPoint', - type: 'uint64', - }, - ], - internalType: 'struct MasterChefV2.PoolInfo', - name: 'pool', - type: 'tuple', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'userInfo', - outputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'int256', - name: 'rewardDebt', - type: 'int256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'pid', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'withdrawAndHarvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class TrisolarisMasterChef__factory { - static readonly abi = _abi; - static createInterface(): TrisolarisMasterChefInterface { - return new utils.Interface(_abi) as TrisolarisMasterChefInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): TrisolarisMasterChef { - return new Contract(address, _abi, signerOrProvider) as TrisolarisMasterChef; - } -} diff --git a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisPair__factory.ts b/src/apps/trisolaris/contracts/ethers/factories/TrisolarisPair__factory.ts deleted file mode 100644 index bb563a77e..000000000 --- a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisPair__factory.ts +++ /dev/null @@ -1,731 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { TrisolarisPair, TrisolarisPairInterface } from '../TrisolarisPair'; - -const _abi = [ - { - inputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0Out', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1Out', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'Swap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint112', - name: 'reserve0', - type: 'uint112', - }, - { - indexed: false, - internalType: 'uint112', - name: 'reserve1', - type: 'uint112', - }, - ], - name: 'Sync', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'MINIMUM_LIQUIDITY', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'burn', - outputs: [ - { - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'factory', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getReserves', - outputs: [ - { - internalType: 'uint112', - name: '_reserve0', - type: 'uint112', - }, - { - internalType: 'uint112', - name: '_reserve1', - type: 'uint112', - }, - { - internalType: 'uint32', - name: '_blockTimestampLast', - type: 'uint32', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: '_token0', - type: 'address', - }, - { - internalType: 'address', - name: '_token1', - type: 'address', - }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'kLast', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'mint', - outputs: [ - { - internalType: 'uint256', - name: 'liquidity', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'nonces', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price0CumulativeLast', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price1CumulativeLast', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - ], - name: 'skim', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'uint256', - name: 'amount0Out', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount1Out', - type: 'uint256', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'swap', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'sync', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token0', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token1', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class TrisolarisPair__factory { - static readonly abi = _abi; - static createInterface(): TrisolarisPairInterface { - return new utils.Interface(_abi) as TrisolarisPairInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): TrisolarisPair { - return new Contract(address, _abi, signerOrProvider) as TrisolarisPair; - } -} diff --git a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisRewarder__factory.ts b/src/apps/trisolaris/contracts/ethers/factories/TrisolarisRewarder__factory.ts deleted file mode 100644 index 625019dcd..000000000 --- a/src/apps/trisolaris/contracts/ethers/factories/TrisolarisRewarder__factory.ts +++ /dev/null @@ -1,377 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { TrisolarisRewarder, TrisolarisRewarderInterface } from '../TrisolarisRewarder'; - -const _abi = [ - { - inputs: [ - { - internalType: 'contract IERC20', - name: '_rewardToken', - type: 'address', - }, - { - internalType: 'contract IERC20', - name: '_lpToken', - type: 'address', - }, - { - internalType: 'uint256', - name: '_tokenPerBlock', - type: 'uint256', - }, - { - internalType: 'contract IMasterChefV2', - name: '_mcv2', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldAllocPoint', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newAllocPoint', - type: 'uint256', - }, - ], - name: 'AllocPointUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'OnReward', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldRate', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newRate', - type: 'uint256', - }, - ], - name: 'RewardRateUpdated', - type: 'event', - }, - { - inputs: [], - name: 'MCV2', - outputs: [ - { - internalType: 'contract IMasterChefV2', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'lpToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'address', - name: '_user', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_lpAmount', - type: 'uint256', - }, - ], - name: 'onTriReward', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'address', - name: '_user', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'pendingTokens', - outputs: [ - { - internalType: 'contract IERC20[]', - name: 'rewardTokens', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'rewardAmounts', - type: 'uint256[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'poolInfo', - outputs: [ - { - internalType: 'uint256', - name: 'accTokenPerShare', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastRewardBlock', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'address payable', - name: 'to', - type: 'address', - }, - ], - name: 'reclaimTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rewardToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_tokenPerBlock', - type: 'uint256', - }, - ], - name: 'setRewardRate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'tokenPerBlock', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'updatePool', - outputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'accTokenPerShare', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'lastRewardBlock', - type: 'uint256', - }, - ], - internalType: 'struct ComplexRewarder.PoolInfo', - name: 'pool', - type: 'tuple', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'userInfo', - outputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'rewardDebt', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export class TrisolarisRewarder__factory { - static readonly abi = _abi; - static createInterface(): TrisolarisRewarderInterface { - return new utils.Interface(_abi) as TrisolarisRewarderInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): TrisolarisRewarder { - return new Contract(address, _abi, signerOrProvider) as TrisolarisRewarder; - } -} diff --git a/src/apps/trisolaris/contracts/ethers/factories/index.ts b/src/apps/trisolaris/contracts/ethers/factories/index.ts deleted file mode 100644 index 4037456c2..000000000 --- a/src/apps/trisolaris/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { TrisolarisFactory__factory } from './TrisolarisFactory__factory'; -export { TrisolarisMasterChef__factory } from './TrisolarisMasterChef__factory'; -export { TrisolarisPair__factory } from './TrisolarisPair__factory'; -export { TrisolarisRewarder__factory } from './TrisolarisRewarder__factory'; diff --git a/src/apps/trisolaris/contracts/ethers/index.ts b/src/apps/trisolaris/contracts/ethers/index.ts deleted file mode 100644 index 496c4917b..000000000 --- a/src/apps/trisolaris/contracts/ethers/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { TrisolarisFactory } from './TrisolarisFactory'; -export type { TrisolarisMasterChef } from './TrisolarisMasterChef'; -export type { TrisolarisPair } from './TrisolarisPair'; -export type { TrisolarisRewarder } from './TrisolarisRewarder'; -export * as factories from './factories'; -export { TrisolarisFactory__factory } from './factories/TrisolarisFactory__factory'; -export { TrisolarisMasterChef__factory } from './factories/TrisolarisMasterChef__factory'; -export { TrisolarisPair__factory } from './factories/TrisolarisPair__factory'; -export { TrisolarisRewarder__factory } from './factories/TrisolarisRewarder__factory'; diff --git a/src/apps/trisolaris/contracts/index.ts b/src/apps/trisolaris/contracts/index.ts deleted file mode 100644 index 8348f252e..000000000 --- a/src/apps/trisolaris/contracts/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { - TrisolarisFactory__factory, - TrisolarisMasterChef__factory, - TrisolarisPair__factory, - TrisolarisRewarder__factory, -} from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class TrisolarisContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - trisolarisFactory({ address, network }: ContractOpts) { - return TrisolarisFactory__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - trisolarisMasterChef({ address, network }: ContractOpts) { - return TrisolarisMasterChef__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - trisolarisPair({ address, network }: ContractOpts) { - return TrisolarisPair__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - trisolarisRewarder({ address, network }: ContractOpts) { - return TrisolarisRewarder__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { TrisolarisFactory } from './ethers'; -export type { TrisolarisMasterChef } from './ethers'; -export type { TrisolarisPair } from './ethers'; -export type { TrisolarisRewarder } from './ethers'; diff --git a/src/apps/trisolaris/trisolaris.module.ts b/src/apps/trisolaris/trisolaris.module.ts deleted file mode 100644 index d285ddaaa..000000000 --- a/src/apps/trisolaris/trisolaris.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; -import { UniswapV2ContractFactory } from '~apps/uniswap-v2/contracts'; - -import { AuroraTrisolarisFarmContractPositionFetcher } from './aurora/trisolaris.farm.contract-position-fetcher'; -import { AuroraTrisolarisPoolTokenFetcher } from './aurora/trisolaris.pool.token-fetcher'; -import { TrisolarisContractFactory } from './contracts'; - -@Module({ - providers: [ - TrisolarisContractFactory, - UniswapV2ContractFactory, - AuroraTrisolarisFarmContractPositionFetcher, - AuroraTrisolarisPoolTokenFetcher, - ], -}) -export class TrisolarisAppModule extends AbstractApp() {} diff --git a/src/apps/vaporwave-finance/assets/logo.png b/src/apps/vaporwave-finance/assets/logo.png deleted file mode 100644 index f0ead4a9e..000000000 Binary files a/src/apps/vaporwave-finance/assets/logo.png and /dev/null differ diff --git a/src/apps/vaporwave-finance/aurora/vaporwave-finance.farm.contract-position-fetcher.ts b/src/apps/vaporwave-finance/aurora/vaporwave-finance.farm.contract-position-fetcher.ts deleted file mode 100644 index 696babdc8..000000000 --- a/src/apps/vaporwave-finance/aurora/vaporwave-finance.farm.contract-position-fetcher.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; -import { DefaultDataProps } from '~position/display.interface'; -import { MetaType } from '~position/position.interface'; -import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; -import { - GetDisplayPropsParams, - GetTokenBalancesParams, - GetTokenDefinitionsParams, - UnderlyingTokenDefinition, -} from '~position/template/contract-position.template.types'; - -import { VaporwaveFinanceContractFactory, VaporwaveLaunchpool } from '../contracts'; - -const FARMS = [ - { - address: '0x586009baa80010833637f4c371bca2496ea70225', - underlyingTokenAddress: '0x2451db68ded81900c4f16ae1af597e9658689734', - rewardTokenAddress: '0xc9bdeed33cd01541e1eed10f90519d2c06fe3feb', - }, - { - address: '0x1a753380e261f0eaffd7282ec978d90b4d3ce31e', - underlyingTokenAddress: '0xfd3fda44cd7f1ea9e9856b56d21f64fc1a417b8e', - rewardTokenAddress: '0x2451db68ded81900c4f16ae1af597e9658689734', - }, -]; - -export type VaporwaveFinanceVaultDefinition = { - address: string; - underlyingTokenAddress: string; - rewardTokenAddress: string; -}; - -@PositionTemplate() -export class AuroraVaporwaveFinanceFarmContractPositionFetcher extends ContractPositionTemplatePositionFetcher< - VaporwaveLaunchpool, - DefaultDataProps, - VaporwaveFinanceVaultDefinition -> { - groupLabel = 'Farms'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(VaporwaveFinanceContractFactory) protected readonly contractFactory: VaporwaveFinanceContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): VaporwaveLaunchpool { - return this.contractFactory.vaporwaveLaunchpool({ address, network: this.network }); - } - - async getDefinitions(): Promise { - return FARMS; - } - - async getTokenDefinitions({ - definition, - }: GetTokenDefinitionsParams): Promise< - UnderlyingTokenDefinition[] - > { - return [ - { - metaType: MetaType.SUPPLIED, - address: definition.underlyingTokenAddress, - network: this.network, - }, - { - metaType: MetaType.CLAIMABLE, - address: definition.rewardTokenAddress, - network: this.network, - }, - ]; - } - - async getLabel({ contractPosition }: GetDisplayPropsParams) { - return getLabelFromToken(contractPosition.tokens[0]); - } - - async getTokenBalancesPerPosition({ address, contract }: GetTokenBalancesParams) { - const [stakedBalanceRaw, rewardBalanceRaw] = await Promise.all([ - contract.balanceOf(address), - contract.earned(address), - ]); - return [stakedBalanceRaw, rewardBalanceRaw]; - } -} diff --git a/src/apps/vaporwave-finance/aurora/vaporwave-finance.vault.token-fetcher.ts b/src/apps/vaporwave-finance/aurora/vaporwave-finance.vault.token-fetcher.ts deleted file mode 100644 index d6142fd63..000000000 --- a/src/apps/vaporwave-finance/aurora/vaporwave-finance.vault.token-fetcher.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { - DefaultAppTokenDataProps, - DefaultAppTokenDefinition, - GetAddressesParams, - GetDataPropsParams, - GetDisplayPropsParams, - GetPricePerShareParams, - GetUnderlyingTokensParams, -} from '~position/template/app-token.template.types'; - -import { VaporwaveFinanceVaultDefinitionsResolver } from '../common/vaporwave-finance.vault.token-definitions-resolver'; -import { VaporwaveFinanceContractFactory, VaporwaveVault } from '../contracts'; - -type VaporwaveFinanceVaultDefinition = { - address: string; - underlyingTokenAddress: string; - name: string; - id: string; -}; - -@PositionTemplate() -export class AuroraVaporwaveFinanceVaultTokenFetcher extends AppTokenTemplatePositionFetcher< - VaporwaveVault, - DefaultAppTokenDataProps, - VaporwaveFinanceVaultDefinition -> { - groupLabel = 'Vaults'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(VaporwaveFinanceContractFactory) protected readonly contractFactory: VaporwaveFinanceContractFactory, - @Inject(VaporwaveFinanceVaultDefinitionsResolver) - protected readonly vaultDefinitionResolver: VaporwaveFinanceVaultDefinitionsResolver, - ) { - super(appToolkit); - } - - getContract(address: string): VaporwaveVault { - return this.contractFactory.vaporwaveVault({ network: this.network, address }); - } - - async getDefinitions(): Promise { - return this.vaultDefinitionResolver.getVaultDefinitions(); - } - - async getAddresses({ definitions }: GetAddressesParams) { - return definitions.map(x => x.address); - } - - async getUnderlyingTokenDefinitions({ - definition, - }: GetUnderlyingTokensParams) { - return [{ address: definition.underlyingTokenAddress, network: this.network }]; - } - - async getPricePerShare({ contract, appToken }: GetPricePerShareParams) { - const reserveRaw = await contract.balance(); - const reserve = Number(reserveRaw) / 10 ** appToken.decimals; - const pricePerShare = reserve / appToken.supply; - return [pricePerShare]; - } - - async getApy({ - definition, - }: GetDataPropsParams) { - const apyRaw = await this.vaultDefinitionResolver.getVaultApy(definition.id); - return apyRaw * 100; - } - - async getLabel({ - definition, - }: GetDisplayPropsParams< - VaporwaveVault, - DefaultAppTokenDataProps, - VaporwaveFinanceVaultDefinition - >): Promise { - return definition.name; - } -} diff --git a/src/apps/vaporwave-finance/common/vaporwave-finance.vault.token-definitions-resolver.ts b/src/apps/vaporwave-finance/common/vaporwave-finance.vault.token-definitions-resolver.ts deleted file mode 100644 index 155b94804..000000000 --- a/src/apps/vaporwave-finance/common/vaporwave-finance.vault.token-definitions-resolver.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Injectable } from '@nestjs/common'; -import axios from 'axios'; - -import { Cache } from '~cache/cache.decorator'; -import { Network } from '~types/network.interface'; - -type VaporwaveFinanceVaultResponse = { - id: string; - name: string; - tokenAddress: string; - earnContractAddress: string; - status: string; -}; - -@Injectable() -export class VaporwaveFinanceVaultDefinitionsResolver { - @Cache({ - key: `studio:vaporwave:${Network.AURORA_MAINNET}:vault-data`, - ttl: 5 * 60, - }) - private async getVaultDefinitionsData() { - const { data } = await axios.get(`https://api.vaporwave.farm/vaults`); - return data; - } - - @Cache({ - key: `studio:vaporwave:${Network.AURORA_MAINNET}:vault-apy-data`, - ttl: 5 * 60, - }) - private async getVaultApyData() { - const { data } = await axios.get(`https://api.vaporwave.farm/apy`); - return data; - } - - async getVaultDefinitions() { - const definitionsDataRaw = await this.getVaultDefinitionsData(); - const definitionsData = definitionsDataRaw.filter(x => x.status == 'active' && x.tokenAddress); - - const VaultDefinitions = definitionsData.map(t => { - return { - address: t.earnContractAddress.toLowerCase(), - underlyingTokenAddress: t.tokenAddress.toLowerCase(), - name: t.name, - id: t.id, - }; - }); - - return VaultDefinitions; - } - - async getVaultApy(id: string) { - const vaultsApy = await this.getVaultApyData(); - - return vaultsApy[id]; - } -} diff --git a/src/apps/vaporwave-finance/contracts/abis/vaporwave-launchpool.json b/src/apps/vaporwave-finance/contracts/abis/vaporwave-launchpool.json deleted file mode 100644 index 4e547a779..000000000 --- a/src/apps/vaporwave-finance/contracts/abis/vaporwave-launchpool.json +++ /dev/null @@ -1,411 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_stakedToken", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_duration", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "reward", - "type": "uint256" - } - ], - "name": "RewardAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reward", - "type": "uint256" - } - ], - "name": "RewardPaid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Staked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "duration", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "earned", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "inCaseTokensGetStuck", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "lastTimeRewardApplicable", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lastUpdateTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "notifyRewardAmount", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "periodFinish", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rewardPerToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardPerTokenStored", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardRate", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardToken", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "rewards", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stakedToken", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "userRewardPerTokenPaid", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/vaporwave-finance/contracts/abis/vaporwave-vault.json b/src/apps/vaporwave-finance/contracts/abis/vaporwave-vault.json deleted file mode 100644 index 7a1619226..000000000 --- a/src/apps/vaporwave-finance/contracts/abis/vaporwave-vault.json +++ /dev/null @@ -1,509 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "contract IStrategy", - "name": "_strategy", - "type": "address" - }, - { - "internalType": "string", - "name": "_name", - "type": "string" - }, - { - "internalType": "string", - "name": "_symbol", - "type": "string" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "TokensGotStuck", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "VaultDeposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "r", - "type": "uint256" - } - ], - "name": "VaultWithdraw", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "available", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "balance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getPricePerFullShare", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "inCaseTokensGetStuck", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" - } - ], - "name": "increaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "retireStrat", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategy", - "outputs": [ - { - "internalType": "contract IStrategy", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "want", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_shares", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/vaporwave-finance/contracts/ethers/VaporwaveLaunchpool.ts b/src/apps/vaporwave-finance/contracts/ethers/VaporwaveLaunchpool.ts deleted file mode 100644 index 7b0a24b1d..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/VaporwaveLaunchpool.ts +++ /dev/null @@ -1,506 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface VaporwaveLaunchpoolInterface extends utils.Interface { - functions: { - 'balanceOf(address)': FunctionFragment; - 'duration()': FunctionFragment; - 'earned(address)': FunctionFragment; - 'exit()': FunctionFragment; - 'getReward()': FunctionFragment; - 'inCaseTokensGetStuck(address)': FunctionFragment; - 'lastTimeRewardApplicable()': FunctionFragment; - 'lastUpdateTime()': FunctionFragment; - 'notifyRewardAmount()': FunctionFragment; - 'owner()': FunctionFragment; - 'periodFinish()': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'rewardPerToken()': FunctionFragment; - 'rewardPerTokenStored()': FunctionFragment; - 'rewardRate()': FunctionFragment; - 'rewardToken()': FunctionFragment; - 'rewards(address)': FunctionFragment; - 'stake(uint256)': FunctionFragment; - 'stakedToken()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'userRewardPerTokenPaid(address)': FunctionFragment; - 'withdraw(uint256)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'balanceOf' - | 'duration' - | 'earned' - | 'exit' - | 'getReward' - | 'inCaseTokensGetStuck' - | 'lastTimeRewardApplicable' - | 'lastUpdateTime' - | 'notifyRewardAmount' - | 'owner' - | 'periodFinish' - | 'renounceOwnership' - | 'rewardPerToken' - | 'rewardPerTokenStored' - | 'rewardRate' - | 'rewardToken' - | 'rewards' - | 'stake' - | 'stakedToken' - | 'totalSupply' - | 'transferOwnership' - | 'userRewardPerTokenPaid' - | 'withdraw', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'duration', values?: undefined): string; - encodeFunctionData(functionFragment: 'earned', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'exit', values?: undefined): string; - encodeFunctionData(functionFragment: 'getReward', values?: undefined): string; - encodeFunctionData(functionFragment: 'inCaseTokensGetStuck', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'lastTimeRewardApplicable', values?: undefined): string; - encodeFunctionData(functionFragment: 'lastUpdateTime', values?: undefined): string; - encodeFunctionData(functionFragment: 'notifyRewardAmount', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'periodFinish', values?: undefined): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardPerToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardPerTokenStored', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardRate', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewardToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'rewards', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'stake', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'stakedToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'userRewardPerTokenPaid', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'withdraw', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'duration', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'earned', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'exit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getReward', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'inCaseTokensGetStuck', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lastTimeRewardApplicable', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'lastUpdateTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'notifyRewardAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'periodFinish', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardPerToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardPerTokenStored', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardRate', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewardToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'rewards', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stake', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stakedToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'userRewardPerTokenPaid', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - - events: { - 'OwnershipTransferred(address,address)': EventFragment; - 'RewardAdded(uint256)': EventFragment; - 'RewardPaid(address,uint256)': EventFragment; - 'Staked(address,uint256)': EventFragment; - 'Withdrawn(address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardAdded'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RewardPaid'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Staked'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Withdrawn'): EventFragment; -} - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface RewardAddedEventObject { - reward: BigNumber; -} -export type RewardAddedEvent = TypedEvent<[BigNumber], RewardAddedEventObject>; - -export type RewardAddedEventFilter = TypedEventFilter; - -export interface RewardPaidEventObject { - user: string; - reward: BigNumber; -} -export type RewardPaidEvent = TypedEvent<[string, BigNumber], RewardPaidEventObject>; - -export type RewardPaidEventFilter = TypedEventFilter; - -export interface StakedEventObject { - user: string; - amount: BigNumber; -} -export type StakedEvent = TypedEvent<[string, BigNumber], StakedEventObject>; - -export type StakedEventFilter = TypedEventFilter; - -export interface WithdrawnEventObject { - user: string; - amount: BigNumber; -} -export type WithdrawnEvent = TypedEvent<[string, BigNumber], WithdrawnEventObject>; - -export type WithdrawnEventFilter = TypedEventFilter; - -export interface VaporwaveLaunchpool extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: VaporwaveLaunchpoolInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - duration(overrides?: CallOverrides): Promise<[BigNumber]>; - - earned(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - exit(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getReward(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lastTimeRewardApplicable(overrides?: CallOverrides): Promise<[BigNumber]>; - - lastUpdateTime(overrides?: CallOverrides): Promise<[BigNumber]>; - - notifyRewardAmount(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - periodFinish(overrides?: CallOverrides): Promise<[BigNumber]>; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardPerToken(overrides?: CallOverrides): Promise<[BigNumber]>; - - rewardPerTokenStored(overrides?: CallOverrides): Promise<[BigNumber]>; - - rewardRate(overrides?: CallOverrides): Promise<[BigNumber]>; - - rewardToken(overrides?: CallOverrides): Promise<[string]>; - - rewards(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakedToken(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userRewardPerTokenPaid(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - duration(overrides?: CallOverrides): Promise; - - earned(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - exit(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getReward(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lastTimeRewardApplicable(overrides?: CallOverrides): Promise; - - lastUpdateTime(overrides?: CallOverrides): Promise; - - notifyRewardAmount(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - periodFinish(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardPerToken(overrides?: CallOverrides): Promise; - - rewardPerTokenStored(overrides?: CallOverrides): Promise; - - rewardRate(overrides?: CallOverrides): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - rewards(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakedToken(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userRewardPerTokenPaid(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - duration(overrides?: CallOverrides): Promise; - - earned(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - exit(overrides?: CallOverrides): Promise; - - getReward(overrides?: CallOverrides): Promise; - - inCaseTokensGetStuck(_token: PromiseOrValue, overrides?: CallOverrides): Promise; - - lastTimeRewardApplicable(overrides?: CallOverrides): Promise; - - lastUpdateTime(overrides?: CallOverrides): Promise; - - notifyRewardAmount(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - periodFinish(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - rewardPerToken(overrides?: CallOverrides): Promise; - - rewardPerTokenStored(overrides?: CallOverrides): Promise; - - rewardRate(overrides?: CallOverrides): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - rewards(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - stake(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - stakedToken(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - userRewardPerTokenPaid(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw(amount: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - filters: { - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'RewardAdded(uint256)'(reward?: null): RewardAddedEventFilter; - RewardAdded(reward?: null): RewardAddedEventFilter; - - 'RewardPaid(address,uint256)'(user?: PromiseOrValue | null, reward?: null): RewardPaidEventFilter; - RewardPaid(user?: PromiseOrValue | null, reward?: null): RewardPaidEventFilter; - - 'Staked(address,uint256)'(user?: PromiseOrValue | null, amount?: null): StakedEventFilter; - Staked(user?: PromiseOrValue | null, amount?: null): StakedEventFilter; - - 'Withdrawn(address,uint256)'(user?: PromiseOrValue | null, amount?: null): WithdrawnEventFilter; - Withdrawn(user?: PromiseOrValue | null, amount?: null): WithdrawnEventFilter; - }; - - estimateGas: { - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - duration(overrides?: CallOverrides): Promise; - - earned(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - exit(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getReward(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lastTimeRewardApplicable(overrides?: CallOverrides): Promise; - - lastUpdateTime(overrides?: CallOverrides): Promise; - - notifyRewardAmount(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - periodFinish(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardPerToken(overrides?: CallOverrides): Promise; - - rewardPerTokenStored(overrides?: CallOverrides): Promise; - - rewardRate(overrides?: CallOverrides): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - rewards(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakedToken(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userRewardPerTokenPaid(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - duration(overrides?: CallOverrides): Promise; - - earned(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - exit(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getReward(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - lastTimeRewardApplicable(overrides?: CallOverrides): Promise; - - lastUpdateTime(overrides?: CallOverrides): Promise; - - notifyRewardAmount(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - owner(overrides?: CallOverrides): Promise; - - periodFinish(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - rewardPerToken(overrides?: CallOverrides): Promise; - - rewardPerTokenStored(overrides?: CallOverrides): Promise; - - rewardRate(overrides?: CallOverrides): Promise; - - rewardToken(overrides?: CallOverrides): Promise; - - rewards(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - stake( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - stakedToken(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - userRewardPerTokenPaid(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdraw( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/vaporwave-finance/contracts/ethers/VaporwaveVault.ts b/src/apps/vaporwave-finance/contracts/ethers/VaporwaveVault.ts deleted file mode 100644 index 7a7190fac..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/VaporwaveVault.ts +++ /dev/null @@ -1,703 +0,0 @@ -/* 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, PromiseOrValue } from './common'; - -export interface VaporwaveVaultInterface extends utils.Interface { - functions: { - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'available()': FunctionFragment; - 'balance()': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'decimals()': FunctionFragment; - 'decreaseAllowance(address,uint256)': FunctionFragment; - 'deposit(uint256)': FunctionFragment; - 'depositAll()': FunctionFragment; - 'getPricePerFullShare()': FunctionFragment; - 'inCaseTokensGetStuck(address)': FunctionFragment; - 'increaseAllowance(address,uint256)': FunctionFragment; - 'name()': FunctionFragment; - 'owner()': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'retireStrat()': FunctionFragment; - 'strategy()': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'want()': FunctionFragment; - 'withdraw(uint256)': FunctionFragment; - 'withdrawAll()': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'allowance' - | 'approve' - | 'available' - | 'balance' - | 'balanceOf' - | 'decimals' - | 'decreaseAllowance' - | 'deposit' - | 'depositAll' - | 'getPricePerFullShare' - | 'inCaseTokensGetStuck' - | 'increaseAllowance' - | 'name' - | 'owner' - | 'renounceOwnership' - | 'retireStrat' - | 'strategy' - | 'symbol' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'transferOwnership' - | 'want' - | 'withdraw' - | 'withdrawAll', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'available', values?: undefined): string; - encodeFunctionData(functionFragment: 'balance', values?: undefined): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData( - functionFragment: 'decreaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'deposit', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'depositAll', values?: undefined): string; - encodeFunctionData(functionFragment: 'getPricePerFullShare', values?: undefined): string; - encodeFunctionData(functionFragment: 'inCaseTokensGetStuck', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'increaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'retireStrat', values?: undefined): string; - encodeFunctionData(functionFragment: 'strategy', values?: undefined): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'want', values?: undefined): string; - encodeFunctionData(functionFragment: 'withdraw', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'withdrawAll', values?: undefined): string; - - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'available', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decreaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'depositAll', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getPricePerFullShare', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'inCaseTokensGetStuck', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'increaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'retireStrat', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'strategy', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'want', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawAll', data: BytesLike): Result; - - events: { - 'Approval(address,address,uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'TokensGotStuck(address)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - 'VaultDeposit(uint256)': EventFragment; - 'VaultWithdraw(uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'TokensGotStuck'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'VaultDeposit'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'VaultWithdraw'): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface TokensGotStuckEventObject { - _token: string; -} -export type TokensGotStuckEvent = TypedEvent<[string], TokensGotStuckEventObject>; - -export type TokensGotStuckEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface VaultDepositEventObject { - _amount: BigNumber; -} -export type VaultDepositEvent = TypedEvent<[BigNumber], VaultDepositEventObject>; - -export type VaultDepositEventFilter = TypedEventFilter; - -export interface VaultWithdrawEventObject { - r: BigNumber; -} -export type VaultWithdrawEvent = TypedEvent<[BigNumber], VaultWithdrawEventObject>; - -export type VaultWithdrawEventFilter = TypedEventFilter; - -export interface VaporwaveVault extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: VaporwaveVaultInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - available(overrides?: CallOverrides): Promise<[BigNumber]>; - - balance(overrides?: CallOverrides): Promise<[BigNumber]>; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - depositAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getPricePerFullShare(overrides?: CallOverrides): Promise<[BigNumber]>; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - retireStrat(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - strategy(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - want(overrides?: CallOverrides): Promise<[string]>; - - withdraw( - _shares: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - available(overrides?: CallOverrides): Promise; - - balance(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - depositAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getPricePerFullShare(overrides?: CallOverrides): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - retireStrat(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - strategy(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - want(overrides?: CallOverrides): Promise; - - withdraw( - _shares: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - available(overrides?: CallOverrides): Promise; - - balance(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - deposit(_amount: PromiseOrValue, overrides?: CallOverrides): Promise; - - depositAll(overrides?: CallOverrides): Promise; - - getPricePerFullShare(overrides?: CallOverrides): Promise; - - inCaseTokensGetStuck(_token: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - retireStrat(overrides?: CallOverrides): Promise; - - strategy(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - want(overrides?: CallOverrides): Promise; - - withdraw(_shares: PromiseOrValue, overrides?: CallOverrides): Promise; - - withdrawAll(overrides?: CallOverrides): Promise; - }; - - filters: { - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'TokensGotStuck(address)'(_token?: null): TokensGotStuckEventFilter; - TokensGotStuck(_token?: null): TokensGotStuckEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - - 'VaultDeposit(uint256)'(_amount?: null): VaultDepositEventFilter; - VaultDeposit(_amount?: null): VaultDepositEventFilter; - - 'VaultWithdraw(uint256)'(r?: null): VaultWithdrawEventFilter; - VaultWithdraw(r?: null): VaultWithdrawEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - available(overrides?: CallOverrides): Promise; - - balance(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - depositAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getPricePerFullShare(overrides?: CallOverrides): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - retireStrat(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - strategy(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - want(overrides?: CallOverrides): Promise; - - withdraw( - _shares: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - available(overrides?: CallOverrides): Promise; - - balance(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - deposit( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - depositAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - getPricePerFullShare(overrides?: CallOverrides): Promise; - - inCaseTokensGetStuck( - _token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - retireStrat(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - strategy(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - want(overrides?: CallOverrides): Promise; - - withdraw( - _shares: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - withdrawAll(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - }; -} diff --git a/src/apps/vaporwave-finance/contracts/ethers/common.ts b/src/apps/vaporwave-finance/contracts/ethers/common.ts deleted file mode 100644 index 35f31be99..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from '@ethersproject/providers'; -import type { Event, EventFilter } from 'ethers'; - -export interface TypedEvent = any, TArgsObject = any> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - (eventFilter: TypedEventFilter, listener: TypedListener): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never; - -export type PromiseOrValue = T | Promise; diff --git a/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveLaunchpool__factory.ts b/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveLaunchpool__factory.ts deleted file mode 100644 index 58d58f540..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveLaunchpool__factory.ts +++ /dev/null @@ -1,429 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { VaporwaveLaunchpool, VaporwaveLaunchpoolInterface } from '../VaporwaveLaunchpool'; - -const _abi = [ - { - inputs: [ - { - internalType: 'address', - name: '_stakedToken', - type: 'address', - }, - { - internalType: 'address', - name: '_rewardToken', - type: 'address', - }, - { - internalType: 'uint256', - name: '_duration', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'reward', - type: 'uint256', - }, - ], - name: 'RewardAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reward', - type: 'uint256', - }, - ], - name: 'RewardPaid', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Staked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'user', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Withdrawn', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'duration', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'earned', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'exit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getReward', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_token', - type: 'address', - }, - ], - name: 'inCaseTokensGetStuck', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'lastTimeRewardApplicable', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'lastUpdateTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'notifyRewardAmount', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'periodFinish', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rewardPerToken', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardPerTokenStored', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardRate', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'rewards', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'stake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'stakedToken', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'userRewardPerTokenPaid', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class VaporwaveLaunchpool__factory { - static readonly abi = _abi; - static createInterface(): VaporwaveLaunchpoolInterface { - return new utils.Interface(_abi) as VaporwaveLaunchpoolInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): VaporwaveLaunchpool { - return new Contract(address, _abi, signerOrProvider) as VaporwaveLaunchpool; - } -} diff --git a/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveVault__factory.ts b/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveVault__factory.ts deleted file mode 100644 index 2cfa0166e..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/factories/VaporwaveVault__factory.ts +++ /dev/null @@ -1,527 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { VaporwaveVault, VaporwaveVaultInterface } from '../VaporwaveVault'; - -const _abi = [ - { - inputs: [ - { - internalType: 'contract IStrategy', - name: '_strategy', - type: 'address', - }, - { - internalType: 'string', - name: '_name', - type: 'string', - }, - { - internalType: 'string', - name: '_symbol', - type: 'string', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_token', - type: 'address', - }, - ], - name: 'TokensGotStuck', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'VaultDeposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'r', - type: 'uint256', - }, - ], - name: 'VaultWithdraw', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'available', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'balance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'subtractedValue', - type: 'uint256', - }, - ], - name: 'decreaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getPricePerFullShare', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_token', - type: 'address', - }, - ], - name: 'inCaseTokensGetStuck', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'addedValue', - type: 'uint256', - }, - ], - name: 'increaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'retireStrat', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'strategy', - outputs: [ - { - internalType: 'contract IStrategy', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'want', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_shares', - type: 'uint256', - }, - ], - name: 'withdraw', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class VaporwaveVault__factory { - static readonly abi = _abi; - static createInterface(): VaporwaveVaultInterface { - return new utils.Interface(_abi) as VaporwaveVaultInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): VaporwaveVault { - return new Contract(address, _abi, signerOrProvider) as VaporwaveVault; - } -} diff --git a/src/apps/vaporwave-finance/contracts/ethers/factories/index.ts b/src/apps/vaporwave-finance/contracts/ethers/factories/index.ts deleted file mode 100644 index 9f71283ea..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/factories/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { VaporwaveLaunchpool__factory } from './VaporwaveLaunchpool__factory'; -export { VaporwaveVault__factory } from './VaporwaveVault__factory'; diff --git a/src/apps/vaporwave-finance/contracts/ethers/index.ts b/src/apps/vaporwave-finance/contracts/ethers/index.ts deleted file mode 100644 index da1b27e67..000000000 --- a/src/apps/vaporwave-finance/contracts/ethers/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { VaporwaveLaunchpool } from './VaporwaveLaunchpool'; -export type { VaporwaveVault } from './VaporwaveVault'; -export * as factories from './factories'; -export { VaporwaveLaunchpool__factory } from './factories/VaporwaveLaunchpool__factory'; -export { VaporwaveVault__factory } from './factories/VaporwaveVault__factory'; diff --git a/src/apps/vaporwave-finance/contracts/index.ts b/src/apps/vaporwave-finance/contracts/index.ts deleted file mode 100644 index bb5fe6c56..000000000 --- a/src/apps/vaporwave-finance/contracts/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Injectable, Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { ContractFactory } from '~contract/contracts'; -import { Network } from '~types/network.interface'; - -import { VaporwaveLaunchpool__factory, VaporwaveVault__factory } from './ethers'; - -// eslint-disable-next-line -type ContractOpts = { address: string; network: Network }; - -@Injectable() -export class VaporwaveFinanceContractFactory extends ContractFactory { - constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { - super((network: Network) => appToolkit.getNetworkProvider(network)); - } - - vaporwaveLaunchpool({ address, network }: ContractOpts) { - return VaporwaveLaunchpool__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } - vaporwaveVault({ address, network }: ContractOpts) { - return VaporwaveVault__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } -} - -export type { VaporwaveLaunchpool } from './ethers'; -export type { VaporwaveVault } from './ethers'; diff --git a/src/apps/vaporwave-finance/vaporwave-finance.module.ts b/src/apps/vaporwave-finance/vaporwave-finance.module.ts deleted file mode 100644 index 0e9a2b7e1..000000000 --- a/src/apps/vaporwave-finance/vaporwave-finance.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { AbstractApp } from '~app/app.dynamic-module'; - -import { AuroraVaporwaveFinanceFarmContractPositionFetcher } from './aurora/vaporwave-finance.farm.contract-position-fetcher'; -import { AuroraVaporwaveFinanceVaultTokenFetcher } from './aurora/vaporwave-finance.vault.token-fetcher'; -import { VaporwaveFinanceVaultDefinitionsResolver } from './common/vaporwave-finance.vault.token-definitions-resolver'; -import { VaporwaveFinanceContractFactory } from './contracts'; - -@Module({ - providers: [ - VaporwaveFinanceContractFactory, - VaporwaveFinanceVaultDefinitionsResolver, - AuroraVaporwaveFinanceFarmContractPositionFetcher, - AuroraVaporwaveFinanceVaultTokenFetcher, - ], -}) -export class VaporwaveFinanceAppModule extends AbstractApp() {}