UNPKG

evm-blockchain-tools

Version:

This is a collection of resuseable tools to support development for EVM-powered blockchains

21 lines (20 loc) 806 B
import { Signer, Wallet } from "ethers"; import { IWeb3Gateway, TronGatewayConfig } from "../common/interfaces"; import { APP_NETWORK } from "../common/constants"; export declare class TronGateway implements IWeb3Gateway { protected config: TronGatewayConfig; protected _tron: any; protected signerAddress: string; wallet: Wallet; network: APP_NETWORK; constructor(config: TronGatewayConfig); connect(): void; get signer(): Promise<Signer>; getCurrentBlock(): Promise<number>; isValidTxFormat(txHash: string): boolean; getBlock(blockNumber: number): any; getGasPrice(): Promise<string>; recoverSigner(message: string, signedMessage: string): Promise<string>; getSignerAddress(): Promise<string>; getTransactionByID(txID: string): Promise<any>; }