mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix conflicts. Stable config implementation. Migrate from constants to configuration files per pool. Skip script loads while compilation.
This commit is contained in:
parent
cf70929eee
commit
9de0fe2bc3
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ dist/
|
|||
build/
|
||||
.vscode
|
||||
.idea
|
||||
types/
|
||||
|
||||
coverage
|
||||
.coverage_artifacts
|
||||
|
|
|
@ -13,6 +13,7 @@ usePlugin('@nomiclabs/buidler-waffle');
|
|||
usePlugin('@nomiclabs/buidler-etherscan');
|
||||
//usePlugin('buidler-gas-reporter');
|
||||
|
||||
const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
|
||||
const DEFAULT_BLOCK_GAS_LIMIT = 10000000;
|
||||
const DEFAULT_GAS_PRICE = 10;
|
||||
const HARDFORK = 'istanbul';
|
||||
|
@ -25,12 +26,15 @@ const MNEMONICS: {[network: string]: string} = {
|
|||
[eEthereumNetwork.main]: '',
|
||||
};
|
||||
|
||||
['misc', 'migrations', 'dev-deployment'].forEach((folder) => {
|
||||
const tasksPath = path.join(__dirname, 'tasks', folder);
|
||||
fs.readdirSync(tasksPath)
|
||||
.filter((pth) => pth.includes('.ts'))
|
||||
.forEach((task) => require(`${tasksPath}/${task}`));
|
||||
});
|
||||
// Prevent to load scripts before compilation and typechain
|
||||
if (!SKIP_LOAD) {
|
||||
['misc', 'migrations', 'dev-deployment'].forEach((folder) => {
|
||||
const tasksPath = path.join(__dirname, 'tasks', folder);
|
||||
fs.readdirSync(tasksPath)
|
||||
.filter((pth) => pth.includes('.ts'))
|
||||
.forEach((task) => require(`${tasksPath}/${task}`));
|
||||
});
|
||||
}
|
||||
|
||||
const getCommonNetworkConfig = (networkName: eEthereumNetwork, networkId: number) => {
|
||||
return {
|
||||
|
|
|
@ -32,7 +32,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
|
|||
// PROTOCOL GLOBAL PARAMS
|
||||
// ----------------
|
||||
|
||||
export const CommonsConfig = {
|
||||
export const CommonsConfig: ICommonConfiguration = {
|
||||
ConfigName: 'Commons',
|
||||
ProviderId: 0,
|
||||
ReserveSymbols: [],
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
},
|
||||
"FeeProvider": {
|
||||
"buidlerevm": {
|
||||
"address": "0xD9273d497eDBC967F39d419461CfcF382a0A822e"
|
||||
"address": "0xFAe0fd738dAbc8a0426F47437322b6d026A9FD95",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0xD9273d497eDBC967F39d419461CfcF382a0A822e"
|
||||
|
@ -49,7 +50,7 @@
|
|||
},
|
||||
"LendingPoolConfigurator": {
|
||||
"buidlerevm": {
|
||||
"address": "0x9EC0480CF106d6dc1c7849BA141a56F874170F97"
|
||||
"address": "0x6642B57e4265BAD868C17Fc1d1F4F88DBBA04Aa8"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0x9EC0480CF106d6dc1c7849BA141a56F874170F97"
|
||||
|
@ -62,7 +63,7 @@
|
|||
},
|
||||
"LendingPool": {
|
||||
"buidlerevm": {
|
||||
"address": "0x6642B57e4265BAD868C17Fc1d1F4F88DBBA04Aa8"
|
||||
"address": "0xD9273d497eDBC967F39d419461CfcF382a0A822e"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0x6642B57e4265BAD868C17Fc1d1F4F88DBBA04Aa8"
|
||||
|
@ -70,7 +71,7 @@
|
|||
},
|
||||
"PriceOracle": {
|
||||
"buidlerevm": {
|
||||
"address": "0x099d9fF8F818290C8b5B7Db5bFca84CEebd2714c",
|
||||
"address": "0x1750499D05Ed1674d822430FB960d5F6731fDf64",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -80,7 +81,7 @@
|
|||
},
|
||||
"MockAggregator": {
|
||||
"buidlerevm": {
|
||||
"address": "0xAF6BA11790D1942625C0c2dA07da19AB63845cfF",
|
||||
"address": "0xEC1C93A9f6a9e18E97784c76aC52053587FcDB89",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -90,7 +91,7 @@
|
|||
},
|
||||
"ChainlinkProxyPriceProvider": {
|
||||
"buidlerevm": {
|
||||
"address": "0xD83D2773a7873ae2b5f8Fb92097e20a8C64F691E",
|
||||
"address": "0x7B6C3e5486D9e6959441ab554A889099eed76290",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -100,7 +101,7 @@
|
|||
},
|
||||
"LendingRateOracle": {
|
||||
"buidlerevm": {
|
||||
"address": "0xf91aC1098F3b154671Ce83290114aaE45ac0225f",
|
||||
"address": "0xD83D2773a7873ae2b5f8Fb92097e20a8C64F691E",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -110,7 +111,7 @@
|
|||
},
|
||||
"DefaultReserveInterestRateStrategy": {
|
||||
"buidlerevm": {
|
||||
"address": "0xE91bBe8ee03560E3dda2786f95335F5399813Ca0",
|
||||
"address": "0x626FdE749F9d499d3777320CAf29484B624ab84a",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -146,7 +147,8 @@
|
|||
},
|
||||
"TokenDistributor": {
|
||||
"buidlerevm": {
|
||||
"address": "0x3bDA11B584dDff7F66E0cFe1da1562c92B45db60"
|
||||
"address": "0x2cfcA5785261fbC88EFFDd46fCFc04c22525F9e4",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0x2cfcA5785261fbC88EFFDd46fCFc04c22525F9e4"
|
||||
|
@ -154,7 +156,7 @@
|
|||
},
|
||||
"InitializableAdminUpgradeabilityProxy": {
|
||||
"buidlerevm": {
|
||||
"address": "0x3bDA11B584dDff7F66E0cFe1da1562c92B45db60",
|
||||
"address": "0xC6bA6049F86d528698B5924B8fC2FE7289D38578",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -164,7 +166,7 @@
|
|||
},
|
||||
"MockFlashLoanReceiver": {
|
||||
"buidlerevm": {
|
||||
"address": "0xEBAB67ee3ef604D5c250A53b4b8fcbBC6ec3007C"
|
||||
"address": "0x2B681757d757fbB80cc51c6094cEF5eE75bF55aA"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0x3bDA11B584dDff7F66E0cFe1da1562c92B45db60"
|
||||
|
@ -172,7 +174,7 @@
|
|||
},
|
||||
"WalletBalanceProvider": {
|
||||
"buidlerevm": {
|
||||
"address": "0xBE36BE5680244Ae1A6F983E4A6f6E1c142cdAbe3",
|
||||
"address": "0xBEF0d4b9c089a5883741fC14cbA352055f35DDA2",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -412,7 +414,7 @@
|
|||
},
|
||||
"AaveProtocolTestHelpers": {
|
||||
"buidlerevm": {
|
||||
"address": "0xD67ba212bA61226DF3d20B2bD92deD3A6770f32d"
|
||||
"address": "0xDf73fC454FA018051D4a1509e63D11530A59DE10"
|
||||
},
|
||||
"localhost": {
|
||||
"address": "0x3b050AFb4ac4ACE646b31fF3639C1CD43aC31460"
|
||||
|
@ -420,7 +422,7 @@
|
|||
},
|
||||
"StableDebtToken": {
|
||||
"buidlerevm": {
|
||||
"address": "0x3870a14c5057f596e385ea21537792fE4fF4C1BE",
|
||||
"address": "0xB660Fdd109a95718cB9d20E3A89EE6cE342aDcB6",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -430,7 +432,7 @@
|
|||
},
|
||||
"VariableDebtToken": {
|
||||
"buidlerevm": {
|
||||
"address": "0x4977FC58783ceBCC310311C800B786EcAf45F98f",
|
||||
"address": "0x830bceA96E56DBC1F8578f75fBaC0AF16B32A07d",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"localhost": {
|
||||
|
@ -444,7 +446,7 @@
|
|||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
},
|
||||
"buidlerevm": {
|
||||
"address": "0x32eF223A01fB55Fd862E6E30d5F4A3b2d44f9586",
|
||||
"address": "0xA0AB1cB92A4AF81f84dCd258155B5c25D247b54E",
|
||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -2,6 +2,7 @@ import {
|
|||
AavePools,
|
||||
iMultiPoolsAssets,
|
||||
IReserveParams,
|
||||
PoolConfiguration,
|
||||
tEthereumAddress,
|
||||
iBasicDistributionParams,
|
||||
} from './types';
|
||||
|
@ -10,39 +11,22 @@ import {AaveConfig} from '../config/aave';
|
|||
import {UniswapConfig} from '../config/uniswap';
|
||||
import {ZERO_ADDRESS} from './constants';
|
||||
|
||||
export const TEST_SNAPSHOT_ID = '0x1';
|
||||
export enum ConfigNames {
|
||||
Commons = 'Commons',
|
||||
Aave = 'Aave',
|
||||
Uniswap = 'Uniswap',
|
||||
}
|
||||
|
||||
// ----------------
|
||||
// COMMON PROTOCOL PARAMS ACROSS POOLS AND NETWORKS
|
||||
// ----------------
|
||||
|
||||
export const ALL_AAVE_RESERVES_SYMBOLS = [
|
||||
[
|
||||
'ETH',
|
||||
'DAI',
|
||||
'LEND',
|
||||
'TUSD',
|
||||
'BAT',
|
||||
'USDC',
|
||||
'USDT',
|
||||
'SUSD',
|
||||
'ZRX',
|
||||
'MKR',
|
||||
'WBTC',
|
||||
'LINK',
|
||||
'KNC',
|
||||
'MANA',
|
||||
'REP',
|
||||
'SNX',
|
||||
'BUSD',
|
||||
'UNI_DAI_ETH',
|
||||
'UNI_USDC_ETH',
|
||||
'UNI_SETH_ETH',
|
||||
'UNI_LINK_ETH',
|
||||
'UNI_MKR_ETH',
|
||||
'UNI_LEND_ETH',
|
||||
],
|
||||
];
|
||||
export const loadPoolConfig = (configName: ConfigNames): PoolConfiguration => {
|
||||
switch (configName) {
|
||||
case ConfigNames.Aave:
|
||||
return AaveConfig;
|
||||
case ConfigNames.Uniswap:
|
||||
return UniswapConfig;
|
||||
default:
|
||||
throw new Error(`Unsupported pool configuration: ${Object.values(ConfigNames)}`);
|
||||
}
|
||||
};
|
||||
|
||||
// ----------------
|
||||
// PROTOCOL PARAMS PER POOL
|
||||
|
|
|
@ -2,10 +2,6 @@ import BigNumber from 'bignumber.js';
|
|||
|
||||
export const TEST_SNAPSHOT_ID = '0x1';
|
||||
|
||||
// ----------------
|
||||
// MATH
|
||||
// ----------------
|
||||
|
||||
export const WAD = Math.pow(10, 18).toString();
|
||||
export const HALF_WAD = new BigNumber(WAD).multipliedBy(0.5).toString();
|
||||
export const RAY = new BigNumber(10).exponentiatedBy(27).toFixed();
|
||||
|
|
|
@ -13,10 +13,11 @@ import {
|
|||
iMultiPoolsAssets,
|
||||
IReserveParams,
|
||||
ICommonConfiguration,
|
||||
PoolConfiguration,
|
||||
} from './types';
|
||||
|
||||
import {LendingPoolAddressesProvider} from '../types/LendingPoolAddressesProvider';
|
||||
import {MintableErc20} from '../types/MintableErc20';
|
||||
import {MintableErc20 as MintableERC20} from '../types/MintableErc20';
|
||||
import {LendingPoolAddressesProviderRegistry} from '../types/LendingPoolAddressesProviderRegistry';
|
||||
import {LendingPoolConfigurator} from '../types/LendingPoolConfigurator';
|
||||
import {readArtifact} from '@nomiclabs/buidler/plugins';
|
||||
|
@ -39,8 +40,6 @@ import {VariableDebtToken} from '../types/VariableDebtToken';
|
|||
import {MockContract} from 'ethereum-waffle';
|
||||
import {getReservesConfigByPool} from './configuration';
|
||||
import {verifyContract} from './etherscan-verification';
|
||||
import {FeeProvider} from '../types/FeeProvider';
|
||||
import {TokenDistributor} from '../types/TokenDistributor';
|
||||
|
||||
import {cpuUsage} from 'process';
|
||||
|
||||
|
@ -48,7 +47,7 @@ const {
|
|||
ProtocolGlobalParams: {UsdAddress},
|
||||
} = CommonsConfig;
|
||||
|
||||
export type MockTokenMap = {[symbol: string]: MintableErc20};
|
||||
export type MockTokenMap = {[symbol: string]: MintableERC20};
|
||||
|
||||
export const registerContractInJsonDb = async (contractId: string, contractInstance: Contract) => {
|
||||
const currentNetwork = BRE.network.name;
|
||||
|
@ -131,15 +130,6 @@ export const deployLendingPoolAddressesProviderRegistry = async (verify?: boolea
|
|||
return instance;
|
||||
};
|
||||
|
||||
export const deployFeeProvider = async (verify?: boolean) => {
|
||||
const instance = await deployContract<FeeProvider>(eContractid.FeeProvider, []);
|
||||
|
||||
if (verify) {
|
||||
await verifyContract(eContractid.FeeProvider, instance.address, []);
|
||||
}
|
||||
return instance;
|
||||
};
|
||||
|
||||
export const deployLendingPoolConfigurator = async (verify?: boolean) => {
|
||||
const instance = await deployContract<LendingPoolConfigurator>(
|
||||
eContractid.LendingPoolConfigurator,
|
||||
|
@ -283,14 +273,6 @@ export const deployLendingPoolLiquidationManager = async (verify?: boolean) => {
|
|||
return (await liquidationManager.deployed()) as LendingPoolLiquidationManager;
|
||||
};
|
||||
|
||||
export const deployTokenDistributor = async (verify?: boolean) => {
|
||||
const instance = await deployContract<TokenDistributor>(eContractid.TokenDistributor, []);
|
||||
if (verify) {
|
||||
await verifyContract(eContractid.TokenDistributor, instance.address, []);
|
||||
}
|
||||
return instance;
|
||||
};
|
||||
|
||||
export const deployInitializableAdminUpgradeabilityProxy = async (verify?: boolean) => {
|
||||
const instance = await deployContract<InitializableAdminUpgradeabilityProxy>(
|
||||
eContractid.InitializableAdminUpgradeabilityProxy,
|
||||
|
@ -348,8 +330,8 @@ export const deployAaveProtocolTestHelpers = async (
|
|||
return instance;
|
||||
};
|
||||
|
||||
export const deployMintableErc20 = async ([name, symbol, decimals]: [string, string, number]) =>
|
||||
await deployContract<MintableErc20>(eContractid.MintableErc20, [name, symbol, decimals]);
|
||||
export const deployMintableERC20 = async ([name, symbol, decimals]: [string, string, number]) =>
|
||||
await deployContract<MintableERC20>(eContractid.MintableERC20, [name, symbol, decimals]);
|
||||
|
||||
export const deployDefaultReserveInterestRateStrategy = async ([
|
||||
addressesProvider,
|
||||
|
@ -467,11 +449,11 @@ export const getAToken = async (address?: tEthereumAddress) => {
|
|||
);
|
||||
};
|
||||
|
||||
export const getMintableErc20 = async (address: tEthereumAddress) => {
|
||||
return await getContract<MintableErc20>(
|
||||
eContractid.MintableErc20,
|
||||
export const getMintableERC20 = async (address: tEthereumAddress) => {
|
||||
return await getContract<MintableERC20>(
|
||||
eContractid.MintableERC20,
|
||||
address ||
|
||||
(await getDb().get(`${eContractid.MintableErc20}.${BRE.network.name}`).value()).address
|
||||
(await getDb().get(`${eContractid.MintableERC20}.${BRE.network.name}`).value()).address
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -492,12 +474,6 @@ export const getAaveProtocolTestHelpers = async (address?: tEthereumAddress) =>
|
|||
);
|
||||
};
|
||||
|
||||
export const getFeeProvider = async (address?: tEthereumAddress) =>
|
||||
await getContract<FeeProvider>(
|
||||
eContractid.FeeProvider,
|
||||
address || (await getDb().get(`${eContractid.FeeProvider}.${BRE.network.name}`).value()).address
|
||||
);
|
||||
|
||||
export const getInterestRateStrategy = async (address?: tEthereumAddress) => {
|
||||
return await getContract<DefaultReserveInterestRateStrategy>(
|
||||
eContractid.DefaultReserveInterestRateStrategy,
|
||||
|
@ -593,7 +569,7 @@ export const convertToCurrencyUnits = async (tokenAddress: string, amount: strin
|
|||
};
|
||||
|
||||
export const deployAllMockTokens = async (verify?: boolean) => {
|
||||
const tokens: {[symbol: string]: MockContract | MintableErc20} = {};
|
||||
const tokens: {[symbol: string]: MockContract | MintableERC20} = {};
|
||||
|
||||
const protoConfigData = getReservesConfigByPool(AavePools.proto);
|
||||
const secondaryConfigData = getReservesConfigByPool(AavePools.secondary);
|
||||
|
@ -611,7 +587,7 @@ export const deployAllMockTokens = async (verify?: boolean) => {
|
|||
decimals = 18;
|
||||
}
|
||||
|
||||
tokens[tokenSymbol] = await deployMintableErc20([
|
||||
tokens[tokenSymbol] = await deployMintableERC20([
|
||||
tokenSymbol,
|
||||
tokenSymbol,
|
||||
configData ? configData.reserveDecimals : 18,
|
||||
|
@ -619,20 +595,20 @@ export const deployAllMockTokens = async (verify?: boolean) => {
|
|||
await registerContractInJsonDb(tokenSymbol.toUpperCase(), tokens[tokenSymbol]);
|
||||
|
||||
if (verify) {
|
||||
await verifyContract(eContractid.MintableErc20, tokens[tokenSymbol].address, []);
|
||||
await verifyContract(eContractid.MintableERC20, tokens[tokenSymbol].address, []);
|
||||
}
|
||||
}
|
||||
return tokens;
|
||||
};
|
||||
|
||||
export const deployMockTokens = async (config: ICommonConfiguration, verify?: boolean) => {
|
||||
const tokens: {[symbol: string]: MockContract | MintableErc20} = {};
|
||||
export const deployMockTokens = async (config: PoolConfiguration, verify?: boolean) => {
|
||||
const tokens: {[symbol: string]: MockContract | MintableERC20} = {};
|
||||
const defaultDecimals = 18;
|
||||
|
||||
const configData = config.ReservesConfig;
|
||||
|
||||
for (const tokenSymbol of Object.keys(config.ReserveSymbols)) {
|
||||
tokens[tokenSymbol] = await deployMintableErc20([
|
||||
tokens[tokenSymbol] = await deployMintableERC20([
|
||||
tokenSymbol,
|
||||
tokenSymbol,
|
||||
Number(configData[tokenSymbol as keyof iMultiPoolsAssets<IReserveParams>].reserveDecimals) ||
|
||||
|
@ -641,21 +617,21 @@ export const deployMockTokens = async (config: ICommonConfiguration, verify?: bo
|
|||
await registerContractInJsonDb(tokenSymbol.toUpperCase(), tokens[tokenSymbol]);
|
||||
|
||||
if (verify) {
|
||||
await verifyContract(eContractid.MintableErc20, tokens[tokenSymbol].address, []);
|
||||
await verifyContract(eContractid.MintableERC20, tokens[tokenSymbol].address, []);
|
||||
}
|
||||
}
|
||||
return tokens;
|
||||
};
|
||||
|
||||
export const getMockedTokens = async (config: ICommonConfiguration) => {
|
||||
export const getMockedTokens = async (config: PoolConfiguration) => {
|
||||
const tokenSymbols = config.ReserveSymbols;
|
||||
const db = getDb();
|
||||
const tokens: MockTokenMap = await tokenSymbols.reduce<Promise<MockTokenMap>>(
|
||||
async (acc, tokenSymbol) => {
|
||||
const accumulator = await acc;
|
||||
const address = db.get(`${tokenSymbol.toUpperCase()}.${BRE.network.name}`).value().address;
|
||||
accumulator[tokenSymbol] = await getContract<MintableErc20>(
|
||||
eContractid.MintableErc20,
|
||||
accumulator[tokenSymbol] = await getContract<MintableERC20>(
|
||||
eContractid.MintableERC20,
|
||||
address
|
||||
);
|
||||
return Promise.resolve(acc);
|
||||
|
@ -671,8 +647,8 @@ export const getAllMockedTokens = async () => {
|
|||
async (acc, tokenSymbol) => {
|
||||
const accumulator = await acc;
|
||||
const address = db.get(`${tokenSymbol.toUpperCase()}.${BRE.network.name}`).value().address;
|
||||
accumulator[tokenSymbol] = await getContract<MintableErc20>(
|
||||
eContractid.MintableErc20,
|
||||
accumulator[tokenSymbol] = await getContract<MintableERC20>(
|
||||
eContractid.MintableERC20,
|
||||
address
|
||||
);
|
||||
return Promise.resolve(acc);
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
import BigNumber from 'bignumber.js';
|
||||
import {MockContract} from 'ethereum-waffle';
|
||||
import {ILendingPoolAddressesProviderRegistry} from '../types/ILendingPoolAddressesProviderRegistry';
|
||||
import {ChainlinkProxyPriceProvider} from '../types/ChainlinkProxyPriceProvider';
|
||||
import {DefaultReserveInterestRateStrategyFactory} from '../types';
|
||||
|
||||
export interface SymbolMap<T> {
|
||||
[symbol: string]: T;
|
||||
|
@ -23,7 +19,7 @@ export enum AavePools {
|
|||
export enum eContractid {
|
||||
Example = 'Example',
|
||||
LendingPoolAddressesProvider = 'LendingPoolAddressesProvider',
|
||||
MintableErc20 = 'MintableErc20',
|
||||
MintableERC20 = 'MintableERC20',
|
||||
LendingPoolAddressesProviderRegistry = 'LendingPoolAddressesProviderRegistry',
|
||||
LendingPoolParametersProvider = 'LendingPoolParametersProvider',
|
||||
LendingPoolConfigurator = 'LendingPoolConfigurator',
|
||||
|
@ -283,15 +279,19 @@ export interface ICommonConfiguration {
|
|||
ChainlinkProxyPriceProvider: iParamsPerNetwork<tEthereumAddress>;
|
||||
FallbackOracle: iParamsPerNetwork<tEthereumAddress>;
|
||||
ChainlinkAggregator: iParamsPerNetwork<ITokenAddress>;
|
||||
ReservesConfig: iMultiPoolsAssets<IReserveParams>;
|
||||
}
|
||||
|
||||
export interface IAaveConfiguration extends ICommonConfiguration {}
|
||||
export interface IAaveConfiguration extends ICommonConfiguration {
|
||||
ReservesConfig: iMultiPoolsAssets<IReserveParams>;
|
||||
}
|
||||
|
||||
export interface ITokenAddress {
|
||||
[token: string]: tEthereumAddress;
|
||||
}
|
||||
|
||||
export interface IUniswapConfiguration extends ICommonConfiguration {
|
||||
ReservesConfig: iMultiPoolsAssets<IReserveParams>;
|
||||
UniAssetsAddresses: iParamsPerNetwork<ITokenAddress>;
|
||||
}
|
||||
|
||||
export type PoolConfiguration = IAaveConfiguration | IUniswapConfiguration;
|
||||
|
|
19
package.json
19
package.json
|
@ -9,18 +9,19 @@
|
|||
"buidler:ropsten": "buidler--network ropsten",
|
||||
"buidler:main": "buidler --network main",
|
||||
"buidler help": "buidler help",
|
||||
"compile": "buidler compile",
|
||||
"compile": "SKIP_LOAD=true buidler compile",
|
||||
"types-gen": "typechain --target ethers-v5 --outDir ./types './artifacts/*.json'",
|
||||
"test": "buidler test",
|
||||
"test-scenarios": "buidler test test/__setup.spec.ts test/scenario.spec.ts",
|
||||
"aave:evm:dev:migration": "buidler dev-migration",
|
||||
"aave:evm:full:migration": "buidler full-migration",
|
||||
"aave:kovan:dev:migration": "npm run buidler:kovan -- dev-migration --verify",
|
||||
"aave:kovan:full:migration": "npm run buidler:kovan -- full-migration --verify",
|
||||
"aave:ropsten:dev:migration": "npm run buidler:ropsten -- dev-migration --verify",
|
||||
"aave:ropsten:full:migration": "npm run buidler:ropsten -- full-migration --verify",
|
||||
"aave:main:dev:migration": "npm run buidler:main -- dev-migration --verify",
|
||||
"uniswap:evm:dev:migration": "npm run buidler:uniswap -- dev-migration",
|
||||
"aave:evm:dev:migration": "buidler aave:dev",
|
||||
"aave:evm:full:migration": "buidler aave:full",
|
||||
"aave:kovan:dev:migration": "npm run buidler:kovan -- aave:dev --verify",
|
||||
"aave:kovan:full:migration": "npm run buidler:kovan -- aave:full --verify",
|
||||
"aave:ropsten:dev:migration": "npm run buidler:ropsten -- aave:dev --verify",
|
||||
"aave:ropsten:full:migration": "npm run buidler:ropsten -- aave:full --verify",
|
||||
"aave:main:dev:migration": "npm run buidler:main -- aave:dev --verify",
|
||||
"aave:main:full:migration": "npm run buidler:main -- aave:full --verify",
|
||||
"uniswap:evm:dev:migration": "npm run buidler:uniswap -- uniswap:dev",
|
||||
"dev:coverage": "buidler coverage",
|
||||
"dev:deployment": "buidler dev-deployment",
|
||||
"dev:deployExample": "buidler deploy-Example",
|
||||
|
|
|
@ -2,11 +2,7 @@ import {task} from '@nomiclabs/buidler/config';
|
|||
import {
|
||||
deployLendingPoolAddressesProvider,
|
||||
deployLendingPoolAddressesProviderRegistry,
|
||||
deployFeeProvider,
|
||||
getFeeProvider,
|
||||
insertContractAddressInDb,
|
||||
} from '../../helpers/contracts-helpers';
|
||||
import {eContractid} from '../../helpers/types';
|
||||
import {waitForTx} from '../../helpers/misc-utils';
|
||||
|
||||
task(
|
||||
|
@ -26,10 +22,4 @@ task(
|
|||
await waitForTx(
|
||||
await addressesProviderRegistry.registerAddressesProvider(addressesProvider.address, 0)
|
||||
);
|
||||
|
||||
const feeProviderImpl = await deployFeeProvider(verify);
|
||||
await waitForTx(await addressesProvider.setFeeProviderImpl(feeProviderImpl.address));
|
||||
|
||||
const feeProviderProxy = await getFeeProvider(await addressesProvider.getFeeProvider());
|
||||
await insertContractAddressInDb(eContractid.FeeProvider, feeProviderProxy.address);
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@ import {waitForTx} from '../../helpers/misc-utils';
|
|||
|
||||
task('deploy-lending-pool', 'Deploy lending pool for dev enviroment')
|
||||
.addOptionalParam('verify', 'Verify contracts at Etherscan')
|
||||
.setAction(async ({verify, config}, localBRE) => {
|
||||
.setAction(async ({verify}, localBRE) => {
|
||||
await localBRE.run('set-bre');
|
||||
|
||||
const addressesProvider = await getLendingPoolAddressesProvider();
|
||||
|
|
|
@ -17,12 +17,14 @@ import {
|
|||
import {ICommonConfiguration, iAssetBase, TokenContractId} from '../../helpers/types';
|
||||
import {waitForTx} from '../../helpers/misc-utils';
|
||||
import {getAllAggregatorsAddresses, getAllTokenAddresses} from '../../helpers/mock-helpers';
|
||||
import {ConfigNames, loadPoolConfig} from '../../helpers/configuration';
|
||||
|
||||
task('deploy-oracles', 'Deploy oracles for dev enviroment')
|
||||
.addOptionalParam('verify', 'Verify contracts at Etherscan')
|
||||
.addParam('poolConfig', 'Pool config')
|
||||
.setAction(async ({verify, poolConfig}, localBRE) => {
|
||||
.addParam('pool', `Pool name to retrieve configuration, supported: ${Object.values(ConfigNames)}`)
|
||||
.setAction(async ({verify, pool}, localBRE) => {
|
||||
await localBRE.run('set-bre');
|
||||
const poolConfig = loadPoolConfig(pool);
|
||||
const {
|
||||
Mocks: {ChainlinkAggregatorPrices, AllAssetsInitialPrices},
|
||||
ProtocolGlobalParams: {UsdAddress, MockUsdPriceInWei},
|
||||
|
@ -35,6 +37,7 @@ task('deploy-oracles', 'Deploy oracles for dev enviroment')
|
|||
} as iAssetBase<string>;
|
||||
const mockTokens = await getAllMockedTokens();
|
||||
const mockTokensAddress = Object.keys(mockTokens).reduce<iAssetBase<string>>((prev, curr) => {
|
||||
prev[curr as keyof iAssetBase<string>] = mockTokens[curr].address;
|
||||
return prev;
|
||||
}, defaultTokenList);
|
||||
const addressesProvider = await getLendingPoolAddressesProvider();
|
||||
|
|
|
@ -3,8 +3,6 @@ import {
|
|||
getLendingPoolAddressesProvider,
|
||||
initReserves,
|
||||
deployLendingPoolLiquidationManager,
|
||||
deployTokenDistributor,
|
||||
deployInitializableAdminUpgradeabilityProxy,
|
||||
insertContractAddressInDb,
|
||||
deployMockFlashLoanReceiver,
|
||||
deployWalletBalancerProvider,
|
||||
|
@ -13,13 +11,12 @@ import {
|
|||
getLendingPoolConfiguratorProxy,
|
||||
getAllMockedTokens,
|
||||
} from '../../helpers/contracts-helpers';
|
||||
import {getReservesConfigByPool, getFeeDistributionParamsCommon} from '../../helpers/configuration';
|
||||
import {ZERO_ADDRESS} from '../../helpers/constants';
|
||||
import {getReservesConfigByPool} from '../../helpers/configuration';
|
||||
|
||||
import {tEthereumAddress, AavePools, eContractid} from '../../helpers/types';
|
||||
import {waitForTx, filterMapBy} from '../../helpers/misc-utils';
|
||||
import {enableReservesToBorrow, enableReservesAsCollateral} from '../../helpers/init-helpers';
|
||||
import {getAllTokenAddresses, getAllAggregatorsAddresses} from '../../helpers/mock-helpers';
|
||||
import {getAllTokenAddresses} from '../../helpers/mock-helpers';
|
||||
|
||||
task('initialize-lending-pool', 'Initialize lending pool configuration.')
|
||||
.addOptionalParam('verify', 'Verify contracts at Etherscan')
|
||||
|
@ -29,14 +26,8 @@ task('initialize-lending-pool', 'Initialize lending pool configuration.')
|
|||
const mockTokens = await getAllMockedTokens();
|
||||
const lendingPoolProxy = await getLendingPool();
|
||||
const lendingPoolConfiguratorProxy = await getLendingPoolConfiguratorProxy();
|
||||
const [lendingPoolManager, secondaryWallet] = await Promise.all(
|
||||
(await localBRE.ethers.getSigners()).map(async (x) => x.getAddress())
|
||||
);
|
||||
|
||||
const allTokenAddresses = getAllTokenAddresses(mockTokens);
|
||||
|
||||
const {USD, ...tokensAddressesWithoutUsd} = allTokenAddresses;
|
||||
|
||||
const addressesProvider = await getLendingPoolAddressesProvider();
|
||||
|
||||
const protoPoolReservesAddresses = <{[symbol: string]: tEthereumAddress}>(
|
||||
|
@ -72,29 +63,6 @@ task('initialize-lending-pool', 'Initialize lending pool configuration.')
|
|||
await addressesProvider.setLendingPoolLiquidationManager(liquidationManager.address)
|
||||
);
|
||||
|
||||
const {receivers, percentages} = getFeeDistributionParamsCommon(lendingPoolManager);
|
||||
|
||||
const tokenDistributorImpl = await deployTokenDistributor(verify);
|
||||
const tokenDistributorProxy = await deployInitializableAdminUpgradeabilityProxy(verify);
|
||||
const implementationParams = tokenDistributorImpl.interface.encodeFunctionData('initialize', [
|
||||
ZERO_ADDRESS,
|
||||
tokensAddressesWithoutUsd.LEND,
|
||||
'0x0000000000000000000000000000000000000000', // TODO: finish removal
|
||||
receivers,
|
||||
percentages,
|
||||
Object.values(tokensAddressesWithoutUsd),
|
||||
]);
|
||||
await waitForTx(
|
||||
await tokenDistributorProxy['initialize(address,address,bytes)'](
|
||||
tokenDistributorImpl.address,
|
||||
secondaryWallet,
|
||||
implementationParams
|
||||
)
|
||||
);
|
||||
await waitForTx(await addressesProvider.setTokenDistributor(tokenDistributorProxy.address));
|
||||
|
||||
await insertContractAddressInDb(eContractid.TokenDistributor, tokenDistributorProxy.address);
|
||||
|
||||
const mockFlashLoanReceiver = await deployMockFlashLoanReceiver(
|
||||
addressesProvider.address,
|
||||
verify
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {task} from '@nomiclabs/buidler/config';
|
||||
import {checkVerification} from '../../helpers/etherscan-verification';
|
||||
import {AaveConfig as poolConfig} from '../../config/aave';
|
||||
import {ConfigNames} from '../../helpers/configuration';
|
||||
|
||||
task('aave:dev', 'Deploy development enviroment')
|
||||
.addOptionalParam('verify', 'Verify contracts at Etherscan')
|
||||
|
@ -24,7 +24,7 @@ task('aave:dev', 'Deploy development enviroment')
|
|||
await localBRE.run('deploy-lending-pool', {verify});
|
||||
|
||||
console.log('4. Deploy oracles');
|
||||
await localBRE.run('deploy-oracles', {verify, poolConfig});
|
||||
await localBRE.run('deploy-oracles', {verify, pool: ConfigNames.Aave});
|
||||
|
||||
console.log('5. Initialize lending pool');
|
||||
await localBRE.run('initialize-lending-pool', {verify});
|
||||
|
|
|
@ -2,7 +2,7 @@ import rawBRE from '@nomiclabs/buidler';
|
|||
import {MockContract} from 'ethereum-waffle';
|
||||
import {
|
||||
deployLendingPoolAddressesProvider,
|
||||
deployMintableErc20 as deployMintableERC20,
|
||||
deployMintableERC20,
|
||||
deployLendingPoolAddressesProviderRegistry,
|
||||
deployLendingPoolConfigurator,
|
||||
deployLendingPool,
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import {
|
||||
APPROVAL_AMOUNT_LENDING_POOL,
|
||||
AAVE_REFERRAL,
|
||||
MAX_UINT_AMOUNT,
|
||||
ZERO_ADDRESS,
|
||||
} from '../helpers/constants';
|
||||
import {MAX_UINT_AMOUNT, ZERO_ADDRESS} from '../helpers/constants';
|
||||
import {convertToCurrencyDecimals} from '../helpers/contracts-helpers';
|
||||
import {expect} from 'chai';
|
||||
import {ethers} from 'ethers';
|
||||
import {RateMode, ProtocolErrors} from '../helpers/types';
|
||||
import {makeSuite, TestEnv} from './helpers/make-suite';
|
||||
import {CommonsConfig} from '../config/commons';
|
||||
|
||||
const APPROVAL_AMOUNT_LENDING_POOL =
|
||||
CommonsConfig.ProtocolGlobalParams.ApprovalAmountLendingPoolCore;
|
||||
const AAVE_REFERRAL = CommonsConfig.ProtocolGlobalParams.AaveReferral;
|
||||
|
||||
makeSuite('AToken: Transfer', (testEnv: TestEnv) => {
|
||||
const {
|
||||
|
@ -96,10 +96,8 @@ makeSuite('AToken: Transfer', (testEnv: TestEnv) => {
|
|||
await weth.connect(users[0].signer).mint(await convertToCurrencyDecimals(weth.address, '1'));
|
||||
|
||||
await weth.connect(users[0].signer).approve(pool.address, APPROVAL_AMOUNT_LENDING_POOL);
|
||||
|
||||
await pool
|
||||
.connect(users[0].signer)
|
||||
.deposit(weth.address, ethers.utils.parseEther('1.0'), '0');
|
||||
|
||||
await pool.connect(users[0].signer).deposit(weth.address, ethers.utils.parseEther('1.0'), '0');
|
||||
await expect(
|
||||
pool
|
||||
.connect(users[1].signer)
|
||||
|
@ -134,11 +132,11 @@ makeSuite('AToken: Transfer', (testEnv: TestEnv) => {
|
|||
|
||||
it('User 1 repays the borrow, transfers aDAI back to user 0', async () => {
|
||||
const {users, pool, aDai, dai, weth} = testEnv;
|
||||
|
||||
|
||||
await weth.connect(users[1].signer).mint(await convertToCurrencyDecimals(weth.address, '2'));
|
||||
|
||||
await weth.connect(users[1].signer).approve(pool.address, APPROVAL_AMOUNT_LENDING_POOL);
|
||||
|
||||
|
||||
await pool
|
||||
.connect(users[1].signer)
|
||||
.repay(weth.address, MAX_UINT_AMOUNT, RateMode.Stable, users[1].address);
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import {TestEnv, makeSuite} from './helpers/make-suite';
|
||||
import {RAY, APPROVAL_AMOUNT_LENDING_POOL} from '../helpers/constants';
|
||||
import {RAY} from '../helpers/constants';
|
||||
import {convertToCurrencyDecimals} from '../helpers/contracts-helpers';
|
||||
import {ProtocolErrors} from '../helpers/types';
|
||||
import {CommonsConfig} from '../config/commons';
|
||||
|
||||
const APPROVAL_AMOUNT_LENDING_POOL =
|
||||
CommonsConfig.ProtocolGlobalParams.ApprovalAmountLendingPoolCore;
|
||||
|
||||
const {expect} = require('chai');
|
||||
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
import {TestEnv, makeSuite} from './helpers/make-suite';
|
||||
import {APPROVAL_AMOUNT_LENDING_POOL, oneRay} from '../helpers/constants';
|
||||
import {oneRay} from '../helpers/constants';
|
||||
import {convertToCurrencyDecimals, getMockFlashLoanReceiver} from '../helpers/contracts-helpers';
|
||||
import {ethers} from 'ethers';
|
||||
import {MockFlashLoanReceiver} from '../types/MockFlashLoanReceiver';
|
||||
import {ProtocolErrors} from '../helpers/types';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import {CommonsConfig} from '../config/commons';
|
||||
|
||||
const APPROVAL_AMOUNT_LENDING_POOL =
|
||||
CommonsConfig.ProtocolGlobalParams.ApprovalAmountLendingPoolCore;
|
||||
|
||||
const {expect} = require('chai');
|
||||
|
||||
|
|
|
@ -21,15 +21,14 @@ import {getReserveAddressFromSymbol, getReserveData, getUserData} from './utils/
|
|||
import {
|
||||
convertToCurrencyDecimals,
|
||||
getAToken,
|
||||
getMintableErc20,
|
||||
getMintableERC20,
|
||||
} from '../../helpers/contracts-helpers';
|
||||
import {MAX_UINT_AMOUNT, ONE_YEAR} from '../../helpers/constants';
|
||||
import {SignerWithAddress, TestEnv} from './make-suite';
|
||||
import {BRE, increaseTime, timeLatest} from '../../helpers/misc-utils';
|
||||
import {BRE, increaseTime, timeLatest, waitForTx} from '../../helpers/misc-utils';
|
||||
|
||||
import chai from 'chai';
|
||||
import {ReserveData, UserReserveData} from './utils/interfaces';
|
||||
import {waitForTx} from '../__setup.spec';
|
||||
import {ContractReceipt} from 'ethers';
|
||||
import {AToken} from '../../types/AToken';
|
||||
import {RateMode, tEthereumAddress} from '../../helpers/types';
|
||||
|
@ -114,7 +113,7 @@ export const configuration: ActionsConfig = <ActionsConfig>{};
|
|||
export const mint = async (reserveSymbol: string, amount: string, user: SignerWithAddress) => {
|
||||
const reserve = await getReserveAddressFromSymbol(reserveSymbol);
|
||||
|
||||
const token = await getMintableErc20(reserve);
|
||||
const token = await getMintableERC20(reserve);
|
||||
|
||||
await waitForTx(
|
||||
await token.connect(user.signer).mint(await convertToCurrencyDecimals(reserve, amount))
|
||||
|
@ -125,7 +124,7 @@ export const approve = async (reserveSymbol: string, user: SignerWithAddress, te
|
|||
const {pool} = testEnv;
|
||||
const reserve = await getReserveAddressFromSymbol(reserveSymbol);
|
||||
|
||||
const token = await getMintableErc20(reserve);
|
||||
const token = await getMintableERC20(reserve);
|
||||
|
||||
await token.connect(user.signer).approve(pool.address, '100000000000000000000000000000');
|
||||
};
|
||||
|
|
|
@ -6,14 +6,14 @@ import {
|
|||
getLendingPoolAddressesProvider,
|
||||
getAaveProtocolTestHelpers,
|
||||
getAToken,
|
||||
getMintableErc20,
|
||||
getMintableERC20,
|
||||
getLendingPoolConfiguratorProxy,
|
||||
getPriceOracle,
|
||||
} from '../../helpers/contracts-helpers';
|
||||
import {tEthereumAddress} from '../../helpers/types';
|
||||
import {LendingPool} from '../../types/LendingPool';
|
||||
import {AaveProtocolTestHelpers} from '../../types/AaveProtocolTestHelpers';
|
||||
import {MintableErc20} from '../../types/MintableErc20';
|
||||
import {MintableErc20 as MintableERC20} from '../../types/MintableErc20';
|
||||
import {AToken} from '../../types/AToken';
|
||||
import {LendingPoolConfigurator} from '../../types/LendingPoolConfigurator';
|
||||
|
||||
|
@ -37,12 +37,12 @@ export interface TestEnv {
|
|||
configurator: LendingPoolConfigurator;
|
||||
oracle: PriceOracle;
|
||||
helpersContract: AaveProtocolTestHelpers;
|
||||
weth: MintableErc20;
|
||||
weth: MintableERC20;
|
||||
aEth: AToken;
|
||||
dai: MintableErc20;
|
||||
dai: MintableERC20;
|
||||
aDai: AToken;
|
||||
usdc: MintableErc20;
|
||||
lend: MintableErc20;
|
||||
usdc: MintableERC20;
|
||||
lend: MintableERC20;
|
||||
addressesProvider: LendingPoolAddressesProvider;
|
||||
}
|
||||
|
||||
|
@ -60,12 +60,12 @@ const testEnv: TestEnv = {
|
|||
configurator: {} as LendingPoolConfigurator,
|
||||
helpersContract: {} as AaveProtocolTestHelpers,
|
||||
oracle: {} as PriceOracle,
|
||||
weth: {} as MintableErc20,
|
||||
weth: {} as MintableERC20,
|
||||
aEth: {} as AToken,
|
||||
dai: {} as MintableErc20,
|
||||
dai: {} as MintableERC20,
|
||||
aDai: {} as AToken,
|
||||
usdc: {} as MintableErc20,
|
||||
lend: {} as MintableErc20,
|
||||
usdc: {} as MintableERC20,
|
||||
lend: {} as MintableERC20,
|
||||
addressesProvider: {} as LendingPoolAddressesProvider,
|
||||
} as TestEnv;
|
||||
|
||||
|
@ -94,6 +94,7 @@ export async function initializeMakeSuite() {
|
|||
|
||||
testEnv.helpersContract = await getAaveProtocolTestHelpers();
|
||||
|
||||
console.log(await testEnv.helpersContract.getAllATokens());
|
||||
const aDaiAddress = (await testEnv.helpersContract.getAllATokens()).find(
|
||||
(aToken) => aToken.symbol === 'aDAI'
|
||||
)?.tokenAddress;
|
||||
|
@ -121,10 +122,10 @@ export async function initializeMakeSuite() {
|
|||
testEnv.aDai = await getAToken(aDaiAddress);
|
||||
testEnv.aEth = await getAToken(aEthAddress);
|
||||
|
||||
testEnv.dai = await getMintableErc20(daiAddress);
|
||||
testEnv.usdc = await getMintableErc20(usdcAddress);
|
||||
testEnv.lend = await getMintableErc20(lendAddress);
|
||||
testEnv.weth = await getMintableErc20(wethAddress);
|
||||
testEnv.dai = await getMintableERC20(daiAddress);
|
||||
testEnv.usdc = await getMintableERC20(usdcAddress);
|
||||
testEnv.lend = await getMintableERC20(lendAddress);
|
||||
testEnv.weth = await getMintableERC20(wethAddress);
|
||||
}
|
||||
|
||||
export function makeSuite(name: string, tests: (testEnv: TestEnv) => void) {
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
import BigNumber from 'bignumber.js';
|
||||
import {
|
||||
ONE_YEAR,
|
||||
RAY,
|
||||
MAX_UINT_AMOUNT,
|
||||
OPTIMAL_UTILIZATION_RATE,
|
||||
EXCESS_UTILIZATION_RATE,
|
||||
ZERO_ADDRESS,
|
||||
} from '../../../helpers/constants';
|
||||
import {ONE_YEAR, RAY, MAX_UINT_AMOUNT, ZERO_ADDRESS} from '../../../helpers/constants';
|
||||
import {IReserveParams, iAavePoolAssets, RateMode} from '../../../helpers/types';
|
||||
import './math';
|
||||
import {ReserveData, UserReserveData} from './interfaces';
|
||||
import {CommonsConfig} from '../../../config/commons';
|
||||
|
||||
const OPTIMAL_UTILIZATION_RATE = CommonsConfig.ProtocolGlobalParams.OptimalUtilizationRate;
|
||||
const EXCESS_UTILIZATION_RATE = CommonsConfig.ProtocolGlobalParams.ExcessUtilizationRate;
|
||||
|
||||
export const strToBN = (amount: string): BigNumber => new BigNumber(amount);
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import {ReserveData, UserReserveData} from './interfaces';
|
|||
import {
|
||||
getLendingRateOracle,
|
||||
getIErc20Detailed,
|
||||
getMintableErc20,
|
||||
getMintableERC20,
|
||||
getAToken,
|
||||
} from '../../../helpers/contracts-helpers';
|
||||
import {ZERO_ADDRESS} from '../../../helpers/constants';
|
||||
|
@ -76,7 +76,7 @@ export const getUserData = async (
|
|||
interestRedirectionAddress,
|
||||
] = aTokenData;
|
||||
|
||||
const token = await getMintableErc20(reserve);
|
||||
const token = await getMintableERC20(reserve);
|
||||
const walletBalance = new BigNumber((await token.balanceOf(user)).toString());
|
||||
|
||||
return {
|
||||
|
@ -100,7 +100,7 @@ export const getUserData = async (
|
|||
};
|
||||
|
||||
export const getReserveAddressFromSymbol = async (symbol: string) => {
|
||||
const token = await getMintableErc20(
|
||||
const token = await getMintableERC20(
|
||||
(await getDb().get(`${symbol}.${BRE.network.name}`).value()).address
|
||||
);
|
||||
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
import BigNumber from 'bignumber.js';
|
||||
|
||||
import {BRE} from '../helpers/misc-utils';
|
||||
import {APPROVAL_AMOUNT_LENDING_POOL, oneEther} from '../helpers/constants';
|
||||
import {oneEther} from '../helpers/constants';
|
||||
import {convertToCurrencyDecimals} from '../helpers/contracts-helpers';
|
||||
import {makeSuite} from './helpers/make-suite';
|
||||
import {ProtocolErrors, RateMode} from '../helpers/types';
|
||||
import {calcExpectedVariableDebtTokenBalance} from './helpers/utils/calculations';
|
||||
import {getUserData, getReserveData} from './helpers/utils/helpers';
|
||||
import {CommonsConfig} from '../config/commons';
|
||||
|
||||
const APPROVAL_AMOUNT_LENDING_POOL =
|
||||
CommonsConfig.ProtocolGlobalParams.ApprovalAmountLendingPoolCore;
|
||||
|
||||
const chai = require('chai');
|
||||
const {expect} = chai;
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
import BigNumber from 'bignumber.js';
|
||||
|
||||
import {BRE} from '../helpers/misc-utils';
|
||||
import {APPROVAL_AMOUNT_LENDING_POOL, oneEther} from '../helpers/constants';
|
||||
import {oneEther} from '../helpers/constants';
|
||||
import {convertToCurrencyDecimals} from '../helpers/contracts-helpers';
|
||||
import {makeSuite} from './helpers/make-suite';
|
||||
import {ProtocolErrors, RateMode} from '../helpers/types';
|
||||
import {calcExpectedStableDebtTokenBalance} from './helpers/utils/calculations';
|
||||
import {getUserData} from './helpers/utils/helpers';
|
||||
import {CommonsConfig} from '../config/commons';
|
||||
|
||||
const APPROVAL_AMOUNT_LENDING_POOL =
|
||||
CommonsConfig.ProtocolGlobalParams.ApprovalAmountLendingPoolCore;
|
||||
|
||||
const chai = require('chai');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import {configuration as calculationsConfiguration} from './helpers/utils/calcul
|
|||
import fs from 'fs';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import {makeSuite} from './helpers/make-suite';
|
||||
import {getReservesConfigByPool} from '../helpers/constants';
|
||||
import {getReservesConfigByPool} from '../helpers/configuration';
|
||||
import {AavePools, iAavePoolAssets, IReserveParams} from '../helpers/types';
|
||||
import {executeStory} from './helpers/scenario-engine';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "esNext",
|
||||
"target": "ES2019",
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
|
|
1394
types/AToken.d.ts
vendored
1394
types/AToken.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
150
types/AaveProtocolTestHelpers.d.ts
vendored
150
types/AaveProtocolTestHelpers.d.ts
vendored
|
@ -1,150 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface AaveProtocolTestHelpersInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'ADDRESSES_PROVIDER()': FunctionFragment;
|
||||
'getAllATokens()': FunctionFragment;
|
||||
'getAllReservesTokens()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'ADDRESSES_PROVIDER', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getAllATokens', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getAllReservesTokens', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'ADDRESSES_PROVIDER', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getAllATokens', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getAllReservesTokens', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class AaveProtocolTestHelpers extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: AaveProtocolTestHelpersInterface;
|
||||
|
||||
functions: {
|
||||
ADDRESSES_PROVIDER(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'ADDRESSES_PROVIDER()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getAllATokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: {symbol: string; tokenAddress: string; 0: string; 1: string}[];
|
||||
}>;
|
||||
|
||||
'getAllATokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: {symbol: string; tokenAddress: string; 0: string; 1: string}[];
|
||||
}>;
|
||||
|
||||
getAllReservesTokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: {symbol: string; tokenAddress: string; 0: string; 1: string}[];
|
||||
}>;
|
||||
|
||||
'getAllReservesTokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: {symbol: string; tokenAddress: string; 0: string; 1: string}[];
|
||||
}>;
|
||||
};
|
||||
|
||||
ADDRESSES_PROVIDER(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'ADDRESSES_PROVIDER()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getAllATokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
'getAllATokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
getAllReservesTokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
'getAllReservesTokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
callStatic: {
|
||||
ADDRESSES_PROVIDER(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'ADDRESSES_PROVIDER()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getAllATokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
'getAllATokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
getAllReservesTokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
|
||||
'getAllReservesTokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
ADDRESSES_PROVIDER(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'ADDRESSES_PROVIDER()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getAllATokens(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAllATokens()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getAllReservesTokens(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAllReservesTokens()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
ADDRESSES_PROVIDER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'ADDRESSES_PROVIDER()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getAllATokens(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAllATokens()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getAllReservesTokens(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAllReservesTokens()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
221
types/AdminUpgradeabilityProxy.d.ts
vendored
221
types/AdminUpgradeabilityProxy.d.ts
vendored
|
@ -1,221 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {
|
||||
Contract,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
CallOverrides,
|
||||
} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface AdminUpgradeabilityProxyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'admin()': FunctionFragment;
|
||||
'changeAdmin(address)': FunctionFragment;
|
||||
'implementation()': FunctionFragment;
|
||||
'upgradeTo(address)': FunctionFragment;
|
||||
'upgradeToAndCall(address,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'admin', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'changeAdmin', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'implementation', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeTo', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [string, BytesLike]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'changeAdmin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'implementation', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AdminChanged(address,address)': EventFragment;
|
||||
'Upgraded(address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
||||
}
|
||||
|
||||
export class AdminUpgradeabilityProxy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: AdminUpgradeabilityProxyInterface;
|
||||
|
||||
functions: {
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
admin(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'admin()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
implementation(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'implementation()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AdminChanged(previousAdmin: null, newAdmin: null): EventFilter;
|
||||
|
||||
Upgraded(implementation: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
admin(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
admin(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
221
types/BaseAdminUpgradeabilityProxy.d.ts
vendored
221
types/BaseAdminUpgradeabilityProxy.d.ts
vendored
|
@ -1,221 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {
|
||||
Contract,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
CallOverrides,
|
||||
} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface BaseAdminUpgradeabilityProxyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'admin()': FunctionFragment;
|
||||
'changeAdmin(address)': FunctionFragment;
|
||||
'implementation()': FunctionFragment;
|
||||
'upgradeTo(address)': FunctionFragment;
|
||||
'upgradeToAndCall(address,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'admin', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'changeAdmin', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'implementation', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeTo', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [string, BytesLike]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'changeAdmin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'implementation', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AdminChanged(address,address)': EventFragment;
|
||||
'Upgraded(address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
||||
}
|
||||
|
||||
export class BaseAdminUpgradeabilityProxy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: BaseAdminUpgradeabilityProxyInterface;
|
||||
|
||||
functions: {
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
admin(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'admin()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
implementation(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'implementation()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AdminChanged(previousAdmin: null, newAdmin: null): EventFilter;
|
||||
|
||||
Upgraded(implementation: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
admin(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
admin(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,145 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Signer} from 'ethers';
|
||||
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||||
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||||
|
||||
import {BaseAdminUpgradeabilityProxy} from './BaseAdminUpgradeabilityProxy';
|
||||
|
||||
export class BaseAdminUpgradeabilityProxyFactory extends ContractFactory {
|
||||
constructor(signer?: Signer) {
|
||||
super(_abi, _bytecode, signer);
|
||||
}
|
||||
|
||||
deploy(overrides?: Overrides): Promise<BaseAdminUpgradeabilityProxy> {
|
||||
return super.deploy(overrides || {}) as Promise<BaseAdminUpgradeabilityProxy>;
|
||||
}
|
||||
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||||
return super.getDeployTransaction(overrides || {});
|
||||
}
|
||||
attach(address: string): BaseAdminUpgradeabilityProxy {
|
||||
return super.attach(address) as BaseAdminUpgradeabilityProxy;
|
||||
}
|
||||
connect(signer: Signer): BaseAdminUpgradeabilityProxyFactory {
|
||||
return super.connect(signer) as BaseAdminUpgradeabilityProxyFactory;
|
||||
}
|
||||
static connect(
|
||||
address: string,
|
||||
signerOrProvider: Signer | Provider
|
||||
): BaseAdminUpgradeabilityProxy {
|
||||
return new Contract(address, _abi, signerOrProvider) as BaseAdminUpgradeabilityProxy;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
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: 'implementation',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'Upgraded',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
stateMutability: 'payable',
|
||||
type: 'fallback',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'admin',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'newAdmin',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'changeAdmin',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'implementation',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
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',
|
||||
},
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
'0x608060405234801561001057600080fd5b50610652806100206000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610281565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b03166102be565b34801561017757600080fd5b5061011c610378565b6101886103a3565b610198610193610403565b610428565b565b6101a261044c565b6001600160a01b0316336001600160a01b031614156101c9576101c481610471565b6101d1565b6101d1610180565b50565b6101dc61044c565b6001600160a01b0316336001600160a01b03161415610274576101fe83610471565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b505090508061026e57600080fd5b5061027c565b61027c610180565b505050565b600061028b61044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac610403565b90506102bb565b6102bb610180565b90565b6102c661044c565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103245760405162461bcd60e51b81526004018080602001828103825260368152602001806105ac6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61034d61044c565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c4816104b1565b600061038261044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac61044c565b6103ab61044c565b6001600160a01b0316336001600160a01b031614156103fb5760405162461bcd60e51b815260040180806020018281038252603281526020018061057a6032913960400191505060405180910390fd5b610198610198565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610447573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61047a816104d5565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104de8161053d565b6105195760405162461bcd60e51b815260040180806020018281038252603b8152602001806105e2603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057157508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220b622e95011fdb1c0cd2c26ae9a5b63a8d3bc8a84cbb584686b03149d3034510764736f6c63430006080033';
|
44
types/BaseUpgradeabilityProxy.d.ts
vendored
44
types/BaseUpgradeabilityProxy.d.ts
vendored
|
@ -1,44 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface BaseUpgradeabilityProxyInterface extends ethers.utils.Interface {
|
||||
functions: {};
|
||||
|
||||
events: {
|
||||
'Upgraded(address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
||||
}
|
||||
|
||||
export class BaseUpgradeabilityProxy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: BaseUpgradeabilityProxyInterface;
|
||||
|
||||
functions: {};
|
||||
|
||||
callStatic: {};
|
||||
|
||||
filters: {
|
||||
Upgraded(implementation: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {};
|
||||
|
||||
populateTransaction: {};
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Signer} from 'ethers';
|
||||
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||||
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||||
|
||||
import {BaseUpgradeabilityProxy} from './BaseUpgradeabilityProxy';
|
||||
|
||||
export class BaseUpgradeabilityProxyFactory extends ContractFactory {
|
||||
constructor(signer?: Signer) {
|
||||
super(_abi, _bytecode, signer);
|
||||
}
|
||||
|
||||
deploy(overrides?: Overrides): Promise<BaseUpgradeabilityProxy> {
|
||||
return super.deploy(overrides || {}) as Promise<BaseUpgradeabilityProxy>;
|
||||
}
|
||||
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||||
return super.getDeployTransaction(overrides || {});
|
||||
}
|
||||
attach(address: string): BaseUpgradeabilityProxy {
|
||||
return super.attach(address) as BaseUpgradeabilityProxy;
|
||||
}
|
||||
connect(signer: Signer): BaseUpgradeabilityProxyFactory {
|
||||
return super.connect(signer) as BaseUpgradeabilityProxyFactory;
|
||||
}
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): BaseUpgradeabilityProxy {
|
||||
return new Contract(address, _abi, signerOrProvider) as BaseUpgradeabilityProxy;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'implementation',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'Upgraded',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
stateMutability: 'payable',
|
||||
type: 'fallback',
|
||||
},
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
'0x6080604052348015600f57600080fd5b50609e8061001e6000396000f3fe6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea26469706673582212200d565f838a16394f83cdf6c38616b91c97db6ee9f15446292f209fbacee99bb364736f6c63430006080033';
|
367
types/ChainlinkProxyPriceProvider.d.ts
vendored
367
types/ChainlinkProxyPriceProvider.d.ts
vendored
|
@ -1,367 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface ChainlinkProxyPriceProviderInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAssetPrice(address)': FunctionFragment;
|
||||
'getAssetsPrices(address[])': FunctionFragment;
|
||||
'getFallbackOracle()': FunctionFragment;
|
||||
'getSourceOfAsset(address)': FunctionFragment;
|
||||
'owner()': FunctionFragment;
|
||||
'renounceOwnership()': FunctionFragment;
|
||||
'setAssetSources(address[],address[])': FunctionFragment;
|
||||
'setFallbackOracle(address)': FunctionFragment;
|
||||
'transferOwnership(address)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAssetPrice', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'getAssetsPrices', values: [string[]]): string;
|
||||
encodeFunctionData(functionFragment: 'getFallbackOracle', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getSourceOfAsset', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'setAssetSources', values: [string[], string[]]): string;
|
||||
encodeFunctionData(functionFragment: 'setFallbackOracle', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'transferOwnership', values: [string]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAssetPrice', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getAssetsPrices', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getFallbackOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getSourceOfAsset', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setAssetSources', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setFallbackOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AssetSourceUpdated(address,address)': EventFragment;
|
||||
'FallbackOracleUpdated(address)': EventFragment;
|
||||
'OwnershipTransferred(address,address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AssetSourceUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'FallbackOracleUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment;
|
||||
}
|
||||
|
||||
export class ChainlinkProxyPriceProvider extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: ChainlinkProxyPriceProviderInterface;
|
||||
|
||||
functions: {
|
||||
getAssetPrice(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getAssetsPrices(
|
||||
assets: string[],
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber[];
|
||||
}>;
|
||||
|
||||
'getAssetsPrices(address[])'(
|
||||
assets: string[],
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber[];
|
||||
}>;
|
||||
|
||||
getFallbackOracle(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getFallbackOracle()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getSourceOfAsset(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getSourceOfAsset(address)'(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
owner(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'owner()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setAssetSources(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setAssetSources(address[],address[])'(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setFallbackOracle(fallbackOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setFallbackOracle(address)'(
|
||||
fallbackOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getAssetPrice(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getAssetsPrices(assets: string[], overrides?: CallOverrides): Promise<BigNumber[]>;
|
||||
|
||||
'getAssetsPrices(address[])'(assets: string[], overrides?: CallOverrides): Promise<BigNumber[]>;
|
||||
|
||||
getFallbackOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getFallbackOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getSourceOfAsset(asset: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getSourceOfAsset(address)'(asset: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setAssetSources(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setAssetSources(address[],address[])'(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setFallbackOracle(fallbackOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setFallbackOracle(address)'(
|
||||
fallbackOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getAssetPrice(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getAssetsPrices(assets: string[], overrides?: CallOverrides): Promise<BigNumber[]>;
|
||||
|
||||
'getAssetsPrices(address[])'(assets: string[], overrides?: CallOverrides): Promise<BigNumber[]>;
|
||||
|
||||
getFallbackOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getFallbackOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getSourceOfAsset(asset: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getSourceOfAsset(address)'(asset: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'renounceOwnership()'(overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
setAssetSources(assets: string[], sources: string[], overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setAssetSources(address[],address[])'(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setFallbackOracle(fallbackOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setFallbackOracle(address)'(fallbackOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'transferOwnership(address)'(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AssetSourceUpdated(asset: string | null, source: string | null): EventFilter;
|
||||
|
||||
FallbackOracleUpdated(fallbackOracle: string | null): EventFilter;
|
||||
|
||||
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
getAssetPrice(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getAssetsPrices(assets: string[], overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetsPrices(address[])'(assets: string[], overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getFallbackOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getFallbackOracle()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getSourceOfAsset(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getSourceOfAsset(address)'(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
setAssetSources(assets: string[], sources: string[], overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setAssetSources(address[],address[])'(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setFallbackOracle(fallbackOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setFallbackOracle(address)'(fallbackOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transferOwnership(address)'(newOwner: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAssetPrice(asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getAssetsPrices(assets: string[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAssetsPrices(address[])'(
|
||||
assets: string[],
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getFallbackOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getFallbackOracle()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getSourceOfAsset(asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getSourceOfAsset(address)'(
|
||||
asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
setAssetSources(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setAssetSources(address[],address[])'(
|
||||
assets: string[],
|
||||
sources: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setFallbackOracle(fallbackOracle: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'setFallbackOracle(address)'(
|
||||
fallbackOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
44
types/ChainlinkUsdethOracleI.d.ts
vendored
44
types/ChainlinkUsdethOracleI.d.ts
vendored
|
@ -1,44 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface ChainlinkUsdethOracleIInterface extends ethers.utils.Interface {
|
||||
functions: {};
|
||||
|
||||
events: {
|
||||
'AnswerUpdated(int256,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AnswerUpdated'): EventFragment;
|
||||
}
|
||||
|
||||
export class ChainlinkUsdethOracleI extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: ChainlinkUsdethOracleIInterface;
|
||||
|
||||
functions: {};
|
||||
|
||||
callStatic: {};
|
||||
|
||||
filters: {
|
||||
AnswerUpdated(current: BigNumberish | null, answerId: BigNumberish | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {};
|
||||
|
||||
populateTransaction: {};
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {ChainlinkUsdethOracleI} from './ChainlinkUsdethOracleI';
|
||||
|
||||
export class ChainlinkUsdethOracleIFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): ChainlinkUsdethOracleI {
|
||||
return new Contract(address, _abi, signerOrProvider) as ChainlinkUsdethOracleI;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'int256',
|
||||
name: 'current',
|
||||
type: 'int256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'answerId',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'AnswerUpdated',
|
||||
type: 'event',
|
||||
},
|
||||
];
|
718
types/DebtTokenBase.d.ts
vendored
718
types/DebtTokenBase.d.ts
vendored
|
@ -1,718 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface DebtTokenBaseInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'allowance(address,address)': FunctionFragment;
|
||||
'approve(address,uint256)': FunctionFragment;
|
||||
'balanceOf(address)': FunctionFragment;
|
||||
'decimals()': FunctionFragment;
|
||||
'decreaseAllowance(address,uint256)': FunctionFragment;
|
||||
'increaseAllowance(address,uint256)': FunctionFragment;
|
||||
'initialize(uint8,string,string)': FunctionFragment;
|
||||
'name()': FunctionFragment;
|
||||
'principalBalanceOf(address)': FunctionFragment;
|
||||
'symbol()': FunctionFragment;
|
||||
'totalSupply()': FunctionFragment;
|
||||
'transfer(address,uint256)': FunctionFragment;
|
||||
'transferFrom(address,address,uint256)': FunctionFragment;
|
||||
'underlyingAssetAddress()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'decimals', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'decreaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'increaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'initialize',
|
||||
values: [BigNumberish, string, string]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'name', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'principalBalanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'symbol', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'transfer', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'underlyingAssetAddress', 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: 'decreaseAllowance', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'increaseAllowance', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'principalBalanceOf', 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: 'underlyingAssetAddress', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'Approval(address,address,uint256)': EventFragment;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class DebtTokenBase extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: DebtTokenBaseInterface;
|
||||
|
||||
functions: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
decimals(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
'decimals()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
initialize(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(uint8,string,string)'(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'name()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
principalBalanceOf(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'principalBalanceOf(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
symbol(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'symbol()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
underlyingAssetAddress(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'underlyingAssetAddress()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
initialize(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(uint8,string,string)'(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
principalBalanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
underlyingAssetAddress(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'underlyingAssetAddress()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
callStatic: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
initialize(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'initialize(uint8,string,string)'(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
principalBalanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
underlyingAssetAddress(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'underlyingAssetAddress()'(overrides?: CallOverrides): Promise<string>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
initialize(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'initialize(uint8,string,string)'(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
principalBalanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
underlyingAssetAddress(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'underlyingAssetAddress()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
initialize(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'initialize(uint8,string,string)'(
|
||||
decimals: BigNumberish,
|
||||
name: string,
|
||||
symbol: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
principalBalanceOf(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'principalBalanceOf(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
underlyingAssetAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'underlyingAssetAddress()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,367 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {DebtTokenBase} from './DebtTokenBase';
|
||||
|
||||
export class DebtTokenBaseFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): DebtTokenBase {
|
||||
return new Contract(address, _abi, signerOrProvider) as DebtTokenBase;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'pool',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'underlyingAssetAddress',
|
||||
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: '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: 'user',
|
||||
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: '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: 'uint8',
|
||||
name: 'decimals',
|
||||
type: 'uint8',
|
||||
},
|
||||
{
|
||||
internalType: 'string',
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
internalType: 'string',
|
||||
name: 'symbol',
|
||||
type: 'string',
|
||||
},
|
||||
],
|
||||
name: 'initialize',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'name',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'string',
|
||||
name: '',
|
||||
type: 'string',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'principalBalanceOf',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
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: [],
|
||||
name: 'underlyingAssetAddress',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
409
types/DefaultReserveInterestRateStrategy.d.ts
vendored
409
types/DefaultReserveInterestRateStrategy.d.ts
vendored
|
@ -1,409 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface DefaultReserveInterestRateStrategyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'EXCESS_UTILIZATION_RATE()': FunctionFragment;
|
||||
'OPTIMAL_UTILIZATION_RATE()': FunctionFragment;
|
||||
'addressesProvider()': FunctionFragment;
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)': FunctionFragment;
|
||||
'getBaseVariableBorrowRate()': FunctionFragment;
|
||||
'getStableRateSlope1()': FunctionFragment;
|
||||
'getStableRateSlope2()': FunctionFragment;
|
||||
'getVariableRateSlope1()': FunctionFragment;
|
||||
'getVariableRateSlope2()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'EXCESS_UTILIZATION_RATE', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'OPTIMAL_UTILIZATION_RATE', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'addressesProvider', values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'calculateInterestRates',
|
||||
values: [string, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'getBaseVariableBorrowRate', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getStableRateSlope1', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getStableRateSlope2', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getVariableRateSlope1', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getVariableRateSlope2', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'EXCESS_UTILIZATION_RATE', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'OPTIMAL_UTILIZATION_RATE', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'addressesProvider', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'calculateInterestRates', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getBaseVariableBorrowRate', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getStableRateSlope1', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getStableRateSlope2', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getVariableRateSlope1', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getVariableRateSlope2', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class DefaultReserveInterestRateStrategy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: DefaultReserveInterestRateStrategyInterface;
|
||||
|
||||
functions: {
|
||||
EXCESS_UTILIZATION_RATE(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'EXCESS_UTILIZATION_RATE()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
OPTIMAL_UTILIZATION_RATE(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'OPTIMAL_UTILIZATION_RATE()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
addressesProvider(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'addressesProvider()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
calculateInterestRates(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getStableRateSlope1(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getStableRateSlope1()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getStableRateSlope2(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getStableRateSlope2()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getVariableRateSlope1(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getVariableRateSlope1()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getVariableRateSlope2(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getVariableRateSlope2()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
EXCESS_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'EXCESS_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
OPTIMAL_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'OPTIMAL_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
addressesProvider(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
calculateInterestRates(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
EXCESS_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'EXCESS_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
OPTIMAL_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'OPTIMAL_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
addressesProvider(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
calculateInterestRates(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
EXCESS_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'EXCESS_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
OPTIMAL_UTILIZATION_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'OPTIMAL_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
addressesProvider(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateInterestRates(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getStableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getStableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope1(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope1()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getVariableRateSlope2(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getVariableRateSlope2()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
EXCESS_UTILIZATION_RATE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'EXCESS_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
OPTIMAL_UTILIZATION_RATE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'OPTIMAL_UTILIZATION_RATE()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
addressesProvider(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
calculateInterestRates(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
reserve: string,
|
||||
availableLiquidity: BigNumberish,
|
||||
totalBorrowsStable: BigNumberish,
|
||||
totalBorrowsVariable: BigNumberish,
|
||||
averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getStableRateSlope1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getStableRateSlope1()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getStableRateSlope2(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getStableRateSlope2()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getVariableRateSlope1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getVariableRateSlope1()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getVariableRateSlope2(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getVariableRateSlope2()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
575
types/Erc20.d.ts
vendored
575
types/Erc20.d.ts
vendored
|
@ -1,575 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface Erc20Interface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'allowance(address,address)': FunctionFragment;
|
||||
'approve(address,uint256)': FunctionFragment;
|
||||
'balanceOf(address)': FunctionFragment;
|
||||
'decimals()': FunctionFragment;
|
||||
'decreaseAllowance(address,uint256)': FunctionFragment;
|
||||
'increaseAllowance(address,uint256)': FunctionFragment;
|
||||
'name()': FunctionFragment;
|
||||
'symbol()': FunctionFragment;
|
||||
'totalSupply()': FunctionFragment;
|
||||
'transfer(address,uint256)': FunctionFragment;
|
||||
'transferFrom(address,address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'decimals', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'decreaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'increaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'name', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'symbol', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'transfer', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): 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: 'decreaseAllowance', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'increaseAllowance', 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;
|
||||
|
||||
events: {
|
||||
'Approval(address,address,uint256)': EventFragment;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class Erc20 extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: Erc20Interface;
|
||||
|
||||
functions: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
decimals(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
'decimals()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'name()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
symbol(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'symbol()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
653
types/Erc20Burnable.d.ts
vendored
653
types/Erc20Burnable.d.ts
vendored
|
@ -1,653 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface Erc20BurnableInterface extends ethers.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;
|
||||
'name()': FunctionFragment;
|
||||
'symbol()': FunctionFragment;
|
||||
'totalSupply()': FunctionFragment;
|
||||
'transfer(address,uint256)': FunctionFragment;
|
||||
'transferFrom(address,address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'burn', values: [BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'burnFrom', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'decimals', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'decreaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'increaseAllowance', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'name', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'symbol', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'transfer', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): 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: '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;
|
||||
|
||||
events: {
|
||||
'Approval(address,address,uint256)': EventFragment;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class Erc20Burnable extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: Erc20BurnableInterface;
|
||||
|
||||
functions: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
burn(amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(uint256)'(amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
burnFrom(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'burnFrom(address,uint256)'(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
decimals(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
'decimals()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'name()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
symbol(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'symbol()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(uint256)'(amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
burnFrom(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'burnFrom(address,uint256)'(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'burn(uint256)'(amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
burnFrom(account: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'burnFrom(address,uint256)'(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'burn(uint256)'(amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
burnFrom(account: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'burnFrom(address,uint256)'(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(amount: BigNumberish, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'burn(uint256)'(amount: BigNumberish, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
burnFrom(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'burnFrom(address,uint256)'(
|
||||
account: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decreaseAllowance(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'decreaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
subtractedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
increaseAllowance(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'increaseAllowance(address,uint256)'(
|
||||
spender: string,
|
||||
addedValue: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,317 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {Erc20Burnable} from './Erc20Burnable';
|
||||
|
||||
export class Erc20BurnableFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): Erc20Burnable {
|
||||
return new Contract(address, _abi, signerOrProvider) as Erc20Burnable;
|
||||
}
|
||||
}
|
||||
|
||||
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: '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: [],
|
||||
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: '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',
|
||||
},
|
||||
];
|
File diff suppressed because one or more lines are too long
242
types/FeeProvider.d.ts
vendored
242
types/FeeProvider.d.ts
vendored
|
@ -1,242 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface FeeProviderInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'FEE_PROVIDER_REVISION()': FunctionFragment;
|
||||
'calculateLoanOriginationFee(address,uint256)': FunctionFragment;
|
||||
'getLoanOriginationFeePercentage()': FunctionFragment;
|
||||
'initialize(address)': FunctionFragment;
|
||||
'originationFeePercentage()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'FEE_PROVIDER_REVISION', values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'calculateLoanOriginationFee',
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'getLoanOriginationFeePercentage',
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'initialize', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'originationFeePercentage', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'FEE_PROVIDER_REVISION', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'calculateLoanOriginationFee', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'getLoanOriginationFeePercentage',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'originationFeePercentage', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class FeeProvider extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: FeeProviderInterface;
|
||||
|
||||
functions: {
|
||||
FEE_PROVIDER_REVISION(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'FEE_PROVIDER_REVISION()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getLoanOriginationFeePercentage(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
initialize(_addressesProvider: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address)'(
|
||||
_addressesProvider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
originationFeePercentage(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'originationFeePercentage()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
FEE_PROVIDER_REVISION(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'FEE_PROVIDER_REVISION()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
initialize(_addressesProvider: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address)'(
|
||||
_addressesProvider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
originationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'originationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
FEE_PROVIDER_REVISION(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'FEE_PROVIDER_REVISION()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
initialize(_addressesProvider: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'initialize(address)'(_addressesProvider: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
originationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'originationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
FEE_PROVIDER_REVISION(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'FEE_PROVIDER_REVISION()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
initialize(_addressesProvider: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'initialize(address)'(_addressesProvider: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
originationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'originationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
FEE_PROVIDER_REVISION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'FEE_PROVIDER_REVISION()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
initialize(_addressesProvider: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'initialize(address)'(
|
||||
_addressesProvider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
originationFeePercentage(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'originationFeePercentage()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Signer} from 'ethers';
|
||||
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||||
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||||
|
||||
import {FeeProvider} from './FeeProvider';
|
||||
|
||||
export class FeeProviderFactory extends ContractFactory {
|
||||
constructor(signer?: Signer) {
|
||||
super(_abi, _bytecode, signer);
|
||||
}
|
||||
|
||||
deploy(overrides?: Overrides): Promise<FeeProvider> {
|
||||
return super.deploy(overrides || {}) as Promise<FeeProvider>;
|
||||
}
|
||||
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||||
return super.getDeployTransaction(overrides || {});
|
||||
}
|
||||
attach(address: string): FeeProvider {
|
||||
return super.attach(address) as FeeProvider;
|
||||
}
|
||||
connect(signer: Signer): FeeProviderFactory {
|
||||
return super.connect(signer) as FeeProviderFactory;
|
||||
}
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): FeeProvider {
|
||||
return new Contract(address, _abi, signerOrProvider) as FeeProvider;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [],
|
||||
name: 'FEE_PROVIDER_REVISION',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'calculateLoanOriginationFee',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLoanOriginationFeePercentage',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_addressesProvider',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'initialize',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'originationFeePercentage',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
'0x60806040526000805534801561001457600080fd5b50610411806100246000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80639403ed3a1461005c578063b0d73d4e14610076578063c211f9a41461007e578063c4d66de814610086578063e563a7d0146100ae575b600080fd5b6100646100da565b60408051918252519081900360200190f35b6100646100e0565b6100646100e5565b6100ac6004803603602081101561009c57600080fd5b50356001600160a01b03166100eb565b005b610064600480360360408110156100c457600080fd5b506001600160a01b038135169060200135610193565b60345481565b600181565b60345490565b60006100f56101b3565b60015490915060ff168061010c575061010c6101b8565b80610118575060005481115b6101535760405162461bcd60e51b815260040180806020018281038252602e8152602001806103ae602e913960400191505060405180910390fd5b60015460ff16158015610172576001805460ff19168117905560008290555b6608e1bc9bf04000603455801561018e576001805460ff191690555b505050565b60006101aa603454836101be90919063ffffffff16565b90505b92915050565b600190565b303b1590565b60006101aa670de0b6b3a76400006101ee6101df868663ffffffff6101fa16565b6706f05b59d3b2000090610253565b9063ffffffff6102ad16565b600082610209575060006101ad565b8282028284828161021657fe5b04146101aa5760405162461bcd60e51b815260040180806020018281038252602181526020018061038d6021913960400191505060405180910390fd5b6000828201838110156101aa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006101aa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836103765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561033b578181015183820152602001610323565b50505050905090810190601f1680156103685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161038257fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220a2edda60003b7adbbfbeb7ab3ca7ac68306978162db57185c607c97346aab0d564736f6c63430006080033';
|
168
types/FlashLoanReceiverBase.d.ts
vendored
168
types/FlashLoanReceiverBase.d.ts
vendored
|
@ -1,168 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface FlashLoanReceiverBaseInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'addressesProvider()': FunctionFragment;
|
||||
'executeOperation(address,address,uint256,uint256,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'addressesProvider', values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'executeOperation',
|
||||
values: [string, string, BigNumberish, BigNumberish, BytesLike]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'addressesProvider', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'executeOperation', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class FlashLoanReceiverBase extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: FlashLoanReceiverBaseInterface;
|
||||
|
||||
functions: {
|
||||
addressesProvider(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'addressesProvider()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
addressesProvider(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
addressesProvider(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
addressesProvider(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
addressesProvider(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'addressesProvider()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {FlashLoanReceiverBase} from './FlashLoanReceiverBase';
|
||||
|
||||
export class FlashLoanReceiverBaseFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): FlashLoanReceiverBase {
|
||||
return new Contract(address, _abi, signerOrProvider) as FlashLoanReceiverBase;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'contract ILendingPoolAddressesProvider',
|
||||
name: '_provider',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'constructor',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'addressesProvider',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'contract ILendingPoolAddressesProvider',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_destination',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_fee',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'bytes',
|
||||
name: '_params',
|
||||
type: 'bytes',
|
||||
},
|
||||
],
|
||||
name: 'executeOperation',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
stateMutability: 'payable',
|
||||
type: 'receive',
|
||||
},
|
||||
];
|
160
types/GenericLogic.d.ts
vendored
160
types/GenericLogic.d.ts
vendored
|
@ -1,160 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface GenericLogicInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()': FunctionFragment;
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: 'HEALTH_FACTOR_LIQUIDATION_THRESHOLD',
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'calculateAvailableBorrowsETH',
|
||||
values: [BigNumberish, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'HEALTH_FACTOR_LIQUIDATION_THRESHOLD',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'calculateAvailableBorrowsETH', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class GenericLogic extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: GenericLogicInterface;
|
||||
|
||||
functions: {
|
||||
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
calculateAvailableBorrowsETH(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)'(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateAvailableBorrowsETH(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)'(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateAvailableBorrowsETH(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)'(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
calculateAvailableBorrowsETH(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)'(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'HEALTH_FACTOR_LIQUIDATION_THRESHOLD()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
calculateAvailableBorrowsETH(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'calculateAvailableBorrowsETH(uint256,uint256,uint256)'(
|
||||
collateralBalanceETH: BigNumberish,
|
||||
borrowBalanceETH: BigNumberish,
|
||||
ltv: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
127
types/GenericOracleI.d.ts
vendored
127
types/GenericOracleI.d.ts
vendored
|
@ -1,127 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface GenericOracleIInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAssetPrice(address)': FunctionFragment;
|
||||
'getEthUsdPrice()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAssetPrice', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'getEthUsdPrice', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAssetPrice', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getEthUsdPrice', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AssetPriceUpdated(address,uint256,uint256)': EventFragment;
|
||||
'EthPriceUpdated(uint256,uint256)': EventFragment;
|
||||
'ProphecySubmitted(address,address,uint96,uint96)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AssetPriceUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'EthPriceUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'ProphecySubmitted'): EventFragment;
|
||||
}
|
||||
|
||||
export class GenericOracleI extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: GenericOracleIInterface;
|
||||
|
||||
functions: {
|
||||
getAssetPrice(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getEthUsdPrice(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getEthUsdPrice()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getEthUsdPrice(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getEthUsdPrice()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getEthUsdPrice(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getEthUsdPrice()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AssetPriceUpdated(_asset: null, _price: null, timestamp: null): EventFilter;
|
||||
|
||||
EthPriceUpdated(_price: null, timestamp: null): EventFilter;
|
||||
|
||||
ProphecySubmitted(
|
||||
_sybil: string | null,
|
||||
_asset: string | null,
|
||||
_sybilProphecy: null,
|
||||
_oracleProphecy: null
|
||||
): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getEthUsdPrice(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getEthUsdPrice()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getEthUsdPrice(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getEthUsdPrice()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,123 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {GenericOracleI} from './GenericOracleI';
|
||||
|
||||
export class GenericOracleIFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): GenericOracleI {
|
||||
return new Contract(address, _abi, signerOrProvider) as GenericOracleI;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: '_price',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'timestamp',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'AssetPriceUpdated',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: '_price',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'timestamp',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'EthPriceUpdated',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: '_sybil',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint96',
|
||||
name: '_sybilProphecy',
|
||||
type: 'uint96',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint96',
|
||||
name: '_oracleProphecy',
|
||||
type: 'uint96',
|
||||
},
|
||||
],
|
||||
name: 'ProphecySubmitted',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getAssetPrice',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getEthUsdPrice',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
220
types/IChainlinkAggregator.d.ts
vendored
220
types/IChainlinkAggregator.d.ts
vendored
|
@ -1,220 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IChainlinkAggregatorInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAnswer(uint256)': FunctionFragment;
|
||||
'getTimestamp(uint256)': FunctionFragment;
|
||||
'latestAnswer()': FunctionFragment;
|
||||
'latestRound()': FunctionFragment;
|
||||
'latestTimestamp()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAnswer', values: [BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'getTimestamp', values: [BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'latestAnswer', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'latestRound', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'latestTimestamp', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAnswer', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getTimestamp', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'latestAnswer', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'latestRound', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'latestTimestamp', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AnswerUpdated(int256,uint256,uint256)': EventFragment;
|
||||
'NewRound(uint256,address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AnswerUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'NewRound'): EventFragment;
|
||||
}
|
||||
|
||||
export class IChainlinkAggregator extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IChainlinkAggregatorInterface;
|
||||
|
||||
functions: {
|
||||
getAnswer(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAnswer(uint256)'(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getTimestamp(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getTimestamp(uint256)'(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
latestAnswer(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'latestAnswer()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
latestRound(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'latestRound()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
latestTimestamp(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'latestTimestamp()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
getAnswer(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAnswer(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getTimestamp(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTimestamp(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestRound(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestRound()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestTimestamp(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestTimestamp()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
getAnswer(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAnswer(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getTimestamp(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTimestamp(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestRound(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestRound()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestTimestamp(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestTimestamp()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AnswerUpdated(
|
||||
current: BigNumberish | null,
|
||||
roundId: BigNumberish | null,
|
||||
timestamp: null
|
||||
): EventFilter;
|
||||
|
||||
NewRound(roundId: BigNumberish | null, startedBy: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
getAnswer(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAnswer(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getTimestamp(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTimestamp(uint256)'(roundId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestRound(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestRound()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestTimestamp(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestTimestamp()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAnswer(roundId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAnswer(uint256)'(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getTimestamp(roundId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getTimestamp(uint256)'(
|
||||
roundId: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
latestRound(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'latestRound()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
latestTimestamp(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'latestTimestamp()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,137 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IChainlinkAggregator} from './IChainlinkAggregator';
|
||||
|
||||
export class IChainlinkAggregatorFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IChainlinkAggregator {
|
||||
return new Contract(address, _abi, signerOrProvider) as IChainlinkAggregator;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'int256',
|
||||
name: 'current',
|
||||
type: 'int256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'roundId',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'timestamp',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'AnswerUpdated',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'roundId',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'startedBy',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'NewRound',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'roundId',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'getAnswer',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'int256',
|
||||
name: '',
|
||||
type: 'int256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'roundId',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'getTimestamp',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'latestAnswer',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'int256',
|
||||
name: '',
|
||||
type: 'int256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'latestRound',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'latestTimestamp',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
171
types/IExchangeAdapter.d.ts
vendored
171
types/IExchangeAdapter.d.ts
vendored
|
@ -1,171 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IExchangeAdapterInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'approveExchange(address[])': FunctionFragment;
|
||||
'exchange(address,address,uint256,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'approveExchange', values: [string[]]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'exchange',
|
||||
values: [string, string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'approveExchange', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'exchange', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'Exchange(address,address,address,uint256,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Exchange'): EventFragment;
|
||||
}
|
||||
|
||||
export class IExchangeAdapter extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IExchangeAdapterInterface;
|
||||
|
||||
functions: {
|
||||
approveExchange(_tokens: string[], overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'approveExchange(address[])'(
|
||||
_tokens: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
exchange(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'exchange(address,address,uint256,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
approveExchange(_tokens: string[], overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'approveExchange(address[])'(
|
||||
_tokens: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
exchange(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'exchange(address,address,uint256,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
approveExchange(_tokens: string[], overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'approveExchange(address[])'(_tokens: string[], overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
exchange(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'exchange(address,address,uint256,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Exchange(
|
||||
from: string | null,
|
||||
to: string | null,
|
||||
platform: string | null,
|
||||
fromAmount: null,
|
||||
toAmount: null
|
||||
): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
approveExchange(_tokens: string[], overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approveExchange(address[])'(_tokens: string[], overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
exchange(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'exchange(address,address,uint256,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
approveExchange(_tokens: string[], overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'approveExchange(address[])'(
|
||||
_tokens: string[],
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
exchange(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'exchange(address,address,uint256,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_amount: BigNumberish,
|
||||
_maxSlippage: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IExchangeAdapter} from './IExchangeAdapter';
|
||||
|
||||
export class IExchangeAdapterFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IExchangeAdapter {
|
||||
return new Contract(address, _abi, signerOrProvider) as IExchangeAdapter;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'from',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'to',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'platform',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'fromAmount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'toAmount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'Exchange',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'contract IERC20[]',
|
||||
name: '_tokens',
|
||||
type: 'address[]',
|
||||
},
|
||||
],
|
||||
name: 'approveExchange',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_from',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_to',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_maxSlippage',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'exchange',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
206
types/IExtendedPriceAggregator.d.ts
vendored
206
types/IExtendedPriceAggregator.d.ts
vendored
|
@ -1,206 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IExtendedPriceAggregatorInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getPlatformId()': FunctionFragment;
|
||||
'getSubTokens()': FunctionFragment;
|
||||
'getToken()': FunctionFragment;
|
||||
'getTokenType()': FunctionFragment;
|
||||
'latestAnswer()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getPlatformId', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getSubTokens', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getToken', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getTokenType', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'latestAnswer', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getPlatformId', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getSubTokens', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getToken', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getTokenType', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'latestAnswer', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AnswerUpdated(int256,uint256,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AnswerUpdated'): EventFragment;
|
||||
}
|
||||
|
||||
export class IExtendedPriceAggregator extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IExtendedPriceAggregatorInterface;
|
||||
|
||||
functions: {
|
||||
getPlatformId(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getPlatformId()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getSubTokens(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string[];
|
||||
}>;
|
||||
|
||||
'getSubTokens()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string[];
|
||||
}>;
|
||||
|
||||
getToken(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getToken()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getTokenType(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getTokenType()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
latestAnswer(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'latestAnswer()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
getPlatformId(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getPlatformId()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getSubTokens(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
'getSubTokens()'(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
getToken(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getToken()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getTokenType(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTokenType()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
getPlatformId(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getPlatformId()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getSubTokens(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
'getSubTokens()'(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
getToken(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getToken()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getTokenType(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTokenType()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AnswerUpdated(
|
||||
current: BigNumberish | null,
|
||||
roundId: BigNumberish | null,
|
||||
timestamp: null
|
||||
): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
getPlatformId(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getPlatformId()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getSubTokens(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getSubTokens()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getToken(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getToken()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getTokenType(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getTokenType()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getPlatformId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getPlatformId()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getSubTokens(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getSubTokens()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getToken()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getTokenType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getTokenType()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
latestAnswer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'latestAnswer()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IExtendedPriceAggregator} from './IExtendedPriceAggregator';
|
||||
|
||||
export class IExtendedPriceAggregatorFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IExtendedPriceAggregator {
|
||||
return new Contract(address, _abi, signerOrProvider) as IExtendedPriceAggregator;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'int256',
|
||||
name: 'current',
|
||||
type: 'int256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'roundId',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: false,
|
||||
internalType: 'uint256',
|
||||
name: 'timestamp',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'AnswerUpdated',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getPlatformId',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getSubTokens',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address[]',
|
||||
name: '',
|
||||
type: 'address[]',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getToken',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getTokenType',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'latestAnswer',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'int256',
|
||||
name: '',
|
||||
type: 'int256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
148
types/IFeeProvider.d.ts
vendored
148
types/IFeeProvider.d.ts
vendored
|
@ -1,148 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IFeeProviderInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'calculateLoanOriginationFee(address,uint256)': FunctionFragment;
|
||||
'getLoanOriginationFeePercentage()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: 'calculateLoanOriginationFee',
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'getLoanOriginationFeePercentage',
|
||||
values?: undefined
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'calculateLoanOriginationFee', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'getLoanOriginationFeePercentage',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IFeeProvider extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IFeeProviderInterface;
|
||||
|
||||
functions: {
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getLoanOriginationFeePercentage(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
calculateLoanOriginationFee(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'calculateLoanOriginationFee(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getLoanOriginationFeePercentage(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLoanOriginationFeePercentage()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IFeeProvider} from './IFeeProvider';
|
||||
|
||||
export class IFeeProviderFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IFeeProvider {
|
||||
return new Contract(address, _abi, signerOrProvider) as IFeeProvider;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'calculateLoanOriginationFee',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLoanOriginationFeePercentage',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
137
types/IFlashLoanReceiver.d.ts
vendored
137
types/IFlashLoanReceiver.d.ts
vendored
|
@ -1,137 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IFlashLoanReceiverInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'executeOperation(address,address,uint256,uint256,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: 'executeOperation',
|
||||
values: [string, string, BigNumberish, BigNumberish, BytesLike]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'executeOperation', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IFlashLoanReceiver extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IFlashLoanReceiverInterface;
|
||||
|
||||
functions: {
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
executeOperation(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'executeOperation(address,address,uint256,uint256,bytes)'(
|
||||
_reserve: string,
|
||||
_destination: string,
|
||||
_amount: BigNumberish,
|
||||
_fee: BigNumberish,
|
||||
_params: BytesLike,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IFlashLoanReceiver} from './IFlashLoanReceiver';
|
||||
|
||||
export class IFlashLoanReceiverFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IFlashLoanReceiver {
|
||||
return new Contract(address, _abi, signerOrProvider) as IFlashLoanReceiver;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_destination',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_fee',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'bytes',
|
||||
name: '_params',
|
||||
type: 'bytes',
|
||||
},
|
||||
],
|
||||
name: 'executeOperation',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
1968
types/ILendingPool.d.ts
vendored
1968
types/ILendingPool.d.ts
vendored
File diff suppressed because it is too large
Load Diff
488
types/ILendingPoolAddressesProvider.d.ts
vendored
488
types/ILendingPoolAddressesProvider.d.ts
vendored
|
@ -1,488 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface ILendingPoolAddressesProviderInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getLendingPool()': FunctionFragment;
|
||||
'getLendingPoolConfigurator()': FunctionFragment;
|
||||
'getLendingPoolLiquidationManager()': FunctionFragment;
|
||||
'getLendingPoolManager()': FunctionFragment;
|
||||
'getLendingRateOracle()': FunctionFragment;
|
||||
'getPriceOracle()': FunctionFragment;
|
||||
'setLendingPoolConfiguratorImpl(address)': FunctionFragment;
|
||||
'setLendingPoolImpl(address)': FunctionFragment;
|
||||
'setLendingPoolLiquidationManager(address)': FunctionFragment;
|
||||
'setLendingPoolManager(address)': FunctionFragment;
|
||||
'setLendingRateOracle(address)': FunctionFragment;
|
||||
'setPriceOracle(address)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getLendingPool', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingPoolConfigurator', values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'getLendingPoolLiquidationManager',
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingPoolManager', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingRateOracle', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getPriceOracle', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolConfiguratorImpl', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolImpl', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'setLendingPoolLiquidationManager',
|
||||
values: [string]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolManager', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingRateOracle', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setPriceOracle', values: [string]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getLendingPool', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingPoolConfigurator', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'getLendingPoolLiquidationManager',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingPoolManager', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingRateOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getPriceOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolConfiguratorImpl', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolImpl', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'setLendingPoolLiquidationManager',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolManager', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingRateOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setPriceOracle', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class ILendingPoolAddressesProvider extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: ILendingPoolAddressesProviderInterface;
|
||||
|
||||
functions: {
|
||||
getLendingPool(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPool()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolConfigurator(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolConfigurator()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolLiquidationManager(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolManager(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolManager()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingRateOracle(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingRateOracle()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getPriceOracle(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getPriceOracle()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(
|
||||
pool: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getLendingPool(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(configurator: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
setLendingPoolLiquidationManager(manager: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingPoolManager(lendingPoolManager: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingRateOracle(lendingRateOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setPriceOracle(address)'(priceOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(configurator: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolLiquidationManager(manager: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolManager(lendingPoolManager: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingRateOracle(lendingRateOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setPriceOracle(address)'(priceOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(
|
||||
pool: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,175 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {ILendingPoolAddressesProvider} from './ILendingPoolAddressesProvider';
|
||||
|
||||
export class ILendingPoolAddressesProviderFactory {
|
||||
static connect(
|
||||
address: string,
|
||||
signerOrProvider: Signer | Provider
|
||||
): ILendingPoolAddressesProvider {
|
||||
return new Contract(address, _abi, signerOrProvider) as ILendingPoolAddressesProvider;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLendingPool',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLendingPoolConfigurator',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLendingPoolLiquidationManager',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLendingPoolManager',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getLendingRateOracle',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getPriceOracle',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'configurator',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setLendingPoolConfiguratorImpl',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'pool',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setLendingPoolImpl',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'manager',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setLendingPoolLiquidationManager',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'lendingPoolManager',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setLendingPoolManager',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'lendingRateOracle',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setLendingRateOracle',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'priceOracle',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setPriceOracle',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
233
types/ILendingPoolAddressesProviderRegistry.d.ts
vendored
233
types/ILendingPoolAddressesProviderRegistry.d.ts
vendored
|
@ -1,233 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface ILendingPoolAddressesProviderRegistryInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAddressesProvidersList()': FunctionFragment;
|
||||
'isAddressesProviderRegistered(address)': FunctionFragment;
|
||||
'registerAddressesProvider(address,uint256)': FunctionFragment;
|
||||
'unregisterAddressesProvider(address)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAddressesProvidersList', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'isAddressesProviderRegistered', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'registerAddressesProvider',
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'unregisterAddressesProvider', values: [string]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAddressesProvidersList', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'isAddressesProviderRegistered', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'registerAddressesProvider', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'unregisterAddressesProvider', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class ILendingPoolAddressesProviderRegistry extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: ILendingPoolAddressesProviderRegistryInterface;
|
||||
|
||||
functions: {
|
||||
getAddressesProvidersList(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string[];
|
||||
}>;
|
||||
|
||||
'getAddressesProvidersList()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string[];
|
||||
}>;
|
||||
|
||||
isAddressesProviderRegistered(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'isAddressesProviderRegistered(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
registerAddressesProvider(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'registerAddressesProvider(address,uint256)'(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
unregisterAddressesProvider(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'unregisterAddressesProvider(address)'(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getAddressesProvidersList(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
'getAddressesProvidersList()'(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
isAddressesProviderRegistered(_provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'isAddressesProviderRegistered(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
registerAddressesProvider(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'registerAddressesProvider(address,uint256)'(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
unregisterAddressesProvider(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'unregisterAddressesProvider(address)'(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getAddressesProvidersList(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
'getAddressesProvidersList()'(overrides?: CallOverrides): Promise<string[]>;
|
||||
|
||||
isAddressesProviderRegistered(_provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'isAddressesProviderRegistered(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
registerAddressesProvider(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'registerAddressesProvider(address,uint256)'(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
unregisterAddressesProvider(_provider: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'unregisterAddressesProvider(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
getAddressesProvidersList(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAddressesProvidersList()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
isAddressesProviderRegistered(_provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'isAddressesProviderRegistered(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
registerAddressesProvider(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'registerAddressesProvider(address,uint256)'(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
unregisterAddressesProvider(_provider: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'unregisterAddressesProvider(address)'(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAddressesProvidersList(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAddressesProvidersList()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
isAddressesProviderRegistered(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'isAddressesProviderRegistered(address)'(
|
||||
_provider: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
registerAddressesProvider(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'registerAddressesProvider(address,uint256)'(
|
||||
_provider: string,
|
||||
_id: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
unregisterAddressesProvider(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'unregisterAddressesProvider(address)'(
|
||||
_provider: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,82 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {ILendingPoolAddressesProviderRegistry} from './ILendingPoolAddressesProviderRegistry';
|
||||
|
||||
export class ILendingPoolAddressesProviderRegistryFactory {
|
||||
static connect(
|
||||
address: string,
|
||||
signerOrProvider: Signer | Provider
|
||||
): ILendingPoolAddressesProviderRegistry {
|
||||
return new Contract(address, _abi, signerOrProvider) as ILendingPoolAddressesProviderRegistry;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getAddressesProvidersList',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address[]',
|
||||
name: '',
|
||||
type: 'address[]',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_provider',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'isAddressesProviderRegistered',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_provider',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_id',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'registerAddressesProvider',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_provider',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'unregisterAddressesProvider',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
|
@ -1,673 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {ILendingPool} from './ILendingPool';
|
||||
|
||||
export class ILendingPoolFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): ILendingPool {
|
||||
return new Contract(address, _abi, signerOrProvider) as ILendingPool;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'balanceDecreaseAllowed',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: '',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_interestRateMode',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint16',
|
||||
name: '_referralCode',
|
||||
type: 'uint16',
|
||||
},
|
||||
],
|
||||
name: 'borrow',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint16',
|
||||
name: '_referralCode',
|
||||
type: 'uint16',
|
||||
},
|
||||
],
|
||||
name: 'deposit',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_receiver',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'bytes',
|
||||
name: '_params',
|
||||
type: 'bytes',
|
||||
},
|
||||
],
|
||||
name: 'flashLoan',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getConfiguration',
|
||||
outputs: [
|
||||
{
|
||||
components: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'data',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
internalType: 'struct ReserveConfiguration.Map',
|
||||
name: '',
|
||||
type: 'tuple',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getReserveConfigurationData',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'decimals',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'ltv',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidationThreshold',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidationBonus',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'interestRateStrategyAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'usageAsCollateralEnabled',
|
||||
type: 'bool',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'borrowingEnabled',
|
||||
type: 'bool',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'stableBorrowRateEnabled',
|
||||
type: 'bool',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'isActive',
|
||||
type: 'bool',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'isFreezed',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getReserveData',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'availableLiquidity',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'totalBorrowsStable',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'totalBorrowsVariable',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidityRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'variableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'stableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'averageStableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidityIndex',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'variableBorrowIndex',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint40',
|
||||
name: 'lastUpdateTimestamp',
|
||||
type: 'uint40',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getReserveNormalizedIncome',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getReserveNormalizedVariableDebt',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getReserveTokensAddresses',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'aTokenAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'stableDebtTokenAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'variableDebtTokenAddress',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getReserves',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address[]',
|
||||
name: '',
|
||||
type: 'address[]',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserAccountData',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'totalCollateralETH',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'totalBorrowsETH',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'availableBorrowsETH',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'currentLiquidationThreshold',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'ltv',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'healthFactor',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserReserveData',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'currentATokenBalance',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'currentStableDebt',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'currentVariableDebt',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'principalStableDebt',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'principalVariableDebt',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'stableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidityRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'variableBorrowIndex',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint40',
|
||||
name: 'stableRateLastUpdated',
|
||||
type: 'uint40',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: 'usageAsCollateralEnabled',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_aTokenAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_stableDebtAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_variableDebtAddress',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_interestRateStrategyAddress',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'initReserve',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_collateral',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_purchaseAmount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: '_receiveAToken',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
name: 'liquidationCall',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'rebalanceStableBorrowRate',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_rateMode',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_onBehalfOf',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'repay',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_configuration',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'setConfiguration',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_rateStrategyAddress',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'setReserveInterestRateStrategyAddress',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: '_useAsCollateral',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
name: 'setUserUseReserveAsCollateral',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_rateMode',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'swapBorrowRateMode',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'withdraw',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
143
types/ILendingRateOracle.d.ts
vendored
143
types/ILendingRateOracle.d.ts
vendored
|
@ -1,143 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface ILendingRateOracleInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getMarketBorrowRate(address)': FunctionFragment;
|
||||
'setMarketBorrowRate(address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getMarketBorrowRate', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'setMarketBorrowRate',
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getMarketBorrowRate', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setMarketBorrowRate', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class ILendingRateOracle extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: ILendingRateOracleInterface;
|
||||
|
||||
functions: {
|
||||
getMarketBorrowRate(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getMarketBorrowRate(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
setMarketBorrowRate(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setMarketBorrowRate(address,uint256)'(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getMarketBorrowRate(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getMarketBorrowRate(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setMarketBorrowRate(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setMarketBorrowRate(address,uint256)'(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getMarketBorrowRate(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getMarketBorrowRate(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setMarketBorrowRate(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'setMarketBorrowRate(address,uint256)'(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
getMarketBorrowRate(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getMarketBorrowRate(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setMarketBorrowRate(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'setMarketBorrowRate(address,uint256)'(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getMarketBorrowRate(_asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getMarketBorrowRate(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setMarketBorrowRate(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setMarketBorrowRate(address,uint256)'(
|
||||
_asset: string,
|
||||
_rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {ILendingRateOracle} from './ILendingRateOracle';
|
||||
|
||||
export class ILendingRateOracleFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): ILendingRateOracle {
|
||||
return new Contract(address, _abi, signerOrProvider) as ILendingRateOracle;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getMarketBorrowRate',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_rate',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'setMarketBorrowRate',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
132
types/IPriceOracle.d.ts
vendored
132
types/IPriceOracle.d.ts
vendored
|
@ -1,132 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IPriceOracleInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAssetPrice(address)': FunctionFragment;
|
||||
'setAssetPrice(address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAssetPrice', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setAssetPrice', values: [string, BigNumberish]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAssetPrice', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setAssetPrice', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IPriceOracle extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IPriceOracleInterface;
|
||||
|
||||
functions: {
|
||||
getAssetPrice(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
setAssetPrice(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setAssetPrice(address,uint256)'(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setAssetPrice(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setAssetPrice(address,uint256)'(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setAssetPrice(_asset: string, _price: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setAssetPrice(address,uint256)'(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
setAssetPrice(_asset: string, _price: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setAssetPrice(address,uint256)'(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setAssetPrice(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setAssetPrice(address,uint256)'(
|
||||
_asset: string,
|
||||
_price: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IPriceOracle} from './IPriceOracle';
|
||||
|
||||
export class IPriceOracleFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracle {
|
||||
return new Contract(address, _abi, signerOrProvider) as IPriceOracle;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getAssetPrice',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_price',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'setAssetPrice',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
77
types/IPriceOracleGetter.d.ts
vendored
77
types/IPriceOracleGetter.d.ts
vendored
|
@ -1,77 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IPriceOracleGetterInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getAssetPrice(address)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getAssetPrice', values: [string]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getAssetPrice', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IPriceOracleGetter extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IPriceOracleGetterInterface;
|
||||
|
||||
functions: {
|
||||
getAssetPrice(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAssetPrice(address)'(_asset: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getAssetPrice(_asset: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAssetPrice(address)'(
|
||||
_asset: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IPriceOracleGetter} from './IPriceOracleGetter';
|
||||
|
||||
export class IPriceOracleGetterFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracleGetter {
|
||||
return new Contract(address, _abi, signerOrProvider) as IPriceOracleGetter;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_asset',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getAssetPrice',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
210
types/IReserveInterestRateStrategy.d.ts
vendored
210
types/IReserveInterestRateStrategy.d.ts
vendored
|
@ -1,210 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IReserveInterestRateStrategyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)': FunctionFragment;
|
||||
'getBaseVariableBorrowRate()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(
|
||||
functionFragment: 'calculateInterestRates',
|
||||
values: [string, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'getBaseVariableBorrowRate', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'calculateInterestRates', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getBaseVariableBorrowRate', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IReserveInterestRateStrategy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IReserveInterestRateStrategyInterface;
|
||||
|
||||
functions: {
|
||||
calculateInterestRates(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
};
|
||||
|
||||
calculateInterestRates(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
callStatic: {
|
||||
calculateInterestRates(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
liquidityRate: BigNumber;
|
||||
stableBorrowRate: BigNumber;
|
||||
variableBorrowRate: BigNumber;
|
||||
0: BigNumber;
|
||||
1: BigNumber;
|
||||
2: BigNumber;
|
||||
}>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
calculateInterestRates(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
calculateInterestRates(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'calculateInterestRates(address,uint256,uint256,uint256,uint256)'(
|
||||
_reserve: string,
|
||||
_utilizationRate: BigNumberish,
|
||||
_totalBorrowsStable: BigNumberish,
|
||||
_totalBorrowsVariable: BigNumberish,
|
||||
_averageStableBorrowRate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getBaseVariableBorrowRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getBaseVariableBorrowRate()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IReserveInterestRateStrategy} from './IReserveInterestRateStrategy';
|
||||
|
||||
export class IReserveInterestRateStrategyFactory {
|
||||
static connect(
|
||||
address: string,
|
||||
signerOrProvider: Signer | Provider
|
||||
): IReserveInterestRateStrategy {
|
||||
return new Contract(address, _abi, signerOrProvider) as IReserveInterestRateStrategy;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_reserve',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_utilizationRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_totalBorrowsStable',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_totalBorrowsVariable',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_averageStableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'calculateInterestRates',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'liquidityRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'stableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'variableBorrowRate',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getBaseVariableBorrowRate',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
263
types/IStableDebtToken.d.ts
vendored
263
types/IStableDebtToken.d.ts
vendored
|
@ -1,263 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IStableDebtTokenInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'burn(address,uint256)': FunctionFragment;
|
||||
'getAverageStableRate()': FunctionFragment;
|
||||
'getUserLastUpdated(address)': FunctionFragment;
|
||||
'getUserStableRate(address)': FunctionFragment;
|
||||
'mint(address,uint256,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'burn', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'getAverageStableRate', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getUserLastUpdated', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'getUserStableRate', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'mint',
|
||||
values: [string, BigNumberish, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'burn', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getAverageStableRate', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getUserLastUpdated', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getUserStableRate', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IStableDebtToken extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IStableDebtTokenInterface;
|
||||
|
||||
functions: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getAverageStableRate(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getAverageStableRate()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getUserLastUpdated(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
'getUserLastUpdated(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
getUserStableRate(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getUserStableRate(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
mint(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getAverageStableRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAverageStableRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserLastUpdated(user: string, overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'getUserLastUpdated(address)'(user: string, overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
getUserStableRate(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserStableRate(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
getAverageStableRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAverageStableRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserLastUpdated(user: string, overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'getUserLastUpdated(address)'(user: string, overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
getUserStableRate(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserStableRate(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'mint(address,uint256,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getAverageStableRate(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getAverageStableRate()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserLastUpdated(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserLastUpdated(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserStableRate(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserStableRate(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'mint(address,uint256,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getAverageStableRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getAverageStableRate()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getUserLastUpdated(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getUserLastUpdated(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getUserStableRate(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getUserStableRate(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mint(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'mint(address,uint256,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
rate: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IStableDebtToken} from './IStableDebtToken';
|
||||
|
||||
export class IStableDebtTokenFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IStableDebtToken {
|
||||
return new Contract(address, _abi, signerOrProvider) as IStableDebtToken;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'burn',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'getAverageStableRate',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserLastUpdated',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint40',
|
||||
name: '',
|
||||
type: 'uint40',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserStableRate',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'rate',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'mint',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
72
types/IUniswapExchange.d.ts
vendored
72
types/IUniswapExchange.d.ts
vendored
|
@ -1,72 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IUniswapExchangeInterface extends ethers.utils.Interface {
|
||||
functions: {};
|
||||
|
||||
events: {
|
||||
'AddLiquidity(address,uint256,uint256)': EventFragment;
|
||||
'EthPurchase(address,uint256,uint256)': EventFragment;
|
||||
'RemoveLiquidity(address,uint256,uint256)': EventFragment;
|
||||
'TokenPurchase(address,uint256,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AddLiquidity'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'EthPurchase'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'RemoveLiquidity'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'TokenPurchase'): EventFragment;
|
||||
}
|
||||
|
||||
export class IUniswapExchange extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IUniswapExchangeInterface;
|
||||
|
||||
functions: {};
|
||||
|
||||
callStatic: {};
|
||||
|
||||
filters: {
|
||||
AddLiquidity(
|
||||
provider: string | null,
|
||||
eth_amount: BigNumberish | null,
|
||||
token_amount: BigNumberish | null
|
||||
): EventFilter;
|
||||
|
||||
EthPurchase(
|
||||
buyer: string | null,
|
||||
tokens_sold: BigNumberish | null,
|
||||
eth_bought: BigNumberish | null
|
||||
): EventFilter;
|
||||
|
||||
RemoveLiquidity(
|
||||
provider: string | null,
|
||||
eth_amount: BigNumberish | null,
|
||||
token_amount: BigNumberish | null
|
||||
): EventFilter;
|
||||
|
||||
TokenPurchase(
|
||||
buyer: string | null,
|
||||
eth_sold: BigNumberish | null,
|
||||
tokens_bought: BigNumberish | null
|
||||
): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {};
|
||||
|
||||
populateTransaction: {};
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IUniswapExchange} from './IUniswapExchange';
|
||||
|
||||
export class IUniswapExchangeFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IUniswapExchange {
|
||||
return new Contract(address, _abi, signerOrProvider) as IUniswapExchange;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'provider',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'eth_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'token_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'AddLiquidity',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'buyer',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'tokens_sold',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'eth_bought',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'EthPurchase',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'provider',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'eth_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'token_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'RemoveLiquidity',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'buyer',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'eth_sold',
|
||||
type: 'uint256',
|
||||
},
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'uint256',
|
||||
name: 'tokens_bought',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'TokenPurchase',
|
||||
type: 'event',
|
||||
},
|
||||
];
|
160
types/IVariableDebtToken.d.ts
vendored
160
types/IVariableDebtToken.d.ts
vendored
|
@ -1,160 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IVariableDebtTokenInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'burn(address,uint256)': FunctionFragment;
|
||||
'getUserIndex(address)': FunctionFragment;
|
||||
'mint(address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'burn', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'getUserIndex', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'mint', values: [string, BigNumberish]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'burn', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getUserIndex', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class IVariableDebtToken extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IVariableDebtTokenInterface;
|
||||
|
||||
functions: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getUserIndex(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getUserIndex(address)'(
|
||||
user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
mint(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getUserIndex(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(user: string, amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
getUserIndex(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(user: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getUserIndex(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
mint(user: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
burn(user: string, amount: BigNumberish, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'burn(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getUserIndex(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getUserIndex(address)'(user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
mint(user: string, amount: BigNumberish, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
user: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IVariableDebtToken} from './IVariableDebtToken';
|
||||
|
||||
export class IVariableDebtTokenFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IVariableDebtToken {
|
||||
return new Contract(address, _abi, signerOrProvider) as IVariableDebtToken;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'burn',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserIndex',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: 'user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: 'amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'mint',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
963
types/IaToken.d.ts
vendored
963
types/IaToken.d.ts
vendored
|
@ -1,963 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface IaTokenInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'allowInterestRedirectionTo(address)': FunctionFragment;
|
||||
'allowance(address,address)': FunctionFragment;
|
||||
'approve(address,uint256)': FunctionFragment;
|
||||
'balanceOf(address)': FunctionFragment;
|
||||
'burn(address,address,uint256)': FunctionFragment;
|
||||
'getInterestRedirectionAddress(address)': FunctionFragment;
|
||||
'getRedirectedBalance(address)': FunctionFragment;
|
||||
'getUserIndex(address)': FunctionFragment;
|
||||
'isTransferAllowed(address,uint256)': FunctionFragment;
|
||||
'mint(address,uint256)': FunctionFragment;
|
||||
'principalBalanceOf(address)': FunctionFragment;
|
||||
'redirectInterestStream(address)': FunctionFragment;
|
||||
'redirectInterestStreamOf(address,address)': FunctionFragment;
|
||||
'totalSupply()': FunctionFragment;
|
||||
'transfer(address,uint256)': FunctionFragment;
|
||||
'transferFrom(address,address,uint256)': FunctionFragment;
|
||||
'transferOnLiquidation(address,address,uint256)': FunctionFragment;
|
||||
'transferUnderlyingTo(address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowInterestRedirectionTo', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'burn', values: [string, string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'getInterestRedirectionAddress', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'getRedirectedBalance', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'getUserIndex', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'isTransferAllowed', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'mint', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'principalBalanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'redirectInterestStream', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'redirectInterestStreamOf',
|
||||
values: [string, string]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'transfer', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferOnLiquidation',
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferUnderlyingTo',
|
||||
values: [string, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'allowInterestRedirectionTo', 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: 'getInterestRedirectionAddress', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getRedirectedBalance', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getUserIndex', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'isTransferAllowed', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'principalBalanceOf', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'redirectInterestStream', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'redirectInterestStreamOf', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transferOnLiquidation', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transferUnderlyingTo', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'Approval(address,address,uint256)': EventFragment;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class IaToken extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: IaTokenInterface;
|
||||
|
||||
functions: {
|
||||
allowInterestRedirectionTo(_to: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'allowInterestRedirectionTo(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
burn(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,address,uint256)'(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getInterestRedirectionAddress(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getInterestRedirectionAddress(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getRedirectedBalance(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getRedirectedBalance(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
getUserIndex(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'getUserIndex(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
isTransferAllowed(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: boolean;
|
||||
}>;
|
||||
|
||||
'isTransferAllowed(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: boolean;
|
||||
}>;
|
||||
|
||||
mint(_user: string, _amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
principalBalanceOf(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'principalBalanceOf(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
redirectInterestStream(_to: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'redirectInterestStream(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
redirectInterestStreamOf(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'redirectInterestStreamOf(address,address)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOnLiquidation(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferOnLiquidation(address,address,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferUnderlyingTo(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferUnderlyingTo(address,uint256)'(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
allowInterestRedirectionTo(_to: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'allowInterestRedirectionTo(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'burn(address,address,uint256)'(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
getInterestRedirectionAddress(_user: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getInterestRedirectionAddress(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<string>;
|
||||
|
||||
getRedirectedBalance(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getRedirectedBalance(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
isTransferAllowed(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'isTransferAllowed(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
mint(_user: string, _amount: BigNumberish, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
principalBalanceOf(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
redirectInterestStream(_to: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'redirectInterestStream(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
redirectInterestStreamOf(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'redirectInterestStreamOf(address,address)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOnLiquidation(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferOnLiquidation(address,address,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferUnderlyingTo(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferUnderlyingTo(address,uint256)'(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
allowInterestRedirectionTo(_to: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'allowInterestRedirectionTo(address)'(_to: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'burn(address,address,uint256)'(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
getInterestRedirectionAddress(_user: string, overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getInterestRedirectionAddress(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<string>;
|
||||
|
||||
getRedirectedBalance(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getRedirectedBalance(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
isTransferAllowed(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'isTransferAllowed(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
mint(_user: string, _amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
principalBalanceOf(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
redirectInterestStream(_to: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'redirectInterestStream(address)'(_to: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
redirectInterestStreamOf(_from: string, _to: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'redirectInterestStreamOf(address,address)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferOnLiquidation(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'transferOnLiquidation(address,address,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
transferUnderlyingTo(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferUnderlyingTo(address,uint256)'(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowInterestRedirectionTo(_to: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'allowInterestRedirectionTo(address)'(_to: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
burn(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'burn(address,address,uint256)'(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getInterestRedirectionAddress(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getInterestRedirectionAddress(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
getRedirectedBalance(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getRedirectedBalance(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getUserIndex(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
isTransferAllowed(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'isTransferAllowed(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
mint(_user: string, _amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
principalBalanceOf(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'principalBalanceOf(address)'(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
redirectInterestStream(_to: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'redirectInterestStream(address)'(_to: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
redirectInterestStreamOf(_from: string, _to: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'redirectInterestStreamOf(address,address)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferOnLiquidation(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferOnLiquidation(address,address,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferUnderlyingTo(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferUnderlyingTo(address,uint256)'(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowInterestRedirectionTo(_to: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowInterestRedirectionTo(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
burn(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'burn(address,address,uint256)'(
|
||||
_user: string,
|
||||
_underlyingTarget: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getInterestRedirectionAddress(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'getInterestRedirectionAddress(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getRedirectedBalance(_user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getRedirectedBalance(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
getUserIndex(_user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getUserIndex(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
isTransferAllowed(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'isTransferAllowed(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
mint(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'mint(address,uint256)'(
|
||||
_user: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
principalBalanceOf(_user: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'principalBalanceOf(address)'(
|
||||
_user: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
redirectInterestStream(_to: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'redirectInterestStream(address)'(
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
redirectInterestStreamOf(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'redirectInterestStreamOf(address,address)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferOnLiquidation(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferOnLiquidation(address,address,uint256)'(
|
||||
_from: string,
|
||||
_to: string,
|
||||
_value: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferUnderlyingTo(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferUnderlyingTo(address,uint256)'(
|
||||
_target: string,
|
||||
_amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,431 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {IaToken} from './IaToken';
|
||||
|
||||
export class IaTokenFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): IaToken {
|
||||
return new Contract(address, _abi, signerOrProvider) as IaToken;
|
||||
}
|
||||
}
|
||||
|
||||
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: '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: '_to',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'allowInterestRedirectionTo',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
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: 'account',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'balanceOf',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_underlyingTarget',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'burn',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getInterestRedirectionAddress',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getRedirectedBalance',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'getUserIndex',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'isTransferAllowed',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'bool',
|
||||
name: '',
|
||||
type: 'bool',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'mint',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_user',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'principalBalanceOf',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_to',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'redirectInterestStream',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_from',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_to',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'redirectInterestStreamOf',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
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: '_from',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_to',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_value',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'transferOnLiquidation',
|
||||
outputs: [],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_target',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '_amount',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
name: 'transferUnderlyingTo',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'nonpayable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
356
types/Ierc20.d.ts
vendored
356
types/Ierc20.d.ts
vendored
|
@ -1,356 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface Ierc20Interface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'allowance(address,address)': FunctionFragment;
|
||||
'approve(address,uint256)': FunctionFragment;
|
||||
'balanceOf(address)': FunctionFragment;
|
||||
'totalSupply()': FunctionFragment;
|
||||
'transfer(address,uint256)': FunctionFragment;
|
||||
'transferFrom(address,address,uint256)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'transfer', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'balanceOf', 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;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class Ierc20 extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: Ierc20Interface;
|
||||
|
||||
functions: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
449
types/Ierc20Detailed.d.ts
vendored
449
types/Ierc20Detailed.d.ts
vendored
|
@ -1,449 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface Ierc20DetailedInterface extends ethers.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;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'allowance', values: [string, string]): string;
|
||||
encodeFunctionData(functionFragment: 'approve', values: [string, BigNumberish]): string;
|
||||
encodeFunctionData(functionFragment: 'balanceOf', values: [string]): 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: [string, BigNumberish]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'transferFrom',
|
||||
values: [string, string, BigNumberish]
|
||||
): 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;
|
||||
|
||||
events: {
|
||||
'Approval(address,address,uint256)': EventFragment;
|
||||
'Transfer(address,address,uint256)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment;
|
||||
}
|
||||
|
||||
export class Ierc20Detailed extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: Ierc20DetailedInterface;
|
||||
|
||||
functions: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'balanceOf(address)'(
|
||||
account: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
decimals(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
'decimals()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: number;
|
||||
}>;
|
||||
|
||||
name(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'name()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
symbol(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'symbol()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
totalSupply(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'totalSupply()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<number>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: CallOverrides
|
||||
): Promise<boolean>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
|
||||
|
||||
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
approve(spender: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
transfer(recipient: string, amount: BigNumberish, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
allowance(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'allowance(address,address)'(
|
||||
owner: string,
|
||||
spender: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
approve(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'approve(address,uint256)'(
|
||||
spender: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'balanceOf(address)'(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'totalSupply()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
transfer(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transfer(address,uint256)'(
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferFrom(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferFrom(address,address,uint256)'(
|
||||
sender: string,
|
||||
recipient: string,
|
||||
amount: BigNumberish,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
134
types/Ierc20DetailedBytes.d.ts
vendored
134
types/Ierc20DetailedBytes.d.ts
vendored
|
@ -1,134 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface Ierc20DetailedBytesInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'decimals()': FunctionFragment;
|
||||
'name()': FunctionFragment;
|
||||
'symbol()': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'decimals', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'name', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'symbol', values?: undefined): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result;
|
||||
|
||||
events: {};
|
||||
}
|
||||
|
||||
export class Ierc20DetailedBytes extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: Ierc20DetailedBytesInterface;
|
||||
|
||||
functions: {
|
||||
decimals(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
'decimals()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: BigNumber;
|
||||
}>;
|
||||
|
||||
name(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'name()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
symbol(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'symbol()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
callStatic: {
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<string>;
|
||||
};
|
||||
|
||||
filters: {};
|
||||
|
||||
estimateGas: {
|
||||
decimals(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'decimals()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'name()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'symbol()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Signer} from 'ethers';
|
||||
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||||
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||||
|
||||
import {Ierc20DetailedBytes} from './Ierc20DetailedBytes';
|
||||
|
||||
export class Ierc20DetailedBytesFactory extends ContractFactory {
|
||||
constructor(signer?: Signer) {
|
||||
super(_abi, _bytecode, signer);
|
||||
}
|
||||
|
||||
deploy(overrides?: Overrides): Promise<Ierc20DetailedBytes> {
|
||||
return super.deploy(overrides || {}) as Promise<Ierc20DetailedBytes>;
|
||||
}
|
||||
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||||
return super.getDeployTransaction(overrides || {});
|
||||
}
|
||||
attach(address: string): Ierc20DetailedBytes {
|
||||
return super.attach(address) as Ierc20DetailedBytes;
|
||||
}
|
||||
connect(signer: Signer): Ierc20DetailedBytesFactory {
|
||||
return super.connect(signer) as Ierc20DetailedBytesFactory;
|
||||
}
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20DetailedBytes {
|
||||
return new Contract(address, _abi, signerOrProvider) as Ierc20DetailedBytes;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
inputs: [],
|
||||
name: 'decimals',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'uint256',
|
||||
name: '',
|
||||
type: 'uint256',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'name',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'bytes32',
|
||||
name: '',
|
||||
type: 'bytes32',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
{
|
||||
inputs: [],
|
||||
name: 'symbol',
|
||||
outputs: [
|
||||
{
|
||||
internalType: 'bytes32',
|
||||
name: '',
|
||||
type: 'bytes32',
|
||||
},
|
||||
],
|
||||
stateMutability: 'view',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
'0x608060405234801561001057600080fd5b5060ad8061001f6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c806306fdde03146041578063313ce56714605957806395d89b4114605f575b600080fd5b60476065565b60408051918252519081900360200190f35b6047606b565b60476071565b60005481565b60025481565b6001548156fea26469706673582212202c2a214f5a159e82787eba9a5eda7b0b81992344fde5598ca1f86f89045c638964736f6c63430006080033';
|
|
@ -1,238 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {Ierc20Detailed} from './Ierc20Detailed';
|
||||
|
||||
export class Ierc20DetailedFactory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20Detailed {
|
||||
return new Contract(address, _abi, signerOrProvider) as Ierc20Detailed;
|
||||
}
|
||||
}
|
||||
|
||||
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: '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: [],
|
||||
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: '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',
|
||||
},
|
||||
];
|
|
@ -1,199 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Contract, Signer} from 'ethers';
|
||||
import {Provider} from '@ethersproject/providers';
|
||||
|
||||
import {Ierc20} from './Ierc20';
|
||||
|
||||
export class Ierc20Factory {
|
||||
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20 {
|
||||
return new Contract(address, _abi, signerOrProvider) as Ierc20;
|
||||
}
|
||||
}
|
||||
|
||||
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: '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: [],
|
||||
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',
|
||||
},
|
||||
];
|
289
types/InitializableAdminUpgradeabilityProxy.d.ts
vendored
289
types/InitializableAdminUpgradeabilityProxy.d.ts
vendored
|
@ -1,289 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {
|
||||
Contract,
|
||||
ContractTransaction,
|
||||
Overrides,
|
||||
PayableOverrides,
|
||||
CallOverrides,
|
||||
} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface InitializableAdminUpgradeabilityProxyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'admin()': FunctionFragment;
|
||||
'changeAdmin(address)': FunctionFragment;
|
||||
'implementation()': FunctionFragment;
|
||||
'initialize(address,address,bytes)': FunctionFragment;
|
||||
'upgradeTo(address)': FunctionFragment;
|
||||
'upgradeToAndCall(address,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'admin', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'changeAdmin', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'implementation', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'initialize', values: [string, string, BytesLike]): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeTo', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [string, BytesLike]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'admin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'changeAdmin', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'implementation', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'AdminChanged(address,address)': EventFragment;
|
||||
'Upgraded(address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
||||
}
|
||||
|
||||
export class InitializableAdminUpgradeabilityProxy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: InitializableAdminUpgradeabilityProxyInterface;
|
||||
|
||||
functions: {
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,address,bytes)'(
|
||||
_logic: string,
|
||||
_admin: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
admin(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,address,bytes)'(
|
||||
_logic: string,
|
||||
_admin: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
admin(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'admin()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
implementation(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'implementation()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'initialize(address,address,bytes)'(
|
||||
_logic: string,
|
||||
_admin: string,
|
||||
_data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
AdminChanged(previousAdmin: null, newAdmin: null): EventFilter;
|
||||
|
||||
Upgraded(implementation: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
admin(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'initialize(address,address,bytes)'(
|
||||
_logic: string,
|
||||
_admin: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'upgradeTo(address)'(newImplementation: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
admin(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'admin()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
changeAdmin(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'changeAdmin(address)'(newAdmin: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
implementation(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'implementation()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'initialize(address,address,bytes)'(
|
||||
_logic: string,
|
||||
_admin: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeTo(newImplementation: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeTo(address)'(
|
||||
newImplementation: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
upgradeToAndCall(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'upgradeToAndCall(address,bytes)'(
|
||||
newImplementation: string,
|
||||
data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
107
types/InitializableUpgradeabilityProxy.d.ts
vendored
107
types/InitializableUpgradeabilityProxy.d.ts
vendored
|
@ -1,107 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {
|
||||
Contract,
|
||||
ContractTransaction,
|
||||
PayableOverrides,
|
||||
CallOverrides,
|
||||
} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface InitializableUpgradeabilityProxyInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'initialize(address,bytes)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'initialize', values: [string, BytesLike]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'Upgraded(address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
||||
}
|
||||
|
||||
export class InitializableUpgradeabilityProxy extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: InitializableUpgradeabilityProxyInterface;
|
||||
|
||||
functions: {
|
||||
initialize(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
initialize(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
initialize(_logic: string, _data: BytesLike, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
Upgraded(implementation: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
initialize(_logic: string, _data: BytesLike, overrides?: PayableOverrides): Promise<BigNumber>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
initialize(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'initialize(address,bytes)'(
|
||||
_logic: string,
|
||||
_data: BytesLike,
|
||||
overrides?: PayableOverrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
|
@ -1,74 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {Signer} from 'ethers';
|
||||
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||||
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||||
|
||||
import {InitializableUpgradeabilityProxy} from './InitializableUpgradeabilityProxy';
|
||||
|
||||
export class InitializableUpgradeabilityProxyFactory extends ContractFactory {
|
||||
constructor(signer?: Signer) {
|
||||
super(_abi, _bytecode, signer);
|
||||
}
|
||||
|
||||
deploy(overrides?: Overrides): Promise<InitializableUpgradeabilityProxy> {
|
||||
return super.deploy(overrides || {}) as Promise<InitializableUpgradeabilityProxy>;
|
||||
}
|
||||
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||||
return super.getDeployTransaction(overrides || {});
|
||||
}
|
||||
attach(address: string): InitializableUpgradeabilityProxy {
|
||||
return super.attach(address) as InitializableUpgradeabilityProxy;
|
||||
}
|
||||
connect(signer: Signer): InitializableUpgradeabilityProxyFactory {
|
||||
return super.connect(signer) as InitializableUpgradeabilityProxyFactory;
|
||||
}
|
||||
static connect(
|
||||
address: string,
|
||||
signerOrProvider: Signer | Provider
|
||||
): InitializableUpgradeabilityProxy {
|
||||
return new Contract(address, _abi, signerOrProvider) as InitializableUpgradeabilityProxy;
|
||||
}
|
||||
}
|
||||
|
||||
const _abi = [
|
||||
{
|
||||
anonymous: false,
|
||||
inputs: [
|
||||
{
|
||||
indexed: true,
|
||||
internalType: 'address',
|
||||
name: 'implementation',
|
||||
type: 'address',
|
||||
},
|
||||
],
|
||||
name: 'Upgraded',
|
||||
type: 'event',
|
||||
},
|
||||
{
|
||||
stateMutability: 'payable',
|
||||
type: 'fallback',
|
||||
},
|
||||
{
|
||||
inputs: [
|
||||
{
|
||||
internalType: 'address',
|
||||
name: '_logic',
|
||||
type: 'address',
|
||||
},
|
||||
{
|
||||
internalType: 'bytes',
|
||||
name: '_data',
|
||||
type: 'bytes',
|
||||
},
|
||||
],
|
||||
name: 'initialize',
|
||||
outputs: [],
|
||||
stateMutability: 'payable',
|
||||
type: 'function',
|
||||
},
|
||||
];
|
||||
|
||||
const _bytecode =
|
||||
'0x608060405234801561001057600080fd5b50610398806100206000396000f3fe60806040526004361061001e5760003560e01c8063d1f5789414610028575b6100266100de565b005b6100266004803603604081101561003e57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561006957600080fd5b82018360208201111561007b57600080fd5b8035906020019184600183028401116401000000008311171561009d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f8945050505050565b6100e66100f6565b6100f66100f161023a565b61025f565b565b600061010261023a565b6001600160a01b03161461011557600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461017557fe5b61017e82610283565b805115610236576000826001600160a01b0316826040518082805190602001908083835b602083106101c15780518252601f1990920191602091820191016101a2565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610221576040519150601f19603f3d011682016040523d82523d6000602084013e610226565b606091505b505090508061023457600080fd5b505b5050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561027e573d6000f35b3d6000fd5b61028c816102eb565b6102c75760405162461bcd60e51b815260040180806020018281038252603b815260200180610328603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061031f57508115155b94935050505056fe43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a264697066735822122083de6d05e08d1d855618b7eaaa2bf363245e7533ff32697a31dbab8482dcc68864736f6c63430006080033';
|
2289
types/LendingPool.d.ts
vendored
2289
types/LendingPool.d.ts
vendored
File diff suppressed because it is too large
Load Diff
612
types/LendingPoolAddressesProvider.d.ts
vendored
612
types/LendingPoolAddressesProvider.d.ts
vendored
|
@ -1,612 +0,0 @@
|
|||
/* Generated by ts-generator ver. 0.0.8 */
|
||||
/* tslint:disable */
|
||||
|
||||
import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers';
|
||||
import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts';
|
||||
import {BytesLike} from '@ethersproject/bytes';
|
||||
import {Listener, Provider} from '@ethersproject/providers';
|
||||
import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi';
|
||||
|
||||
interface LendingPoolAddressesProviderInterface extends ethers.utils.Interface {
|
||||
functions: {
|
||||
'getLendingPool()': FunctionFragment;
|
||||
'getLendingPoolConfigurator()': FunctionFragment;
|
||||
'getLendingPoolLiquidationManager()': FunctionFragment;
|
||||
'getLendingPoolManager()': FunctionFragment;
|
||||
'getLendingRateOracle()': FunctionFragment;
|
||||
'getPriceOracle()': FunctionFragment;
|
||||
'owner()': FunctionFragment;
|
||||
'renounceOwnership()': FunctionFragment;
|
||||
'setLendingPoolConfiguratorImpl(address)': FunctionFragment;
|
||||
'setLendingPoolImpl(address)': FunctionFragment;
|
||||
'setLendingPoolLiquidationManager(address)': FunctionFragment;
|
||||
'setLendingPoolManager(address)': FunctionFragment;
|
||||
'setLendingRateOracle(address)': FunctionFragment;
|
||||
'setPriceOracle(address)': FunctionFragment;
|
||||
'transferOwnership(address)': FunctionFragment;
|
||||
};
|
||||
|
||||
encodeFunctionData(functionFragment: 'getLendingPool', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingPoolConfigurator', values?: undefined): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'getLendingPoolLiquidationManager',
|
||||
values?: undefined
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingPoolManager', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getLendingRateOracle', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'getPriceOracle', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolConfiguratorImpl', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolImpl', values: [string]): string;
|
||||
encodeFunctionData(
|
||||
functionFragment: 'setLendingPoolLiquidationManager',
|
||||
values: [string]
|
||||
): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingPoolManager', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setLendingRateOracle', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'setPriceOracle', values: [string]): string;
|
||||
encodeFunctionData(functionFragment: 'transferOwnership', values: [string]): string;
|
||||
|
||||
decodeFunctionResult(functionFragment: 'getLendingPool', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingPoolConfigurator', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'getLendingPoolLiquidationManager',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingPoolManager', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getLendingRateOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'getPriceOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolConfiguratorImpl', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolImpl', data: BytesLike): Result;
|
||||
decodeFunctionResult(
|
||||
functionFragment: 'setLendingPoolLiquidationManager',
|
||||
data: BytesLike
|
||||
): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingPoolManager', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setLendingRateOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'setPriceOracle', data: BytesLike): Result;
|
||||
decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;
|
||||
|
||||
events: {
|
||||
'EthereumAddressUpdated(address)': EventFragment;
|
||||
'LendingPoolConfiguratorUpdated(address)': EventFragment;
|
||||
'LendingPoolLiquidationManagerUpdated(address)': EventFragment;
|
||||
'LendingPoolManagerUpdated(address)': EventFragment;
|
||||
'LendingPoolUpdated(address)': EventFragment;
|
||||
'LendingRateOracleUpdated(address)': EventFragment;
|
||||
'OwnershipTransferred(address,address)': EventFragment;
|
||||
'PriceOracleUpdated(address)': EventFragment;
|
||||
'ProxyCreated(bytes32,address)': EventFragment;
|
||||
};
|
||||
|
||||
getEvent(nameOrSignatureOrTopic: 'EthereumAddressUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'LendingPoolConfiguratorUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'LendingPoolLiquidationManagerUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'LendingPoolManagerUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'LendingPoolUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'LendingRateOracleUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'PriceOracleUpdated'): EventFragment;
|
||||
getEvent(nameOrSignatureOrTopic: 'ProxyCreated'): EventFragment;
|
||||
}
|
||||
|
||||
export class LendingPoolAddressesProvider extends Contract {
|
||||
connect(signerOrProvider: Signer | Provider | string): this;
|
||||
attach(addressOrName: string): this;
|
||||
deployed(): Promise<this>;
|
||||
|
||||
on(event: EventFilter | string, listener: Listener): this;
|
||||
once(event: EventFilter | string, listener: Listener): this;
|
||||
addListener(eventName: EventFilter | string, listener: Listener): this;
|
||||
removeAllListeners(eventName: EventFilter | string): this;
|
||||
removeListener(eventName: any, listener: Listener): this;
|
||||
|
||||
interface: LendingPoolAddressesProviderInterface;
|
||||
|
||||
functions: {
|
||||
getLendingPool(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPool()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolConfigurator(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolConfigurator()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolLiquidationManager(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingPoolManager(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingPoolManager()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getLendingRateOracle(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getLendingRateOracle()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
getPriceOracle(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'getPriceOracle()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
owner(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
'owner()'(
|
||||
overrides?: CallOverrides
|
||||
): Promise<{
|
||||
0: string;
|
||||
}>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(
|
||||
pool: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
};
|
||||
|
||||
getLendingPool(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<ContractTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<ContractTransaction>;
|
||||
|
||||
callStatic: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<string>;
|
||||
|
||||
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'renounceOwnership()'(overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(configurator: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
setLendingPoolLiquidationManager(manager: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingPoolManager(lendingPoolManager: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setLendingRateOracle(lendingRateOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: CallOverrides
|
||||
): Promise<void>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'setPriceOracle(address)'(priceOracle: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
||||
|
||||
'transferOwnership(address)'(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
||||
};
|
||||
|
||||
filters: {
|
||||
EthereumAddressUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
LendingPoolConfiguratorUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
LendingPoolLiquidationManagerUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
LendingPoolManagerUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
LendingPoolUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
LendingRateOracleUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
|
||||
|
||||
PriceOracleUpdated(newAddress: string | null): EventFilter;
|
||||
|
||||
ProxyCreated(id: null, newAddress: string | null): EventFilter;
|
||||
};
|
||||
|
||||
estimateGas: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<BigNumber>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(configurator: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolImpl(address)'(pool: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolLiquidationManager(manager: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingPoolManager(lendingPoolManager: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setLendingRateOracle(lendingRateOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<BigNumber>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'setPriceOracle(address)'(priceOracle: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
|
||||
'transferOwnership(address)'(newOwner: string, overrides?: Overrides): Promise<BigNumber>;
|
||||
};
|
||||
|
||||
populateTransaction: {
|
||||
getLendingPool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPool()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolConfigurator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolConfigurator()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolLiquidationManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolLiquidationManager()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingPoolManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingPoolManager()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getLendingRateOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getLendingRateOracle()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
getPriceOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'getPriceOracle()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'owner()'(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
||||
|
||||
renounceOwnership(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'renounceOwnership()'(overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolConfiguratorImpl(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolConfiguratorImpl(address)'(
|
||||
configurator: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolImpl(pool: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolImpl(address)'(
|
||||
pool: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolLiquidationManager(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolLiquidationManager(address)'(
|
||||
manager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingPoolManager(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingPoolManager(address)'(
|
||||
lendingPoolManager: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setLendingRateOracle(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
'setLendingRateOracle(address)'(
|
||||
lendingRateOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
setPriceOracle(priceOracle: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'setPriceOracle(address)'(
|
||||
priceOracle: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
|
||||
transferOwnership(newOwner: string, overrides?: Overrides): Promise<PopulatedTransaction>;
|
||||
|
||||
'transferOwnership(address)'(
|
||||
newOwner: string,
|
||||
overrides?: Overrides
|
||||
): Promise<PopulatedTransaction>;
|
||||
};
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user