@verified-network/verified-sdk
Version:
An SDK to develop applications on the Verified Network
40 lines (39 loc) • 1.48 kB
TypeScript
import { VerifiedContract, Options } from "../../index";
import { VerifiedWallet } from "../../../wallet";
export default class Compound extends VerifiedContract {
contractAddress: string;
constructor(signer: VerifiedWallet, contractNetworkAddress: string);
_getMeeQuote(paymentTokenAddress: string, functionName: string, args: any[], apiKey?: string, rpcUrl?: string): Promise<{
tokenAddress: string;
amount: string;
amountInWei: string;
amouuntValue: string;
chainId: number;
functionName: string;
}>;
setSigner(_address: string): any;
/**
* Submits new RWA to Compound
* @params (address asset, address bond, uint256 apy, string memory issuingDocs, uint256 faceValue)
* @returns
*/
submitNewRWA(asset: string, bond: string, apy: string, issuingDocs: string, faceValue: string, options?: Options): any;
/**
* Posts collateral to Compound
* @params (address asset, address collateral, uint256 amount)
* @returns
*/
postCollateral(asset: string, collateral: string, amount: string, options?: Options): any;
/**
* Borrows from Compound
* @params (address base, uint256 amount)
* @returns
*/
borrowBase(base: string, amount: string, options?: Options): any;
/**
* Repays to Compound
* @params (address base, uint256 amount)
* @returns
*/
repayBase(base: string, amount: string, options?: Options): any;
}