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(); | |
| const sleep = require('sleep'); | |
| const { FactomCli, Entry, Chain } = require('factom'); | |
| const cli = new FactomCli({ | |
| factomd: { | |
| host: 'localhost', | |
| port: 8088 | |
| }, |
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
| pragma solidity ^0.4.19; | |
| import "./EventStoreLib.sol"; | |
| contract EventStore { | |
| EventStoreLib.Storage store; | |
| address public owner; |
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
| pragma solidity ^0.4.19; | |
| library EventStoreLib { | |
| event Event( | |
| uint index, | |
| address sender, | |
| bytes32 key, | |
| bytes32 value | |
| ); |