Skip to content

Instantly share code, notes, and snippets.

Hudson Jameson Souptacular

Block or report user

Report or block Souptacular

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 3Box
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmRvmDHs2zuGdjuc4w7Fr63WYRcnJkg1k6KULc4rjsrCaE ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
View MetropolisTestingGuide.md

Edit 8/14/18: See https://ethereum-tests.readthedocs.io/en/latest/ for more updated information. Much of the links below are still valuable though.

Welcome

This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.

Suggested skill sets needed to create and run tests

  1. Ability to compile/build testeth and LLL compiler or run a docker file.
  2. Ability to [understand the LLL Ethereum language](https://gist.github.com/Souptacular/fd197b1fac7c6d2660b0bef27a33ed40#lll-and-evm-st
View Tollway Contracts
pragma solidity ^0.4.6;
contract TollwayManager {
address public owner;
address public VD;
function TollwayManager() {
owner = msg.sender;
TollEvent(block.timestamp, msg.sender, this, "Welcome to your tollway system.");
View WaterMeterAcorn.sol
pragma solidity ^0.4.7;
/**
* Water Meter ACORN Contract v0.1
* Hudson Jameson
* Solidity Version: 0.4.7+commit.822622cf.Emscripten.clang
* License: Apache 2.0
**/
contract WaterMeterAcorn {
View Factory Example
pragma solidity ^0.4.7;
contract Factory {
bytes32[] Names;
address[] newContracts;
function createContract (bytes32 name) {
address newContract = new Contract(name);
newContracts.push(newContract);
View Factory.sol
pragma solidity ^0.4.7;
contract Factory {
bytes32[] Names;
address[] newContracts;
function createContract (bytes32 name) {
address newContract = new Contract(name);
newContracts.push(newContract);
View gist:222cf52bf3ccbc716a50
### Keybase proof
I hereby claim:
* I am souptacular on github.
* I am souptacular (https://keybase.io/souptacular) on keybase.
* I have a public key whose fingerprint is A690 EE72 1020 853B 7802 0AA8 028D 1459 247B 9596
To claim this, I am signing this object:
@Souptacular
Souptacular / SHA3Test.sol
Last active Aug 22, 2018
Testing SHA3 with Solidity
View SHA3Test.sol
contract SHA3Test
{
function getSHA3Hash(bytes input) returns (bytes32 hashedOutput)
{
hashedOutput = sha3(input);
}
}
// Ethereum uses KECCAK-256. It should be noted that it does not follow
You can’t perform that action at this time.