UNPKG

arc_dx

Version:

A platform for building DAOs

787 lines (786 loc) 510 kB
{ "contractName": "Auction4Reputation", "abi": [ { "constant": true, "inputs": [], "name": "auctionPeriod", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "auctionReputationReward", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "redeemEnableTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "numberOfAuctions", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "wallet", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "auctionsEndTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "auctions", "outputs": [ { "name": "totalBid", "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": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "auctionsStartTime", "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": false, "inputs": [ { "name": "_newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "token", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_bidder", "type": "address" }, { "indexed": true, "name": "_auctionId", "type": "uint256" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Bid", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_auctionId", "type": "uint256" }, { "indexed": true, "name": "_beneficiary", "type": "address" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Redeem", "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" }, { "constant": false, "inputs": [ { "name": "_avatar", "type": "address" }, { "name": "_reputationReward", "type": "uint256" }, { "name": "_auctionsStartTime", "type": "uint256" }, { "name": "_auctionsEndTime", "type": "uint256" }, { "name": "_numberOfAuctions", "type": "uint256" }, { "name": "_redeemEnableTime", "type": "uint256" }, { "name": "_token", "type": "address" }, { "name": "_wallet", "type": "address" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_beneficiary", "type": "address" }, { "name": "_auctionId", "type": "uint256" } ], "name": "redeem", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_amount", "type": "uint256" } ], "name": "bid", "outputs": [ { "name": "auctionId", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_bidder", "type": "address" }, { "name": "_auctionId", "type": "uint256" } ], "name": "getBid", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "transferToWallet", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405260008054600160a060020a03191633179055610ffe806100256000396000f3006080604052600436106101065763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630cccfc58811461010b57806311c4dbf41461013257806316ab2b03146101475780631e9a69501461016b5780632737033f146101a35780633d1678f4146101e6578063454a2ab3146101fb5780634870b81d1461021357806350d9d47214610228578063521eb2731461023d57806356e492871461026e578063571a26a0146102835780635aef7de61461029b578063715018a6146102b05780638da5cb5b146102c55780639abc03d2146102da578063afe0e33c146102ef578063f2fde38b14610304578063fc0c546a14610325575b600080fd5b34801561011757600080fd5b5061012061033a565b60408051918252519081900360200190f35b34801561013e57600080fd5b50610120610340565b34801561015357600080fd5b50610120600160a060020a0360043516602435610346565b34801561017757600080fd5b5061018f600160a060020a0360043516602435610370565b604080519115158252519081900360200190f35b3480156101af57600080fd5b506101e4600160a060020a036004358116906024359060443590606435906084359060a4359060c43581169060e435166106b3565b005b3480156101f257600080fd5b506101206108fe565b34801561020757600080fd5b50610120600435610904565b34801561021f57600080fd5b506101e4610bfe565b34801561023457600080fd5b50610120610de5565b34801561024957600080fd5b50610252610deb565b60408051600160a060020a039092168252519081900360200190f35b34801561027a57600080fd5b50610120610dfa565b34801561028f57600080fd5b50610120600435610e00565b3480156102a757600080fd5b50610252610e12565b3480156102bc57600080fd5b506101e4610e21565b3480156102d157600080fd5b50610252610e8d565b3480156102e657600080fd5b50610120610e9c565b3480156102fb57600080fd5b50610120610ea2565b34801561031057600080fd5b506101e4600160a060020a0360043516610ea8565b34801561033157600080fd5b50610252610ec8565b60085481565b60075481565b6000908152600160208181526040808420600160a060020a03959095168452939091019052205490565b6000806000806000600954421115156103d3576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b6000868152600160208181526040808420600160a060020a038c16855292830190915282205490955093508311610454576040805160e560020a62461bcd02815260206004820152601c60248201527f62696464696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600160a060020a038716600090815260018501602052604081205560075461049a9061048290601a0b610ed7565b61048e85601a0b610ed7565b9063ffffffff610ee516565b91506104c46104bf6104b28660000154601a0b610ed7565b849063ffffffff610ef216565b610f0f565b601a0b90506104de81600354610f1b90919063ffffffff16565b600355600254604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691638da5cb5b916004808201926020929091908290030181600087803b15801561054157600080fd5b505af1158015610555573d6000803e3d6000fd5b505050506040513d602081101561056b57600080fd5b5051600254604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101859052600160a060020a038b8116602483015292831660448201529051919092169163eaf994b29160648083019260209291908290030181600087803b1580156105e457600080fd5b505af11580156105f8573d6000803e3d6000fd5b505050506040513d602081101561060e57600080fd5b50511515610666576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636573730000604482015290519081900360640190fd5b604080518281529051600160a060020a0389169188917f1069ba7d3dd3d969eada9a014b1e1a8e2ab1ef7f38989db8ce98e698ac844f659181900360200190a35060019695505050505050565b600054600160a060020a031633146106ca57600080fd5b600254600160a060020a03161561072b576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038816151561078b576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b84831015610809576040805160e560020a62461bcd02815260206004820152602560248201527f5f72656465656d456e61626c6554696d65203e3d205f61756374696f6e73456e60448201527f6454696d65000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6108298461081d878963ffffffff610f1b16565b9063ffffffff610f2d16565b6008819055600010610885576040805160e560020a62461bcd02815260206004820152601b60248201527f61756374696f6e506572696f642073686f756c64206265203e20300000000000604482015290519081900360640190fd5b600a8054600160a060020a0380851673ffffffffffffffffffffffffffffffffffffffff1992831617909255600280548b8416908316179055600588905560048790556006869055600b80549284169290911691909117905583878115156108e957fe5b04600755505060039490945550505060095550565b60095481565b60008080831161095e576040805160e560020a62461bcd02815260206004820152601c60248201527f62696464696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b6004544211156109de576040805160e560020a62461bcd02815260206004820152603360248201527f62696464696e672073686f756c642062652077697468696e2074686520616c6c60448201527f6f7765642062696464696e6720706572696f6400000000000000000000000000606482015290519081900360840190fd5b600554421015610a5e576040805160e560020a62461bcd02815260206004820152603660248201527f62696464696e6720697320656e61626c65206f6e6c792061667465722062696460448201527f64696e672061756374696f6e73537461727454696d6500000000000000000000606482015290519081900360840190fd5b600a54604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690529051600160a060020a03909216916323b872dd916064808201926020929091908290030181600087803b158015610ad157600080fd5b505af1158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50511515610b53576040805160e560020a62461bcd02815260206004820152601b60248201527f7472616e7366657246726f6d2073686f756c6420737563636573730000000000604482015290519081900360640190fd5b6008546005544203811515610b6457fe5b04600081815260016020526040902080549193509150610b8a908463ffffffff610f4216565b8155336000908152600182016020526040902054610bae908463ffffffff610f4216565b336000818152600184016020908152604091829020939093558051868152905185937f19421268847f42dd61705778018ddfc43bcdce8517e7a630acb12f122c709481928290030190a350919050565b6004546000904211610c5a576040805160e560020a62461bcd02815260206004820152601560248201527f6e6f77203e2061756374696f6e73456e6454696d650000000000000000000000604482015290519081900360640190fd5b600a54604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a08231916024808201926020929091908290030181600087803b158015610cc057600080fd5b505af1158015610cd4573d6000803e3d6000fd5b505050506040513d6020811015610cea57600080fd5b5051600a54600b54604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050506040513d6020811015610d8a57600080fd5b50511515610de2576040805160e560020a62461bcd02815260206004820152601760248201527f7472616e736665722073686f756c642073756363657373000000000000000000604482015290519081900360640190fd5b50565b60065481565b600b54600160a060020a031681565b60045481565b60016020526000908152604090205481565b600254600160a060020a031681565b600054600160a060020a03163314610e3857600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b60055481565b60035481565b600054600160a060020a03163314610ebf57600080fd5b610de281610f55565b600a54600160a060020a031681565b601a0b650100000000000290565b6501000000000091020590565b600081650100000000008402811515610f0757fe5b059392505050565b65010000000000900590565b600082821115610f2757fe5b50900390565b60008183811515610f3a57fe5b049392505050565b81810182811015610f4f57fe5b92915050565b600160a060020a0381161515610f6a57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058200d1e0d477ceecdc5f742e0a451ea46e09351c05b7923b8525d558348ef8852d90029", "deployedBytecode": "0x6080604052600436106101065763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630cccfc58811461010b57806311c4dbf41461013257806316ab2b03146101475780631e9a69501461016b5780632737033f146101a35780633d1678f4146101e6578063454a2ab3146101fb5780634870b81d1461021357806350d9d47214610228578063521eb2731461023d57806356e492871461026e578063571a26a0146102835780635aef7de61461029b578063715018a6146102b05780638da5cb5b146102c55780639abc03d2146102da578063afe0e33c146102ef578063f2fde38b14610304578063fc0c546a14610325575b600080fd5b34801561011757600080fd5b5061012061033a565b60408051918252519081900360200190f35b34801561013e57600080fd5b50610120610340565b34801561015357600080fd5b50610120600160a060020a0360043516602435610346565b34801561017757600080fd5b5061018f600160a060020a0360043516602435610370565b604080519115158252519081900360200190f35b3480156101af57600080fd5b506101e4600160a060020a036004358116906024359060443590606435906084359060a4359060c43581169060e435166106b3565b005b3480156101f257600080fd5b506101206108fe565b34801561020757600080fd5b50610120600435610904565b34801561021f57600080fd5b506101e4610bfe565b34801561023457600080fd5b50610120610de5565b34801561024957600080fd5b50610252610deb565b60408051600160a060020a039092168252519081900360200190f35b34801561027a57600080fd5b50610120610dfa565b34801561028f57600080fd5b50610120600435610e00565b3480156102a757600080fd5b50610252610e12565b3480156102bc57600080fd5b506101e4610e21565b3480156102d157600080fd5b50610252610e8d565b3480156102e657600080fd5b50610120610e9c565b3480156102fb57600080fd5b50610120610ea2565b34801561031057600080fd5b506101e4600160a060020a0360043516610ea8565b34801561033157600080fd5b50610252610ec8565b60085481565b60075481565b6000908152600160208181526040808420600160a060020a03959095168452939091019052205490565b6000806000806000600954421115156103d3576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b6000868152600160208181526040808420600160a060020a038c16855292830190915282205490955093508311610454576040805160e560020a62461bcd02815260206004820152601c60248201527f62696464696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600160a060020a038716600090815260018501602052604081205560075461049a9061048290601a0b610ed7565b61048e85601a0b610ed7565b9063ffffffff610ee516565b91506104c46104bf6104b28660000154601a0b610ed7565b849063ffffffff610ef216565b610f0f565b601a0b90506104de81600354610f1b90919063ffffffff16565b600355600254604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691638da5cb5b916004808201926020929091908290030181600087803b15801561054157600080fd5b505af1158015610555573d6000803e3d6000fd5b505050506040513d602081101561056b57600080fd5b5051600254604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101859052600160a060020a038b8116602483015292831660448201529051919092169163eaf994b29160648083019260209291908290030181600087803b1580156105e457600080fd5b505af11580156105f8573d6000803e3d6000fd5b505050506040513d602081101561060e57600080fd5b50511515610666576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636573730000604482015290519081900360640190fd5b604080518281529051600160a060020a0389169188917f1069ba7d3dd3d969eada9a014b1e1a8e2ab1ef7f38989db8ce98e698ac844f659181900360200190a35060019695505050505050565b600054600160a060020a031633146106ca57600080fd5b600254600160a060020a03161561072b576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038816151561078b576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b84831015610809576040805160e560020a62461bcd02815260206004820152602560248201527f5f72656465656d456e61626c6554696d65203e3d205f61756374696f6e73456e60448201527f6454696d65000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6108298461081d878963ffffffff610f1b16565b9063ffffffff610f2d16565b6008819055600010610885576040805160e560020a62461bcd02815260206004820152601b60248201527f61756374696f6e506572696f642073686f756c64206265203e20300000000000604482015290519081900360640190fd5b600a8054600160a060020a0380851673ffffffffffffffffffffffffffffffffffffffff1992831617909255600280548b8416908316179055600588905560048790556006869055600b80549284169290911691909117905583878115156108e957fe5b04600755505060039490945550505060095550565b60095481565b60008080831161095e576040805160e560020a62461bcd02815260206004820152601c60248201527f62696464696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b6004544211156109de576040805160e560020a62461bcd02815260206004820152603360248201527f62696464696e672073686f756c642062652077697468696e2074686520616c6c60448201527f6f7765642062696464696e6720706572696f6400000000000000000000000000606482015290519081900360840190fd5b600554421015610a5e576040805160e560020a62461bcd02815260206004820152603660248201527f62696464696e6720697320656e61626c65206f6e6c792061667465722062696460448201527f64696e672061756374696f6e73537461727454696d6500000000000000000000606482015290519081900360840190fd5b600a54604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690529051600160a060020a03909216916323b872dd916064808201926020929091908290030181600087803b158015610ad157600080fd5b505af1158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50511515610b53576040805160e560020a62461bcd02815260206004820152601b60248201527f7472616e7366657246726f6d2073686f756c6420737563636573730000000000604482015290519081900360640190fd5b6008546005544203811515610b6457fe5b04600081815260016020526040902080549193509150610b8a908463ffffffff610f4216565b8155336000908152600182016020526040902054610bae908463ffffffff610f4216565b336000818152600184016020908152604091829020939093558051868152905185937f19421268847f42dd61705778018ddfc43bcdce8517e7a630acb12f122c709481928290030190a350919050565b6004546000904211610c5a576040805160e560020a62461bcd02815260206004820152601560248201527f6e6f77203e2061756374696f6e73456e6454696d650000000000000000000000604482015290519081900360640190fd5b600a54604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a08231916024808201926020929091908290030181600087803b158015610cc057600080fd5b505af1158015610cd4573d6000803e3d6000fd5b505050506040513d6020811015610cea57600080fd5b5051600a54600b54604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050506040513d6020811015610d8a57600080fd5b50511515610de2576040805160e560020a62461bcd02815260206004820152601760248201527f7472616e736665722073686f756c642073756363657373000000000000000000604482015290519081900360640190fd5b50565b60065481565b600b54600160a060020a031681565b60045481565b60016020526000908152604090205481565b600254600160a060020a031681565b600054600160a060020a03163314610e3857600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b60055481565b60035481565b600054600160a060020a03163314610ebf57600080fd5b610de281610f55565b600a54600160a060020a031681565b601a0b650100000000000290565b6501000000000091020590565b600081650100000000008402811515610f0757fe5b059392505050565b65010000000000900590565b600082821115610f2757fe5b50900390565b60008183811515610f3a57fe5b049392505050565b81810182811015610f4f57fe5b92915050565b600160a060020a0381161515610f6a57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058200d1e0d477ceecdc5f742e0a451ea46e09351c05b7923b8525d558348ef8852d90029", "sourceMap": "325:5632:9:-;;;567:5:55;:18;;-1:-1:-1;;;;;;567:18:55;575:10;567:18;;;325:5632:9;;;;;;", "deployedSourceMap": "325:5632:9:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1075:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1075:25:9;;;;;;;;;;;;;;;;;;;;1034:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1034:35:9;;;;5383:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;5383:133:9;-1:-1:-1;;;;;5383:133:9;;;;;;;3245:943;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3245:943:9;-1:-1:-1;;;;;3245:943:9;;;;;;;;;;;;;;;;;;;;;;;;;1863:1191;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1863:1191:9;-1:-1:-1;;;;;1863:1191:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1106:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1106:28:9;;;;4305:905;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4305:905:9;;;;;5655:299;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5655:299:9;;;;1000:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1000:28:9;;;;1172:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1172:21:9;;;;;;;;-1:-1:-1;;;;;1172:21:9;;;;;;;;;;;;;;932:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;932:27:9;;;;823:38;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;823:38:9;;;;;868:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;868:20:9;;;;1001:111:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:55;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:55;;;;965:29:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;965:29:9;;;;894:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;894:32:9;;;;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;;;;;1140:26:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1140:26:9;;;;1075:25;;;;:::o;1034:35::-;;;;:::o;5383:133::-;5452:4;5475:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;5475:34:9;;;;;;:25;;;;:34;;;;;5383:133::o;3245:943::-;3315:4;3460:23;3516:8;3661:18;3758:15;3407:16;;3401:3;:22;3393:57;;;;;;;-1:-1:-1;;;;;3393:57:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;3486:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;3527:26:9;;;;:12;;;:26;;;;;;3486:20;;-1:-1:-1;3527:26:9;-1:-1:-1;3571:7:9;;3563:48;;;;;-1:-1:-1;;;;;3563:48:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3621:26:9;;3650:1;3621:26;;;:12;;;:26;;;;;:30;3714:23;;3682:66;;3707:40;;:38;;;:40::i;:::-;3682:20;3689:3;3682:18;;;:20::i;:::-;:24;:66;:24;:66;:::i;:::-;3661:87;;3784:61;:50;3800:33;3807:7;:16;;;3800:31;;;:33::i;:::-;3784:11;;:50;:15;:50;:::i;:::-;:59;:61::i;:::-;3776:70;;3758:88;;3928:36;3953:10;3928:20;;:24;;:36;;;;:::i;:::-;3905:20;:59;4002:6;;:14;;;;;;;;-1:-1:-1;;;;;4002:6:9;;;;:12;;:14;;;;;;;;;;;;;;;:6;;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;4002:14:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4002:14:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4002:14:9;4059:6;;3982:84;;;;;;;;;;;;-1:-1:-1;;;;;3982:84:9;;;;;;;4059:6;;;3982:84;;;;;;:50;;;;;;;:84;;;;;4002:14;;3982:84;;;;;;;4059:6;3982:50;:84;;;5:2:-1;;;;30:1;27;20:12;5:2;3982:84:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3982:84:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3982:84:9;3974:127;;;;;;;-1:-1:-1;;;;;3974:127:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;4116:44;;;;;;;;-1:-1:-1;;;;;4116:44:9;;;4123:10;;4116:44;;;;;;;;;-1:-1:-1;4177:4:9;;3245:943;-1:-1:-1;;;;;;3245:943:9:o;1863:1191::-;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;2181:6:9;;-1:-1:-1;;;;;2181:6:9;:19;2173:59;;;;;-1:-1:-1;;;;;2173:59:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2250:20:9;;;;2242:54;;;;;-1:-1:-1;;;;;2242:54:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;2314:37;;;;2306:87;;;;;-1:-1:-1;;;;;2306:87:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2532:65;2579:17;2533:40;:16;2554:18;2533:40;:20;:40;:::i;:::-;2532:46;:65;:46;:65;:::i;:::-;2516:13;:81;;;2631:1;-1:-1:-1;2607:57:9;;;;;-1:-1:-1;;;;;2607:57:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;2674:5;:14;;-1:-1:-1;;;;;2674:14:9;;;-1:-1:-1;;2674:14:9;;;;;;;2698:6;:16;;;;;;;;;;;2724:17;:38;;;2772:15;:34;;;-1:-1:-1;2816:36:9;;;2862:6;:16;;;;;;;;;;;;;;;2835:17;2914;:37;;;;;;;;2888:23;:63;-1:-1:-1;;2961:20:9;:40;;;;-1:-1:-1;;;3011:16:9;:36;-1:-1:-1;1863:1191:9:o;1106:28::-;;;;:::o;4305:905::-;4347:14;;4381:11;;;4373:52;;;;;-1:-1:-1;;;;;4373:52:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;4512:15;;4505:3;:22;;4497:86;;;;;-1:-1:-1;;;;;4497:86:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4670:17;;4663:3;:24;;4655:91;;;;;-1:-1:-1;;;;;4655:91:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4764:5;;:45;;;;;;4783:10;4764:45;;;;4795:4;4764:45;;;;;;;;;;;;-1:-1:-1;;;;;4764:5:9;;;;:18;;:45;;;;;;;;;;;;;;;:5;;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;4764:45:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4764:45:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4764:45:9;4756:85;;;;;;;-1:-1:-1;;;;;4756:85:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;4953:13;;4932:17;;4926:3;:23;4925:41;;;;;;;;5002:19;;;;:8;:19;;;;;5050:16;;4925:41;;-1:-1:-1;5002:19:9;-1:-1:-1;5050:29:9;;5071:7;5050:29;:20;:29;:::i;:::-;5031:48;;5129:10;5031:16;5116:24;;;:12;;;:24;;;;;;:37;;5145:7;5116:37;:28;:37;:::i;:::-;5102:10;5089:24;;;;:12;;;:24;;;;;;;;;:64;;;;5168:35;;;;;;;5184:9;;5168:35;;;;;;;;4305:905;;;;:::o;5655:299::-;5774:15;;5825:17;;5768:3;:21;5760:55;;;;;-1:-1:-1;;;;;5760:55:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;5845:5;;:21;;;;;;5861:4;5845:21;;;;;;-1:-1:-1;;;;;5845:5:9;;;;:15;;:21;;;;;;;;;;;;;;;:5;;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;5845:21:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5845:21:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5845:21:9;5884:5;;5899:6;;5884:35;;;;;;-1:-1:-1;;;;;5899:6:9;;;5884:35;;;;;;;;;;;;5845:21;;-1:-1:-1;5884:5:9;;;:14;;:35;;;;;5845:21;;5884:35;;;;;;;;:5;;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;5884:35:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5884:35:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5884:35:9;5876:71;;;;;;;-1:-1:-1;;;;;5876:71:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;5655:299;:::o;1000:28::-;;;;:::o;1172:21::-;;;-1:-1:-1;;;;;1172:21:9;;:::o;932:27::-;;;;:::o;823:38::-;;;;;;;;;;;;;:::o;868:20::-;;;-1:-1:-1;;;;;868:20:9;;:::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;;;1105:1;1089:18;;-1:-1:-1;;1089:18:55;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:55;;:::o;965:29:9:-;;;;:::o;894:32::-;;;;:::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;1140:26:9:-;;;-1:-1:-1;;;;;1140:26:9;;:::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;665:283::-;725:7;941:2;936;:7;;;;;;;;;665:283;-1:-1:-1;;;665:283:54:o;1238:128::-;1319:7;;;1339;;;;1332:15;;;;1238:128;;;;:::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;;;1661:5;:17;;-1:-1:-1;;1661:17:55;-1:-1:-1;;;;;1661:17:55;;;;;;;;;;1512:171::o", "source": "pragma solidity ^0.4.25;\n\nimport \"openzeppelin-solidity/contracts/math/SafeMath.sol\";\nimport { RealMath } from \"../libs/RealMath.sol\";\nimport \"../controller/ControllerInterface.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\n\n/**\n * @title A scheme for conduct ERC20 Tokens auction for reputation\n */\n\n\ncontract Auction4Reputation is Ownable {\n using SafeMath for uint;\n using RealMath for int216;\n using RealMath for int256;\n\n event Bid(address indexed _bidder, uint indexed _auctionId, uint _amount);\n event Redeem(uint indexed _auctionId, address indexed _beneficiary, uint _amount);\n\n struct Auction {\n uint totalBid;\n // A mapping from bidder addresses to their bids.\n mapping(address=>uint) bids;\n }\n\n // A mapping from auction index to auction.\n mapping(uint=>Auction) public auctions;\n\n Avatar public avatar;\n uint public reputationRewardLeft;\n uint public auctionsEndTime;\n uint public auctionsStartTime;\n uint public numberOfAuctions;\n uint public auctionReputationReward;\n uint public auctionPeriod;\n uint public redeemEnableTime;\n StandardToken public token;\n address public wallet;\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 the token locking\n * @param _auctionsStartTime auctions period start time\n * @param _auctionsEndTime auctions period end time.\n * bidding is disable after this time.\n * @param _numberOfAuctions number of auctions.\n * @param _redeemEnableTime redeem enable time .\n * redeem reputation can be done after this time.\n * @param _token the bidding token\n * @param _wallet the address of the wallet the token will be transfer to.\n */\n function initialize(\n Avatar _avatar,\n uint _reputationReward,\n uint _auctionsStartTime,\n uint _auctionsEndTime,\n uint _numberOfAuctions,\n uint _redeemEnableTime,\n StandardToken _token,\n address _wallet)\n external\n onlyOwner\n {\n require(avatar == Avatar(0), \"can be called only one time\");\n require(_avatar != Avatar(0), \"avatar cannot be zero\");\n require(_redeemEnableTime >= _auctionsEndTime, \"_redeemEnableTime >= _auctionsEndTime\");\n // number of auctions cannot be zero\n // auctionsEndTime should be greater than auctionsStartTime\n auctionPeriod = (_auctionsEndTime.sub(_auctionsStartTime)).div(_numberOfAuctions);\n require(auctionPeriod > 0, \"auctionPeriod should be > 0\");\n token = _token;\n avatar = _avatar;\n auctionsStartTime = _auctionsStartTime;\n auctionsEndTime = _auctionsEndTime;\n numberOfAuctions = _numberOfAuctions;\n wallet = _wallet;\n auctionReputationReward = _reputationReward / _numberOfAuctions;\n reputationRewardLeft = _reputationReward;\n redeemEnableTime = _redeemEnableTime;\n }\n\n /**\n * @dev redeem reputation function\n * @param _beneficiary the beneficiary to redeem.\n * @param _auctionId the auction id to redeem from.\n * @return bool\n */\n function redeem(address _beneficiary, uint _auctionId) public returns(bool) {\n // solium-disable-next-line security/no-block-members\n require(now > redeemEnableTime, \"now > redeemEnableTime\");\n Auction storage auction = auctions[_auctionId];\n uint bid = auction.bids[_beneficiary];\n require(bid > 0, \"bidding amount should be > 0\");\n auction.bids[_beneficiary] = 0;\n int256 repRelation = int216(bid).toReal().mul(int216(auctionReputationReward).toReal());\n uint reputation = uint256(repRelation.div(int216(auction.totalBid).toReal()).fromReal());\n // check that the reputation is sum zero\n reputationRewardLeft = reputationRewardLeft.sub(reputation);\n require(ControllerInterface(avatar.owner()).mintReputation(reputation, _beneficiary, avatar), \"mint reputation should success\");\n emit Redeem(_auctionId, _beneficiary, reputation);\n return true;\n }\n\n /**\n * @dev bid function\n * @param _amount the amount to bid with\n * @return auctionId\n */\n function bid(uint _amount) public returns(uint auctionId) {\n require(_amount > 0, \"bidding amount should be > 0\");\n // solium-disable-next-line security/no-block-members\n require(now <= auctionsEndTime, \"bidding should be within the allowed bidding period\");\n // solium-disable-next-line security/no-block-members\n require(now >= auctionsStartTime, \"bidding is enable only after bidding auctionsStartTime\");\n require(token.transferFrom(msg.sender, this, _amount), \"transferFrom should success\");\n // solium-disable-next-line security/no-block-members\n auctionId = (now - auctionsStartTime) / auctionPeriod;\n Auction storage auction = auctions[auctionId];\n auction.totalBid = auction.totalBid.add(_amount);\n auction.bids[msg.sender] = auction.bids[msg.sender].add(_amount);\n emit Bid(msg.sender, auctionId, _amount);\n }\n\n /**\n * @dev getBid get bid for specific bidder and _auctionId\n * @param _bidder the bidder\n * @param _auctionId auction id\n * @return uint\n */\n function getBid(address _bidder,uint _auctionId) public view returns(uint) {\n return auctions[_auctionId].bids[_bidder];\n }\n\n /**\n * @dev transferToWallet transfer the tokens to the wallet.\n * can be called only after auctionsEndTime\n */\n function transferToWallet() public {\n // solium-disable-next-line security/no-block-members\n require(now > auctionsEndTime, \"now > auctionsEndTime\");\n uint tokenBalance = token.balanceOf(this);\n require(token.transfer(wallet,tokenBalance), \"transfer should success\");\n }\n\n}\n", "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/schemes/Auction4Reputation.sol", "ast": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/schemes/Auction4Reputation.sol", "exportedSymbols": { "Auction4Reputation": [ 5363 ] }, "id": 5364, "nodeType": "SourceUnit", "nodes": [ { "id": 4959, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:9" }, { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "openzeppelin-solidity/contracts/math/SafeMath.sol", "id": 4960, "nodeType": "ImportDirective", "scope": 5364, "sourceUnit": 20792, "src": "26:59:9", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/libs/RealMath.sol", "file": "../libs/RealMath.sol", "id": 4962, "nodeType": "ImportDirective", "scope": 5364, "sourceUnit": 4958, "src": "86:48:9", "symbolAliases": [ { "foreign": 4961, "local": null } ], "unitAlias": "" }, { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/controller/ControllerInterface.sol", "file": "../controller/ControllerInterface.sol", "id": 4963, "nodeType": "ImportDirective", "scope": 5364, "sourceUnit": 2007, "src": "135:47:9", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "id": 4964, "nodeType": "ImportDirective", "scope": 5364, "sourceUnit": 20878, "src": "183:63:9", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4965, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20877, "src": "356:7:9", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$20877", "typeString": "contract Ownable" } }, "id": 4966, "nodeType": "InheritanceSpecifier", "src": "356:7:9" } ], "contractDependencies": [ 20877 ], "contractKind": "contract", "documentation": "@title A scheme for conduct ERC20 Tokens auction for reputation", "fullyImplemented": true, "id": 5363, "linearizedBaseContracts": [ 5363, 20877 ], "name": "Auction4Reputation", "nodeType": "ContractDefinition", "nodes": [ { "id": 4969, "libraryName": { "contractScope": null, "id": 4967, "name": "SafeMath", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20791, "src": "376:8:9", "typeDescriptions": { "typeIdentifier": "t_contract$_SafeMath_$20791", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", "src": "370:24:9", "typeName": { "id": 4968, "name": "uint", "nodeType": "ElementaryTypeName", "src": "389:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, { "id": 4972, "libraryName": { "contractScope": null, "id": 4970, "name": "RealMath", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4957, "src": "405:8:9", "typeDescriptions": { "typeIdentifier": "t_contract$_RealMath_$4957", "typeString": "library RealMath" } }, "nodeType": "UsingForDirective", "src": "399:26:9", "typeName": { "id": 4971, "name": "int216", "nodeType": "ElementaryTypeName", "src": "418:6:9", "typeDescriptions": { "typeIdentifier": "t_int216", "typeString": "int216" } } }, { "id": 4975, "libraryName": { "contractScope": null, "id": 4973, "name": "RealMath", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4957, "src": "436:8:9", "typeDescriptions": { "typeIdentifier": "t_contract$_RealMath_$4957", "typeString": "library RealMath" } }, "nodeType": "UsingForDirective", "src": "430:26:9", "typeName": { "id": 4974, "name": "int256", "nodeType": "ElementaryTypeName", "src": "449:6:9", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } } }, { "anonymous": false, "documentation": null, "id": 4983, "name": "Bid", "nodeType": "EventDefinition", "parameters": { "id": 4982, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4977, "indexed": true, "name": "_bidder", "nodeType": "VariableDeclaration", "scope": 4983, "src": "472:23:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4976, "name": "address", "nodeType": "ElementaryTypeName", "src": "472:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4979, "indexed": true, "name": "_auctionId", "nodeType": "VariableDeclaration", "scope": 4983, "src": "497:23:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4978, "name": "uint", "nodeType": "ElementaryTypeName", "src": "497:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4981, "indexed": false, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 4983, "src": "522:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4980, "name": "uint", "nodeType": "ElementaryTypeName", "src": "522:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "471:64:9" }, "src": "462:74:9" }, { "anonymous": false, "documentation": null, "id": 4991, "name": "Redeem", "nodeType": "EventDefinition", "parameters": { "id": 4990, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4985, "indexed": true, "name": "_auctionId", "nodeType": "VariableDeclaration", "scope": 4991, "src": "554:23:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4984, "name": "uint", "nodeType": "ElementaryTypeName", "src": "554:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4987, "indexed": true, "name": "_beneficiary", "nodeType": "VariableDeclaration", "scope": 4991, "src": "579:28:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4986, "name": "address", "nodeType": "ElementaryTypeName", "src": "579:7:9", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4989, "indexed": false, "name": "_amount", "nodeType": "VariableDeclaration", "scope": 4991, "src": "609:12:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4988, "name": "uint", "nodeType": "ElementaryTypeName", "src": "609:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "553:69:9" }, "src": "541:82:9" }, { "canonicalName": "Auction4Reputation.Auction", "id": 4998, "members": [ { "constant": false, "id": 4993, "name": "totalBid", "nodeType": "VariableDeclaration", "scope": 4998, "src": "654:13:9", "stateVariable": false, "storageLocation": "default",