import Transaction from './TransactionMeta' ; import { randomId } from './Payload' ; import TransactionKind from './TransactionKind' ; import TransactionState from './TransactionState' ; export function ethereum ( id , to , amount , fee ) { return { id : randomId ( ) . toString ( ) , title : 'Ethereum' , to , time : Date . now ( ) , amount , fee , kind : TransactionKind . ETHEREUM , state : TransactionState . PENDING , } ; } export function signature ( from , data ) { return { id : randomId ( ) . toString ( ) , title : 'Signature' , from , data , time : Date . now ( ) , amount : 0 , fee : 0 , kind : TransactionKind . SIGN , state : TransactionState . PENDING , } ; }