UNPKG

@josojo/tokenized-events

Version:
904 lines (903 loc) 153 kB
{ "contractName": "OutcomeToken", "abi": [ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "spender", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "balances", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" }, { "name": "", "type": "address" } ], "name": "allowances", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalTokens", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "owner", "type": "address" }, { "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "eventContract", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "_symbol", "type": "string" }, { "name": "_name", "type": "string" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "Issuance", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "Revocation", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "constant": false, "inputs": [ { "name": "_for", "type": "address" }, { "name": "outcomeTokenCount", "type": "uint256" } ], "name": "issue", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_for", "type": "address" }, { "name": "outcomeTokenCount", "type": "uint256" } ], "name": "revoke", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x60c0604052600a60808190527f546f6b656e204e616d650000000000000000000000000000000000000000000060a090815262000040916000919062000100565b506040805180820190915260038082527f53594d00000000000000000000000000000000000000000000000000000000006020909201918252620000879160019162000100565b503480156200009557600080fd5b50604051620010523803806200105283398101604052805160208083015183018051929093019291620000cf916000919084019062000100565b508151620000e590600190602085019062000100565b505060058054600160a060020a0319163317905550620001a5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200014357805160ff191683800117855562000173565b8280016001018555821562000173579182015b828111156200017357825182559160200191906001019062000156565b506200018192915062000185565b5090565b620001a291905b808211156200018157600081556001016200018c565b90565b610e9d80620001b56000396000f3006080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c857806327e235e3146101f2578063313ce5671461021357806355b6ed5c1461023e57806370a08231146102655780637e1c0c0914610286578063867904b41461029b57806395d89b41146102c1578063a9059cbb146102d6578063dd62ed3e146102fa578063e274fd2414610321578063eac449d914610352575b600080fd5b3480156100eb57600080fd5b506100f4610376565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a0360043516602435610404565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b661046b565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a0360043581169060243516604435610471565b3480156101fe57600080fd5b506101b6600160a060020a0360043516610743565b34801561021f57600080fd5b50610228610755565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101b6600160a060020a036004358116906024351661075a565b34801561027157600080fd5b506101b6600160a060020a0360043516610777565b34801561029257600080fd5b506101b6610792565b3480156102a757600080fd5b506102bf600160a060020a0360043516602435610798565b005b3480156102cd57600080fd5b506100f46109c7565b3480156102e257600080fd5b5061018d600160a060020a0360043516602435610a21565b34801561030657600080fd5b506101b6600160a060020a0360043581169060243516610c08565b34801561032d57600080fd5b50610336610c33565b60408051600160a060020a039092168252519081900360200190f35b34801561035e57600080fd5b506102bf600160a060020a0360043516602435610c42565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103fc5780601f106103d1576101008083540402835291602001916103fc565b820191906000526020600020905b8154815290600101906020018083116103df57829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60045490565b600160a060020a03831660009081526002602090815260408083205481517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052905173__Math__________________________________9263e31c71c49260448082019391829003018186803b1580156104fa57600080fd5b505af415801561050e573d6000803e3d6000fd5b505050506040513d602081101561052457600080fd5b505115806105ee5750600160a060020a03841660009081526003602090815260408083203384528252918290205482517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________9263e31c71c4926044808301939192829003018186803b1580156105c057600080fd5b505af41580156105d4573d6000803e3d6000fd5b505050506040513d60208110156105ea57600080fd5b5051155b806106ad5750600160a060020a0383166000908152600260209081526040918290205482517f4e30a66c000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________92634e30a66c926044808301939192829003018186803b15801561067f57600080fd5b505af4158015610693573d6000803e3d6000fd5b505050506040513d60208110156106a957600080fd5b5051155b156106ba5750600061073c565b600160a060020a0380851660008181526002602081815260408084208054899003905560038252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060015b9392505050565b60026020526000908152604090205481565b601281565b600360209081526000928352604080842090915290825290205481565b600160a060020a031660009081526002602052604090205490565b60045481565b600554600160a060020a0316331461081157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f636f6e7472616374206e6f74206576656e7420436f6e74726163740000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600260209081526040918290205482517f771602f7000000000000000000000000000000000000000000000000000000008152600481019190915260248101849052915173__Math__________________________________9263771602f7926044808301939192829003018186803b15801561089c57600080fd5b505af41580156108b0573d6000803e3d6000fd5b505050506040513d60208110156108c657600080fd5b5051600160a060020a038316600090815260026020908152604091829020929092556004805482517f771602f70000000000000000000000000000000000000000000000000000000081529182015260248101849052905173__Math__________________________________9263771602f79260448082019391829003018186803b15801561095557600080fd5b505af4158015610969573d6000803e3d6000fd5b505050506040513d602081101561097f57600080fd5b5051600455604080518281529051600160a060020a038416917f9cb9c14f7bc76e3a89b796b091850526236115352a198b1e472f00e91376bbcb919081900360200190a25050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103fc5780601f106103d1576101008083540402835291602001916103fc565b3360009081526002602090815260408083205481517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052905173__Math__________________________________9263e31c71c49260448082019391829003018186803b158015610aa157600080fd5b505af4158015610ab5573d6000803e3d6000fd5b505050506040513d6020811015610acb57600080fd5b50511580610b8d5750600160a060020a0383166000908152600260209081526040918290205482517f4e30a66c000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________92634e30a66c926044808301939192829003018186803b158015610b5f57600080fd5b505af4158015610b73573d6000803e3d6000fd5b505050506040513d6020811015610b8957600080fd5b5051155b15610b9a57506000610465565b33600081815260026020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600554600160a060020a03163314610cbb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f636f6e7472616374206e6f74206576656e7420436f6e74726163740000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600260209081526040918290205482517fb67d77c5000000000000000000000000000000000000000000000000000000008152600481019190915260248101849052915173__Math__________________________________9263b67d77c5926044808301939192829003018186803b158015610d4657600080fd5b505af4158015610d5a573d6000803e3d6000fd5b505050506040513d6020811015610d7057600080fd5b5051600160a060020a038316600090815260026020908152604091829020929092556004805482517fb67d77c50000000000000000000000000000000000000000000000000000000081529182015260248101849052905173__Math__________________________________9263b67d77c59260448082019391829003018186803b158015610dff57600080fd5b505af4158015610e13573d6000803e3d6000fd5b505050506040513d6020811015610e2957600080fd5b5051600455604080518281529051600160a060020a038416917ff6a317157440607f36269043eb55f1287a5a19ba2216afeab88cd46cbcfb88e9919081900360200190a250505600a165627a7a7230582028a0618fa3cf45cd01d48d02359f1feea3e5cafe5c1aac30a17f232141fc4be40029", "deployedBytecode": "0x6080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c857806327e235e3146101f2578063313ce5671461021357806355b6ed5c1461023e57806370a08231146102655780637e1c0c0914610286578063867904b41461029b57806395d89b41146102c1578063a9059cbb146102d6578063dd62ed3e146102fa578063e274fd2414610321578063eac449d914610352575b600080fd5b3480156100eb57600080fd5b506100f4610376565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a0360043516602435610404565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b661046b565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a0360043581169060243516604435610471565b3480156101fe57600080fd5b506101b6600160a060020a0360043516610743565b34801561021f57600080fd5b50610228610755565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101b6600160a060020a036004358116906024351661075a565b34801561027157600080fd5b506101b6600160a060020a0360043516610777565b34801561029257600080fd5b506101b6610792565b3480156102a757600080fd5b506102bf600160a060020a0360043516602435610798565b005b3480156102cd57600080fd5b506100f46109c7565b3480156102e257600080fd5b5061018d600160a060020a0360043516602435610a21565b34801561030657600080fd5b506101b6600160a060020a0360043581169060243516610c08565b34801561032d57600080fd5b50610336610c33565b60408051600160a060020a039092168252519081900360200190f35b34801561035e57600080fd5b506102bf600160a060020a0360043516602435610c42565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103fc5780601f106103d1576101008083540402835291602001916103fc565b820191906000526020600020905b8154815290600101906020018083116103df57829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60045490565b600160a060020a03831660009081526002602090815260408083205481517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052905173__Math__________________________________9263e31c71c49260448082019391829003018186803b1580156104fa57600080fd5b505af415801561050e573d6000803e3d6000fd5b505050506040513d602081101561052457600080fd5b505115806105ee5750600160a060020a03841660009081526003602090815260408083203384528252918290205482517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________9263e31c71c4926044808301939192829003018186803b1580156105c057600080fd5b505af41580156105d4573d6000803e3d6000fd5b505050506040513d60208110156105ea57600080fd5b5051155b806106ad5750600160a060020a0383166000908152600260209081526040918290205482517f4e30a66c000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________92634e30a66c926044808301939192829003018186803b15801561067f57600080fd5b505af4158015610693573d6000803e3d6000fd5b505050506040513d60208110156106a957600080fd5b5051155b156106ba5750600061073c565b600160a060020a0380851660008181526002602081815260408084208054899003905560038252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060015b9392505050565b60026020526000908152604090205481565b601281565b600360209081526000928352604080842090915290825290205481565b600160a060020a031660009081526002602052604090205490565b60045481565b600554600160a060020a0316331461081157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f636f6e7472616374206e6f74206576656e7420436f6e74726163740000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600260209081526040918290205482517f771602f7000000000000000000000000000000000000000000000000000000008152600481019190915260248101849052915173__Math__________________________________9263771602f7926044808301939192829003018186803b15801561089c57600080fd5b505af41580156108b0573d6000803e3d6000fd5b505050506040513d60208110156108c657600080fd5b5051600160a060020a038316600090815260026020908152604091829020929092556004805482517f771602f70000000000000000000000000000000000000000000000000000000081529182015260248101849052905173__Math__________________________________9263771602f79260448082019391829003018186803b15801561095557600080fd5b505af4158015610969573d6000803e3d6000fd5b505050506040513d602081101561097f57600080fd5b5051600455604080518281529051600160a060020a038416917f9cb9c14f7bc76e3a89b796b091850526236115352a198b1e472f00e91376bbcb919081900360200190a25050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103fc5780601f106103d1576101008083540402835291602001916103fc565b3360009081526002602090815260408083205481517fe31c71c4000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052905173__Math__________________________________9263e31c71c49260448082019391829003018186803b158015610aa157600080fd5b505af4158015610ab5573d6000803e3d6000fd5b505050506040513d6020811015610acb57600080fd5b50511580610b8d5750600160a060020a0383166000908152600260209081526040918290205482517f4e30a66c000000000000000000000000000000000000000000000000000000008152600481019190915260248101859052915173__Math__________________________________92634e30a66c926044808301939192829003018186803b158015610b5f57600080fd5b505af4158015610b73573d6000803e3d6000fd5b505050506040513d6020811015610b8957600080fd5b5051155b15610b9a57506000610465565b33600081815260026020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600554600160a060020a03163314610cbb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f636f6e7472616374206e6f74206576656e7420436f6e74726163740000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600260209081526040918290205482517fb67d77c5000000000000000000000000000000000000000000000000000000008152600481019190915260248101849052915173__Math__________________________________9263b67d77c5926044808301939192829003018186803b158015610d4657600080fd5b505af4158015610d5a573d6000803e3d6000fd5b505050506040513d6020811015610d7057600080fd5b5051600160a060020a038316600090815260026020908152604091829020929092556004805482517fb67d77c50000000000000000000000000000000000000000000000000000000081529182015260248101849052905173__Math__________________________________9263b67d77c59260448082019391829003018186803b158015610dff57600080fd5b505af4158015610e13573d6000803e3d6000fd5b505050506040513d6020811015610e2957600080fd5b5051600455604080518281529051600160a060020a038416917ff6a317157440607f36269043eb55f1287a5a19ba2216afeab88cd46cbcfb88e9919081900360200190a250505600a165627a7a7230582028a0618fa3cf45cd01d48d02359f1feea3e5cafe5c1aac30a17f232141fc4be40029", "sourceMap": "234:34:9:-;654:1253:6;234:34:9;;654:1253:6;234:34:9;;;;;;;;;;-1:-1:-1;;234:34:9;;:::i;:::-;-1:-1:-1;274:28:9;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;796:152:6;8:9:-1;5:2;;;30:1;27;20:12;5:2;796:152:6;;;;;;;;;;;;;;;;;;;;;;;867:12;;796:152;;;;;;867:12;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;889:16:6;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;;915:13:6;:26;;-1:-1:-1;;;;;;915:26:6;931:10;915:26;;;-1:-1:-1;654:1253:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;654:1253:6;;;-1:-1:-1;654:1253:6;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "654:1253:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;234:34:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;234:34:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;234:34:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2235:216;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2235:216:9;-1:-1:-1;;;;;2235:216:9;;;;;;;;;;;;;;;;;;;;;;;;;3168:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3168:113:9;;;;;;;;;;;;;;;;;;;;1554:464;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1554:464:9;-1:-1:-1;;;;;1554:464:9;;;;;;;;;;;;352:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;352:41:9;-1:-1:-1;;;;;352:41:9;;;;;308:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;308:35:9;;;;;;;;;;;;;;;;;;;;;;;399:64;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;399:64:9;-1:-1:-1;;;;;399:64:9;;;;;;;;;;2961:128;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2961:128:9;-1:-1:-1;;;;;2961:128:9;;;;;469:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;469:23:9;;;;1169:275:6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1169:275:6;-1:-1:-1;;;;;1169:275:6;;;;;;;;;274:28:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;274:28:9;;;;887:355;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;887:355:9;-1:-1:-1;;;;;887:355:9;;;;;;;2661:156;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2661:156:9;-1:-1:-1;;;;;2661:156:9;;;;;;;;;;287:28:6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;287:28:6;;;;;;;;-1:-1:-1;;;;;287:28:6;;;;;;;;;;;;;;1627:278;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1627:278:6;-1:-1:-1;;;;;1627:278:6;;;;;;;234:34:9;;;;;;;;;;;;;;;-1:-1:-1;;234:34:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2235:216::-;2344:10;2313:4;2333:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;2333:31:9;;;;;;;;;;;:39;;;2387:36;;;;;;;2313:4;;2333:31;;2344:10;;2387:36;;;;;;;;-1:-1:-1;2440:4:9;2235:216;;;;;:::o;3168:113::-;3263:11;;3168:113;:::o;1554:464::-;-1:-1:-1;;;;;1674:14:9;;1646:4;1674:14;;;-1:-1:-1;1674:14:9;;;;;;;;;:31;;;;;;;;;;;;;;;;;;;;:24;;;;:31;;;;;;;;;;;:24;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;1674:31:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1674:31:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1674:31:9;1673:32;;:94;;-1:-1:-1;;;;;;1722:16:9;;;;;;:10;:16;;;;;;;;1739:10;1722:28;;;;;;;;;:45;;;;;;;;;;;;;;;;;;;;:38;;;;:45;;;;;:16;;:45;;;;;:38;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;1722:45:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1722:45:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1722:45:9;1721:46;1673:94;:140;;;-1:-1:-1;;;;;;1784:12:9;;;;;;-1:-1:-1;1784:12:9;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;;;:22;;;;:29;;;;;:12;;:29;;;;;:22;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;1784:29:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1784:29:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1784:29:9;1783:30;1673:140;1666:173;;;-1:-1:-1;1834:5:9;1827:12;;1666:173;-1:-1:-1;;;;;1849:14:9;;;;;;;-1:-1:-1;1849:14:9;;;;;;;;:23;;;;;;;1882:10;:16;;;;;1899:10;1882:28;;;;;;;:37;;;;;;;1929:12;;;;;;;;;;;;;:21;;;;;;1965:25;;;;;;;1929:12;;1965:25;;;;;;;;;-1:-1:-1;2007:4:9;1554:464;;;;;;:::o;352:41::-;;;;;;;;;;;;;:::o;308:35::-;341:2;308:35;:::o;399:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2961:128::-;-1:-1:-1;;;;;3067:15:9;3040:4;3067:15;;;-1:-1:-1;3067:15:9;;;;;;;2961:128::o;469:23::-;;;;:::o;1169:275:6:-;467:13;;-1:-1:-1;;;;;467:13:6;453:10;:27;445:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1294:14:6;;;;;;-1:-1:-1;1294:14:6;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;;;:18;;;;:37;;;;;:14;;:37;;;;;:18;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;1294:37:6;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1294:37:6;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1294:37:6;-1:-1:-1;;;;;1277:14:6;;;;;;-1:-1:-1;1294:37:6;1277:14;;;;;;;;:54;;;;1355:11;;;:34;;;;;;;;;;;;;;;;;:15;;;;:34;;;;;;;;;;;:15;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;1355:34:6;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1355:34:6;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1355:34:6;1341:11;:48;1404:33;;;;;;;;-1:-1:-1;;;;;1404:33:6;;;;;;;;;1355:34;1404:33;;;1169:275;;:::o;274:28:9:-;;;;;;;;;;;;;;;-1:-1:-1;;274:28:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;887:355;998:10;961:4;989:20;;;:8;:20;;;;;;;;;:37;;;;;;;;;;;;;;;;;;;;:30;;;;:37;;;;;;;;;;;:30;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;989:37:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;989:37:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;989:37:9;988:38;;:84;;-1:-1:-1;;;;;;1043:12:9;;;;;;-1:-1:-1;1043:12:9;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;;;:22;;;;:29;;;;;:12;;:29;;;;;:22;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;1043:29:9;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1043:29:9;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1043:29:9;1042:30;988:84;981:117;;;-1:-1:-1;1093:5:9;1086:12;;981:117;1117:10;1108:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1147:12:9;;;;;;;;;:21;;;;;;1183:31;;;;;;;1147:12;;1117:10;1183:31;;;;;;;;;;;-1:-1:-1;1231:4:9;887:355;;;;:::o;2661:156::-;-1:-1:-1;;;;;2784:17:9;;;2757:4;2784:17;;;:10;:17;;;;;;;;:26;;;;;;;;;;;;;2661:156::o;287:28:6:-;;;-1:-1:-1;;;;;287:28:6;;:::o;1627:278::-;467:13;;-1:-1:-1;;;;;467:13:6;453:10;:27;445:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1753:14:6;;;;;;-1:-1:-1;1753:14:6;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;;;:18;;;;:37;;;;;:14;;:37;;;;;:18;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;1753:37:6;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1753:37:6;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1753:37:6;-1:-1:-1;;;;;1736:14:6;;;;;;-1:-1:-1;1753:37:6;1736:14;;;;;;;;:54;;;;1814:11;;;:34;;;;;;;;;;;;;;;;;:15;;;;:34;;;;;;;;;;;:15;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;1814:34:6;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1814:34:6;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1814:34:6;1800:11;:48;1863:35;;;;;;;;-1:-1:-1;;;;;1863:35:6;;;;;;;;;1814:34;1863:35;;;1627:278;;:::o", "source": "pragma solidity ^0.4.24;\nimport \"./StandardToken.sol\";\nimport \"./Proxy.sol\";\n\ncontract OutcomeTokenData {\n\n /*\n * Events\n */\n event Issuance(address indexed owner, uint amount);\n event Revocation(address indexed owner, uint amount);\n\n /*\n * Storage\n */\n address public eventContract;\n /*\n * Modifiers\n */\n modifier isEventContract () {\n // Only event contract is allowed to proceed\n require(msg.sender == eventContract, \"contract not event Contract\");\n _;\n }\n}\n\n\n/// @title Outcome token contract - Issuing and revoking outcome tokens\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract OutcomeToken is StandardToken, OutcomeTokenData {\n using Math for *;\n\n\n /// @dev Constructor sets events contract address\n constructor(string _symbol, string _name)\n public\n {\n name = _name;\n symbol = _symbol;\n eventContract = msg.sender;\n }\n\n /*\n * Public functions\n */\n /// @dev Events contract issues new tokens for address. Returns success\n /// @param _for Address of receiver\n /// @param outcomeTokenCount Number of tokens to issue\n function issue(address _for, uint outcomeTokenCount)\n public\n isEventContract()\n {\n balances[_for] = balances[_for].add(outcomeTokenCount);\n totalTokens = totalTokens.add(outcomeTokenCount);\n emit Issuance(_for, outcomeTokenCount);\n }\n\n /// @dev Events contract revokes tokens for address. Returns success\n /// @param _for Address of token holder\n /// @param outcomeTokenCount Number of tokens to revoke\n function revoke(address _for, uint outcomeTokenCount)\n public\n isEventContract()\n {\n balances[_for] = balances[_for].sub(outcomeTokenCount);\n totalTokens = totalTokens.sub(outcomeTokenCount);\n emit Revocation(_for, outcomeTokenCount);\n }\n}", "sourcePath": "/home/josojo/reality/tokenized-events/contracts/OutcomeToken.sol", "ast": { "absolutePath": "/home/josojo/reality/tokenized-events/contracts/OutcomeToken.sol", "exportedSymbols": { "OutcomeToken": [ 1700 ], "OutcomeTokenData": [ 1606 ] }, "id": 1701, "nodeType": "SourceUnit", "nodes": [ { "id": 1577, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "absolutePath": "/home/josojo/reality/tokenized-events/contracts/StandardToken.sol", "file": "./StandardToken.sol", "id": 1578, "nodeType": "ImportDirective", "scope": 1701, "sourceUnit": 2635, "src": "25:29:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/josojo/reality/tokenized-events/contracts/Proxy.sol", "file": "./Proxy.sol", "id": 1579, "nodeType": "ImportDirective", "scope": 1701, "sourceUnit": 1734, "src": "55:21:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 1606, "linearizedBaseContracts": [ 1606 ], "name": "OutcomeTokenData", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1585, "name": "Issuance", "nodeType": "EventDefinition", "parameters": { "id": 1584, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1581, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1585, "src": "156:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1580, "name": "address", "nodeType": "ElementaryTypeName", "src": "156:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1583, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 1585, "src": "179:11:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1582, "name": "uint", "nodeType": "ElementaryTypeName", "src": "179:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "155:36:6" }, "src": "141:51:6" }, { "anonymous": false, "documentation": null, "id": 1591, "name": "Revocation", "nodeType": "EventDefinition", "parameters": { "id": 1590, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1587, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1591, "src": "214:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1586, "name": "address", "nodeType": "ElementaryTypeName", "src": "214:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1589, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 1591, "src": "237:11:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1588, "name": "uint", "nodeType": "ElementaryTypeName", "src": "237:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "213:36:6" }, "src": "197:53:6" }, { "constant": false, "id": 1593, "name": "eventContract", "nodeType": "VariableDeclaration", "scope": 1606, "src": "287:28:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1592, "name": "address", "nodeType": "ElementaryTypeName", "src": "287:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "body": { "id": 1604, "nodeType": "Block", "src": "382:148:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1599, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 1596, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "453:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 1597, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "453:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 1598, "name": "eventContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1593, "src": "467:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "453:27:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "636f6e7472616374206e6f74206576656e7420436f6e7472616374", "id": 1600, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "482:29:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_d9a60572984bd05063fa534198656d40f952d96104a72c2a322cd12660129d46", "typeString": "literal_string \"contract not event Contract\"" }, "value": "contract not event Contract" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_d9a60572984bd05063fa534198656d40f952d96104a72c2a322cd12660129d46", "typeString": "literal_string \"contract not event Contract\"" } ], "id": 1595, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8526, 8527 ], "referencedDeclaration": 8527, "src": "445:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 1601, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "445:67:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1602, "nodeType": "ExpressionStatement", "src": "445:67:6" }, { "id": 1603, "nodeType": "PlaceholderStatement", "src": "522:1:6" } ] }, "documentation": null, "id": 1605, "name": "isEventContract", "nodeType": "ModifierDefinition", "parameters": { "id": 1594, "nodeType": "ParameterList", "parameters": [], "src": "379:2:6" }, "src": "354:176:6", "visibility": "internal" } ], "scope": 1701, "src": "78:454:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 1607, "name": "StandardToken", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 2634, "src": "679:13:6", "typeDescriptions": { "typeIdentifier": "t_contract$_StandardToken_$2634", "typeString": "contract StandardToken" } }, "id": 1608, "nodeType": "InheritanceSpecifier", "src": "679:13:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 1609, "name": "OutcomeTokenData", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 1606, "src": "694:16:6", "typeDescriptions": { "typeIdentifier": "t_contract$_OutcomeTokenData_$1606", "typeString": "contract OutcomeTokenData" } }, "id": 1610, "nodeType": "InheritanceSpecifier", "src": "694:16:6" } ], "contractDependencies": [ 1606, 2442, 2634, 2703 ], "contractKind": "contract", "documentation": "@title Outcome token contract - Issuing and revoking outcome tokens\n @author Stefan George - <stefan@gnosis.pm>", "fullyImplemented": true, "id": 1700, "linearizedBaseContracts": [ 1700, 1606, 2634, 2442, 2703 ], "name": "OutcomeToken", "nodeType": "ContractDefinition", "nodes": [ { "id": 1612, "libraryName": { "contractScope": null, "id": 1611, "name": "Math", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3954, "src": "723:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Math_$3954", "typeString": "library Math" } }, "nodeType": "UsingForDirective", "src": "717:17:6", "typeName": null }, { "body": { "id": 1632, "nodeType": "Block", "src": "857:91:6", "statements": [ { "expression": { "argumentTypes": null, "id": 1621, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 1619, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2423, "src": "867:4:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 1620, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1616, "src": "874:5:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "867:12:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 1622, "nodeType": "ExpressionStatement", "src": "867:12:6" }, { "expression": { "argumentTypes": null, "id": 1625, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 1623, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [],