@infy-protocol/sdk
Version:
Lend and rent any ERC721s and ERC1155s on supported mainnet and testnet.
83 lines (82 loc) • 2.46 kB
TypeScript
export declare type TypeNetworkDetails = {
name: string;
chainId: number;
shortName: string;
chain: string;
networkId: number;
nativeCurrency: {
name: string;
symbol: string;
decimals: number;
};
rpc: string[];
faucets: string[];
explorers: {
name: string;
url: string;
standard: string;
};
infoURL: string;
logoURL: string;
collateralizedContractAddresses: string[];
collateralFreeContractAddresses: string[];
revenueSharedNFTRentalsContractAddresses: string[];
revenueSharedConfiguratorContractAddresses: string[];
e721ContractAddresses: string[];
e721BContractAddresses: string[];
e1155ContractAddresses: string[];
e1155BContractAddresses: string[];
wETHContractAddresses: string[];
daiContractAddresses: string[];
usdcContractAddresses: string[];
usdtContractAddresses: string[];
tUSDContractAddresses: string[];
utilsContractAddresses: string[];
subgraphs: {
collateralized: string;
collateralFree: string;
revenueSharedNFTRentals: string;
e721: string;
e1155: string;
};
moralisDetails: {
isSupported: boolean;
lookupValue: string;
};
chainApiId: string;
isSupported: boolean;
isTestnet: boolean;
};
export declare type TypeNetworkConfig = {
[key: string]: TypeNetworkDetails;
};
export declare enum ContractType {
COLLATERALIZED = "Collateralized",
COLLATERAL_FREE = "CollateralFree",
REVENUE_SHARE = "RevenueShare",
REVENUE_SHARED_CONFIGURATOR = "RevenueSharedConfigurator",
E721 = "E721",
E721_B = "E721B",
E1155 = "E1155",
E1155_B = "E1155B",
WETH = "WETH",
DAI = "DAI",
USDC = "USDC",
USDT = "USDT",
T_USD = "TUSD",
UTILS = "Utils"
}
export declare const CONTRACT_TYPE_LIST: ContractType[];
export declare enum SupportedChainIds {
ETHEREUM_MAINNET = 1,
ETHEREUM_ROPSTEN = 3,
ETHEREUM_RINKEBY = 4,
ETHEREUM_KOVAN = 42,
BINANCE_MAINNET = 56,
BINANCE_TESTNET = 97,
POLYGON_MAINNET = 137,
POLYGON_TESTNET = 80001
}
export declare const ALL_SUPPORTED_CHAIN_IDS: SupportedChainIds[];
export declare const NetworkConfig: TypeNetworkConfig;
export declare const GetNetworkDetailsByChainId: (networkId: SupportedChainIds) => TypeNetworkDetails;