UNPKG

@ajna-finance/sdk

Version:

A typescript SDK that can be used to create Dapps in Ajna ecosystem.

31 lines (30 loc) 1.44 kB
import { Address } from '../types'; /** * Manages static protocol configuration, particularly contract addresses for a single chain. */ declare class Config { static erc20PoolFactory: Address; static erc721PoolFactory: Address; static poolUtils: Address; static positionManager: Address; static ajnaToken: Address; static grantFund: Address; static burnWrapper: Address; static lenderHelper: Address; /** * Allows consumer to configure with their own addresses. * @param erc20PoolFactory address of the factory contract which creates fungible pools * @param erc721PoolFactory address of the factory contract which creates NFT pools * @param poolUtils address of the readonly utility contract * @param ajnaToken address of the AJNA token contract * @param grantFund address of the ecosystem coordination contract * @param burnWrapper address of the contract used to wrap AJNA for transferring across an L2 bridge * @param lenderHelper address of the contract used as a helper to add and move liquidity across buckets */ constructor(erc20PoolFactory: Address, erc721PoolFactory: Address, poolUtils: Address, positionManager: Address, ajnaToken: Address, grantFund: Address, burnWrapper: Address, lenderHelper: Address); /** * Configures addresses from known environment variables. */ static fromEnvironment(): Config; } export { Config };