Skip to content

Instantly share code, notes, and snippets.

@Abstrct
Created Nov 25, 2017
Embed
What would you like to do?

Bytecode

60606040526000600155341561001457600080fd5b6117d0806100236000396000f3006060604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a341c42146100d5578063133a473e14610138578063368271251461014d57806337a7b7d81461025857806339cb281b1461026d5780635401a2c214610346578063570b59d2146103935780636477b079146103e45780636ab9ae7a1461043157806374727cae1461048257806383084299146104b057806393e84cd9146104fd578063c6d4944414610512578063e6ece49414610527575b600080fd5b34156100e057600080fd5b6100f6600480803590602001909190505061058a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561014357600080fd5b61014b6105c7565b005b341561015857600080fd5b610184600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610713565b60405180806020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018315151515815260200182810382528b8181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156102415780601f1061021657610100808354040283529160200191610241565b820191906000526020600020905b81548152906001019060200180831161022457829003601f168201915b50509a505050505050505050505060405180910390f35b341561026357600080fd5b61026b61076d565b005b341561027857600080fd5b6102a4600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506108b9565b604051808060200187815260200186815260200185815260200184815260200183151515158152602001828103825288818151815260200191508051906020019080838360005b838110156103065780820151818401526020810190506102eb565b50505050905090810190601f1680156103335780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b341561035157600080fd5b61037d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b46565b6040518082815260200191505060405180910390f35b341561039e57600080fd5b6103ca600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b96565b604051808215151515815260200191505060405180910390f35b34156103ef57600080fd5b61041b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e0d565b6040518082815260200191505060405180910390f35b341561043c57600080fd5b610468600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e5d565b604051808215151515815260200191505060405180910390f35b341561048d57600080fd5b6104ae60048080359060200190820180359060200191909192905050610fdf565b005b34156104bb57600080fd5b6104e7600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611354565b6040518082815260200191505060405180910390f35b341561050857600080fd5b6105106113a4565b005b341561051d57600080fd5b6105256114f0565b005b341561053257600080fd5b61054860048080359060200190919050506115e9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff16151561062157600080fd5b61062a33610e5d565b15151561063657600080fd5b61063f33610e0d565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154611f4001036000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050181905550436000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060060181905550565b600060205280600052604060002060009150905080600001908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080160009054906101000a900460ff16905089565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff1615156107c757600080fd5b6107d033610e5d565b1515156107dc57600080fd5b6107e533610b46565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154610fa001036000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550436000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550565b6108c161161c565b60008060008060008060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff16151561092357600080fd5b6000808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000161096d88610b46565b6000808a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154036109b989611354565b6000808b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015403610a058a610e0d565b6000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154036000808c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600701544303610a958c610e5d565b858054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b2a5780601f10610aff57610100808354040283529160200191610b2a565b820191906000526020600020905b815481529060010190602001808311610b0d57829003601f168201915b5050505050955095509550955095509550955091939550919395565b600060016000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201544303029050919050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff161515610bf257600080fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff16151515610c4d57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201816000019080546001816001161561010002031660029004610cf0929190611630565b50600182015481600101556002820154816002015560038201548160030155600482015481600401556005820154816005015560068201548160060155600782015481600701556008820160009054906101000a900460ff168160080160006101000a81548160ff0219169083151502179055509050506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000610db691906116b7565b60018201600090556002820160009055600382016000905560048201600090556005820160009055600682016000905560078201600090556008820160006101000a81549060ff0219169055505060019050919050565b600060026000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600601544303029050919050565b6000806000806000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff161515610ebd57600080fd5b610ec685610b46565b6000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154039250610f1485611354565b6000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154039150610f6285610e0d565b6000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050154039050600083131580610fb8575060008213155b80610fc4575060008113155b15610fd25760019350610fd7565b600093505b505050919050565b60003390506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff1615151561103f57600080fd5b60008383905011151561105157600080fd5b60016000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160006101000a81548160ff02191690831515021790555082826000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000191906110fb9291906116ff565b506113886000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550436000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550611b586000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030181905550436000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004018190555062015f906000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050181905550436000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060060181905550436000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206007018190555033600260006001600081548092919060010191905055815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600060026000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401544303029050919050565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff1615156113fe57600080fd5b61140733610e5d565b15151561141357600080fd5b61141c33611354565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301546107d001036000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030181905550436000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060080160009054906101000a900460ff16151561154a57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000808201600061159991906116b7565b60018201600090556002820160009055600382016000905560048201600090556005820160009055600682016000905560078201600090556008820160006101000a81549060ff02191690555050565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061166957805485556116a6565b828001600101855582156116a657600052602060002091601f016020900482015b828111156116a557825482559160010191906001019061168a565b5b5090506116b3919061177f565b5090565b50805460018160011615610100020316600290046000825580601f106116dd57506116fc565b601f0160209004906000526020600020908101906116fb919061177f565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061174057803560ff191683800117855561176e565b8280016001018555821561176e579182015b8281111561176d578235825591602001919060010190611752565b5b50905061177b919061177f565b5090565b6117a191905b8082111561179d576000816000905550600101611785565b5090565b905600a165627a7a72305820164cd078ae6a70190a270a7844c1966475dd79effcd6d4b574d5bdb3cb05e9b80029

