@verified-network/verified-sdk
Version:
An SDK to develop applications on the Verified Network
37 lines (36 loc) • 1.81 kB
TypeScript
import { VerifiedContract, Options } from "../index";
import { VerifiedWallet } from "../../wallet";
export default class Token extends VerifiedContract {
contractAddress: string;
constructor(signer: VerifiedWallet, bondCurrencyAddress: 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;
}>;
/**
* Lend by purchasing bond token against other cash token [callable by client]
* _sender is address of bond token redeemed,
* _receiver is bond token address,
* _tokens is amount of tokens redeemed
* @param (address _sender, address _receiver, uint256 _tokens)
* @returns bool
*/
transferFrom(_senderAddress: string, _recieverAddress: string, _tokens: string, options?: Options): any;
balanceOf(_wallet: string, options?: Options): any;
getIssuer(): any;
requestTransfer(_recieverAddress: string, _tokens: string, options?: Options): any;
requestTransaction(_amount: string, _payer: string, _collateralName: string, _collateralContract: string, options?: Options): any;
name(): any;
symbol(): any;
decimals(): any;
totalSupply(): any;
approve(_spender: string, _amount: string, options?: Options): any;
allowance(_owner: string, _spender: string, options?: Options): any;
increaseAllowance(_spender: string, _addedValue: string, options?: Options): any;
decreaseAllowance(_spender: string, _subtractedValue: string, options?: Options): any;
allow(_protocol: string, _manager: string, _isAllowed: boolean, options?: Options): any;
}