jcc-solidity-utils
Version:
jcc solidity utils
830 lines • 124 kB
JSON
{
"contractName": "MockAlarmList",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_addr",
"type": "address"
},
{
"name": "_creator",
"type": "address"
},
{
"name": "_type",
"type": "uint256"
},
{
"name": "_begin",
"type": "uint256"
},
{
"name": "_peroid",
"type": "uint256"
}
],
"name": "insert",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addr",
"type": "address"
}
],
"name": "remove",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_idx",
"type": "uint256"
}
],
"name": "get",
"outputs": [
{
"components": [
{
"name": "contractAddr",
"type": "address"
},
{
"name": "creatorAddr",
"type": "address"
},
{
"name": "idx",
"type": "uint256"
},
{
"name": "alarmType",
"type": "uint256"
},
{
"name": "begin",
"type": "uint256"
},
{
"name": "peroid",
"type": "uint256"
}
],
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_addr",
"type": "address"
}
],
"name": "getByAddr",
"outputs": [
{
"components": [
{
"name": "contractAddr",
"type": "address"
},
{
"name": "creatorAddr",
"type": "address"
},
{
"name": "idx",
"type": "uint256"
},
{
"name": "alarmType",
"type": "uint256"
},
{
"name": "begin",
"type": "uint256"
},
{
"name": "peroid",
"type": "uint256"
}
],
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "from",
"type": "uint256"
},
{
"name": "_count",
"type": "uint256"
}
],
"name": "getList",
"outputs": [
{
"components": [
{
"name": "contractAddr",
"type": "address"
},
{
"name": "creatorAddr",
"type": "address"
},
{
"name": "idx",
"type": "uint256"
},
{
"name": "alarmType",
"type": "uint256"
},
{
"name": "begin",
"type": "uint256"
},
{
"name": "peroid",
"type": "uint256"
}
],
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "count",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.4.24+commit.e67f0147\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"count\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"getByAddr\",\"outputs\":[{\"components\":[{\"name\":\"contractAddr\",\"type\":\"address\"},{\"name\":\"creatorAddr\",\"type\":\"address\"},{\"name\":\"idx\",\"type\":\"uint256\"},{\"name\":\"alarmType\",\"type\":\"uint256\"},{\"name\":\"begin\",\"type\":\"uint256\"},{\"name\":\"peroid\",\"type\":\"uint256\"}],\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"remove\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"},{\"name\":\"_creator\",\"type\":\"address\"},{\"name\":\"_type\",\"type\":\"uint256\"},{\"name\":\"_begin\",\"type\":\"uint256\"},{\"name\":\"_peroid\",\"type\":\"uint256\"}],\"name\":\"insert\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_idx\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"components\":[{\"name\":\"contractAddr\",\"type\":\"address\"},{\"name\":\"creatorAddr\",\"type\":\"address\"},{\"name\":\"idx\",\"type\":\"uint256\"},{\"name\":\"alarmType\",\"type\":\"uint256\"},{\"name\":\"begin\",\"type\":\"uint256\"},{\"name\":\"peroid\",\"type\":\"uint256\"}],\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"from\",\"type\":\"uint256\"},{\"name\":\"_count\",\"type\":\"uint256\"}],\"name\":\"getList\",\"outputs\":[{\"components\":[{\"name\":\"contractAddr\",\"type\":\"address\"},{\"name\":\"creatorAddr\",\"type\":\"address\"},{\"name\":\"idx\",\"type\":\"uint256\"},{\"name\":\"alarmType\",\"type\":\"uint256\"},{\"name\":\"begin\",\"type\":\"uint256\"},{\"name\":\"peroid\",\"type\":\"uint256\"}],\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/mock/MockAlarmList.sol\":\"MockAlarmList\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/list/AlarmList.sol\":{\"keccak256\":\"0x2f63a437b679cf16f84d1e92c14432fd29fb4a3a4990d393abb928b7b8641fc8\",\"urls\":[\"bzzr://7b44df42b6b1bca22f8c9e5bb7197e78871a34246089d6aa0a5a31eb8fc95ef0\"]},\"/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x239546071316c89d3bbc9e61b2ccae270a4493bbd2f7c240052f533807d50ab7\",\"urls\":[\"bzzr://267bf48e0a30f7b671aa3c98a6b27ffe7bc64efd6533f49e54188b520baa94c5\"]},\"/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/mock/MockAlarmList.sol\":{\"keccak256\":\"0x25e2c6684d896837cbcfbf19b65c6ad3a2da04039da36383dd86b8d9fff71ee7\",\"urls\":[\"bzzr://c3e9a4dc40107e69046d6afed12d6b391cb9aab13b3d0ebe0e1268e1b320fbc4\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50610b7b806100206000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306661abd811461007c578063259a1a34146100a757806329092d0e146100d45780637c053563146101015780639507d39a14610121578063a9816b0814610141575b600080fd5b34801561008857600080fd5b5061009161016e565b60405161009e9190610b18565b60405180910390f35b3480156100b357600080fd5b506100c76100c2366004610824565b610180565b60405161009e9190610b0a565b3480156100e057600080fd5b506100f46100ef366004610824565b61019f565b60405161009e9190610acc565b34801561010d57600080fd5b506100f461011c36600461084a565b6101b1565b34801561012d57600080fd5b506100c761013c3660046108bf565b6101d1565b34801561014d57600080fd5b5061016161015c3660046108dd565b6101ea565b60405161009e9190610abb565b600061017a6000610205565b90505b90565b610188610734565b61019960008363ffffffff61020c16565b92915050565b6000610199818363ffffffff6102f216565b60006101c781878787878763ffffffff61042a16565b9695505050505050565b6101d9610734565b61019960008363ffffffff61051516565b60606101fe6000848463ffffffff61056a16565b9392505050565b6001015490565b610214610734565b61021e83836106b1565b151561025f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610ada565b60405180910390fd5b600160a060020a038216600090815260208490526040902054600184018054909190811061028957fe5b60009182526020918290206040805160c08101825260069093029091018054600160a060020a03908116845260018201541693830193909352600283015490820152600382015460608201526004820154608082015260059091015460a0820152905092915050565b600080600061030185856106b1565b15156103105760009250610422565b600160a060020a03841660009081526020869052604090205460018087018054929450916103439163ffffffff61071316565b8154811061034d57fe5b9060005260206000209060060201905080856001018381548110151561036f57fe5b600091825260208083208454600690930201805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03948516178255600180870154818401805490931690861617909155600280870154908301556003808701549083015560048087015490830155600595860154959091019490945584549091168252879052604090208390558581015461040f9163ffffffff61071316565b61041c600187018261077d565b50600192505b505092915050565b6000610434610734565b61043e88886106b1565b1561044c576000915061050a565b50506040805160c081018252600160a060020a0380881680835287821660208085019182526001808d018054878901818152606089018d815260808a018d815260a08b018d8152848701865560009586528786208c516006909602018054958c1673ffffffffffffffffffffffffffffffffffffffff199687161781559851898801805491909c169516949094179099559051600287018190559051600387015596516004860155516005909401939093559282528b905293909320555b509695505050505050565b61051d610734565b6001830154821061055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610afa565b6001830180548390811061028957fe5b6060600081818085116105a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610aea565b846040519080825280602002602001820160405280156105e357816020015b6105d0610734565b8152602001906001900390816105c85790505b5091508590505b60018701548110156106a75784831415610603576106a7565b6001870180548290811061061357fe5b60009182526020918290206040805160c08101825260069093029091018054600160a060020a03908116845260018201541693830193909352600283015490820152600382015460608201526004820154608082015260059091015460a0820152825183908590811061068257fe5b6020908102909101015261069d83600163ffffffff61072516565b92506001016105ea565b5095945050505050565b600182015460009015156106c757506000610199565b600160a060020a03821660008181526020859052604090205460018501805490919081106106f157fe5b6000918252602090912060069091020154600160a060020a0316149392505050565b60008282111561071f57fe5b50900390565b6000828201838110156101fe57fe5b60c0604051908101604052806000600160a060020a031681526020016000600160a060020a03168152602001600081526020016000815260200160008152602001600081525090565b8154818355818111156107a9576006028160060283600052602060002091820191016107a991906107ae565b505050565b61017d91905b8082111561080857805473ffffffffffffffffffffffffffffffffffffffff1990811682556001820180549091169055600060028201819055600382018190556004820181905560058201556006016107b4565b5090565b60006101fe8235610b30565b60006101fe823561017d565b60006020828403121561083657600080fd5b6000610842848461080c565b949350505050565b600080600080600060a0868803121561086257600080fd5b600061086e888861080c565b955050602061087f8882890161080c565b945050604061089088828901610818565b93505060606108a188828901610818565b92505060806108b288828901610818565b9150509295509295909350565b6000602082840312156108d157600080fd5b60006108428484610818565b600080604083850312156108f057600080fd5b60006108fc8585610818565b925050602061090d85828601610818565b9150509250929050565b61092081610b30565b82525050565b600061093182610b2c565b80845260208401935061094383610b26565b60005b8281101561097357610959868351610a3c565b61096282610b26565b60c096909601959150600101610946565b5093949350505050565b61092081610b3c565b601081527f616c61726d206d75737420657869737400000000000000000000000000000000602082015260400190565b60208082527f72657475726e206e756d626572206d75737420626967676572207468616e20309082015260400190565b602381527f696e646578206d75737420736d616c6c207468616e2063757272656e7420636f60208201527f756e740000000000000000000000000000000000000000000000000000000000604082015260600190565b805160c0830190610a4d8482610917565b506020820151610a606020850182610917565b506040820151610a736040850182610ab2565b506060820151610a866060850182610ab2565b506080820151610a996080850182610ab2565b5060a0820151610aac60a0850182610ab2565b50505050565b6109208161017d565b602080825281016101fe8184610926565b60208101610199828461097d565b6020808252810161019981610986565b60208082528101610199816109b6565b60208082528101610199816109e6565b60c081016101998284610a3c565b602081016101998284610ab2565b60200190565b5190565b600160a060020a031690565b1515905600a265627a7a72305820af57b7b7871cf6348d2add93e4812b9150afd329e317146a6e836d7af110f4d06c6578706572696d656e74616cf50037",
"deployedBytecode": "0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306661abd811461007c578063259a1a34146100a757806329092d0e146100d45780637c053563146101015780639507d39a14610121578063a9816b0814610141575b600080fd5b34801561008857600080fd5b5061009161016e565b60405161009e9190610b18565b60405180910390f35b3480156100b357600080fd5b506100c76100c2366004610824565b610180565b60405161009e9190610b0a565b3480156100e057600080fd5b506100f46100ef366004610824565b61019f565b60405161009e9190610acc565b34801561010d57600080fd5b506100f461011c36600461084a565b6101b1565b34801561012d57600080fd5b506100c761013c3660046108bf565b6101d1565b34801561014d57600080fd5b5061016161015c3660046108dd565b6101ea565b60405161009e9190610abb565b600061017a6000610205565b90505b90565b610188610734565b61019960008363ffffffff61020c16565b92915050565b6000610199818363ffffffff6102f216565b60006101c781878787878763ffffffff61042a16565b9695505050505050565b6101d9610734565b61019960008363ffffffff61051516565b60606101fe6000848463ffffffff61056a16565b9392505050565b6001015490565b610214610734565b61021e83836106b1565b151561025f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610ada565b60405180910390fd5b600160a060020a038216600090815260208490526040902054600184018054909190811061028957fe5b60009182526020918290206040805160c08101825260069093029091018054600160a060020a03908116845260018201541693830193909352600283015490820152600382015460608201526004820154608082015260059091015460a0820152905092915050565b600080600061030185856106b1565b15156103105760009250610422565b600160a060020a03841660009081526020869052604090205460018087018054929450916103439163ffffffff61071316565b8154811061034d57fe5b9060005260206000209060060201905080856001018381548110151561036f57fe5b600091825260208083208454600690930201805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03948516178255600180870154818401805490931690861617909155600280870154908301556003808701549083015560048087015490830155600595860154959091019490945584549091168252879052604090208390558581015461040f9163ffffffff61071316565b61041c600187018261077d565b50600192505b505092915050565b6000610434610734565b61043e88886106b1565b1561044c576000915061050a565b50506040805160c081018252600160a060020a0380881680835287821660208085019182526001808d018054878901818152606089018d815260808a018d815260a08b018d8152848701865560009586528786208c516006909602018054958c1673ffffffffffffffffffffffffffffffffffffffff199687161781559851898801805491909c169516949094179099559051600287018190559051600387015596516004860155516005909401939093559282528b905293909320555b509695505050505050565b61051d610734565b6001830154821061055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610afa565b6001830180548390811061028957fe5b6060600081818085116105a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025690610aea565b846040519080825280602002602001820160405280156105e357816020015b6105d0610734565b8152602001906001900390816105c85790505b5091508590505b60018701548110156106a75784831415610603576106a7565b6001870180548290811061061357fe5b60009182526020918290206040805160c08101825260069093029091018054600160a060020a03908116845260018201541693830193909352600283015490820152600382015460608201526004820154608082015260059091015460a0820152825183908590811061068257fe5b6020908102909101015261069d83600163ffffffff61072516565b92506001016105ea565b5095945050505050565b600182015460009015156106c757506000610199565b600160a060020a03821660008181526020859052604090205460018501805490919081106106f157fe5b6000918252602090912060069091020154600160a060020a0316149392505050565b60008282111561071f57fe5b50900390565b6000828201838110156101fe57fe5b60c0604051908101604052806000600160a060020a031681526020016000600160a060020a03168152602001600081526020016000815260200160008152602001600081525090565b8154818355818111156107a9576006028160060283600052602060002091820191016107a991906107ae565b505050565b61017d91905b8082111561080857805473ffffffffffffffffffffffffffffffffffffffff1990811682556001820180549091169055600060028201819055600382018190556004820181905560058201556006016107b4565b5090565b60006101fe8235610b30565b60006101fe823561017d565b60006020828403121561083657600080fd5b6000610842848461080c565b949350505050565b600080600080600060a0868803121561086257600080fd5b600061086e888861080c565b955050602061087f8882890161080c565b945050604061089088828901610818565b93505060606108a188828901610818565b92505060806108b288828901610818565b9150509295509295909350565b6000602082840312156108d157600080fd5b60006108428484610818565b600080604083850312156108f057600080fd5b60006108fc8585610818565b925050602061090d85828601610818565b9150509250929050565b61092081610b30565b82525050565b600061093182610b2c565b80845260208401935061094383610b26565b60005b8281101561097357610959868351610a3c565b61096282610b26565b60c096909601959150600101610946565b5093949350505050565b61092081610b3c565b601081527f616c61726d206d75737420657869737400000000000000000000000000000000602082015260400190565b60208082527f72657475726e206e756d626572206d75737420626967676572207468616e20309082015260400190565b602381527f696e646578206d75737420736d616c6c207468616e2063757272656e7420636f60208201527f756e740000000000000000000000000000000000000000000000000000000000604082015260600190565b805160c0830190610a4d8482610917565b506020820151610a606020850182610917565b506040820151610a736040850182610ab2565b506060820151610a866060850182610ab2565b506080820151610a996080850182610ab2565b5060a0820151610aac60a0850182610ab2565b50505050565b6109208161017d565b602080825281016101fe8184610926565b60208101610199828461097d565b6020808252810161019981610986565b60208082528101610199816109b6565b60208082528101610199816109e6565b60c081016101998284610a3c565b602081016101998284610ab2565b60200190565b5190565b600160a060020a031690565b1515905600a265627a7a72305820af57b7b7871cf6348d2add93e4812b9150afd329e317146a6e836d7af110f4d06c6578706572696d656e74616cf50037",
"sourceMap": "136:872:23:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;136:872:23;;;;;;;",
"deployedSourceMap": "136:872:23:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;928:78;;8:9:-1;5:2;;;30:1;27;20:12;5:2;928:78:23;;;;;;;;;;;;;;;;;;;;651:114;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;651:114:23;;;;;;;;;;;;;;;;;453:90;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;453:90:23;;;;;;;;;;;;;;;;;235:214;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;235:214:23;;;;;;;;;547:100;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;547:100:23;;;;;;;;;769:155;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;769:155:23;;;;;;;;;;;;;;;;;928:78;966:7;988:13;:5;:11;:13::i;:::-;981:20;;928:78;;:::o;651:114::-;706:17;;:::i;:::-;738:22;:5;754;738:22;:15;:22;:::i;:::-;731:29;651:114;-1:-1:-1;;651:114:23:o;453:90::-;500:4;519:19;500:4;532:5;519:19;:12;:19;:::i;235:214::-;372:4;391:53;372:4;404:5;411:8;421:5;428:6;436:7;391:53;:12;:53;:::i;:::-;384:60;235:214;-1:-1:-1;;;;;;235:214:23:o;547:100::-;595:17;;:::i;:::-;627:15;:5;637:4;627:15;:9;:15;:::i;769:155::-;849:19;892:27;:5;906:4;912:6;892:27;:13;:27;:::i;:::-;885:34;769:155;-1:-1:-1;;;769:155:23:o;1850:104:12:-;1933:9;;:16;;1850:104::o;2181:214::-;2273:17;;:::i;:::-;2308:18;2314:4;2320:5;2308;:18::i;:::-;2300:47;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2370:19:12;;:12;:19;;;;;;;;;;;2360:9;;;:30;;:9;;2370:19;2360:30;;;;;;;;;;;;;;;2353:37;;;;;;;;2360:30;;;;;;;2353:37;;-1:-1:-1;;;;;2353:37:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2181:214:12;;;;:::o;1430:416::-;1510:4;1582:15;1625:25;1529:18;1535:4;1541:5;1529;:18::i;:::-;1528:19;1524:52;;;1564:5;1557:12;;;;1524:52;-1:-1:-1;;;;;1600:19:12;;:12;:19;;;;;;;;;;;1653:9;;;;1663:16;;1600:19;;-1:-1:-1;1653:9:12;1663:23;;;:20;:23;:::i;:::-;1653:34;;;;;;;;;;;;;;;;;;1625:62;;1714:9;1693:4;:9;;1703:7;1693:18;;;;;;;;;;;;;;;;;;:30;;:18;;;;;:30;;-1:-1:-1;;1693:30:12;;;-1:-1:-1;;;;;1693:30:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1742:22;;;;;1729:36;;;;;;;;:46;;;1800:9;;;:16;:23;;;:20;:23;:::i;:::-;1781:42;:9;;;:42;;:::i;:::-;;1837:4;1830:11;;1430:416;;;;;;;:::o;832:520::-;998:4;1067:16;;:::i;:::-;1014:18;1020:4;1026:5;1014;:18::i;:::-;1010:51;;;1049:5;1042:12;;;;1010:51;-1:-1:-1;;1092:182:12;;;;;;;;-1:-1:-1;;;;;1092:182:12;;;;;;;;;;;;;;;;1175:9;;;;:16;;1092:182;;;;;;;;;;;;;;;;;;;;;;;;23:18:-1;;;45:23;;-1:-1;1280:17:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;1280:17:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1303:19;;;;;;;;;;:27;832:520;;;;;;;;;;:::o;1958:219::-;2044:17;;:::i;:::-;2087:9;;;:16;2079:24;;2071:72;;;;;;;;;;;;;;2156:9;;;:16;;2166:5;;2156:16;;;;;2500:485;2609:19;2643:12;2609:19;2643:12;2673:10;;;2665:55;;;;;;;;;;;;;;2783:6;2759:31;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;2726:64;;2814:4;2802:16;;2797:167;2824:9;;;:16;2820:20;;2797:167;;;2867:6;2859:4;:14;2855:44;;;2885:5;;2855:44;2919:9;;;:12;;2929:1;;2919:12;;;;;;;;;;;;;;;2907:24;;;;;;;;2919:12;;;;;;;2907:24;;-1:-1:-1;;;;;2907:24:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:9;;:3;;2911:4;;2907:9;;;;;;;;;;;;;;:24;2946:11;:4;2955:1;2946:11;:8;:11;:::i;:::-;2939:18;-1:-1:-1;2842:3:12;;2797:167;;;-1:-1:-1;2977:3:12;2500:485;-1:-1:-1;;;;;2500:485:12:o;544:213::-;650:9;;;:16;632:4;;650:21;646:39;;;-1:-1:-1;680:5:12;673:12;;646:39;-1:-1:-1;;;;;699:52:12;;709:12;:19;;;;;;;;;;;699:9;;;:30;;:9;;709:19;699:30;;;;;;;;;;;;;;;;;;;:43;-1:-1:-1;;;;;699:43:12;:52;;544:213;-1:-1:-1;;;544:213:12:o;1093:116:20:-;1153:7;1175:8;;;;1168:16;;;;-1:-1:-1;1197:7:20;;;1093:116::o;1319:134::-;1379:7;1406;;;1426;;;;1419:15;;;136:872:23;;;;;;;;;;;-1:-1:-1;;;;;136:872:23;;;;;;-1:-1:-1;;;;;136:872:23;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;136:872:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:118:-1;;72:46;110:6;97:20;72:46;;130:118;;197:46;235:6;222:20;197:46;;255:241;;359:2;347:9;338:7;334:23;330:32;327:2;;;375:1;372;365:12;327:2;410:1;427:53;472:7;452:9;427:53;;;417:63;321:175;-1:-1;;;;321:175;503:743;;;;;;675:3;663:9;654:7;650:23;646:33;643:2;;;692:1;689;682:12;643:2;727:1;744:53;789:7;769:9;744:53;;;734:63;;706:97;834:2;852:53;897:7;888:6;877:9;873:22;852:53;;;842:63;;813:98;942:2;960:53;1005:7;996:6;985:9;981:22;960:53;;;950:63;;921:98;1050:2;1068:53;1113:7;1104:6;1093:9;1089:22;1068:53;;;1058:63;;1029:98;1158:3;1177:53;1222:7;1213:6;1202:9;1198:22;1177:53;;;1167:63;;1137:99;637:609;;;;;;;;;1253:241;;1357:2;1345:9;1336:7;1332:23;1328:32;1325:2;;;1373:1;1370;1363:12;1325:2;1408:1;1425:53;1470:7;1450:9;1425:53;;1501:366;;;1622:2;1610:9;1601:7;1597:23;1593:32;1590:2;;;1638:1;1635;1628:12;1590:2;1673:1;1690:53;1735:7;1715:9;1690:53;;;1680:63;;1652:97;1780:2;1798:53;1843:7;1834:6;1823:9;1819:22;1798:53;;;1788:63;;1759:98;1584:283;;;;;;1874:110;1947:31;1972:5;1947:31;;;1942:3;1935:44;1929:55;;;2056:741;;2233:75;2302:5;2233:75;;;2326:6;2321:3;2314:19;2350:4;2345:3;2341:14;2334:21;;2395:77;2466:5;2395:77;;;2493:1;2478:297;2503:6;2500:1;2497:13;2478:297;;;2543:99;2638:3;2629:6;2623:13;2543:99;;;2659:81;2733:6;2659:81;;;2763:4;2754:14;;;;;2649:91;-1:-1;2525:1;2518:9;2478:297;;;-1:-1;2788:3;;2212:585;-1:-1;;;;2212:585;2805:101;2872:28;2894:5;2872:28;;2914:296;3069:2;3057:15;;3106:66;3101:2;3092:12;;3085:88;3201:2;3192:12;;3050:160;3219:296;3374:2;3362:15;;;3411:66;3397:12;;;3390:88;3506:2;3497:12;;3355:160;3524:397;3679:2;3667:15;;3716:66;3711:2;3702:12;;3695:88;3817:66;3812:2;3803:12;;3796:88;3912:2;3903:12;;3660:261;3988:1186;4198:22;;4121:4;4112:14;;;4232:61;4116:3;4198:22;4232:61;;;4141:164;4388:4;4381:5;4377:16;4371:23;4406:62;4462:4;4457:3;4453:14;4440:11;4406:62;;;4315:165;4555:4;4548:5;4544:16;4538:23;4573:62;4629:4;4624:3;4620:14;4607:11;4573:62;;;4490:157;4728:4;4721:5;4717:16;4711:23;4746:62;4802:4;4797:3;4793:14;4780:11;4746:62;;;4657:163;4897:4;4890:5;4886:16;4880:23;4915:62;4971:4;4966:3;4962:14;4949:11;4915:62;;;4830:159;5067:4;5060:5;5056:16;5050:23;5085:62;5141:4;5136:3;5132:14;5119:11;5085:62;;;4999:160;4094:1080;;;;6429:110;6502:31;6527:5;6502:31;;6546:425;6746:2;6760:47;;;6731:18;;6821:140;6731:18;6947:6;6821:140;;6978:181;7080:2;7065:18;;7094:55;7069:9;7122:6;7094:55;;7166:387;7347:2;7361:47;;;7332:18;;7422:121;7332:18;7422:121;;7560:387;7741:2;7755:47;;;7726:18;;7816:121;7726:18;7816:121;;7954:387;8135:2;8149:47;;;8120:18;;8210:121;8120:18;8210:121;;8348:294;8506:3;8491:19;;8521:111;8495:9;8605:6;8521:111;;8649:193;8757:2;8742:18;;8771:61;8746:9;8805:6;8771:61;;8851:142;8981:4;8969:17;;8950:43;9002:128;9113:12;;9097:33;9289:128;-1:-1;;;;;9358:54;;9341:76;9424:92;9497:13;9490:21;;9473:43",
"source": "pragma solidity >=0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"../list/AlarmList.sol\";\n\n// 定义一个调用AddressList的合约\ncontract MockAlarmList {\n using AlarmList for AlarmList.alarmMap;\n\n AlarmList.alarmMap tasks;\n\n function insert(\n address _addr,\n address _creator,\n uint256 _type,\n uint256 _begin,\n uint256 _peroid\n ) public returns (bool) {\n return tasks.insert(_addr, _creator, _type, _begin, _peroid);\n }\n\n function remove(address _addr) public returns (bool) {\n return tasks.remove(_addr);\n }\n\n function get(uint256 _idx) public view returns (AlarmList.element) {\n return tasks.get(_idx);\n }\n\n function getByAddr(address _addr) public view returns (AlarmList.element) {\n return tasks.getByAddr(_addr);\n }\n\n function getList(uint256 from, uint256 _count)\n public\n view\n returns (AlarmList.element[] memory)\n {\n return tasks.getList(from, _count);\n }\n\n function count() public view returns (uint256) {\n return tasks.count();\n }\n}\n",
"sourcePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/mock/MockAlarmList.sol",
"ast": {
"absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/mock/MockAlarmList.sol",
"exportedSymbols": {
"MockAlarmList": [
5880
]
},
"id": 5881,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5781,
"literals": [
"solidity",
">=",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:25:23"
},
{
"id": 5782,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "26:33:23"
},
{
"absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/list/AlarmList.sol",
"file": "../list/AlarmList.sol",
"id": 5783,
"nodeType": "ImportDirective",
"scope": 5881,
"sourceUnit": 1885,
"src": "61:31:23",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 5880,
"linearizedBaseContracts": [
5880
],
"name": "MockAlarmList",
"nodeType": "ContractDefinition",
"nodes": [
{
"id": 5786,
"libraryName": {
"contractScope": null,
"id": 5784,
"name": "AlarmList",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1884,
"src": "169:9:23",
"typeDescriptions": {
"typeIdentifier": "t_contract$_AlarmList_$1884",
"typeString": "library AlarmList"
}
},
"nodeType": "UsingForDirective",
"src": "163:39:23",
"typeName": {
"contractScope": null,
"id": 5785,
"name": "AlarmList.alarmMap",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1590,
"src": "183:18:23",
"typeDescriptions": {
"typeIdentifier": "t_struct$_alarmMap_$1590_storage_ptr",
"typeString": "struct AlarmList.alarmMap"
}
}
},
{
"constant": false,
"id": 5788,
"name": "tasks",
"nodeType": "VariableDeclaration",
"scope": 5880,
"src": "206:24:23",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_alarmMap_$1590_storage",
"typeString": "struct AlarmList.alarmMap"
},
"typeName": {
"contractScope": null,
"id": 5787,
"name": "AlarmList.alarmMap",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1590,
"src": "206:18:23",
"typeDescriptions": {
"typeIdentifier": "t_struct$_alarmMap_$1590_storage_ptr",
"typeString": "struct AlarmList.alarmMap"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 5812,
"nodeType": "Block",
"src": "378:71:23",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5805,
"name": "_addr",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5790,
"src": "404:5:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 5806,
"name": "_creator",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5792,
"src": "411:8:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 5807,
"name": "_type",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5794,
"src": "421:5:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 5808,
"name": "_begin",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5796,
"src": "428:6:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 5809,
"name": "_peroid",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5798,
"src": "436:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 5803,
"name": "tasks",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5788,
"src": "391:5:23",
"typeDescriptions": {
"typeIdentifier": "t_struct$_alarmMap_$1590_storage",
"typeString": "struct AlarmList.alarmMap storage ref"
}
},
"id": 5804,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "insert",
"nodeType": "MemberAccess",
"referencedDeclaration": 1678,
"src": "391:12:23",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_struct$_alarmMap_$1590_storage_ptr_$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_alarmMap_$1590_storage_ptr_$",
"typeString": "function (struct AlarmList.alarmMap storage pointer,address,address,uint256,uint256,uint256) returns (bool)"
}
},
"id": 5810,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "391:53:23",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 5802,
"id": 5811,
"nodeType": "Return",
"src": "384:60:23"
}
]
},
"documentation": null,
"id": 5813,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "insert",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5799,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5790,
"name": "_addr",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "256:13:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5789,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "256:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5792,
"name": "_creator",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "275:16:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5791,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "275:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5794,
"name": "_type",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "297:13:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5793,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "297:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5796,
"name": "_begin",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "316:14:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5795,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "316:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5798,
"name": "_peroid",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "336:15:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5797,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "336:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "250:105:23"
},
"payable": false,
"returnParameters": {
"id": 5802,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5801,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5813,
"src": "372:4:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5800,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "372:4:23",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "371:6:23"
},
"scope": 5880,
"src": "235:214:23",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5825,
"nodeType": "Block",
"src": "506:37:23",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5822,
"name": "_addr",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5815,
"src": "532:5:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"id": 5820,
"name": "tasks",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5788,
"src": "519:5:23",
"typeDescriptions": {
"typeIdentifier": "t_struct$_alarmMap_$1590_storage",
"typeString": "struct AlarmList.alarmMap storage ref"
}
},
"id": 5821,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "remove",
"nodeType": "MemberAccess",
"referencedDeclaration": 1748,
"src": "519:12:23",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_struct$_alarmMap_$1590_storage_ptr_$_t_address_$returns$_t_bool_$bound_to$_t_struct$_alarmMap_$1590_storage_ptr_$",
"typeString": "function (struct AlarmList.alarmMap storage pointer,address) returns (bool)"
}
},
"id": 5823,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "519:19:23",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 5819,
"id": 5824,
"nodeType": "Return",
"src": "512:26:23"
}
]
},
"documentation": null,
"id": 5826,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "remove",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5816,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5815,
"name": "_addr",
"nodeType": "VariableDeclaration",
"scope": 5826,
"src": "469:13:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5814,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "469:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "468:15:23"
},
"payable": false,
"returnParameters": {
"id": 5819,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5818,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5826,
"src": "500:4:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5817,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "500:4:23",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "499:6:23"
},
"scope": 5880,
"src": "453:90:23",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5838,
"nodeType": "Block",
"src": "614:33:23",
"statements": [
{
"expression": {
"argumentTyp