aave-protocol-v2/helpers/types.ts

20 lines
598 B
TypeScript

import BigNumber from "bignumber.js";
export enum eEthereumNetwork {
buidlerevm = "buidlerevm",
kovan = "kovan",
ropsten = "ropsten",
main = "main"
}
export enum eContractid {
Example = "Example",
LendingPoolAddressesProvider = "LendingPoolAddressesProvider"
}
export type tEthereumAddress = string;
export type tStringTokenBigUnits = string; // 1 ETH, or 10e6 USDC or 10e18 DAI
export type tBigNumberTokenBigUnits = BigNumber;
export type tStringTokenSmallUnits = string; // 1 wei, or 1 basic unit of USDC, or 1 basic unit of DAI
export type tBigNumberTokenSmallUnits = BigNumber;