repo cleanup -1

This commit is contained in:
andyk 2020-07-03 12:15:30 +03:00
parent a784e42b78
commit 7690b22e8e
174 changed files with 97 additions and 28284 deletions

View File

@ -1,45 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../mocks/tokens/MintableERC20.sol";
import "../libraries/EthAddressLib.sol";
/// @title MockKyberProxy
/// @author Aave
/// @notice Mock contract to simulate the behaviour of the Kyber DEX
/// - Receives ETH/tokens
/// - Mints the tokenToBurn
/// - Sends back the tokenToBurn
contract MockKyberProxy {
using SafeERC20 for IERC20;
using SafeERC20 for MintableERC20;
/// @notice The token which the msg.sender of tradeWithHint will burn
MintableERC20 public tokenToBurn;
constructor(MintableERC20 _tokenToBurn) public {
tokenToBurn = _tokenToBurn;
}
/// @notice Simulates the function with the same name on the Kyber Proxy contract
function tradeWithHint(
IERC20 _fromToken,
uint256 _amount,
IERC20 _toToken,
address _receiver,
uint256 _maxAmount,
uint minConversionRate,
address _referral,
bytes calldata _filtering
) external payable returns(uint256) {
require(tokenToBurn.mint(1 ether), "TRADE_WITH_HINT. Reverted mint()");
if (address(_fromToken) != EthAddressLib.ethAddress()) {
_fromToken.safeTransferFrom(msg.sender, address(this), _amount);
}
tokenToBurn.safeTransfer(msg.sender, 1 ether);
return 1 ether;
}
}

View File

@ -1,63 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../libraries/EthAddressLib.sol";
import "../mocks/tokens/MintableERC20.sol";
import "../interfaces/IOneSplit.sol";
contract MockOneSplit is IOneSplit {
using SafeERC20 for IERC20;
using SafeERC20 for MintableERC20;
MintableERC20 public tokenToBurn;
constructor(MintableERC20 _tokenToBurn) public {
tokenToBurn = _tokenToBurn;
}
function getExpectedReturn(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 parts,
uint256 disableFlags // 1 - Uniswap, 2 - Kyber, 4 - Bancor, 8 - Oasis, 16 - Compound, 32 - Fulcrum, 64 - Chai, 128 - Aave, 256 - SmartToken, 1024 - bDAI
)
public
override
view
returns(
uint256 returnAmount,
uint256[] memory distribution // [Uniswap, Kyber, Bancor, Oasis]
) {
return (0, new uint256[](0));
}
function swap(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 minReturn,
uint256[] memory distribution, // [Uniswap, Kyber, Bancor, Oasis]
uint256 disableFlags // 16 - Compound, 32 - Fulcrum, 64 - Chai, 128 - Aave, 256 - SmartToken, 1024 - bDAI
) public override payable {
}
function goodSwap(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 minReturn,
uint256 parts,
uint256 disableFlags
) public override payable {
require(tokenToBurn.mint(10000 ether), "TRADE_WITH_HINT. Reverted mint()");
if (address(fromToken) != EthAddressLib.ethAddress()) {
fromToken.safeTransferFrom(msg.sender, address(this), amount);
}
tokenToBurn.safeTransfer(msg.sender, 10000 ether);
}
}

View File

@ -1,79 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/IOneSplit.sol";
import "../interfaces/IPriceOracleGetter.sol";
import "../interfaces/IExchangeAdapter.sol";
/// @title OneSplitAdapter
/// @author Aave
/// @notice Implements the logic to exchange assets through 1Split
/// The hardcoded parameters are:
/// 0x1814222fa8c8c1C1bf380e3BBFBd9De8657Da476: ONE_SPLIT. The address of the 1Split exchange
/// 0x76B47460d7F7c5222cFb6b6A75615ab10895DDe4: AAVE_PRICES_PROVIDER. Contract providing prices of the assets
/// in the Aave protocol, in token/ETH.
/// 512 : MULTI_PATH_ETH_FLAG. By using this flag on OneSplit, the swap sequence will introduce a step to ETH
/// in the middle, resulting in a sequence like FROM-to-ETH -> ETH-to-TO.
/// This is optimal for cases where the pair FROM/TO is not liquid enough in the
/// underlying exchanges used by OneSplit, reducing this way the slippage.
/// 10: SPLIT_PARTS. It defines in how many chunks the amount to swap will be splitted to then
/// divide the chunks amongst the underlying exchanges.
/// For example, using 10 as SPLIT_PARTS and having 4 underlying exchanges on 1Split,
/// the division amongst could look like [4,4,0,2].
contract OneSplitAdapter is IExchangeAdapter {
using SafeMath for uint256;
event OneSplitAdapterSetup(address oneSplit, address priceOracle, uint256 splitParts);
constructor() public {
emit OneSplitAdapterSetup(0x1814222fa8c8c1C1bf380e3BBFBd9De8657Da476, 0x76B47460d7F7c5222cFb6b6A75615ab10895DDe4, 10);
}
/// @notice "Infinite" approval for all the tokens initialized
/// @param _tokens the list of token addresses to approve
function approveExchange(IERC20[] calldata _tokens) external override {
for (uint256 i = 0; i < _tokens.length; i++) {
if (address(_tokens[i]) != EthAddressLib.ethAddress()) {
_tokens[i].safeApprove(0x1814222fa8c8c1C1bf380e3BBFBd9De8657Da476, UintConstants.maxUintMinus1());
}
}
}
/// @notice Exchanges _amount of _from token (or ETH) to _to token (or ETH)
/// - Uses EthAddressLib.ethAddress() as the reference on 1Split of ETH
/// @param _from The asset to exchange from
/// @param _to The asset to exchange to
/// @param _amount The amount to exchange
/// @param _maxSlippage Max slippage acceptable, taken into account after the goodSwap()
function exchange(address _from, address _to, uint256 _amount, uint256 _maxSlippage) external override returns(uint256) {
uint256 _value = (_from == EthAddressLib.ethAddress()) ? _amount : 0;
uint256 _fromAssetPriceInWei = IPriceOracleGetter(0x76B47460d7F7c5222cFb6b6A75615ab10895DDe4).getAssetPrice(_from);
uint256 _toAssetPriceInWei = IPriceOracleGetter(0x76B47460d7F7c5222cFb6b6A75615ab10895DDe4).getAssetPrice(_to);
uint256 _toBalanceBefore = IERC20(_to).balanceOf(address(this));
IOneSplit(0x1814222fa8c8c1C1bf380e3BBFBd9De8657Da476).goodSwap{value: _value}(
IERC20(_from),
IERC20(_to),
_amount,
0,
10,
512
);
uint256 _toReceivedAmount = IERC20(_to).balanceOf(address(this)).sub(_toBalanceBefore);
require(
(_toAssetPriceInWei.mul(_toReceivedAmount).mul(100))
.div(_fromAssetPriceInWei.mul(_amount)) >= (100 - _maxSlippage),
"INVALID_SLIPPAGE"
);
emit Exchange(_from, _to, 0x1814222fa8c8c1C1bf380e3BBFBd9De8657Da476, _amount, _toReceivedAmount);
return _toReceivedAmount;
}
}

View File

@ -8,7 +8,6 @@ import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../libraries/openzeppelin-upgradeability/VersionedInitializable.sol";
import "../interfaces/IKyberNetworkProxyInterface.sol";
import "../interfaces/IExchangeAdapter.sol";
import "../libraries/EthAddressLib.sol";
@ -57,9 +56,6 @@ contract TokenDistributor is ReentrancyGuard, VersionedInitializable {
/// @notice Instead of using 100 for percentages, higher base to have more precision in the distribution
uint256 public constant DISTRIBUTION_BASE = 10000;
/// @notice DEPRECATED
IKyberNetworkProxyInterface public kyberProxy;
/// @notice The address of the token to burn (LEND token)
address public tokenToBurn;
@ -215,4 +211,4 @@ contract TokenDistributor is ReentrancyGuard, VersionedInitializable {
return IMPLEMENTATION_REVISION;
}
}
}

View File

@ -1,23 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IKyberNetworkProxyInterface {
function maxGasPrice() external view returns(uint);
function getUserCapInWei(address user) external view returns(uint);
function getUserCapInTokenWei(address user, IERC20 token) external view returns(uint);
function enabled() external view returns(bool);
function info(bytes32 id) external view returns(uint);
function getExpectedRate(IERC20 src, IERC20 dest, uint srcQty)
external view returns (uint expectedRate, uint slippageRate);
function tradeWithHint(
IERC20 src,
uint srcAmount,
IERC20 dest,
address destAddress,
uint maxDestAmount,
uint minConversionRate,
address walletId,
bytes calldata hint) external payable returns(uint);
}

View File

