UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

22 lines (21 loc) 978 B
import { BlockchainWallet } from "./blockchain-wallet"; import { IAsyncTezosOperationOutput, ITezosOperationEstimation } from "./interfaces/tezos"; import { IContractOperation } from "./interfaces/tezos-contract"; import { Request } from "./request"; import { Waas } from "./waas"; import { Wallet } from "./wallet"; export declare class TezosContractWallet extends BlockchainWallet { readonly address: string; private readonly baseUrl; constructor(waas: Waas, walletInstance: Wallet, address: string); /** * Executes methods of arbitrary Tezos smart contracts * @param config - Smart contract configuration */ sendAsync(config: IContractOperation[]): Promise<Request<IAsyncTezosOperationOutput>>; /** * Returns the fee estimation for a smart contract execution with the given parameters. * @param config - Smart contract configuration */ estimateFee(config: IContractOperation[]): Promise<ITezosOperationEstimation>; }