|
|
{
"schemaVersion": "2.0.0",
"contractName": "TestAssetProxyDispatcher",
"compilerOutput": {
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint8"
}
],
"name": "assetProxies",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "assetProxyId",
"type": "uint8"
},
{
"name": "newAssetProxy",
"type": "address"
},
{
"name": "oldAssetProxy",
"type": "address"
}
],
"name": "registerAssetProxy",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "assetMetadata",
"type": "bytes"
},
{
"name": "from",
"type": "address"
},
{
"name": "to",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"name": "publicDispatchTransferFrom",
"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": "assetProxyId",
"type": "uint8"
}
],
"name": "getAssetProxy",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "id",
"type": "uint8"
},
{
"indexed": false,
"name": "newAssetProxy",
"type": "address"
},
{
"indexed": false,
"name": "oldAssetProxy",
"type": "address"
}
],
"name": "AssetProxySet",
"type": "event"
}
],
"evm": {
"bytecode": {
"linkReferences": {},
"object": "0x608060405260008054600160a060020a0319163317905561094e806100256000396000f30060806040526004361061005e5763ffffffff60e060020a6000350416633807716481146100635780635c78d0c714610099578063889b6d8d146100bb5780638da5cb5b146100db57806392c1421e146100fd578063f2fde38b1461011d575b600080fd5b34801561006f57600080fd5b5061008361007e36600461067c565b61013d565b604051610090919061080a565b60405180910390f35b3480156100a557600080fd5b506100b96100b43660046106b8565b610158565b005b3480156100c757600080fd5b506100b96100d6366004610605565b6103a5565b3480156100e757600080fd5b506100f06103b7565b60405161009091906107b3565b34801561010957600080fd5b506100f061011836600461067c565b6103c6565b34801561012957600080fd5b506100b96101383660046105df565b6103e4565b600160205260009081526040902054600160a060020a031681565b600080548190600160a060020a031633146101915760405160e560020a62461bcd02815260040161018890610829565b60405180910390fd5b60ff8516600090815260016020908152604091829020548251606081018452603781527f4f6c642061737365742070726f787920646f6573206e6f74206d61746368206192810192909252604960020a7639b9b2ba10383937bc3c9030ba1033b4bb32b71034b217029282019290925290600160a060020a038581169116146102305760405160e560020a62461bcd0281526004016101889190610818565b50839150600160a060020a038216156103375781600160a060020a031663ae25532e6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561028157600080fd5b505af1158015610295573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102b9919081019061069a565b90508460ff168160ff1614606060405190810160405280602b81526020017f4e65772061737365742070726f787920696420646f6573206e6f74206d617463815260200160a960020a6a341033b4bb32b71034b217028152509015156103355760405160e560020a62461bcd0281526004016101889190610818565b505b60ff8516600090815260016020526040908190208054600160a060020a031916600160a060020a038516179055517f27ef5f484e50f2daf7c2d82c60fe4ce409009541176eb64095beac369db1d2609061039690879087908790610839565b60405180910390a15050505050565b6103b18484848461043f565b50505050565b600054600160a060020a031681565b60ff16600090815260016020526040902054600160a060020a031690565b600054600160a060020a031633146104115760405160e560020a62461bcd02815260040161018890610829565b600160a060020a0381161561043c5760008054600160a060020a031916600160a060020a0383161790555b50565b600080600083111561054c57855160408051808201909152601e81527f4c656e677468206d7573742062652067726561746572207468616e20302e0000602082015290600111156104a65760405160e560020a62461bcd0281526004016101889190610818565b508560008151811015156104b657fe5b6020910181015160f860020a9081900481020460ff81166000908152600190925260409182902054915160e260020a632a179679028152909350600160a060020a039091169150819063a85e59e4906105199089908990899089906004016107c7565b600060405180830381600087803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b505050505b505050505050565b600061056082356108b2565b9392505050565b6000601f8201831361057857600080fd5b813561058b61058682610887565b610861565b915080825260208301602083018583830111156105a757600080fd5b6105b28382846108d2565b50505092915050565b600061056082356108be565b600061056082356108c1565b600061056082516108c1565b6000602082840312156105f157600080fd5b60006105fd8484610554565b949350505050565b6000806000806080858703121561061b57600080fd5b84356001604060020a0381111561063157600080fd5b61063d87828801610567565b945050602061064e87828801610554565b935050604061065f87828801610554565b9250506060610670878288016105bb565b91505092959194509250565b60006020828403121561068e57600080fd5b60006105fd84846105c7565b6000602082840312156106ac57600080fd5b60006105fd84846105d3565b6000806000606084860312156106cd57600080fd5b60006106d986866105c7565b93505060206106ea86828701610554565b92505060406106fb86828701610554565b9150509250925092565b61070e816108b2565b82525050565b600061071f826108ae565b8084526107338160208601602086016108de565b61073c8161090a565b9093016020019392505050565b61070e816108c7565b603381527f4f6e6c7920636f6e7472616374206f776e657220697320616c6c6f77656420746020820152606960020a72379031b0b636103a3434b99036b2ba3437b21702604082015260600190565b61070e816108be565b61070e816108c1565b602081016107c18284610705565b92915050565b608080825281016107d88187610714565b90506107e76020830186610705565b6107f46040830185610705565b61080160608301846107a1565b95945050505050565b602081016107c18284610749565b602080825281016105608184610714565b602080825281016107c181610752565b6060810161084782866107aa565b6108546020830185610705565b6105fd6040830184610705565b6040518181016001604060020a038111828210171561087f57600080fd5b604052919050565b60006001604060020a0382111561089d57600080fd5b506020601f91909101601f19160190565b5190565b600160a060020a031690565b90565b60ff1690565b60006107c1826108b2565b82818337506000910152565b60005b838110156108f95781810151838201526020016108e1565b838111156103b15750506000910152565b601f01601f1916905600a265627a7a7230582039b2e5cfe7c928431638beffb47e2d9d1c92d8c563e379570e0d19c1bc158cbe6c6578706572696d656e74616cf50037",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB NOT AND CALLER OR SWAP1 SSTORE PUSH2 0x94E DUP1 PUSH2 0x25 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x5E JUMPI PUSH4 0xFFFFFFFF PUSH1 0xE0 PUSH1 0x2 EXP PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x38077164 DUP2 EQ PUSH2 0x63 JUMPI DUP1 PUSH4 0x5C78D0C7 EQ PUSH2 0x99 JUMPI DUP1 PUSH4 0x889B6D8D EQ PUSH2 0xBB JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xDB JUMPI DUP1 PUSH4 0x92C1421E EQ PUSH2 0xFD JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x11D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x6F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x83 PUSH2 0x7E CALLDATASIZE PUSH1 0x4 PUSH2 0x67C JUMP JUMPDEST PUSH2 0x13D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x90 SWAP2 SWAP1 PUSH2 0x80A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0xB4 CALLDATASIZE PUSH1 0x4 PUSH2 0x6B8 JUMP JUMPDEST PUSH2 0x158 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xC7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0xD6 CALLDATASIZE PUSH1 0x4 PUSH2 0x605 JUMP JUMPDEST PUSH2 0x3A5 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xE7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xF0 PUSH2 0x3B7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x90 SWAP2 SWAP1 PUSH2 0x7B3 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x109 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xF0 PUSH2 0x118 CALLDATASIZE PUSH1 0x4 PUSH2 0x67C JUMP JUMPDEST PUSH2 0x3C6 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x129 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0x138 CALLDATASIZE PUSH1 0x4 PUSH2 0x5DF JUMP JUMPDEST PUSH2 0x3E4 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x191 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP1 PUSH2 0x829 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0xFF DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD PUSH1 0x60 DUP2 ADD DUP5 MSTORE PUSH1 0x37 DUP2 MSTORE PUSH32 0x4F6C642061737365742070726F787920646F6573206E6F74206D617463682061 SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x49 PUSH1 0x2 EXP PUSH23 0x39B9B2BA10383937BC3C9030BA1033B4BB32B71034B217 MUL SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 DUP2 AND SWAP2 AND EQ PUSH2 0x230 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP DUP4 SWAP2 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP3 AND ISZERO PUSH2 0x337 JUMPI DUP2 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND PUSH4 0xAE25532E PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 PUSH1 0x2 EXP MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x281 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x295 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP PUSH2 0x2B9 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x69A JUMP JUMPDEST SWAP1 POP DUP5 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH1 0x60 PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x2B DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x4E65772061737365742070726F787920696420646F6573206E6F74206D617463 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0xA9 PUSH1 0x2 EXP PUSH11 0x341033B4BB32B71034B217 MUL DUP2 MSTORE POP SWAP1 ISZERO ISZERO PUSH2 0x335 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP JUMPDEST PUSH1 0xFF DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 AND OR SWAP1 SSTORE MLOAD PUSH32 0x27EF5F484E50F2DAF7C2D82C60FE4CE409009541176EB64095BEAC369DB1D260 SWAP1 PUSH2 0x396 SWAP1 DUP8 SWAP1 DUP8 SWAP1 DUP8 SWAP1 PUSH2 0x839 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x3B1 DUP5 DUP5 DUP5 DUP5 PUSH2 0x43F JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND DUP2 JUMP JUMPDEST PUSH1 0xFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x411 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP1 PUSH2 0x829 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP2 AND ISZERO PUSH2 0x43C JUMPI PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP4 AND OR SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP4 GT ISZERO PUSH2 0x54C JUMPI DUP6 MLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x1E DUP2 MSTORE PUSH32 0x4C656E677468206D7573742062652067726561746572207468616E20302E0000 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 GT ISZERO PUSH2 0x4A6 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP DUP6 PUSH1 0x0 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x4B6 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP2 ADD DUP2 ADD MLOAD PUSH1 0xF8 PUSH1 0x2 EXP SWAP1 DUP2 SWAP1 DIV DUP2 MUL DIV PUSH1 0xFF DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 SWAP1 SWAP3 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD SWAP2 MLOAD PUSH1 0xE2 PUSH1 0x2 EXP PUSH4 0x2A179679 MUL DUP2 MSTORE SWAP1 SWAP4 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 SWAP2 AND SWAP2 POP DUP2 SWAP1 PUSH4 0xA85E59E4 SWAP1 PUSH2 0x519 SWAP1 DUP10 SWAP1 DUP10 SWAP1 DUP10 SWAP1 DUP10 SWAP1 PUSH1 0x4 ADD PUSH2 0x7C7 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x533 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x547 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8B2 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F DUP3 ADD DUP4 SGT PUSH2 0x578 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x58B PUSH2 0x586 DUP3 PUSH2 0x887 JUMP JUMPDEST PUSH2 0x861 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x5A7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x5B2 DUP4 DUP3 DUP5 PUSH2 0x8D2 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8BE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 MLOAD PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5F1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x554 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x61B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP2 GT ISZERO PUSH2 0x631 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x63D DUP8 DUP3 DUP9 ADD PUSH2 0x567 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x20 PUSH2 0x64E DUP8 DUP3 DUP9 ADD PUSH2 0x554 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x40 PUSH2 0x65F DUP8 DUP3 DUP9 ADD PUSH2 0x554 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x60 PUSH2 0x670 DUP8 DUP3 DUP9 ADD PUSH2 0x5BB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x68E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x5C7 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6AC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x5D3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x6CD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x6D9 DUP7 DUP7 PUSH2 0x5C7 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x6EA DUP7 DUP3 DUP8 ADD PUSH2 0x554 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x6FB DUP7 DUP3 DUP8 ADD PUSH2 0x554 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8B2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x71F DUP3 PUSH2 0x8AE JUMP JUMPDEST DUP1 DUP5 MSTORE PUSH2 0x733 DUP2 PUSH1 0x20 DUP7 ADD PUSH1 0x20 DUP7 ADD PUSH2 0x8DE JUMP JUMPDEST PUSH2 0x73C DUP2 PUSH2 0x90A JUMP JUMPDEST SWAP1 SWAP4 ADD PUSH1 0x20 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8C7 JUMP JUMPDEST PUSH1 0x33 DUP2 MSTORE PUSH32 0x4F6E6C7920636F6E7472616374206F776E657220697320616C6C6F7765642074 PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x69 PUSH1 0x2 EXP PUSH19 0x379031B0B636103A3434B99036B2BA3437B217 MUL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8BE JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x7C1 DUP3 DUP5 PUSH2 0x705 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x80 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x7D8 DUP2 DUP8 PUSH2 0x714 JUMP JUMPDEST SWAP1 POP PUSH2 0x7E7 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x7F4 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x801 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x7A1 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x7C1 DUP3 DUP5 PUSH2 0x749 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x560 DUP2 DUP5 PUSH2 0x714 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x7C1 DUP2 PUSH2 0x752 JUMP JUMPDEST PUSH1 0x60 DUP2 ADD PUSH2 0x847 DUP3 DUP7 PUSH2 0x7AA JUMP JUMPDEST PUSH2 0x854 PUSH1 0x20 DUP4 ADD DUP6 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x5FD PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x705 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x87F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP3 GT ISZERO PUSH2 0x89D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST MLOAD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND SWAP1 JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7C1 DUP3 PUSH2 0x8B2 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x8F9 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x8E1 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x3B1 JUMPI POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP STOP LOG2 PUSH6 0x627A7A723058 KECCAK256 CODECOPY 0xb2 0xe5 0xcf 0xe7 0xc9 0x28 NUMBER AND CODESIZE 0xbe SELFDESTRUCT 0xb4 PUSH31 0x2D9D1C92D8C563E379570E0D19C1BC158CBE6C6578706572696D656E74616C 0xf5 STOP CALLDATACOPY ",
"sourceMap": "705:299:6:-;;;363:5:8;:18;;-1:-1:-1;;;;;;363:18:8;371:10;363:18;;;705:299:6;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "0x60806040526004361061005e5763ffffffff60e060020a6000350416633807716481146100635780635c78d0c714610099578063889b6d8d146100bb5780638da5cb5b146100db57806392c1421e146100fd578063f2fde38b1461011d575b600080fd5b34801561006f57600080fd5b5061008361007e36600461067c565b61013d565b604051610090919061080a565b60405180910390f35b3480156100a557600080fd5b506100b96100b43660046106b8565b610158565b005b3480156100c757600080fd5b506100b96100d6366004610605565b6103a5565b3480156100e757600080fd5b506100f06103b7565b60405161009091906107b3565b34801561010957600080fd5b506100f061011836600461067c565b6103c6565b34801561012957600080fd5b506100b96101383660046105df565b6103e4565b600160205260009081526040902054600160a060020a031681565b600080548190600160a060020a031633146101915760405160e560020a62461bcd02815260040161018890610829565b60405180910390fd5b60ff8516600090815260016020908152604091829020548251606081018452603781527f4f6c642061737365742070726f787920646f6573206e6f74206d61746368206192810192909252604960020a7639b9b2ba10383937bc3c9030ba1033b4bb32b71034b217029282019290925290600160a060020a038581169116146102305760405160e560020a62461bcd0281526004016101889190610818565b50839150600160a060020a038216156103375781600160a060020a031663ae25532e6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561028157600080fd5b505af1158015610295573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102b9919081019061069a565b90508460ff168160ff1614606060405190810160405280602b81526020017f4e65772061737365742070726f787920696420646f6573206e6f74206d617463815260200160a960020a6a341033b4bb32b71034b217028152509015156103355760405160e560020a62461bcd0281526004016101889190610818565b505b60ff8516600090815260016020526040908190208054600160a060020a031916600160a060020a038516179055517f27ef5f484e50f2daf7c2d82c60fe4ce409009541176eb64095beac369db1d2609061039690879087908790610839565b60405180910390a15050505050565b6103b18484848461043f565b50505050565b600054600160a060020a031681565b60ff16600090815260016020526040902054600160a060020a031690565b600054600160a060020a031633146104115760405160e560020a62461bcd02815260040161018890610829565b600160a060020a0381161561043c5760008054600160a060020a031916600160a060020a0383161790555b50565b600080600083111561054c57855160408051808201909152601e81527f4c656e677468206d7573742062652067726561746572207468616e20302e0000602082015290600111156104a65760405160e560020a62461bcd0281526004016101889190610818565b508560008151811015156104b657fe5b6020910181015160f860020a9081900481020460ff81166000908152600190925260409182902054915160e260020a632a179679028152909350600160a060020a039091169150819063a85e59e4906105199089908990899089906004016107c7565b600060405180830381600087803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b505050505b505050505050565b600061056082356108b2565b9392505050565b6000601f8201831361057857600080fd5b813561058b61058682610887565b610861565b915080825260208301602083018583830111156105a757600080fd5b6105b28382846108d2565b50505092915050565b600061056082356108be565b600061056082356108c1565b600061056082516108c1565b6000602082840312156105f157600080fd5b60006105fd8484610554565b949350505050565b6000806000806080858703121561061b57600080fd5b84356001604060020a0381111561063157600080fd5b61063d87828801610567565b945050602061064e87828801610554565b935050604061065f87828801610554565b9250506060610670878288016105bb565b91505092959194509250565b60006020828403121561068e57600080fd5b60006105fd84846105c7565b6000602082840312156106ac57600080fd5b60006105fd84846105d3565b6000806000606084860312156106cd57600080fd5b60006106d986866105c7565b93505060206106ea86828701610554565b92505060406106fb86828701610554565b9150509250925092565b61070e816108b2565b82525050565b600061071f826108ae565b8084526107338160208601602086016108de565b61073c8161090a565b9093016020019392505050565b61070e816108c7565b603381527f4f6e6c7920636f6e7472616374206f776e657220697320616c6c6f77656420746020820152606960020a72379031b0b636103a3434b99036b2ba3437b21702604082015260600190565b61070e816108be565b61070e816108c1565b602081016107c18284610705565b92915050565b608080825281016107d88187610714565b90506107e76020830186610705565b6107f46040830185610705565b61080160608301846107a1565b95945050505050565b602081016107c18284610749565b602080825281016105608184610714565b602080825281016107c181610752565b6060810161084782866107aa565b6108546020830185610705565b6105fd6040830184610705565b6040518181016001604060020a038111828210171561087f57600080fd5b604052919050565b60006001604060020a0382111561089d57600080fd5b506020601f91909101601f19160190565b5190565b600160a060020a031690565b90565b60ff1690565b60006107c1826108b2565b82818337506000910152565b60005b838110156108f95781810151838201526020016108e1565b838111156103b15750506000910152565b601f01601f1916905600a265627a7a7230582039b2e5cfe7c928431638beffb47e2d9d1c92d8c563e379570e0d19c1bc158cbe6c6578706572696d656e74616cf50037",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x5E JUMPI PUSH4 0xFFFFFFFF PUSH1 0xE0 PUSH1 0x2 EXP PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x38077164 DUP2 EQ PUSH2 0x63 JUMPI DUP1 PUSH4 0x5C78D0C7 EQ PUSH2 0x99 JUMPI DUP1 PUSH4 0x889B6D8D EQ PUSH2 0xBB JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xDB JUMPI DUP1 PUSH4 0x92C1421E EQ PUSH2 0xFD JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x11D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x6F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x83 PUSH2 0x7E CALLDATASIZE PUSH1 0x4 PUSH2 0x67C JUMP JUMPDEST PUSH2 0x13D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x90 SWAP2 SWAP1 PUSH2 0x80A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xA5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0xB4 CALLDATASIZE PUSH1 0x4 PUSH2 0x6B8 JUMP JUMPDEST PUSH2 0x158 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xC7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0xD6 CALLDATASIZE PUSH1 0x4 PUSH2 0x605 JUMP JUMPDEST PUSH2 0x3A5 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xE7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xF0 PUSH2 0x3B7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x90 SWAP2 SWAP1 PUSH2 0x7B3 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x109 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xF0 PUSH2 0x118 CALLDATASIZE PUSH1 0x4 PUSH2 0x67C JUMP JUMPDEST PUSH2 0x3C6 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x129 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xB9 PUSH2 0x138 CALLDATASIZE PUSH1 0x4 PUSH2 0x5DF JUMP JUMPDEST PUSH2 0x3E4 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x191 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP1 PUSH2 0x829 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0xFF DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD PUSH1 0x60 DUP2 ADD DUP5 MSTORE PUSH1 0x37 DUP2 MSTORE PUSH32 0x4F6C642061737365742070726F787920646F6573206E6F74206D617463682061 SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x49 PUSH1 0x2 EXP PUSH23 0x39B9B2BA10383937BC3C9030BA1033B4BB32B71034B217 MUL SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 DUP2 AND SWAP2 AND EQ PUSH2 0x230 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP DUP4 SWAP2 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP3 AND ISZERO PUSH2 0x337 JUMPI DUP2 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND PUSH4 0xAE25532E PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 PUSH1 0x2 EXP MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x281 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x295 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP PUSH2 0x2B9 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x69A JUMP JUMPDEST SWAP1 POP DUP5 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH1 0x60 PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x2B DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x4E65772061737365742070726F787920696420646F6573206E6F74206D617463 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0xA9 PUSH1 0x2 EXP PUSH11 0x341033B4BB32B71034B217 MUL DUP2 MSTORE POP SWAP1 ISZERO ISZERO PUSH2 0x335 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP JUMPDEST PUSH1 0xFF DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 AND OR SWAP1 SSTORE MLOAD PUSH32 0x27EF5F484E50F2DAF7C2D82C60FE4CE409009541176EB64095BEAC369DB1D260 SWAP1 PUSH2 0x396 SWAP1 DUP8 SWAP1 DUP8 SWAP1 DUP8 SWAP1 PUSH2 0x839 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x3B1 DUP5 DUP5 DUP5 DUP5 PUSH2 0x43F JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND DUP2 JUMP JUMPDEST PUSH1 0xFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x411 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP1 PUSH2 0x829 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP2 AND ISZERO PUSH2 0x43C JUMPI PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP4 AND OR SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP4 GT ISZERO PUSH2 0x54C JUMPI DUP6 MLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x1E DUP2 MSTORE PUSH32 0x4C656E677468206D7573742062652067726561746572207468616E20302E0000 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 GT ISZERO PUSH2 0x4A6 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x188 SWAP2 SWAP1 PUSH2 0x818 JUMP JUMPDEST POP DUP6 PUSH1 0x0 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x4B6 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP2 ADD DUP2 ADD MLOAD PUSH1 0xF8 PUSH1 0x2 EXP SWAP1 DUP2 SWAP1 DIV DUP2 MUL DIV PUSH1 0xFF DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 SWAP1 SWAP3 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD SWAP2 MLOAD PUSH1 0xE2 PUSH1 0x2 EXP PUSH4 0x2A179679 MUL DUP2 MSTORE SWAP1 SWAP4 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 SWAP2 AND SWAP2 POP DUP2 SWAP1 PUSH4 0xA85E59E4 SWAP1 PUSH2 0x519 SWAP1 DUP10 SWAP1 DUP10 SWAP1 DUP10 SWAP1 DUP10 SWAP1 PUSH1 0x4 ADD PUSH2 0x7C7 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x533 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x547 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8B2 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F DUP3 ADD DUP4 SGT PUSH2 0x578 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x58B PUSH2 0x586 DUP3 PUSH2 0x887 JUMP JUMPDEST PUSH2 0x861 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x5A7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x5B2 DUP4 DUP3 DUP5 PUSH2 0x8D2 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8BE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 CALLDATALOAD PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x560 DUP3 MLOAD PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5F1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x554 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x61B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP2 GT ISZERO PUSH2 0x631 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x63D DUP8 DUP3 DUP9 ADD PUSH2 0x567 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x20 PUSH2 0x64E DUP8 DUP3 DUP9 ADD PUSH2 0x554 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x40 PUSH2 0x65F DUP8 DUP3 DUP9 ADD PUSH2 0x554 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x60 PUSH2 0x670 DUP8 DUP3 DUP9 ADD PUSH2 0x5BB JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x68E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x5C7 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6AC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5FD DUP5 DUP5 PUSH2 0x5D3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x6CD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x6D9 DUP7 DUP7 PUSH2 0x5C7 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x6EA DUP7 DUP3 DUP8 ADD PUSH2 0x554 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x6FB DUP7 DUP3 DUP8 ADD PUSH2 0x554 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8B2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x71F DUP3 PUSH2 0x8AE JUMP JUMPDEST DUP1 DUP5 MSTORE PUSH2 0x733 DUP2 PUSH1 0x20 DUP7 ADD PUSH1 0x20 DUP7 ADD PUSH2 0x8DE JUMP JUMPDEST PUSH2 0x73C DUP2 PUSH2 0x90A JUMP JUMPDEST SWAP1 SWAP4 ADD PUSH1 0x20 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8C7 JUMP JUMPDEST PUSH1 0x33 DUP2 MSTORE PUSH32 0x4F6E6C7920636F6E7472616374206F776E657220697320616C6C6F7765642074 PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x69 PUSH1 0x2 EXP PUSH19 0x379031B0B636103A3434B99036B2BA3437B217 MUL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8BE JUMP JUMPDEST PUSH2 0x70E DUP2 PUSH2 0x8C1 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x7C1 DUP3 DUP5 PUSH2 0x705 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x80 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x7D8 DUP2 DUP8 PUSH2 0x714 JUMP JUMPDEST SWAP1 POP PUSH2 0x7E7 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x7F4 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x801 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x7A1 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x7C1 DUP3 DUP5 PUSH2 0x749 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x560 DUP2 DUP5 PUSH2 0x714 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x7C1 DUP2 PUSH2 0x752 JUMP JUMPDEST PUSH1 0x60 DUP2 ADD PUSH2 0x847 DUP3 DUP7 PUSH2 0x7AA JUMP JUMPDEST PUSH2 0x854 PUSH1 0x20 DUP4 ADD DUP6 PUSH2 0x705 JUMP JUMPDEST PUSH2 0x5FD PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x705 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x87F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x40 PUSH1 0x2 EXP SUB DUP3 GT ISZERO PUSH2 0x89D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST MLOAD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND SWAP1 JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7C1 DUP3 PUSH2 0x8B2 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x8F9 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x8E1 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x3B1 JUMPI POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP STOP LOG2 PUSH6 0x627A7A723058 KECCAK256 CODECOPY 0xb2 0xe5 0xcf 0xe7 0xc9 0x28 NUMBER AND CODESIZE 0xbe SELFDESTRUCT 0xb4 PUSH31 0x2D9D1C92D8C563E379570E0D19C1BC158CBE6C6578706572696D656E74616C 0xf5 STOP CALLDATACOPY ",
"sourceMap": "705:299:6:-;;;;;;;;;-1:-1:-1;;;705:299:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;959:50:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;959:50:2;;;;;;;;;;;;;;;;;;;;;;;;;1423:962;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1423:962:2;;;;;;;;;;;774:228:6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;774:228:6;;;;;;;;;292:20:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;292:20:8;;;;;;;;;;;;2575:203:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2575:203:2;;;;;;;;;566:167:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;566:167:8;;;;;;;;;959:50:2;;;;;;;;;;;;-1:-1:-1;;;;;959:50:2;;:::o;1423:962::-;1801:22;460:5:8;;1801:22:2;;-1:-1:-1;;;;;460:5:8;446:10;:19;425:117;;;;-1:-1:-1;;;;;425:117:8;;;;;;;;;;;;;;;;;1715:26:2;;;;;;;:12;:26;;;;;;;;;;1756:24;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1756:24:2;;;;;;;;-1:-1:-1;;;;;1690:52:2;;;1715:26;;1690:52;1669:121;;;;-1:-1:-1;;;;;1669:121:2;;;;;;;;;;-1:-1:-1;1838:13:2;;-1:-1:-1;;;;;;1981:27:2;;;1977:231;;2048:10;-1:-1:-1;;;;;2048:21:2;;:23;;;;;-1:-1:-1;;;2048:23:2;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2048:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2048:23:2;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;2048:23:2;;;;;;;;;2024:47;;2129:12;2110:31;;:15;:31;;;2159:24;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2159:24:2;;;2085:112;;;;;;;-1:-1:-1;;;;;2085:112:2;;;;;;;;;;;1977:231;2267:26;;;;;;;:12;:26;;;;;;;:39;;-1:-1:-1;;;;;;2267:39:2;-1:-1:-1;;;;;2267:39:2;;;;;2321:57;;;;;2267:26;;2349:13;;2364;;2321:57;;;;;;;;;;1423:962;;;;;:::o;774:228:6:-;942:53;963:13;978:4;984:2;988:6;942:20;:53::i;:::-;774:228;;;;:::o;292:20:8:-;;;-1:-1:-1;;;;;292:20:8;;:::o;2575:203:2:-;2717:26;;2665:7;2717:26;;;:12;:26;;;;;;-1:-1:-1;;;;;2717:26:2;;2575:203::o;566:167:8:-;460:5;;-1:-1:-1;;;;;460:5:8;446:10;:19;425:117;;;;-1:-1:-1;;;;;425:117:8;;;;;;;;;-1:-1:-1;;;;;662:22:8;;;658:69;;700:5;:16;;-1:-1:-1;;;;;;700:16:8;-1:-1:-1;;;;;700:16:8;;;;;658:69;566:167;:::o;3114:660:2:-;3519:18;3577:22;3349:1;3340:6;:10;3336:432;;;3425:20;;3468:23;;;;;;;;;;;;;;;;;;3449:1;-1:-1:-1;3425:25:2;3400:105;;;;-1:-1:-1;;;;;3400:105:2;;;;;;;;;;;3546:13;3560:1;3546:16;;;;;;;;;;;;;;;;-1:-1:-1;;;3546:16:2;;;;;;3540:23;3602:26;;;;;;;:12;:26;;;;;;;;;3701:56;;-1:-1:-1;;;;;3701:56:2;;3540:23;;-1:-1:-1;;;;;;3602:26:2;;;;-1:-1:-1;3602:26:2;;3701:23;;:56;;3725:13;;3740:4;;3746:2;;3750:6;;3701:56;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3701:56:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3701:56:2;;;;3336:432;3114:660;;;;;;:::o;5:118:-1:-;;72:46;110:6;97:20;72:46;;;63:55;57:66;-1:-1;;;57:66;131:440;;225:4;213:17;;209:27;-1:-1;199:2;;250:1;247;240:12;199:2;287:6;274:20;309:64;324:48;365:6;324:48;;;309:64;;;300:73;;393:6;386:5;379:21;429:4;421:6;417:17;462:4;455:5;451:16;497:3;488:6;483:3;479:16;476:25;473:2;;;514:1;511;504:12;473:2;524:41;558:6;553:3;548;524:41;;;192:379;;;;;;;;579:118;;646:46;684:6;671:20;646:46;;704:114;;769:44;805:6;792:20;769:44;;825:118;;901:37;930:6;924:13;901:37;;950:241;;1054:2;1042:9;1033:7;1029:23;1025:32;1022:2;;;1070:1;1067;1060:12;1022:2;1105:1;1122:53;1167:7;1147:9;1122:53;;;1112:63;1016:175;-1:-1;;;;1016:175;1198:721;;;;;1362:3;1350:9;1341:7;1337:23;1333:33;1330:2;;;1379:1;1376;1369:12;1330:2;1414:31;;-1:-1;;;;;1454:30;;1451:2;;;1497:1;1494;1487:12;1451:2;1517:62;1571:7;1562:6;1551:9;1547:22;1517:62;;;1507:72;;1393:192;1616:2;1634:53;1679:7;1670:6;1659:9;1655:22;1634:53;;;1624:63;;1595:98;1724:2;1742:53;1787:7;1778:6;1767:9;1763:22;1742:53;;;1732:63;;1703:98;1832:2;1850:53;1895:7;1886:6;1875:9;1871:22;1850:53;;;1840:63;;1811:98;1324:595;;;;;;;;1926:237;;2028:2;2016:9;2007:7;2003:23;1999:32;1996:2;;;2044:1;2041;2034:12;1996:2;2079:1;2096:51;2139:7;2119:9;2096:51;;2170:259;;2283:2;2271:9;2262:7;2258:23;2254:32;2251:2;;;2299:1;2296;2289:12;2251:2;2334:1;2351:62;2405:7;2385:9;2351:62;;2436:487;;;;2572:2;2560:9;2551:7;2547:23;2543:32;2540:2;;;2588:1;2585;2578:12;2540:2;2623:1;2640:51;2683:7;2663:9;2640:51;;;2630:61;;2602:95;2728:2;2746:53;2791:7;2782:6;2771:9;2767:22;2746:53;;;2736:63;;2707:98;2836:2;2854:53;2899:7;2890:6;2879:9;2875:22;2854:53;;;2844:63;;2815:98;2534:389;;;;;;2930:110;3003:31;3028:5;3003:31;;;2998:3;2991:44;2985:55;;;3047:297;;3147:38;3179:5;3147:38;;;3202:6;3197:3;3190:19;3214:63;3270:6;3263:4;3258:3;3254:14;3247:4;3240:5;3236:16;3214:63;;;3309:29;3331:6;3309:29;;;3289:50;;;3302:4;3289:50;;3127:217;-1:-1;;;3127:217;3351:154;3443:56;3493:5;3443:56;;3812:397;3967:2;3955:15;;4004:66;3999:2;3990:12;;3983:88;-1:-1;;;;;4100:2;4091:12;;4084:88;4200:2;4191:12;;3948:261;4217:110;4290:31;4315:5;4290:31;;4334:104;4403:29;4426:5;4403:29;;4445:193;4553:2;4538:18;;4567:61;4542:9;4601:6;4567:61;;;4524:114;;;;;4645:581;4855:3;4870:47;;;4840:19;;4931:66;4840:19;4983:6;4931:66;;;4923:74;;5008:62;5066:2;5055:9;5051:18;5042:6;5008:62;;;5081;5139:2;5128:9;5124:18;5115:6;5081:62;;;5154;5212:2;5201:9;5197:18;5188:6;5154:62;;;4826:400;;;;;;;;5233:231;5360:2;5345:18;;5374:80;5349:9;5427:6;5374:80;;5471:273;5595:2;5609:47;;;5580:18;;5670:64;5580:18;5720:6;5670:64;;5751:387;5932:2;5946:47;;;5917:18;;6007:121;5917:18;6007:121;;6145:387;6305:2;6290:18;;6319:57;6294:9;6349:6;6319:57;;;6387:62;6445:2;6434:9;6430:18;6421:6;6387:62;;;6460;6518:2;6507:9;6503:18;6494:6;6460:62;;6539:256;6601:2;6595:9;6627:17;;;-1:-1;;;;;6687:34;;6723:22;;;6684:62;6681:2;;;6759:1;6756;6749:12;6681:2;6775;6768:22;6579:216;;-1:-1;6579:216;6802:258;;-1:-1;;;;;6937:6;6934:30;6931:2;;;6977:1;6974;6967:12;6931:2;-1:-1;7050:4;7021;6998:17;;;;-1:-1;;6994:33;7040:15;;6868:192;7067:91;7141:12;;7125:33;7260:128;-1:-1;;;;;7329:54;;7312:76;7395:79;7464:5;7447:27;7481:88;7559:4;7548:16;;7531:38;7892:134;;7990:31;8015:5;7990:31;;8034:145;8115:6;8110:3;8105;8092:30;-1:-1;8171:1;8153:16;;8146:27;8085:94;8188:268;8253:1;8260:101;8274:6;8271:1;8268:13;8260:101;;;8341:11;;;8335:18;8322:11;;;8315:39;8296:2;8289:10;8260:101;;;8376:6;8373:1;8370:13;8367:2;;;-1:-1;;8441:1;8423:16;;8416:27;8237:219;8464:97;8552:2;8532:14;-1:-1;;8528:28;;8512:49"
}
}
},
"sources": {
"current/protocol/AssetProxy/interfaces/IAssetProxy.sol": {
"id": 0
},
"current/protocol/AssetProxy/interfaces/IAuthorizable.sol": {
"id": 1
},
"current/protocol/Exchange/MixinAssetProxyDispatcher.sol": {
"id": 2
},
"current/protocol/Exchange/interfaces/IAssetProxyDispatcher.sol": {
"id": 3
},
"current/protocol/Exchange/libs/LibExchangeErrors.sol": {
"id": 4
},
"current/protocol/Exchange/mixins/MAssetProxyDispatcher.sol": {
"id": 5
},
"current/test/TestAssetProxyDispatcher/TestAssetProxyDispatcher.sol": {
"id": 6
},
"current/utils/Ownable/IOwnable.sol": {
"id": 7
},
"current/utils/Ownable/Ownable.sol": {
"id": 8
}
},
"sourceCodes": {
"current/protocol/AssetProxy/interfaces/IAssetProxy.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"./IAuthorizable.sol\";\n\ncontract IAssetProxy is\n IAuthorizable\n{\n\n /// @dev Transfers assets. Either succeeds or throws.\n /// @param assetMetadata Byte array encoded for the respective asset proxy.\n /// @param from Address to transfer asset from.\n /// @param to Address to transfer asset to.\n /// @param amount Amount of asset to transfer.\n function transferFrom(\n bytes assetMetadata,\n address from,\n address to,\n uint256 amount)\n external;\n \n /// @dev Makes multiple transfers of assets. Either succeeds or throws.\n /// @param assetMetadata Array of byte arrays encoded for the respective asset proxy.\n /// @param from Array of addresses to transfer assets from.\n /// @param to Array of addresses to transfer assets to.\n /// @param amounts Array of amounts of assets to transfer.\n function batchTransferFrom(\n bytes[] memory assetMetadata,\n address[] memory from,\n address[] memory to,\n uint256[] memory amounts)\n public;\n\n /// @dev Gets the proxy id associated with the proxy address.\n /// @return Proxy id.\n function getProxyId()\n external\n view\n returns (uint8);\n}\n\n",
"current/protocol/AssetProxy/interfaces/IAuthorizable.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"../../../utils/Ownable/IOwnable.sol\";\n\ncontract IAuthorizable is\n IOwnable\n{\n\n /// @dev Gets all authorized addresses.\n /// @return Array of authorized addresses.\n function getAuthorizedAddresses()\n external\n view\n returns (address[]);\n\n /// @dev Authorizes an address.\n /// @param target Address to authorize.\n function addAuthorizedAddress(address target)\n external;\n\n /// @dev Removes authorizion of an address.\n /// @param target Address to remove authorization from.\n function removeAuthorizedAddress(address target)\n external;\n\n /// @dev Removes authorizion of an address.\n /// @param target Address to remove authorization from.\n /// @param index Index of target in authorities array.\n function removeAuthorizedAddressAtIndex(address target, uint256 index)\n external;\n}\n",
"current/protocol/Exchange/MixinAssetProxyDispatcher.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\n\nimport \"../../utils/Ownable/Ownable.sol\";\nimport \"../AssetProxy/interfaces/IAssetProxy.sol\";\nimport \"./libs/LibExchangeErrors.sol\";\nimport \"./mixins/MAssetProxyDispatcher.sol\";\n\ncontract MixinAssetProxyDispatcher is\n LibExchangeErrors,\n Ownable,\n MAssetProxyDispatcher\n{\n // Mapping from Asset Proxy Id's to their respective Asset Proxy\n mapping (uint8 => IAssetProxy) public assetProxies;\n\n /// @dev Registers an asset proxy to an asset proxy id.\n /// An id can only be assigned to a single proxy at a given time.\n /// @param assetProxyId Id to register`newAssetProxy` under.\n /// @param newAssetProxy Address of new asset proxy to register, or 0x0 to unset assetProxyId.\n /// @param oldAssetProxy Existing asset proxy to overwrite, or 0x0 if assetProxyId is currently unused.\n function registerAssetProxy(\n uint8 assetProxyId,\n address newAssetProxy,\n address oldAssetProxy)\n external\n onlyOwner\n {\n // Ensure the existing asset proxy is not unintentionally overwritten\n require(\n oldAssetProxy == address(assetProxies[assetProxyId]),\n OLD_ASSET_PROXY_MISMATCH\n );\n\n IAssetProxy assetProxy = IAssetProxy(newAssetProxy);\n\n // Ensure that the id of newAssetProxy matches the passed in assetProxyId, unless it is being reset to 0.\n if (newAssetProxy != address(0)) {\n uint8 newAssetProxyId = assetProxy.getProxyId();\n require(\n newAssetProxyId == assetProxyId,\n NEW_ASSET_PROXY_MISMATCH\n );\n }\n\n // Add asset proxy and log registration.\n assetProxies[assetProxyId] = assetProxy;\n emit AssetProxySet(assetProxyId, newAssetProxy, oldAssetProxy);\n }\n\n /// @dev Gets an asset proxy.\n /// @param assetProxyId Id of the asset proxy.\n /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered.\n function getAssetProxy(uint8 assetProxyId)\n external\n view\n returns (address)\n {\n address assetProxy = address(assetProxies[assetProxyId]);\n return assetProxy;\n }\n\n /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws.\n /// @param assetMetadata Byte array encoded for the respective asset proxy.\n /// @param from Address to transfer token from.\n /// @param to Address to transfer token to.\n /// @param amount Amount of token to transfer.\n function dispatchTransferFrom(\n bytes memory assetMetadata,\n address from,\n address to,\n uint256 amount)\n internal\n {\n // Do nothing if no amount should be transferred.\n if (amount > 0) {\n // Lookup asset proxy\n require(\n assetMetadata.length >= 1,\n GT_ZERO_LENGTH_REQUIRED\n );\n uint8 assetProxyId = uint8(assetMetadata[0]);\n IAssetProxy assetProxy = assetProxies[assetProxyId];\n\n // transferFrom will either succeed or throw.\n assetProxy.transferFrom(assetMetadata, from, to, amount);\n }\n }\n}\n",
"current/protocol/Exchange/interfaces/IAssetProxyDispatcher.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\n\ncontract IAssetProxyDispatcher {\n\n /// @dev Registers an asset proxy to an asset proxy id.\n /// An id can only be assigned to a single proxy at a given time.\n /// @param assetProxyId Id to register`newAssetProxy` under.\n /// @param newAssetProxy Address of new asset proxy to register, or 0x0 to unset assetProxyId.\n /// @param oldAssetProxy Existing asset proxy to overwrite, or 0x0 if assetProxyId is currently unused.\n function registerAssetProxy(\n uint8 assetProxyId,\n address newAssetProxy,\n address oldAssetProxy)\n external;\n\n /// @dev Gets an asset proxy.\n /// @param assetProxyId Id of the asset proxy.\n /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered.\n function getAssetProxy(uint8 assetProxyId)\n external\n view\n returns (address);\n}\n",
"current/protocol/Exchange/libs/LibExchangeErrors.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\n\ncontract LibExchangeErrors {\n\n // Core revert reasons\n string constant GT_ZERO_AMOUNT_REQUIRED = \"Amount must be greater than 0.\";\n string constant SIGNATURE_VALIDATION_FAILED = \"Signature validation failed.\";\n string constant INVALID_SENDER = \"Invalid `msg.sender`.\";\n string constant INVALID_CONTEXT = \"Function called in an invalid context.\";\n string constant INVALID_NEW_MAKER_EPOCH = \"Specified salt must be greater than or equal to existing makerEpoch.\";\n\n // Order revert reasons\n string constant INVALID_ORDER_TAKER_ASSET_AMOUNT = \"Invalid order taker asset amount: expected a non-zero value.\";\n string constant INVALID_ORDER_MAKER_ASSET_AMOUNT = \"Invalid order maker asset amount: expected a non-zero value.\";\n\n // Transaction revert reasons\n string constant DUPLICATE_TRANSACTION_HASH = \"Transaction has already been executed.\";\n string constant TRANSACTION_EXECUTION_FAILED = \"Transaction execution failed.\";\n\n // Wrapper revert reasons\n string constant COMPLETE_FILL_FAILED = \"Desired fill amount could not be completely filled.\";\n string constant ASSET_DATA_MISMATCH = \"Asset data must be the same for each order.\";\n\n // Asset proxy dispatcher revert reasons\n string constant GT_ZERO_LENGTH_REQUIRED = \"Length must be greater than 0.\";\n string constant OLD_ASSET_PROXY_MISMATCH = \"Old asset proxy does not match asset proxy at given id.\";\n string constant NEW_ASSET_PROXY_MISMATCH = \"New asset proxy id does not match given id.\";\n\n // Signature validator revert reasons\n string constant INVALID_SIGNATURE_LENGTH = \"Invalid signature length.\";\n string constant ILLEGAL_SIGNATURE_TYPE = \"Illegal signature type.\";\n string constant UNSUPPORTED_SIGNATURE_TYPE = \"Unsupported signature type.\";\n\n // Order matching revert reasons\n string constant ASSET_MISMATCH_MAKER_TAKER = \"Left order maker asset is different from right order taker asset.\";\n string constant ASSET_MISMATCH_TAKER_MAKER = \"Left order taker asset is different from right order maker asset.\";\n string constant NEGATIVE_SPREAD = \"Matched orders must have a positive spread.\";\n string constant MISCALCULATED_TRANSFER_AMOUNTS = \"A miscalculation occurred: the left maker would receive more than the right maker would spend.\";\n string constant ROUNDING_ERROR_TRANSFER_AMOUNTS = \"A rounding error occurred when calculating transfer amounts for matched orders.\";\n string constant FAILED_TO_CALCULATE_FILL_RESULTS_FOR_LEFT_ORDER = \"Failed to calculate fill results for left order.\";\n string constant FAILED_TO_CALCULATE_FILL_RESULTS_FOR_RIGHT_ORDER = \"Failed to calculate fill results for right order.\";\n}\n",
"current/protocol/Exchange/mixins/MAssetProxyDispatcher.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"../interfaces/IAssetProxyDispatcher.sol\";\n\ncontract MAssetProxyDispatcher is\n IAssetProxyDispatcher\n{\n\n // Logs registration of new asset proxy\n event AssetProxySet(\n uint8 id,\n address newAssetProxy,\n address oldAssetProxy\n );\n\n /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws.\n /// @param assetMetadata Byte array encoded for the respective asset proxy.\n /// @param from Address to transfer token from.\n /// @param to Address to transfer token to.\n /// @param amount Amount of token to transfer.\n function dispatchTransferFrom(\n bytes memory assetMetadata,\n address from,\n address to,\n uint256 amount)\n internal;\n}\n",
"current/test/TestAssetProxyDispatcher/TestAssetProxyDispatcher.sol": "/*\n\n Copyright 2018 ZeroEx Intl.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport \"../../protocol/Exchange/MixinAssetProxyDispatcher.sol\";\n\ncontract TestAssetProxyDispatcher is MixinAssetProxyDispatcher {\n function publicDispatchTransferFrom(\n bytes memory assetMetadata,\n address from,\n address to,\n uint256 amount)\n public\n {\n dispatchTransferFrom(assetMetadata, from, to, amount);\n }\n}\n",
"current/utils/Ownable/IOwnable.sol": "pragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\n/*\n * Ownable\n *\n * Base contract with an owner.\n * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.\n */\n\ncontract IOwnable {\n function transferOwnership(address newOwner)\n public;\n}\n",
"current/utils/Ownable/Ownable.sol": "pragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\n/*\n * Ownable\n *\n * Base contract with an owner.\n * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.\n */\n\nimport \"./IOwnable.sol\";\n\ncontract Ownable is IOwnable {\n address public owner;\n\n constructor ()\n public\n {\n owner = msg.sender;\n }\n\n modifier onlyOwner() {\n require(\n msg.sender == owner,\n \"Only contract owner is allowed to call this method.\"\n );\n _;\n }\n\n function transferOwnership(address newOwner)\n public\n onlyOwner\n {\n if (newOwner != address(0)) {\n owner = newOwner;\n }\n }\n}\n"
},
"sourceTreeHashHex": "0x0487fef8919a003e0a8b4fc166f93d776cbeef471cddd8e6a6fc4267350c4148",
"compiler": {
"name": "solc",
"version": "0.4.24",
"settings": {
"optimizer": {
"enabled": true,
"runs": 0
},
"outputSelection": {
"*": {
"*": [
"abi",
"evm.bytecode.object",
"evm.bytecode.sourceMap",
"evm.deployedBytecode.object",
"evm.deployedBytecode.sourceMap"
]
}
}
}
},
"networks": {}
}
|