reorg code, integration publish/subscribe working, still some TODOs
This commit is contained in:
parent
043a95d9ef
commit
1af6d56e2d
35 changed files with 3052 additions and 1401 deletions
18
blockchain/transaction.js
Normal file
18
blockchain/transaction.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const Payment = require('./payment');
|
||||
const Integration = require('./integration');
|
||||
const SensorRegistration = require('./sensor-registration');
|
||||
const BrokerRegistration = require('./broker-registration');
|
||||
|
||||
class Transaction {
|
||||
constructor(transaction, type) {
|
||||
this.transaction = transaction;
|
||||
this.verify = type.verify;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
static mapId(type) {
|
||||
return type.name();
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Transaction;
|
Loading…
Add table
Add a link
Reference in a new issue