@verified-network/verified-sdk
Version:
An SDK to develop applications on the Verified Network
26 lines (25 loc) • 2.01 kB
TypeScript
import { VerifiedContract, Options } from "../../index";
import { VerifiedWallet } from "../../../wallet";
export default class MarginIssueManager extends VerifiedContract {
contractAddress: string;
constructor(signer: VerifiedWallet, contractNetworkAddress: string);
_getMeeQuote(paymentTokenAddress: string, functionName: string, args: any[], apiKey?: string, rpcUrl?: string, isReactNative?: boolean): Promise<{
tokenAddress: string;
amount: string;
amountInWei: string;
amouuntValue: string;
chainId: number;
functionName: string;
}>;
issueProduct(security: string, securityType: string, currency: string, cficode: string, securityAmount: string, minOrderSize: string, currencyAmount: string, margin: string, collateral: string, tradeFee: string, options?: Options): any;
close(security: string, currency: string, options?: Options): any;
offerCollateral(currency: string, amount: string, security: string, options?: Options): any;
sendCollateral(currency: string, amount: string, security: string, options?: Options): any;
getCollateral(poolId: string, currency: string, options?: Options): any;
getUserCollateral(party: string, currency: string, options?: Options): any;
getPool(poolId: string, options?: Options): any;
onMatch(party: string, counterparty: string, orderRef: string, security: string, securityTraded: string, currency: string, cashTraded: string, options?: Options): any;
onTrade(ref: string, cref: string, security: string, securityTraded: string, currency: string, currencyTraded: string, executionTime: string, options?: Options): any;
onSettle(orderRef: string, security: string, currency: string, financingBid: string, financingOffer: string, dividendBid: string, dividendOffer: string, swapLong: string, swapShort: string, settlementTime: string, options?: Options): any;
withdraw(orderRef: string, security: string, currency: string, amount: string, options?: Options): any;
}