@ -1,60 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
abstract contract IOneSplitView {
// disableFlags = FLAG_UNISWAP + FLAG_KYBER + ...
uint256 public constant FLAG_UNISWAP = 0x01;
uint256 public constant FLAG_KYBER = 0x02;
uint256 public constant FLAG_KYBER_UNISWAP_RESERVE = 0x100000000; // Turned off by default
uint256 public constant FLAG_KYBER_OASIS_RESERVE = 0x200000000; // Turned off by default
uint256 public constant FLAG_KYBER_BANCOR_RESERVE = 0x400000000; // Turned off by default
uint256 public constant FLAG_BANCOR = 0x04;
uint256 public constant FLAG_OASIS = 0x08;
uint256 public constant FLAG_COMPOUND = 0x10;
uint256 public constant FLAG_FULCRUM = 0x20;
uint256 public constant FLAG_CHAI = 0x40;
uint256 public constant FLAG_AAVE = 0x80;
uint256 public constant FLAG_SMART_TOKEN = 0x100;
uint256 public constant FLAG_MULTI_PATH_ETH = 0x200; // Turned off by default
uint256 public constant FLAG_BDAI = 0x400;
uint256 public constant FLAG_IEARN = 0x800;
function getExpectedReturn(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 parts,
uint256 disableFlags // 1 - Uniswap, 2 - Kyber, 4 - Bancor, 8 - Oasis, 16 - Compound, 32 - Fulcrum, 64 - Chai, 128 - Aave, 256 - SmartToken, 1024 - bDAI
)
public
virtual
view
returns(
uint256 returnAmount,
uint256[] memory distribution // [Uniswap, Kyber, Bancor, Oasis]
);
}
abstract contract IOneSplit is IOneSplitView {
function swap(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 minReturn,
uint256[] memory distribution, // [Uniswap, Kyber, Bancor, Oasis]
uint256 disableFlags // 16 - Compound, 32 - Fulcrum, 64 - Chai, 128 - Aave, 256 - SmartToken, 1024 - bDAI
) public virtual payable;
function goodSwap(
IERC20 fromToken,
IERC20 toToken,
uint256 amount,
uint256 minReturn,
uint256 parts,
uint256 disableFlags // 1 - Uniswap, 2 - Kyber, 4 - Bancor, 8 - Oasis, 16 - Compound, 32 - Fulcrum, 64 - Chai, 128 - Aave, 256 - SmartToken, 1024 - bDAI
) public virtual payable;
}

View File

