From 06495696fd1462d9d167663d372c51dab408f27a Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:19:29 +0100 Subject: [PATCH 1/7] Delete AlethenaShares.json --- .../build/contracts/AlethenaShares.json | 14869 ---------------- 1 file changed, 14869 deletions(-) delete mode 100644 AlethenaShares/build/contracts/AlethenaShares.json diff --git a/AlethenaShares/build/contracts/AlethenaShares.json b/AlethenaShares/build/contracts/AlethenaShares.json deleted file mode 100644 index 241ca8fe..00000000 --- a/AlethenaShares/build/contracts/AlethenaShares.json +++ /dev/null @@ -1,14869 +0,0 @@ -{ - "contractName": "AlethenaShares", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getClaimant", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - }, - { - "name": "_nonce", - "type": "bytes32" - } - ], - "name": "declareLost", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_claimerAddress", - "type": "address" - } - ], - "name": "getMsgHash", - "outputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ - { - "name": "", - "type": "uint8" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "deleteClaim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "preClaims", - "outputs": [ - { - "name": "msghash", - "type": "bytes32" - }, - { - "name": "timestamp", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "collateralRate", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_hashedpackage", - "type": "bytes32" - } - ], - "name": "prepareClaim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "clearClaim", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_claimerAddress", - "type": "address" - } - ], - "name": "getPreClaimTimeStamp", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "claimPeriod", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_collateralRateInWei", - "type": "uint256" - }, - { - "name": "_claimPeriodInDays", - "type": "uint256" - } - ], - "name": "setClaimParameters", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "resolveClaim", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getCollateral", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isPaused", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "claims", - "outputs": [ - { - "name": "claimant", - "type": "address" - }, - { - "name": "collateral", - "type": "uint256" - }, - { - "name": "timestamp", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getTimeStamp", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "preClaimPeriod", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "master", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "termsAndConditions", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "shareholder", - "type": "address" - }, - { - "indexed": false, - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "name": "message", - "type": "string" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "name": "message", - "type": "string" - } - ], - "name": "Unmint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "paused", - "type": "bool" - }, - { - "indexed": false, - "name": "message", - "type": "string" - }, - { - "indexed": false, - "name": "newAddress", - "type": "address" - }, - { - "indexed": false, - "name": "fromBlock", - "type": "uint256" - } - ], - "name": "Pause", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "approver", - "type": "address" - }, - { - "indexed": false, - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "_balance", - "type": "uint256" - } - ], - "name": "ClaimMade", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_claimer", - "type": "address" - } - ], - "name": "ClaimPrepared", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimCleared", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimDeleted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimResolved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_collateralRate", - "type": "uint256" - }, - { - "indexed": false, - "name": "_claimPeriodInDays", - "type": "uint256" - } - ], - "name": "ClaimParametersChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalShares", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newTotalShares", - "type": "uint256" - } - ], - "name": "setTotalShares", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "shareholder", - "type": "address" - }, - { - "name": "_amount", - "type": "uint256" - }, - { - "name": "_message", - "type": "string" - } - ], - "name": "mint", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_amount", - "type": "uint256" - }, - { - "name": "_message", - "type": "string" - } - ], - "name": "unmint", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_pause", - "type": "bool" - }, - { - "name": "_message", - "type": "string" - }, - { - "name": "_newAddress", - "type": "address" - }, - { - "name": "_fromBlock", - "type": "uint256" - } - ], - "name": "pause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_spender", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - }, - { - "name": "_spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_spender", - "type": "address" - }, - { - "name": "_addedValue", - "type": "uint256" - } - ], - "name": "increaseApproval", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_spender", - "type": "address" - }, - { - "name": "_subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseApproval", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x608060405260018054600160a060020a0319908116730e0a1a8daa228def4a4a8613b3e40aaf435d319e17909155670de0b6b3a764000060025562278d00600355620151806004556103e8600955600a805460ff191690556000805490911633179055611aa2806100716000396000f3006080604052600436106101d75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101dc578063095ea7b31461026657806318160ddd1461029e5780631e3b9de5146102c557806323b872dd146103025780632434ec3e1461032c57806324b50e4314610345578063313ce5671461036657806332a7ae95146103915780633a98ef39146103b2578063493c160f146103c757806358a6be1c146104015780635b1c162514610416578063661884631461042e5780636b03ed5f1461045257806370a0823114610467578063715018a61461048857806375a88bcf1461049d5780637dc2cd98146104be5780638da5cb5b146104d357806391dc11fe146104e857806394d645a81461050357806395d89b4114610524578063980591f4146105395780639b56d6c9146105aa578063a56d96bb146105cb578063a77384c114610629578063a9059cbb14610641578063b187bd2614610665578063c6788bdd1461067a578063d3fc9864146106c3578063d73dd6231461072c578063dd62ed3e14610750578063eb470ebf14610777578063ee18d99e14610798578063ee97f7f3146107ad578063f2fde38b146107c2578063f678462f146107e3575b600080fd5b3480156101e857600080fd5b506101f16107f8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022b578181015183820152602001610213565b50505050905090810190601f1680156102585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027257600080fd5b5061028a600160a060020a036004351660243561082f565b604080519115158252519081900360200190f35b3480156102aa57600080fd5b506102b36108b2565b60408051918252519081900360200190f35b3480156102d157600080fd5b506102e6600160a060020a03600435166108b8565b60408051600160a060020a039092168252519081900360200190f35b34801561030e57600080fd5b5061028a600160a060020a03600435811690602435166044356108d6565b610343600160a060020a0360043516602435610973565b005b34801561035157600080fd5b506102b3600160a060020a0360043516610aa1565b34801561037257600080fd5b5061037b610abc565b6040805160ff9092168252519081900360200190f35b34801561039d57600080fd5b50610343600160a060020a0360043516610ac1565b3480156103be57600080fd5b506102b3610c54565b3480156103d357600080fd5b506103e8600160a060020a0360043516610c5a565b6040805192835260208301919091528051918290030190f35b34801561040d57600080fd5b506102b3610c73565b34801561042257600080fd5b50610343600435610c79565b34801561043a57600080fd5b5061028a600160a060020a0360043516602435610cd4565b34801561045e57600080fd5b506102b3610de0565b34801561047357600080fd5b506102b3600160a060020a0360043516610ea1565b34801561049457600080fd5b50610343610ebc565b3480156104a957600080fd5b506102b3600160a060020a0360043516610f28565b3480156104ca57600080fd5b506102b3610f46565b3480156104df57600080fd5b506102e6610f4c565b3480156104f457600080fd5b50610343600435602435610f5b565b34801561050f57600080fd5b506102b3600160a060020a0360043516610fde565b34801561053057600080fd5b506101f16111a3565b34801561054557600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610343958335151595369560449491939091019190819084018382808284375094975050508335600160a060020a03169450505060209091013590506111da565b3480156105b657600080fd5b506102b3600160a060020a03600435166112c9565b3480156105d757600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526103439583359536956044949193909101919081908401838280828437509497506112e79650505050505050565b34801561063557600080fd5b50610343600435611421565b34801561064d57600080fd5b5061028a600160a060020a0360043516602435611451565b34801561067157600080fd5b5061028a611470565b34801561068657600080fd5b5061069b600160a060020a0360043516611479565b60408051600160a060020a039094168452602084019290925282820152519081900360600190f35b3480156106cf57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610343948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506114a49650505050505050565b34801561073857600080fd5b5061028a600160a060020a03600435166024356115df565b34801561075c57600080fd5b506102b3600160a060020a0360043581169060243516611697565b34801561078357600080fd5b506102b3600160a060020a03600435166116c2565b3480156107a457600080fd5b506102b36116e0565b3480156107b957600080fd5b506102e66116e6565b3480156107ce57600080fd5b50610343600160a060020a03600435166116f5565b3480156107ef57600080fd5b506101f1611718565b60408051808201909152600f81527f416c657468656e61204571756974790000000000000000000000000000000000602082015281565b600a5460009060ff161561084257600080fd5b336000818152600b60209081526040808320600160a060020a03881680855290835292819020869055805193845290830191909152818101849052517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15060015b92915050565b60085490565b600160a060020a039081166000908152600560205260409020541690565b600160a060020a0383166000908152600b6020908152604080832033845290915281205482111561090657600080fd5b600160a060020a0384166000908152600b6020908152604080832033845290915290205461093a908363ffffffff61174f16565b600160a060020a0385166000908152600b60209081526040808320338452909152902055610969848484611761565b5060019392505050565b600061097e83610ea1565b90506000811161098d57600080fd5b6002546109a190829063ffffffff61186516565b3410156109ad57600080fd5b600160a060020a038316600090815260056020526040902060010154156109d357600080fd5b6109dd838361188e565b15156109e857600080fd5b604080516060810182523380825234602080840191825242848601908152600160a060020a038981166000818152600585528881209751885473ffffffffffffffffffffffffffffffffffffffff191693169290921787559351600180880191909155915160029096019590955583855260068252858520858155019390935583518581529351919390927f1982ca8958fc8a8176cb52be509260f4bc5af7ce04e1533711793f1c56dd535992918290030190a3505050565b600160a060020a031660009081526006602052604090205490565b600081565b610ac9611a34565b600054600160a060020a03163314610ae057600080fd5b50600160a060020a03808216600090815260056020908152604091829020825160608101845281549094168452600181015491840182905260020154918301919091521515610b9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f20636c61696d20666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038083166000908152600560209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19168155600181018490556002018390558451918501519051919093169280156108fc0292909190818181858888f19350505050158015610c08573d6000803e3d6000fd5b5080516020808301516040805191825251600160a060020a03938416938616927fbb036e629a9f4c0897ee5d48440dfdb36f7e772117723a2ed603a6514244c2d5928290030190a35050565b60095490565b6006602052600090815260409020805460019091015482565b60025481565b604080518082018252828152426020808301918252336000818152600690925284822093518455915160019093019290925591517f4c767b7b6b4e5b19edbb3ce0f841c467aa366beda334c58254bb264371819a119190a250565b600a54600090819060ff1615610ce957600080fd5b50336000908152600b60209081526040808320600160a060020a038716845290915290205480831115610d3f57336000908152600b60209081526040808320600160a060020a0388168452909152812055610d74565b610d4f818463ffffffff61174f16565b336000908152600b60209081526040808320600160a060020a03891684529091529020555b336000818152600b60209081526040808320600160a060020a038916808552908352928190205481519485529184019290925282820152517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15060019392505050565b336000908152600560205260408120600101548015610e985733600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19168155600181018390556002018290555183156108fc0291849190818181858888f19350505050158015610e59573d6000803e3d6000fd5b5060408051828152905133917f203627483d943880619f4b7e0cca21dbefd6204b4d85b124eb99540e17ba86dd919081900360200190a2809150610e9d565b600091505b5090565b600160a060020a031660009081526007602052604090205490565b600054600160a060020a03163314610ed357600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600160a060020a031660009081526006602052604090206001015490565b60035481565b600054600160a060020a031681565b60008054600160a060020a03163314610f7357600080fd5b5062015180810260008311610f8757600080fd5b601e8211610f9457600080fd5b60028390556003819055604080518481526020810183905281517fd60264524e7672c0a7793b11f98c5c2852a01efd67c9928705e51e0fdfbc4819929181900390910190a1505050565b6000610fe8611a34565b50600160a060020a03808316600090815260056020908152604080832081516060810183528154909516855260018101549285018390526002015490840152151561109457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f20636c61696d20666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b8151600160a060020a031633146110aa57600080fd5b600354604083015142910111156110c057600080fd5b508051600160a060020a038085166000908152600560209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19168155600181018490556002018390559085015190519284169281156108fc0292818181858888f19350505050158015611135573d6000803e3d6000fd5b50611149848261114487610ea1565b611761565b80600160a060020a031684600160a060020a03167f52a5c2b28bc6eb9712d0ced43463103b486b13ccc9cda499fd3b2d7b6a74a8ee84602001516040518082815260200191505060405180910390a3506020015192915050565b60408051808201909152600481527f414c455100000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a031633146111f157600080fd5b600a805460ff191685151590811790915560408051918252600160a060020a03841690820152606081018290526080602080830182815286519284019290925285517f016e2c313f98497b8330a5114aff9a72424bdf37c47e7cba23fc54dd480bc6dd938893889388938893929160a08401919087019080838360005b8381101561128657818101518382015260200161126e565b50505050905090810190601f1680156112b35780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b600160a060020a031660009081526005602052604090206001015490565b600054600160a060020a031633146112fe57600080fd5b6000821161130b57600080fd5b60005461132090600160a060020a0316610ea1565b82111561132c57600080fd5b60008054600160a060020a0316815260076020526040902054611355908363ffffffff61174f16565b60008054600160a060020a0316815260076020908152604080832093909355600880548690039055825185815280820184815285519482019490945284517f6fa26c05a43c14146728c90c874027d865c1b4454522dfbadb3b5b3d3329714d9487948794919260608501928601918190849084905b838110156113e25781810151838201526020016113ca565b50505050905090810190601f16801561140f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600054600160a060020a0316331461143857600080fd5b6114406108b2565b81101561144c57600080fd5b600955565b600061145b610de0565b50611467338484611761565b50600192915050565b600a5460ff1681565b600560205260009081526040902080546001820154600290920154600160a060020a03909116919083565b600054600160a060020a031633146114bb57600080fd5b600082116114c857600080fd5b6009546008546114de908463ffffffff6119aa16565b11156114e957600080fd5b600160a060020a038316600090815260076020526040902054611512908363ffffffff6119aa16565b600160a060020a03841660008181526007602090815260408083209490945560088054870190558351868152808201858152865195820195909552855193947f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a94889488946060850192908601918190849084905b8381101561159f578181015183820152602001611587565b50505050905090810190601f1680156115cc5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2505050565b600a5460009060ff16156115f257600080fd5b336000908152600b60209081526040808320600160a060020a0387168452909152902054611626908363ffffffff6119aa16565b336000818152600b60209081526040808320600160a060020a038916808552908352928190208590558051938452908301919091528181019290925290517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a150600192915050565b600160a060020a039182166000908152600b6020908152604080832093909416825291909152205490565b600160a060020a031660009081526005602052604090206002015490565b60045481565b600154600160a060020a031681565b600154600160a060020a0316331461170c57600080fd5b611715816119b7565b50565b60408051808201909152601381527f7368617265732e616c657468656e612e636f6d00000000000000000000000000602082015281565b60008282111561175b57fe5b50900390565b600a5460ff161561177157600080fd5b600160a060020a038216151561178657600080fd5b600160a060020a0383166000908152600760205260409020548111156117ab57600080fd5b600160a060020a0383166000908152600760205260409020546117d4908263ffffffff61174f16565b600160a060020a038085166000908152600760205260408082209390935590841681522054611809908263ffffffff6119aa16565b600160a060020a0380841660008181526007602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000821515611876575060006108ac565b5081810281838281151561188657fe5b04146108ac57fe5b6000611898611a5f565b5033600090815260066020908152604091829020825180840190935280548084526001909101549183019190915215156118d157600080fd5b600454602082015142910111156118e757600080fd5b426004546002028260200151011015151561190157600080fd5b6040805160208082018690526c0100000000000000000000000033810283850152600160a060020a03881602605483015282516048818403018152606890920192839052815191929182918401908083835b602083106119725780518252601f199092019160209182019101611953565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912093519093149695505050505050565b818101828110156108ac57fe5b600160a060020a03811615156119cc57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060604051908101604052806000600160a060020a0316815260200160008152602001600081525090565b6040805180820190915260008082526020820152905600a165627a7a723058200755682776aa5c9e423840c43aaaf941593c1c66b7cd184e95e6cf518b58d75d0029", - "deployedBytecode": "0x6080604052600436106101d75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101dc578063095ea7b31461026657806318160ddd1461029e5780631e3b9de5146102c557806323b872dd146103025780632434ec3e1461032c57806324b50e4314610345578063313ce5671461036657806332a7ae95146103915780633a98ef39146103b2578063493c160f146103c757806358a6be1c146104015780635b1c162514610416578063661884631461042e5780636b03ed5f1461045257806370a0823114610467578063715018a61461048857806375a88bcf1461049d5780637dc2cd98146104be5780638da5cb5b146104d357806391dc11fe146104e857806394d645a81461050357806395d89b4114610524578063980591f4146105395780639b56d6c9146105aa578063a56d96bb146105cb578063a77384c114610629578063a9059cbb14610641578063b187bd2614610665578063c6788bdd1461067a578063d3fc9864146106c3578063d73dd6231461072c578063dd62ed3e14610750578063eb470ebf14610777578063ee18d99e14610798578063ee97f7f3146107ad578063f2fde38b146107c2578063f678462f146107e3575b600080fd5b3480156101e857600080fd5b506101f16107f8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022b578181015183820152602001610213565b50505050905090810190601f1680156102585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027257600080fd5b5061028a600160a060020a036004351660243561082f565b604080519115158252519081900360200190f35b3480156102aa57600080fd5b506102b36108b2565b60408051918252519081900360200190f35b3480156102d157600080fd5b506102e6600160a060020a03600435166108b8565b60408051600160a060020a039092168252519081900360200190f35b34801561030e57600080fd5b5061028a600160a060020a03600435811690602435166044356108d6565b610343600160a060020a0360043516602435610973565b005b34801561035157600080fd5b506102b3600160a060020a0360043516610aa1565b34801561037257600080fd5b5061037b610abc565b6040805160ff9092168252519081900360200190f35b34801561039d57600080fd5b50610343600160a060020a0360043516610ac1565b3480156103be57600080fd5b506102b3610c54565b3480156103d357600080fd5b506103e8600160a060020a0360043516610c5a565b6040805192835260208301919091528051918290030190f35b34801561040d57600080fd5b506102b3610c73565b34801561042257600080fd5b50610343600435610c79565b34801561043a57600080fd5b5061028a600160a060020a0360043516602435610cd4565b34801561045e57600080fd5b506102b3610de0565b34801561047357600080fd5b506102b3600160a060020a0360043516610ea1565b34801561049457600080fd5b50610343610ebc565b3480156104a957600080fd5b506102b3600160a060020a0360043516610f28565b3480156104ca57600080fd5b506102b3610f46565b3480156104df57600080fd5b506102e6610f4c565b3480156104f457600080fd5b50610343600435602435610f5b565b34801561050f57600080fd5b506102b3600160a060020a0360043516610fde565b34801561053057600080fd5b506101f16111a3565b34801561054557600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610343958335151595369560449491939091019190819084018382808284375094975050508335600160a060020a03169450505060209091013590506111da565b3480156105b657600080fd5b506102b3600160a060020a03600435166112c9565b3480156105d757600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526103439583359536956044949193909101919081908401838280828437509497506112e79650505050505050565b34801561063557600080fd5b50610343600435611421565b34801561064d57600080fd5b5061028a600160a060020a0360043516602435611451565b34801561067157600080fd5b5061028a611470565b34801561068657600080fd5b5061069b600160a060020a0360043516611479565b60408051600160a060020a039094168452602084019290925282820152519081900360600190f35b3480156106cf57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610343948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506114a49650505050505050565b34801561073857600080fd5b5061028a600160a060020a03600435166024356115df565b34801561075c57600080fd5b506102b3600160a060020a0360043581169060243516611697565b34801561078357600080fd5b506102b3600160a060020a03600435166116c2565b3480156107a457600080fd5b506102b36116e0565b3480156107b957600080fd5b506102e66116e6565b3480156107ce57600080fd5b50610343600160a060020a03600435166116f5565b3480156107ef57600080fd5b506101f1611718565b60408051808201909152600f81527f416c657468656e61204571756974790000000000000000000000000000000000602082015281565b600a5460009060ff161561084257600080fd5b336000818152600b60209081526040808320600160a060020a03881680855290835292819020869055805193845290830191909152818101849052517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15060015b92915050565b60085490565b600160a060020a039081166000908152600560205260409020541690565b600160a060020a0383166000908152600b6020908152604080832033845290915281205482111561090657600080fd5b600160a060020a0384166000908152600b6020908152604080832033845290915290205461093a908363ffffffff61174f16565b600160a060020a0385166000908152600b60209081526040808320338452909152902055610969848484611761565b5060019392505050565b600061097e83610ea1565b90506000811161098d57600080fd5b6002546109a190829063ffffffff61186516565b3410156109ad57600080fd5b600160a060020a038316600090815260056020526040902060010154156109d357600080fd5b6109dd838361188e565b15156109e857600080fd5b604080516060810182523380825234602080840191825242848601908152600160a060020a038981166000818152600585528881209751885473ffffffffffffffffffffffffffffffffffffffff191693169290921787559351600180880191909155915160029096019590955583855260068252858520858155019390935583518581529351919390927f1982ca8958fc8a8176cb52be509260f4bc5af7ce04e1533711793f1c56dd535992918290030190a3505050565b600160a060020a031660009081526006602052604090205490565b600081565b610ac9611a34565b600054600160a060020a03163314610ae057600080fd5b50600160a060020a03808216600090815260056020908152604091829020825160608101845281549094168452600181015491840182905260020154918301919091521515610b9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f20636c61696d20666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038083166000908152600560209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19168155600181018490556002018390558451918501519051919093169280156108fc0292909190818181858888f19350505050158015610c08573d6000803e3d6000fd5b5080516020808301516040805191825251600160a060020a03938416938616927fbb036e629a9f4c0897ee5d48440dfdb36f7e772117723a2ed603a6514244c2d5928290030190a35050565b60095490565b6006602052600090815260409020805460019091015482565b60025481565b604080518082018252828152426020808301918252336000818152600690925284822093518455915160019093019290925591517f4c767b7b6b4e5b19edbb3ce0f841c467aa366beda334c58254bb264371819a119190a250565b600a54600090819060ff1615610ce957600080fd5b50336000908152600b60209081526040808320600160a060020a038716845290915290205480831115610d3f57336000908152600b60209081526040808320600160a060020a0388168452909152812055610d74565b610d4f818463ffffffff61174f16565b336000908152600b60209081526040808320600160a060020a03891684529091529020555b336000818152600b60209081526040808320600160a060020a038916808552908352928190205481519485529184019290925282820152517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15060019392505050565b336000908152600560205260408120600101548015610e985733600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19168155600181018390556002018290555183156108fc0291849190818181858888f19350505050158015610e59573d6000803e3d6000fd5b5060408051828152905133917f203627483d943880619f4b7e0cca21dbefd6204b4d85b124eb99540e17ba86dd919081900360200190a2809150610e9d565b600091505b5090565b600160a060020a031660009081526007602052604090205490565b600054600160a060020a03163314610ed357600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600160a060020a031660009081526006602052604090206001015490565b60035481565b600054600160a060020a031681565b60008054600160a060020a03163314610f7357600080fd5b5062015180810260008311610f8757600080fd5b601e8211610f9457600080fd5b60028390556003819055604080518481526020810183905281517fd60264524e7672c0a7793b11f98c5c2852a01efd67c9928705e51e0fdfbc4819929181900390910190a1505050565b6000610fe8611a34565b50600160a060020a03808316600090815260056020908152604080832081516060810183528154909516855260018101549285018390526002015490840152151561109457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f20636c61696d20666f756e64000000000000000000000000000000000000604482015290519081900360640190fd5b8151600160a060020a031633146110aa57600080fd5b600354604083015142910111156110c057600080fd5b508051600160a060020a038085166000908152600560209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19168155600181018490556002018390559085015190519284169281156108fc0292818181858888f19350505050158015611135573d6000803e3d6000fd5b50611149848261114487610ea1565b611761565b80600160a060020a031684600160a060020a03167f52a5c2b28bc6eb9712d0ced43463103b486b13ccc9cda499fd3b2d7b6a74a8ee84602001516040518082815260200191505060405180910390a3506020015192915050565b60408051808201909152600481527f414c455100000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a031633146111f157600080fd5b600a805460ff191685151590811790915560408051918252600160a060020a03841690820152606081018290526080602080830182815286519284019290925285517f016e2c313f98497b8330a5114aff9a72424bdf37c47e7cba23fc54dd480bc6dd938893889388938893929160a08401919087019080838360005b8381101561128657818101518382015260200161126e565b50505050905090810190601f1680156112b35780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b600160a060020a031660009081526005602052604090206001015490565b600054600160a060020a031633146112fe57600080fd5b6000821161130b57600080fd5b60005461132090600160a060020a0316610ea1565b82111561132c57600080fd5b60008054600160a060020a0316815260076020526040902054611355908363ffffffff61174f16565b60008054600160a060020a0316815260076020908152604080832093909355600880548690039055825185815280820184815285519482019490945284517f6fa26c05a43c14146728c90c874027d865c1b4454522dfbadb3b5b3d3329714d9487948794919260608501928601918190849084905b838110156113e25781810151838201526020016113ca565b50505050905090810190601f16801561140f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600054600160a060020a0316331461143857600080fd5b6114406108b2565b81101561144c57600080fd5b600955565b600061145b610de0565b50611467338484611761565b50600192915050565b600a5460ff1681565b600560205260009081526040902080546001820154600290920154600160a060020a03909116919083565b600054600160a060020a031633146114bb57600080fd5b600082116114c857600080fd5b6009546008546114de908463ffffffff6119aa16565b11156114e957600080fd5b600160a060020a038316600090815260076020526040902054611512908363ffffffff6119aa16565b600160a060020a03841660008181526007602090815260408083209490945560088054870190558351868152808201858152865195820195909552855193947f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a94889488946060850192908601918190849084905b8381101561159f578181015183820152602001611587565b50505050905090810190601f1680156115cc5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2505050565b600a5460009060ff16156115f257600080fd5b336000908152600b60209081526040808320600160a060020a0387168452909152902054611626908363ffffffff6119aa16565b336000818152600b60209081526040808320600160a060020a038916808552908352928190208590558051938452908301919091528181019290925290517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a150600192915050565b600160a060020a039182166000908152600b6020908152604080832093909416825291909152205490565b600160a060020a031660009081526005602052604090206002015490565b60045481565b600154600160a060020a031681565b600154600160a060020a0316331461170c57600080fd5b611715816119b7565b50565b60408051808201909152601381527f7368617265732e616c657468656e612e636f6d00000000000000000000000000602082015281565b60008282111561175b57fe5b50900390565b600a5460ff161561177157600080fd5b600160a060020a038216151561178657600080fd5b600160a060020a0383166000908152600760205260409020548111156117ab57600080fd5b600160a060020a0383166000908152600760205260409020546117d4908263ffffffff61174f16565b600160a060020a038085166000908152600760205260408082209390935590841681522054611809908263ffffffff6119aa16565b600160a060020a0380841660008181526007602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000821515611876575060006108ac565b5081810281838281151561188657fe5b04146108ac57fe5b6000611898611a5f565b5033600090815260066020908152604091829020825180840190935280548084526001909101549183019190915215156118d157600080fd5b600454602082015142910111156118e757600080fd5b426004546002028260200151011015151561190157600080fd5b6040805160208082018690526c0100000000000000000000000033810283850152600160a060020a03881602605483015282516048818403018152606890920192839052815191929182918401908083835b602083106119725780518252601f199092019160209182019101611953565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912093519093149695505050505050565b818101828110156108ac57fe5b600160a060020a03811615156119cc57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060604051908101604052806000600160a060020a0316815260200160008152602001600081525090565b6040805180820190915260008082526020820152905600a165627a7a723058200755682776aa5c9e423840c43aaaf941593c1c66b7cd184e95e6cf518b58d75d0029", - "sourceMap": "1892:8510:0:-;;;320:66:5;;;-1:-1:-1;;;;;;320:66:5;;;344:42;320:66;;;;1936:7:1;1904:39;;1979:11;1950:40;;2044:8;2012:40;;2467:4:0;2444:27;;4711:28;;;-1:-1:-1;;4711:28:0;;;320:66:5;714:18;;;;;722:10;714:18;;;1892:8510:0;;;;;;", - "deployedSourceMap": "1892:8510:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1943:47;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1943:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1943:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7951:230;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7951:230:0;-1:-1:-1;;;;;7951:230:0;;;;;;;;;;;;;;;;;;;;;;;;;2719:89;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2719:89:0;;;;;;;;;;;;;;;;;;;;6264:125:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6264:125:1;-1:-1:-1;;;;;6264:125:1;;;;;;;;;-1:-1:-1;;;;;6264:125:1;;;;;;;;;;;;;;7037:294:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7037:294:0;-1:-1:-1;;;;;7037:294:0;;;;;;;;;;;;5672:586:1;;-1:-1:-1;;;;;5672:586:1;;;;;;;;;6813:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6813:132:1;-1:-1:-1;;;;;6813:132:1;;;;;2040:34:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2040:34:0;;;;;;;;;;;;;;;;;;;;;;;8425:340:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8425:340:1;-1:-1:-1;;;;;8425:340:1;;;;;2989:89:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2989:89:0;;;;2199:45:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2199:45:1;-1:-1:-1;;;;;2199:45:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;1904:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1904:39:1;;;;4990:231;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4990:231:1;;;;;9924:475:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9924:475:0;-1:-1:-1;;;;;9924:475:0;;;;;;;7079:362:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7079:362:1;;;;6582:105:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6582:105:0;-1:-1:-1;;;;;6582:105:0;;;;;990:121:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;990:121:5;;;;6663:144:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6663:144:1;-1:-1:-1;;;;;6663:144:1;;;;;1950:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1950:40:1;;;;294:20:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;294:20:5;;;;2326:450:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2326:450:1;;;;;;;7616:602;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7616:602:1;-1:-1:-1;;;;;7616:602:1;;;;;1996:38:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1996:38:0;;;;5030:202;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;5030:202:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5030:202:0;;-1:-1:-1;;;5030:202:0;;-1:-1:-1;;;;;5030:202:0;;-1:-1:-1;;;5030:202:0;;;;;;-1:-1:-1;5030:202:0;;6395:129:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6395:129:1;-1:-1:-1;;;;;6395:129:1;;;;;4373:295:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4373:295:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4373:295:0;;-1:-1:-1;4373:295:0;;-1:-1:-1;;;;;;;4373:295:0;3084:166;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3084:166:0;;;;;5859:170;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;5859:170:0;-1:-1:-1;;;;;5859:170:0;;;;;;;4711:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4711:28:0;;;;2075:39:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2075:39:1;-1:-1:-1;;;;;2075:39:1;;;;;;;;;-1:-1:-1;;;;;2075:39:1;;;;;;;;;;;;;;;;;;;;;;;;;3387:351:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3387:351:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3387:351:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3387:351:0;;-1:-1:-1;3387:351:0;;-1:-1:-1;;;;;;;3387:351:0;9158:307;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9158:307:0;-1:-1:-1;;;;;9158:307:0;;;;;;;8572:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8572:132:0;-1:-1:-1;;;;;8572:132:0;;;;;;;;;;6530:127:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6530:127:1;-1:-1:-1;;;;;6530:127:1;;;;;2012:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2012:40:1;;;;320:66:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;320:66:5;;;;1268:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1268:139:5;-1:-1:-1;;;;;1268:139:5;;;;;2240:65:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2240:65:0;;;;1943:47;;;;;;;;;;;;;;;;;;;:::o;7951:230::-;8043:8;;8018:4;;8043:8;;8042:9;8034:18;;;;;;8070:10;8062:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;8062:29:0;;;;;;;;;;;;:38;;;8115;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8170:4:0;7951:230;;;;;:::o;2719:89::-;2789:12;;2719:89;:::o;6264:125:1:-;-1:-1:-1;;;;;6353:20:1;;;6328:7;6353:20;;;:6;:20;;;;;:29;;;6264:125::o;7037:294:0:-;-1:-1:-1;;;;;7153:14:0;;7119:4;7153:14;;;:7;:14;;;;;;;;7168:10;7153:26;;;;;;;;7143:36;;;7135:45;;;;;;-1:-1:-1;;;;;7219:14:0;;;;;;:7;:14;;;;;;;;7234:10;7219:26;;;;;;;;:38;;7250:6;7219:38;:30;:38;:::i;:::-;-1:-1:-1;;;;;7190:14:0;;;;;;:7;:14;;;;;;;;7205:10;7190:26;;;;;;;:67;7267:36;7198:5;7291:3;7296:6;7267:16;:36::i;:::-;-1:-1:-1;7320:4:0;7037:294;;;;;:::o;5672:586:1:-;5755:15;5773:23;5783:12;5773:9;:23::i;:::-;5755:41;-1:-1:-1;5824:1:1;5814:11;;5806:20;;;;;;5869:14;;5857:27;;:7;;:27;:11;:27;:::i;:::-;5844:9;:40;;5836:49;;;;;;-1:-1:-1;;;;;5903:20:1;;;;;;:6;:20;;;;;:31;;;:36;5895:45;;;;;;5958:35;5972:12;5986:6;5958:13;:35::i;:::-;5950:44;;;;;;;;6028:126;;;;;;;;6058:10;6028:126;;;6094:9;6028:126;;;;;;;6128:15;6028:126;;;;;;-1:-1:-1;;;;;6005:20:1;;;-1:-1:-1;6005:20:1;;;:6;:20;;;;;:149;;;;-1:-1:-1;;6005:149:1;;;;;;;;;;;-1:-1:-1;6005:149:1;;;;;;;;;;;;;;;;;6171:21;;;:9;:21;;;;;6164:28;;;;;;;;6207:44;;;;;;;6058:10;;6005:20;;6207:44;;;;;;;;;5672:586;;;:::o;6813:132::-;-1:-1:-1;;;;;6904:26:1;6879:7;6904:26;;;:9;:26;;;;;:34;;6813:132::o;2040:34:0:-;2073:1;2040:34;:::o;8425:340:1:-;8496:18;;:::i;:::-;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;-1:-1:-1;;;;;;8517:20:1;;;;;;;:6;:20;;;;;;;;;8496:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8555:21;;8547:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8612:20:1;;;;;;;:6;:20;;;;;;;;8605:27;;-1:-1:-1;;8605:27:1;;;;;;;;;;;;;;8642:14;;8666:16;;;;8642:41;;:23;;;;;:41;;;;;8666:16;;8642:41;;8612:20;8642:41;8666:16;8642:23;:41;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;8725:14:1;;8741:16;;;;;8698:60;;;;;;;-1:-1:-1;;;;;8698:60:1;;;;;;;;;;;;;;;8425:340;;:::o;2989:89:0:-;3059:12;;2989:89;:::o;2199:45:1:-;;;;;;;;;;;;;;;;;;;:::o;1904:39::-;;;;:::o;4990:231::-;5076:98;;;;;;;;;;;5148:15;5076:98;;;;;;;5062:10;-1:-1:-1;5052:21:1;;;:9;:21;;;;;;:122;;;;;;;;;;;;;;5189:25;;;;-1:-1:-1;5189:25:1;4990:231;:::o;9924:475:0:-;10035:8;;10010:4;;;;10035:8;;10034:9;10026:18;;;;;;-1:-1:-1;10081:10:0;10073:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;10073:29:0;;;;;;;;;;10116:27;;;10112:184;;;10167:10;10191:1;10159:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;10159:29:0;;;;;;;;;:33;10112:184;;;10255:30;:8;10268:16;10255:30;:12;:30;:::i;:::-;10231:10;10223:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;10223:29:0;;;;;;;;;:62;10112:184;10319:10;10341:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;10341:29:0;;;;;;;;;;;;;10310:61;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10388:4:0;;9924:475;-1:-1:-1;;;9924:475:0:o;7079:362:1:-;7163:10;7117:7;7156:18;;;:6;:18;;;;;:29;;;7199:15;;7195:240;;7243:10;7236:18;;;;:6;:18;;;;;;7229:25;;-1:-1:-1;;7229:25:1;;;;;;;;;;;;;;7268:31;;;;;;7288:10;;7268:31;;7236:18;7268:31;7288:10;7243;7268:31;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;7318:36:1;;;;;;;;7331:10;;7318:36;;;;;;;;;;7375:10;7368:17;;;;7195:240;7423:1;7416:8;;7195:240;7079:362;;:::o;6582:105:0:-;-1:-1:-1;;;;;6664:16:0;6638:7;6664:16;;;:8;:16;;;;;;;6582:105::o;990:121:5:-;874:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;1070:5;;;1051:25;;-1:-1:-1;;;;;1070:5:5;;;;1051:25;;;1102:1;1086:18;;-1:-1:-1;;1086:18:5;;;990:121::o;6663:144:1:-;-1:-1:-1;;;;;6764:26:1;6739:7;6764:26;;;:9;:26;;;;;:36;;;;6663:144::o;1950:40::-;;;;:::o;294:20:5:-;;;-1:-1:-1;;;;;294:20:5;;:::o;2326:450:1:-;2441:28;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;-1:-1:-1;2472:27:1;;;2540:1;2517:24;;2509:33;;;;;;2581:2;2560:23;;2552:32;;;;;;2622:14;:37;;;2669:11;:34;;;2718:51;;;;;;;;;;;;;;;;;;;;;;;;;2326:450;;;:::o;7616:602::-;7676:7;7694:18;;:::i;:::-;-1:-1:-1;;;;;;7715:20:1;;;7918:16;7715:20;;;:6;:20;;;;;;;;7694:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7753:21;;7745:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7811:14;;-1:-1:-1;;;;;7811:28:1;7829:10;7811:28;7803:37;;;;;;7876:11;;7858:15;;;;7891;7858:29;;:48;;7850:57;;;;;;-1:-1:-1;7937:14:1;;-1:-1:-1;;;;;7968:20:1;;;7937:14;7968:20;;;:6;:20;;;;;;;;7961:27;;-1:-1:-1;;7961:27:1;;;;;;;;;;;;;;8016:16;;;;7998:35;;:17;;;;:35;;;;;;7937:14;7998:35;8016:16;7998:17;:35;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7998:35:1;8043:65;8060:12;8074:8;8084:23;8094:12;8084:9;:23::i;:::-;8043:16;:65::i;:::-;8151:8;-1:-1:-1;;;;;8123:55:1;8137:12;-1:-1:-1;;;;;8123:55:1;;8161:5;:16;;;8123:55;;;;;;;;;;;;;;;;;;-1:-1:-1;8195:16:1;;;;7616:602;-1:-1:-1;;7616:602:1:o;1996:38:0:-;;;;;;;;;;;;;;;;;;;:::o;5030:202::-;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;5145:8:0;:17;;-1:-1:-1;;5145:17:0;;;;;;;;;;5177:48;;;;;;-1:-1:-1;;;;;5177:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5145:17;;5177:48;;;;;;;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5177:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5030:202;;;;:::o;6395:129:1:-;-1:-1:-1;;;;;6486:20:1;6461:7;6486:20;;;:6;:20;;;;;:31;;;;6395:129::o;4373:295:0:-;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;4470:1:0;4460:11;;4452:20;;;;;;4511:5;;4501:16;;-1:-1:-1;;;;;4511:5:0;4501:9;:16::i;:::-;4490:27;;;4482:36;;;;;;4546:15;4555:5;;-1:-1:-1;;;;;4555:5:0;4546:15;;:8;:15;;;;;;:28;;4566:7;4546:28;:19;:28;:::i;:::-;4528:15;4537:5;;-1:-1:-1;;;;;4537:5:0;4528:15;;:8;:15;;;;;;;;:46;;;;4599:12;;;:22;;;4584:37;;4636:25;;;;;;;;;;;;;;;;;;;;;;;;4614:7;;4652:8;;4636:25;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4636:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4373:295;;:::o;3084:166::-;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;3189:13:0;:11;:13::i;:::-;3170:32;;;3162:41;;;;;;3213:12;:30;3084:166::o;5859:170::-;5922:4;5938:12;:10;:12::i;:::-;;5960:41;5977:10;5989:3;5994:6;5960:16;:41::i;:::-;-1:-1:-1;6018:4:0;5859:170;;;;:::o;4711:28::-;;;;;;:::o;2075:39:1:-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2075:39:1;;;;;;:::o;3387:351:0:-;874:5:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;3503:1:0;3493:11;;3485:20;;;;;;3552:12;;3523;;:25;;3540:7;3523:25;:16;:25;:::i;:::-;:41;;3515:50;;;;;;-1:-1:-1;;;;;3599:21:0;;;;;;:8;:21;;;;;;:34;;3625:7;3599:34;:25;:34;:::i;:::-;-1:-1:-1;;;;;3575:21:0;;;;;;:8;:21;;;;;;;;:58;;;;3658:12;;;:22;;3643:37;;3695:36;;;;;;;;;;;;;;;;;;;;;;3575:21;;3695:36;;3673:7;;3722:8;;3695:36;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3695:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3387:351;;;:::o;9158:307::-;9264:8;;9239:4;;9264:8;;9263:9;9255:18;;;;;;9323:10;9315:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;9315:29:0;;;;;;;;;;:46;;9349:11;9315:46;:33;:46;:::i;:::-;9291:10;9283:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;9283:29:0;;;;;;;;;;;;:78;;;9376:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9454:4:0;9158:307;;;;:::o;8572:132::-;-1:-1:-1;;;;;8672:15:0;;;8646:7;8672:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;8572:132::o;6530:127:1:-;-1:-1:-1;;;;;6620:20:1;6595:7;6620:20;;;:6;:20;;;;;:30;;;;6530:127::o;2012:40::-;;;;:::o;320:66:5:-;;;-1:-1:-1;;;;;320:66:5;;:::o;1268:139::-;1354:6;;-1:-1:-1;;;;;1354:6:5;1340:10;:20;1332:29;;;;;;1371;1390:9;1371:18;:29::i;:::-;1268:139;:::o;2240:65:0:-;;;;;;;;;;;;;;;;;;;:::o;1106:120:6:-;1164:7;1190:6;;;;1183:14;;;;-1:-1:-1;1214:5:6;;;1106:120::o;6035:343:0:-;6133:8;;;;6132:9;6124:18;;;;;;-1:-1:-1;;;;;6160:17:0;;;;6152:26;;;;;;-1:-1:-1;;;;;6206:15:0;;;;;;:8;:15;;;;;;6196:25;;;6188:34;;;;;;-1:-1:-1;;;;;6250:15:0;;;;;;:8;:15;;;;;;:27;;6270:6;6250:27;:19;:27;:::i;:::-;-1:-1:-1;;;;;6232:15:0;;;;;;;:8;:15;;;;;;:45;;;;6303:13;;;;;;;:25;;6321:6;6303:25;:17;:25;:::i;:::-;-1:-1:-1;;;;;6287:13:0;;;;;;;:8;:13;;;;;;;;;:41;;;;6343:28;;;;;;;6287:13;;6343:28;;;;;;;;;;;;;6035:343;;;:::o;205:413:6:-;263:9;505:6;;501:45;;;-1:-1:-1;534:1:6;527:8;;501:45;-1:-1:-1;560:5:6;;;564:1;560;:5;582;;;;;;;;:10;575:18;;;5227:439:1;5310:4;5325:24;;:::i;:::-;-1:-1:-1;5362:10:1;5352:21;;;;:9;:21;;;;;;;;;5325:48;;;;;;;;;;;;;;;;;;;;;;;;;5391:21;;5383:30;;;;;;5452:14;;5431:18;;;;5470:15;5431:35;;:54;;5423:63;;;;;;5545:15;5527:14;;5525:1;:16;5504:8;:18;;;:37;:56;;5496:65;;;;;;;;5608:50;;;;;;;;;;;5633:10;5608:50;;;;;;-1:-1:-1;;;;;5608:50:1;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;5608:50:1;;;;;;;;5598:61;;5608:50;;;;;5598:61;;;;5608:50;5598:61;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;;;;365:33;;5598:61:1;;;;;;;;;;5578:16;;:81;;;;5227:439;-1:-1:-1;;;;;;5227:439:1:o;1290:137:6:-;1373:5;;;1395:6;;;;1388:14;;;1544:185:5;-1:-1:-1;;;;;1618:23:5;;;;1610:32;;;;;;1678:5;;;1657:38;;-1:-1:-1;;;;;1657:38:5;;;;1678:5;;;1657:38;;;1705:5;:17;;-1:-1:-1;;1705:17:5;-1:-1:-1;;;;;1705:17:5;;;;;;;;;;1544:185::o;1892:8510:0:-;;;;;;;;;;;-1:-1:-1;;;;;1892:8510:0;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;1892:8510:0;;;;;;;;:::o", - "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20Basic.sol\";\nimport \"./SafeMath.sol\";\nimport \"./ERC20.sol\";\nimport \"./Claimable.sol\";\n\n\n/**\n * @title Alethena Shares\n * @author Benjamin Rickenbacher, benjamin@alethena.com\n * @author Luzius Meisser, luzius@meissereconomics.com\n * @dev These tokens are based on the ERC20 standard and the open-zeppelin library.\n *\n * These tokens are uncertified alethena shares (Wertrechte according to the Swiss code of obligations),\n * with this smart contract serving as onwership registry (Wertrechtebuch), but not as shareholder\n * registry, which is kept separate and run by the company. This is equivalent to the traditional system\n * of having physical share certificates kept at home by the shareholders and a shareholder registry run by\n * the company. Just like with physical certificates, the owners of the tokens are the owners of the shares.\n * However, in order to exercise their rights (for example receive a dividend), shareholders must register\n * with the company. For example, in case the company pays out a dividend to a previous shareholder because\n * the current shareholder did not register, the company cannot be held liable for paying the dividend to\n * the \"wrong\" shareholder. In relation to the company, only the registered shareholders count as such.\n * Registration requires setting up an account with ledgy.com providing your name and address and proving\n * ownership over your addresses.\n * @notice The main addition is a functionality that allows the user to claim that the key for a certain address is lost.\n * @notice In order to prevent malicious attempts, a collateral needs to be posted.\n * @notice The contract owner can delete claims in case of disputes.\n *\n * https://github.com/ethereum/EIPs/issues/20\n * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol\n */\ncontract AlethenaShares is ERC20, Claimable {\n\n string public constant name = \"Alethena Equity\";\n string public constant symbol = \"ALEQ\";\n uint8 public constant decimals = 0; // legally, shares are not divisible\n\n using SafeMath for uint256;\n\n /** URL where the source code as well as the terms and conditions can be found. */\n string public constant termsAndConditions = \"shares.alethena.com\";\n\n mapping(address => uint256) balances;\n uint256 totalSupply_; // total number of tokenized shares, sum of all balances\n uint256 totalShares_ = 1000; // total number of outstanding shares, maybe not all tokenized\n\n event Mint(address indexed shareholder, uint256 amount, string message);\n event Unmint(uint256 amount, string message);\n\n /** @dev Total number of tokens in existence */\n function totalSupply() public view returns (uint256) {\n return totalSupply_;\n }\n \n /** @dev Total number of shares in existence, not necessarily all represented by a token. \n * @dev This could be useful to calculate the total market cap.\n */\n function totalShares() public view returns (uint256) {\n return totalShares_;\n }\n\n function setTotalShares(uint256 _newTotalShares) public onlyOwner() {\n require(_newTotalShares >= totalSupply());\n totalShares_ = _newTotalShares;\n }\n\n /** Increases the number of the tokenized shares. If the shares are newly issued, the share total also needs to be increased. */\n function mint(address shareholder, uint256 _amount, string _message) public onlyOwner() {\n require(_amount > 0);\n require(totalSupply_.add(_amount) <= totalShares_);\n balances[shareholder] = balances[shareholder].add(_amount);\n totalSupply_ = totalSupply_ + _amount;\n emit Mint(shareholder, _amount, _message);\n }\n\n/** Decrease the number of the tokenized shares. There are two use-cases for this function:\n * 1) a capital decrease with a destruction of the shares, in which case the law requires that the\n * destroyed shares are currently owned by the company.\n * 2) a shareholder wants to take shares offline. This can only happen with the agreement of the \n * the company. To do so, the shares must be transferred to the company first, the company call\n * this function and then assigning the untokenized shares back to the shareholder in whatever\n * way the new form (e.g. printed certificate) of the shares requires.\n */\n function unmint(uint256 _amount, string _message) public onlyOwner() {\n require(_amount > 0);\n require(_amount <= balanceOf(owner));\n balances[owner] = balances[owner].sub(_amount);\n totalSupply_ = totalSupply_ - _amount;\n emit Unmint(_amount, _message);\n }\n\n /** This contract is pausible. */\n bool public isPaused = false;\n\n /** @dev Function to set pause.\n * This could for example be used in case of a fork of the network, in which case all\n * \"wrong\" forked contracts should be paused in their respective fork. Deciding which\n * fork is the \"right\" one is up to the owner of the contract.\n */\n function pause(bool _pause, string _message, address _newAddress, uint256 _fromBlock) public onlyOwner() {\n isPaused = _pause;\n emit Pause(_pause, _message, _newAddress, _fromBlock);\n }\n\n event Pause(bool paused, string message, address newAddress, uint256 fromBlock);\n\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n/** \nThe next section contains standard ERC20 routines.\nMain change: Transfer functions have an additional post function which resolves claims if applicable.\n */\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n /**\n * @dev Transfer token for a specified address\n * @param _to The address to transfer to.\n * @param _value The amount to be transferred.\n */\n function transfer(address _to, uint256 _value) public returns (bool) {\n clearClaim();\n internalTransfer(msg.sender, _to, _value);\n return true;\n }\n\n function internalTransfer(address _from, address _to, uint256 _value) internal {\n require(!isPaused);\n require(_to != address(0));\n require(_value <= balances[_from]);\n balances[_from] = balances[_from].sub(_value);\n balances[_to] = balances[_to].add(_value);\n emit Transfer(_from, _to, _value);\n }\n\n /**\n * @dev Gets the balance of the specified address.\n * @param _owner The address to query the the balance of.\n * @return An uint256 representing the amount owned by the passed address.\n */\n function balanceOf(address _owner) public view returns (uint256) {\n return balances[_owner];\n }\n\n mapping (address => mapping (address => uint256)) internal allowed;\n\n /**\n * @dev Transfer tokens from one address to another\n * @param _from address The address which you want to send tokens from\n * @param _to address The address which you want to transfer to\n * @param _value uint256 the amount of tokens to be transferred\n */\n function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {\n require(_value <= allowed[_from][msg.sender]);\n allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);\n internalTransfer(_from, _to, _value);\n return true;\n }\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\n * Beware that changing an allowance with this method brings the risk that someone may use both the old\n * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\n * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * @param _spender The address which will spend the funds.\n * @param _value The amount of tokens to be spent.\n */\n function approve(address _spender, uint256 _value) public returns (bool) {\n require(!isPaused);\n allowed[msg.sender][_spender] = _value;\n emit Approval(msg.sender, _spender, _value);\n return true;\n }\n\n event Approval(address approver, address spender, uint256 value);\n /**\n * @dev Function to check the amount of tokens that an owner allowed to a spender.\n * @param _owner address The address which owns the funds.\n * @param _spender address The address which will spend the funds.\n * @return A uint256 specifying the amount of tokens still available for the spender.\n */\n function allowance(address _owner, address _spender) public view returns (uint256) {\n return allowed[_owner][_spender];\n }\n\n /**\n * @dev Increase the amount of tokens that an owner allowed to a spender.\n * approve should be called when allowed[_spender] == 0. To increment\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * From MonolithDAO Token.sol\n * @param _spender The address which will spend the funds.\n * @param _addedValue The amount of tokens to increase the allowance by.\n */\n function increaseApproval(address _spender, uint256 _addedValue) public returns (bool) {\n require(!isPaused);\n allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);\n emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n\n /**\n * @dev Decrease the amount of tokens that an owner allowed to a spender.\n * approve should be called when allowed[_spender] == 0. To decrement\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * From MonolithDAO Token.sol\n * @param _spender The address which will spend the funds.\n * @param _subtractedValue The amount of tokens to decrease the allowance by.\n */\n function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool) {\n require(!isPaused);\n uint256 oldValue = allowed[msg.sender][_spender];\n if (_subtractedValue > oldValue) {\n allowed[msg.sender][_spender] = 0;\n } else {\n allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);\n }\n emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n\n}", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/AlethenaShares.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/AlethenaShares.sol", - "exportedSymbols": { - "AlethenaShares": [ - 532 - ] - }, - "id": 533, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1135, - "src": "26:26:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "file": "./SafeMath.sol", - "id": 3, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1380, - "src": "53:24:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20.sol", - "file": "./ERC20.sol", - "id": 4, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1103, - "src": "78:21:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Claimable.sol", - "file": "./Claimable.sol", - "id": 5, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1060, - "src": "100:25:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 6, - "name": "ERC20", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1102, - "src": "1919:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$1102", - "typeString": "contract ERC20" - } - }, - "id": 7, - "nodeType": "InheritanceSpecifier", - "src": "1919:5:0" - }, - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 8, - "name": "Claimable", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1059, - "src": "1926:9:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Claimable_$1059", - "typeString": "contract Claimable" - } - }, - "id": 9, - "nodeType": "InheritanceSpecifier", - "src": "1926:9:0" - } - ], - "contractDependencies": [ - 1059, - 1102, - 1134, - 1285 - ], - "contractKind": "contract", - "documentation": "@title Alethena Shares\n@author Benjamin Rickenbacher, benjamin@alethena.com\n@author Luzius Meisser, luzius@meissereconomics.com\n@dev These tokens are based on the ERC20 standard and the open-zeppelin library.\n * These tokens are uncertified alethena shares (Wertrechte according to the Swiss code of obligations),\nwith this smart contract serving as onwership registry (Wertrechtebuch), but not as shareholder\nregistry, which is kept separate and run by the company. This is equivalent to the traditional system\nof having physical share certificates kept at home by the shareholders and a shareholder registry run by\nthe company. Just like with physical certificates, the owners of the tokens are the owners of the shares.\nHowever, in order to exercise their rights (for example receive a dividend), shareholders must register\nwith the company. For example, in case the company pays out a dividend to a previous shareholder because\nthe current shareholder did not register, the company cannot be held liable for paying the dividend to\nthe \"wrong\" shareholder. In relation to the company, only the registered shareholders count as such.\nRegistration requires setting up an account with ledgy.com providing your name and address and proving\nownership over your addresses.\n@notice The main addition is a functionality that allows the user to claim that the key for a certain address is lost.\n@notice In order to prevent malicious attempts, a collateral needs to be posted.\n@notice The contract owner can delete claims in case of disputes.\n * https://github.com/ethereum/EIPs/issues/20\nBased on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol", - "fullyImplemented": true, - "id": 532, - "linearizedBaseContracts": [ - 532, - 1059, - 1285, - 1102, - 1134 - ], - "name": "AlethenaShares", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": true, - "id": 12, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "1943:47:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 10, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1943:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "416c657468656e6120457175697479", - "id": 11, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1973:17:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_6193e7c4e25ff8ff73ee7ddf89564bf6b58c755b5b723c3a09cdb998139ec1de", - "typeString": "literal_string \"Alethena Equity\"" - }, - "value": "Alethena Equity" - }, - "visibility": "public" - }, - { - "constant": true, - "id": 15, - "name": "symbol", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "1996:38:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1996:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "414c4551", - "id": 14, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2028:6:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_24c2cd2fc430bfbbc716784167bc936725449c4f1802335a0d6558840771f00b", - "typeString": "literal_string \"ALEQ\"" - }, - "value": "ALEQ" - }, - "visibility": "public" - }, - { - "constant": true, - "id": 18, - "name": "decimals", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2040:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint8", - "typeString": "uint8" - }, - "typeName": { - "id": 16, - "name": "uint8", - "nodeType": "ElementaryTypeName", - "src": "2040:5:0", - "typeDescriptions": { - "typeIdentifier": "t_uint8", - "typeString": "uint8" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 17, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2073:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "id": 21, - "libraryName": { - "contractScope": null, - "id": 19, - "name": "SafeMath", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1379, - "src": "2124:8:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$1379", - "typeString": "library SafeMath" - } - }, - "nodeType": "UsingForDirective", - "src": "2118:27:0", - "typeName": { - "id": 20, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2137:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - { - "constant": true, - "id": 24, - "name": "termsAndConditions", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2240:65:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 22, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2240:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "7368617265732e616c657468656e612e636f6d", - "id": 23, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2284:21:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_9208081c891858dc178eec99c4dc1f7a52f39520e68dbb75e25c3432a8ce31f5", - "typeString": "literal_string \"shares.alethena.com\"" - }, - "value": "shares.alethena.com" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 28, - "name": "balances", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2312:36:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "typeName": { - "id": 27, - "keyType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2320:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2312:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "valueType": { - "id": 26, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2331:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 30, - "name": "totalSupply_", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2354:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 29, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2354:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 33, - "name": "totalShares_", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2444:27:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 31, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2444:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "31303030", - "id": 32, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2467:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1000_by_1", - "typeString": "int_const 1000" - }, - "value": "1000" - }, - "visibility": "internal" - }, - { - "anonymous": false, - "documentation": null, - "id": 41, - "name": "Mint", - "nodeType": "EventDefinition", - "parameters": { - "id": 40, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 35, - "indexed": true, - "name": "shareholder", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2552:27:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 34, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2552:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 37, - "indexed": false, - "name": "amount", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2581:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 36, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2581:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 39, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2597:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 38, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2597:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2551:61:0" - }, - "src": "2541:72:0" - }, - { - "anonymous": false, - "documentation": null, - "id": 47, - "name": "Unmint", - "nodeType": "EventDefinition", - "parameters": { - "id": 46, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 43, - "indexed": false, - "name": "amount", - "nodeType": "VariableDeclaration", - "scope": 47, - "src": "2631:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 42, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2631:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 45, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 47, - "src": "2647:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 44, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2647:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2630:32:0" - }, - "src": "2618:45:0" - }, - { - "body": { - "id": 54, - "nodeType": "Block", - "src": "2772:36:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 52, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "2789:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 51, - "id": 53, - "nodeType": "Return", - "src": "2782:19:0" - } - ] - }, - "documentation": "@dev Total number of tokens in existence ", - "id": 55, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalSupply", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 48, - "nodeType": "ParameterList", - "parameters": [], - "src": "2739:2:0" - }, - "payable": false, - "returnParameters": { - "id": 51, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 50, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 55, - "src": "2763:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 49, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2763:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2762:9:0" - }, - "scope": 532, - "src": "2719:89:0", - "stateMutability": "view", - "superFunction": 1109, - "visibility": "public" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "3042:36:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 60, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3059:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 59, - "id": 61, - "nodeType": "Return", - "src": "3052:19:0" - } - ] - }, - "documentation": "@dev Total number of shares in existence, not necessarily all represented by a token. \n@dev This could be useful to calculate the total market cap.", - "id": 63, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalShares", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 56, - "nodeType": "ParameterList", - "parameters": [], - "src": "3009:2:0" - }, - "payable": false, - "returnParameters": { - "id": 59, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 58, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "3033:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 57, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3033:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3032:9:0" - }, - "scope": 532, - "src": "2989:89:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 81, - "nodeType": "Block", - "src": "3152:98:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 74, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 71, - "name": "_newTotalShares", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "3170:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "arguments": [], - "expression": { - "argumentTypes": [], - "id": 72, - "name": "totalSupply", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 55 - ], - "referencedDeclaration": 55, - "src": "3189:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", - "typeString": "function () view returns (uint256)" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3189:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3170:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 70, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3162:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 75, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3162:41:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 76, - "nodeType": "ExpressionStatement", - "src": "3162:41:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 79, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 77, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3213:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 78, - "name": "_newTotalShares", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "3228:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3213:30:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 80, - "nodeType": "ExpressionStatement", - "src": "3213:30:0" - } - ] - }, - "documentation": null, - "id": 82, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 68, - "modifierName": { - "argumentTypes": null, - "id": 67, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "3140:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "3140:11:0" - } - ], - "name": "setTotalShares", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_newTotalShares", - "nodeType": "VariableDeclaration", - "scope": 82, - "src": "3108:23:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 64, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3108:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3107:25:0" - }, - "payable": false, - "returnParameters": { - "id": 69, - "nodeType": "ParameterList", - "parameters": [], - "src": "3152:0:0" - }, - "scope": 532, - "src": "3084:166:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 131, - "nodeType": "Block", - "src": "3475:263:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 96, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 94, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3493:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 95, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "3503:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "3493:11:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 93, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3485:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3485:20:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "3485:20:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 105, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 102, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3540:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 100, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3523:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 101, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "3523:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3523:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "id": 104, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3552:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3523:41:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 99, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3515:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 106, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3515:50:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 107, - "nodeType": "ExpressionStatement", - "src": "3515:50:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 117, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 108, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "3575:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 110, - "indexExpression": { - "argumentTypes": null, - "id": 109, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3584:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "3575:21:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 115, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3625:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "3599:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3608:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3599:21:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 114, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "3599:25:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3599:34:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3575:58:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 118, - "nodeType": "ExpressionStatement", - "src": "3575:58:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 123, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 119, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3643:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 120, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3658:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 121, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3673:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3658:22:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3643:37:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 124, - "nodeType": "ExpressionStatement", - "src": "3643:37:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 126, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3700:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 127, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3713:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 128, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "3722:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 125, - "name": "Mint", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 41, - "src": "3695:4:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (address,uint256,string memory)" - } - }, - "id": 129, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3695:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 130, - "nodeType": "EmitStatement", - "src": "3690:41:0" - } - ] - }, - "documentation": "Increases the number of the tokenized shares. If the shares are newly issued, the share total also needs to be increased. ", - "id": 132, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 91, - "modifierName": { - "argumentTypes": null, - "id": 90, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "3463:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "3463:11:0" - } - ], - "name": "mint", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 89, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 84, - "name": "shareholder", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3401:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 83, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3401:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 86, - "name": "_amount", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3422:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 85, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3422:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 88, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3439:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 87, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "3439:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3400:55:0" - }, - "payable": false, - "returnParameters": { - "id": 92, - "nodeType": "ParameterList", - "parameters": [], - "src": "3475:0:0" - }, - "scope": 532, - "src": "3387:351:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 177, - "nodeType": "Block", - "src": "4442:226:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 144, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 142, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4460:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 143, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "4470:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "4460:11:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 141, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "4452:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 145, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4452:20:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 146, - "nodeType": "ExpressionStatement", - "src": "4452:20:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 152, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 148, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4490:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 150, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4511:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 149, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 309 - ], - "referencedDeclaration": 309, - "src": "4501:9:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 151, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4501:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4490:27:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 147, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "4482:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4482:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "4482:36:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 164, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 155, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "4528:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 157, - "indexExpression": { - "argumentTypes": null, - "id": 156, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4537:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "4528:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 162, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4566:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 158, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "4546:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 160, - "indexExpression": { - "argumentTypes": null, - "id": 159, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4555:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "4546:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 161, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "4546:19:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 163, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4546:28:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4528:46:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 165, - "nodeType": "ExpressionStatement", - "src": "4528:46:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 166, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "4584:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 169, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 167, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "4599:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "id": 168, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4614:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4599:22:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4584:37:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "4584:37:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 173, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4643:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 174, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 136, - "src": "4652:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 172, - "name": "Unmint", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 47, - "src": "4636:6:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (uint256,string memory)" - } - }, - "id": 175, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4636:25:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 176, - "nodeType": "EmitStatement", - "src": "4631:30:0" - } - ] - }, - "documentation": "Decrease the number of the tokenized shares. There are two use-cases for this function:\n 1) a capital decrease with a destruction of the shares, in which case the law requires that the\n destroyed shares are currently owned by the company.\n 2) a shareholder wants to take shares offline. This can only happen with the agreement of the \n the company. To do so, the shares must be transferred to the company first, the company call\n this function and then assigning the untokenized shares back to the shareholder in whatever\n way the new form (e.g. printed certificate) of the shares requires.", - "id": 178, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 139, - "modifierName": { - "argumentTypes": null, - "id": 138, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "4430:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "4430:11:0" - } - ], - "name": "unmint", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 137, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 134, - "name": "_amount", - "nodeType": "VariableDeclaration", - "scope": 178, - "src": "4389:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 133, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "4389:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 136, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 178, - "src": "4406:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 135, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "4406:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "4388:34:0" - }, - "payable": false, - "returnParameters": { - "id": 140, - "nodeType": "ParameterList", - "parameters": [], - "src": "4442:0:0" - }, - "scope": 532, - "src": "4373:295:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "constant": false, - "id": 181, - "name": "isPaused", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "4711:28:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 179, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "4711:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 180, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "4734:5:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "visibility": "public" - }, - { - "body": { - "id": 205, - "nodeType": "Block", - "src": "5135:97:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 196, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 194, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "5145:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 195, - "name": "_pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 183, - "src": "5156:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "src": "5145:17:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 197, - "nodeType": "ExpressionStatement", - "src": "5145:17:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 199, - "name": "_pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 183, - "src": "5183:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "id": 200, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 185, - "src": "5191:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - { - "argumentTypes": null, - "id": 201, - "name": "_newAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 187, - "src": "5201:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 202, - "name": "_fromBlock", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "5214:10:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 198, - "name": "Pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "5177:5:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_bool_$_t_string_memory_ptr_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (bool,string memory,address,uint256)" - } - }, - "id": 203, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5177:48:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 204, - "nodeType": "EmitStatement", - "src": "5172:53:0" - } - ] - }, - "documentation": "@dev Function to set pause.\n This could for example be used in case of a fork of the network, in which case all\n \"wrong\" forked contracts should be paused in their respective fork. Deciding which\n fork is the \"right\" one is up to the owner of the contract.", - "id": 206, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 192, - "modifierName": { - "argumentTypes": null, - "id": 191, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "5123:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "5123:11:0" - } - ], - "name": "pause", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 190, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 183, - "name": "_pause", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5045:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 182, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5045:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 185, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5058:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 184, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "5058:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 187, - "name": "_newAddress", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5075:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 186, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5075:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 189, - "name": "_fromBlock", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5096:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 188, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5096:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5044:71:0" - }, - "payable": false, - "returnParameters": { - "id": 193, - "nodeType": "ParameterList", - "parameters": [], - "src": "5135:0:0" - }, - "scope": 532, - "src": "5030:202:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 216, - "name": "Pause", - "nodeType": "EventDefinition", - "parameters": { - "id": 215, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 208, - "indexed": false, - "name": "paused", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5250:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 207, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5250:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 210, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5263:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 209, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "5263:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 212, - "indexed": false, - "name": "newAddress", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5279:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 211, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5279:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 214, - "indexed": false, - "name": "fromBlock", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5299:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 213, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5299:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5249:68:0" - }, - "src": "5238:80:0" - }, - { - "body": { - "id": 237, - "nodeType": "Block", - "src": "5928:101:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [], - "expression": { - "argumentTypes": [], - "id": 225, - "name": "clearClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 930, - "src": "5938:10:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$__$returns$_t_uint256_$", - "typeString": "function () returns (uint256)" - } - }, - "id": 226, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5938:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 227, - "nodeType": "ExpressionStatement", - "src": "5938:12:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 229, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5977:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 230, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5977:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 231, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 218, - "src": "5989:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 232, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 220, - "src": "5994:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 228, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 297 - ], - "referencedDeclaration": 297, - "src": "5960:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 233, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5960:41:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 234, - "nodeType": "ExpressionStatement", - "src": "5960:41:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 235, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "6018:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 224, - "id": 236, - "nodeType": "Return", - "src": "6011:11:0" - } - ] - }, - "documentation": "@dev Transfer token for a specified address\n@param _to The address to transfer to.\n@param _value The amount to be transferred.", - "id": 238, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 221, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 218, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5877:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 217, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5877:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 220, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5890:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 219, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5890:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5876:29:0" - }, - "payable": false, - "returnParameters": { - "id": 224, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 223, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5922:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 222, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5922:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5921:6:0" - }, - "scope": 532, - "src": "5859:170:0", - "stateMutability": "nonpayable", - "superFunction": 1125, - "visibility": "public" - }, - { - "body": { - "id": 296, - "nodeType": "Block", - "src": "6114:264:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 249, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "6132:9:0", - "subExpression": { - "argumentTypes": null, - "id": 248, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "6133:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 247, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6124:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 250, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6124:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 251, - "nodeType": "ExpressionStatement", - "src": "6124:18:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 257, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 253, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6160:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 255, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "6175:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 254, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "6167:7:0", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 256, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6167:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "6160:17:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 252, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6152:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 258, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6152:26:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 259, - "nodeType": "ExpressionStatement", - "src": "6152:26:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 265, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 261, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6196:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 262, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6206:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 264, - "indexExpression": { - "argumentTypes": null, - "id": 263, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6215:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6206:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6196:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 260, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6188:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6188:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 267, - "nodeType": "ExpressionStatement", - "src": "6188:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 277, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 268, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6232:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 270, - "indexExpression": { - "argumentTypes": null, - "id": 269, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6241:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6232:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 275, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6270:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 271, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6250:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 273, - "indexExpression": { - "argumentTypes": null, - "id": 272, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6259:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6250:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 274, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "6250:19:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 276, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6250:27:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6232:45:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 278, - "nodeType": "ExpressionStatement", - "src": "6232:45:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 288, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 279, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6287:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 281, - "indexExpression": { - "argumentTypes": null, - "id": 280, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6296:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6287:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 286, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6321:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 282, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6303:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 284, - "indexExpression": { - "argumentTypes": null, - "id": 283, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6312:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6303:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 285, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "6303:17:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 287, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6303:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6287:41:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 289, - "nodeType": "ExpressionStatement", - "src": "6287:41:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 291, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6352:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 292, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6359:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 293, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6364:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 290, - "name": "Transfer", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1133, - "src": "6343:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 294, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6343:28:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 295, - "nodeType": "EmitStatement", - "src": "6338:33:0" - } - ] - }, - "documentation": null, - "id": 297, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "internalTransfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 245, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 240, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6061:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 239, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6061:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 242, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6076:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 241, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6076:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 244, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6089:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 243, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6089:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6060:44:0" - }, - "payable": false, - "returnParameters": { - "id": 246, - "nodeType": "ParameterList", - "parameters": [], - "src": "6114:0:0" - }, - "scope": 532, - "src": "6035:343:0", - "stateMutability": "nonpayable", - "superFunction": 1014, - "visibility": "internal" - }, - { - "body": { - "id": 308, - "nodeType": "Block", - "src": "6647:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 304, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6664:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 306, - "indexExpression": { - "argumentTypes": null, - "id": 305, - "name": "_owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 299, - "src": "6673:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6664:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 303, - "id": 307, - "nodeType": "Return", - "src": "6657:23:0" - } - ] - }, - "documentation": "@dev Gets the balance of the specified address.\n@param _owner The address to query the the balance of.\n@return An uint256 representing the amount owned by the passed address.", - "id": 309, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "balanceOf", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 300, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 299, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 309, - "src": "6601:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 298, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6601:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6600:16:0" - }, - "payable": false, - "returnParameters": { - "id": 303, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 302, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 309, - "src": "6638:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 301, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6638:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6637:9:0" - }, - "scope": 532, - "src": "6582:105:0", - "stateMutability": "view", - "superFunction": 1116, - "visibility": "public" - }, - { - "constant": false, - "id": 315, - "name": "allowed", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "6693:66:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - }, - "typeName": { - "id": 314, - "keyType": { - "id": 310, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6702:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "6693:49:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - }, - "valueType": { - "id": 313, - "keyType": { - "id": 311, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6722:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "6713:28:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "valueType": { - "id": 312, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6733:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "7125:206:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 334, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 327, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7143:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 328, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7153:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 330, - "indexExpression": { - "argumentTypes": null, - "id": 329, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7161:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7153:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 333, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 331, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7168:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 332, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7168:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7153:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7143:36:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 326, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7135:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 335, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7135:45:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 336, - "nodeType": "ExpressionStatement", - "src": "7135:45:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 352, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 337, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7190:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 341, - "indexExpression": { - "argumentTypes": null, - "id": 338, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7198:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7190:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 342, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 339, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7205:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 340, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7205:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7190:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 350, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7250:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 343, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7219:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 345, - "indexExpression": { - "argumentTypes": null, - "id": 344, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7227:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7219:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 348, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 346, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7234:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 347, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7234:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7219:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 349, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "7219:30:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7219:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7190:67:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 353, - "nodeType": "ExpressionStatement", - "src": "7190:67:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 355, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7284:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 356, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 319, - "src": "7291:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 357, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7296:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 354, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 297 - ], - "referencedDeclaration": 297, - "src": "7267:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7267:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 359, - "nodeType": "ExpressionStatement", - "src": "7267:36:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 360, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7320:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 325, - "id": 361, - "nodeType": "Return", - "src": "7313:11:0" - } - ] - }, - "documentation": "@dev Transfer tokens from one address to another\n@param _from address The address which you want to send tokens from\n@param _to address The address which you want to transfer to\n@param _value uint256 the amount of tokens to be transferred", - "id": 363, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 322, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 317, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7059:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 316, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7059:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 319, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7074:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 318, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7074:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 321, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7087:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 320, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7087:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7058:44:0" - }, - "payable": false, - "returnParameters": { - "id": 325, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 324, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7119:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 323, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "7119:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7118:6:0" - }, - "scope": 532, - "src": "7037:294:0", - "stateMutability": "nonpayable", - "superFunction": 1084, - "visibility": "public" - }, - { - "body": { - "id": 395, - "nodeType": "Block", - "src": "8024:157:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 374, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "8042:9:0", - "subExpression": { - "argumentTypes": null, - "id": 373, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "8043:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 372, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "8034:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8034:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 376, - "nodeType": "ExpressionStatement", - "src": "8034:18:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 384, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 377, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "8062:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 381, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 378, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "8070:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8070:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8062:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 382, - "indexExpression": { - "argumentTypes": null, - "id": 380, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "8082:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "8062:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 383, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 367, - "src": "8094:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "8062:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 385, - "nodeType": "ExpressionStatement", - "src": "8062:38:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 387, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "8124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 388, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 389, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "8136:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 390, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 367, - "src": "8146:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 386, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "8115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8115:38:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "EmitStatement", - "src": "8110:43:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 393, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8170:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 371, - "id": 394, - "nodeType": "Return", - "src": "8163:11:0" - } - ] - }, - "documentation": "@dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\nBeware that changing an allowance with this method brings the risk that someone may use both the old\nand the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\nrace condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:\nhttps://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n@param _spender The address which will spend the funds.\n@param _value The amount of tokens to be spent.", - "id": 396, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 368, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "7968:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 364, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7968:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 367, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "7986:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 366, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7986:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7967:34:0" - }, - "payable": false, - "returnParameters": { - "id": 371, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 370, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "8018:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 369, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "8018:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8017:6:0" - }, - "scope": 532, - "src": "7951:230:0", - "stateMutability": "nonpayable", - "superFunction": 1093, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 404, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 403, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 398, - "indexed": false, - "name": "approver", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8202:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 397, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8202:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 400, - "indexed": false, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8220:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 399, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8220:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 402, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8237:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 401, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8237:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8201:50:0" - }, - "src": "8187:65:0" - }, - { - "body": { - "id": 419, - "nodeType": "Block", - "src": "8655:49:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 413, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "8672:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 415, - "indexExpression": { - "argumentTypes": null, - "id": 414, - "name": "_owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 406, - "src": "8680:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8672:15:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 417, - "indexExpression": { - "argumentTypes": null, - "id": 416, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 408, - "src": "8688:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8672:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 412, - "id": 418, - "nodeType": "Return", - "src": "8665:32:0" - } - ] - }, - "documentation": "@dev Function to check the amount of tokens that an owner allowed to a spender.\n@param _owner address The address which owns the funds.\n@param _spender address The address which will spend the funds.\n@return A uint256 specifying the amount of tokens still available for the spender.", - "id": 420, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 409, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 406, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8591:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 405, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8591:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 408, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8607:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 407, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8607:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8590:34:0" - }, - "payable": false, - "returnParameters": { - "id": 412, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 411, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8646:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 410, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8646:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8645:9:0" - }, - "scope": 532, - "src": "8572:132:0", - "stateMutability": "view", - "superFunction": 1073, - "visibility": "public" - }, - { - "body": { - "id": 465, - "nodeType": "Block", - "src": "9245:220:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 431, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "9263:9:0", - "subExpression": { - "argumentTypes": null, - "id": 430, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "9264:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 429, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "9255:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 432, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9255:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 433, - "nodeType": "ExpressionStatement", - "src": "9255:18:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 449, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 434, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9283:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 438, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 435, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9291:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 436, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9291:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9283:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 439, - "indexExpression": { - "argumentTypes": null, - "id": 437, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9303:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "9283:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 447, - "name": "_addedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "9349:11:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 440, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9315:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 443, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 441, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9323:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 442, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9323:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9315:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 445, - "indexExpression": { - "argumentTypes": null, - "id": 444, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9335:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9315:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "9315:33:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 448, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9315:46:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "9283:78:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 450, - "nodeType": "ExpressionStatement", - "src": "9283:78:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 452, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9385:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 453, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9385:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 454, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9397:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 455, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9407:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 458, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 456, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9415:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 457, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9415:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9407:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 460, - "indexExpression": { - "argumentTypes": null, - "id": 459, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9427:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9407:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 451, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "9376:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 461, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9376:61:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 462, - "nodeType": "EmitStatement", - "src": "9371:66:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 463, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "9454:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 428, - "id": 464, - "nodeType": "Return", - "src": "9447:11:0" - } - ] - }, - "documentation": "@dev Increase the amount of tokens that an owner allowed to a spender.\napprove should be called when allowed[_spender] == 0. To increment\nallowed value is better to use this function to avoid 2 calls (and wait until\nthe first transaction is mined)\nFrom MonolithDAO Token.sol\n@param _spender The address which will spend the funds.\n@param _addedValue The amount of tokens to increase the allowance by.", - "id": 466, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "increaseApproval", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 425, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 422, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9184:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 421, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "9184:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 424, - "name": "_addedValue", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9202:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 423, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "9202:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9183:39:0" - }, - "payable": false, - "returnParameters": { - "id": 428, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 427, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9239:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 426, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "9239:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9238:6:0" - }, - "scope": 532, - "src": "9158:307:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 530, - "nodeType": "Block", - "src": "10016:383:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 477, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "10034:9:0", - "subExpression": { - "argumentTypes": null, - "id": 476, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "10035:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 475, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "10026:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 478, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10026:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 479, - "nodeType": "ExpressionStatement", - "src": "10026:18:0" - }, - { - "assignments": [ - 481 - ], - "declarations": [ - { - "constant": false, - "id": 481, - "name": "oldValue", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "10054:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 480, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "10054:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 488, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10073:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 485, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 483, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10081:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 484, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10081:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10073:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 487, - "indexExpression": { - "argumentTypes": null, - "id": 486, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10093:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10073:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "10054:48:0" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 489, - "name": "_subtractedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 470, - "src": "10116:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "id": 490, - "name": "oldValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 481, - "src": "10135:8:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "10116:27:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": { - "id": 514, - "nodeType": "Block", - "src": "10209:87:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 502, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10223:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 503, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10231:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 504, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10231:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10223:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 507, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10243:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "10223:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 510, - "name": "_subtractedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 470, - "src": "10268:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 508, - "name": "oldValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 481, - "src": "10255:8:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 509, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "10255:12:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 511, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10255:30:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "10223:62:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "10223:62:0" - } - ] - }, - "id": 515, - "nodeType": "IfStatement", - "src": "10112:184:0", - "trueBody": { - "id": 501, - "nodeType": "Block", - "src": "10145:58:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 499, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 492, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10159:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 496, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 493, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10167:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 494, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10167:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10159:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 497, - "indexExpression": { - "argumentTypes": null, - "id": 495, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10179:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "10159:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "30", - "id": 498, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "10191:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "10159:33:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 500, - "nodeType": "ExpressionStatement", - "src": "10159:33:0" - } - ] - } - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 517, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10319:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 518, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10319:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 519, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10331:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 520, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10341:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 523, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 521, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10349:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10349:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10341:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 525, - "indexExpression": { - "argumentTypes": null, - "id": 524, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10361:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10341:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 516, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "10310:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 526, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10310:61:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 527, - "nodeType": "EmitStatement", - "src": "10305:66:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 528, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "10388:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 474, - "id": 529, - "nodeType": "Return", - "src": "10381:11:0" - } - ] - }, - "documentation": "@dev Decrease the amount of tokens that an owner allowed to a spender.\napprove should be called when allowed[_spender] == 0. To decrement\nallowed value is better to use this function to avoid 2 calls (and wait until\nthe first transaction is mined)\nFrom MonolithDAO Token.sol\n@param _spender The address which will spend the funds.\n@param _subtractedValue The amount of tokens to decrease the allowance by.", - "id": 531, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "decreaseApproval", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 471, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 468, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "9950:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 467, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "9950:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 470, - "name": "_subtractedValue", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "9968:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 469, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "9968:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9949:44:0" - }, - "payable": false, - "returnParameters": { - "id": 474, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 473, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "10010:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 472, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "10010:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "10009:6:0" - }, - "scope": 532, - "src": "9924:475:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 533, - "src": "1892:8510:0" - } - ], - "src": "0:10402:0" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/AlethenaShares.sol", - "exportedSymbols": { - "AlethenaShares": [ - 532 - ] - }, - "id": 533, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1135, - "src": "26:26:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "file": "./SafeMath.sol", - "id": 3, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1380, - "src": "53:24:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20.sol", - "file": "./ERC20.sol", - "id": 4, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1103, - "src": "78:21:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Claimable.sol", - "file": "./Claimable.sol", - "id": 5, - "nodeType": "ImportDirective", - "scope": 533, - "sourceUnit": 1060, - "src": "100:25:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 6, - "name": "ERC20", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1102, - "src": "1919:5:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$1102", - "typeString": "contract ERC20" - } - }, - "id": 7, - "nodeType": "InheritanceSpecifier", - "src": "1919:5:0" - }, - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 8, - "name": "Claimable", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1059, - "src": "1926:9:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Claimable_$1059", - "typeString": "contract Claimable" - } - }, - "id": 9, - "nodeType": "InheritanceSpecifier", - "src": "1926:9:0" - } - ], - "contractDependencies": [ - 1059, - 1102, - 1134, - 1285 - ], - "contractKind": "contract", - "documentation": "@title Alethena Shares\n@author Benjamin Rickenbacher, benjamin@alethena.com\n@author Luzius Meisser, luzius@meissereconomics.com\n@dev These tokens are based on the ERC20 standard and the open-zeppelin library.\n * These tokens are uncertified alethena shares (Wertrechte according to the Swiss code of obligations),\nwith this smart contract serving as onwership registry (Wertrechtebuch), but not as shareholder\nregistry, which is kept separate and run by the company. This is equivalent to the traditional system\nof having physical share certificates kept at home by the shareholders and a shareholder registry run by\nthe company. Just like with physical certificates, the owners of the tokens are the owners of the shares.\nHowever, in order to exercise their rights (for example receive a dividend), shareholders must register\nwith the company. For example, in case the company pays out a dividend to a previous shareholder because\nthe current shareholder did not register, the company cannot be held liable for paying the dividend to\nthe \"wrong\" shareholder. In relation to the company, only the registered shareholders count as such.\nRegistration requires setting up an account with ledgy.com providing your name and address and proving\nownership over your addresses.\n@notice The main addition is a functionality that allows the user to claim that the key for a certain address is lost.\n@notice In order to prevent malicious attempts, a collateral needs to be posted.\n@notice The contract owner can delete claims in case of disputes.\n * https://github.com/ethereum/EIPs/issues/20\nBased on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol", - "fullyImplemented": true, - "id": 532, - "linearizedBaseContracts": [ - 532, - 1059, - 1285, - 1102, - 1134 - ], - "name": "AlethenaShares", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": true, - "id": 12, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "1943:47:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 10, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1943:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "416c657468656e6120457175697479", - "id": 11, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1973:17:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_6193e7c4e25ff8ff73ee7ddf89564bf6b58c755b5b723c3a09cdb998139ec1de", - "typeString": "literal_string \"Alethena Equity\"" - }, - "value": "Alethena Equity" - }, - "visibility": "public" - }, - { - "constant": true, - "id": 15, - "name": "symbol", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "1996:38:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1996:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "414c4551", - "id": 14, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2028:6:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_24c2cd2fc430bfbbc716784167bc936725449c4f1802335a0d6558840771f00b", - "typeString": "literal_string \"ALEQ\"" - }, - "value": "ALEQ" - }, - "visibility": "public" - }, - { - "constant": true, - "id": 18, - "name": "decimals", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2040:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint8", - "typeString": "uint8" - }, - "typeName": { - "id": 16, - "name": "uint8", - "nodeType": "ElementaryTypeName", - "src": "2040:5:0", - "typeDescriptions": { - "typeIdentifier": "t_uint8", - "typeString": "uint8" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 17, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2073:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "id": 21, - "libraryName": { - "contractScope": null, - "id": 19, - "name": "SafeMath", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1379, - "src": "2124:8:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$1379", - "typeString": "library SafeMath" - } - }, - "nodeType": "UsingForDirective", - "src": "2118:27:0", - "typeName": { - "id": 20, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2137:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - { - "constant": true, - "id": 24, - "name": "termsAndConditions", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2240:65:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory", - "typeString": "string" - }, - "typeName": { - "id": 22, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2240:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "7368617265732e616c657468656e612e636f6d", - "id": 23, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2284:21:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_9208081c891858dc178eec99c4dc1f7a52f39520e68dbb75e25c3432a8ce31f5", - "typeString": "literal_string \"shares.alethena.com\"" - }, - "value": "shares.alethena.com" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 28, - "name": "balances", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2312:36:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "typeName": { - "id": 27, - "keyType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2320:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2312:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "valueType": { - "id": 26, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2331:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 30, - "name": "totalSupply_", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2354:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 29, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2354:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 33, - "name": "totalShares_", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "2444:27:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 31, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2444:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "31303030", - "id": 32, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2467:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1000_by_1", - "typeString": "int_const 1000" - }, - "value": "1000" - }, - "visibility": "internal" - }, - { - "anonymous": false, - "documentation": null, - "id": 41, - "name": "Mint", - "nodeType": "EventDefinition", - "parameters": { - "id": 40, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 35, - "indexed": true, - "name": "shareholder", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2552:27:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 34, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2552:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 37, - "indexed": false, - "name": "amount", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2581:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 36, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2581:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 39, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 41, - "src": "2597:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 38, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2597:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2551:61:0" - }, - "src": "2541:72:0" - }, - { - "anonymous": false, - "documentation": null, - "id": 47, - "name": "Unmint", - "nodeType": "EventDefinition", - "parameters": { - "id": 46, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 43, - "indexed": false, - "name": "amount", - "nodeType": "VariableDeclaration", - "scope": 47, - "src": "2631:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 42, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2631:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 45, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 47, - "src": "2647:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 44, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2647:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2630:32:0" - }, - "src": "2618:45:0" - }, - { - "body": { - "id": 54, - "nodeType": "Block", - "src": "2772:36:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 52, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "2789:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 51, - "id": 53, - "nodeType": "Return", - "src": "2782:19:0" - } - ] - }, - "documentation": "@dev Total number of tokens in existence ", - "id": 55, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalSupply", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 48, - "nodeType": "ParameterList", - "parameters": [], - "src": "2739:2:0" - }, - "payable": false, - "returnParameters": { - "id": 51, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 50, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 55, - "src": "2763:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 49, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2763:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2762:9:0" - }, - "scope": 532, - "src": "2719:89:0", - "stateMutability": "view", - "superFunction": 1109, - "visibility": "public" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "3042:36:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 60, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3059:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 59, - "id": 61, - "nodeType": "Return", - "src": "3052:19:0" - } - ] - }, - "documentation": "@dev Total number of shares in existence, not necessarily all represented by a token. \n@dev This could be useful to calculate the total market cap.", - "id": 63, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalShares", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 56, - "nodeType": "ParameterList", - "parameters": [], - "src": "3009:2:0" - }, - "payable": false, - "returnParameters": { - "id": 59, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 58, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "3033:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 57, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3033:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3032:9:0" - }, - "scope": 532, - "src": "2989:89:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 81, - "nodeType": "Block", - "src": "3152:98:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 74, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 71, - "name": "_newTotalShares", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "3170:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "arguments": [], - "expression": { - "argumentTypes": [], - "id": 72, - "name": "totalSupply", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 55 - ], - "referencedDeclaration": 55, - "src": "3189:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", - "typeString": "function () view returns (uint256)" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3189:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3170:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 70, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3162:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 75, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3162:41:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 76, - "nodeType": "ExpressionStatement", - "src": "3162:41:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 79, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 77, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3213:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 78, - "name": "_newTotalShares", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "3228:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3213:30:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 80, - "nodeType": "ExpressionStatement", - "src": "3213:30:0" - } - ] - }, - "documentation": null, - "id": 82, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 68, - "modifierName": { - "argumentTypes": null, - "id": 67, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "3140:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "3140:11:0" - } - ], - "name": "setTotalShares", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_newTotalShares", - "nodeType": "VariableDeclaration", - "scope": 82, - "src": "3108:23:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 64, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3108:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3107:25:0" - }, - "payable": false, - "returnParameters": { - "id": 69, - "nodeType": "ParameterList", - "parameters": [], - "src": "3152:0:0" - }, - "scope": 532, - "src": "3084:166:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 131, - "nodeType": "Block", - "src": "3475:263:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 96, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 94, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3493:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 95, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "3503:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "3493:11:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 93, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3485:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3485:20:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "3485:20:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 105, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 102, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3540:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 100, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3523:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 101, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "3523:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3523:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "id": 104, - "name": "totalShares_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 33, - "src": "3552:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3523:41:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 99, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "3515:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 106, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3515:50:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 107, - "nodeType": "ExpressionStatement", - "src": "3515:50:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 117, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 108, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "3575:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 110, - "indexExpression": { - "argumentTypes": null, - "id": 109, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3584:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "3575:21:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 115, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3625:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "3599:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3608:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3599:21:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 114, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "3599:25:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3599:34:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3575:58:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 118, - "nodeType": "ExpressionStatement", - "src": "3575:58:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 123, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 119, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3643:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 120, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "3658:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 121, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3673:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3658:22:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3643:37:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 124, - "nodeType": "ExpressionStatement", - "src": "3643:37:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 126, - "name": "shareholder", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 84, - "src": "3700:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 127, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 86, - "src": "3713:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 128, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "3722:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 125, - "name": "Mint", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 41, - "src": "3695:4:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (address,uint256,string memory)" - } - }, - "id": 129, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3695:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 130, - "nodeType": "EmitStatement", - "src": "3690:41:0" - } - ] - }, - "documentation": "Increases the number of the tokenized shares. If the shares are newly issued, the share total also needs to be increased. ", - "id": 132, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 91, - "modifierName": { - "argumentTypes": null, - "id": 90, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "3463:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "3463:11:0" - } - ], - "name": "mint", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 89, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 84, - "name": "shareholder", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3401:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 83, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3401:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 86, - "name": "_amount", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3422:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 85, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3422:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 88, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 132, - "src": "3439:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 87, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "3439:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3400:55:0" - }, - "payable": false, - "returnParameters": { - "id": 92, - "nodeType": "ParameterList", - "parameters": [], - "src": "3475:0:0" - }, - "scope": 532, - "src": "3387:351:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 177, - "nodeType": "Block", - "src": "4442:226:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 144, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 142, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4460:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 143, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "4470:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "4460:11:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 141, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "4452:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 145, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4452:20:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 146, - "nodeType": "ExpressionStatement", - "src": "4452:20:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 152, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 148, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4490:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 150, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4511:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 149, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 309 - ], - "referencedDeclaration": 309, - "src": "4501:9:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 151, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4501:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4490:27:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 147, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "4482:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4482:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "4482:36:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 164, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 155, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "4528:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 157, - "indexExpression": { - "argumentTypes": null, - "id": 156, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4537:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "4528:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 162, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4566:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 158, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "4546:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 160, - "indexExpression": { - "argumentTypes": null, - "id": 159, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "4555:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "4546:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 161, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "4546:19:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 163, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4546:28:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4528:46:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 165, - "nodeType": "ExpressionStatement", - "src": "4528:46:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 166, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "4584:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 169, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 167, - "name": "totalSupply_", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 30, - "src": "4599:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "id": 168, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4614:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4599:22:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "4584:37:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "4584:37:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 173, - "name": "_amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 134, - "src": "4643:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 174, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 136, - "src": "4652:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 172, - "name": "Unmint", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 47, - "src": "4636:6:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (uint256,string memory)" - } - }, - "id": 175, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "4636:25:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 176, - "nodeType": "EmitStatement", - "src": "4631:30:0" - } - ] - }, - "documentation": "Decrease the number of the tokenized shares. There are two use-cases for this function:\n 1) a capital decrease with a destruction of the shares, in which case the law requires that the\n destroyed shares are currently owned by the company.\n 2) a shareholder wants to take shares offline. This can only happen with the agreement of the \n the company. To do so, the shares must be transferred to the company first, the company call\n this function and then assigning the untokenized shares back to the shareholder in whatever\n way the new form (e.g. printed certificate) of the shares requires.", - "id": 178, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 139, - "modifierName": { - "argumentTypes": null, - "id": 138, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "4430:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "4430:11:0" - } - ], - "name": "unmint", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 137, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 134, - "name": "_amount", - "nodeType": "VariableDeclaration", - "scope": 178, - "src": "4389:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 133, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "4389:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 136, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 178, - "src": "4406:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 135, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "4406:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "4388:34:0" - }, - "payable": false, - "returnParameters": { - "id": 140, - "nodeType": "ParameterList", - "parameters": [], - "src": "4442:0:0" - }, - "scope": 532, - "src": "4373:295:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "constant": false, - "id": 181, - "name": "isPaused", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "4711:28:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 179, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "4711:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 180, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "4734:5:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "visibility": "public" - }, - { - "body": { - "id": 205, - "nodeType": "Block", - "src": "5135:97:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 196, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 194, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "5145:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 195, - "name": "_pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 183, - "src": "5156:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "src": "5145:17:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 197, - "nodeType": "ExpressionStatement", - "src": "5145:17:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 199, - "name": "_pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 183, - "src": "5183:6:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "id": 200, - "name": "_message", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 185, - "src": "5191:8:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - { - "argumentTypes": null, - "id": 201, - "name": "_newAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 187, - "src": "5201:11:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 202, - "name": "_fromBlock", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "5214:10:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 198, - "name": "Pause", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "5177:5:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_bool_$_t_string_memory_ptr_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (bool,string memory,address,uint256)" - } - }, - "id": 203, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5177:48:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 204, - "nodeType": "EmitStatement", - "src": "5172:53:0" - } - ] - }, - "documentation": "@dev Function to set pause.\n This could for example be used in case of a fork of the network, in which case all\n \"wrong\" forked contracts should be paused in their respective fork. Deciding which\n fork is the \"right\" one is up to the owner of the contract.", - "id": 206, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 192, - "modifierName": { - "argumentTypes": null, - "id": 191, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "5123:9:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "5123:11:0" - } - ], - "name": "pause", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 190, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 183, - "name": "_pause", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5045:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 182, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5045:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 185, - "name": "_message", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5058:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 184, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "5058:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 187, - "name": "_newAddress", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5075:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 186, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5075:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 189, - "name": "_fromBlock", - "nodeType": "VariableDeclaration", - "scope": 206, - "src": "5096:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 188, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5096:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5044:71:0" - }, - "payable": false, - "returnParameters": { - "id": 193, - "nodeType": "ParameterList", - "parameters": [], - "src": "5135:0:0" - }, - "scope": 532, - "src": "5030:202:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 216, - "name": "Pause", - "nodeType": "EventDefinition", - "parameters": { - "id": 215, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 208, - "indexed": false, - "name": "paused", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5250:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 207, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5250:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 210, - "indexed": false, - "name": "message", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5263:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 209, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "5263:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 212, - "indexed": false, - "name": "newAddress", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5279:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 211, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5279:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 214, - "indexed": false, - "name": "fromBlock", - "nodeType": "VariableDeclaration", - "scope": 216, - "src": "5299:17:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 213, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5299:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5249:68:0" - }, - "src": "5238:80:0" - }, - { - "body": { - "id": 237, - "nodeType": "Block", - "src": "5928:101:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [], - "expression": { - "argumentTypes": [], - "id": 225, - "name": "clearClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 930, - "src": "5938:10:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$__$returns$_t_uint256_$", - "typeString": "function () returns (uint256)" - } - }, - "id": 226, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5938:12:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 227, - "nodeType": "ExpressionStatement", - "src": "5938:12:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 229, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5977:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 230, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5977:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 231, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 218, - "src": "5989:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 232, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 220, - "src": "5994:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 228, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 297 - ], - "referencedDeclaration": 297, - "src": "5960:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 233, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5960:41:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 234, - "nodeType": "ExpressionStatement", - "src": "5960:41:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 235, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "6018:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 224, - "id": 236, - "nodeType": "Return", - "src": "6011:11:0" - } - ] - }, - "documentation": "@dev Transfer token for a specified address\n@param _to The address to transfer to.\n@param _value The amount to be transferred.", - "id": 238, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 221, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 218, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5877:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 217, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5877:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 220, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5890:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 219, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5890:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5876:29:0" - }, - "payable": false, - "returnParameters": { - "id": 224, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 223, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 238, - "src": "5922:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 222, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5922:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5921:6:0" - }, - "scope": 532, - "src": "5859:170:0", - "stateMutability": "nonpayable", - "superFunction": 1125, - "visibility": "public" - }, - { - "body": { - "id": 296, - "nodeType": "Block", - "src": "6114:264:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 249, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "6132:9:0", - "subExpression": { - "argumentTypes": null, - "id": 248, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "6133:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 247, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6124:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 250, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6124:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 251, - "nodeType": "ExpressionStatement", - "src": "6124:18:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 257, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 253, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6160:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 255, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "6175:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 254, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "6167:7:0", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 256, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6167:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "6160:17:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 252, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6152:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 258, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6152:26:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 259, - "nodeType": "ExpressionStatement", - "src": "6152:26:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 265, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 261, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6196:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 262, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6206:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 264, - "indexExpression": { - "argumentTypes": null, - "id": 263, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6215:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6206:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6196:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 260, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "6188:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6188:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 267, - "nodeType": "ExpressionStatement", - "src": "6188:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 277, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 268, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6232:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 270, - "indexExpression": { - "argumentTypes": null, - "id": 269, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6241:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6232:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 275, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6270:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 271, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6250:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 273, - "indexExpression": { - "argumentTypes": null, - "id": 272, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6259:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6250:15:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 274, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "6250:19:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 276, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6250:27:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6232:45:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 278, - "nodeType": "ExpressionStatement", - "src": "6232:45:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 288, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 279, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6287:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 281, - "indexExpression": { - "argumentTypes": null, - "id": 280, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6296:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6287:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 286, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6321:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 282, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6303:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 284, - "indexExpression": { - "argumentTypes": null, - "id": 283, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6312:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6303:13:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 285, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "6303:17:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 287, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6303:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "6287:41:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 289, - "nodeType": "ExpressionStatement", - "src": "6287:41:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 291, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 240, - "src": "6352:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 292, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 242, - "src": "6359:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 293, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 244, - "src": "6364:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 290, - "name": "Transfer", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1133, - "src": "6343:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 294, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6343:28:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 295, - "nodeType": "EmitStatement", - "src": "6338:33:0" - } - ] - }, - "documentation": null, - "id": 297, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "internalTransfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 245, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 240, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6061:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 239, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6061:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 242, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6076:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 241, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6076:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 244, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 297, - "src": "6089:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 243, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6089:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6060:44:0" - }, - "payable": false, - "returnParameters": { - "id": 246, - "nodeType": "ParameterList", - "parameters": [], - "src": "6114:0:0" - }, - "scope": 532, - "src": "6035:343:0", - "stateMutability": "nonpayable", - "superFunction": 1014, - "visibility": "internal" - }, - { - "body": { - "id": 308, - "nodeType": "Block", - "src": "6647:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 304, - "name": "balances", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 28, - "src": "6664:8:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 306, - "indexExpression": { - "argumentTypes": null, - "id": 305, - "name": "_owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 299, - "src": "6673:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6664:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 303, - "id": 307, - "nodeType": "Return", - "src": "6657:23:0" - } - ] - }, - "documentation": "@dev Gets the balance of the specified address.\n@param _owner The address to query the the balance of.\n@return An uint256 representing the amount owned by the passed address.", - "id": 309, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "balanceOf", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 300, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 299, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 309, - "src": "6601:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 298, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6601:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6600:16:0" - }, - "payable": false, - "returnParameters": { - "id": 303, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 302, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 309, - "src": "6638:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 301, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6638:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6637:9:0" - }, - "scope": 532, - "src": "6582:105:0", - "stateMutability": "view", - "superFunction": 1116, - "visibility": "public" - }, - { - "constant": false, - "id": 315, - "name": "allowed", - "nodeType": "VariableDeclaration", - "scope": 532, - "src": "6693:66:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - }, - "typeName": { - "id": 314, - "keyType": { - "id": 310, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6702:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "6693:49:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - }, - "valueType": { - "id": 313, - "keyType": { - "id": 311, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6722:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "6713:28:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - }, - "valueType": { - "id": 312, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6733:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "7125:206:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 334, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 327, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7143:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 328, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7153:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 330, - "indexExpression": { - "argumentTypes": null, - "id": 329, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7161:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7153:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 333, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 331, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7168:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 332, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7168:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7153:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7143:36:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 326, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7135:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 335, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7135:45:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 336, - "nodeType": "ExpressionStatement", - "src": "7135:45:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 352, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 337, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7190:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 341, - "indexExpression": { - "argumentTypes": null, - "id": 338, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7198:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7190:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 342, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 339, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7205:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 340, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7205:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7190:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 350, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7250:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 343, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "7219:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 345, - "indexExpression": { - "argumentTypes": null, - "id": 344, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7227:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7219:14:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 348, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 346, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7234:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 347, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7234:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7219:26:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 349, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "7219:30:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7219:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7190:67:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 353, - "nodeType": "ExpressionStatement", - "src": "7190:67:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 355, - "name": "_from", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 317, - "src": "7284:5:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 356, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 319, - "src": "7291:3:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 357, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 321, - "src": "7296:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 354, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 297 - ], - "referencedDeclaration": 297, - "src": "7267:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7267:36:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 359, - "nodeType": "ExpressionStatement", - "src": "7267:36:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 360, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7320:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 325, - "id": 361, - "nodeType": "Return", - "src": "7313:11:0" - } - ] - }, - "documentation": "@dev Transfer tokens from one address to another\n@param _from address The address which you want to send tokens from\n@param _to address The address which you want to transfer to\n@param _value uint256 the amount of tokens to be transferred", - "id": 363, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 322, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 317, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7059:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 316, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7059:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 319, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7074:11:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 318, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7074:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 321, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7087:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 320, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7087:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7058:44:0" - }, - "payable": false, - "returnParameters": { - "id": 325, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 324, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 363, - "src": "7119:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 323, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "7119:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7118:6:0" - }, - "scope": 532, - "src": "7037:294:0", - "stateMutability": "nonpayable", - "superFunction": 1084, - "visibility": "public" - }, - { - "body": { - "id": 395, - "nodeType": "Block", - "src": "8024:157:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 374, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "8042:9:0", - "subExpression": { - "argumentTypes": null, - "id": 373, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "8043:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 372, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "8034:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8034:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 376, - "nodeType": "ExpressionStatement", - "src": "8034:18:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 384, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 377, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "8062:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 381, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 378, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "8070:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8070:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8062:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 382, - "indexExpression": { - "argumentTypes": null, - "id": 380, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "8082:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "8062:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 383, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 367, - "src": "8094:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "8062:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 385, - "nodeType": "ExpressionStatement", - "src": "8062:38:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 387, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "8124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 388, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 389, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "8136:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 390, - "name": "_value", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 367, - "src": "8146:6:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 386, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "8115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8115:38:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "EmitStatement", - "src": "8110:43:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 393, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8170:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 371, - "id": 394, - "nodeType": "Return", - "src": "8163:11:0" - } - ] - }, - "documentation": "@dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\nBeware that changing an allowance with this method brings the risk that someone may use both the old\nand the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\nrace condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:\nhttps://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n@param _spender The address which will spend the funds.\n@param _value The amount of tokens to be spent.", - "id": 396, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 368, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "7968:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 364, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7968:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 367, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "7986:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 366, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7986:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7967:34:0" - }, - "payable": false, - "returnParameters": { - "id": 371, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 370, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 396, - "src": "8018:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 369, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "8018:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8017:6:0" - }, - "scope": 532, - "src": "7951:230:0", - "stateMutability": "nonpayable", - "superFunction": 1093, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 404, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 403, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 398, - "indexed": false, - "name": "approver", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8202:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 397, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8202:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 400, - "indexed": false, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8220:15:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 399, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8220:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 402, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 404, - "src": "8237:13:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 401, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8237:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8201:50:0" - }, - "src": "8187:65:0" - }, - { - "body": { - "id": 419, - "nodeType": "Block", - "src": "8655:49:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 413, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "8672:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 415, - "indexExpression": { - "argumentTypes": null, - "id": 414, - "name": "_owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 406, - "src": "8680:6:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8672:15:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 417, - "indexExpression": { - "argumentTypes": null, - "id": 416, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 408, - "src": "8688:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8672:25:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 412, - "id": 418, - "nodeType": "Return", - "src": "8665:32:0" - } - ] - }, - "documentation": "@dev Function to check the amount of tokens that an owner allowed to a spender.\n@param _owner address The address which owns the funds.\n@param _spender address The address which will spend the funds.\n@return A uint256 specifying the amount of tokens still available for the spender.", - "id": 420, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 409, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 406, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8591:14:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 405, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8591:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 408, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8607:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 407, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8607:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8590:34:0" - }, - "payable": false, - "returnParameters": { - "id": 412, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 411, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 420, - "src": "8646:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 410, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8646:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8645:9:0" - }, - "scope": 532, - "src": "8572:132:0", - "stateMutability": "view", - "superFunction": 1073, - "visibility": "public" - }, - { - "body": { - "id": 465, - "nodeType": "Block", - "src": "9245:220:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 431, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "9263:9:0", - "subExpression": { - "argumentTypes": null, - "id": 430, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "9264:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 429, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "9255:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 432, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9255:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 433, - "nodeType": "ExpressionStatement", - "src": "9255:18:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 449, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 434, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9283:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 438, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 435, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9291:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 436, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9291:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9283:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 439, - "indexExpression": { - "argumentTypes": null, - "id": 437, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9303:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "9283:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 447, - "name": "_addedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "9349:11:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 440, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9315:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 443, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 441, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9323:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 442, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9323:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9315:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 445, - "indexExpression": { - "argumentTypes": null, - "id": 444, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9335:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9315:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "add", - "nodeType": "MemberAccess", - "referencedDeclaration": 1378, - "src": "9315:33:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 448, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9315:46:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "9283:78:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 450, - "nodeType": "ExpressionStatement", - "src": "9283:78:0" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 452, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9385:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 453, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9385:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 454, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9397:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 455, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "9407:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 458, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 456, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "9415:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 457, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "9415:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9407:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 460, - "indexExpression": { - "argumentTypes": null, - "id": 459, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "9427:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "9407:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 451, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "9376:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 461, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "9376:61:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 462, - "nodeType": "EmitStatement", - "src": "9371:66:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 463, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "9454:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 428, - "id": 464, - "nodeType": "Return", - "src": "9447:11:0" - } - ] - }, - "documentation": "@dev Increase the amount of tokens that an owner allowed to a spender.\napprove should be called when allowed[_spender] == 0. To increment\nallowed value is better to use this function to avoid 2 calls (and wait until\nthe first transaction is mined)\nFrom MonolithDAO Token.sol\n@param _spender The address which will spend the funds.\n@param _addedValue The amount of tokens to increase the allowance by.", - "id": 466, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "increaseApproval", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 425, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 422, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9184:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 421, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "9184:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 424, - "name": "_addedValue", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9202:19:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 423, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "9202:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9183:39:0" - }, - "payable": false, - "returnParameters": { - "id": 428, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 427, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 466, - "src": "9239:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 426, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "9239:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9238:6:0" - }, - "scope": 532, - "src": "9158:307:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 530, - "nodeType": "Block", - "src": "10016:383:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 477, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "10034:9:0", - "subExpression": { - "argumentTypes": null, - "id": 476, - "name": "isPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "10035:8:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 475, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "10026:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 478, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10026:18:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 479, - "nodeType": "ExpressionStatement", - "src": "10026:18:0" - }, - { - "assignments": [ - 481 - ], - "declarations": [ - { - "constant": false, - "id": 481, - "name": "oldValue", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "10054:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 480, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "10054:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 488, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10073:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 485, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 483, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10081:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 484, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10081:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10073:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 487, - "indexExpression": { - "argumentTypes": null, - "id": 486, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10093:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10073:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "10054:48:0" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 489, - "name": "_subtractedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 470, - "src": "10116:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "id": 490, - "name": "oldValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 481, - "src": "10135:8:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "10116:27:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": { - "id": 514, - "nodeType": "Block", - "src": "10209:87:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 502, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10223:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 503, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10231:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 504, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10231:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10223:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 507, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10243:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "10223:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 510, - "name": "_subtractedValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 470, - "src": "10268:16:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 508, - "name": "oldValue", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 481, - "src": "10255:8:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 509, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sub", - "nodeType": "MemberAccess", - "referencedDeclaration": 1354, - "src": "10255:12:0", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 511, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10255:30:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "10223:62:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "10223:62:0" - } - ] - }, - "id": 515, - "nodeType": "IfStatement", - "src": "10112:184:0", - "trueBody": { - "id": 501, - "nodeType": "Block", - "src": "10145:58:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 499, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 492, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10159:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 496, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 493, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10167:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 494, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10167:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10159:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 497, - "indexExpression": { - "argumentTypes": null, - "id": 495, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10179:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "10159:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "30", - "id": 498, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "10191:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "10159:33:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 500, - "nodeType": "ExpressionStatement", - "src": "10159:33:0" - } - ] - } - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 517, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10319:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 518, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10319:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 519, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10331:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 520, - "name": "allowed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "10341:7:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(address => mapping(address => uint256))" - } - }, - "id": 523, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 521, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "10349:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "10349:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10341:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 525, - "indexExpression": { - "argumentTypes": null, - "id": 524, - "name": "_spender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 468, - "src": "10361:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "10341:29:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 516, - "name": "Approval", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 404 - ], - "referencedDeclaration": 404, - "src": "10310:8:0", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 526, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "10310:61:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 527, - "nodeType": "EmitStatement", - "src": "10305:66:0" - }, - { - "expression": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 528, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "10388:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "functionReturnParameters": 474, - "id": 529, - "nodeType": "Return", - "src": "10381:11:0" - } - ] - }, - "documentation": "@dev Decrease the amount of tokens that an owner allowed to a spender.\napprove should be called when allowed[_spender] == 0. To decrement\nallowed value is better to use this function to avoid 2 calls (and wait until\nthe first transaction is mined)\nFrom MonolithDAO Token.sol\n@param _spender The address which will spend the funds.\n@param _subtractedValue The amount of tokens to decrease the allowance by.", - "id": 531, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "decreaseApproval", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 471, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 468, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "9950:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 467, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "9950:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 470, - "name": "_subtractedValue", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "9968:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 469, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "9968:7:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "9949:44:0" - }, - "payable": false, - "returnParameters": { - "id": 474, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 473, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 531, - "src": "10010:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 472, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "10010:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "10009:6:0" - }, - "scope": 532, - "src": "9924:475:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 533, - "src": "1892:8510:0" - } - ], - "src": "0:10402:0" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.156Z" -} \ No newline at end of file From 4e081d6fc612d6cee8ae68538f00cb1bfd798427 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:19:47 +0100 Subject: [PATCH 2/7] Delete Claimable.json --- AlethenaShares/build/contracts/Claimable.json | 14558 ---------------- 1 file changed, 14558 deletions(-) delete mode 100644 AlethenaShares/build/contracts/Claimable.json diff --git a/AlethenaShares/build/contracts/Claimable.json b/AlethenaShares/build/contracts/Claimable.json deleted file mode 100644 index 3d045885..00000000 --- a/AlethenaShares/build/contracts/Claimable.json +++ /dev/null @@ -1,14558 +0,0 @@ -{ - "contractName": "Claimable", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "preClaims", - "outputs": [ - { - "name": "msghash", - "type": "bytes32" - }, - { - "name": "timestamp", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "collateralRate", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "who", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "claimPeriod", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "to", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "claims", - "outputs": [ - { - "name": "claimant", - "type": "address" - }, - { - "name": "collateral", - "type": "uint256" - }, - { - "name": "timestamp", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "preClaimPeriod", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "master", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "_balance", - "type": "uint256" - } - ], - "name": "ClaimMade", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_claimer", - "type": "address" - } - ], - "name": "ClaimPrepared", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimCleared", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimDeleted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_lostAddress", - "type": "address" - }, - { - "indexed": true, - "name": "_claimant", - "type": "address" - }, - { - "indexed": false, - "name": "collateral", - "type": "uint256" - } - ], - "name": "ClaimResolved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_collateralRate", - "type": "uint256" - }, - { - "indexed": false, - "name": "_claimPeriodInDays", - "type": "uint256" - } - ], - "name": "ClaimParametersChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "name": "_collateralRateInWei", - "type": "uint256" - }, - { - "name": "_claimPeriodInDays", - "type": "uint256" - } - ], - "name": "setClaimParameters", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_hashedpackage", - "type": "bytes32" - } - ], - "name": "prepareClaim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - }, - { - "name": "_nonce", - "type": "bytes32" - } - ], - "name": "declareLost", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getClaimant", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getCollateral", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "getTimeStamp", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_claimerAddress", - "type": "address" - } - ], - "name": "getPreClaimTimeStamp", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_claimerAddress", - "type": "address" - } - ], - "name": "getMsgHash", - "outputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "clearClaim", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "resolveClaim", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_lostAddress", - "type": "address" - } - ], - "name": "deleteClaim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "sourceMap": "", - "deployedSourceMap": "", - "source": "pragma solidity ^0.4.24;\n\nimport \"./SafeMath.sol\";\nimport \"./Ownable.sol\";\nimport \"./ERC20Basic.sol\";\n\n/**\n * @title Claimable\n * In case of tokens that represent real-world assets such as shares of a company, one needs a way\n * to handle lost private keys. With physical certificates, courts can declare share certificates as\n * invalid so the company can issue replacements. Here, we want a solution that does not depend on \n * third parties to resolve such cases. Instead, when someone has lost a private key, he can use the\n * declareLost function to post a deposit and claim that the shares assigned to a specific address are\n * lost. To prevent front running, a commit reveal scheme is used. If he actually is the owner of the shares,\n * he needs to wait for a certain period and can then reclaim the lost shares as well as the deposit. \n * If he is an attacker trying to claim shares belonging to someone else, he risks losing the deposit \n * as it can be claimed at anytime by the rightful owner.\n * Furthermore, the company itself can delete claims at any time and take the deposit. So in order to\n * use this functionality, one needs to trust the company to do the right thing and to handle potential\n * disputes responsibly. If you do not trust the company to do so, don't lose your private keys. :)\n */\ncontract Claimable is ERC20Basic, Ownable {\n\n using SafeMath for uint256;\n\n struct Claim {\n address claimant; // the person who created the claim\n uint256 collateral; // the amount of wei deposited\n uint256 timestamp; // the timestamp of the block in which the claim was made\n }\n\n struct PreClaim {\n bytes32 msghash; // the hash of nonce + address to be claimed\n uint256 timestamp; // the timestamp of the block in which the preclaim was made\n }\n\n /** @param collateralRate Sets the collateral needed per share to file a claim */\n uint256 public collateralRate = 1 ether;\n\n uint256 public claimPeriod = 60*60*24*30; // In seconds ;\n uint256 public preClaimPeriod = 60*60*24; // In seconds ;\n\n mapping(address => Claim) public claims; // there can be at most one claim per address, here address is claimed address\n mapping(address => PreClaim) public preClaims; // there can be at most one preclaim per address, here address is claimer\n\n\n function setClaimParameters(uint256 _collateralRateInWei, uint256 _claimPeriodInDays) public onlyOwner() {\n uint256 claimPeriodInSeconds = _claimPeriodInDays*60*60*24;\n require(_collateralRateInWei > 0);\n require(_claimPeriodInDays > 30); // must be at least 30 days\n collateralRate = _collateralRateInWei;\n claimPeriod = claimPeriodInSeconds;\n emit ClaimParametersChanged(collateralRate, claimPeriod);\n }\n\n event ClaimMade(address indexed _lostAddress, address indexed _claimant, uint256 _balance);\n event ClaimPrepared(address indexed _claimer);\n event ClaimCleared(address indexed _lostAddress, uint256 collateral);\n event ClaimDeleted(address indexed _lostAddress, address indexed _claimant, uint256 collateral);\n event ClaimResolved(address indexed _lostAddress, address indexed _claimant, uint256 collateral);\n event ClaimParametersChanged(uint256 _collateralRate, uint256 _claimPeriodInDays); \n \n \n /** Anyone can declare that the private key to a certain address was lost by calling declareLost\n * providing a deposit/collateral. There are three possibilities of what can happen with the claim:\n * 1) The claim period expires and the claimant can get the deposit and the shares back by calling resolveClaim\n * 2) The \"lost\" private key is used at any time to call clearClaim. In that case, the claim is deleted and\n * the deposit sent to the shareholder (the owner of the private key). It is recommended to call resolveClaim\n * whenever someone transfers funds to let claims be resolved automatically when the \"lost\" private key is\n * used again.\n * 3) The owner deletes the claim and assigns the deposit to himself. This is intended to be used to resolve\n * disputes. Who is entitled to keep the deposit depends on the contractual agreements between the involved\n * parties and in particular the issuance terms. Generally, using this function implies that you have to trust\n * the issuer of the tokens to handle the situation well. As a rule of thumb, the contract owner should assume\n * the owner of the lost address to be the rightful owner of the deposit. \n * It is highly recommended that the owner observes the claims made and informs the owners of the claimed addresses\n * whenever a claim is made for their address (this of course is only possible if they are known to the owner, e.g.\n * through a shareholder register).\n * To prevent frontrunning attacks, a claim can only be made if the information revealed when calling \"declareLost\" \n * was previously commited using the \"prepareClaim\" function. \n */\n\n function prepareClaim(bytes32 _hashedpackage) public{\n preClaims[msg.sender] = PreClaim({ \n msghash: _hashedpackage,\n timestamp: block.timestamp\n });\n emit ClaimPrepared(msg.sender);\n }\n\n function validateClaim(address _lostAddress, bytes32 _nonce) private view returns (bool){\n PreClaim memory preClaim = preClaims[msg.sender];\n require(preClaim.msghash != 0);\n require(preClaim.timestamp + preClaimPeriod <= block.timestamp);\n require(preClaim.timestamp + 2*preClaimPeriod >= block.timestamp);\n return preClaim.msghash == keccak256(abi.encodePacked(_nonce, msg.sender, _lostAddress));\n }\n\n function declareLost(address _lostAddress, bytes32 _nonce) public payable{\n uint256 balance = balanceOf(_lostAddress);\n require(balance > 0);\n require(msg.value >= balance.mul(collateralRate));\n require(claims[_lostAddress].collateral == 0);\n require(validateClaim(_lostAddress, _nonce));\n\n claims[_lostAddress] = Claim({\n claimant: msg.sender,\n collateral: msg.value,\n timestamp: block.timestamp\n });\n delete preClaims[msg.sender];\n emit ClaimMade(_lostAddress, msg.sender, balance);\n }\n\n function getClaimant(address _lostAddress) public view returns (address){\n return claims[_lostAddress].claimant;\n }\n\n function getCollateral(address _lostAddress) public view returns (uint256){\n return claims[_lostAddress].collateral;\n }\n\n function getTimeStamp(address _lostAddress) public view returns (uint256){\n return claims[_lostAddress].timestamp;\n }\n\n function getPreClaimTimeStamp(address _claimerAddress) public view returns (uint256){\n return preClaims[_claimerAddress].timestamp;\n }\n\n function getMsgHash(address _claimerAddress) public view returns (bytes32){\n return preClaims[_claimerAddress].msghash;\n }\n\n /**\n * @dev Clears a claim after the key has been found again and assigns the collateral to the \"lost\" address.\n */\n function clearClaim() public returns (uint256){\n uint256 collateral = claims[msg.sender].collateral;\n if (collateral != 0){\n delete claims[msg.sender];\n msg.sender.transfer(collateral);\n emit ClaimCleared(msg.sender, collateral);\n return collateral;\n } else {\n return 0;\n }\n }\n \n /** \n * @dev This function is used to resolve a claim.\n * @dev After waiting period the tokens on the lost address and collateral can be transferred.\n */\n function resolveClaim(address _lostAddress) public returns (uint256){\n Claim memory claim = claims[_lostAddress];\n require(claim.collateral != 0, \"No claim found\");\n require(claim.claimant == msg.sender);\n require(claim.timestamp + claimPeriod <= block.timestamp); \n address claimant = claim.claimant;\n delete claims[_lostAddress];\n claimant.transfer(claim.collateral);\n internalTransfer(_lostAddress, claimant, balanceOf(_lostAddress));\n emit ClaimResolved(_lostAddress, claimant, claim.collateral);\n return claim.collateral;\n }\n\n function internalTransfer(address _from, address _to, uint256 _value) internal;\n\n /** @dev This function is to be executed by the owner only in case a dispute needs to be resolved manually. */\n function deleteClaim(address _lostAddress) public onlyOwner(){\n Claim memory claim = claims[_lostAddress];\n require(claim.collateral != 0, \"No claim found\");\n delete claims[_lostAddress];\n claim.claimant.transfer(claim.collateral);\n emit ClaimDeleted(_lostAddress, claim.claimant, claim.collateral);\n }\n\n}", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Claimable.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Claimable.sol", - "exportedSymbols": { - "Claimable": [ - 1059 - ] - }, - "id": 1060, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 534, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:1" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "file": "./SafeMath.sol", - "id": 535, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1380, - "src": "26:24:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Ownable.sol", - "file": "./Ownable.sol", - "id": 536, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1286, - "src": "51:23:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 537, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1135, - "src": "75:26:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 538, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1134, - "src": "1337:10:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1134", - "typeString": "contract ERC20Basic" - } - }, - "id": 539, - "nodeType": "InheritanceSpecifier", - "src": "1337:10:1" - }, - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 540, - "name": "Ownable", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1285, - "src": "1349:7:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Ownable_$1285", - "typeString": "contract Ownable" - } - }, - "id": 541, - "nodeType": "InheritanceSpecifier", - "src": "1349:7:1" - } - ], - "contractDependencies": [ - 1134, - 1285 - ], - "contractKind": "contract", - "documentation": "@title Claimable\nIn case of tokens that represent real-world assets such as shares of a company, one needs a way\nto handle lost private keys. With physical certificates, courts can declare share certificates as\ninvalid so the company can issue replacements. Here, we want a solution that does not depend on \nthird parties to resolve such cases. Instead, when someone has lost a private key, he can use the\ndeclareLost function to post a deposit and claim that the shares assigned to a specific address are\nlost. To prevent front running, a commit reveal scheme is used. If he actually is the owner of the shares,\nhe needs to wait for a certain period and can then reclaim the lost shares as well as the deposit. \nIf he is an attacker trying to claim shares belonging to someone else, he risks losing the deposit \nas it can be claimed at anytime by the rightful owner.\nFurthermore, the company itself can delete claims at any time and take the deposit. So in order to\nuse this functionality, one needs to trust the company to do the right thing and to handle potential\ndisputes responsibly. If you do not trust the company to do so, don't lose your private keys. :)", - "fullyImplemented": false, - "id": 1059, - "linearizedBaseContracts": [ - 1059, - 1285, - 1134 - ], - "name": "Claimable", - "nodeType": "ContractDefinition", - "nodes": [ - { - "id": 544, - "libraryName": { - "contractScope": null, - "id": 542, - "name": "SafeMath", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1379, - "src": "1370:8:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$1379", - "typeString": "library SafeMath" - } - }, - "nodeType": "UsingForDirective", - "src": "1364:27:1", - "typeName": { - "id": 543, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1383:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - { - "canonicalName": "Claimable.Claim", - "id": 551, - "members": [ - { - "constant": false, - "id": 546, - "name": "claimant", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1420:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 545, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1420:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 548, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1482:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 547, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1482:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 550, - "name": "timestamp", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1541:17:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 549, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1541:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "name": "Claim", - "nodeType": "StructDefinition", - "scope": 1059, - "src": "1397:227:1", - "visibility": "public" - }, - { - "canonicalName": "Claimable.PreClaim", - "id": 556, - "members": [ - { - "constant": false, - "id": 553, - "name": "msghash", - "nodeType": "VariableDeclaration", - "scope": 556, - "src": "1656:15:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 552, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "1656:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 555, - "name": "timestamp", - "nodeType": "VariableDeclaration", - "scope": 556, - "src": "1726:17:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 554, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1726:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "name": "PreClaim", - "nodeType": "StructDefinition", - "scope": 1059, - "src": "1630:182:1", - "visibility": "public" - }, - { - "constant": false, - "id": 559, - "name": "collateralRate", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "1904:39:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 557, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1904:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "31", - "id": 558, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1936:7:1", - "subdenomination": "ether", - "typeDescriptions": { - "typeIdentifier": "t_rational_1000000000000000000_by_1", - "typeString": "int_const 1000000000000000000" - }, - "value": "1" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 568, - "name": "claimPeriod", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "1950:40:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 560, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1950:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_2592000_by_1", - "typeString": "int_const 2592000" - }, - "id": 567, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - }, - "id": 565, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - }, - "id": 563, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 561, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1979:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 562, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1982:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "1979:5:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 564, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1985:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "1979:8:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3330", - "id": 566, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1988:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_30_by_1", - "typeString": "int_const 30" - }, - "value": "30" - }, - "src": "1979:11:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_2592000_by_1", - "typeString": "int_const 2592000" - } - }, - "visibility": "public" - }, - { - "constant": false, - "id": 575, - "name": "preClaimPeriod", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2012:40:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2012:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - }, - "id": 574, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - }, - "id": 572, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 570, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2044:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 571, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2047:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2044:5:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 573, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2050:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "2044:8:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - } - }, - "visibility": "public" - }, - { - "constant": false, - "id": 579, - "name": "claims", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2075:39:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim)" - }, - "typeName": { - "id": 578, - "keyType": { - "id": 576, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2083:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2075:25:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim)" - }, - "valueType": { - "contractScope": null, - "id": 577, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "2094:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 583, - "name": "preClaims", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2199:45:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim)" - }, - "typeName": { - "id": 582, - "keyType": { - "id": 580, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2207:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2199:28:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim)" - }, - "valueType": { - "contractScope": null, - "id": 581, - "name": "PreClaim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 556, - "src": "2218:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage_ptr", - "typeString": "struct Claimable.PreClaim" - } - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 627, - "nodeType": "Block", - "src": "2431:345:1", - "statements": [ - { - "assignments": [ - 593 - ], - "declarations": [ - { - "constant": false, - "id": 593, - "name": "claimPeriodInSeconds", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2441:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 592, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2441:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 601, - "initialValue": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 600, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 598, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 596, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 594, - "name": "_claimPeriodInDays", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 587, - "src": "2472:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 595, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2491:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2472:21:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 597, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2494:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2472:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 599, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2497:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "2472:27:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "2441:58:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 605, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 603, - "name": "_collateralRateInWei", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 585, - "src": "2517:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 604, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2540:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "2517:24:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 602, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "2509:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 606, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2509:33:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 607, - "nodeType": "ExpressionStatement", - "src": "2509:33:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 611, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 609, - "name": "_claimPeriodInDays", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 587, - "src": "2560:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3330", - "id": 610, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2581:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_30_by_1", - "typeString": "int_const 30" - }, - "value": "30" - }, - "src": "2560:23:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 608, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "2552:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 612, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2552:32:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 613, - "nodeType": "ExpressionStatement", - "src": "2552:32:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 616, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 614, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "2622:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 615, - "name": "_collateralRateInWei", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 585, - "src": "2639:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2622:37:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 617, - "nodeType": "ExpressionStatement", - "src": "2622:37:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 620, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 618, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "2669:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 619, - "name": "claimPeriodInSeconds", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 593, - "src": "2683:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2669:34:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 621, - "nodeType": "ExpressionStatement", - "src": "2669:34:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 623, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "2741:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 624, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "2757:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 622, - "name": "ClaimParametersChanged", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 668, - "src": "2718:22:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", - "typeString": "function (uint256,uint256)" - } - }, - "id": 625, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2718:51:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 626, - "nodeType": "EmitStatement", - "src": "2713:56:1" - } - ] - }, - "documentation": null, - "id": 628, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 590, - "modifierName": { - "argumentTypes": null, - "id": 589, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "2419:9:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "2419:11:1" - } - ], - "name": "setClaimParameters", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 588, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 585, - "name": "_collateralRateInWei", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2354:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 584, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2354:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 587, - "name": "_claimPeriodInDays", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2384:26:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 586, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2384:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2353:58:1" - }, - "payable": false, - "returnParameters": { - "id": 591, - "nodeType": "ParameterList", - "parameters": [], - "src": "2431:0:1" - }, - "scope": 1059, - "src": "2326:450:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 636, - "name": "ClaimMade", - "nodeType": "EventDefinition", - "parameters": { - "id": 635, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 630, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2798:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 629, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2798:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 632, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2828:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 631, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2828:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 634, - "indexed": false, - "name": "_balance", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2855:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 633, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2855:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2797:75:1" - }, - "src": "2782:91:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 640, - "name": "ClaimPrepared", - "nodeType": "EventDefinition", - "parameters": { - "id": 639, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 638, - "indexed": true, - "name": "_claimer", - "nodeType": "VariableDeclaration", - "scope": 640, - "src": "2898:24:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 637, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2898:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2897:26:1" - }, - "src": "2878:46:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 646, - "name": "ClaimCleared", - "nodeType": "EventDefinition", - "parameters": { - "id": 645, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 642, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 646, - "src": "2948:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 641, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2948:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 644, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 646, - "src": "2978:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 643, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2978:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2947:50:1" - }, - "src": "2929:69:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 654, - "name": "ClaimDeleted", - "nodeType": "EventDefinition", - "parameters": { - "id": 653, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 648, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3022:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 647, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3022:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 650, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3052:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 649, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3052:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 652, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3079:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 651, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3079:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3021:77:1" - }, - "src": "3003:96:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 662, - "name": "ClaimResolved", - "nodeType": "EventDefinition", - "parameters": { - "id": 661, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 656, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3124:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 655, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3124:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 658, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3154:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 657, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3154:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 660, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3181:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 659, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3181:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3123:77:1" - }, - "src": "3104:97:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 668, - "name": "ClaimParametersChanged", - "nodeType": "EventDefinition", - "parameters": { - "id": 667, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 664, - "indexed": false, - "name": "_collateralRate", - "nodeType": "VariableDeclaration", - "scope": 668, - "src": "3235:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 663, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3235:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 666, - "indexed": false, - "name": "_claimPeriodInDays", - "nodeType": "VariableDeclaration", - "scope": 668, - "src": "3260:27:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 665, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3260:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3234:54:1" - }, - "src": "3206:83:1" - }, - { - "body": { - "id": 689, - "nodeType": "Block", - "src": "5042:179:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 682, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 673, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "5052:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 676, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 674, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5062:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 675, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5062:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "5052:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 678, - "name": "_hashedpackage", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 670, - "src": "5109:14:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 679, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5148:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 680, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5148:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": null, - "id": 677, - "name": "PreClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 556, - "src": "5076:8:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_PreClaim_$556_storage_ptr_$", - "typeString": "type(struct Claimable.PreClaim storage pointer)" - } - }, - "id": 681, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [ - "msghash", - "timestamp" - ], - "nodeType": "FunctionCall", - "src": "5076:98:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "src": "5052:122:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 683, - "nodeType": "ExpressionStatement", - "src": "5052:122:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 685, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5203:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 686, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5203:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 684, - "name": "ClaimPrepared", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 640, - "src": "5189:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 687, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5189:25:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 688, - "nodeType": "EmitStatement", - "src": "5184:30:1" - } - ] - }, - "documentation": "Anyone can declare that the private key to a certain address was lost by calling declareLost\nproviding a deposit/collateral. There are three possibilities of what can happen with the claim:\n1) The claim period expires and the claimant can get the deposit and the shares back by calling resolveClaim\n2) The \"lost\" private key is used at any time to call clearClaim. In that case, the claim is deleted and\n the deposit sent to the shareholder (the owner of the private key). It is recommended to call resolveClaim\n whenever someone transfers funds to let claims be resolved automatically when the \"lost\" private key is\n used again.\n3) The owner deletes the claim and assigns the deposit to himself. This is intended to be used to resolve\n disputes. Who is entitled to keep the deposit depends on the contractual agreements between the involved\n parties and in particular the issuance terms. Generally, using this function implies that you have to trust\n the issuer of the tokens to handle the situation well. As a rule of thumb, the contract owner should assume\n the owner of the lost address to be the rightful owner of the deposit. \nIt is highly recommended that the owner observes the claims made and informs the owners of the claimed addresses\nwhenever a claim is made for their address (this of course is only possible if they are known to the owner, e.g.\nthrough a shareholder register).\nTo prevent frontrunning attacks, a claim can only be made if the information revealed when calling \"declareLost\" \nwas previously commited using the \"prepareClaim\" function. ", - "id": 690, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "prepareClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 671, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 670, - "name": "_hashedpackage", - "nodeType": "VariableDeclaration", - "scope": 690, - "src": "5012:22:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 669, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5012:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5011:24:1" - }, - "payable": false, - "returnParameters": { - "id": 672, - "nodeType": "ParameterList", - "parameters": [], - "src": "5042:0:1" - }, - "scope": 1059, - "src": "4990:231:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 748, - "nodeType": "Block", - "src": "5315:351:1", - "statements": [ - { - "assignments": [ - 700 - ], - "declarations": [ - { - "constant": false, - "id": 700, - "name": "preClaim", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5325:24:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim" - }, - "typeName": { - "contractScope": null, - "id": 699, - "name": "PreClaim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 556, - "src": "5325:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage_ptr", - "typeString": "struct Claimable.PreClaim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 705, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 701, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "5352:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 704, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 702, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5362:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 703, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5362:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "5352:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "5325:48:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "id": 710, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 707, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5391:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 708, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "5391:16:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 709, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5411:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5391:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 706, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5383:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 711, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5383:30:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 712, - "nodeType": "ExpressionStatement", - "src": "5383:30:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 720, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 717, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 714, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5431:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 715, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "5431:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 716, - "name": "preClaimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 575, - "src": "5452:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5431:35:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 718, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5470:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 719, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5470:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5431:54:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 713, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5423:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 721, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5423:63:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 722, - "nodeType": "ExpressionStatement", - "src": "5423:63:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 732, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 729, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 724, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5504:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 725, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "5504:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 728, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "32", - "id": 726, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5525:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_2_by_1", - "typeString": "int_const 2" - }, - "value": "2" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "id": 727, - "name": "preClaimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 575, - "src": "5527:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5525:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5504:37:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 730, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5545:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 731, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5545:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5504:56:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 723, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5496:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 733, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5496:65:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 734, - "nodeType": "ExpressionStatement", - "src": "5496:65:1" - }, - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "id": 746, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 735, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5578:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 736, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "5578:16:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 740, - "name": "_nonce", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 694, - "src": "5625:6:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 741, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5633:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 742, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5633:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 743, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 692, - "src": "5645:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 738, - "name": "abi", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1381, - "src": "5608:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_abi", - "typeString": "abi" - } - }, - "id": 739, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "memberName": "encodePacked", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5608:16:1", - "typeDescriptions": { - "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", - "typeString": "function () pure returns (bytes memory)" - } - }, - "id": 744, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5608:50:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - ], - "id": 737, - "name": "keccak256", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1388, - "src": "5598:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", - "typeString": "function () pure returns (bytes32)" - } - }, - "id": 745, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5598:61:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "src": "5578:81:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 698, - "id": 747, - "nodeType": "Return", - "src": "5571:88:1" - } - ] - }, - "documentation": null, - "id": 749, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "validateClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 695, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 692, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5250:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 691, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5250:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 694, - "name": "_nonce", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5272:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 693, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5272:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5249:38:1" - }, - "payable": false, - "returnParameters": { - "id": 698, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 697, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5310:4:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 696, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5310:4:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5309:6:1" - }, - "scope": 1059, - "src": "5227:439:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "private" - }, - { - "body": { - "id": 820, - "nodeType": "Block", - "src": "5745:513:1", - "statements": [ - { - "assignments": [ - 757 - ], - "declarations": [ - { - "constant": false, - "id": 757, - "name": "balance", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5755:15:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 756, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5755:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 761, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 759, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5783:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 758, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1116, - "src": "5773:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 760, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5773:23:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "5755:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 765, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 763, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "5814:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 764, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5824:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5814:11:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 762, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5806:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 766, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5806:20:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 767, - "nodeType": "ExpressionStatement", - "src": "5806:20:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 775, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 769, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5844:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 770, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5844:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 773, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "5869:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 771, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "5857:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 772, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "mul", - "nodeType": "MemberAccess", - "referencedDeclaration": 1320, - "src": "5857:11:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 774, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5857:27:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5844:40:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 768, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5836:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 776, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5836:49:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 777, - "nodeType": "ExpressionStatement", - "src": "5836:49:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 784, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 779, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "5903:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 781, - "indexExpression": { - "argumentTypes": null, - "id": 780, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5910:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "5903:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 782, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "5903:31:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 783, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5938:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5903:36:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 778, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5895:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 785, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5895:45:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 786, - "nodeType": "ExpressionStatement", - "src": "5895:45:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 789, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5972:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 790, - "name": "_nonce", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 753, - "src": "5986:6:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - ], - "id": 788, - "name": "validateClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 749, - "src": "5958:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$_t_bytes32_$returns$_t_bool_$", - "typeString": "function (address,bytes32) view returns (bool)" - } - }, - "id": 791, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5958:35:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 787, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5950:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 792, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5950:44:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 793, - "nodeType": "ExpressionStatement", - "src": "5950:44:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 805, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 794, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6005:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 796, - "indexExpression": { - "argumentTypes": null, - "id": 795, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "6012:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6005:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 798, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6058:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 799, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6058:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 800, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6094:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 801, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6094:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 802, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "6128:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 803, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6128:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": null, - "id": 797, - "name": "Claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "6028:5:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_Claim_$551_storage_ptr_$", - "typeString": "type(struct Claimable.Claim storage pointer)" - } - }, - "id": 804, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [ - "claimant", - "collateral", - "timestamp" - ], - "nodeType": "FunctionCall", - "src": "6028:126:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory", - "typeString": "struct Claimable.Claim memory" - } - }, - "src": "6005:149:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 806, - "nodeType": "ExpressionStatement", - "src": "6005:149:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 811, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "6164:28:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 807, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6171:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 810, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 808, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6181:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 809, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6181:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6171:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 812, - "nodeType": "ExpressionStatement", - "src": "6164:28:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 814, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "6217:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 815, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6231:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 816, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6231:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 817, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "6243:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 813, - "name": "ClaimMade", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 636, - "src": "6207:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 818, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6207:44:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 819, - "nodeType": "EmitStatement", - "src": "6202:49:1" - } - ] - }, - "documentation": null, - "id": 821, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "declareLost", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 754, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 751, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5693:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 750, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5693:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 753, - "name": "_nonce", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5715:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 752, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5715:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5692:38:1" - }, - "payable": true, - "returnParameters": { - "id": 755, - "nodeType": "ParameterList", - "parameters": [], - "src": "5745:0:1" - }, - "scope": 1059, - "src": "5672:586:1", - "stateMutability": "payable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 833, - "nodeType": "Block", - "src": "6336:53:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 828, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6353:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 830, - "indexExpression": { - "argumentTypes": null, - "id": 829, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 823, - "src": "6360:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6353:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 831, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "6353:29:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 827, - "id": 832, - "nodeType": "Return", - "src": "6346:36:1" - } - ] - }, - "documentation": null, - "id": 834, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getClaimant", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 824, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 823, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 834, - "src": "6285:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 822, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6285:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6284:22:1" - }, - "payable": false, - "returnParameters": { - "id": 827, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 826, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 834, - "src": "6328:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 825, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6328:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6327:9:1" - }, - "scope": 1059, - "src": "6264:125:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 846, - "nodeType": "Block", - "src": "6469:55:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 841, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6486:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 843, - "indexExpression": { - "argumentTypes": null, - "id": 842, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 836, - "src": "6493:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6486:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 844, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "6486:31:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 840, - "id": 845, - "nodeType": "Return", - "src": "6479:38:1" - } - ] - }, - "documentation": null, - "id": 847, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getCollateral", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 837, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 836, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 847, - "src": "6418:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 835, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6418:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6417:22:1" - }, - "payable": false, - "returnParameters": { - "id": 840, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 839, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 847, - "src": "6461:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 838, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6461:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6460:9:1" - }, - "scope": 1059, - "src": "6395:129:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 859, - "nodeType": "Block", - "src": "6603:54:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 854, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6620:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 856, - "indexExpression": { - "argumentTypes": null, - "id": 855, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 849, - "src": "6627:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6620:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 857, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 550, - "src": "6620:30:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 853, - "id": 858, - "nodeType": "Return", - "src": "6613:37:1" - } - ] - }, - "documentation": null, - "id": 860, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getTimeStamp", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 850, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 849, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 860, - "src": "6552:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 848, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6552:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6551:22:1" - }, - "payable": false, - "returnParameters": { - "id": 853, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 852, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 860, - "src": "6595:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 851, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6595:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6594:9:1" - }, - "scope": 1059, - "src": "6530:127:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 872, - "nodeType": "Block", - "src": "6747:60:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 867, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6764:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 869, - "indexExpression": { - "argumentTypes": null, - "id": 868, - "name": "_claimerAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 862, - "src": "6774:15:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6764:26:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 870, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "6764:36:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 866, - "id": 871, - "nodeType": "Return", - "src": "6757:43:1" - } - ] - }, - "documentation": null, - "id": 873, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getPreClaimTimeStamp", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 863, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 862, - "name": "_claimerAddress", - "nodeType": "VariableDeclaration", - "scope": 873, - "src": "6693:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 861, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6693:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6692:25:1" - }, - "payable": false, - "returnParameters": { - "id": 866, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 865, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 873, - "src": "6739:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 864, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6739:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6738:9:1" - }, - "scope": 1059, - "src": "6663:144:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 885, - "nodeType": "Block", - "src": "6887:58:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 880, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6904:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 882, - "indexExpression": { - "argumentTypes": null, - "id": 881, - "name": "_claimerAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 875, - "src": "6914:15:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6904:26:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 883, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "6904:34:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "functionReturnParameters": 879, - "id": 884, - "nodeType": "Return", - "src": "6897:41:1" - } - ] - }, - "documentation": null, - "id": 886, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getMsgHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 876, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 875, - "name": "_claimerAddress", - "nodeType": "VariableDeclaration", - "scope": 886, - "src": "6833:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 874, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6833:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6832:25:1" - }, - "payable": false, - "returnParameters": { - "id": 879, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 878, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 886, - "src": "6879:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 877, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "6879:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6878:9:1" - }, - "scope": 1059, - "src": "6813:132:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 929, - "nodeType": "Block", - "src": "7125:316:1", - "statements": [ - { - "assignments": [ - 892 - ], - "declarations": [ - { - "constant": false, - "id": 892, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 930, - "src": "7135:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 891, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7135:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 898, - "initialValue": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 893, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7156:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 896, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 894, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7163:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 895, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7163:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7156:18:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 897, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "7156:29:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7135:50:1" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 901, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 899, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7199:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 900, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7213:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "7199:15:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": { - "id": 927, - "nodeType": "Block", - "src": "7402:33:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "hexValue": "30", - "id": 925, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7423:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "functionReturnParameters": 890, - "id": 926, - "nodeType": "Return", - "src": "7416:8:1" - } - ] - }, - "id": 928, - "nodeType": "IfStatement", - "src": "7195:240:1", - "trueBody": { - "id": 924, - "nodeType": "Block", - "src": "7215:181:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 906, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "7229:25:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 902, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7236:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 905, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 903, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7243:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 904, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7243:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7236:18:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 907, - "nodeType": "ExpressionStatement", - "src": "7229:25:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 913, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7288:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 908, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7268:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 911, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7268:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 912, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7268:19:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 914, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7268:31:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 915, - "nodeType": "ExpressionStatement", - "src": "7268:31:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 917, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7331:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 918, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7331:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 919, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7343:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 916, - "name": "ClaimCleared", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "7318:12:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,uint256)" - } - }, - "id": 920, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7318:36:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 921, - "nodeType": "EmitStatement", - "src": "7313:41:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 922, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7375:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 890, - "id": 923, - "nodeType": "Return", - "src": "7368:17:1" - } - ] - } - } - ] - }, - "documentation": "@dev Clears a claim after the key has been found again and assigns the collateral to the \"lost\" address.", - "id": 930, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "clearClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 887, - "nodeType": "ParameterList", - "parameters": [], - "src": "7098:2:1" - }, - "payable": false, - "returnParameters": { - "id": 890, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 889, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 930, - "src": "7117:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 888, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7117:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7116:9:1" - }, - "scope": 1059, - "src": "7079:362:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1004, - "nodeType": "Block", - "src": "7684:534:1", - "statements": [ - { - "assignments": [ - 938 - ], - "declarations": [ - { - "constant": false, - "id": 938, - "name": "claim", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7694:18:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim" - }, - "typeName": { - "contractScope": null, - "id": 937, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "7694:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 942, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 939, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7715:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 941, - "indexExpression": { - "argumentTypes": null, - "id": 940, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "7722:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7715:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7694:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 947, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 944, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7753:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 945, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "7753:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 946, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7773:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "7753:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e6f20636c61696d20666f756e64", - "id": 948, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7776:16:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - }, - "value": "No claim found" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - } - ], - "id": 943, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1398, - "src": "7745:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 949, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7745:48:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 950, - "nodeType": "ExpressionStatement", - "src": "7745:48:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 956, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 952, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7811:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 953, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "7811:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 954, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7829:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 955, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7829:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "7811:28:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 951, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7803:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 957, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7803:37:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 958, - "nodeType": "ExpressionStatement", - "src": "7803:37:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 966, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 963, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 960, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7858:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 961, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 550, - "src": "7858:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 962, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "7876:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7858:29:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 964, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "7891:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 965, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7891:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7858:48:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 959, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7850:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 967, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7850:57:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 968, - "nodeType": "ExpressionStatement", - "src": "7850:57:1" - }, - { - "assignments": [ - 970 - ], - "declarations": [ - { - "constant": false, - "id": 970, - "name": "claimant", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7918:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 969, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7918:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 973, - "initialValue": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 971, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7937:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 972, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "7937:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7918:33:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 977, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "7961:27:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 974, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7968:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 976, - "indexExpression": { - "argumentTypes": null, - "id": 975, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "7975:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7968:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 978, - "nodeType": "ExpressionStatement", - "src": "7961:27:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 982, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8016:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 983, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8016:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 979, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "7998:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 981, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7998:17:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 984, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7998:35:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 985, - "nodeType": "ExpressionStatement", - "src": "7998:35:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 987, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8060:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 988, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "8074:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 990, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8094:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 989, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1116, - "src": "8084:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 991, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8084:23:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 986, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1014, - "src": "8043:16:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 992, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8043:65:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 993, - "nodeType": "ExpressionStatement", - "src": "8043:65:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 995, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8137:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 996, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "8151:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 997, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8161:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 998, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8161:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 994, - "name": "ClaimResolved", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 662, - "src": "8123:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 999, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8123:55:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1000, - "nodeType": "EmitStatement", - "src": "8118:60:1" - }, - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1001, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8195:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1002, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8195:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 936, - "id": 1003, - "nodeType": "Return", - "src": "8188:23:1" - } - ] - }, - "documentation": "@dev This function is used to resolve a claim.\n@dev After waiting period the tokens on the lost address and collateral can be transferred.", - "id": 1005, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "resolveClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 933, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 932, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7638:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 931, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7638:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7637:22:1" - }, - "payable": false, - "returnParameters": { - "id": 936, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 935, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7676:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 934, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7676:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7675:9:1" - }, - "scope": 1059, - "src": "7616:602:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1014, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "internalTransfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1012, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1007, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8250:13:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1006, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8250:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1009, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8265:11:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1008, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8265:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1011, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8278:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1010, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8278:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8249:44:1" - }, - "payable": false, - "returnParameters": { - "id": 1013, - "nodeType": "ParameterList", - "parameters": [], - "src": "8302:0:1" - }, - "scope": 1059, - "src": "8224:79:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1057, - "nodeType": "Block", - "src": "8486:279:1", - "statements": [ - { - "assignments": [ - 1022 - ], - "declarations": [ - { - "constant": false, - "id": 1022, - "name": "claim", - "nodeType": "VariableDeclaration", - "scope": 1058, - "src": "8496:18:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim" - }, - "typeName": { - "contractScope": null, - "id": 1021, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "8496:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 1026, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1023, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "8517:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 1025, - "indexExpression": { - "argumentTypes": null, - "id": 1024, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8524:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8517:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "8496:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1031, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1028, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8555:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1029, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8555:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1030, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8575:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "8555:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e6f20636c61696d20666f756e64", - "id": 1032, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8578:16:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - }, - "value": "No claim found" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - } - ], - "id": 1027, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1398, - "src": "8547:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 1033, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8547:48:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1034, - "nodeType": "ExpressionStatement", - "src": "8547:48:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 1038, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "8605:27:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1035, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "8612:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 1037, - "indexExpression": { - "argumentTypes": null, - "id": 1036, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8619:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "8612:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1039, - "nodeType": "ExpressionStatement", - "src": "8605:27:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1045, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8666:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1046, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8666:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1040, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8642:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1043, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "8642:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1044, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8642:23:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 1047, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8642:41:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1048, - "nodeType": "ExpressionStatement", - "src": "8642:41:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1050, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8711:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1051, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8725:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1052, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "8725:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1053, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8741:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1054, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8741:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 1049, - "name": "ClaimDeleted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 654, - "src": "8698:12:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 1055, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8698:60:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1056, - "nodeType": "EmitStatement", - "src": "8693:65:1" - } - ] - }, - "documentation": "@dev This function is to be executed by the owner only in case a dispute needs to be resolved manually. ", - "id": 1058, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 1019, - "modifierName": { - "argumentTypes": null, - "id": 1018, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "8475:9:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "8475:11:1" - } - ], - "name": "deleteClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1017, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1016, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 1058, - "src": "8446:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1015, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8446:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8445:22:1" - }, - "payable": false, - "returnParameters": { - "id": 1020, - "nodeType": "ParameterList", - "parameters": [], - "src": "8486:0:1" - }, - "scope": 1059, - "src": "8425:340:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 1060, - "src": "1315:7453:1" - } - ], - "src": "0:8768:1" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Claimable.sol", - "exportedSymbols": { - "Claimable": [ - 1059 - ] - }, - "id": 1060, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 534, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:1" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "file": "./SafeMath.sol", - "id": 535, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1380, - "src": "26:24:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Ownable.sol", - "file": "./Ownable.sol", - "id": 536, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1286, - "src": "51:23:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 537, - "nodeType": "ImportDirective", - "scope": 1060, - "sourceUnit": 1135, - "src": "75:26:1", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 538, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1134, - "src": "1337:10:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1134", - "typeString": "contract ERC20Basic" - } - }, - "id": 539, - "nodeType": "InheritanceSpecifier", - "src": "1337:10:1" - }, - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 540, - "name": "Ownable", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1285, - "src": "1349:7:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Ownable_$1285", - "typeString": "contract Ownable" - } - }, - "id": 541, - "nodeType": "InheritanceSpecifier", - "src": "1349:7:1" - } - ], - "contractDependencies": [ - 1134, - 1285 - ], - "contractKind": "contract", - "documentation": "@title Claimable\nIn case of tokens that represent real-world assets such as shares of a company, one needs a way\nto handle lost private keys. With physical certificates, courts can declare share certificates as\ninvalid so the company can issue replacements. Here, we want a solution that does not depend on \nthird parties to resolve such cases. Instead, when someone has lost a private key, he can use the\ndeclareLost function to post a deposit and claim that the shares assigned to a specific address are\nlost. To prevent front running, a commit reveal scheme is used. If he actually is the owner of the shares,\nhe needs to wait for a certain period and can then reclaim the lost shares as well as the deposit. \nIf he is an attacker trying to claim shares belonging to someone else, he risks losing the deposit \nas it can be claimed at anytime by the rightful owner.\nFurthermore, the company itself can delete claims at any time and take the deposit. So in order to\nuse this functionality, one needs to trust the company to do the right thing and to handle potential\ndisputes responsibly. If you do not trust the company to do so, don't lose your private keys. :)", - "fullyImplemented": false, - "id": 1059, - "linearizedBaseContracts": [ - 1059, - 1285, - 1134 - ], - "name": "Claimable", - "nodeType": "ContractDefinition", - "nodes": [ - { - "id": 544, - "libraryName": { - "contractScope": null, - "id": 542, - "name": "SafeMath", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1379, - "src": "1370:8:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$1379", - "typeString": "library SafeMath" - } - }, - "nodeType": "UsingForDirective", - "src": "1364:27:1", - "typeName": { - "id": 543, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1383:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - { - "canonicalName": "Claimable.Claim", - "id": 551, - "members": [ - { - "constant": false, - "id": 546, - "name": "claimant", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1420:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 545, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1420:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 548, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1482:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 547, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1482:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 550, - "name": "timestamp", - "nodeType": "VariableDeclaration", - "scope": 551, - "src": "1541:17:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 549, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1541:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "name": "Claim", - "nodeType": "StructDefinition", - "scope": 1059, - "src": "1397:227:1", - "visibility": "public" - }, - { - "canonicalName": "Claimable.PreClaim", - "id": 556, - "members": [ - { - "constant": false, - "id": 553, - "name": "msghash", - "nodeType": "VariableDeclaration", - "scope": 556, - "src": "1656:15:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 552, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "1656:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 555, - "name": "timestamp", - "nodeType": "VariableDeclaration", - "scope": 556, - "src": "1726:17:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 554, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1726:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "name": "PreClaim", - "nodeType": "StructDefinition", - "scope": 1059, - "src": "1630:182:1", - "visibility": "public" - }, - { - "constant": false, - "id": 559, - "name": "collateralRate", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "1904:39:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 557, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1904:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "31", - "id": 558, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1936:7:1", - "subdenomination": "ether", - "typeDescriptions": { - "typeIdentifier": "t_rational_1000000000000000000_by_1", - "typeString": "int_const 1000000000000000000" - }, - "value": "1" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 568, - "name": "claimPeriod", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "1950:40:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 560, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1950:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_2592000_by_1", - "typeString": "int_const 2592000" - }, - "id": 567, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - }, - "id": 565, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - }, - "id": 563, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 561, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1979:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 562, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1982:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "1979:5:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 564, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1985:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "1979:8:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3330", - "id": 566, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1988:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_30_by_1", - "typeString": "int_const 30" - }, - "value": "30" - }, - "src": "1979:11:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_2592000_by_1", - "typeString": "int_const 2592000" - } - }, - "visibility": "public" - }, - { - "constant": false, - "id": 575, - "name": "preClaimPeriod", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2012:40:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2012:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - }, - "id": 574, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - }, - "id": 572, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 570, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2044:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 571, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2047:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2044:5:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_3600_by_1", - "typeString": "int_const 3600" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 573, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2050:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "2044:8:1", - "typeDescriptions": { - "typeIdentifier": "t_rational_86400_by_1", - "typeString": "int_const 86400" - } - }, - "visibility": "public" - }, - { - "constant": false, - "id": 579, - "name": "claims", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2075:39:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim)" - }, - "typeName": { - "id": 578, - "keyType": { - "id": 576, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2083:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2075:25:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim)" - }, - "valueType": { - "contractScope": null, - "id": 577, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "2094:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 583, - "name": "preClaims", - "nodeType": "VariableDeclaration", - "scope": 1059, - "src": "2199:45:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim)" - }, - "typeName": { - "id": 582, - "keyType": { - "id": 580, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2207:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "2199:28:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim)" - }, - "valueType": { - "contractScope": null, - "id": 581, - "name": "PreClaim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 556, - "src": "2218:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage_ptr", - "typeString": "struct Claimable.PreClaim" - } - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 627, - "nodeType": "Block", - "src": "2431:345:1", - "statements": [ - { - "assignments": [ - 593 - ], - "declarations": [ - { - "constant": false, - "id": 593, - "name": "claimPeriodInSeconds", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2441:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 592, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2441:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 601, - "initialValue": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 600, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 598, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 596, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 594, - "name": "_claimPeriodInDays", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 587, - "src": "2472:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 595, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2491:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2472:21:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3630", - "id": 597, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2494:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_60_by_1", - "typeString": "int_const 60" - }, - "value": "60" - }, - "src": "2472:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3234", - "id": 599, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2497:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_24_by_1", - "typeString": "int_const 24" - }, - "value": "24" - }, - "src": "2472:27:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "2441:58:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 605, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 603, - "name": "_collateralRateInWei", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 585, - "src": "2517:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 604, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2540:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "2517:24:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 602, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "2509:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 606, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2509:33:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 607, - "nodeType": "ExpressionStatement", - "src": "2509:33:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 611, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 609, - "name": "_claimPeriodInDays", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 587, - "src": "2560:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "3330", - "id": 610, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2581:2:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_30_by_1", - "typeString": "int_const 30" - }, - "value": "30" - }, - "src": "2560:23:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 608, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "2552:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 612, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2552:32:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 613, - "nodeType": "ExpressionStatement", - "src": "2552:32:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 616, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 614, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "2622:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 615, - "name": "_collateralRateInWei", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 585, - "src": "2639:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2622:37:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 617, - "nodeType": "ExpressionStatement", - "src": "2622:37:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 620, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 618, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "2669:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 619, - "name": "claimPeriodInSeconds", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 593, - "src": "2683:20:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2669:34:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 621, - "nodeType": "ExpressionStatement", - "src": "2669:34:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 623, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "2741:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 624, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "2757:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 622, - "name": "ClaimParametersChanged", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 668, - "src": "2718:22:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", - "typeString": "function (uint256,uint256)" - } - }, - "id": 625, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2718:51:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 626, - "nodeType": "EmitStatement", - "src": "2713:56:1" - } - ] - }, - "documentation": null, - "id": 628, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 590, - "modifierName": { - "argumentTypes": null, - "id": 589, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "2419:9:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "2419:11:1" - } - ], - "name": "setClaimParameters", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 588, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 585, - "name": "_collateralRateInWei", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2354:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 584, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2354:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 587, - "name": "_claimPeriodInDays", - "nodeType": "VariableDeclaration", - "scope": 628, - "src": "2384:26:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 586, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2384:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2353:58:1" - }, - "payable": false, - "returnParameters": { - "id": 591, - "nodeType": "ParameterList", - "parameters": [], - "src": "2431:0:1" - }, - "scope": 1059, - "src": "2326:450:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 636, - "name": "ClaimMade", - "nodeType": "EventDefinition", - "parameters": { - "id": 635, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 630, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2798:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 629, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2798:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 632, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2828:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 631, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2828:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 634, - "indexed": false, - "name": "_balance", - "nodeType": "VariableDeclaration", - "scope": 636, - "src": "2855:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 633, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2855:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2797:75:1" - }, - "src": "2782:91:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 640, - "name": "ClaimPrepared", - "nodeType": "EventDefinition", - "parameters": { - "id": 639, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 638, - "indexed": true, - "name": "_claimer", - "nodeType": "VariableDeclaration", - "scope": 640, - "src": "2898:24:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 637, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2898:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2897:26:1" - }, - "src": "2878:46:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 646, - "name": "ClaimCleared", - "nodeType": "EventDefinition", - "parameters": { - "id": 645, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 642, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 646, - "src": "2948:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 641, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2948:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 644, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 646, - "src": "2978:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 643, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2978:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2947:50:1" - }, - "src": "2929:69:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 654, - "name": "ClaimDeleted", - "nodeType": "EventDefinition", - "parameters": { - "id": 653, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 648, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3022:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 647, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3022:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 650, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3052:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 649, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3052:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 652, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 654, - "src": "3079:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 651, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3079:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3021:77:1" - }, - "src": "3003:96:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 662, - "name": "ClaimResolved", - "nodeType": "EventDefinition", - "parameters": { - "id": 661, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 656, - "indexed": true, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3124:28:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 655, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3124:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 658, - "indexed": true, - "name": "_claimant", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3154:25:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 657, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "3154:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 660, - "indexed": false, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 662, - "src": "3181:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 659, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3181:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3123:77:1" - }, - "src": "3104:97:1" - }, - { - "anonymous": false, - "documentation": null, - "id": 668, - "name": "ClaimParametersChanged", - "nodeType": "EventDefinition", - "parameters": { - "id": 667, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 664, - "indexed": false, - "name": "_collateralRate", - "nodeType": "VariableDeclaration", - "scope": 668, - "src": "3235:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 663, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3235:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 666, - "indexed": false, - "name": "_claimPeriodInDays", - "nodeType": "VariableDeclaration", - "scope": 668, - "src": "3260:27:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 665, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3260:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "3234:54:1" - }, - "src": "3206:83:1" - }, - { - "body": { - "id": 689, - "nodeType": "Block", - "src": "5042:179:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 682, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 673, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "5052:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 676, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 674, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5062:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 675, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5062:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "5052:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 678, - "name": "_hashedpackage", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 670, - "src": "5109:14:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 679, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5148:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 680, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5148:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": null, - "id": 677, - "name": "PreClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 556, - "src": "5076:8:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_PreClaim_$556_storage_ptr_$", - "typeString": "type(struct Claimable.PreClaim storage pointer)" - } - }, - "id": 681, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [ - "msghash", - "timestamp" - ], - "nodeType": "FunctionCall", - "src": "5076:98:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "src": "5052:122:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 683, - "nodeType": "ExpressionStatement", - "src": "5052:122:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 685, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5203:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 686, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5203:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 684, - "name": "ClaimPrepared", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 640, - "src": "5189:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 687, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5189:25:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 688, - "nodeType": "EmitStatement", - "src": "5184:30:1" - } - ] - }, - "documentation": "Anyone can declare that the private key to a certain address was lost by calling declareLost\nproviding a deposit/collateral. There are three possibilities of what can happen with the claim:\n1) The claim period expires and the claimant can get the deposit and the shares back by calling resolveClaim\n2) The \"lost\" private key is used at any time to call clearClaim. In that case, the claim is deleted and\n the deposit sent to the shareholder (the owner of the private key). It is recommended to call resolveClaim\n whenever someone transfers funds to let claims be resolved automatically when the \"lost\" private key is\n used again.\n3) The owner deletes the claim and assigns the deposit to himself. This is intended to be used to resolve\n disputes. Who is entitled to keep the deposit depends on the contractual agreements between the involved\n parties and in particular the issuance terms. Generally, using this function implies that you have to trust\n the issuer of the tokens to handle the situation well. As a rule of thumb, the contract owner should assume\n the owner of the lost address to be the rightful owner of the deposit. \nIt is highly recommended that the owner observes the claims made and informs the owners of the claimed addresses\nwhenever a claim is made for their address (this of course is only possible if they are known to the owner, e.g.\nthrough a shareholder register).\nTo prevent frontrunning attacks, a claim can only be made if the information revealed when calling \"declareLost\" \nwas previously commited using the \"prepareClaim\" function. ", - "id": 690, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "prepareClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 671, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 670, - "name": "_hashedpackage", - "nodeType": "VariableDeclaration", - "scope": 690, - "src": "5012:22:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 669, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5012:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5011:24:1" - }, - "payable": false, - "returnParameters": { - "id": 672, - "nodeType": "ParameterList", - "parameters": [], - "src": "5042:0:1" - }, - "scope": 1059, - "src": "4990:231:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 748, - "nodeType": "Block", - "src": "5315:351:1", - "statements": [ - { - "assignments": [ - 700 - ], - "declarations": [ - { - "constant": false, - "id": 700, - "name": "preClaim", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5325:24:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim" - }, - "typeName": { - "contractScope": null, - "id": 699, - "name": "PreClaim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 556, - "src": "5325:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage_ptr", - "typeString": "struct Claimable.PreClaim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 705, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 701, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "5352:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 704, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 702, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5362:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 703, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5362:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "5352:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "5325:48:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "id": 710, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 707, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5391:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 708, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "5391:16:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 709, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5411:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5391:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 706, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5383:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 711, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5383:30:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 712, - "nodeType": "ExpressionStatement", - "src": "5383:30:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 720, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 717, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 714, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5431:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 715, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "5431:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 716, - "name": "preClaimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 575, - "src": "5452:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5431:35:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 718, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5470:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 719, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5470:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5431:54:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 713, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5423:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 721, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5423:63:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 722, - "nodeType": "ExpressionStatement", - "src": "5423:63:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 732, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 729, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 724, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5504:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 725, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "5504:18:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 728, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "hexValue": "32", - "id": 726, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5525:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_2_by_1", - "typeString": "int_const 2" - }, - "value": "2" - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "id": 727, - "name": "preClaimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 575, - "src": "5527:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5525:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5504:37:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 730, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "5545:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 731, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5545:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5504:56:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 723, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5496:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 733, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5496:65:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 734, - "nodeType": "ExpressionStatement", - "src": "5496:65:1" - }, - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "id": 746, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 735, - "name": "preClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 700, - "src": "5578:8:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_memory_ptr", - "typeString": "struct Claimable.PreClaim memory" - } - }, - "id": 736, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "5578:16:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 740, - "name": "_nonce", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 694, - "src": "5625:6:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 741, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5633:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 742, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5633:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 743, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 692, - "src": "5645:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 738, - "name": "abi", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1381, - "src": "5608:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_abi", - "typeString": "abi" - } - }, - "id": 739, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "memberName": "encodePacked", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5608:16:1", - "typeDescriptions": { - "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", - "typeString": "function () pure returns (bytes memory)" - } - }, - "id": 744, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5608:50:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - ], - "id": 737, - "name": "keccak256", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1388, - "src": "5598:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", - "typeString": "function () pure returns (bytes32)" - } - }, - "id": 745, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5598:61:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "src": "5578:81:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 698, - "id": 747, - "nodeType": "Return", - "src": "5571:88:1" - } - ] - }, - "documentation": null, - "id": 749, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "validateClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 695, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 692, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5250:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 691, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5250:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 694, - "name": "_nonce", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5272:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 693, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5272:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5249:38:1" - }, - "payable": false, - "returnParameters": { - "id": 698, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 697, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 749, - "src": "5310:4:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 696, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "5310:4:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5309:6:1" - }, - "scope": 1059, - "src": "5227:439:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "private" - }, - { - "body": { - "id": 820, - "nodeType": "Block", - "src": "5745:513:1", - "statements": [ - { - "assignments": [ - 757 - ], - "declarations": [ - { - "constant": false, - "id": 757, - "name": "balance", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5755:15:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 756, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "5755:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 761, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 759, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5783:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 758, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1116, - "src": "5773:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 760, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5773:23:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "5755:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 765, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 763, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "5814:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 764, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5824:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5814:11:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 762, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5806:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 766, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5806:20:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 767, - "nodeType": "ExpressionStatement", - "src": "5806:20:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 775, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 769, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "5844:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 770, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "5844:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 773, - "name": "collateralRate", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 559, - "src": "5869:14:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 771, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "5857:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 772, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "mul", - "nodeType": "MemberAccess", - "referencedDeclaration": 1320, - "src": "5857:11:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", - "typeString": "function (uint256,uint256) pure returns (uint256)" - } - }, - "id": 774, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5857:27:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "5844:40:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 768, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5836:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 776, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5836:49:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 777, - "nodeType": "ExpressionStatement", - "src": "5836:49:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 784, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 779, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "5903:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 781, - "indexExpression": { - "argumentTypes": null, - "id": 780, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5910:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "5903:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 782, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "5903:31:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 783, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "5938:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "5903:36:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 778, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5895:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 785, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5895:45:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 786, - "nodeType": "ExpressionStatement", - "src": "5895:45:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 789, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "5972:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 790, - "name": "_nonce", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 753, - "src": "5986:6:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - ], - "id": 788, - "name": "validateClaim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 749, - "src": "5958:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$_t_bytes32_$returns$_t_bool_$", - "typeString": "function (address,bytes32) view returns (bool)" - } - }, - "id": 791, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5958:35:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 787, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "5950:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 792, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "5950:44:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 793, - "nodeType": "ExpressionStatement", - "src": "5950:44:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 805, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 794, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6005:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 796, - "indexExpression": { - "argumentTypes": null, - "id": 795, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "6012:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6005:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 798, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6058:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 799, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6058:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 800, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6094:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 801, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6094:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 802, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "6128:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 803, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6128:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": null, - "id": 797, - "name": "Claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "6028:5:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_Claim_$551_storage_ptr_$", - "typeString": "type(struct Claimable.Claim storage pointer)" - } - }, - "id": 804, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [ - "claimant", - "collateral", - "timestamp" - ], - "nodeType": "FunctionCall", - "src": "6028:126:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory", - "typeString": "struct Claimable.Claim memory" - } - }, - "src": "6005:149:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 806, - "nodeType": "ExpressionStatement", - "src": "6005:149:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 811, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "6164:28:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 807, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6171:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 810, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 808, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6181:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 809, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6181:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "6171:21:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 812, - "nodeType": "ExpressionStatement", - "src": "6164:28:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 814, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 751, - "src": "6217:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 815, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "6231:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 816, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "6231:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 817, - "name": "balance", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 757, - "src": "6243:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 813, - "name": "ClaimMade", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 636, - "src": "6207:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 818, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "6207:44:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 819, - "nodeType": "EmitStatement", - "src": "6202:49:1" - } - ] - }, - "documentation": null, - "id": 821, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "declareLost", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 754, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 751, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5693:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 750, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "5693:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 753, - "name": "_nonce", - "nodeType": "VariableDeclaration", - "scope": 821, - "src": "5715:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 752, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "5715:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "5692:38:1" - }, - "payable": true, - "returnParameters": { - "id": 755, - "nodeType": "ParameterList", - "parameters": [], - "src": "5745:0:1" - }, - "scope": 1059, - "src": "5672:586:1", - "stateMutability": "payable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 833, - "nodeType": "Block", - "src": "6336:53:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 828, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6353:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 830, - "indexExpression": { - "argumentTypes": null, - "id": 829, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 823, - "src": "6360:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6353:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 831, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "6353:29:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 827, - "id": 832, - "nodeType": "Return", - "src": "6346:36:1" - } - ] - }, - "documentation": null, - "id": 834, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getClaimant", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 824, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 823, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 834, - "src": "6285:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 822, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6285:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6284:22:1" - }, - "payable": false, - "returnParameters": { - "id": 827, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 826, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 834, - "src": "6328:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 825, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6328:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6327:9:1" - }, - "scope": 1059, - "src": "6264:125:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 846, - "nodeType": "Block", - "src": "6469:55:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 841, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6486:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 843, - "indexExpression": { - "argumentTypes": null, - "id": 842, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 836, - "src": "6493:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6486:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 844, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "6486:31:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 840, - "id": 845, - "nodeType": "Return", - "src": "6479:38:1" - } - ] - }, - "documentation": null, - "id": 847, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getCollateral", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 837, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 836, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 847, - "src": "6418:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 835, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6418:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6417:22:1" - }, - "payable": false, - "returnParameters": { - "id": 840, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 839, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 847, - "src": "6461:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 838, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6461:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6460:9:1" - }, - "scope": 1059, - "src": "6395:129:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 859, - "nodeType": "Block", - "src": "6603:54:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 854, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "6620:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 856, - "indexExpression": { - "argumentTypes": null, - "id": 855, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 849, - "src": "6627:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6620:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 857, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 550, - "src": "6620:30:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 853, - "id": 858, - "nodeType": "Return", - "src": "6613:37:1" - } - ] - }, - "documentation": null, - "id": 860, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getTimeStamp", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 850, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 849, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 860, - "src": "6552:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 848, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6552:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6551:22:1" - }, - "payable": false, - "returnParameters": { - "id": 853, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 852, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 860, - "src": "6595:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 851, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6595:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6594:9:1" - }, - "scope": 1059, - "src": "6530:127:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 872, - "nodeType": "Block", - "src": "6747:60:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 867, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6764:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 869, - "indexExpression": { - "argumentTypes": null, - "id": 868, - "name": "_claimerAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 862, - "src": "6774:15:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6764:26:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 870, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 555, - "src": "6764:36:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 866, - "id": 871, - "nodeType": "Return", - "src": "6757:43:1" - } - ] - }, - "documentation": null, - "id": 873, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getPreClaimTimeStamp", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 863, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 862, - "name": "_claimerAddress", - "nodeType": "VariableDeclaration", - "scope": 873, - "src": "6693:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 861, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6693:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6692:25:1" - }, - "payable": false, - "returnParameters": { - "id": 866, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 865, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 873, - "src": "6739:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 864, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "6739:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6738:9:1" - }, - "scope": 1059, - "src": "6663:144:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 885, - "nodeType": "Block", - "src": "6887:58:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 880, - "name": "preClaims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 583, - "src": "6904:9:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_PreClaim_$556_storage_$", - "typeString": "mapping(address => struct Claimable.PreClaim storage ref)" - } - }, - "id": 882, - "indexExpression": { - "argumentTypes": null, - "id": 881, - "name": "_claimerAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 875, - "src": "6914:15:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "6904:26:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_PreClaim_$556_storage", - "typeString": "struct Claimable.PreClaim storage ref" - } - }, - "id": 883, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "msghash", - "nodeType": "MemberAccess", - "referencedDeclaration": 553, - "src": "6904:34:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "functionReturnParameters": 879, - "id": 884, - "nodeType": "Return", - "src": "6897:41:1" - } - ] - }, - "documentation": null, - "id": 886, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getMsgHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 876, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 875, - "name": "_claimerAddress", - "nodeType": "VariableDeclaration", - "scope": 886, - "src": "6833:23:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 874, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "6833:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6832:25:1" - }, - "payable": false, - "returnParameters": { - "id": 879, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 878, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 886, - "src": "6879:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - }, - "typeName": { - "id": 877, - "name": "bytes32", - "nodeType": "ElementaryTypeName", - "src": "6879:7:1", - "typeDescriptions": { - "typeIdentifier": "t_bytes32", - "typeString": "bytes32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "6878:9:1" - }, - "scope": 1059, - "src": "6813:132:1", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 929, - "nodeType": "Block", - "src": "7125:316:1", - "statements": [ - { - "assignments": [ - 892 - ], - "declarations": [ - { - "constant": false, - "id": 892, - "name": "collateral", - "nodeType": "VariableDeclaration", - "scope": 930, - "src": "7135:18:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 891, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7135:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 898, - "initialValue": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 893, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7156:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 896, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 894, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7163:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 895, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7163:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7156:18:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "id": 897, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "7156:29:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7135:50:1" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 901, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 899, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7199:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 900, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7213:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "7199:15:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": { - "id": 927, - "nodeType": "Block", - "src": "7402:33:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "hexValue": "30", - "id": 925, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7423:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "functionReturnParameters": 890, - "id": 926, - "nodeType": "Return", - "src": "7416:8:1" - } - ] - }, - "id": 928, - "nodeType": "IfStatement", - "src": "7195:240:1", - "trueBody": { - "id": 924, - "nodeType": "Block", - "src": "7215:181:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 906, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "7229:25:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 902, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7236:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 905, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 903, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7243:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 904, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7243:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7236:18:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 907, - "nodeType": "ExpressionStatement", - "src": "7229:25:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 913, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7288:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 908, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7268:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 911, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7268:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 912, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7268:19:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 914, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7268:31:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 915, - "nodeType": "ExpressionStatement", - "src": "7268:31:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 917, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7331:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 918, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7331:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 919, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7343:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 916, - "name": "ClaimCleared", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "7318:12:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,uint256)" - } - }, - "id": 920, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7318:36:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 921, - "nodeType": "EmitStatement", - "src": "7313:41:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 922, - "name": "collateral", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 892, - "src": "7375:10:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 890, - "id": 923, - "nodeType": "Return", - "src": "7368:17:1" - } - ] - } - } - ] - }, - "documentation": "@dev Clears a claim after the key has been found again and assigns the collateral to the \"lost\" address.", - "id": 930, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "clearClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 887, - "nodeType": "ParameterList", - "parameters": [], - "src": "7098:2:1" - }, - "payable": false, - "returnParameters": { - "id": 890, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 889, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 930, - "src": "7117:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 888, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7117:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7116:9:1" - }, - "scope": 1059, - "src": "7079:362:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1004, - "nodeType": "Block", - "src": "7684:534:1", - "statements": [ - { - "assignments": [ - 938 - ], - "declarations": [ - { - "constant": false, - "id": 938, - "name": "claim", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7694:18:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim" - }, - "typeName": { - "contractScope": null, - "id": 937, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "7694:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 942, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 939, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7715:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 941, - "indexExpression": { - "argumentTypes": null, - "id": 940, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "7722:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "7715:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7694:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 947, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 944, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7753:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 945, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "7753:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 946, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7773:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "7753:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e6f20636c61696d20666f756e64", - "id": 948, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "7776:16:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - }, - "value": "No claim found" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - } - ], - "id": 943, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1398, - "src": "7745:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 949, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7745:48:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 950, - "nodeType": "ExpressionStatement", - "src": "7745:48:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 956, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 952, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7811:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 953, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "7811:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 954, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "7829:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 955, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7829:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "7811:28:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 951, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7803:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 957, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7803:37:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 958, - "nodeType": "ExpressionStatement", - "src": "7803:37:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 966, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 963, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 960, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7858:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 961, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": 550, - "src": "7858:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 962, - "name": "claimPeriod", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 568, - "src": "7876:11:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7858:29:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 964, - "name": "block", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1384, - "src": "7891:5:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_block", - "typeString": "block" - } - }, - "id": 965, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "timestamp", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7891:15:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "7858:48:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 959, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "7850:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 967, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7850:57:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 968, - "nodeType": "ExpressionStatement", - "src": "7850:57:1" - }, - { - "assignments": [ - 970 - ], - "declarations": [ - { - "constant": false, - "id": 970, - "name": "claimant", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7918:16:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 969, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7918:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 973, - "initialValue": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 971, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "7937:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 972, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "7937:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "7918:33:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 977, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "7961:27:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 974, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "7968:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 976, - "indexExpression": { - "argumentTypes": null, - "id": 975, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "7975:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "7968:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 978, - "nodeType": "ExpressionStatement", - "src": "7961:27:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 982, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8016:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 983, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8016:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 979, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "7998:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 981, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "7998:17:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 984, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "7998:35:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 985, - "nodeType": "ExpressionStatement", - "src": "7998:35:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 987, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8060:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 988, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "8074:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 990, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8094:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 989, - "name": "balanceOf", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1116, - "src": "8084:9:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) view returns (uint256)" - } - }, - "id": 991, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8084:23:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 986, - "name": "internalTransfer", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1014, - "src": "8043:16:1", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 992, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8043:65:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 993, - "nodeType": "ExpressionStatement", - "src": "8043:65:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 995, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 932, - "src": "8137:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 996, - "name": "claimant", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 970, - "src": "8151:8:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 997, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8161:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 998, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8161:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 994, - "name": "ClaimResolved", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 662, - "src": "8123:13:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 999, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8123:55:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1000, - "nodeType": "EmitStatement", - "src": "8118:60:1" - }, - { - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1001, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 938, - "src": "8195:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1002, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8195:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 936, - "id": 1003, - "nodeType": "Return", - "src": "8188:23:1" - } - ] - }, - "documentation": "@dev This function is used to resolve a claim.\n@dev After waiting period the tokens on the lost address and collateral can be transferred.", - "id": 1005, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "resolveClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 933, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 932, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7638:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 931, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "7638:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7637:22:1" - }, - "payable": false, - "returnParameters": { - "id": 936, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 935, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1005, - "src": "7676:7:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 934, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "7676:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "7675:9:1" - }, - "scope": 1059, - "src": "7616:602:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1014, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "internalTransfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1012, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1007, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8250:13:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1006, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8250:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1009, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8265:11:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1008, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8265:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1011, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1014, - "src": "8278:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1010, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "8278:7:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8249:44:1" - }, - "payable": false, - "returnParameters": { - "id": 1013, - "nodeType": "ParameterList", - "parameters": [], - "src": "8302:0:1" - }, - "scope": 1059, - "src": "8224:79:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1057, - "nodeType": "Block", - "src": "8486:279:1", - "statements": [ - { - "assignments": [ - 1022 - ], - "declarations": [ - { - "constant": false, - "id": 1022, - "name": "claim", - "nodeType": "VariableDeclaration", - "scope": 1058, - "src": "8496:18:1", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim" - }, - "typeName": { - "contractScope": null, - "id": 1021, - "name": "Claim", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 551, - "src": "8496:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage_ptr", - "typeString": "struct Claimable.Claim" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 1026, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1023, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "8517:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 1025, - "indexExpression": { - "argumentTypes": null, - "id": 1024, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8524:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "8517:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "8496:41:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1031, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1028, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8555:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1029, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8555:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1030, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8575:1:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "8555:21:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e6f20636c61696d20666f756e64", - "id": 1032, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "8578:16:1", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - }, - "value": "No claim found" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_476d33eaff32de8270607457d6e4e606a2e8598a850ec92a3d443d6dfc304161", - "typeString": "literal_string \"No claim found\"" - } - ], - "id": 1027, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1398, - "src": "8547:7:1", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 1033, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8547:48:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1034, - "nodeType": "ExpressionStatement", - "src": "8547:48:1" - }, - { - "expression": { - "argumentTypes": null, - "id": 1038, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "8605:27:1", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1035, - "name": "claims", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 579, - "src": "8612:6:1", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Claim_$551_storage_$", - "typeString": "mapping(address => struct Claimable.Claim storage ref)" - } - }, - "id": 1037, - "indexExpression": { - "argumentTypes": null, - "id": 1036, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8619:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "8612:20:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_storage", - "typeString": "struct Claimable.Claim storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1039, - "nodeType": "ExpressionStatement", - "src": "8605:27:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1045, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8666:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1046, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8666:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1040, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8642:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1043, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "8642:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1044, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "8642:23:1", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 1047, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8642:41:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1048, - "nodeType": "ExpressionStatement", - "src": "8642:41:1" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1050, - "name": "_lostAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1016, - "src": "8711:12:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1051, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8725:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1052, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "claimant", - "nodeType": "MemberAccess", - "referencedDeclaration": 546, - "src": "8725:14:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1053, - "name": "claim", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1022, - "src": "8741:5:1", - "typeDescriptions": { - "typeIdentifier": "t_struct$_Claim_$551_memory_ptr", - "typeString": "struct Claimable.Claim memory" - } - }, - "id": 1054, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "collateral", - "nodeType": "MemberAccess", - "referencedDeclaration": 548, - "src": "8741:16:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 1049, - "name": "ClaimDeleted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 654, - "src": "8698:12:1", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 1055, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "8698:60:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1056, - "nodeType": "EmitStatement", - "src": "8693:65:1" - } - ] - }, - "documentation": "@dev This function is to be executed by the owner only in case a dispute needs to be resolved manually. ", - "id": 1058, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [], - "id": 1019, - "modifierName": { - "argumentTypes": null, - "id": 1018, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "8475:9:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "8475:11:1" - } - ], - "name": "deleteClaim", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1017, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1016, - "name": "_lostAddress", - "nodeType": "VariableDeclaration", - "scope": 1058, - "src": "8446:20:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1015, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "8446:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "8445:22:1" - }, - "payable": false, - "returnParameters": { - "id": 1020, - "nodeType": "ParameterList", - "parameters": [], - "src": "8486:0:1" - }, - "scope": 1059, - "src": "8425:340:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 1060, - "src": "1315:7453:1" - } - ], - "src": "0:8768:1" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.160Z" -} \ No newline at end of file From b2c583cb3b202005d02cdada9f14c44ba9ceb5d0 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:19:55 +0100 Subject: [PATCH 3/7] Delete ERC20.json --- AlethenaShares/build/contracts/ERC20.json | 1237 --------------------- 1 file changed, 1237 deletions(-) delete mode 100644 AlethenaShares/build/contracts/ERC20.json diff --git a/AlethenaShares/build/contracts/ERC20.json b/AlethenaShares/build/contracts/ERC20.json deleted file mode 100644 index d1a96058..00000000 --- a/AlethenaShares/build/contracts/ERC20.json +++ /dev/null @@ -1,1237 +0,0 @@ -{ - "contractName": "ERC20", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "who", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "to", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "from", - "type": "address" - }, - { - "name": "to", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "spender", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "sourceMap": "", - "deployedSourceMap": "", - "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address owner, address spender)\n public view returns (uint256);\n\n function transferFrom(address from, address to, uint256 value)\n public returns (bool);\n\n function approve(address spender, uint256 value) public returns (bool);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20.sol", - "exportedSymbols": { - "ERC20": [ - 1102 - ] - }, - "id": 1103, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1061, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:2" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 1062, - "nodeType": "ImportDirective", - "scope": 1103, - "sourceUnit": 1135, - "src": "26:26:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 1063, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1134, - "src": "162:10:2", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1134", - "typeString": "contract ERC20Basic" - } - }, - "id": 1064, - "nodeType": "InheritanceSpecifier", - "src": "162:10:2" - } - ], - "contractDependencies": [ - 1134 - ], - "contractKind": "contract", - "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", - "fullyImplemented": false, - "id": 1102, - "linearizedBaseContracts": [ - 1102, - 1134 - ], - "name": "ERC20", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1073, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1069, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1066, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "198:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1065, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "198:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1068, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "213:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1067, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "213:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "197:32:2" - }, - "payable": false, - "returnParameters": { - "id": 1072, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1071, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "259:7:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1070, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "259:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "258:9:2" - }, - "scope": 1102, - "src": "179:89:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1084, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1080, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1075, - "name": "from", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "296:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1074, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "296:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1077, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "310:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1076, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "310:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1079, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "322:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1078, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "322:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "295:41:2" - }, - "payable": false, - "returnParameters": { - "id": 1083, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1082, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "361:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1081, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "361:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "360:6:2" - }, - "scope": 1102, - "src": "274:93:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1093, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1089, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1086, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "390:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1085, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "390:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1088, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "407:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1087, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "407:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "389:32:2" - }, - "payable": false, - "returnParameters": { - "id": 1092, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1091, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "438:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1090, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "437:6:2" - }, - "scope": 1102, - "src": "373:71:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1101, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 1100, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1095, - "indexed": true, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "469:21:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1094, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "469:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1097, - "indexed": true, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "496:23:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1096, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "496:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1099, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "525:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1098, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "525:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "463:81:2" - }, - "src": "449:96:2" - } - ], - "scope": 1103, - "src": "144:403:2" - } - ], - "src": "0:547:2" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20.sol", - "exportedSymbols": { - "ERC20": [ - 1102 - ] - }, - "id": 1103, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1061, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:2" - }, - { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 1062, - "nodeType": "ImportDirective", - "scope": 1103, - "sourceUnit": 1135, - "src": "26:26:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 1063, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1134, - "src": "162:10:2", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1134", - "typeString": "contract ERC20Basic" - } - }, - "id": 1064, - "nodeType": "InheritanceSpecifier", - "src": "162:10:2" - } - ], - "contractDependencies": [ - 1134 - ], - "contractKind": "contract", - "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", - "fullyImplemented": false, - "id": 1102, - "linearizedBaseContracts": [ - 1102, - 1134 - ], - "name": "ERC20", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1073, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1069, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1066, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "198:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1065, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "198:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1068, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "213:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1067, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "213:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "197:32:2" - }, - "payable": false, - "returnParameters": { - "id": 1072, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1071, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1073, - "src": "259:7:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1070, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "259:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "258:9:2" - }, - "scope": 1102, - "src": "179:89:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1084, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1080, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1075, - "name": "from", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "296:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1074, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "296:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1077, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "310:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1076, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "310:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1079, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "322:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1078, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "322:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "295:41:2" - }, - "payable": false, - "returnParameters": { - "id": 1083, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1082, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1084, - "src": "361:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1081, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "361:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "360:6:2" - }, - "scope": 1102, - "src": "274:93:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1093, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1089, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1086, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "390:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1085, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "390:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1088, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "407:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1087, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "407:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "389:32:2" - }, - "payable": false, - "returnParameters": { - "id": 1092, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1091, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1093, - "src": "438:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1090, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "437:6:2" - }, - "scope": 1102, - "src": "373:71:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1101, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 1100, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1095, - "indexed": true, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "469:21:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1094, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "469:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1097, - "indexed": true, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "496:23:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1096, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "496:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1099, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1101, - "src": "525:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1098, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "525:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "463:81:2" - }, - "src": "449:96:2" - } - ], - "scope": 1103, - "src": "144:403:2" - } - ], - "src": "0:547:2" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.163Z" -} \ No newline at end of file From 09b5b9de3f047217dcb7192393536f678d9cfed8 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:20:01 +0100 Subject: [PATCH 4/7] Delete ERC20Basic.json --- .../build/contracts/ERC20Basic.json | 866 ------------------ 1 file changed, 866 deletions(-) delete mode 100644 AlethenaShares/build/contracts/ERC20Basic.json diff --git a/AlethenaShares/build/contracts/ERC20Basic.json b/AlethenaShares/build/contracts/ERC20Basic.json deleted file mode 100644 index 924c6ad5..00000000 --- a/AlethenaShares/build/contracts/ERC20Basic.json +++ /dev/null @@ -1,866 +0,0 @@ -{ - "contractName": "ERC20Basic", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "who", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "to", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "sourceMap": "", - "deployedSourceMap": "", - "source": "pragma solidity ^0.4.24;\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * See https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "exportedSymbols": { - "ERC20Basic": [ - 1134 - ] - }, - "id": 1135, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1104, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:3" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179", - "fullyImplemented": false, - "id": 1134, - "linearizedBaseContracts": [ - 1134 - ], - "name": "ERC20Basic", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1109, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalSupply", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1105, - "nodeType": "ParameterList", - "parameters": [], - "src": "195:2:3" - }, - "payable": false, - "returnParameters": { - "id": 1108, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1107, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1109, - "src": "219:7:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1106, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "219:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "218:9:3" - }, - "scope": 1134, - "src": "175:53:3", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1116, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "balanceOf", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1112, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1111, - "name": "who", - "nodeType": "VariableDeclaration", - "scope": 1116, - "src": "252:11:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1110, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "252:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "251:13:3" - }, - "payable": false, - "returnParameters": { - "id": 1115, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1114, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1116, - "src": "286:7:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1113, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "286:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "285:9:3" - }, - "scope": 1134, - "src": "233:62:3", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1125, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1121, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1118, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "318:10:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1117, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "318:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1120, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "330:13:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1119, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "330:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "317:27:3" - }, - "payable": false, - "returnParameters": { - "id": 1124, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1123, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "361:4:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1122, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "361:4:3", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "360:6:3" - }, - "scope": 1134, - "src": "300:67:3", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1133, - "name": "Transfer", - "nodeType": "EventDefinition", - "parameters": { - "id": 1132, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1127, - "indexed": true, - "name": "from", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "387:20:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1126, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "387:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1129, - "indexed": true, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "409:18:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1128, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "409:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1131, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "429:13:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1130, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "429:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "386:57:3" - }, - "src": "372:72:3" - } - ], - "scope": 1135, - "src": "149:297:3" - } - ], - "src": "0:446:3" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/ERC20Basic.sol", - "exportedSymbols": { - "ERC20Basic": [ - 1134 - ] - }, - "id": 1135, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1104, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:3" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179", - "fullyImplemented": false, - "id": 1134, - "linearizedBaseContracts": [ - 1134 - ], - "name": "ERC20Basic", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1109, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "totalSupply", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1105, - "nodeType": "ParameterList", - "parameters": [], - "src": "195:2:3" - }, - "payable": false, - "returnParameters": { - "id": 1108, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1107, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1109, - "src": "219:7:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1106, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "219:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "218:9:3" - }, - "scope": 1134, - "src": "175:53:3", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1116, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "balanceOf", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1112, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1111, - "name": "who", - "nodeType": "VariableDeclaration", - "scope": 1116, - "src": "252:11:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1110, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "252:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "251:13:3" - }, - "payable": false, - "returnParameters": { - "id": 1115, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1114, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1116, - "src": "286:7:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1113, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "286:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "285:9:3" - }, - "scope": 1134, - "src": "233:62:3", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1125, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transfer", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1121, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1118, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "318:10:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1117, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "318:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1120, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "330:13:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1119, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "330:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "317:27:3" - }, - "payable": false, - "returnParameters": { - "id": 1124, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1123, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1125, - "src": "361:4:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1122, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "361:4:3", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "360:6:3" - }, - "scope": 1134, - "src": "300:67:3", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1133, - "name": "Transfer", - "nodeType": "EventDefinition", - "parameters": { - "id": 1132, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1127, - "indexed": true, - "name": "from", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "387:20:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1126, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "387:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1129, - "indexed": true, - "name": "to", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "409:18:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1128, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "409:7:3", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1131, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1133, - "src": "429:13:3", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1130, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "429:7:3", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "386:57:3" - }, - "src": "372:72:3" - } - ], - "scope": 1135, - "src": "149:297:3" - } - ], - "src": "0:446:3" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.163Z" -} \ No newline at end of file From a18e623482429fe0b17fa15819bf12ea16536bb9 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:20:12 +0100 Subject: [PATCH 5/7] Delete Migrations.json --- .../build/contracts/Migrations.json | 1380 ----------------- 1 file changed, 1380 deletions(-) delete mode 100644 AlethenaShares/build/contracts/Migrations.json diff --git a/AlethenaShares/build/contracts/Migrations.json b/AlethenaShares/build/contracts/Migrations.json deleted file mode 100644 index 91e5bb91..00000000 --- a/AlethenaShares/build/contracts/Migrations.json +++ /dev/null @@ -1,1380 +0,0 @@ -{ - "contractName": "Migrations", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "last_completed_migration", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "constant": false, - "inputs": [ - { - "name": "completed", - "type": "uint256" - } - ], - "name": "setCompleted", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "new_address", - "type": "address" - } - ], - "name": "upgrade", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561023c806100326000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f0108114610066578063445df0ac146100965780638da5cb5b146100bd578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b60408051918252519081900360200190f35b3480156100c957600080fd5b506100d26101cb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820f90d1922fc6ad2d5d2fa5cb41ffe1d30567ed78a8f5288fb560deb108634ea840029", - "deployedBytecode": "0x6080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f0108114610066578063445df0ac146100965780638da5cb5b146100bd578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b60408051918252519081900360200190f35b3480156100c957600080fd5b506100d26101cb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820f90d1922fc6ad2d5d2fa5cb41ffe1d30567ed78a8f5288fb560deb108634ea840029", - "sourceMap": "26:520:4:-;;;121:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;152:5:4;:18;;-1:-1:-1;;;;;;152:18:4;160:10;152:18;;;26:520;;;;;;", - "deployedSourceMap": "26:520:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;369:175;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;369:175:4;;;;;;;;;78:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78:36:4;;;;;;;;;;;;;;;;;;;;52:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52:20:4;;;;;;;;;;;;;;;;;;;;;;;254:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;254:109:4;;;;;369:175;435:19;233:5;;;;219:10;:19;215:26;;;468:11;435:45;;490:8;:21;;;512:24;;490:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;490:47:4;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;490:47:4;;;;215:26;369:175;;:::o;78:36::-;;;;:::o;52:20::-;;;;;;:::o;254:109::-;233:5;;;;219:10;:19;215:26;;;320:24;:36;;;215:26;254:109;:::o", - "source": "pragma solidity ^0.4.24;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\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": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Migrations.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Migrations.sol", - "exportedSymbols": { - "Migrations": [ - 1191 - ] - }, - "id": 1192, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1136, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:4" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 1191, - "linearizedBaseContracts": [ - 1191 - ], - "name": "Migrations", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 1138, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1191, - "src": "52:20:4", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1137, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "52:7:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 1140, - "name": "last_completed_migration", - "nodeType": "VariableDeclaration", - "scope": 1191, - "src": "78:36:4", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1139, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "78:4:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 1148, - "nodeType": "Block", - "src": "142:35:4", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1146, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1143, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1138, - "src": "152:5:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1144, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "160:3:4", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1145, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "160:10:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "152:18:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1147, - "nodeType": "ExpressionStatement", - "src": "152:18:4" - } - ] - }, - "documentation": null, - "id": 1149, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1141, - "nodeType": "ParameterList", - "parameters": [], - "src": "132:2:4" - }, - "payable": false, - "returnParameters": { - "id": 1142, - "nodeType": "ParameterList", - "parameters": [], - "src": "142:0:4" - }, - "scope": 1191, - "src": "121:56:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1157, - "nodeType": "Block", - "src": "205:43:4", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1154, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1151, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "219:3:4", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1152, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "219:10:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1153, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1138, - "src": "233:5:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "219:19:4", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 1156, - "nodeType": "IfStatement", - "src": "215:26:4", - "trueBody": { - "id": 1155, - "nodeType": "PlaceholderStatement", - "src": "240:1:4" - } - } - ] - }, - "documentation": null, - "id": 1158, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 1150, - "nodeType": "ParameterList", - "parameters": [], - "src": "202:2:4" - }, - "src": "183:65:4", - "visibility": "internal" - }, - { - "body": { - "id": 1169, - "nodeType": "Block", - "src": "310:53:4", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1167, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1165, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1140, - "src": "320:24:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 1166, - "name": "completed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1160, - "src": "347:9:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "320:36:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1168, - "nodeType": "ExpressionStatement", - "src": "320:36:4" - } - ] - }, - "documentation": null, - "id": 1170, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1163, - "modifierName": { - "argumentTypes": null, - "id": 1162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1158, - "src": "299:10:4", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "299:10:4" - } - ], - "name": "setCompleted", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1160, - "name": "completed", - "nodeType": "VariableDeclaration", - "scope": 1170, - "src": "276:14:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1159, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "276:4:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "275:16:4" - }, - "payable": false, - "returnParameters": { - "id": 1164, - "nodeType": "ParameterList", - "parameters": [], - "src": "310:0:4" - }, - "scope": 1191, - "src": "254:109:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1189, - "nodeType": "Block", - "src": "425:119:4", - "statements": [ - { - "assignments": [ - 1178 - ], - "declarations": [ - { - "constant": false, - "id": 1178, - "name": "upgraded", - "nodeType": "VariableDeclaration", - "scope": 1190, - "src": "435:19:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - }, - "typeName": { - "contractScope": null, - "id": 1177, - "name": "Migrations", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1191, - "src": "435:10:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 1182, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1180, - "name": "new_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1172, - "src": "468:11:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1179, - "name": "Migrations", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1191, - "src": "457:10:4", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$1191_$", - "typeString": "type(contract Migrations)" - } - }, - "id": 1181, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "457:23:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "435:45:4" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1186, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1140, - "src": "512:24:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 1183, - "name": "upgraded", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1178, - "src": "490:8:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "id": 1185, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "setCompleted", - "nodeType": "MemberAccess", - "referencedDeclaration": 1170, - "src": "490:21:4", - "typeDescriptions": { - "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256) external" - } - }, - "id": 1187, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "490:47:4", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1188, - "nodeType": "ExpressionStatement", - "src": "490:47:4" - } - ] - }, - "documentation": null, - "id": 1190, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1175, - "modifierName": { - "argumentTypes": null, - "id": 1174, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1158, - "src": "414:10:4", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "414:10:4" - } - ], - "name": "upgrade", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1173, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1172, - "name": "new_address", - "nodeType": "VariableDeclaration", - "scope": 1190, - "src": "386:19:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1171, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "386:7:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "385:21:4" - }, - "payable": false, - "returnParameters": { - "id": 1176, - "nodeType": "ParameterList", - "parameters": [], - "src": "425:0:4" - }, - "scope": 1191, - "src": "369:175:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 1192, - "src": "26:520:4" - } - ], - "src": "0:547:4" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Migrations.sol", - "exportedSymbols": { - "Migrations": [ - 1191 - ] - }, - "id": 1192, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1136, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:4" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 1191, - "linearizedBaseContracts": [ - 1191 - ], - "name": "Migrations", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 1138, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1191, - "src": "52:20:4", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1137, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "52:7:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 1140, - "name": "last_completed_migration", - "nodeType": "VariableDeclaration", - "scope": 1191, - "src": "78:36:4", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1139, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "78:4:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 1148, - "nodeType": "Block", - "src": "142:35:4", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1146, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1143, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1138, - "src": "152:5:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1144, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "160:3:4", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1145, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "160:10:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "152:18:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1147, - "nodeType": "ExpressionStatement", - "src": "152:18:4" - } - ] - }, - "documentation": null, - "id": 1149, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1141, - "nodeType": "ParameterList", - "parameters": [], - "src": "132:2:4" - }, - "payable": false, - "returnParameters": { - "id": 1142, - "nodeType": "ParameterList", - "parameters": [], - "src": "142:0:4" - }, - "scope": 1191, - "src": "121:56:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1157, - "nodeType": "Block", - "src": "205:43:4", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1154, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1151, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "219:3:4", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1152, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "219:10:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1153, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1138, - "src": "233:5:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "219:19:4", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 1156, - "nodeType": "IfStatement", - "src": "215:26:4", - "trueBody": { - "id": 1155, - "nodeType": "PlaceholderStatement", - "src": "240:1:4" - } - } - ] - }, - "documentation": null, - "id": 1158, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 1150, - "nodeType": "ParameterList", - "parameters": [], - "src": "202:2:4" - }, - "src": "183:65:4", - "visibility": "internal" - }, - { - "body": { - "id": 1169, - "nodeType": "Block", - "src": "310:53:4", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1167, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1165, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1140, - "src": "320:24:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 1166, - "name": "completed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1160, - "src": "347:9:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "320:36:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1168, - "nodeType": "ExpressionStatement", - "src": "320:36:4" - } - ] - }, - "documentation": null, - "id": 1170, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1163, - "modifierName": { - "argumentTypes": null, - "id": 1162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1158, - "src": "299:10:4", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "299:10:4" - } - ], - "name": "setCompleted", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1160, - "name": "completed", - "nodeType": "VariableDeclaration", - "scope": 1170, - "src": "276:14:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1159, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "276:4:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "275:16:4" - }, - "payable": false, - "returnParameters": { - "id": 1164, - "nodeType": "ParameterList", - "parameters": [], - "src": "310:0:4" - }, - "scope": 1191, - "src": "254:109:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1189, - "nodeType": "Block", - "src": "425:119:4", - "statements": [ - { - "assignments": [ - 1178 - ], - "declarations": [ - { - "constant": false, - "id": 1178, - "name": "upgraded", - "nodeType": "VariableDeclaration", - "scope": 1190, - "src": "435:19:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - }, - "typeName": { - "contractScope": null, - "id": 1177, - "name": "Migrations", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1191, - "src": "435:10:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 1182, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1180, - "name": "new_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1172, - "src": "468:11:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1179, - "name": "Migrations", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1191, - "src": "457:10:4", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$1191_$", - "typeString": "type(contract Migrations)" - } - }, - "id": 1181, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "457:23:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "435:45:4" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1186, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1140, - "src": "512:24:4", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 1183, - "name": "upgraded", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1178, - "src": "490:8:4", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$1191", - "typeString": "contract Migrations" - } - }, - "id": 1185, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "setCompleted", - "nodeType": "MemberAccess", - "referencedDeclaration": 1170, - "src": "490:21:4", - "typeDescriptions": { - "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256) external" - } - }, - "id": 1187, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "490:47:4", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1188, - "nodeType": "ExpressionStatement", - "src": "490:47:4" - } - ] - }, - "documentation": null, - "id": 1190, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1175, - "modifierName": { - "argumentTypes": null, - "id": 1174, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1158, - "src": "414:10:4", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "414:10:4" - } - ], - "name": "upgrade", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1173, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1172, - "name": "new_address", - "nodeType": "VariableDeclaration", - "scope": 1190, - "src": "386:19:4", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1171, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "386:7:4", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "385:21:4" - }, - "payable": false, - "returnParameters": { - "id": 1176, - "nodeType": "ParameterList", - "parameters": [], - "src": "425:0:4" - }, - "scope": 1191, - "src": "369:175:4", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 1192, - "src": "26:520:4" - } - ], - "src": "0:547:4" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.164Z" -} \ No newline at end of file From a7c9dae0663985b3160ddcec7669a1731e160773 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:20:19 +0100 Subject: [PATCH 6/7] Delete Ownable.json --- AlethenaShares/build/contracts/Ownable.json | 2462 ------------------- 1 file changed, 2462 deletions(-) delete mode 100644 AlethenaShares/build/contracts/Ownable.json diff --git a/AlethenaShares/build/contracts/Ownable.json b/AlethenaShares/build/contracts/Ownable.json deleted file mode 100644 index ccc7bd0d..00000000 --- a/AlethenaShares/build/contracts/Ownable.json +++ /dev/null @@ -1,2462 +0,0 @@ -{ - "contractName": "Ownable", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "master", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x608060405260018054600160a060020a031916730e0a1a8daa228def4a4a8613b3e40aaf435d319e17905534801561003657600080fd5b5060008054600160a060020a0319163317905561023a806100586000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100665780638da5cb5b1461007d578063ee97f7f3146100ae578063f2fde38b146100c3575b600080fd5b34801561007257600080fd5b5061007b6100e4565b005b34801561008957600080fd5b50610092610150565b60408051600160a060020a039092168252519081900360200190f35b3480156100ba57600080fd5b5061009261015f565b3480156100cf57600080fd5b5061007b600160a060020a036004351661016e565b600054600160a060020a031633146100fb57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600154600160a060020a031681565b600154600160a060020a0316331461018557600080fd5b61018e81610191565b50565b600160a060020a03811615156101a657600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058206d03b363664fc94c6b244a8ea7fcb59f84fb52f320b580878081b9f870f02a1a0029", - "deployedBytecode": "0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100665780638da5cb5b1461007d578063ee97f7f3146100ae578063f2fde38b146100c3575b600080fd5b34801561007257600080fd5b5061007b6100e4565b005b34801561008957600080fd5b50610092610150565b60408051600160a060020a039092168252519081900360200190f35b3480156100ba57600080fd5b5061009261015f565b3480156100cf57600080fd5b5061007b600160a060020a036004351661016e565b600054600160a060020a031633146100fb57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600154600160a060020a031681565b600154600160a060020a0316331461018557600080fd5b61018e81610191565b50565b600160a060020a03811615156101a657600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058206d03b363664fc94c6b244a8ea7fcb59f84fb52f320b580878081b9f870f02a1a0029", - "sourceMap": "271:1460:5:-;;;320:66;;;-1:-1:-1;;;;;;320:66:5;344:42;320:66;;;683:56;5:2:-1;;;;30:1;27;20:12;5:2;-1:-1;714:5:5;:18;;-1:-1:-1;;;;;;714:18:5;722:10;714:18;;;271:1460;;;;;;", - "deployedSourceMap": "271:1460:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;990:121;;8:9:-1;5:2;;;30:1;27;20:12;5:2;990:121:5;;;;;;294:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;294:20:5;;;;;;;;-1:-1:-1;;;;;294:20:5;;;;;;;;;;;;;;320:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;320:66:5;;;;1268:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1268:139:5;-1:-1:-1;;;;;1268:139:5;;;;;990:121;874:5;;-1:-1:-1;;;;;874:5:5;860:10;:19;852:28;;;;;;1070:5;;;1051:25;;-1:-1:-1;;;;;1070:5:5;;;;1051:25;;;1102:1;1086:18;;-1:-1:-1;;1086:18:5;;;990:121::o;294:20::-;;;-1:-1:-1;;;;;294:20:5;;:::o;320:66::-;;;-1:-1:-1;;;;;320:66:5;;:::o;1268:139::-;1354:6;;-1:-1:-1;;;;;1354:6:5;1340:10;:20;1332:29;;;;;;1371;1390:9;1371:18;:29::i;:::-;1268:139;:::o;1544:185::-;-1:-1:-1;;;;;1618:23:5;;;;1610:32;;;;;;1678:5;;;1657:38;;-1:-1:-1;;;;;1657:38:5;;;;1678:5;;;1657:38;;;1705:5;:17;;-1:-1:-1;;1705:17:5;-1:-1:-1;;;;;1705:17:5;;;;;;;;;;1544:185::o", - "source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n * A special address 'master' can transfer ownership.\n */\ncontract Ownable {\n address public owner;\n address public master = 0x0E0a1A8daa228dEF4a4A8613B3E40Aaf435D319e;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n\n /**\n * @dev The Ownable constructor sets the original 'owner' of the contract to the sender\n * account.\n */\n constructor() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to relinquish control of the contract.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipRenounced(owner);\n owner = address(0);\n }\n\n /**\n * @dev Allows the master to transfer control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function transferOwnership(address _newOwner) public {\n require(msg.sender == master);\n _transferOwnership(_newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address _newOwner) internal {\n require(_newOwner != address(0));\n emit OwnershipTransferred(owner, _newOwner);\n owner = _newOwner;\n }\n}\n", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Ownable.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Ownable.sol", - "exportedSymbols": { - "Ownable": [ - 1285 - ] - }, - "id": 1286, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1193, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:5" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".\nA special address 'master' can transfer ownership.", - "fullyImplemented": true, - "id": 1285, - "linearizedBaseContracts": [ - 1285 - ], - "name": "Ownable", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 1195, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1285, - "src": "294:20:5", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1194, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "294:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 1198, - "name": "master", - "nodeType": "VariableDeclaration", - "scope": 1285, - "src": "320:66:5", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1196, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "320:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "307830453061314138646161323238644546346134413836313342334534304161663433354433313965", - "id": 1197, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "344:42:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "value": "0x0E0a1A8daa228dEF4a4A8613B3E40Aaf435D319e" - }, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1202, - "name": "OwnershipRenounced", - "nodeType": "EventDefinition", - "parameters": { - "id": 1201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1200, - "indexed": true, - "name": "previousOwner", - "nodeType": "VariableDeclaration", - "scope": 1202, - "src": "418:29:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1199, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "418:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "417:31:5" - }, - "src": "393:56:5" - }, - { - "anonymous": false, - "documentation": null, - "id": 1208, - "name": "OwnershipTransferred", - "nodeType": "EventDefinition", - "parameters": { - "id": 1207, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1204, - "indexed": true, - "name": "previousOwner", - "nodeType": "VariableDeclaration", - "scope": 1208, - "src": "490:29:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1203, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "490:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1206, - "indexed": true, - "name": "newOwner", - "nodeType": "VariableDeclaration", - "scope": 1208, - "src": "529:24:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1205, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "529:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "480:79:5" - }, - "src": "454:106:5" - }, - { - "body": { - "id": 1216, - "nodeType": "Block", - "src": "704:35:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1214, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1211, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "714:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1212, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "722:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1213, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "722:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "714:18:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1215, - "nodeType": "ExpressionStatement", - "src": "714:18:5" - } - ] - }, - "documentation": "@dev The Ownable constructor sets the original 'owner' of the contract to the sender\naccount.", - "id": 1217, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1209, - "nodeType": "ParameterList", - "parameters": [], - "src": "694:2:5" - }, - "payable": false, - "returnParameters": { - "id": 1210, - "nodeType": "ParameterList", - "parameters": [], - "src": "704:0:5" - }, - "scope": 1285, - "src": "683:56:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1227, - "nodeType": "Block", - "src": "842:56:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1223, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1220, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "860:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1221, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "860:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1222, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "874:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "860:19:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1219, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "852:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1224, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "852:28:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1225, - "nodeType": "ExpressionStatement", - "src": "852:28:5" - }, - { - "id": 1226, - "nodeType": "PlaceholderStatement", - "src": "890:1:5" - } - ] - }, - "documentation": "@dev Throws if called by any account other than the owner.", - "id": 1228, - "name": "onlyOwner", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 1218, - "nodeType": "ParameterList", - "parameters": [], - "src": "839:2:5" - }, - "src": "821:77:5", - "visibility": "internal" - }, - { - "body": { - "id": 1243, - "nodeType": "Block", - "src": "1036:75:5", - "statements": [ - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1234, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1070:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1233, - "name": "OwnershipRenounced", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1202, - "src": "1051:18:5", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 1235, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1051:25:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1236, - "nodeType": "EmitStatement", - "src": "1046:30:5" - }, - { - "expression": { - "argumentTypes": null, - "id": 1241, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1237, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1086:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 1239, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1102:1:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 1238, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "1094:7:5", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 1240, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1094:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1086:18:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1242, - "nodeType": "ExpressionStatement", - "src": "1086:18:5" - } - ] - }, - "documentation": "@dev Allows the current owner to relinquish control of the contract.", - "id": 1244, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1231, - "modifierName": { - "argumentTypes": null, - "id": 1230, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "1026:9:5", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1026:9:5" - } - ], - "name": "renounceOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1229, - "nodeType": "ParameterList", - "parameters": [], - "src": "1016:2:5" - }, - "payable": false, - "returnParameters": { - "id": 1232, - "nodeType": "ParameterList", - "parameters": [], - "src": "1036:0:5" - }, - "scope": 1285, - "src": "990:121:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1260, - "nodeType": "Block", - "src": "1321:86:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1253, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1250, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "1340:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1251, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1340:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1252, - "name": "master", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1198, - "src": "1354:6:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1340:20:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1249, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "1332:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1254, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1332:29:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1255, - "nodeType": "ExpressionStatement", - "src": "1332:29:5" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1257, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1246, - "src": "1390:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1256, - "name": "_transferOwnership", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1284, - "src": "1371:18:5", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 1258, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1371:29:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1259, - "nodeType": "ExpressionStatement", - "src": "1371:29:5" - } - ] - }, - "documentation": "@dev Allows the master to transfer control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", - "id": 1261, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1247, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1246, - "name": "_newOwner", - "nodeType": "VariableDeclaration", - "scope": 1261, - "src": "1295:17:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1245, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1295:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1294:19:5" - }, - "payable": false, - "returnParameters": { - "id": 1248, - "nodeType": "ParameterList", - "parameters": [], - "src": "1321:0:5" - }, - "scope": 1285, - "src": "1268:139:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1283, - "nodeType": "Block", - "src": "1600:129:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1271, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1267, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1618:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 1269, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1639:1:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 1268, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "1631:7:5", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 1270, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1631:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1618:23:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1266, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "1610:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1272, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1610:32:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1273, - "nodeType": "ExpressionStatement", - "src": "1610:32:5" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1275, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1678:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 1276, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1685:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1274, - "name": "OwnershipTransferred", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1208, - "src": "1657:20:5", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", - "typeString": "function (address,address)" - } - }, - "id": 1277, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1657:38:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1278, - "nodeType": "EmitStatement", - "src": "1652:43:5" - }, - { - "expression": { - "argumentTypes": null, - "id": 1281, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1279, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1705:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 1280, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1713:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1705:17:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1282, - "nodeType": "ExpressionStatement", - "src": "1705:17:5" - } - ] - }, - "documentation": "@dev Transfers control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", - "id": 1284, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "_transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1264, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1263, - "name": "_newOwner", - "nodeType": "VariableDeclaration", - "scope": 1284, - "src": "1572:17:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1262, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1572:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1571:19:5" - }, - "payable": false, - "returnParameters": { - "id": 1265, - "nodeType": "ParameterList", - "parameters": [], - "src": "1600:0:5" - }, - "scope": 1285, - "src": "1544:185:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "internal" - } - ], - "scope": 1286, - "src": "271:1460:5" - } - ], - "src": "0:1732:5" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/Ownable.sol", - "exportedSymbols": { - "Ownable": [ - 1285 - ] - }, - "id": 1286, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1193, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:5" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".\nA special address 'master' can transfer ownership.", - "fullyImplemented": true, - "id": 1285, - "linearizedBaseContracts": [ - 1285 - ], - "name": "Ownable", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 1195, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1285, - "src": "294:20:5", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1194, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "294:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 1198, - "name": "master", - "nodeType": "VariableDeclaration", - "scope": 1285, - "src": "320:66:5", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1196, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "320:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "307830453061314138646161323238644546346134413836313342334534304161663433354433313965", - "id": 1197, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "344:42:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "value": "0x0E0a1A8daa228dEF4a4A8613B3E40Aaf435D319e" - }, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1202, - "name": "OwnershipRenounced", - "nodeType": "EventDefinition", - "parameters": { - "id": 1201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1200, - "indexed": true, - "name": "previousOwner", - "nodeType": "VariableDeclaration", - "scope": 1202, - "src": "418:29:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1199, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "418:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "417:31:5" - }, - "src": "393:56:5" - }, - { - "anonymous": false, - "documentation": null, - "id": 1208, - "name": "OwnershipTransferred", - "nodeType": "EventDefinition", - "parameters": { - "id": 1207, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1204, - "indexed": true, - "name": "previousOwner", - "nodeType": "VariableDeclaration", - "scope": 1208, - "src": "490:29:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1203, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "490:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1206, - "indexed": true, - "name": "newOwner", - "nodeType": "VariableDeclaration", - "scope": 1208, - "src": "529:24:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1205, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "529:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "480:79:5" - }, - "src": "454:106:5" - }, - { - "body": { - "id": 1216, - "nodeType": "Block", - "src": "704:35:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1214, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1211, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "714:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1212, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "722:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1213, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "722:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "714:18:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1215, - "nodeType": "ExpressionStatement", - "src": "714:18:5" - } - ] - }, - "documentation": "@dev The Ownable constructor sets the original 'owner' of the contract to the sender\naccount.", - "id": 1217, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1209, - "nodeType": "ParameterList", - "parameters": [], - "src": "694:2:5" - }, - "payable": false, - "returnParameters": { - "id": 1210, - "nodeType": "ParameterList", - "parameters": [], - "src": "704:0:5" - }, - "scope": 1285, - "src": "683:56:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1227, - "nodeType": "Block", - "src": "842:56:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1223, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1220, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "860:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1221, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "860:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1222, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "874:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "860:19:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1219, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "852:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1224, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "852:28:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1225, - "nodeType": "ExpressionStatement", - "src": "852:28:5" - }, - { - "id": 1226, - "nodeType": "PlaceholderStatement", - "src": "890:1:5" - } - ] - }, - "documentation": "@dev Throws if called by any account other than the owner.", - "id": 1228, - "name": "onlyOwner", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 1218, - "nodeType": "ParameterList", - "parameters": [], - "src": "839:2:5" - }, - "src": "821:77:5", - "visibility": "internal" - }, - { - "body": { - "id": 1243, - "nodeType": "Block", - "src": "1036:75:5", - "statements": [ - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1234, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1070:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1233, - "name": "OwnershipRenounced", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1202, - "src": "1051:18:5", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 1235, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1051:25:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1236, - "nodeType": "EmitStatement", - "src": "1046:30:5" - }, - { - "expression": { - "argumentTypes": null, - "id": 1241, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1237, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1086:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 1239, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1102:1:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 1238, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "1094:7:5", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 1240, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1094:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1086:18:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1242, - "nodeType": "ExpressionStatement", - "src": "1086:18:5" - } - ] - }, - "documentation": "@dev Allows the current owner to relinquish control of the contract.", - "id": 1244, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 1231, - "modifierName": { - "argumentTypes": null, - "id": 1230, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1228, - "src": "1026:9:5", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1026:9:5" - } - ], - "name": "renounceOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1229, - "nodeType": "ParameterList", - "parameters": [], - "src": "1016:2:5" - }, - "payable": false, - "returnParameters": { - "id": 1232, - "nodeType": "ParameterList", - "parameters": [], - "src": "1036:0:5" - }, - "scope": 1285, - "src": "990:121:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1260, - "nodeType": "Block", - "src": "1321:86:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1253, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 1250, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1394, - "src": "1340:3:5", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 1251, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1340:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1252, - "name": "master", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1198, - "src": "1354:6:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1340:20:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1249, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "1332:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1254, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1332:29:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1255, - "nodeType": "ExpressionStatement", - "src": "1332:29:5" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1257, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1246, - "src": "1390:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1256, - "name": "_transferOwnership", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1284, - "src": "1371:18:5", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", - "typeString": "function (address)" - } - }, - "id": 1258, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1371:29:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1259, - "nodeType": "ExpressionStatement", - "src": "1371:29:5" - } - ] - }, - "documentation": "@dev Allows the master to transfer control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", - "id": 1261, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1247, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1246, - "name": "_newOwner", - "nodeType": "VariableDeclaration", - "scope": 1261, - "src": "1295:17:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1245, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1295:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1294:19:5" - }, - "payable": false, - "returnParameters": { - "id": 1248, - "nodeType": "ParameterList", - "parameters": [], - "src": "1321:0:5" - }, - "scope": 1285, - "src": "1268:139:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 1283, - "nodeType": "Block", - "src": "1600:129:5", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 1271, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1267, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1618:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "!=", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 1269, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1639:1:5", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 1268, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "1631:7:5", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": "address" - }, - "id": 1270, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1631:10:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1618:23:5", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1266, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 1397, - 1398 - ], - "referencedDeclaration": 1397, - "src": "1610:7:5", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1272, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1610:32:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1273, - "nodeType": "ExpressionStatement", - "src": "1610:32:5" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1275, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1678:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 1276, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1685:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 1274, - "name": "OwnershipTransferred", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1208, - "src": "1657:20:5", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", - "typeString": "function (address,address)" - } - }, - "id": 1277, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1657:38:5", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1278, - "nodeType": "EmitStatement", - "src": "1652:43:5" - }, - { - "expression": { - "argumentTypes": null, - "id": 1281, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1279, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1195, - "src": "1705:5:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 1280, - "name": "_newOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1263, - "src": "1713:9:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1705:17:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 1282, - "nodeType": "ExpressionStatement", - "src": "1705:17:5" - } - ] - }, - "documentation": "@dev Transfers control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", - "id": 1284, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "_transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1264, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1263, - "name": "_newOwner", - "nodeType": "VariableDeclaration", - "scope": 1284, - "src": "1572:17:5", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1262, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1572:7:5", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1571:19:5" - }, - "payable": false, - "returnParameters": { - "id": 1265, - "nodeType": "ParameterList", - "parameters": [], - "src": "1600:0:5" - }, - "scope": 1285, - "src": "1544:185:5", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "internal" - } - ], - "scope": 1286, - "src": "271:1460:5" - } - ], - "src": "0:1732:5" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.164Z" -} \ No newline at end of file From 6c69160405cba8f227c0a344d6c4c4f64eb49774 Mon Sep 17 00:00:00 2001 From: rickenbb <34809885+rickenbb@users.noreply.github.com> Date: Wed, 14 Nov 2018 12:20:27 +0100 Subject: [PATCH 7/7] Delete SafeMath.json --- AlethenaShares/build/contracts/SafeMath.json | 2365 ------------------ 1 file changed, 2365 deletions(-) delete mode 100644 AlethenaShares/build/contracts/SafeMath.json diff --git a/AlethenaShares/build/contracts/SafeMath.json b/AlethenaShares/build/contracts/SafeMath.json deleted file mode 100644 index 2d8ded09..00000000 --- a/AlethenaShares/build/contracts/SafeMath.json +++ /dev/null @@ -1,2365 +0,0 @@ -{ - "contractName": "SafeMath", - "abi": [], - "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820f857c719dab10216f462f6bc45cb7ab98553add1222abdeeee0798fa44d6e8240029", - "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820f857c719dab10216f462f6bc45cb7ab98553add1222abdeeee0798fa44d6e8240029", - "sourceMap": "117:1312:6:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", - "deployedSourceMap": "117:1312:6:-;;;;;;;;", - "source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n // Gas optimization: this is cheaper than asserting 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\n if (a == 0) {\n return 0;\n }\n\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n /**\n * @dev Integer division of two numbers, truncating the quotient.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n // assert(b > 0); // Solidity automatically throws when dividing by 0\n // uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n return a / b;\n }\n\n /**\n * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n assert(b <= a);\n return a - b;\n }\n\n /**\n * @dev Adds two numbers, throws on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256 c) {\n c = a + b;\n assert(c >= a);\n return c;\n }\n}", - "sourcePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "ast": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "exportedSymbols": { - "SafeMath": [ - 1379 - ] - }, - "id": 1380, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1287, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:6" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "library", - "documentation": "@title SafeMath\n@dev Math operations with safety checks that throw on error", - "fullyImplemented": true, - "id": 1379, - "linearizedBaseContracts": [ - 1379 - ], - "name": "SafeMath", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": { - "id": 1319, - "nodeType": "Block", - "src": "274:344:6", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1298, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1296, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "505:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1297, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "510:1:6", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "505:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 1302, - "nodeType": "IfStatement", - "src": "501:45:6", - "trueBody": { - "id": 1301, - "nodeType": "Block", - "src": "513:33:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1299, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "534:1:6", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "functionReturnParameters": 1295, - "id": 1300, - "nodeType": "Return", - "src": "527:8:6" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "id": 1307, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1303, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "556:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1306, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1304, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "560:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "id": 1305, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1291, - "src": "564:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "560:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "556:9:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1308, - "nodeType": "ExpressionStatement", - "src": "556:9:6" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1314, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1312, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1310, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "582:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "/", - "rightExpression": { - "argumentTypes": null, - "id": 1311, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "586:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "582:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1313, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1291, - "src": "591:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "582:10:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1309, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "575:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1315, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "575:18:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1316, - "nodeType": "ExpressionStatement", - "src": "575:18:6" - }, - { - "expression": { - "argumentTypes": null, - "id": 1317, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "610:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1295, - "id": 1318, - "nodeType": "Return", - "src": "603:8:6" - } - ] - }, - "documentation": "@dev Multiplies two numbers, throws on overflow.", - "id": 1320, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "mul", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1292, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1289, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "218:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1288, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "218:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1291, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "229:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1290, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "229:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "217:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1295, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1294, - "name": "c", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "263:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1293, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "263:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "262:11:6" - }, - "scope": 1379, - "src": "205:413:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1333, - "nodeType": "Block", - "src": "769:223:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1331, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1329, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1322, - "src": "980:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "/", - "rightExpression": { - "argumentTypes": null, - "id": 1330, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1324, - "src": "984:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "980:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1328, - "id": 1332, - "nodeType": "Return", - "src": "973:12:6" - } - ] - }, - "documentation": "@dev Integer division of two numbers, truncating the quotient.", - "id": 1334, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "div", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1325, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1322, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "715:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1321, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "715:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1324, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "726:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1323, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "726:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "714:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1328, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1327, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "760:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1326, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "760:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "759:9:6" - }, - "scope": 1379, - "src": "702:290:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1353, - "nodeType": "Block", - "src": "1173:53:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1346, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1344, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1338, - "src": "1190:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "id": 1345, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1336, - "src": "1195:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1190:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1343, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "1183:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1347, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1183:14:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1348, - "nodeType": "ExpressionStatement", - "src": "1183:14:6" - }, - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1351, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1349, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1336, - "src": "1214:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "id": 1350, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1338, - "src": "1218:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1214:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1342, - "id": 1352, - "nodeType": "Return", - "src": "1207:12:6" - } - ] - }, - "documentation": "@dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).", - "id": 1354, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "sub", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1339, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1336, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1119:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1335, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1119:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1338, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1130:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1337, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1130:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1118:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1342, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1341, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1164:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1340, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1164:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1163:9:6" - }, - "scope": 1379, - "src": "1106:120:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1377, - "nodeType": "Block", - "src": "1359:68:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1367, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1363, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1369:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1366, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1364, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1356, - "src": "1373:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 1365, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1358, - "src": "1377:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1373:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1369:9:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1368, - "nodeType": "ExpressionStatement", - "src": "1369:9:6" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1372, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1370, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1395:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "id": 1371, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1356, - "src": "1400:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1395:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1369, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "1388:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1373, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1388:14:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1374, - "nodeType": "ExpressionStatement", - "src": "1388:14:6" - }, - { - "expression": { - "argumentTypes": null, - "id": 1375, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1419:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1362, - "id": 1376, - "nodeType": "Return", - "src": "1412:8:6" - } - ] - }, - "documentation": "@dev Adds two numbers, throws on overflow.", - "id": 1378, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "add", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1359, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1356, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1303:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1355, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1303:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1358, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1314:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1357, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1314:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1302:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1362, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1361, - "name": "c", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1348:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1360, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1348:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1347:11:6" - }, - "scope": 1379, - "src": "1290:137:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - } - ], - "scope": 1380, - "src": "117:1312:6" - } - ], - "src": "0:1429:6" - }, - "legacyAST": { - "absolutePath": "/home/benjamin/Documents/GitHub/Ethereum/Alethena-Shares-Token/AlethenaShares/contracts/SafeMath.sol", - "exportedSymbols": { - "SafeMath": [ - 1379 - ] - }, - "id": 1380, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1287, - "literals": [ - "solidity", - "^", - "0.4", - ".24" - ], - "nodeType": "PragmaDirective", - "src": "0:24:6" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "library", - "documentation": "@title SafeMath\n@dev Math operations with safety checks that throw on error", - "fullyImplemented": true, - "id": 1379, - "linearizedBaseContracts": [ - 1379 - ], - "name": "SafeMath", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": { - "id": 1319, - "nodeType": "Block", - "src": "274:344:6", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1298, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1296, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "505:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1297, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "510:1:6", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "505:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 1302, - "nodeType": "IfStatement", - "src": "501:45:6", - "trueBody": { - "id": 1301, - "nodeType": "Block", - "src": "513:33:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "hexValue": "30", - "id": 1299, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "534:1:6", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "functionReturnParameters": 1295, - "id": 1300, - "nodeType": "Return", - "src": "527:8:6" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "id": 1307, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1303, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "556:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1306, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1304, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "560:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "*", - "rightExpression": { - "argumentTypes": null, - "id": 1305, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1291, - "src": "564:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "560:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "556:9:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1308, - "nodeType": "ExpressionStatement", - "src": "556:9:6" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1314, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1312, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1310, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "582:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "/", - "rightExpression": { - "argumentTypes": null, - "id": 1311, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1289, - "src": "586:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "582:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 1313, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1291, - "src": "591:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "582:10:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1309, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "575:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1315, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "575:18:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1316, - "nodeType": "ExpressionStatement", - "src": "575:18:6" - }, - { - "expression": { - "argumentTypes": null, - "id": 1317, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1294, - "src": "610:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1295, - "id": 1318, - "nodeType": "Return", - "src": "603:8:6" - } - ] - }, - "documentation": "@dev Multiplies two numbers, throws on overflow.", - "id": 1320, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "mul", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1292, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1289, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "218:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1288, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "218:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1291, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "229:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1290, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "229:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "217:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1295, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1294, - "name": "c", - "nodeType": "VariableDeclaration", - "scope": 1320, - "src": "263:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1293, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "263:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "262:11:6" - }, - "scope": 1379, - "src": "205:413:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1333, - "nodeType": "Block", - "src": "769:223:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1331, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1329, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1322, - "src": "980:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "/", - "rightExpression": { - "argumentTypes": null, - "id": 1330, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1324, - "src": "984:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "980:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1328, - "id": 1332, - "nodeType": "Return", - "src": "973:12:6" - } - ] - }, - "documentation": "@dev Integer division of two numbers, truncating the quotient.", - "id": 1334, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "div", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1325, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1322, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "715:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1321, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "715:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1324, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "726:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1323, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "726:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "714:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1328, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1327, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1334, - "src": "760:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1326, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "760:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "759:9:6" - }, - "scope": 1379, - "src": "702:290:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1353, - "nodeType": "Block", - "src": "1173:53:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1346, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1344, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1338, - "src": "1190:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "id": 1345, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1336, - "src": "1195:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1190:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1343, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "1183:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1347, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1183:14:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1348, - "nodeType": "ExpressionStatement", - "src": "1183:14:6" - }, - { - "expression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1351, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1349, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1336, - "src": "1214:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "id": 1350, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1338, - "src": "1218:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1214:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1342, - "id": 1352, - "nodeType": "Return", - "src": "1207:12:6" - } - ] - }, - "documentation": "@dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).", - "id": 1354, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "sub", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1339, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1336, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1119:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1335, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1119:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1338, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1130:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1337, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1130:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1118:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1342, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1341, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1354, - "src": "1164:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1340, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1164:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1163:9:6" - }, - "scope": 1379, - "src": "1106:120:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - }, - { - "body": { - "id": 1377, - "nodeType": "Block", - "src": "1359:68:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 1367, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 1363, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1369:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1366, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1364, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1356, - "src": "1373:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "id": 1365, - "name": "b", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1358, - "src": "1377:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1373:5:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1369:9:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1368, - "nodeType": "ExpressionStatement", - "src": "1369:9:6" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 1372, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 1370, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1395:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "id": 1371, - "name": "a", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1356, - "src": "1400:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1395:6:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 1369, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1383, - "src": "1388:6:6", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 1373, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1388:14:6", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1374, - "nodeType": "ExpressionStatement", - "src": "1388:14:6" - }, - { - "expression": { - "argumentTypes": null, - "id": 1375, - "name": "c", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1361, - "src": "1419:1:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 1362, - "id": 1376, - "nodeType": "Return", - "src": "1412:8:6" - } - ] - }, - "documentation": "@dev Adds two numbers, throws on overflow.", - "id": 1378, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "add", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1359, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1356, - "name": "a", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1303:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1355, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1303:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1358, - "name": "b", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1314:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1357, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1314:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1302:22:6" - }, - "payable": false, - "returnParameters": { - "id": 1362, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1361, - "name": "c", - "nodeType": "VariableDeclaration", - "scope": 1378, - "src": "1348:9:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1360, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1348:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1347:11:6" - }, - "scope": 1379, - "src": "1290:137:6", - "stateMutability": "pure", - "superFunction": null, - "visibility": "internal" - } - ], - "scope": 1380, - "src": "117:1312:6" - } - ], - "src": "0:1429:6" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-11-14T10:50:25.165Z" -} \ No newline at end of file