Interface - ABI

[
  {
    "constant": true,
    "inputs": [
      {
        "name": "listPosition",
        "type": "uint256"
      }
    ],
    "name": "getDoroidotchiListElement",
    "outputs": [
      {
        "name": "doroidotchiAddress",
        "type": "address"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [],
    "name": "sleep",
    "outputs": [],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "name": "doroidotchi",
    "outputs": [
      {
        "name": "doroidotchiName",
        "type": "string"
      },
      {
        "name": "fed",
        "type": "int256"
      },
      {
        "name": "fedBlock",
        "type": "uint256"
      },
      {
        "name": "entertained",
        "type": "int256"
      },
      {
        "name": "entertainedBlock",
        "type": "uint256"
      },
      {
        "name": "rested",
        "type": "int256"
      },
      {
        "name": "restedBlock",
        "type": "uint256"
      },
      {
        "name": "blockBorn",
        "type": "uint256"
      },
      {
        "name": "initiated",
        "type": "bool"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [],
    "name": "feed",
    "outputs": [],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "parent",
        "type": "address"
      }
    ],
    "name": "getDoroidotchi",
    "outputs": [
      {
        "name": "doroidotchiName",
        "type": "string"
      },
      {
        "name": "fed",
        "type": "int256"
      },
      {
        "name": "entertained",
        "type": "int256"
      },
      {
        "name": "rested",
        "type": "int256"
      },
      {
        "name": "age",
        "type": "uint256"
      },
      {
        "name": "isDead",
        "type": "bool"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "parent",
        "type": "address"
      }
    ],
    "name": "calcHungerSince",
    "outputs": [
      {
        "name": "amount",
        "type": "int256"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [
      {
        "name": "newParent",
        "type": "address"
      }
    ],
    "name": "transferDoroidotchi",
    "outputs": [
      {
        "name": "isTransfered",
        "type": "bool"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "parent",
        "type": "address"
      }
    ],
    "name": "calcEnergySince",
    "outputs": [
      {
        "name": "amount",
        "type": "int256"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "parent",
        "type": "address"
      }
    ],
    "name": "hasDoroidotchiDied",
    "outputs": [
      {
        "name": "isDead",
        "type": "bool"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [
      {
        "name": "doroidotchiName",
        "type": "string"
      }
    ],
    "name": "createDoroidotchi",
    "outputs": [],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "parent",
        "type": "address"
      }
    ],
    "name": "calcBoredomSince",
    "outputs": [
      {
        "name": "amount",
        "type": "int256"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [],
    "name": "play",
    "outputs": [],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": false,
    "inputs": [],
    "name": "destroyDoroidotchi",
    "outputs": [],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "name": "doroidotchiMap",
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment