Skip to content

Commit

Permalink
Add transaction class
Browse files Browse the repository at this point in the history
  • Loading branch information
pkakelas committed Dec 8, 2018
1 parent b80faf7 commit 1075702
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions transaction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Address } from './types'

export default class Transaction {
public fromAddress: Address
public toAddress: Address
public amount: number

constructor (fromAddress: Address, toAddress: Address, amount: number) {
this.fromAddress = fromAddress
this.toAddress = toAddress
this.amount = amount
}
}

0 comments on commit 1075702

Please sign in to comment.