Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Trying...

William Pourmajidi WilliamPourmajidi

:shipit:
Trying...
  • WIL Solutions Inc.
  • Toronto, Ontario, Canada
View GitHub Profile
@WilliamPourmajidi
WilliamPourmajidi / git_cheat-sheet.md
Created Jul 15, 2019 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
View git_cheat-sheet.md
@WilliamPourmajidi
WilliamPourmajidi / superblock.sol
Created Jul 13, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
View superblock.sol
pragma solidity ^0.4.0;
contract Superblock {
// The 'dict' of addresses that are approved to submit SBs
mapping (address => bool) approvedSender;
string SB;
// The event to announce a SB on the blockchain
event SuperblockSubmission(address _sender, string _superblock);
// This is a constructor function, so its name has to match the contract
function Superblock() public {
You can’t perform that action at this time.