This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let app = require('lotion')({ | |
lotioPort: 3000, | |
tendermintPort: 46657, | |
initialState: { messages: [] }, | |
devMode: true | |
}) | |
app.use((state, tx) => { | |
if (typeof tx.sender === 'string' && typeof tx.message === 'string') { | |
state.messages.push({ sender: tx.sender, message: tx.message }) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class config { | |
public static baseUrl = "http://tendermint-spiteless-oiliness.mybluemix.net"; | |
public constructor() { | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"genesis_time": "0001-01-01T00:00:00Z", | |
"chain_id": "name", | |
"validators": [ | |
], | |
"app_hash": "" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"genesis_time": "0001-01-01T00:00:00Z", | |
"chain_id": "name", | |
"validators": [ | |
], | |
"app_hash": "" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "48CF851B54FBDB736E32F740CD8ECFCFEAF58E50", | |
"pub_key": { | |
"type": "ed25519", | |
"data": "BD39BBBCC93A9EA63A0E40240FB469CD81A2AE379F446B542AFF074388216CD0" | |
}, | |
"last_height": 0, | |
"last_round": 0, | |
"last_step": 0, | |
"last_signature": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "48CF851B54FBDB736E32F740CD8ECFCFEAF58E50", | |
"pub_key": { | |
"type": "ed25519", | |
"data": "BD39BBBCC93A9EA63A0E40240FB469CD81A2AE379F446B542AFF074388216CD0" | |
}, | |
"priv_key": { | |
"type": "ed25519", | |
"data": "3823959590D293D163AA79AD6F7EDEFAC2C46DC9D5A7967C3C2D98A6C030A1C4BD39BBBCC93A9EA63A0E40240FB469CD81A2AE379F446B542AFF074388216CD0" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "00BD81174C79F0F1B758EE31690EAAE0779AC71C", | |
"pub_key": { | |
"type": "ed25519", | |
"data": "68071247D4F63CF84C16B16B6700F34CAA5BB3DECAE0D527827CD1D77D57E1C6" | |
}, | |
"priv_key": { | |
"type": "ed25519", | |
"data": "AC94CAB2A274FAC2862548D08E620DA8C04ED8CAFDA3AEFC9F64EE750D4B23D368071247D4F63CF84C16B16B6700F34CAA5BB3DECAE0D527827CD1D77D57E1C6" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"genesis_time": "0001-01-01T00:00:00Z", | |
"chain_id": "name", | |
"validators": [ | |
{ | |
"pub_key": { | |
"type": "ed25519", | |
"data": "BD39BBBCC93A9EA63A0E40240FB469CD81A2AE379F446B542AFF074388216CD0" | |
}, | |
"power": 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config({path: ".env-node1"}); | |
let lotion = require('lotion') | |
let app = lotion({ | |
genesis: './genesis.json', | |
tendermintPort: 30090, | |
initialState: { messages: [] }, | |
p2pPort: 30092, | |
logTendermint: true, | |
keys: 'privkey0.json', | |
peers: ['159.122.175.154:30092'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:carbon | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
COPY privkey0.json ./ | |
COPY .env-node1 ./ | |
RUN npm install | |
COPY . . | |
EXPOSE 30090 30092 | |
CMD [ "node", "node1.js" ] |
OlderNewer