@ -1,9 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockBAT is MintableERC20("BAT", "Basic Attention Token", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockBUSD is MintableERC20("BUSD", "Binance USD", 18) {}

View File

@ -1,9 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockDAI is MintableERC20("DAI", "DAI", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockKNC is MintableERC20("KNC", "Kyber Network", 18) {}

View File

@ -1,9 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockLEND is MintableERC20("LEND", "LEND", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockLINK is MintableERC20("LINK", "ChainLink", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockMANA is MintableERC20("MANA", "Decentraland", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockMKR is MintableERC20("MKR", "Maker", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockREP is MintableERC20("REP", "Augur", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockSNX is MintableERC20("SNX", "SNX", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockSUSD is MintableERC20("SUSD", "Synthetix USD", 6) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockTUSD is MintableERC20("TUSD", "TrueUSD", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_DAI_ETH is MintableERC20("UNI_DAI_ETH", "UNI_DAI_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_LEND_ETH is MintableERC20("UNI_LEND_ETH", "UNI_LEND_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_LINK_ETH is MintableERC20("UNI_LINK_ETH", "UNI_LINK_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_MKR_ETH is MintableERC20("UNI_MKR_ETH", "UNI_MKR_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_SETH_ETH is MintableERC20("UNI_SETH_ETH", "UNI_SETH_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUNI_USDC_ETH is MintableERC20("UNI_USDC_ETH", "UNI_USDC_ETH", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUSD is MintableERC20("USD", "USD", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUSDC is MintableERC20("USDC", "USD Coin", 6) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockUSDT is MintableERC20("USDT", "USDT Coin", 6) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockWBTC is MintableERC20("WBTC", "WBTC Coin", 18) {}

View File

@ -1,8 +0,0 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
import "./MintableERC20.sol";
contract MockZRX is MintableERC20("ZRX", "0x Coin", 18) {}

View File

@ -6,16 +6,5 @@ services:
context: ./
working_dir: /src
command: npm run run-env
depends_on:
- ganache
volumes:
- ./:/src
ganache:
image: trufflesuite/ganache-cli:latest
command: [
"ganache-cli",
"--gasLimit", "10000000",
"--mnemonic", "fox sight canyon orphan hotel grow hedgehog build bless august weather swarm",
"--hardfork", "istanbul"
]

View File

@ -10,7 +10,6 @@ import {
iParamsPerNetwork,
iParamsPerPool,
} from "./types";
import {Example} from "../types/Example";
import {LendingPoolAddressesProvider} from "../types/LendingPoolAddressesProvider";
import {MintableErc20} from "../types/MintableErc20";
import {LendingPoolAddressesProviderRegistry} from "../types/LendingPoolAddressesProviderRegistry";
@ -24,8 +23,6 @@ import {MockAggregator} from "../types/MockAggregator";
import {LendingRateOracle} from "../types/LendingRateOracle";
import {DefaultReserveInterestRateStrategy} from "../types/DefaultReserveInterestRateStrategy";
import {LendingPoolLiquidationManager} from "../types/LendingPoolLiquidationManager";
import {MockOneSplit} from "../types/MockOneSplit";
import {OneSplitAdapter} from "../types/OneSplitAdapter";
import {TokenDistributor} from "../types/TokenDistributor";
import {InitializableAdminUpgradeabilityProxy} from "../types/InitializableAdminUpgradeabilityProxy";
import {MockFlashLoanReceiver} from "../types/MockFlashLoanReceiver";
@ -111,9 +108,6 @@ const getContract = async <ContractType extends Contract>(
): Promise<ContractType> =>
(await BRE.ethers.getContractAt(contractName, address)) as ContractType;
export const deployExampleContract = async () =>
await deployContract<Example>(eContractid.Example, []);
export const deployLendingPoolAddressesProvider = async () =>
await deployContract<LendingPoolAddressesProvider>(
eContractid.LendingPoolAddressesProvider,
@ -162,14 +156,14 @@ export const linkLibrariesToArtifact = async(artifact: Artifact) => {
[eContractid.UserLogic]: userLogic.address,
[eContractid.ReserveLogic]: reserveLogic.address,
});
const genericLogicFactory = await BRE.ethers.getContractFactory(
genericLogicArtifact.abi,
linkedGenericLogicByteCode
);
const genericLogic = await (await genericLogicFactory.deploy()).deployed();
const validationLogicArtifact = await readArtifact(
BRE.config.paths.artifacts,
eContractid.ValidationLogic
@ -180,15 +174,15 @@ export const linkLibrariesToArtifact = async(artifact: Artifact) => {
[eContractid.ReserveLogic]: reserveLogic.address,
[eContractid.GenericLogic]: genericLogic.address,
});
const validationLogicFactory = await BRE.ethers.getContractFactory(
validationLogicArtifact.abi,
linkedValidationLogicByteCode
);
const validationLogic = await (await validationLogicFactory.deploy()).deployed();
const linkedBytecode = linkBytecode(artifact, {
[eContractid.CoreLibrary]: coreLibrary.address,
@ -211,12 +205,12 @@ export const deployLendingPool = async () => {
BRE.config.paths.artifacts,
eContractid.LendingPool
);
const factory = await linkLibrariesToArtifact(lendingPoolArtifact);
const lendingPool = await factory.deploy();
return (await lendingPool.deployed()) as LendingPool;
}
@ -244,7 +238,7 @@ export const deployLendingPoolLiquidationManager = async () => {
BRE.config.paths.artifacts,
eContractid.LendingPoolLiquidationManager
);
const factory = await linkLibrariesToArtifact(liquidationManagerArtifact);
const liquidationManager = await factory.deploy();
@ -278,12 +272,6 @@ export const deployWalletBalancerProvider = async (
[addressesProvider]
);
export const deployMockOneSplit = async (tokenToBurn: tEthereumAddress) =>
await deployContract<MockOneSplit>(eContractid.MockOneSplit, [tokenToBurn]);
export const deployOneSplitAdapter = async () =>
await deployContract<OneSplitAdapter>(eContractid.OneSplitAdapter, []);
export const deployAaveProtocolTestHelpers = async (
addressesProvider: tEthereumAddress
) =>
@ -317,7 +305,7 @@ export const deployDefaultReserveInterestRateStrategy = async ([
string,
string,
string
]) =>
]) =>
await deployContract<DefaultReserveInterestRateStrategy>(
eContractid.DefaultReserveInterestRateStrategy,
[
@ -386,12 +374,12 @@ export const deployDefaultReserveInterestRateStrategy = async ([
underlyingAsset,
addressesProvider
);
return token;
}
export const getLendingPoolAddressesProvider = async (
address?: tEthereumAddress
) => {
@ -428,7 +416,7 @@ export const getLendingPool = async (address?: tEthereumAddress) => {
BRE.config.paths.artifacts,
eContractid.LendingPool
);
const factory = await linkLibrariesToArtifact(lendingPoolArtifact);

View File

@ -33,8 +33,6 @@ export enum eContractid {
ChainlinkProxyPriceProvider = "ChainlinkProxyPriceProvider",
DefaultReserveInterestRateStrategy = "DefaultReserveInterestRateStrategy",
LendingPoolLiquidationManager = "LendingPoolLiquidationManager",
MockOneSplit = "MockOneSplit",
OneSplitAdapter = "OneSplitAdapter",
TokenDistributor = "TokenDistributor",
InitializableAdminUpgradeabilityProxy = "InitializableAdminUpgradeabilityProxy",
MockFlashLoanReceiver = "MockFlashLoanReceiver",

View File

@ -38,7 +38,6 @@
"chai-bignumber": "3.0.0",
"ethereum-waffle": "2.5.1",
"ethers": "4.0.47",
"ganache-cli": "6.9.1",
"husky": "^4.2.5",
"lowdb": "1.0.0",
"prettier": "^2.0.5",

View File

@ -1,23 +0,0 @@
import { task } from "@nomiclabs/buidler/config";
import { eContractid } from "../../helpers/types";
import {
registerContractInJsonDb,
deployExampleContract,
} from "../../helpers/contracts-helpers";
const { Example } = eContractid;
task(`deploy-${Example}`, `Deploys the ${Example} contract`).setAction(
async ({}, localBRE) => {
await localBRE.run("set-bre");
console.log(`Deploying ${Example} ...\n`);
const example = await deployExampleContract();
await example.deployTransaction.wait();
await registerContractInJsonDb(`${Example}`, example);
return example;
}
);

View File

@ -1,18 +0,0 @@
import { task } from "@nomiclabs/buidler/config";
import { eContractid } from "../../helpers/types";
import { expect } from "chai";
import { BuidlerRuntimeEnvironment } from "@nomiclabs/buidler/types";
import { Example } from "../../types/Example";
task("dev-deployment", "Deployment in buidlerevm").setAction(
async (_, localBRE) => {
const BRE: BuidlerRuntimeEnvironment = await localBRE.run("set-bre");
const example = (await BRE.run(`deploy-${eContractid.Example}`)) as Example;
expect((await example.test()).toString()).to.equal(
"5",
"INVALID_TEST_VALUE"
);
}
);

View File

@ -14,8 +14,6 @@ import {
deployLendingRateOracle,
deployDefaultReserveInterestRateStrategy,
deployLendingPoolLiquidationManager,
deployMockOneSplit,
deployOneSplitAdapter,
deployTokenDistributor,
deployInitializableAdminUpgradeabilityProxy,
deployMockFlashLoanReceiver,
@ -64,7 +62,7 @@ import { initializeMakeSuite } from './helpers/make-suite';
const deployAllMockTokens = async (deployer: Signer) => {
const tokens: {[symbol: string]: MockContract | MintableErc20} = {};
const protoConfigData = getReservesConfigByPool(AavePools.proto);
const secondaryConfigData = getReservesConfigByPool(AavePools.secondary);
@ -72,11 +70,11 @@ const deployAllMockTokens = async (deployer: Signer) => {
for (const tokenSymbol of Object.keys(TokenContractId)) {
if (tokenSymbol !== "ETH") {
let decimals = 18;
let configData = (<any>protoConfigData)[tokenSymbol];
if(!configData){
configData = (<any>secondaryConfigData)[tokenSymbol]
}
@ -84,7 +82,7 @@ const deployAllMockTokens = async (deployer: Signer) => {
if(!configData){
decimals = 18;
}
tokens[tokenSymbol] = await deployMintableErc20([
tokenSymbol,
tokenSymbol,
@ -215,7 +213,7 @@ const initReserves = async (
string,
string
][])[assetAddressIndex];
const {isActive: reserveInitialized} = await lendingPool.getReserveConfigurationData(
tokenAddress
);
@ -271,9 +269,9 @@ const initReserves = async (
lendingPoolAddressesProvider.address
]
)
console.log(`Debt tokens for ${assetSymbol}: stable ${stableDebtToken.address} variable ${variableDebtToken.address}`)
if (process.env.POOL === AavePools.secondary) {
if (assetSymbol.search("UNI") === -1) {
assetSymbol = `Uni${assetSymbol}`;
@ -433,7 +431,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
lendingPoolConfiguratorProxy.address
);
const lendingPoolImpl = await deployLendingPool();
console.log("Deployed lending pool, address:", lendingPoolImpl.address)
@ -446,7 +444,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
const address = await addressesProvider.getLendingPool()
console.log("Address is ", address)
const lendingPoolProxy = await getLendingPool(
address
address
);
console.log("implementation set, address:", lendingPoolProxy.address)
@ -591,15 +589,13 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
lendingPoolManager
);
await deployMockOneSplit(tokensAddressesWithoutUsd.LEND);
const oneSplitAdapter = await deployOneSplitAdapter();
const tokenDistributorImpl = await deployTokenDistributor();
const tokenDistributorProxy = await deployInitializableAdminUpgradeabilityProxy();
const implementationParams = tokenDistributorImpl.interface.functions.initialize.encode(
[
ZERO_ADDRESS,
tokensAddressesWithoutUsd.LEND,
oneSplitAdapter.address,
'0x0000000000000000000000000000000000000000', // TODO: finish removal
receivers,
percentages,
Object.values(tokensAddressesWithoutUsd),

View File

@ -175,7 +175,7 @@ makeSuite("AToken: Transfer", (testEnv: TestEnv) => {
const {users, pool, aDai, dai} = testEnv;
await pool
.connect(users[1].signer)
.repay(MOCK_ETH_ADDRESS, MAX_UINT_AMOUNT, users[1].address, {
.repay(MOCK_ETH_ADDRESS, MAX_UINT_AMOUNT, users[1].address, users[1].address, {
value: ethers.utils.parseEther("1"),
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

53
types/Example.d.ts vendored
View File

@ -1,53 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ExampleInterface extends Interface {
functions: {
_n: TypedFunctionDescription<{ encode([]: []): string }>;
test: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {};
}
export class Example extends Contract {
connect(signerOrProvider: Signer | Provider | string): Example;
attach(addressOrName: string): Example;
deployed(): Promise<Example>;
on(event: EventFilter | string, listener: Listener): Example;
once(event: EventFilter | string, listener: Listener): Example;
addListener(eventName: EventFilter | string, listener: Listener): Example;
removeAllListeners(eventName: EventFilter | string): Example;
removeListener(eventName: any, listener: Listener): Example;
interface: ExampleInterface;
functions: {
_n(): Promise<BigNumber>;
test(): Promise<BigNumber>;
};
_n(): Promise<BigNumber>;
test(): Promise<BigNumber>;
filters: {};
estimate: {
_n(): Promise<BigNumber>;
test(): Promise<BigNumber>;
};
}

View File

@ -1,71 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { TransactionOverrides } from ".";
import { Example } from "./Example";
export class ExampleFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<Example> {
return super.deploy(overrides) as Promise<Example>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): Example {
return super.attach(address) as Example;
}
connect(signer: Signer): ExampleFactory {
return super.connect(signer) as ExampleFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): Example {
return new Contract(address, _abi, signerOrProvider) as Example;
}
}
const _abi = [
{
inputs: [],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "_n",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "test",
outputs: [
{
internalType: "uint256",
name: "n",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x6080604052348015600f57600080fd5b5060056000556097806100236000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80631aadff81146037578063f8a8fd6d14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605b565b60005481565b6000549056fea2646970667358221220db729e656432d2a44942aae506cff90eea05978605f6847ecdf717665d7a04e664736f6c63430006080033";

File diff suppressed because one or more lines are too long

View File

@ -1,186 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IKyberNetworkProxyInterfaceInterface extends Interface {
functions: {
enabled: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedRate: TypedFunctionDescription<{
encode([src, dest, srcQty]: [string, string, BigNumberish]): string;
}>;
getUserCapInTokenWei: TypedFunctionDescription<{
encode([user, token]: [string, string]): string;
}>;
getUserCapInWei: TypedFunctionDescription<{
encode([user]: [string]): string;
}>;
info: TypedFunctionDescription<{ encode([id]: [Arrayish]): string }>;
maxGasPrice: TypedFunctionDescription<{ encode([]: []): string }>;
tradeWithHint: TypedFunctionDescription<{
encode([
src,
srcAmount,
dest,
destAddress,
maxDestAmount,
minConversionRate,
walletId,
hint
]: [
string,
BigNumberish,
string,
string,
BigNumberish,
BigNumberish,
string,
Arrayish
]): string;
}>;
};
events: {};
}
export class IKyberNetworkProxyInterface extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): IKyberNetworkProxyInterface;
attach(addressOrName: string): IKyberNetworkProxyInterface;
deployed(): Promise<IKyberNetworkProxyInterface>;
on(
event: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
once(
event: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
addListener(
eventName: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
removeAllListeners(
eventName: EventFilter | string
): IKyberNetworkProxyInterface;
removeListener(
eventName: any,
listener: Listener
): IKyberNetworkProxyInterface;
interface: IKyberNetworkProxyInterfaceInterface;
functions: {
enabled(): Promise<boolean>;
getExpectedRate(
src: string,
dest: string,
srcQty: BigNumberish
): Promise<{
expectedRate: BigNumber;
slippageRate: BigNumber;
0: BigNumber;
1: BigNumber;
}>;
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
getUserCapInWei(user: string): Promise<BigNumber>;
info(id: Arrayish): Promise<BigNumber>;
maxGasPrice(): Promise<BigNumber>;
tradeWithHint(
src: string,
srcAmount: BigNumberish,
dest: string,
destAddress: string,
maxDestAmount: BigNumberish,
minConversionRate: BigNumberish,
walletId: string,
hint: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
enabled(): Promise<boolean>;
getExpectedRate(
src: string,
dest: string,
srcQty: BigNumberish
): Promise<{
expectedRate: BigNumber;
slippageRate: BigNumber;
0: BigNumber;
1: BigNumber;
}>;
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
getUserCapInWei(user: string): Promise<BigNumber>;
info(id: Arrayish): Promise<BigNumber>;
maxGasPrice(): Promise<BigNumber>;
tradeWithHint(
src: string,
srcAmount: BigNumberish,
dest: string,
destAddress: string,
maxDestAmount: BigNumberish,
minConversionRate: BigNumberish,
walletId: string,
hint: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
enabled(): Promise<BigNumber>;
getExpectedRate(
src: string,
dest: string,
srcQty: BigNumberish
): Promise<BigNumber>;
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
getUserCapInWei(user: string): Promise<BigNumber>;
info(id: Arrayish): Promise<BigNumber>;
maxGasPrice(): Promise<BigNumber>;
tradeWithHint(
src: string,
srcAmount: BigNumberish,
dest: string,
destAddress: string,
maxDestAmount: BigNumberish,
minConversionRate: BigNumberish,
walletId: string,
hint: Arrayish
): Promise<BigNumber>;
};
}

View File

@ -1,199 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { IKyberNetworkProxyInterface } from "./IKyberNetworkProxyInterface";
export class IKyberNetworkProxyInterfaceFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IKyberNetworkProxyInterface {
return new Contract(
address,
_abi,
signerOrProvider
) as IKyberNetworkProxyInterface;
}
}
const _abi = [
{
inputs: [],
name: "enabled",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "src",
type: "address"
},
{
internalType: "contract IERC20",
name: "dest",
type: "address"
},
{
internalType: "uint256",
name: "srcQty",
type: "uint256"
}
],
name: "getExpectedRate",
outputs: [
{
internalType: "uint256",
name: "expectedRate",
type: "uint256"
},
{
internalType: "uint256",
name: "slippageRate",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "user",
type: "address"
},
{
internalType: "contract IERC20",
name: "token",
type: "address"
}
],
name: "getUserCapInTokenWei",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "user",
type: "address"
}
],
name: "getUserCapInWei",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "id",
type: "bytes32"
}
],
name: "info",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "maxGasPrice",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "src",
type: "address"
},
{
internalType: "uint256",
name: "srcAmount",
type: "uint256"
},
{
internalType: "contract IERC20",
name: "dest",
type: "address"
},
{
internalType: "address",
name: "destAddress",
type: "address"
},
{
internalType: "uint256",
name: "maxDestAmount",
type: "uint256"
},
{
internalType: "uint256",
name: "minConversionRate",
type: "uint256"
},
{
internalType: "address",
name: "walletId",
type: "address"
},
{
internalType: "bytes",
name: "hint",
type: "bytes"
}
],
name: "tradeWithHint",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
];

294
types/IOneSplit.d.ts vendored
View File

@ -1,294 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IOneSplitInterface extends Interface {
functions: {
FLAG_AAVE: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BANCOR: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BDAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_CHAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_COMPOUND: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_FULCRUM: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_IEARN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER_BANCOR_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_KYBER_OASIS_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_KYBER_UNISWAP_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_OASIS: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_UNISWAP: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedReturn: TypedFunctionDescription<{
encode([fromToken, toToken, amount, parts, disableFlags]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
goodSwap: TypedFunctionDescription<{
encode([fromToken, toToken, amount, minReturn, parts, disableFlags]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
swap: TypedFunctionDescription<{
encode([
fromToken,
toToken,
amount,
minReturn,
distribution,
disableFlags
]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish[],
BigNumberish
]): string;
}>;
};
events: {};
}
export class IOneSplit extends Contract {
connect(signerOrProvider: Signer | Provider | string): IOneSplit;
attach(addressOrName: string): IOneSplit;
deployed(): Promise<IOneSplit>;
on(event: EventFilter | string, listener: Listener): IOneSplit;
once(event: EventFilter | string, listener: Listener): IOneSplit;
addListener(eventName: EventFilter | string, listener: Listener): IOneSplit;
removeAllListeners(eventName: EventFilter | string): IOneSplit;
removeListener(eventName: any, listener: Listener): IOneSplit;
interface: IOneSplitInterface;
functions: {
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<{
returnAmount: BigNumber;
distribution: BigNumber[];
0: BigNumber;
1: BigNumber[];
}>;
goodSwap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
swap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
distribution: BigNumberish[],
disableFlags: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<{
returnAmount: BigNumber;
distribution: BigNumber[];
0: BigNumber;
1: BigNumber[];
}>;
goodSwap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
swap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
distribution: BigNumberish[],
disableFlags: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<BigNumber>;
goodSwap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<BigNumber>;
swap(
fromToken: string,
toToken: string,
amount: BigNumberish,
minReturn: BigNumberish,
distribution: BigNumberish[],
disableFlags: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,334 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { IOneSplit } from "./IOneSplit";
export class IOneSplitFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOneSplit {
return new Contract(address, _abi, signerOrProvider) as IOneSplit;
}
}
const _abi = [
{
inputs: [],
name: "FLAG_AAVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BANCOR",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BDAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_CHAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_COMPOUND",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_FULCRUM",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_IEARN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_BANCOR_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_OASIS_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_UNISWAP_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_MULTI_PATH_ETH",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_OASIS",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_SMART_TOKEN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_UNISWAP",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: "getExpectedReturn",
outputs: [
{
internalType: "uint256",
name: "returnAmount",
type: "uint256"
},
{
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "minReturn",
type: "uint256"
},
{
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: "goodSwap",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "minReturn",
type: "uint256"
},
{
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
},
{
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: "swap",
outputs: [],
stateMutability: "payable",
type: "function"
}
];

View File

@ -1,210 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IOneSplitViewInterface extends Interface {
functions: {
FLAG_AAVE: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BANCOR: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BDAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_CHAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_COMPOUND: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_FULCRUM: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_IEARN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER_BANCOR_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_KYBER_OASIS_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_KYBER_UNISWAP_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_OASIS: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_UNISWAP: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedReturn: TypedFunctionDescription<{
encode([fromToken, toToken, amount, parts, disableFlags]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
};
events: {};
}
export class IOneSplitView extends Contract {
connect(signerOrProvider: Signer | Provider | string): IOneSplitView;
attach(addressOrName: string): IOneSplitView;
deployed(): Promise<IOneSplitView>;
on(event: EventFilter | string, listener: Listener): IOneSplitView;
once(event: EventFilter | string, listener: Listener): IOneSplitView;
addListener(
eventName: EventFilter | string,
listener: Listener
): IOneSplitView;
removeAllListeners(eventName: EventFilter | string): IOneSplitView;
removeListener(eventName: any, listener: Listener): IOneSplitView;
interface: IOneSplitViewInterface;
functions: {
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<{
returnAmount: BigNumber;
distribution: BigNumber[];
0: BigNumber;
1: BigNumber[];
}>;
};
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<{
returnAmount: BigNumber;
distribution: BigNumber[];
0: BigNumber;
1: BigNumber[];
}>;
filters: {};
estimate: {
FLAG_AAVE(): Promise<BigNumber>;
FLAG_BANCOR(): Promise<BigNumber>;
FLAG_BDAI(): Promise<BigNumber>;
FLAG_CHAI(): Promise<BigNumber>;
FLAG_COMPOUND(): Promise<BigNumber>;
FLAG_FULCRUM(): Promise<BigNumber>;
FLAG_IEARN(): Promise<BigNumber>;
FLAG_KYBER(): Promise<BigNumber>;
FLAG_KYBER_BANCOR_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_OASIS_RESERVE(): Promise<BigNumber>;
FLAG_KYBER_UNISWAP_RESERVE(): Promise<BigNumber>;
FLAG_MULTI_PATH_ETH(): Promise<BigNumber>;
FLAG_OASIS(): Promise<BigNumber>;
FLAG_SMART_TOKEN(): Promise<BigNumber>;
FLAG_UNISWAP(): Promise<BigNumber>;
getExpectedReturn(
fromToken: string,
toToken: string,
amount: BigNumberish,
parts: BigNumberish,
disableFlags: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,258 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { IOneSplitView } from "./IOneSplitView";
export class IOneSplitViewFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOneSplitView {
return new Contract(address, _abi, signerOrProvider) as IOneSplitView;
}
}
const _abi = [
{
inputs: [],
name: "FLAG_AAVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BANCOR",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BDAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_CHAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_COMPOUND",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_FULCRUM",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_IEARN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_BANCOR_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_OASIS_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_UNISWAP_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_MULTI_PATH_ETH",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_OASIS",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_SMART_TOKEN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_UNISWAP",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: "getExpectedReturn",
outputs: [
{
internalType: "uint256",
name: "returnAmount",
type: "uint256"
},
{
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
}
];

View File

@ -16,6 +16,10 @@ interface IVariableDebtTokenInterface extends Interface {
encode([_account, _amount]: [string, BigNumberish]): string;
}>;
getUserIndex: TypedFunctionDescription<{
encode([_account]: [string]): string;
}>;
mint: TypedFunctionDescription<{
encode([account, amount]: [string, BigNumberish]): string;
}>;
@ -47,6 +51,8 @@ export class IVariableDebtToken extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_account: string): Promise<BigNumber>;
mint(
account: string,
amount: BigNumberish,
@ -60,6 +66,8 @@ export class IVariableDebtToken extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_account: string): Promise<BigNumber>;
mint(
account: string,
amount: BigNumberish,
@ -71,6 +79,8 @@ export class IVariableDebtToken extends Contract {
estimate: {
burn(_account: string, _amount: BigNumberish): Promise<BigNumber>;
getUserIndex(_account: string): Promise<BigNumber>;
mint(account: string, amount: BigNumberish): Promise<BigNumber>;
};
}

View File

@ -34,6 +34,25 @@ const _abi = [
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address"
}
],
name: "getUserIndex",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{

View File

@ -1,74 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20BurnableInterface extends Interface {
functions: {
burn: TypedFunctionDescription<{
encode([amount]: [BigNumberish]): string;
}>;
burnFrom: TypedFunctionDescription<{
encode([account, amount]: [string, BigNumberish]): string;
}>;
};
events: {};
}
export class Ierc20Burnable extends Contract {
connect(signerOrProvider: Signer | Provider | string): Ierc20Burnable;
attach(addressOrName: string): Ierc20Burnable;
deployed(): Promise<Ierc20Burnable>;
on(event: EventFilter | string, listener: Listener): Ierc20Burnable;
once(event: EventFilter | string, listener: Listener): Ierc20Burnable;
addListener(
eventName: EventFilter | string,
listener: Listener
): Ierc20Burnable;
removeAllListeners(eventName: EventFilter | string): Ierc20Burnable;
removeListener(eventName: any, listener: Listener): Ierc20Burnable;
interface: Ierc20BurnableInterface;
functions: {
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
burn(amount: BigNumberish): Promise<BigNumber>;
burnFrom(account: string, amount: BigNumberish): Promise<BigNumber>;
};
}

View File

@ -1,50 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { Ierc20Burnable } from "./Ierc20Burnable";
export class Ierc20BurnableFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ierc20Burnable {
return new Contract(address, _abi, signerOrProvider) as Ierc20Burnable;
}
}
const _abi = [
{
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"
}
];

View File

@ -1,54 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20MintableInterface extends Interface {
functions: {
mint: TypedFunctionDescription<{ encode([value]: [BigNumberish]): string }>;
};
events: {};
}
export class Ierc20Mintable extends Contract {
connect(signerOrProvider: Signer | Provider | string): Ierc20Mintable;
attach(addressOrName: string): Ierc20Mintable;
deployed(): Promise<Ierc20Mintable>;
on(event: EventFilter | string, listener: Listener): Ierc20Mintable;
once(event: EventFilter | string, listener: Listener): Ierc20Mintable;
addListener(
eventName: EventFilter | string,
listener: Listener
): Ierc20Mintable;
removeAllListeners(eventName: EventFilter | string): Ierc20Mintable;
removeListener(eventName: any, listener: Listener): Ierc20Mintable;
interface: Ierc20MintableInterface;
functions: {
mint(
value: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
mint(
value: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
mint(value: BigNumberish): Promise<BigNumber>;
};
}

View File

@ -1,204 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20MintableBurnableInterface extends Interface {
functions: {
allowance: TypedFunctionDescription<{
encode([owner, spender]: [string, string]): string;
}>;
approve: TypedFunctionDescription<{
encode([spender, amount]: [string, BigNumberish]): string;
}>;
balanceOf: TypedFunctionDescription<{
encode([account]: [string]): string;
}>;
burn: TypedFunctionDescription<{
encode([amount]: [BigNumberish]): string;
}>;
burnFrom: TypedFunctionDescription<{
encode([account, amount]: [string, BigNumberish]): string;
}>;
mint: TypedFunctionDescription<{ encode([value]: [BigNumberish]): string }>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
};
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
export class Ierc20MintableBurnable extends Contract {
connect(signerOrProvider: Signer | Provider | string): Ierc20MintableBurnable;
attach(addressOrName: string): Ierc20MintableBurnable;
deployed(): Promise<Ierc20MintableBurnable>;
on(event: EventFilter | string, listener: Listener): Ierc20MintableBurnable;
once(event: EventFilter | string, listener: Listener): Ierc20MintableBurnable;
addListener(
eventName: EventFilter | string,
listener: Listener
): Ierc20MintableBurnable;
removeAllListeners(eventName: EventFilter | string): Ierc20MintableBurnable;
removeListener(eventName: any, listener: Listener): Ierc20MintableBurnable;
interface: Ierc20MintableBurnableInterface;
functions: {
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
balanceOf(account: string): Promise<BigNumber>;
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
mint(
value: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
totalSupply(): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
balanceOf(account: string): Promise<BigNumber>;
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
mint(
value: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
totalSupply(): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
estimate: {
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(spender: string, amount: BigNumberish): Promise<BigNumber>;
balanceOf(account: string): Promise<BigNumber>;
burn(amount: BigNumberish): Promise<BigNumber>;
burnFrom(account: string, amount: BigNumberish): Promise<BigNumber>;
mint(value: BigNumberish): Promise<BigNumber>;
totalSupply(): Promise<BigNumber>;
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,250 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { Ierc20MintableBurnable } from "./Ierc20MintableBurnable";
export class Ierc20MintableBurnableFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ierc20MintableBurnable {
return new Contract(
address,
_abi,
signerOrProvider
) as Ierc20MintableBurnable;
}
}
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: [
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "mint",
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"
}
];

View File

@ -1,32 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { Ierc20Mintable } from "./Ierc20Mintable";
export class Ierc20MintableFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ierc20Mintable {
return new Contract(address, _abi, signerOrProvider) as Ierc20Mintable;
}
}
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "mint",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,448 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolDataProviderInterface extends Interface {
functions: {
DATA_PROVIDER_REVISION: TypedFunctionDescription<{
encode([]: []): string;
}>;
HEALTH_FACTOR_LIQUIDATION_THRESHOLD: TypedFunctionDescription<{
encode([]: []): string;
}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
balanceDecreaseAllowed: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
calculateCollateralNeededInETH: TypedFunctionDescription<{
encode([
_reserve,
_amount,
_fee,
_userCurrentBorrowBalanceTH,
_userCurrentFeesETH,
_userCurrentLtv
]: [
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
calculateUserGlobalData: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;
core: TypedFunctionDescription<{ encode([]: []): string }>;
getHealthFactorLiquidationThreshold: TypedFunctionDescription<{
encode([]: []): string;
}>;
getReserveConfigurationData: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
getReserveData: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
getUserAccountData: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;
getUserReserveData: TypedFunctionDescription<{
encode([_reserve, _user]: [string, string]): string;
}>;
initialize: TypedFunctionDescription<{
encode([_addressesProvider]: [string]): string;
}>;
};
events: {};
}
export class LendingPoolDataProvider extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolDataProvider;
attach(addressOrName: string): LendingPoolDataProvider;
deployed(): Promise<LendingPoolDataProvider>;
on(event: EventFilter | string, listener: Listener): LendingPoolDataProvider;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolDataProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolDataProvider;
removeAllListeners(eventName: EventFilter | string): LendingPoolDataProvider;
removeListener(eventName: any, listener: Listener): LendingPoolDataProvider;
interface: LendingPoolDataProviderInterface;
functions: {
DATA_PROVIDER_REVISION(): Promise<BigNumber>;
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
addressesProvider(): Promise<string>;
balanceDecreaseAllowed(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<boolean>;
calculateCollateralNeededInETH(
_reserve: string,
_amount: BigNumberish,
_fee: BigNumberish,
_userCurrentBorrowBalanceTH: BigNumberish,
_userCurrentFeesETH: BigNumberish,
_userCurrentLtv: BigNumberish
): Promise<BigNumber>;
calculateUserGlobalData(
_user: string
): Promise<{
totalLiquidityBalanceETH: BigNumber;
totalCollateralBalanceETH: BigNumber;
totalBorrowBalanceETH: BigNumber;
totalFeesETH: BigNumber;
currentLtv: BigNumber;
currentLiquidationThreshold: BigNumber;
healthFactor: BigNumber;
healthFactorBelowThreshold: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: boolean;
}>;
core(): Promise<string>;
getHealthFactorLiquidationThreshold(): Promise<BigNumber>;
getReserveConfigurationData(
_reserve: string
): Promise<{
ltv: BigNumber;
liquidationThreshold: BigNumber;
liquidationBonus: BigNumber;
rateStrategyAddress: string;
usageAsCollateralEnabled: boolean;
borrowingEnabled: boolean;
stableBorrowRateEnabled: boolean;
isActive: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: string;
4: boolean;
5: boolean;
6: boolean;
7: boolean;
}>;
getReserveData(
_reserve: string
): Promise<{
totalLiquidity: BigNumber;
availableLiquidity: BigNumber;
totalBorrowsStable: BigNumber;
totalBorrowsVariable: BigNumber;
liquidityRate: BigNumber;
variableBorrowRate: BigNumber;
stableBorrowRate: BigNumber;
averageStableBorrowRate: BigNumber;
utilizationRate: BigNumber;
liquidityIndex: BigNumber;
variableBorrowIndex: BigNumber;
aTokenAddress: string;
lastUpdateTimestamp: number;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
8: BigNumber;
9: BigNumber;
10: BigNumber;
11: string;
12: number;
}>;
getUserAccountData(
_user: string
): Promise<{
totalLiquidityETH: BigNumber;
totalCollateralETH: BigNumber;
totalBorrowsETH: BigNumber;
totalFeesETH: BigNumber;
availableBorrowsETH: BigNumber;
currentLiquidationThreshold: BigNumber;
ltv: BigNumber;
healthFactor: BigNumber;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
}>;
getUserReserveData(
_reserve: string,
_user: string
): Promise<{
currentATokenBalance: BigNumber;
currentBorrowBalance: BigNumber;
principalBorrowBalance: BigNumber;
borrowRateMode: BigNumber;
borrowRate: BigNumber;
liquidityRate: BigNumber;
originationFee: BigNumber;
variableBorrowIndex: BigNumber;
lastUpdateTimestamp: BigNumber;
usageAsCollateralEnabled: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
8: BigNumber;
9: boolean;
}>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
DATA_PROVIDER_REVISION(): Promise<BigNumber>;
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
addressesProvider(): Promise<string>;
balanceDecreaseAllowed(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<boolean>;
calculateCollateralNeededInETH(
_reserve: string,
_amount: BigNumberish,
_fee: BigNumberish,
_userCurrentBorrowBalanceTH: BigNumberish,
_userCurrentFeesETH: BigNumberish,
_userCurrentLtv: BigNumberish
): Promise<BigNumber>;
calculateUserGlobalData(
_user: string
): Promise<{
totalLiquidityBalanceETH: BigNumber;
totalCollateralBalanceETH: BigNumber;
totalBorrowBalanceETH: BigNumber;
totalFeesETH: BigNumber;
currentLtv: BigNumber;
currentLiquidationThreshold: BigNumber;
healthFactor: BigNumber;
healthFactorBelowThreshold: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: boolean;
}>;
core(): Promise<string>;
getHealthFactorLiquidationThreshold(): Promise<BigNumber>;
getReserveConfigurationData(
_reserve: string
): Promise<{
ltv: BigNumber;
liquidationThreshold: BigNumber;
liquidationBonus: BigNumber;
rateStrategyAddress: string;
usageAsCollateralEnabled: boolean;
borrowingEnabled: boolean;
stableBorrowRateEnabled: boolean;
isActive: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: string;
4: boolean;
5: boolean;
6: boolean;
7: boolean;
}>;
getReserveData(
_reserve: string
): Promise<{
totalLiquidity: BigNumber;
availableLiquidity: BigNumber;
totalBorrowsStable: BigNumber;
totalBorrowsVariable: BigNumber;
liquidityRate: BigNumber;
variableBorrowRate: BigNumber;
stableBorrowRate: BigNumber;
averageStableBorrowRate: BigNumber;
utilizationRate: BigNumber;
liquidityIndex: BigNumber;
variableBorrowIndex: BigNumber;
aTokenAddress: string;
lastUpdateTimestamp: number;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
8: BigNumber;
9: BigNumber;
10: BigNumber;
11: string;
12: number;
}>;
getUserAccountData(
_user: string
): Promise<{
totalLiquidityETH: BigNumber;
totalCollateralETH: BigNumber;
totalBorrowsETH: BigNumber;
totalFeesETH: BigNumber;
availableBorrowsETH: BigNumber;
currentLiquidationThreshold: BigNumber;
ltv: BigNumber;
healthFactor: BigNumber;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
}>;
getUserReserveData(
_reserve: string,
_user: string
): Promise<{
currentATokenBalance: BigNumber;
currentBorrowBalance: BigNumber;
principalBorrowBalance: BigNumber;
borrowRateMode: BigNumber;
borrowRate: BigNumber;
liquidityRate: BigNumber;
originationFee: BigNumber;
variableBorrowIndex: BigNumber;
lastUpdateTimestamp: BigNumber;
usageAsCollateralEnabled: boolean;
0: BigNumber;
1: BigNumber;
2: BigNumber;
3: BigNumber;
4: BigNumber;
5: BigNumber;
6: BigNumber;
7: BigNumber;
8: BigNumber;
9: boolean;
}>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
DATA_PROVIDER_REVISION(): Promise<BigNumber>;
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
addressesProvider(): Promise<BigNumber>;
balanceDecreaseAllowed(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
calculateCollateralNeededInETH(
_reserve: string,
_amount: BigNumberish,
_fee: BigNumberish,
_userCurrentBorrowBalanceTH: BigNumberish,
_userCurrentFeesETH: BigNumberish,
_userCurrentLtv: BigNumberish
): Promise<BigNumber>;
calculateUserGlobalData(_user: string): Promise<BigNumber>;
core(): Promise<BigNumber>;
getHealthFactorLiquidationThreshold(): Promise<BigNumber>;
getReserveConfigurationData(_reserve: string): Promise<BigNumber>;
getReserveData(_reserve: string): Promise<BigNumber>;
getUserAccountData(_user: string): Promise<BigNumber>;
getUserReserveData(_reserve: string, _user: string): Promise<BigNumber>;
initialize(_addressesProvider: string): Promise<BigNumber>;
};
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,105 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolParametersProviderInterface extends Interface {
functions: {
getFlashLoanFeesInBips: TypedFunctionDescription<{
encode([]: []): string;
}>;
getMaxStableRateBorrowSizePercent: TypedFunctionDescription<{
encode([]: []): string;
}>;
getRebalanceDownRateDelta: TypedFunctionDescription<{
encode([]: []): string;
}>;
initialize: TypedFunctionDescription<{
encode([_addressesProvider]: [string]): string;
}>;
};
events: {};
}
export class LendingPoolParametersProvider extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolParametersProvider;
attach(addressOrName: string): LendingPoolParametersProvider;
deployed(): Promise<LendingPoolParametersProvider>;
on(
event: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
removeAllListeners(
eventName: EventFilter | string
): LendingPoolParametersProvider;
removeListener(
eventName: any,
listener: Listener
): LendingPoolParametersProvider;
interface: LendingPoolParametersProviderInterface;
functions: {
getFlashLoanFeesInBips(): Promise<{
0: BigNumber;
1: BigNumber;
}>;
getMaxStableRateBorrowSizePercent(): Promise<BigNumber>;
getRebalanceDownRateDelta(): Promise<BigNumber>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
getFlashLoanFeesInBips(): Promise<{
0: BigNumber;
1: BigNumber;
}>;
getMaxStableRateBorrowSizePercent(): Promise<BigNumber>;
getRebalanceDownRateDelta(): Promise<BigNumber>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
getFlashLoanFeesInBips(): Promise<BigNumber>;
getMaxStableRateBorrowSizePercent(): Promise<BigNumber>;
getRebalanceDownRateDelta(): Promise<BigNumber>;
initialize(_addressesProvider: string): Promise<BigNumber>;
};
}

View File

@ -1,103 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { TransactionOverrides } from ".";
import { LendingPoolParametersProvider } from "./LendingPoolParametersProvider";
export class LendingPoolParametersProviderFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
overrides?: TransactionOverrides
): Promise<LendingPoolParametersProvider> {
return super.deploy(overrides) as Promise<LendingPoolParametersProvider>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): LendingPoolParametersProvider {
return super.attach(address) as LendingPoolParametersProvider;
}
connect(signer: Signer): LendingPoolParametersProviderFactory {
return super.connect(signer) as LendingPoolParametersProviderFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): LendingPoolParametersProvider {
return new Contract(
address,
_abi,
signerOrProvider
) as LendingPoolParametersProvider;
}
}
const _abi = [
{
inputs: [],
name: "getFlashLoanFeesInBips",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
},
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "getMaxStableRateBorrowSizePercent",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "getRebalanceDownRateDelta",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_addressesProvider",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode =
"0x60806040526000805534801561001457600080fd5b506101e5806100246000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806346f4f8d114610051578063586feb401461006b578063c4d66de81461008c578063d6b725ac146100b4575b600080fd5b6100596100bc565b60408051918252519081900360200190f35b6100736100cb565b6040805192835260208301919091528051918290030190f35b6100b2600480360360208110156100a257600080fd5b50356001600160a01b03166100d4565b005b610059610171565b6aa56fa5b99019a5c800000090565b6009610bb89091565b60006100de610176565b60015490915060ff16806100f557506100f561017b565b80610101575060005481115b61013c5760405162461bcd60e51b815260040180806020018281038252602e815260200180610182602e913960400191505060405180910390fd5b60015460ff1615801561015b576001805460ff19168117905560008290555b801561016c576001805460ff191690555b505050565b601990565b600290565b303b159056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122063901128b8eb0844da98c6440cfb4a178fa19b719b954c9bf24df1d1abd1811064736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorBaseInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorBase extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorBase;
attach(addressOrName: string): MockAggregatorBase;
deployed(): Promise<MockAggregatorBase>;
on(event: EventFilter | string, listener: Listener): MockAggregatorBase;
once(event: EventFilter | string, listener: Listener): MockAggregatorBase;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorBase;
removeAllListeners(eventName: EventFilter | string): MockAggregatorBase;
removeListener(eventName: any, listener: Listener): MockAggregatorBase;
interface: MockAggregatorBaseInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorBase } from "./MockAggregatorBase";
export class MockAggregatorBaseFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorBase> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorBase
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorBase {
return super.attach(address) as MockAggregatorBase;
}
connect(signer: Signer): MockAggregatorBaseFactory {
return super.connect(signer) as MockAggregatorBaseFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorBase {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorBase;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101003803806101008339818101604052602081101561003357600080fd5b5051600081815560408051428152905183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f919081900360200190a35060818061007f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220060be671455ecf17204969f30e34b79826d0c5978aa24f70ee045096a697a9a764736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorBatInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorBat extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorBat;
attach(addressOrName: string): MockAggregatorBat;
deployed(): Promise<MockAggregatorBat>;
on(event: EventFilter | string, listener: Listener): MockAggregatorBat;
once(event: EventFilter | string, listener: Listener): MockAggregatorBat;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorBat;
removeAllListeners(eventName: EventFilter | string): MockAggregatorBat;
removeListener(eventName: any, listener: Listener): MockAggregatorBat;
interface: MockAggregatorBatInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorBat } from "./MockAggregatorBat";
export class MockAggregatorBatFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorBat> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorBat
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorBat {
return super.attach(address) as MockAggregatorBat;
}
connect(signer: Signer): MockAggregatorBatFactory {
return super.connect(signer) as MockAggregatorBatFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorBat {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorBat;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122067d1fc92dfb4035995fc56942a8fac11af7dd9f3a19251990effa2c9b6e9e8ab64736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorBusdInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorBusd extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorBusd;
attach(addressOrName: string): MockAggregatorBusd;
deployed(): Promise<MockAggregatorBusd>;
on(event: EventFilter | string, listener: Listener): MockAggregatorBusd;
once(event: EventFilter | string, listener: Listener): MockAggregatorBusd;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorBusd;
removeAllListeners(eventName: EventFilter | string): MockAggregatorBusd;
removeListener(eventName: any, listener: Listener): MockAggregatorBusd;
interface: MockAggregatorBusdInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorBusd } from "./MockAggregatorBusd";
export class MockAggregatorBusdFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorBusd> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorBusd
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorBusd {
return super.attach(address) as MockAggregatorBusd;
}
connect(signer: Signer): MockAggregatorBusdFactory {
return super.connect(signer) as MockAggregatorBusdFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorBusd {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorBusd;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201f1bc6664c0ae2c54149c6ff1b532f7c023d4323052eec4d7e5668bb18caf4ad64736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorDaiInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorDai extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorDai;
attach(addressOrName: string): MockAggregatorDai;
deployed(): Promise<MockAggregatorDai>;
on(event: EventFilter | string, listener: Listener): MockAggregatorDai;
once(event: EventFilter | string, listener: Listener): MockAggregatorDai;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorDai;
removeAllListeners(eventName: EventFilter | string): MockAggregatorDai;
removeListener(eventName: any, listener: Listener): MockAggregatorDai;
interface: MockAggregatorDaiInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorDai } from "./MockAggregatorDai";
export class MockAggregatorDaiFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorDai> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorDai
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorDai {
return super.attach(address) as MockAggregatorDai;
}
connect(signer: Signer): MockAggregatorDaiFactory {
return super.connect(signer) as MockAggregatorDaiFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorDai {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorDai;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220bc460a71c6f5f56df369342d0898d38ca6d1be268930ce0e8c567cd7620b901364736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorKncInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorKnc extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorKnc;
attach(addressOrName: string): MockAggregatorKnc;
deployed(): Promise<MockAggregatorKnc>;
on(event: EventFilter | string, listener: Listener): MockAggregatorKnc;
once(event: EventFilter | string, listener: Listener): MockAggregatorKnc;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorKnc;
removeAllListeners(eventName: EventFilter | string): MockAggregatorKnc;
removeListener(eventName: any, listener: Listener): MockAggregatorKnc;
interface: MockAggregatorKncInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorKnc } from "./MockAggregatorKnc";
export class MockAggregatorKncFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorKnc> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorKnc
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorKnc {
return super.attach(address) as MockAggregatorKnc;
}
connect(signer: Signer): MockAggregatorKncFactory {
return super.connect(signer) as MockAggregatorKncFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorKnc {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorKnc;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207e4193c6d3a7b272f2a1e7e5919a1edd6c2af8c0b6c73078ae651be5282994c164736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorLendInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorLend extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorLend;
attach(addressOrName: string): MockAggregatorLend;
deployed(): Promise<MockAggregatorLend>;
on(event: EventFilter | string, listener: Listener): MockAggregatorLend;
once(event: EventFilter | string, listener: Listener): MockAggregatorLend;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorLend;
removeAllListeners(eventName: EventFilter | string): MockAggregatorLend;
removeListener(eventName: any, listener: Listener): MockAggregatorLend;
interface: MockAggregatorLendInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorLend } from "./MockAggregatorLend";
export class MockAggregatorLendFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorLend> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorLend
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorLend {
return super.attach(address) as MockAggregatorLend;
}
connect(signer: Signer): MockAggregatorLendFactory {
return super.connect(signer) as MockAggregatorLendFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorLend {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorLend;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201e824ba62d5f29376dee29e5a3a6929bcbd951f7cb75d88c5f4a5f736096ccd164736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorLinkInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorLink extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorLink;
attach(addressOrName: string): MockAggregatorLink;
deployed(): Promise<MockAggregatorLink>;
on(event: EventFilter | string, listener: Listener): MockAggregatorLink;
once(event: EventFilter | string, listener: Listener): MockAggregatorLink;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorLink;
removeAllListeners(eventName: EventFilter | string): MockAggregatorLink;
removeListener(eventName: any, listener: Listener): MockAggregatorLink;
interface: MockAggregatorLinkInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorLink } from "./MockAggregatorLink";
export class MockAggregatorLinkFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorLink> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorLink
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorLink {
return super.attach(address) as MockAggregatorLink;
}
connect(signer: Signer): MockAggregatorLinkFactory {
return super.connect(signer) as MockAggregatorLinkFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorLink {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorLink;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212200820bb3fa0b8e5bd17658d500240b157ab200a944908b2d378035e34f0430d5864736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorManaInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorMana extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorMana;
attach(addressOrName: string): MockAggregatorMana;
deployed(): Promise<MockAggregatorMana>;
on(event: EventFilter | string, listener: Listener): MockAggregatorMana;
once(event: EventFilter | string, listener: Listener): MockAggregatorMana;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorMana;
removeAllListeners(eventName: EventFilter | string): MockAggregatorMana;
removeListener(eventName: any, listener: Listener): MockAggregatorMana;
interface: MockAggregatorManaInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorMana } from "./MockAggregatorMana";
export class MockAggregatorManaFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorMana> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorMana
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorMana {
return super.attach(address) as MockAggregatorMana;
}
connect(signer: Signer): MockAggregatorManaFactory {
return super.connect(signer) as MockAggregatorManaFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorMana {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorMana;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220e7b3306e2bb66e9e9a3d7344a5e19e7f07bde990d057682c0c76fe83c2727a9964736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorMkrInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorMkr extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorMkr;
attach(addressOrName: string): MockAggregatorMkr;
deployed(): Promise<MockAggregatorMkr>;
on(event: EventFilter | string, listener: Listener): MockAggregatorMkr;
once(event: EventFilter | string, listener: Listener): MockAggregatorMkr;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorMkr;
removeAllListeners(eventName: EventFilter | string): MockAggregatorMkr;
removeListener(eventName: any, listener: Listener): MockAggregatorMkr;
interface: MockAggregatorMkrInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorMkr } from "./MockAggregatorMkr";
export class MockAggregatorMkrFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorMkr> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorMkr
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorMkr {
return super.attach(address) as MockAggregatorMkr;
}
connect(signer: Signer): MockAggregatorMkrFactory {
return super.connect(signer) as MockAggregatorMkrFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorMkr {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorMkr;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122051a88c2198cb6692898abde3f0f1baf8d6b7c52201611c0a4c04453635130b6b64736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorRepInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorRep extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorRep;
attach(addressOrName: string): MockAggregatorRep;
deployed(): Promise<MockAggregatorRep>;
on(event: EventFilter | string, listener: Listener): MockAggregatorRep;
once(event: EventFilter | string, listener: Listener): MockAggregatorRep;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorRep;
removeAllListeners(eventName: EventFilter | string): MockAggregatorRep;
removeListener(eventName: any, listener: Listener): MockAggregatorRep;
interface: MockAggregatorRepInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorRep } from "./MockAggregatorRep";
export class MockAggregatorRepFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorRep> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorRep
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorRep {
return super.attach(address) as MockAggregatorRep;
}
connect(signer: Signer): MockAggregatorRepFactory {
return super.connect(signer) as MockAggregatorRepFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorRep {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorRep;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212205451c4b8cfbf9ded926cae2fa4db4a7f379ad06e935193895ac984bd9c8a44f464736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorSnxInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorSnx extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorSnx;
attach(addressOrName: string): MockAggregatorSnx;
deployed(): Promise<MockAggregatorSnx>;
on(event: EventFilter | string, listener: Listener): MockAggregatorSnx;
once(event: EventFilter | string, listener: Listener): MockAggregatorSnx;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorSnx;
removeAllListeners(eventName: EventFilter | string): MockAggregatorSnx;
removeListener(eventName: any, listener: Listener): MockAggregatorSnx;
interface: MockAggregatorSnxInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorSnx } from "./MockAggregatorSnx";
export class MockAggregatorSnxFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorSnx> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorSnx
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorSnx {
return super.attach(address) as MockAggregatorSnx;
}
connect(signer: Signer): MockAggregatorSnxFactory {
return super.connect(signer) as MockAggregatorSnxFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorSnx {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorSnx;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122007bc29efab04b7548967f8ac1fb485a5f910968a04f5f02e3c409e43be252d9764736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorSusdInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorSusd extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorSusd;
attach(addressOrName: string): MockAggregatorSusd;
deployed(): Promise<MockAggregatorSusd>;
on(event: EventFilter | string, listener: Listener): MockAggregatorSusd;
once(event: EventFilter | string, listener: Listener): MockAggregatorSusd;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorSusd;
removeAllListeners(eventName: EventFilter | string): MockAggregatorSusd;
removeListener(eventName: any, listener: Listener): MockAggregatorSusd;
interface: MockAggregatorSusdInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorSusd } from "./MockAggregatorSusd";
export class MockAggregatorSusdFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorSusd> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorSusd
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorSusd {
return super.attach(address) as MockAggregatorSusd;
}
connect(signer: Signer): MockAggregatorSusdFactory {
return super.connect(signer) as MockAggregatorSusdFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorSusd {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorSusd;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220396214f66cc6dae4ac4df2de75d412cda13649370d678f01f1f162f304264e5c64736f6c63430006080033";

View File

@ -1,62 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorTusdInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorTusd extends Contract {
connect(signerOrProvider: Signer | Provider | string): MockAggregatorTusd;
attach(addressOrName: string): MockAggregatorTusd;
deployed(): Promise<MockAggregatorTusd>;
on(event: EventFilter | string, listener: Listener): MockAggregatorTusd;
once(event: EventFilter | string, listener: Listener): MockAggregatorTusd;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorTusd;
removeAllListeners(eventName: EventFilter | string): MockAggregatorTusd;
removeListener(eventName: any, listener: Listener): MockAggregatorTusd;
interface: MockAggregatorTusdInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,98 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorTusd } from "./MockAggregatorTusd";
export class MockAggregatorTusdFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorTusd> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorTusd
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorTusd {
return super.attach(address) as MockAggregatorTusd;
}
connect(signer: Signer): MockAggregatorTusdFactory {
return super.connect(signer) as MockAggregatorTusdFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorTusd {
return new Contract(address, _abi, signerOrProvider) as MockAggregatorTusd;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207f5bd9b60d1d2fb1c740da91ebaab40eba25d0e8c0dffb88ae5c5706d5a50dff64736f6c63430006080033";

View File

@ -1,67 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorUniDaiEthInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorUniDaiEth extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): MockAggregatorUniDaiEth;
attach(addressOrName: string): MockAggregatorUniDaiEth;
deployed(): Promise<MockAggregatorUniDaiEth>;
on(event: EventFilter | string, listener: Listener): MockAggregatorUniDaiEth;
once(
event: EventFilter | string,
listener: Listener
): MockAggregatorUniDaiEth;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorUniDaiEth;
removeAllListeners(eventName: EventFilter | string): MockAggregatorUniDaiEth;
removeListener(eventName: any, listener: Listener): MockAggregatorUniDaiEth;
interface: MockAggregatorUniDaiEthInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,102 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorUniDaiEth } from "./MockAggregatorUniDaiEth";
export class MockAggregatorUniDaiEthFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorUniDaiEth> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorUniDaiEth
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorUniDaiEth {
return super.attach(address) as MockAggregatorUniDaiEth;
}
connect(signer: Signer): MockAggregatorUniDaiEthFactory {
return super.connect(signer) as MockAggregatorUniDaiEthFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorUniDaiEth {
return new Contract(
address,
_abi,
signerOrProvider
) as MockAggregatorUniDaiEth;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220ca9e7e837206f25a56d62db3aae4fc49a3e0ed327373cc7ef1b4a8135e04b94d64736f6c63430006080033";

View File

@ -1,67 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorUniLendEthInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorUniLendEth extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): MockAggregatorUniLendEth;
attach(addressOrName: string): MockAggregatorUniLendEth;
deployed(): Promise<MockAggregatorUniLendEth>;
on(event: EventFilter | string, listener: Listener): MockAggregatorUniLendEth;
once(
event: EventFilter | string,
listener: Listener
): MockAggregatorUniLendEth;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorUniLendEth;
removeAllListeners(eventName: EventFilter | string): MockAggregatorUniLendEth;
removeListener(eventName: any, listener: Listener): MockAggregatorUniLendEth;
interface: MockAggregatorUniLendEthInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,102 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorUniLendEth } from "./MockAggregatorUniLendEth";
export class MockAggregatorUniLendEthFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorUniLendEth> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorUniLendEth
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorUniLendEth {
return super.attach(address) as MockAggregatorUniLendEth;
}
connect(signer: Signer): MockAggregatorUniLendEthFactory {
return super.connect(signer) as MockAggregatorUniLendEthFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorUniLendEth {
return new Contract(
address,
_abi,
signerOrProvider
) as MockAggregatorUniLendEth;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212202cd94c803b45c9921e61b7e529507ff5a46911bf92147594a184752785dd9b5f64736f6c63430006080033";

View File

@ -1,67 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorUniLinkEthInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorUniLinkEth extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): MockAggregatorUniLinkEth;
attach(addressOrName: string): MockAggregatorUniLinkEth;
deployed(): Promise<MockAggregatorUniLinkEth>;
on(event: EventFilter | string, listener: Listener): MockAggregatorUniLinkEth;
once(
event: EventFilter | string,
listener: Listener
): MockAggregatorUniLinkEth;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorUniLinkEth;
removeAllListeners(eventName: EventFilter | string): MockAggregatorUniLinkEth;
removeListener(eventName: any, listener: Listener): MockAggregatorUniLinkEth;
interface: MockAggregatorUniLinkEthInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,102 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorUniLinkEth } from "./MockAggregatorUniLinkEth";
export class MockAggregatorUniLinkEthFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorUniLinkEth> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorUniLinkEth
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorUniLinkEth {
return super.attach(address) as MockAggregatorUniLinkEth;
}
connect(signer: Signer): MockAggregatorUniLinkEthFactory {
return super.connect(signer) as MockAggregatorUniLinkEthFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorUniLinkEth {
return new Contract(
address,
_abi,
signerOrProvider
) as MockAggregatorUniLinkEth;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220fa715ec3aad02e0fd561be2b226d91f615ba8269690fbf2c624f5610ef7a0a7464736f6c63430006080033";

View File

@ -1,67 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorUniMkrEthInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorUniMkrEth extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): MockAggregatorUniMkrEth;
attach(addressOrName: string): MockAggregatorUniMkrEth;
deployed(): Promise<MockAggregatorUniMkrEth>;
on(event: EventFilter | string, listener: Listener): MockAggregatorUniMkrEth;
once(
event: EventFilter | string,
listener: Listener
): MockAggregatorUniMkrEth;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorUniMkrEth;
removeAllListeners(eventName: EventFilter | string): MockAggregatorUniMkrEth;
removeListener(eventName: any, listener: Listener): MockAggregatorUniMkrEth;
interface: MockAggregatorUniMkrEthInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

View File

@ -1,102 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { BigNumberish } from "ethers/utils";
import { TransactionOverrides } from ".";
import { MockAggregatorUniMkrEth } from "./MockAggregatorUniMkrEth";
export class MockAggregatorUniMkrEthFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): Promise<MockAggregatorUniMkrEth> {
return super.deploy(_initialAnswer, overrides) as Promise<
MockAggregatorUniMkrEth
>;
}
getDeployTransaction(
_initialAnswer: BigNumberish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_initialAnswer, overrides);
}
attach(address: string): MockAggregatorUniMkrEth {
return super.attach(address) as MockAggregatorUniMkrEth;
}
connect(signer: Signer): MockAggregatorUniMkrEthFactory {
return super.connect(signer) as MockAggregatorUniMkrEthFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): MockAggregatorUniMkrEth {
return new Contract(
address,
_abi,
signerOrProvider
) as MockAggregatorUniMkrEth;
}
}
const _abi = [
{
inputs: [
{
internalType: "int256",
name: "_initialAnswer",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
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: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220abf8bc4ec473889426cc620b5807dad5ca0183f6f27ac1e6b0cb65215ac6a46164736f6c63430006080033";

View File

@ -1,67 +0,0 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface MockAggregatorUniSethEthInterface extends Interface {
functions: {
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, roundId, timestamp]: [
BigNumberish | null,
BigNumberish | null,
null
]): string[];
}>;
};
}
export class MockAggregatorUniSethEth extends Contract {
connect(
signerOrProvider: Signer | Provider | string
): MockAggregatorUniSethEth;
attach(addressOrName: string): MockAggregatorUniSethEth;
deployed(): Promise<MockAggregatorUniSethEth>;
on(event: EventFilter | string, listener: Listener): MockAggregatorUniSethEth;
once(
event: EventFilter | string,
listener: Listener
): MockAggregatorUniSethEth;
addListener(
eventName: EventFilter | string,
listener: Listener
): MockAggregatorUniSethEth;
removeAllListeners(eventName: EventFilter | string): MockAggregatorUniSethEth;
removeListener(eventName: any, listener: Listener): MockAggregatorUniSethEth;
interface: MockAggregatorUniSethEthInterface;
functions: {
latestAnswer(): Promise<BigNumber>;
};
latestAnswer(): Promise<BigNumber>;
filters: {
AnswerUpdated(
current: BigNumberish | null,
roundId: BigNumberish | null,
timestamp: null
): EventFilter;
};
estimate: {
latestAnswer(): Promise<BigNumber>;
};
}

Some files were not shown because too many files have changed in this diff Show More