mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-16 06:04:21 +00:00
c340246ca0
* 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
38 lines
713 B
TypeScript
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;
|
|
}
|