Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
//const RegisterPacketTransaction = require('../transactions/register-packet');
//const StartTransportTransaction = require('../transactions/start-transport');
//const FinishTransportTransaction = require('../transactions/finish-transport');
const LightAlarmTransaction = require('../transactions/light-alarm');
configDevnet.app.label = 'lisk-transport';
configDevnet.modules.http_api.access.public = true;
// configDevnet.components.storage.host = 'db';
const app = new Application(genesisBlockDevnet, configDevnet);
//app.registerTransaction(RegisterPacketTransaction);
//app.registerTransaction(StartTransportTransaction);
//app.registerTransaction(FinishTransportTransaction);
app.registerTransaction(LightAlarmTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const RegisterPacketTransaction = require('../transactions/register-packet');
const RegisterCarrierTransaction = require('../transactions/register-carrier');
const UnregisterCarrierTransaction = require('../transactions/unregister-carrier');
const StartDeliveryTransaction = require('../transactions/start-delivery');
const FinishDeliveryTransaction = require('../transactions/finish-delivery');
configDevnet.app.label = 'lisk-delivery';
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(RegisterPacketTransaction);
app.registerTransaction(RegisterCarrierTransaction);
app.registerTransaction(UnregisterCarrierTransaction);
app.registerTransaction(StartDeliveryTransaction);
app.registerTransaction(FinishDeliveryTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
const { Application, genesisBlockDevnet, configDevnet} = require('lisk-sdk');
const HelloTransaction = require('./hello_transaction');
configDevnet.app.label = 'HelloWorld-blockchain-app';
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(HelloTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const RegisterPacketTransaction = require('../transactions/register-packet');
const StartTransportTransaction = require('../transactions/start-transport');
const FinishTransportTransaction = require('../transactions/finish-transport');
const LightAlarmTransaction = require('../transactions/light-alarm');
configDevnet.app.label = 'lisk-transport';
configDevnet.modules.http_api.access.public = true;
configDevnet.components.storage.host = 'db';
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(RegisterPacketTransaction);
app.registerTransaction(StartTransportTransaction);
app.registerTransaction(FinishTransportTransaction);
app.registerTransaction(LightAlarmTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const RegisterPackageTransaction = require('./register-package-transaction');
configDevnet.app.label = 'D-NPM-application';
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(RegisterPackageTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const CashbackTransaction = require('./cashback_transaction');
configDevnet.app.label = 'Cashback-blockchain-app';
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(CashbackTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});