@nitin-spheron/desub-js
Version:
Typescript library for working with the decentralised subscription contracts in Spheron
39 lines (38 loc) • 2.09 kB
TypeScript
import Deployed from './abstracts/deployed';
import Vendor from './abstracts/vendor';
import { TxResponse } from './interfaces';
export default class Payment extends Deployed {
coinMarketCapKey?: string;
constructor(vendor: Vendor, coinMarketCapKey?: string);
paymentWithFee(userAddress: string, buildTimeInSeconds: string, deploymentCost: string, providerQuote: any, providerCharged: any, providerName: string): Promise<TxResponse>;
paymentWithoutFee(userAddress: string, buildTimeInSeconds: string): Promise<TxResponse>;
updateUnderlyingToken(address: string): Promise<TxResponse>;
updateEscrow(a: string): Promise<TxResponse>;
updateFeederAddress(a: string): Promise<TxResponse>;
updateStakedToken(a: string): Promise<TxResponse>;
updateToken(a: string): Promise<TxResponse>;
updateDiscountSlabs(d: Array<string>, p: Array<string>): Promise<TxResponse>;
changeBuildTimeRate(p: string): Promise<TxResponse>;
enableDiscounts(h: string): Promise<TxResponse>;
disableDiscounts(): Promise<TxResponse>;
setGovernanceAddress(h: string): Promise<TxResponse>;
setManagers(h: Array<string>): Promise<TxResponse>;
setNewApprovals(a: string): Promise<TxResponse>;
gasslessApproval(approvalAmount: string, chainId: number): Promise<TxResponse>;
sendRawBiconomyERC20Transaction(u: string, f: string, rsv: any): Promise<any>;
getApprovalAmount(userAddress: string): Promise<number>;
getNonceForGaslessERC20(userAddress: string): Promise<number>;
getUserBalance(a: string): Promise<any>;
getManagers(): Promise<Array<string>>;
getGovernanceAddress(): Promise<string>;
getToken(): Promise<string>;
getEscrow(): Promise<string>;
checkIfDiscountsEnabled(): Promise<boolean>;
getStakingManagerAddress(): Promise<string>;
getStakedTokenAddress(): Promise<string>;
getDiscountSlabs(): Promise<any>;
getArweaveConvertedUsd(a: string): Promise<number>;
getArweaveQuote(): Promise<number>;
getAkashConvertedUsd(a: string): Promise<number>;
getAkashQuote(): Promise<number>;
}