UNPKG

arc_dx

Version:

A platform for building DAOs

835 lines 114 kB
{ "contractName": "LockingEth4Reputation", "abi": [ { "constant": true, "inputs": [], "name": "redeemEnableTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "lockingStartTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalLocked", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "avatar", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "scores", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" }, { "name": "", "type": "bytes32" } ], "name": "lockers", "outputs": [ { "name": "amount", "type": "uint256" }, { "name": "releaseTime", "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": "_beneficiary", "type": "address" } ], "name": "redeem", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "lockingEndTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "reputationRewardLeft", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxLockingPeriod", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalScore", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "lockingsCounter", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalLockedLeft", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "reputationReward", "outputs": [ { "name": "", "type": "uint256" } ], "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": "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": "_beneficiary", "type": "address" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Redeem", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_lockingId", "type": "bytes32" }, { "indexed": true, "name": "_beneficiary", "type": "address" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Release", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_locker", "type": "address" }, { "indexed": true, "name": "_lockingId", "type": "bytes32" }, { "indexed": false, "name": "_amount", "type": "uint256" }, { "indexed": false, "name": "_period", "type": "uint256" } ], "name": "Lock", "type": "event" }, { "constant": false, "inputs": [ { "name": "_avatar", "type": "address" }, { "name": "_reputationReward", "type": "uint256" }, { "name": "_lockingStartTime", "type": "uint256" }, { "name": "_lockingEndTime", "type": "uint256" }, { "name": "_redeemEnableTime", "type": "uint256" }, { "name": "_maxLockingPeriod", "type": "uint256" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_beneficiary", "type": "address" }, { "name": "_lockingId", "type": "bytes32" } ], "name": "release", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_period", "type": "uint256" } ], "name": "lock", "outputs": [ { "name": "lockingId", "type": "bytes32" } ], "payable": true, "stateMutability": "payable", "type": "function" } ], "bytecode": "0x6080604052600d8054600160a060020a0319163317905561108c806100256000396000f3006080604052600436106101115763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633d1678f4811461011657806345ff4c801461013d57806355bfec881461016f57806356891412146101845780635aef7de614610199578063715018a6146101ca57806376dd110f146101df57806383805742146102005780638da5cb5b1461023d57806395a2251f14610252578063a8c3301714610287578063afe0e33c1461029c578063bf0df445146102b1578063c006719f146102c6578063c3201add146102db578063c348a24b146102f0578063d7c2eec714610305578063dd46706414610329578063ed1ff6d814610334578063f2fde38b14610349575b600080fd5b34801561012257600080fd5b5061012b61036a565b60408051918252519081900360200190f35b34801561014957600080fd5b5061016d600160a060020a036004351660243560443560643560843560a435610370565b005b34801561017b57600080fd5b5061012b61039d565b34801561019057600080fd5b5061012b6103a3565b3480156101a557600080fd5b506101ae6103a9565b60408051600160a060020a039092168252519081900360200190f35b3480156101d657600080fd5b5061016d6103b8565b3480156101eb57600080fd5b5061012b600160a060020a0360043516610426565b34801561020c57600080fd5b50610224600160a060020a0360043516602435610438565b6040805192835260208301919091528051918290030190f35b34801561024957600080fd5b506101ae610459565b34801561025e57600080fd5b50610273600160a060020a0360043516610468565b604080519115158252519081900360200190f35b34801561029357600080fd5b5061012b61079b565b3480156102a857600080fd5b5061012b6107a1565b3480156102bd57600080fd5b5061012b6107a7565b3480156102d257600080fd5b5061012b6107ad565b3480156102e757600080fd5b5061012b6107b3565b3480156102fc57600080fd5b5061012b6107b9565b34801561031157600080fd5b50610273600160a060020a03600435166024356107bf565b61012b600435610810565b34801561034057600080fd5b5061012b610823565b34801561035557600080fd5b5061016d600160a060020a0360043516610829565b600c5481565b600d54600160a060020a0316331461038757600080fd5b61039586868686868661084c565b505050505050565b600b5481565b60035481565b600054600160a060020a031681565b600d54600160a060020a031633146103cf57600080fd5b600d54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600d805473ffffffffffffffffffffffffffffffffffffffff19169055565b60026020526000908152604090205481565b60016020818152600093845260408085209091529183529120805491015482565b600d54600160a060020a031681565b600080600080600c54421115156104c9576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b600160a060020a03851660009081526002602052604081205411610537576040805160e560020a62461bcd02815260206004820152601360248201527f73636f72652073686f756c64206265203e203000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038516600090815260026020526040812080549190556007549093506105829061056a90601a0b610a58565b61057685601a0b610a58565b9063ffffffff610a6616565b91506105aa6105a5610598600554601a0b610a58565b849063ffffffff610a7316565b610a90565b601a0b90506105c481600854610a9c90919063ffffffff16565b60085560008054604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692638da5cb5b926004808401936020939083900390910190829087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b505050506040513d602081101561065257600080fd5b505160008054604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a038a8116602483015292831660448201529051919093169263eaf994b29260648083019360209390929083900390910190829087803b1580156106cf57600080fd5b505af11580156106e3573d6000803e3d6000fd5b505050506040513d60208110156106f957600080fd5b50511515610751576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636573730000604482015290519081900360640190fd5b604080518281529051600160a060020a038716917f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6919081900360200190a2506001949350505050565b60095481565b60085481565b600a5481565b60055481565b60065481565b60045481565b6000806107cc8484610aae565b604051909150600160a060020a0385169082156108fc029083906000818181858888f19350505050158015610805573d6000803e3d6000fd5b506001949350505050565b600061081d348333610bea565b92915050565b60075481565b600d54600160a060020a0316331461084057600080fd5b61084981610fac565b50565b600054600160a060020a0316156108ad576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038616151561090d576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b83831161098a576040805160e560020a62461bcd02815260206004820152603a60248201527f6c6f636b696e6720656e642074696d652073686f756c6420626520677265617460448201527f6572207468616e206c6f636b696e672073746172742074696d65000000000000606482015290519081900360840190fd5b82821015610a08576040805160e560020a62461bcd02815260206004820152602260248201527f72656465656d456e61626c6554696d65203e3d206c6f636b696e67456e64546960448201527f6d65000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6007859055600894909455600991909155600a929092556000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039490941693909317909255600b91909155600c55565b601a0b650100000000000290565b6501000000000091020590565b600081650100000000008402811515610a8857fe5b059392505050565b65010000000000900590565b600082821115610aa857fe5b50900390565b600160a060020a0382166000908152600160209081526040808320848452909152812080548210610b29576040805160e560020a62461bcd02815260206004820152601460248201527f616d6f756e742073686f756c64206265203e2030000000000000000000000000604482015290519081900360640190fd5b80546000825560018201549092504211610b8d576040805160e560020a62461bcd02815260206004820152601a60248201527f636865636b20746865206c6f636b20706572696f642070617373000000000000604482015290519081900360640190fd5b600454610ba0908363ffffffff610a9c16565b600455604080518381529051600160a060020a0386169185917fcb7ab693259d2332e08e7666832578144deb74443e37a762847e848793fc29819181900360200190a35092915050565b600080808511610c44576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600a54841115610cc4576040805160e560020a62461bcd02815260206004820152602c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203c3d206d61784c60448201527f6f636b696e67506572696f640000000000000000000000000000000000000000606482015290519081900360840190fd5b60008411610d1c576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203e203000000000604482015290519081900360640190fd5b600954421115610d9c576040805160e560020a62461bcd02815260206004820152603060248201527f6c6f636b2073686f756c642062652077697468696e2074686520616c6c6f776560448201527f64206c6f636b696e6720706572696f6400000000000000000000000000000000606482015290519081900360840190fd5b600b54421015610e1c576040805160e560020a62461bcd02815260206004820152602860248201527f6c6f636b2073686f756c64207374617274206166746572206c6f636b696e675360448201527f7461727454696d65000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654604080516c01000000000000000000000000300260208083019190915260348083019490945282518083039094018452605490910191829052825182918401908083835b60208310610e825780518252601f199092019160209182019101610e63565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120600680546001908101909155600160a060020a038a166000908152818452858120838252909352939091208a8155428a0193810193909355600380548b01908190556004559550909350610f2c9250610f0791508690508761102a565b600160a060020a0385166000908152600260205260409020549063ffffffff61105316565b600160a060020a0384166000908152600260205260409020819055600554610f599163ffffffff61105316565b600555604080518681526020810186905281518492600160a060020a038716927fd173f98f4a2080eab40a0bff4d9a575753270cb2401c74efdec1feb0ba31b426929081900390910190a3509392505050565b600160a060020a0381161515610fc157600080fd5b600d54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082151561103b5750600061081d565b5081810281838281151561104b57fe5b041461081d57fe5b8181018281101561081d57fe00a165627a7a723058203b0f43f76ccd1ff954b4ef2261dbb411fcbd5f33c63f3f0fc487c71170a578a50029", "deployedBytecode": "0x6080604052600436106101115763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633d1678f4811461011657806345ff4c801461013d57806355bfec881461016f57806356891412146101845780635aef7de614610199578063715018a6146101ca57806376dd110f146101df57806383805742146102005780638da5cb5b1461023d57806395a2251f14610252578063a8c3301714610287578063afe0e33c1461029c578063bf0df445146102b1578063c006719f146102c6578063c3201add146102db578063c348a24b146102f0578063d7c2eec714610305578063dd46706414610329578063ed1ff6d814610334578063f2fde38b14610349575b600080fd5b34801561012257600080fd5b5061012b61036a565b60408051918252519081900360200190f35b34801561014957600080fd5b5061016d600160a060020a036004351660243560443560643560843560a435610370565b005b34801561017b57600080fd5b5061012b61039d565b34801561019057600080fd5b5061012b6103a3565b3480156101a557600080fd5b506101ae6103a9565b60408051600160a060020a039092168252519081900360200190f35b3480156101d657600080fd5b5061016d6103b8565b3480156101eb57600080fd5b5061012b600160a060020a0360043516610426565b34801561020c57600080fd5b50610224600160a060020a0360043516602435610438565b6040805192835260208301919091528051918290030190f35b34801561024957600080fd5b506101ae610459565b34801561025e57600080fd5b50610273600160a060020a0360043516610468565b604080519115158252519081900360200190f35b34801561029357600080fd5b5061012b61079b565b3480156102a857600080fd5b5061012b6107a1565b3480156102bd57600080fd5b5061012b6107a7565b3480156102d257600080fd5b5061012b6107ad565b3480156102e757600080fd5b5061012b6107b3565b3480156102fc57600080fd5b5061012b6107b9565b34801561031157600080fd5b50610273600160a060020a03600435166024356107bf565b61012b600435610810565b34801561034057600080fd5b5061012b610823565b34801561035557600080fd5b5061016d600160a060020a0360043516610829565b600c5481565b600d54600160a060020a0316331461038757600080fd5b61039586868686868661084c565b505050505050565b600b5481565b60035481565b600054600160a060020a031681565b600d54600160a060020a031633146103cf57600080fd5b600d54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600d805473ffffffffffffffffffffffffffffffffffffffff19169055565b60026020526000908152604090205481565b60016020818152600093845260408085209091529183529120805491015482565b600d54600160a060020a031681565b600080600080600c54421115156104c9576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b600160a060020a03851660009081526002602052604081205411610537576040805160e560020a62461bcd02815260206004820152601360248201527f73636f72652073686f756c64206265203e203000000000000000000000000000604482015290519081900360640190fd5b600160a060020a038516600090815260026020526040812080549190556007549093506105829061056a90601a0b610a58565b61057685601a0b610a58565b9063ffffffff610a6616565b91506105aa6105a5610598600554601a0b610a58565b849063ffffffff610a7316565b610a90565b601a0b90506105c481600854610a9c90919063ffffffff16565b60085560008054604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692638da5cb5b926004808401936020939083900390910190829087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b505050506040513d602081101561065257600080fd5b505160008054604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a038a8116602483015292831660448201529051919093169263eaf994b29260648083019360209390929083900390910190829087803b1580156106cf57600080fd5b505af11580156106e3573d6000803e3d6000fd5b505050506040513d60208110156106f957600080fd5b50511515610751576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636573730000604482015290519081900360640190fd5b604080518281529051600160a060020a038716917f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6919081900360200190a2506001949350505050565b60095481565b60085481565b600a5481565b60055481565b60065481565b60045481565b6000806107cc8484610aae565b604051909150600160a060020a0385169082156108fc029083906000818181858888f19350505050158015610805573d6000803e3d6000fd5b506001949350505050565b600061081d348333610bea565b92915050565b60075481565b600d54600160a060020a0316331461084057600080fd5b61084981610fac565b50565b600054600160a060020a0316156108ad576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038616151561090d576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b83831161098a576040805160e560020a62461bcd02815260206004820152603a60248201527f6c6f636b696e6720656e642074696d652073686f756c6420626520677265617460448201527f6572207468616e206c6f636b696e672073746172742074696d65000000000000606482015290519081900360840190fd5b82821015610a08576040805160e560020a62461bcd02815260206004820152602260248201527f72656465656d456e61626c6554696d65203e3d206c6f636b696e67456e64546960448201527f6d65000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6007859055600894909455600991909155600a929092556000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039490941693909317909255600b91909155600c55565b601a0b650100000000000290565b6501000000000091020590565b600081650100000000008402811515610a8857fe5b059392505050565b65010000000000900590565b600082821115610aa857fe5b50900390565b600160a060020a0382166000908152600160209081526040808320848452909152812080548210610b29576040805160e560020a62461bcd02815260206004820152601460248201527f616d6f756e742073686f756c64206265203e2030000000000000000000000000604482015290519081900360640190fd5b80546000825560018201549092504211610b8d576040805160e560020a62461bcd02815260206004820152601a60248201527f636865636b20746865206c6f636b20706572696f642070617373000000000000604482015290519081900360640190fd5b600454610ba0908363ffffffff610a9c16565b600455604080518381529051600160a060020a0386169185917fcb7ab693259d2332e08e7666832578144deb74443e37a762847e848793fc29819181900360200190a35092915050565b600080808511610c44576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600a54841115610cc4576040805160e560020a62461bcd02815260206004820152602c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203c3d206d61784c60448201527f6f636b696e67506572696f640000000000000000000000000000000000000000606482015290519081900360840190fd5b60008411610d1c576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203e203000000000604482015290519081900360640190fd5b600954421115610d9c576040805160e560020a62461bcd02815260206004820152603060248201527f6c6f636b2073686f756c642062652077697468696e2074686520616c6c6f776560448201527f64206c6f636b696e6720706572696f6400000000000000000000000000000000606482015290519081900360840190fd5b600b54421015610e1c576040805160e560020a62461bcd02815260206004820152602860248201527f6c6f636b2073686f756c64207374617274206166746572206c6f636b696e675360448201527f7461727454696d65000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654604080516c01000000000000000000000000300260208083019190915260348083019490945282518083039094018452605490910191829052825182918401908083835b60208310610e825780518252601f199092019160209182019101610e63565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120600680546001908101909155600160a060020a038a166000908152818452858120838252909352939091208a8155428a0193810193909355600380548b01908190556004559550909350610f2c9250610f0791508690508761102a565b600160a060020a0385166000908152600260205260409020549063ffffffff61105316565b600160a060020a0384166000908152600260205260409020819055600554610f599163ffffffff61105316565b600555604080518681526020810186905281518492600160a060020a038716927fd173f98f4a2080eab40a0bff4d9a575753270cb2401c74efdec1feb0ba31b426929081900390910190a3509392505050565b600160a060020a0381161515610fc157600080fd5b600d54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082151561103b5750600061081d565b5081810281838281151561104b57fe5b041461081d57fe5b8181018281101561081d57fe00a165627a7a723058203b0f43f76ccd1ff954b4ef2261dbb411fcbd5f33c63f3f0fc487c71170a578a50029", "sourceMap": "186:1680:14:-;;;567:5:55;:18;;-1:-1:-1;;;;;;567:18:55;575:10;567:18;;;186:1680:14;;;;;;", "deployedSourceMap": "186:1680:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1191:28:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1191:28:13;;;;;;;;;;;;;;;;;;;;802:419:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;802:419:14;-1:-1:-1;;;;;802:419:14;;;;;;;;;;;;;;;;;1157:28:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1157:28:13;;;;868:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;868:23:13;;;;613:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;613:20:13;;;;;;;;-1:-1:-1;;;;;613:20:13;;;;;;;;;;;;;;1001:111:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:55;;;;823:38:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;823:38:13;-1:-1:-1;;;;;823:38:13;;;;;701:59;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;701:59:13;-1:-1:-1;;;;;701:59:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:55;;;;1360:859:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1360:859:13;-1:-1:-1;;;;;1360:859:13;;;;;;;;;;;;;;;;;;;;;;;1091:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1091:26:13;;;;1053:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1053:32:13;;;;1123:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1123:28:13;;;;930:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;930:22:13;;;;958:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;958:27:13;;;;897;;8:9:-1;5:2;;;30:1;27;20:12;5:2;897:27:13;;;;1386:212:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1386:212:14;-1:-1:-1;;;;;1386:212:14;;;;;;;1726:137;;;;;;1019:28:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1019:28:13;;;;1274:103:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:55;-1:-1:-1;;;;;1274:103:55;;;;;1191:28:13;;;;:::o;802:419:14:-;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1046:168:14;1073:7;1090:17;1117;1144:15;1169:17;1196;1046;:168::i;:::-;802:419;;;;;;:::o;1157:28:13:-;;;;:::o;868:23::-;;;;:::o;613:20::-;;;-1:-1:-1;;;;;613:20:13;;:::o;1001:111:55:-;719:5;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1077:5;;1058:25;;-1:-1:-1;;;;;1077:5:55;;;;1058:25;;1077:5;;1058:25;1089:5;:18;;-1:-1:-1;;1089:18:55;;;1001:111::o;823:38:13:-;;;;;;;;;;;;;:::o;701:59::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;238:20:55:-;;;-1:-1:-1;;;;;238:20:55;;:::o;1360:859:13:-;1413:4;1636:10;1713:18;1805:15;1517:16;;1499:15;:34;1491:69;;;;;;;-1:-1:-1;;;;;1491:69:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1578:20:13;;1601:1;1578:20;;;:6;:20;;;;;;:24;1570:56;;;;;-1:-1:-1;;;;;1570:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1649:20:13;;;;;;:6;:20;;;;;;;1679:24;;;1768:16;;1649:20;;-1:-1:-1;1734:61:13;;1761:33;;:31;;;:33::i;:::-;1734:22;1741:5;1734:20;;;:22::i;:::-;:26;:61;:26;:61;:::i;:::-;1713:82;;1831:55;:44;1847:27;1854:10;;1847:25;;;:27::i;:::-;1831:11;;:44;:15;:44;:::i;:::-;:53;:55::i;:::-;1823:64;;1805:82;;1969:36;1994:10;1969:20;;:24;;:36;;;;:::i;:::-;1946:20;:59;2043:6;;;:14;;;;;;;;-1:-1:-1;;;;;2043:6:13;;;;:12;;:14;;;;;;;;;;;;;;;;;:6;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;2043:14:13;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2043:14:13;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2043:14:13;2100:6;;;2023:84;;;;;;;;;;;;-1:-1:-1;;;;;2023:84:13;;;;;;;2100:6;;;2023:84;;;;;;:50;;;;;;;:84;;;;;2043:14;;2023:84;;;;;;;;;;;;:50;:84;;;5:2:-1;;;;30:1;27;20:12;5:2;2023:84:13;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2023:84:13;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2023:84:13;2015:127;;;;;;;-1:-1:-1;;;;;2015:127:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:32;;;;;;;;-1:-1:-1;;;;;2158:32:13;;;;;;;;;;;;;-1:-1:-1;2208:4:13;;1360:859;-1:-1:-1;;;;1360:859:13:o;1091:26::-;;;;:::o;1053:32::-;;;;:::o;1123:28::-;;;;:::o;930:22::-;;;;:::o;958:27::-;;;;:::o;897:::-;;;;:::o;1386:212:14:-;1460:4;1476:11;1490:40;1505:12;1519:10;1490:14;:40::i;:::-;1540:29;;1476:54;;-1:-1:-1;;;;;;1540:21:14;;;:29;;;;;1476:54;;1540:29;;;;1476:54;1540:21;:29;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;1587:4:14;;1386:212;-1:-1:-1;;;;1386:212:14:o;1726:137::-;1777:17;1813:43;1825:9;1836:7;1845:10;1813:11;:43::i;:::-;1806:50;1726:137;-1:-1:-1;;1726:137:14:o;1019:28:13:-;;;;:::o;1274:103:55:-;719:5;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;4860:873:13:-;5116:1;5099:6;-1:-1:-1;;;;;5099:6:13;:19;5091:59;;;;;-1:-1:-1;;;;;5091:59:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5168:20:13;;;;5160:54;;;;;-1:-1:-1;;;;;5160:54:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;5232:35;;;5224:106;;;;;-1:-1:-1;;;;;5224:106:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5348:36;;;;5340:83;;;;;-1:-1:-1;;;;;5340:83:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5434:16;:36;;;5480:20;:40;;;;5530:14;:32;;;;5572:16;:36;;;;-1:-1:-1;5618:16:13;;-1:-1:-1;;5618:16:13;-1:-1:-1;;;;;5618:16:13;;;;;;;;;;;5644;:36;;;;5690:16;:36;4860:873::o;2123:109:8:-;2201:13;;1184:23;2201:24;;2123:109::o;4641:316::-;4904:45;4905:29;;4904:45;;4641:316::o;5040:348::-;5122:6;5364:15;1184:23;5321:32;;5320:60;;;;;;;;;5040:348;-1:-1:-1;;;5040:348:8:o;2307:119::-;1184:23;2398:20;;;2307:119::o;1060:116:54:-;1120:7;1142:8;;;;1135:16;;;;-1:-1:-1;1164:7:54;;;1060:116::o;2400:542:13:-;-1:-1:-1;;;;;2524:21:13;;2477:11;2524:21;;;:7;:21;;;;;;;;:33;;;;;;;;2575:13;;:17;-1:-1:-1;2567:50:13;;;;;-1:-1:-1;;;;;2567:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;2636:13;;;2659:17;;-1:-1:-1;2774:18:13;;;2636:13;;-1:-1:-1;2756:15:13;:36;2748:75;;;;;-1:-1:-1;;;;;2748:75:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;2851:15;;:27;;2871:6;2851:27;:19;:27;:::i;:::-;2833:15;:45;2894:41;;;;;;;;-1:-1:-1;;;;;2894:41:13;;;2902:10;;2894:41;;;;;;;;;2400:542;;;;;:::o;3130:1176::-;3207:17;;3244:11;;;3236:52;;;;;-1:-1:-1;;;;;3236:52:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;3317:16;;3306:27;;;3298:84;;;;;-1:-1:-1;;;;;3298:84:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3410:1;3400:11;;3392:52;;;;;-1:-1:-1;;;;;3392:52:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;3531:14;;3524:3;:21;;3516:82;;;;;-1:-1:-1;;;;;3516:82:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3685:16;;3678:3;:23;;3670:76;;;;;-1:-1:-1;;;;;3670:76:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3802:15;;3779:39;;;;3796:4;3779:39;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;3779:39:13;;;;;;;;3769:50;;3779:39;;3769:50;;;;3779:39;3769:50;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;;3769:50:13;;;;;;;;;;;;;3829:15;:17;;274:1:-1;3829:17:13;;;;;;-1:-1:-1;;;;;3881:16:13;;-1:-1:-1;3881:16:13;;;;;;;;;:27;;;;;;;;;;3918:23;;;4034:3;:13;;4013:18;;;:34;;;;4057:11;:22;;;;;;;;4089:15;:29;3769:50;-1:-1:-1;3881:27:13;;-1:-1:-1;4146:41:13;;-1:-1:-1;4166:20:13;;-1:-1:-1;4034:13:13;;-1:-1:-1;3918:23:13;4166:11;:20::i;:::-;-1:-1:-1;;;;;4146:15:13;;;;;;:6;:15;;;;;;;:41;:19;:41;:::i;:::-;-1:-1:-1;;;;;4128:15:13;;;;;;:6;:15;;;;;:59;;;4210:10;;:31;;;:14;:31;:::i;:::-;4197:10;:44;4257:42;;;;;;;;;;;;;;4271:9;;-1:-1:-1;;;;;4257:42:13;;;;;;;;;;;;;;3130:1176;;;;;;:::o;1512:171:55:-;-1:-1:-1;;;;;1582:23:55;;;;1574:32;;;;;;1638:5;;1617:38;;-1:-1:-1;;;;;1617:38:55;;;;1638:5;;1617:38;;1638:5;;1617:38;1661:5;:17;;-1:-1:-1;;1661:17:55;-1:-1:-1;;;;;1661:17:55;;;;;;;;;;1512:171::o;203:380:54:-;263:9;489:7;;485:36;;;-1:-1:-1;513:1:54;506:8;;485:36;-1:-1:-1;531:7:54;;;536:2;531;:7;551:6;;;;;;;;:12;544:20;;;1238:128;1319:7;;;1339;;;;1332:15;;", "source": "pragma solidity ^0.4.25;\n\nimport \"./Locking4Reputation.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\n\n\n/**\n * @title A scheme for locking ETH for reputation\n */\n\ncontract LockingEth4Reputation is Locking4Reputation, Ownable {\n\n /**\n * @dev initialize\n * @param _avatar the avatar to mint reputation from\n * @param _reputationReward the total reputation this contract will reward\n * for eth locking\n * @param _lockingStartTime locking starting period time.\n * @param _lockingEndTime the locking end time.\n * locking is disable after this time.\n * @param _redeemEnableTime redeem enable time .\n * redeem reputation can be done after this time.\n * @param _maxLockingPeriod maximum locking period allowed.\n */\n function initialize(\n Avatar _avatar,\n uint _reputationReward,\n uint _lockingStartTime,\n uint _lockingEndTime,\n uint _redeemEnableTime,\n uint _maxLockingPeriod)\n external\n onlyOwner\n {\n super._initialize(\n _avatar,\n _reputationReward,\n _lockingStartTime,\n _lockingEndTime,\n _redeemEnableTime,\n _maxLockingPeriod);\n }\n\n /**\n * @dev release locked eth\n * @param _beneficiary the release _beneficiary\n * @param _lockingId the locking id\n * @return bool\n */\n function release(address _beneficiary, bytes32 _lockingId) public returns(bool) {\n uint amount = super._release(_beneficiary, _lockingId);\n _beneficiary.transfer(amount);\n\n return true;\n }\n\n /**\n * @dev lock function\n * @param _period the locking period\n * @return lockingId the unique Id\n */\n function lock(uint _period) public payable returns(bytes32 lockingId) {\n return super._lock(msg.value, _period, msg.sender);\n }\n\n}\n", "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/schemes/LockingEth4Reputation.sol", "ast": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/schemes/LockingEth4Reputation.sol", "exportedSymbols": { "LockingEth4Reputation": [ 6304 ] }, "id": 6305, "nodeType": "SourceUnit", "nodes": [ { "id": 6225, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:14" }, { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/schemes/Locking4Reputation.sol", "file": "./Locking4Reputation.sol", "id": 6226, "nodeType": "ImportDirective", "scope": 6305, "sourceUnit": 6224, "src": "26:34:14", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "id": 6227, "nodeType": "ImportDirective", "scope": 6305, "sourceUnit": 20878, "src": "61:63:14", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6228, "name": "Locking4Reputation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6223, "src": "220:18:14", "typeDescriptions": { "typeIdentifier": "t_contract$_Locking4Reputation_$6223", "typeString": "contract Locking4Reputation" } }, "id": 6229, "nodeType": "InheritanceSpecifier", "src": "220:18:14" }, { "arguments": null, "baseName": { "contractScope": null, "id": 6230, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20877, "src": "240:7:14", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$20877", "typeString": "contract Ownable" } }, "id": 6231, "nodeType": "InheritanceSpecifier", "src": "240:7:14" } ], "contractDependencies": [ 6223, 20877 ], "contractKind": "contract", "documentation": "@title A scheme for locking ETH for reputation", "fullyImplemented": true, "id": 6304, "linearizedBaseContracts": [ 6304, 20877, 6223 ], "name": "LockingEth4Reputation", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 6259, "nodeType": "Block", "src": "1036:185:14", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6251, "name": "_avatar", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6233, "src": "1073:7:14", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$333", "typeString": "contract Avatar" } }, { "argumentTypes": null, "id": 6252, "name": "_reputationReward", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6235, "src": "1090:17:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 6253, "name": "_lockingStartTime", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6237, "src": "1117:17:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 6254, "name": "_lockingEndTime", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6239, "src": "1144:15:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 6255, "name": "_redeemEnableTime", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6241, "src": "1169:17:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 6256, "name": "_maxLockingPeriod", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6243, "src": "1196:17:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Avatar_$333", "typeString": "contract Avatar" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 6248, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21615, "src": "1046:5:14", "typeDescriptions": { "typeIdentifier": "t_super$_LockingEth4Reputation_$6304", "typeString": "contract super LockingEth4Reputation" } }, "id": 6250, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_initialize", "nodeType": "MemberAccess", "referencedDeclaration": 6222, "src": "1046:17:14", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_Avatar_$333_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (contract Avatar,uint256,uint256,uint256,uint256,uint256)" } }, "id": 6257, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1046:168:14", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6258, "nodeType": "ExpressionStatement", "src": "1046:168:14" } ] }, "documentation": "@dev initialize\n@param _avatar the avatar to mint reputation from\n@param _reputationReward the total reputation this contract will reward\n for eth locking\n@param _lockingStartTime locking starting period time.\n@param _lockingEndTime the locking end time.\n locking is disable after this time.\n@param _redeemEnableTime redeem enable time .\n redeem reputation can be done after this time.\n@param _maxLockingPeriod maximum locking period allowed.", "id": 6260, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 6246, "modifierName": { "argumentTypes": null, "id": 6245, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 20825, "src": "1022:9:14", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1022:9:14" } ], "name": "initialize", "nodeType": "FunctionDefinition", "parameters": { "id": 6244, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6233, "name": "_avatar", "nodeType": "VariableDeclaration", "scope": 6260, "src": "831:14:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$333", "typeString": "contract Avatar" }, "typeName": { "contractScope": null, "id": 6232, "name": "Avatar", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 333, "src": "831:6:14", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$333", "typeString": "contract Avatar" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6235, "name": "_reputationReward", "nodeType": "VariableDeclaration", "scope": 6260, "src": "855:22:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6234, "name": "uint", "nodeType": "ElementaryTypeName", "src": "855:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6237, "name": "_lockingStartTime", "nodeType": "VariableDeclaration", "scope": 6260, "src": "887:22:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6236, "name": "uint", "nodeType": "ElementaryTypeName", "src": "887:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6239, "name": "_lockingEndTime", "nodeType": "VariableDeclaration", "scope": 6260, "src": "919:20:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6238, "name": "uint", "nodeType": "ElementaryTypeName", "src": "919:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility":