diff --git a/bower.json b/bower.json index 2411e3c..ba22ea1 100644 --- a/bower.json +++ b/bower.json @@ -8,8 +8,8 @@ ], "dependencies": { "purescript-prelude": "^3.1.1", - "purescript-web3": "git://github.com/f-o-a-m/purescript-web3#deploying", - "purescript-web3-generator": "git://github.com/f-o-a-m/purescript-web3-generator#deploying", + "purescript-web3": "^0.16.1", + "purescript-web3-generator": "^0.17.0", "purescript-console": "^3.0.0", "purescript-errors": "^3.0.0", "purescript-node-process": "^5.0.0", diff --git a/build/contracts/Migrations.json b/build/contracts/Migrations.json index bd115f8..e43a8a1 100644 --- a/build/contracts/Migrations.json +++ b/build/contracts/Migrations.json @@ -1,6 +1,20 @@ { "contractName": "Migrations", "abi": [ + { + "constant": false, + "inputs": [ + { + "name": "new_address", + "type": "address" + } + ], + "name": "upgrade", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": true, "inputs": [], @@ -29,12 +43,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, { "constant": false, "inputs": [ @@ -50,29 +58,21 @@ "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "new_address", - "type": "address" - } - ], - "name": "upgrade", - "outputs": [], + "inputs": [], "payable": false, "stateMutability": "nonpayable", - "type": "function" + "type": "constructor" } ], - "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a7230582048b83ffb05ac27934d7e08c9118e00202e07e6389df228da108dca25b475b5dc0029", - "deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a7230582048b83ffb05ac27934d7e08c9118e00202e07e6389df228da108dca25b475b5dc0029", + "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820ba9e44cd8346c2ace5f1063ebff4ad48bc65f8cd67e07aa13c0a4ef3b7df08790029", + "deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820ba9e44cd8346c2ace5f1063ebff4ad48bc65f8cd67e07aa13c0a4ef3b7df08790029", "sourceMap": "26:488:0:-;;;178:58;;;;;;;;221:10;213:5;;:18;;;;;;;;;;;;;;;;;;26:488;;;;;;", "deployedSourceMap": "26:488:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;240:103;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;409:19;161:5;;;;;;;;;;;147:19;;:10;:19;;;143:26;;;442:11;409:45;;460:8;:21;;;482:24;;460:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;143:26;347:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;240:103::-;161:5;;;;;;;;;;;147:19;;:10;:19;;;143:26;;;329:9;302:24;:36;;;;143:26;240:103;:::o", "source": "pragma solidity ^0.4.17;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", - "sourcePath": "/Users/kejace/devel/signal-contracts/contracts/Migrations.sol", + "sourcePath": "/Users/martyall/code/foam/foam.contracts.deux/contracts/Migrations.sol", "ast": { "attributes": { - "absolutePath": "/Users/kejace/devel/signal-contracts/contracts/Migrations.sol", + "absolutePath": "/Users/martyall/code/foam/foam.contracts.deux/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ 56 @@ -813,9 +813,9 @@ }, "compiler": { "name": "solc", - "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" + "version": "0.4.18+commit.9cf6e910.Emscripten.clang" }, "networks": {}, "schemaVersion": "1.0.1", - "updatedAt": "2018-03-20T22:37:38.683Z" + "updatedAt": "2018-03-21T01:25:41.307Z" } \ No newline at end of file diff --git a/build/contracts/SimpleStorage.json b/build/contracts/SimpleStorage.json index 8beee8b..4f606ff 100644 --- a/build/contracts/SimpleStorage.json +++ b/build/contracts/SimpleStorage.json @@ -1 +1,497 @@ -{"contractName":"SimpleStorage","abi":[{"constant":true,"inputs":[],"name":"count","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_count","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_count","type":"uint256"}],"name":"CountSet","type":"event"},{"constant":false,"inputs":[{"name":"_count","type":"uint256"}],"name":"setCount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b604051602080610149833981016040528080519060200190919050508060008190555050610107806100426000396000f3006060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14604e578063d14e62b8146074575b600080fd5b3415605857600080fd5b605e6094565b6040518082815260200191505060405180910390f35b3415607e57600080fd5b60926004808035906020019091905050609a565b005b60005481565b806000819055507fa32bc18230dd172221ac5c4821a5f1f1a831f27b1396d244cdd891c58f132435816040518082815260200191505060405180910390a1505600a165627a7a72305820506061b8a7b3f538fb4a222e3f3e93103fe8d7ab33f80fb3fcca2588affc66280029","deployedBytecode":"0x6060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14604e578063d14e62b8146074575b600080fd5b3415605857600080fd5b605e6094565b6040518082815260200191505060405180910390f35b3415607e57600080fd5b60926004808035906020019091905050609a565b005b60005481565b806000819055507fa32bc18230dd172221ac5c4821a5f1f1a831f27b1396d244cdd891c58f132435816040518082815260200191505060405180910390a1505600a165627a7a72305820506061b8a7b3f538fb4a222e3f3e93103fe8d7ab33f80fb3fcca2588affc66280029","sourceMap":"26:265:1:-;;;113:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;174:6;166:5;:14;;;;113:74;26:265;;;;;;","deployedSourceMap":"26:265:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;194:95;;;;;;;;;;;;;;;;;;;;;;;;;;55:17;;;;:::o;194:95::-;250:6;242:5;:14;;;;266:16;275:6;266:16;;;;;;;;;;;;;;;;;;194:95;:::o","source":"pragma solidity ^0.4.15;\n\ncontract SimpleStorage {\n uint public count;\n\n event CountSet(uint _count);\n\n function SimpleStorage(uint _count) public {\n count = _count;\n } \n\n function setCount(uint _count) public {\n count = _count;\n CountSet(_count);\n }\n}\n","sourcePath":"/Users/kejace/devel/signal-contracts/contracts/SimpleStorage.sol","ast":{"attributes":{"absolutePath":"/Users/kejace/devel/signal-contracts/contracts/SimpleStorage.sol","exportedSymbols":{"SimpleStorage":[89]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".15"]},"id":58,"name":"PragmaDirective","src":"0:24:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[89],"name":"SimpleStorage","scope":90},"children":[{"attributes":{"constant":false,"name":"count","scope":89,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":59,"name":"ElementaryTypeName","src":"55:4:1"}],"id":60,"name":"VariableDeclaration","src":"55:17:1"},{"attributes":{"anonymous":false,"name":"CountSet"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_count","scope":64,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":61,"name":"ElementaryTypeName","src":"94:4:1"}],"id":62,"name":"VariableDeclaration","src":"94:11:1"}],"id":63,"name":"ParameterList","src":"93:13:1"}],"id":64,"name":"EventDefinition","src":"79:28:1"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"SimpleStorage","payable":false,"scope":89,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_count","scope":74,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":65,"name":"ElementaryTypeName","src":"136:4:1"}],"id":66,"name":"VariableDeclaration","src":"136:11:1"}],"id":67,"name":"ParameterList","src":"135:13:1"},{"attributes":{"parameters":[null]},"children":[],"id":68,"name":"ParameterList","src":"156:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":60,"type":"uint256","value":"count"},"id":69,"name":"Identifier","src":"166:5:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":66,"type":"uint256","value":"_count"},"id":70,"name":"Identifier","src":"174:6:1"}],"id":71,"name":"Assignment","src":"166:14:1"}],"id":72,"name":"ExpressionStatement","src":"166:14:1"}],"id":73,"name":"Block","src":"156:31:1"}],"id":74,"name":"FunctionDefinition","src":"113:74:1"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"setCount","payable":false,"scope":89,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_count","scope":88,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":75,"name":"ElementaryTypeName","src":"212:4:1"}],"id":76,"name":"VariableDeclaration","src":"212:11:1"}],"id":77,"name":"ParameterList","src":"211:13:1"},{"attributes":{"parameters":[null]},"children":[],"id":78,"name":"ParameterList","src":"232:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":60,"type":"uint256","value":"count"},"id":79,"name":"Identifier","src":"242:5:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":76,"type":"uint256","value":"_count"},"id":80,"name":"Identifier","src":"250:6:1"}],"id":81,"name":"Assignment","src":"242:14:1"}],"id":82,"name":"ExpressionStatement","src":"242:14:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":64,"type":"function (uint256)","value":"CountSet"},"id":83,"name":"Identifier","src":"266:8:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":76,"type":"uint256","value":"_count"},"id":84,"name":"Identifier","src":"275:6:1"}],"id":85,"name":"FunctionCall","src":"266:16:1"}],"id":86,"name":"ExpressionStatement","src":"266:16:1"}],"id":87,"name":"Block","src":"232:57:1"}],"id":88,"name":"FunctionDefinition","src":"194:95:1"}],"id":89,"name":"ContractDefinition","src":"26:265:1"}],"id":90,"name":"SourceUnit","src":"0:292:1"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{"420123":{"address":"0xb5033371fe12eeab13600c6e8336124bd33241d7"}},"schemaVersion":"1.0.1","updatedAt":"2018-03-20T22:37:38.685Z"} \ No newline at end of file +{ + "contractName": "SimpleStorage", + "abi": [ + { + "constant": true, + "inputs": [], + "name": "count", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "_count", + "type": "uint256" + } + ], + "name": "setCount", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "name": "_count", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "_count", + "type": "uint256" + } + ], + "name": "CountSet", + "type": "event" + } + ], + "bytecode": "0x6060604052341561000f57600080fd5b604051602080610149833981016040528080519060200190919050508060008190555050610107806100426000396000f3006060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14604e578063d14e62b8146074575b600080fd5b3415605857600080fd5b605e6094565b6040518082815260200191505060405180910390f35b3415607e57600080fd5b60926004808035906020019091905050609a565b005b60005481565b806000819055507fa32bc18230dd172221ac5c4821a5f1f1a831f27b1396d244cdd891c58f132435816040518082815260200191505060405180910390a1505600a165627a7a72305820b648c68bc68fb31b11c40305c410b178eb7295c16f641511e8a5f6b0a9d65f650029", + "deployedBytecode": "0x6060604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14604e578063d14e62b8146074575b600080fd5b3415605857600080fd5b605e6094565b6040518082815260200191505060405180910390f35b3415607e57600080fd5b60926004808035906020019091905050609a565b005b60005481565b806000819055507fa32bc18230dd172221ac5c4821a5f1f1a831f27b1396d244cdd891c58f132435816040518082815260200191505060405180910390a1505600a165627a7a72305820b648c68bc68fb31b11c40305c410b178eb7295c16f641511e8a5f6b0a9d65f650029", + "sourceMap": "26:265:1:-;;;113:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;174:6;166:5;:14;;;;113:74;26:265;;;;;;", + "deployedSourceMap": "26:265:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;194:95;;;;;;;;;;;;;;;;;;;;;;;;;;55:17;;;;:::o;194:95::-;250:6;242:5;:14;;;;266:16;275:6;266:16;;;;;;;;;;;;;;;;;;194:95;:::o", + "source": "pragma solidity ^0.4.15;\n\ncontract SimpleStorage {\n uint public count;\n\n event CountSet(uint _count);\n\n function SimpleStorage(uint _count) public {\n count = _count;\n } \n\n function setCount(uint _count) public {\n count = _count;\n CountSet(_count);\n }\n}\n", + "sourcePath": "/Users/martyall/code/foam/foam.contracts.deux/contracts/SimpleStorage.sol", + "ast": { + "attributes": { + "absolutePath": "/Users/martyall/code/foam/foam.contracts.deux/contracts/SimpleStorage.sol", + "exportedSymbols": { + "SimpleStorage": [ + 89 + ] + } + }, + "children": [ + { + "attributes": { + "literals": [ + "solidity", + "^", + "0.4", + ".15" + ] + }, + "id": 58, + "name": "PragmaDirective", + "src": "0:24:1" + }, + { + "attributes": { + "baseContracts": [ + null + ], + "contractDependencies": [ + null + ], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "linearizedBaseContracts": [ + 89 + ], + "name": "SimpleStorage", + "scope": 90 + }, + "children": [ + { + "attributes": { + "constant": false, + "name": "count", + "scope": 89, + "stateVariable": true, + "storageLocation": "default", + "type": "uint256", + "value": null, + "visibility": "public" + }, + "children": [ + { + "attributes": { + "name": "uint", + "type": "uint256" + }, + "id": 59, + "name": "ElementaryTypeName", + "src": "55:4:1" + } + ], + "id": 60, + "name": "VariableDeclaration", + "src": "55:17:1" + }, + { + "attributes": { + "anonymous": false, + "name": "CountSet" + }, + "children": [ + { + "children": [ + { + "attributes": { + "constant": false, + "indexed": false, + "name": "_count", + "scope": 64, + "stateVariable": false, + "storageLocation": "default", + "type": "uint256", + "value": null, + "visibility": "internal" + }, + "children": [ + { + "attributes": { + "name": "uint", + "type": "uint256" + }, + "id": 61, + "name": "ElementaryTypeName", + "src": "94:4:1" + } + ], + "id": 62, + "name": "VariableDeclaration", + "src": "94:11:1" + } + ], + "id": 63, + "name": "ParameterList", + "src": "93:13:1" + } + ], + "id": 64, + "name": "EventDefinition", + "src": "79:28:1" + }, + { + "attributes": { + "constant": false, + "implemented": true, + "isConstructor": true, + "modifiers": [ + null + ], + "name": "SimpleStorage", + "payable": false, + "scope": 89, + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + "children": [ + { + "children": [ + { + "attributes": { + "constant": false, + "name": "_count", + "scope": 74, + "stateVariable": false, + "storageLocation": "default", + "type": "uint256", + "value": null, + "visibility": "internal" + }, + "children": [ + { + "attributes": { + "name": "uint", + "type": "uint256" + }, + "id": 65, + "name": "ElementaryTypeName", + "src": "136:4:1" + } + ], + "id": 66, + "name": "VariableDeclaration", + "src": "136:11:1" + } + ], + "id": 67, + "name": "ParameterList", + "src": "135:13:1" + }, + { + "attributes": { + "parameters": [ + null + ] + }, + "children": [], + "id": 68, + "name": "ParameterList", + "src": "156:0:1" + }, + { + "children": [ + { + "children": [ + { + "attributes": { + "argumentTypes": null, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "operator": "=", + "type": "uint256" + }, + "children": [ + { + "attributes": { + "argumentTypes": null, + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 60, + "type": "uint256", + "value": "count" + }, + "id": 69, + "name": "Identifier", + "src": "166:5:1" + }, + { + "attributes": { + "argumentTypes": null, + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 66, + "type": "uint256", + "value": "_count" + }, + "id": 70, + "name": "Identifier", + "src": "174:6:1" + } + ], + "id": 71, + "name": "Assignment", + "src": "166:14:1" + } + ], + "id": 72, + "name": "ExpressionStatement", + "src": "166:14:1" + } + ], + "id": 73, + "name": "Block", + "src": "156:31:1" + } + ], + "id": 74, + "name": "FunctionDefinition", + "src": "113:74:1" + }, + { + "attributes": { + "constant": false, + "implemented": true, + "isConstructor": false, + "modifiers": [ + null + ], + "name": "setCount", + "payable": false, + "scope": 89, + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + "children": [ + { + "children": [ + { + "attributes": { + "constant": false, + "name": "_count", + "scope": 88, + "stateVariable": false, + "storageLocation": "default", + "type": "uint256", + "value": null, + "visibility": "internal" + }, + "children": [ + { + "attributes": { + "name": "uint", + "type": "uint256" + }, + "id": 75, + "name": "ElementaryTypeName", + "src": "212:4:1" + } + ], + "id": 76, + "name": "VariableDeclaration", + "src": "212:11:1" + } + ], + "id": 77, + "name": "ParameterList", + "src": "211:13:1" + }, + { + "attributes": { + "parameters": [ + null + ] + }, + "children": [], + "id": 78, + "name": "ParameterList", + "src": "232:0:1" + }, + { + "children": [ + { + "children": [ + { + "attributes": { + "argumentTypes": null, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "operator": "=", + "type": "uint256" + }, + "children": [ + { + "attributes": { + "argumentTypes": null, + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 60, + "type": "uint256", + "value": "count" + }, + "id": 79, + "name": "Identifier", + "src": "242:5:1" + }, + { + "attributes": { + "argumentTypes": null, + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 76, + "type": "uint256", + "value": "_count" + }, + "id": 80, + "name": "Identifier", + "src": "250:6:1" + } + ], + "id": 81, + "name": "Assignment", + "src": "242:14:1" + } + ], + "id": 82, + "name": "ExpressionStatement", + "src": "242:14:1" + }, + { + "children": [ + { + "attributes": { + "argumentTypes": null, + "isConstant": false, + "isLValue": false, + "isPure": false, + "isStructConstructorCall": false, + "lValueRequested": false, + "names": [ + null + ], + "type": "tuple()", + "type_conversion": false + }, + "children": [ + { + "attributes": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 64, + "type": "function (uint256)", + "value": "CountSet" + }, + "id": 83, + "name": "Identifier", + "src": "266:8:1" + }, + { + "attributes": { + "argumentTypes": null, + "overloadedDeclarations": [ + null + ], + "referencedDeclaration": 76, + "type": "uint256", + "value": "_count" + }, + "id": 84, + "name": "Identifier", + "src": "275:6:1" + } + ], + "id": 85, + "name": "FunctionCall", + "src": "266:16:1" + } + ], + "id": 86, + "name": "ExpressionStatement", + "src": "266:16:1" + } + ], + "id": 87, + "name": "Block", + "src": "232:57:1" + } + ], + "id": 88, + "name": "FunctionDefinition", + "src": "194:95:1" + } + ], + "id": 89, + "name": "ContractDefinition", + "src": "26:265:1" + } + ], + "id": 90, + "name": "SourceUnit", + "src": "0:292:1" + }, + "compiler": { + "name": "solc", + "version": "0.4.18+commit.9cf6e910.Emscripten.clang" + }, + "networks": {}, + "schemaVersion": "1.0.1", + "updatedAt": "2018-03-21T01:25:41.307Z" +} \ No newline at end of file