2018-07-30 18:59:52 -04:00
|
|
|
import { BigNumber } from './bignumber';
|
|
|
|
import { Arrayish, Signature } from './bytes';
|
|
|
|
import { BigNumberish } from './bignumber';
|
2018-10-14 19:05:38 -04:00
|
|
|
import { Provider } from '../providers/abstract-provider';
|
2018-07-30 18:59:52 -04:00
|
|
|
export declare type UnsignedTransaction = {
|
|
|
|
to?: string;
|
|
|
|
nonce?: number;
|
|
|
|
gasLimit?: BigNumberish;
|
|
|
|
gasPrice?: BigNumberish;
|
|
|
|
data?: Arrayish;
|
|
|
|
value?: BigNumberish;
|
|
|
|
chainId?: number;
|
|
|
|
};
|
|
|
|
export interface Transaction {
|
|
|
|
hash?: string;
|
|
|
|
to?: string;
|
|
|
|
from?: string;
|
|
|
|
nonce: number;
|
|
|
|
gasLimit: BigNumber;
|
|
|
|
gasPrice: BigNumber;
|
|
|
|
data: string;
|
|
|
|
value: BigNumber;
|
|
|
|
chainId: number;
|
|
|
|
r?: string;
|
|
|
|
s?: string;
|
|
|
|
v?: number;
|
|
|
|
}
|
|
|
|
export declare function serialize(transaction: UnsignedTransaction, signature?: Arrayish | Signature): string;
|
|
|
|
export declare function parse(rawTransaction: Arrayish): Transaction;
|
2018-10-14 19:05:38 -04:00
|
|
|
export declare function populateTransaction(transaction: any, provider: Provider, from: string | Promise<string>): Promise<Transaction>;
|