UNPKG

@berrywallet/core

Version:

Berrywallet main Core for work with common cryptocurrencies like Bitcoin, Ethereum, Dash, Litecoin

30 lines (29 loc) 897 B
import { Coin, Wallet } from '../../'; declare namespace etherscan { interface Transaction { hash: string; blockNumber: string | number; timeStamp: string | number; nonce: string | number; blockHash: string; transactionIndex: string | number; from: string; to: string; value: string | number; gas: string | number; gasPrice: string | number; isError: string; txreceipt_status: string; input: string; contractAddress: string; cumulativeGasUsed: string | number; gasUsed: string | number; confirmations: string | number; } interface InternalTransaction extends Transaction { } interface AddressInfo { } function toWalletTx(coin: Coin.CoinInterface, tx: Transaction): Wallet.Entity.EtherTransaction; } export default etherscan;