rm unused rm pluginudapp use settingsUIbunsenstraat-getselectedaccount
parent
8790f3949f
commit
0a40c3a6cf
@ -1,33 +0,0 @@ |
||||
const { EventEmitter } = require('events') |
||||
|
||||
class PluginUdapp { |
||||
constructor (blockchain) { |
||||
this.blockchain = blockchain |
||||
this.events = new EventEmitter() |
||||
this.setupEvents() |
||||
} |
||||
|
||||
setupEvents () { |
||||
this.blockchain.events.on('newTransaction', (tx, receipt) => { |
||||
this.events.emit('newTransaction', tx, receipt) |
||||
}) |
||||
} |
||||
|
||||
createVMAccount (newAccount) { |
||||
return this.blockchain.createVMAccount(newAccount) |
||||
} |
||||
|
||||
sendTransaction (tx) { |
||||
return this.blockchain.sendTransaction(tx) |
||||
} |
||||
|
||||
getAccounts (cb) { |
||||
return this.blockchain.getAccounts(cb) |
||||
} |
||||
|
||||
pendingTransactionsCount () { |
||||
return this.blockchain.pendingTransactionsCount() |
||||
} |
||||
} |
||||
|
||||
module.exports = PluginUdapp |
Loading…
Reference in new issue