Skip to content

Instantly share code, notes, and snippets.

mango@moko:~/Git/truffle$ meta git status
truffle:
On branch develop
Your branch is up to date with 'origin/develop'.
nothing to commit, working tree clean
truffle ✓
truffle-artifactor:
@kingcocomango
kingcocomango / Example with reploys
Created November 23, 2017 16:16
The command used to create this was running `migrate --reset` twice
{
"contractName": "MetaCoin",
"abi": [
{
"constant": true,
"inputs": [],
"name": "specialFn",
"outputs": [
{
"name": "",
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owner) {
throw;
0x55a717fe6247A81b9c1C051364564713F48eeFB9
/// @title Provides an "owner" concept of the contract creator.
pragma solidity ^0.4.8;
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
pragma solidity ^0.4.8;
library ArrayUtils {
struct ArrayList {
mapping(address => uint) addressToIndexMapping;
mapping(uint => address) indexToAddressMapping;
uint numberOfValues;
}
pragma solidity ^0.4.10;
contract splitsender{
address[] public Targets; // will hold array of targets
uint public TargetsLength; // will hold how big the array is
bool SendLock; // Used to prevent SendSplit from calling itself.
function splitsender(){ // constructor. Runs when contract is created
TargetsLength=0; // start the length out at 0 explicitely
pragma solidity ^0.4.10;
contract voterecorder {
event Voted(address voter, uint voteid);// this is the event to hook onto
VOTECOST = 1 finney; // This is the cost of voting
function Vote(uint voteid) external payable{// or string or whatever to identify WHAT they are voting for
if(msg.value < VOTECOST){
throw;
}
Voted(msg.sender, voteid);
}
0x72575B18AF7e47E2264ab55D90B6960a29673968