@verified-network/verified-sdk
Version:
An SDK to develop applications on the Verified Network
46 lines (45 loc) • 1.96 kB
TypeScript
import { VerifiedContract, Options } from "../index";
import { VerifiedWallet } from "../../../wallet";
export default class Distribution 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;
}>;
/**
Shares fee income with revenue shareholders
*/
shareFee(): any;
shareCollection(): any;
/**
Gets payment fee collected
@param _currency payment fee in currency collected
*/
getPaymentFeeCollected(_currency: string, options?: Options): any;
/**
Gets loan fee collected
@param _currency loan fee in currency collected
*/
getLoanFeeCollected(_currency: string, options?: Options): any;
/**
Get revenue shareholders
@param _type type of shareholder, ie, 'BUSINESS' or 'OPERATOR'
@param _currency currency revenue is collected
*/
getRevenueShareholders(_type: string, _currency: string, options?: Options): any;
/**
Add revenue shareholders
@param _type type of shareholder, ie, 'BUSINESS' or 'OPERATOR'
@param _shareholder address of shareholder to add
@param _currency currency revenue is collected
*/
addRevenueShareholder(_type: string, _shareholder: string, _currency: string, options?: Options): any;
getIssuingFeeCollected(_platform: string, _token: string, options?: Options): any;
getTradingFeeCollected(_platform: string, _token: string, options?: Options): any;
notifyRevenueShare(callback: any): object;
}