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
| (* This contract demonstrate the creation of a Struct using Pair of a Pair *) | |
| (* The Struct below currentmsginfo stores: *) | |
| (* 1. A String that contains the message. *) | |
| (* 2. An Address of the latest invoker of setHello transition. *) | |
| (* 3. A Interger expressing the number of time setHello transition has been invoked. *) | |
| import PairUtils | |
| library Pairs |
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
| 1) go to https://ropsten.etherscan.io/verifyContract?a=0xa32b21ba14fd476757e392db5d1bbc833eaedaf5 | |
| 2) enter contract address, name, compiler | |
| 3) copy code of contract flatten out (delete import and replace by actual code) | |
| 4) truffle console | |
| 5) var Eth = require('ethjs') | |
| 6) Eth.abi.encodeParams(["uint256", "uint256", "uint256", "address", "uint256"], ["1508105298", "1508710098", "200", "0x3d208fabaf7e919985d5d2f068f28d6a9022e8d5", "5000000000000000000000000000"]) | |
| 7) copy paste result of encodeParams without '0x' |
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
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |