mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 03:54:13 +00:00
bf4171dfbd
* Add a little arrow icon. * Replaced toEther function with toUnit to reduce the number of conversion functions wed need. Add tests for conversion functions. * First pass at a styled confirm transaction modal. * More data about data * Hook up generated transaction with modal * Fix modal position * Add from address. Restyle a bit. * Only show textareas and button if transaction has been generated. * Remove need for param. * Copy. * Use non-relative path. * Initial crack at transaction token support. * Fix flow type * Unit tests for contracts and erc20 * Convert contract class to ethereumjs-abi, caught a bug * Add decodeArgs for contracts, decodeTransfer for erc20 * Show token value in modal * Show value from transaction data in confirmation. * Show address of receiver, not token contract * Flow type * Only accept bigs * Unlog * Use ethereumjs-abis method ID function * Get transaction stuff out of state. Leave todo notes. * Intuit token from transaction to address. * Move generate transaction out of node and into libs/transaction. * timeout -> interval * Promise.reject -> throw * Get default currency from network. * Add more unit tests for decoding. Adopt the $ prefix for decoding calls. * Use signed transaction in confirmation modal.
27 lines
724 B
JavaScript
27 lines
724 B
JavaScript
// @flow
|
|
import Big from 'bignumber.js';
|
|
import type { TransactionWithoutGas } from 'libs/transaction';
|
|
import type { Token } from 'config/data';
|
|
|
|
export default class BaseNode {
|
|
async getBalance(_address: string): Promise<Big> {
|
|
throw new Error('Implement me');
|
|
}
|
|
|
|
async getTokenBalance(_address: string, _token: Token): Promise<Big> {
|
|
throw new Error('Implement me');
|
|
}
|
|
|
|
async getTokenBalances(_address: string, _tokens: Token[]): Promise<Big[]> {
|
|
throw new Error('Implement me');
|
|
}
|
|
|
|
async estimateGas(_tx: TransactionWithoutGas): Promise<Big> {
|
|
throw new Error('Implement me');
|
|
}
|
|
|
|
async getTransactionCount(_address: string): Promise<string> {
|
|
throw new Error('Implement me');
|
|
}
|
|
}
|