Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
| package main | |
| import ( | |
| "github.com/syndtr/goleveldb/leveldb" | |
| "fmt" | |
| "encoding/binary" | |
| "github.com/ethereum/go-ethereum/core/types" | |
| "bytes" | |
| "github.com/ethereum/go-ethereum/rlp" | |
| ) |
| package main | |
| import ( | |
| "github.com/syndtr/goleveldb/leveldb" | |
| "fmt" | |
| "encoding/binary" | |
| "github.com/ethereum/go-ethereum/core/types" | |
| "bytes" | |
| "github.com/ethereum/go-ethereum/rlp" | |
| ) |
| { | |
| "version": 3, | |
| "id": "f50f0234-d25c-42a9-8c2f-e777fafe5c2a", | |
| "address": "389d46c0d5d20c8220ad236b5a25b348c67e3021", | |
| "Crypto": { | |
| "ciphertext": "7cc66b5740d2ce0942b5beef2a997f5d85a9ab0e10a166a9f31cc16372c72204", | |
| "cipherparams": { | |
| "iv": "d8acc1c0a3a18c61acc33ca05eeb19bf" | |
| }, | |
| "cipher": "aes-128-ctr", |
| 0x827c4C5789957dfd8A6a90d904bef931CE1B8Fee |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
| #include <Wire.h> | |
| #include <TimeLib.h> | |
| #include <DS1307RTC.h> | |
| #include <LiquidCrystal_I2C.h> | |
| int budzikGodzina = 7, budzikMinuta = 0; | |
| LiquidCrystal_I2C lcd(0x27, 16, 2); | |
| tmElements_t tm; |
The sample source code is produced for the article below:
The code is not optimised or written in the best style. There are might be bugs, so use with caution and comments/fixes are welcome.
| pragma solidity ^0.4.13; | |
| contract someContract { | |
| mapping(address => uint) balances; | |
| function deposit() payable { | |
| balances[msg.sender] += msg.value; | |
| } | |
| // Bytecode origin https://www.reddit.com/r/ethereum/comments/6ic49q/any_assembly_programmers_willing_to_write_a/dj5ceuw/ | |
| // Modified version of Vitalik's https://www.reddit.com/r/ethereum/comments/6c1jui/delegatecall_forwarders_how_to_save_5098_on/ | |
| // Credits to Jordi Baylina for this way of deploying contracts https://gist.github.com/jbaylina/e8ac19b8e7478fd10cf0363ad1a5a4b3 | |
| // Forwarder is slightly modified to only return 256 bytes (8 normal returns) | |
| // Deployed Factory in Kovan: https://kovan.etherscan.io/address/0xaebc118657099e2110c90494f48b3d21329b23eb | |
| // Example of a Forwarder deploy using the Factory: https://kovan.etherscan.io/tx/0xe995dd023c8336685cb819313d933ae8938009f9c8c0e1af6c57b8be06986957 | |
| // Just 66349 gas per contract |
| #include <type_traits> | |
| template<class L> | |
| struct Left { | |
| L const value; | |
| }; | |
| template<class R> | |
| struct Right { | |
| R const value; |