import { Farming as Farm, DexPair } from '../contracts'; import { ContractTransaction } from 'ethers'; export declare class Farming { farming: Farm; constructor(farmingAddress: string, privKey: string, rpcURL: string); /** * A function to deposit given amount of LP token in given LP Farming pool. * @param {string} amount - amount of the LP KIP7 token going to be deposited. * @param {string} poolId - pool id in which amount is going to be deposited. * @return {Promise} - ContractTransaction object. */ deposit(poolId: string, amount: string): Promise; /** * A function to withdraw LP tokens from given LP farming pool * @param {string} amount - amount of the LP KIP7 token going to be withdrawn. * @param {string} poolId - pool id of LP farming pool from which amount is going to be withdrawn. * @return {Promise} - ContractTransaction object. */ withdraw(poolId: string, amount: string): Promise; /** * A function to emergency withdraw funds from given LP farming pool. * @param {string} poolId - pool id of LP farming pool from where funds are to be withdrawn. * @return {Promise} - ContractReceipt object. */ emergencyWithdraw(poolId: string): Promise; /** * A function that encodes all the details required to update bonusMultiplier of given LP farming pool. * @notice - Output of this function should be submitted to MULTISIG contract * @param {string} multiplier - Number of allocation points to be set in given farming pool. * @param {string} poolId - id of the LP farming pool whose bonusMultiplier to be updated. * @return {string} - encoded raw transaction data to be submitted & executed by Multisig contract. */ updateMultiplier(poolId: string, multiplier: string): Promise; /** * A function that encodes all the details required to update rewardPerBlock of Farming contract. * @notice - Output of this function should be submitted to MULTISIG contract * @param {string} rewardPerBlock - Number of platform tokens to be given as reward per block. * @return {string} - encoded raw transaction data to be submitted & executed by Multisig contract. */ updatePtnPerBlock(rewardPerBlock: string): Promise; /** * A function that encodes all the details required to create a new LP farming pool. * @notice - Output of this function should be submitted to MULTISIG contract * @param {string} lpToken - Address of the LP KIP7 token. * @param {string} allocPoint - Number of allocation points for the new pool. * @param {string} bonusMultiplier - The pool reward multipler. * @param {string} bonusEndBlock - The block number after which the pool doesn't get any reward bonus from `bonusMultiplier`. * @return {string} - encoded raw transaction data to be submitted & executed by Multisig contract. */ add(allocPoint: string, lpToken: string, bonusMultiplier: string, bonusEndBlock: string): Promise; /** * A function that encodes all the details required to update / set LP farming pool. * @notice - Output of this function should be submitted to MULTISIG contract * @param {string} allocPoint - Number of allocation points to be set in given farming pool. * @param {string} poolId - id of the LP farming pool whose allocPoints to be set/updated. * @return {string} - encoded raw transaction data to be submitted & executed by Multisig contract. */ set(allocPoint: string, poolId: string): Promise; /** * A function that encodes all the details required to grant minter role to Farming contract on platformToken contract. * @notice - Output of this function should be submitted to MULTISIG contract * @param {string} ptnAddress - Address of the platform token i.e: ptnToken of whom minter role to be granted to Farming contract. * @return {string} - encoded raw transaction data to be submitted & executed by Multisig contract. */ ptnGrantRole(ptnAddress: string): Promise; /** * A getter function for Farming contract's insstance * @return {Farm} - Farming contract's instance. */ getFarm(): Farm; /** * A getter function to fetch instance of DexPair contract. * @param {string} pairAddress - Address of DexPair contract. * @param {string} privKey - private key of signer account. * @param {string} rpcURL - RPC URL of blockchain provider. * @return {Promise} - DexPair contract's instance. */ getPair(pairAddress: string, privKey: string, rpcURL: string): Promise; }