UNPKG

arc_dx

Version:

A platform for building DAOs

1,070 lines (1,069 loc) 305 kB
{ "contractName": "AbsoluteVoteExecuteMock", "abi": [ { "constant": true, "inputs": [], "name": "absoluteVote", "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": "reputation", "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" }, { "inputs": [ { "name": "_reputation", "type": "address" }, { "name": "_absoluteVote", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_proposalId", "type": "bytes32" }, { "indexed": true, "name": "_organization", "type": "address" }, { "indexed": false, "name": "_numOfChoices", "type": "uint256" }, { "indexed": false, "name": "_proposer", "type": "address" }, { "indexed": false, "name": "_paramsHash", "type": "bytes32" } ], "name": "NewProposal", "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": false, "name": "_msg", "type": "address" } ], "name": "LogAddress", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "int256" } ], "name": "LogInt", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "string" } ], "name": "LogString", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "uint256" } ], "name": "LogUint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bytes" } ], "name": "LogBytes", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bytes32" } ], "name": "LogBytes32", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bool" } ], "name": "LogBool", "type": "event" }, { "constant": true, "inputs": [ { "name": "_proposalId", "type": "bytes32" } ], "name": "getTotalReputationSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_amount", "type": "uint256" }, { "name": "_beneficiary", "type": "address" }, { "name": "", "type": "bytes32" } ], "name": "mintReputation", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_amount", "type": "uint256" }, { "name": "_beneficiary", "type": "address" }, { "name": "", "type": "bytes32" } ], "name": "burnReputation", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_proposalId", "type": "bytes32" } ], "name": "reputationOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_stakingToken", "type": "address" }, { "name": "_beneficiary", "type": "address" }, { "name": "_amount", "type": "uint256" }, { "name": "", "type": "bytes32" } ], "name": "stakingTokenTransfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_stakingToken", "type": "address" }, { "name": "", "type": "bytes32" } ], "name": "balanceOfStakingToken", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "bytes32" }, { "name": "_decision", "type": "int256" } ], "name": "executeProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "bytes32" }, { "name": "_vote", "type": "uint256" }, { "name": "_voter", "type": "address" } ], "name": "ownerVote", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "bytes32" } ], "name": "cancelProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_numOfChoices", "type": "uint256" }, { "name": "_paramsHash", "type": "bytes32" }, { "name": "", "type": "address" }, { "name": "_proposer", "type": "address" }, { "name": "_organization", "type": "address" } ], "name": "propose", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_amount", "type": "uint256" }, { "name": "_beneficiary", "type": "address" }, { "name": "", "type": "bytes32" } ], "name": "burnReputationTest", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "bytes32" } ], "name": "setProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b50604051604080610c438339810160405280516020909101516000805433600160a060020a031991821617909155600180548216600160a060020a0380861691909117909155600280549092169083161790556100758164010000000061007c810204565b5050610118565b600054600160a060020a0316331461009357600080fd5b6100a5816401000000006100a8810204565b50565b600160a060020a03811615156100bd57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b610b1c806101276000396000f3006080604052600436106100f05763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630905c9f981146100f5578063339e23d11461013a57806337376ca8146101755780634b6d44001461018d5780636b8eb403146101be57806370a53748146101e2578063715018a6146101fa5780638da5cb5b146102115780639588378e146102265780639d4c162d1461024a578063abcc9cb914610265578063b551c3731461028c578063bea75f28146102a4578063c52164c6146102d1578063d29b5d2f146102e6578063f2fde38b1461030d578063f81f8bf61461032e575b600080fd5b34801561010157600080fd5b50610128600435602435600160a060020a0360443581169060643581169060843516610355565b60408051918252519081900360200190f35b34801561014657600080fd5b50610161600435602435600160a060020a036044351661041c565b604080519115158252519081900360200190f35b34801561018157600080fd5b506101616004356104c9565b34801561019957600080fd5b506101a2610561565b60408051600160a060020a039092168252519081900360200190f35b3480156101ca57600080fd5b50610128600160a060020a0360043516602435610570565b3480156101ee57600080fd5b50610161600435610607565b34801561020657600080fd5b5061020f61061b565b005b34801561021d57600080fd5b506101a2610687565b34801561023257600080fd5b50610128600160a060020a0360043516602435610696565b34801561025657600080fd5b50610161600435602435610712565b34801561027157600080fd5b50610161600435600160a060020a0360243516604435610784565b34801561029857600080fd5b506101286004356107f6565b3480156102b057600080fd5b50610161600160a060020a036004358116906024351660443560643561086a565b3480156102dd57600080fd5b506101a2610933565b3480156102f257600080fd5b50610161600435600160a060020a0360243516604435610942565b34801561031957600080fd5b5061020f600160a060020a03600435166109c9565b34801561033a57600080fd5b50610161600435600160a060020a03602435166044356109ec565b600254604080517f88737b5e0000000000000000000000000000000000000000000000000000000081526004810188905260248101879052600160a060020a03858116604483015284811660648301529151600093849316916388737b5e91608480830192602092919082900301818787803b1580156103d457600080fd5b505af11580156103e8573d6000803e3d6000fd5b505050506040513d60208110156103fe57600080fd5b50516000818152600360205260409020439055979650505050505050565b600254604080517f339e23d10000000000000000000000000000000000000000000000000000000081526004810186905260248101859052600160a060020a0384811660448301529151600093929092169163339e23d19160648082019260209290919082900301818787803b15801561049557600080fd5b505af11580156104a9573d6000803e3d6000fd5b505050506040513d60208110156104bf57600080fd5b5051949350505050565b600254604080517f37376ca8000000000000000000000000000000000000000000000000000000008152600481018490529051600092600160a060020a0316916337376ca891602480830192602092919082900301818787803b15801561052f57600080fd5b505af1158015610543573d6000803e3d6000fd5b505050506040513d602081101561055957600080fd5b505192915050565b600254600160a060020a031681565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600091600160a060020a038516916370a082319160248082019260209290919082900301818787803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050506040513d60208110156105fe57600080fd5b50519392505050565b600090815260036020526040812043905590565b600054600160a060020a0316331461063257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b60015460008281526003602090815260408083205481517f4ee2cd7e000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301526024820192909252915193941692634ee2cd7e9260448084019391929182900301818787803b1580156105d457600080fd5b6040805183815290516000917e9fd52f05c0ded31d6fb0ee580b923f85e99cf1a5a1da342f25e73c45829c83919081900360200190a16040805183815290517f1aa4309bfd99af8afa7454590e1bdaa5a9b3b63e5baa109ae9afa3ecd0c67f399181900360200190a150600192915050565b600154604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526024820187905291516000939290921691639dc29fac9160448082019260209290919082900301818787803b15801561049557600080fd5b60015460008281526003602090815260408083205481517f981b24d0000000000000000000000000000000000000000000000000000000008152600481019190915290519293600160a060020a03169263981b24d09260248084019391929182900301818787803b15801561052f57600080fd5b60008054600160a060020a0316331461088257600080fd5b84600160a060020a031663a9059cbb85856040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156108fe57600080fd5b505af1158015610912573d6000803e3d6000fd5b505050506040513d602081101561092857600080fd5b505195945050505050565b600154600160a060020a031681565b60008054600160a060020a0316331461095a57600080fd5b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201889052915191909216916340c10f199160448083019260209291908290030181600087803b15801561049557600080fd5b600054600160a060020a031633146109e057600080fd5b6109e981610a73565b50565b60008054600160a060020a03163314610a0457600080fd5b600154604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301526024820188905291519190921691639dc29fac9160448083019260209291908290030181600087803b15801561049557600080fd5b600160a060020a0381161515610a8857600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b8559902a356afe0295f0fda292248e6be67bcec7218f03c9eeb3d8d27e9db5a0029", "deployedBytecode": "0x6080604052600436106100f05763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630905c9f981146100f5578063339e23d11461013a57806337376ca8146101755780634b6d44001461018d5780636b8eb403146101be57806370a53748146101e2578063715018a6146101fa5780638da5cb5b146102115780639588378e146102265780639d4c162d1461024a578063abcc9cb914610265578063b551c3731461028c578063bea75f28146102a4578063c52164c6146102d1578063d29b5d2f146102e6578063f2fde38b1461030d578063f81f8bf61461032e575b600080fd5b34801561010157600080fd5b50610128600435602435600160a060020a0360443581169060643581169060843516610355565b60408051918252519081900360200190f35b34801561014657600080fd5b50610161600435602435600160a060020a036044351661041c565b604080519115158252519081900360200190f35b34801561018157600080fd5b506101616004356104c9565b34801561019957600080fd5b506101a2610561565b60408051600160a060020a039092168252519081900360200190f35b3480156101ca57600080fd5b50610128600160a060020a0360043516602435610570565b3480156101ee57600080fd5b50610161600435610607565b34801561020657600080fd5b5061020f61061b565b005b34801561021d57600080fd5b506101a2610687565b34801561023257600080fd5b50610128600160a060020a0360043516602435610696565b34801561025657600080fd5b50610161600435602435610712565b34801561027157600080fd5b50610161600435600160a060020a0360243516604435610784565b34801561029857600080fd5b506101286004356107f6565b3480156102b057600080fd5b50610161600160a060020a036004358116906024351660443560643561086a565b3480156102dd57600080fd5b506101a2610933565b3480156102f257600080fd5b50610161600435600160a060020a0360243516604435610942565b34801561031957600080fd5b5061020f600160a060020a03600435166109c9565b34801561033a57600080fd5b50610161600435600160a060020a03602435166044356109ec565b600254604080517f88737b5e0000000000000000000000000000000000000000000000000000000081526004810188905260248101879052600160a060020a03858116604483015284811660648301529151600093849316916388737b5e91608480830192602092919082900301818787803b1580156103d457600080fd5b505af11580156103e8573d6000803e3d6000fd5b505050506040513d60208110156103fe57600080fd5b50516000818152600360205260409020439055979650505050505050565b600254604080517f339e23d10000000000000000000000000000000000000000000000000000000081526004810186905260248101859052600160a060020a0384811660448301529151600093929092169163339e23d19160648082019260209290919082900301818787803b15801561049557600080fd5b505af11580156104a9573d6000803e3d6000fd5b505050506040513d60208110156104bf57600080fd5b5051949350505050565b600254604080517f37376ca8000000000000000000000000000000000000000000000000000000008152600481018490529051600092600160a060020a0316916337376ca891602480830192602092919082900301818787803b15801561052f57600080fd5b505af1158015610543573d6000803e3d6000fd5b505050506040513d602081101561055957600080fd5b505192915050565b600254600160a060020a031681565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600091600160a060020a038516916370a082319160248082019260209290919082900301818787803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050506040513d60208110156105fe57600080fd5b50519392505050565b600090815260036020526040812043905590565b600054600160a060020a0316331461063257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b60015460008281526003602090815260408083205481517f4ee2cd7e000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301526024820192909252915193941692634ee2cd7e9260448084019391929182900301818787803b1580156105d457600080fd5b6040805183815290516000917e9fd52f05c0ded31d6fb0ee580b923f85e99cf1a5a1da342f25e73c45829c83919081900360200190a16040805183815290517f1aa4309bfd99af8afa7454590e1bdaa5a9b3b63e5baa109ae9afa3ecd0c67f399181900360200190a150600192915050565b600154604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526024820187905291516000939290921691639dc29fac9160448082019260209290919082900301818787803b15801561049557600080fd5b60015460008281526003602090815260408083205481517f981b24d0000000000000000000000000000000000000000000000000000000008152600481019190915290519293600160a060020a03169263981b24d09260248084019391929182900301818787803b15801561052f57600080fd5b60008054600160a060020a0316331461088257600080fd5b84600160a060020a031663a9059cbb85856040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156108fe57600080fd5b505af1158015610912573d6000803e3d6000fd5b505050506040513d602081101561092857600080fd5b505195945050505050565b600154600160a060020a031681565b60008054600160a060020a0316331461095a57600080fd5b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201889052915191909216916340c10f199160448083019260209291908290030181600087803b15801561049557600080fd5b600054600160a060020a031633146109e057600080fd5b6109e981610a73565b50565b60008054600160a060020a03163314610a0457600080fd5b600154604080517f9dc29fac000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301526024820188905291519190921691639dc29fac9160448083019260209291908290030181600087803b15801561049557600080fd5b600160a060020a0381161515610a8857600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b8559902a356afe0295f0fda292248e6be67bcec7218f03c9eeb3d8d27e9db5a0029", "sourceMap": "308:2978:43:-;;;731:204;8:9:-1;5:2;;;30:1;27;20:12;5:2;731:204:43;;;;;;;;;;;;;;;;;;;567:5:55;:18;;575:10;-1:-1:-1;;;;;;567:18:55;;;;;;;-1:-1:-1;815:24:43;;;;-1:-1:-1;;;;;815:24:43;;;;;;;;;;849:12;:28;;;;;;;;;;;887:41;731:204;887:17;;;;:41;:::i;:::-;731:204;;308:2978;;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;1512:171::-;-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;308:2978:43:-;;;;;;;", "deployedSourceMap": "308:2978:43:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2552:346;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2552:346:43;;;;;-1:-1:-1;;;;;2552:346:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2246:162;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2246:162:43;;;;;-1:-1:-1;;;;;2246:162:43;;;;;;;;;;;;;;;;;;;;;;;2414:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2414:132:43;;;;;456:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;456:32:43;;;;;;;;-1:-1:-1;;;;;456:32:43;;;;;;;;;;;;;;1888:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1888:165:43;-1:-1:-1;;;;;1888:165:43;;;;;;;3152:131;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3152:131:43;;;;;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;;;;1483:175:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1483:175:43;-1:-1:-1;;;;;1483:175:43;;;;;;;2059:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2059:181:43;;;;;;;2979:167;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2979:167:43;;;-1:-1:-1;;;;;2979:167:43;;;;;;;941:170;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;941:170:43;;;;;1664:218;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1664:218:43;-1:-1:-1;;;;;1664:218:43;;;;;;;;;;;;;;422:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;422:28:43;;;;1117:177;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1117:177:43;;;-1:-1:-1;;;;;1117:177:43;;;;;;;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;;;;;1300:177:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1300:177:43;;;-1:-1:-1;;;;;1300:177:43;;;;;;;2552:346;2734:12;;:71;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2734:71:43;;;;;;;;;;;;;;;;2690:7;;;;2734:12;;:20;;:71;;;;;;;;;;;;;;2690:7;2734:12;:71;;;5:2:-1;;;;30:1;27;20:12;5:2;2734:71:43;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2734:71:43;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2734:71:43;2815:33;;;;:21;2734:71;2815:33;;;;2851:12;2815:48;;2734:71;2552:346;-1:-1:-1;;;;;;;2552:346:43:o;2246:162::-;2353:12;;:48;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2353:48:43;;;;;;;;;2330:4;;2353:12;;;;;:22;;:48;;;;;;;;;;;;;;;2330:4;2353:12;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;2353:48:43;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2353:48:43;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2353:48:43;;2246:162;-1:-1:-1;;;;2246:162:43:o;2414:132::-;2499:12;;:40;;;;;;;;;;;;;;2476:4;;-1:-1:-1;;;;;2499:12:43;;:27;;:40;;;;;;;;;;;;;;2476:4;2499:12;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;2499:40:43;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2499:40:43;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2499:40:43;;2414:132;-1:-1:-1;;2414:132:43:o;456:32::-;;;-1:-1:-1;;;;;456:32:43;;:::o;1888:165::-;2017:29;;;;;;2041:4;2017:29;;;;;;1990:4;;-1:-1:-1;;;;;2017:23:43;;;;;:29;;;;;;;;;;;;;;;1990:4;2017:23;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;2017:29:43;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2017:29:43;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2017:29:43;;1888:165;-1:-1:-1;;;1888:165:43:o;3152:131::-;3211:4;3227:34;;;:21;:34;;;;;3264:12;3227:49;;3211:4;3152:131::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;1483:175:43:-;1586:10;;1563:4;1616:34;;;:21;:34;;;;;;;;;1586:65;;;;;-1:-1:-1;;;;;1586:65:43;;;;;;;;;;;;;;;;1563:4;;1586:10;;:22;;:65;;;;;1616:34;;1586:65;;;;;;1563:4;1586:10;:65;;;5:2:-1;;;;30:1;27;20:12;2059:181:43;2157:23;;;;;;;;2136:4;;2157:23;;;;;;;;;;2195:17;;;;;;;;;;;;;;;;;-1:-1:-1;2229:4:43;2059:181;;;;:::o;2979:167::-;3102:10;;:37;;;;;;-1:-1:-1;;;;;3102:37:43;;;;;;;;;;;;;;;3075:4;;3102:10;;;;;:15;;:37;;;;;;;;;;;;;;;3075:4;3102:10;:37;;;5:2:-1;;;;30:1;27;20:12;941:170:43;1044:10;;1018:7;1069:34;;;:21;:34;;;;;;;;;1044:60;;;;;;;;;;;;;;1018:7;;-1:-1:-1;;;;;1044:10:43;;:24;;:60;;;;;1069:34;;1044:60;;;;;;1018:7;1044:10;:60;;;5:2:-1;;;;30:1;27;20:12;1664:218:43;1804:4;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1831:13:43;-1:-1:-1;;;;;1831:22:43;;1854:12;1867:7;1831:44;;;;;;;;;;;;;-1:-1:-1;;;;;1831:44:43;-1:-1:-1;;;;;1831:44:43;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1831:44:43;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1831:44:43;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1831:44:43;;1664:218;-1:-1:-1;;;;;1664:218:43:o;422:28::-;;;-1:-1:-1;;;;;422:28:43;;:::o;1117:177::-;1223:4;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1250:10:43;;:37;;;;;;-1:-1:-1;;;;;1250:37:43;;;;;;;;;;;;;;;:10;;;;;:15;;:37;;;;;;;;;;;;;;:10;;:37;;;5:2:-1;;;;30:1;27;20:12;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;1300:177:43:-;1406:4;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1433:10:43;;:37;;;;;;-1:-1:-1;;;;;1433:37:43;;;;;;;;;;;;;;;:10;;;;;:15;;:37;;;;;;;;;;;;;;:10;;:37;;;5:2:-1;;;;30:1;27;20:12;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 \"../votingMachines/ProposalExecuteInterface.sol\";\nimport \"../votingMachines/VotingMachineCallbacksInterface.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport \"./Debug.sol\";\nimport \"../Reputation.sol\";\nimport \"../votingMachines/AbsoluteVote.sol\";\n\n\ncontract AbsoluteVoteExecuteMock is Debug,VotingMachineCallbacksInterface,ProposalExecuteInterface,Ownable {\n\n Reputation public reputation;\n AbsoluteVote public absoluteVote;\n mapping (bytes32=>uint) proposalsBlockNumbers;\n\n\n event NewProposal(bytes32 indexed _proposalId, address indexed _organization, uint _numOfChoices, address _proposer, bytes32 _paramsHash);\n\n /**\n * @dev Constructor\n */\n constructor(Reputation _reputation,AbsoluteVote _absoluteVote) public\n {\n reputation = _reputation;\n absoluteVote = _absoluteVote;\n transferOwnership(address(_absoluteVote));\n }\n\n function getTotalReputationSupply(bytes32 _proposalId) external view returns(uint256) {\n return reputation.totalSupplyAt(proposalsBlockNumbers[_proposalId]);\n }\n\n function mintReputation(uint _amount,address _beneficiary,bytes32)\n external\n onlyOwner\n returns(bool)\n {\n return reputation.mint(_beneficiary,_amount);\n }\n\n function burnReputation(uint _amount,address _beneficiary,bytes32)\n external\n onlyOwner\n returns(bool)\n {\n return reputation.burn(_beneficiary,_amount);\n }\n\n function reputationOf(address _owner,bytes32 _proposalId) external view returns(uint) {\n return reputation.balanceOfAt(_owner,proposalsBlockNumbers[_proposalId]);\n }\n\n function stakingTokenTransfer(StandardToken _stakingToken,address _beneficiary,uint _amount,bytes32)\n external\n onlyOwner\n returns(bool)\n {\n return _stakingToken.transfer(_beneficiary,_amount);\n }\n\n function balanceOfStakingToken(StandardToken _stakingToken,bytes32)\n external\n view\n returns(uint)\n {\n return _stakingToken.balanceOf(this);\n }\n\n function executeProposal(bytes32 _proposalId,int _decision) external returns(bool) {\n emit LogBytes32(_proposalId);\n emit LogInt(_decision);\n return true;\n }\n\n function ownerVote(bytes32 _proposalId,uint _vote, address _voter) external returns(bool) {\n return absoluteVote.ownerVote(_proposalId,_vote,_voter);\n }\n\n function cancelProposal(bytes32 _proposalId) external returns(bool) {\n return absoluteVote.cancelProposal(_proposalId);\n }\n\n function propose(uint _numOfChoices, bytes32 _paramsHash, address ,address _proposer,address _organization)\n external\n returns\n (bytes32)\n {\n bytes32 proposalId = absoluteVote.propose(_numOfChoices,_paramsHash,_proposer,_organization);\n proposalsBlockNumbers[proposalId] = block.number;\n\n return proposalId;\n }\n\n //this function is used only for testing purpose on this mock contract\n function burnReputationTest(uint _amount,address _beneficiary,bytes32)\n external\n returns(bool)\n {\n return reputation.burn(_beneficiary,_amount);\n }\n\n function setProposal(bytes32 _proposalId) external returns(bool) {\n proposalsBlockNumbers[_proposalId] = block.number;\n }\n\n}\n", "sourcePath": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "ast": { "absolutePath": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "exportedSymbols": { "AbsoluteVoteExecuteMock": [ 16059 ] }, "id": 16060, "nodeType": "SourceUnit", "nodes": [ { "id": 15772, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:43" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol", "file": "../votingMachines/ProposalExecuteInterface.sol", "id": 15773, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 20387, "src": "26:56:43", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol", "file": "../votingMachines/VotingMachineCallbacksInterface.sol", "id": 15774, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 20589, "src": "83:63:43", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "id": 15775, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 20878, "src": "147:63:43", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/test/Debug.sol", "file": "./Debug.sol", "id": 15776, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 16091, "src": "211:21:43", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/Reputation.sol", "file": "../Reputation.sol", "id": 15777, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 13408, "src": "233:27:43", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/AbsoluteVote.sol", "file": "../votingMachines/AbsoluteVote.sol", "id": 15778, "nodeType": "ImportDirective", "scope": 16060, "sourceUnit": 17267, "src": "261:44:43", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 15779, "name": "Debug", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 16090, "src": "344:5:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Debug_$16090", "typeString": "contract Debug" } }, "id": 15780, "nodeType": "InheritanceSpecifier", "src": "344:5:43" }, { "arguments": null, "baseName": { "contractScope": null, "id": 15781, "name": "VotingMachineCallbacksInterface", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20588, "src": "350:31:43", "typeDescriptions": { "typeIdentifier": "t_contract$_VotingMachineCallbacksInterface_$20588", "typeString": "contract VotingMachineCallbacksInterface" } }, "id": 15782, "nodeType": "InheritanceSpecifier", "src": "350:31:43" }, { "arguments": null, "baseName": { "contractScope": null, "id": 15783, "name": "ProposalExecuteInterface", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20386, "src": "382:24:43", "typeDescriptions": { "typeIdentifier": "t_contract$_ProposalExecuteInterface_$20386", "typeString": "contract ProposalExecuteInterface" } }, "id": 15784, "nodeType": "InheritanceSpecifier", "src": "382:24:43" }, { "arguments": null, "baseName": { "contractScope": null, "id": 15785, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20877, "src": "407:7:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$20877", "typeString": "contract Ownable" } }, "id": 15786, "nodeType": "InheritanceSpecifier", "src": "407:7:43" } ], "contractDependencies": [ 16090, 20386, 20588, 20877 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 16059, "linearizedBaseContracts": [ 16059, 20877, 20386, 20588, 16090 ], "name": "AbsoluteVoteExecuteMock", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 15788, "name": "reputation", "nodeType": "VariableDeclaration", "scope": 16059, "src": "422:28:43", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Reputation_$13407", "typeString": "contract Reputation" }, "typeName": { "contractScope": null, "id": 15787, "name": "Reputation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 13407, "src": "422:10:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Reputation_$13407", "typeString": "contract Reputation" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 15790, "name": "absoluteVote", "nodeType": "VariableDeclaration", "scope": 16059, "src": "456:32:43", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_AbsoluteVote_$17266", "typeString": "contract AbsoluteVote" }, "typeName": { "contractScope": null, "id": 15789, "name": "AbsoluteVote", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 17266, "src": "456:12:43", "typeDescriptions": { "typeIdentifier": "t_contract$_AbsoluteVote_$17266", "typeString": "contract AbsoluteVote" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 15794, "name": "proposalsBlockNumbers", "nodeType": "VariableDeclaration", "scope": 16059, "src": "494:45:43", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$", "typeString": "mapping(bytes32 => uint256)" }, "typeName": { "id": 15793, "keyType": { "id": 15791, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "503:7:43", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "494:23:43", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$", "typeString": "mapping(bytes32 => uint256)" }, "valueType": { "id": 15792, "name": "uint", "nodeType": "ElementaryTypeName", "src": "512:4:43", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "internal" }, { "anonymous": false, "documentation": null, "id": 15806, "name": "NewProposal", "nodeType": "EventDefinition", "parameters": { "id": 15805, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15796, "indexed": true, "name": "_proposalId", "nodeType": "VariableDeclaration", "scope": 15806, "src": "565:27:43", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 15795, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "565:7:43", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15798, "indexed": true, "name": "_organization", "nodeType": "VariableDeclaration", "scope": 15806, "src": "594:29:43", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15797, "name": "address", "nodeType": "ElementaryTypeName", "src": "594:7:43", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15800, "indexed": false, "name": "_numOfChoices", "nodeType": "VariableDeclaration", "scope": 15806, "src": "625:18:43", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 15799, "name": "uint", "nodeType": "ElementaryTypeName", "src": "625:4:43", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15802, "indexed": false, "name": "_proposer", "nodeType": "VariableDeclaration", "scope": 15806, "src": "645:17:43", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15801, "name": "address", "nodeType": "ElementaryTypeName", "src": "645:7:43", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15804, "indexed": false, "name": "_paramsHash", "nodeType": "VariableDeclaration", "scope": 15806, "src": "664:19:43", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 15803, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "664:7:43", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "564:120:43" }, "src": "547:138:43" }, { "body": { "id": 15827, "nodeType": "Block", "src": "805:130:43", "statements": [ { "expression": { "argumentTypes": null, "id": 15815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15813, "name": "reputation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15788, "src": "815:10:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Reputation_$13407", "typeString": "contract Reputation" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 15814, "name": "_reputation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15808, "src": "828:11:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Reputation_$13407", "typeString": "contract Reputation" } }, "src": "815:24:43", "typeDescriptions": { "typeIdentifier": "t_contract$_Reputation_$13407", "typeString": "contract Reputation" } }, "id": 15816, "nodeType": "ExpressionStatement", "src": "815:24:43" }, { "expression": { "argumentTypes": null, "id": 15819, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15817, "name": "absoluteVote", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15790, "src": "849:12:43", "typeDescriptions": { "typeIdentifier": "t_contract$_AbsoluteVote_$17266", "typeString": "contract AbsoluteVote" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 15818, "name": "_absoluteVote", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15810, "src": "864:13:43", "typeDescriptions": { "typeIdentifier": "t_contract$_AbsoluteVote_$17266", "typeString": "contract AbsoluteVote" } }, "src": "849:28:43", "typeDescriptions": { "typeIdentifier": "t_contract$_AbsoluteVote_$17266", "typeString": "contract AbsoluteVote" } }, "id": 15820, "nodeType": "ExpressionStatement", "src": "849:28:43" }, { "expression": { "argumentTypes": null,