HenryNguyen5 c340246ca0 Enable no-implicit-any (#1263)
* Progress commit

* Update more types

* Fix more types

* Fix abi function types

* Fix lib types

* Fix rest of types

* Address wbobeirne changes

* Change origin and destination check
2018-03-07 17:36:05 -06:00

38 lines
713 B
TypeScript

import { Wei, Address } from 'libs/units';
import BN from 'bn.js';
// By only dealing with Buffers / BN, dont have to mess around with cleaning strings
export interface ITransaction {
to: Address;
from?: Address;
value?: Wei | null;
data?: Buffer | null;
gasLimit: Wei;
gasPrice: Wei;
nonce: BN;
chainId: number;
v: Buffer;
r: Buffer;
s: Buffer;
}
export interface IHexStrTransaction {
to: string;
value: string;
data: string;
gasLimit: string;
gasPrice: string;
nonce: string;
chainId: number;
}
export interface IHexStrWeb3Transaction {
from: string;
to: string;
value: string;
data: string;
gas: string;
gasPrice: string;
nonce: string;
chainId: number;
}