{
"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": 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": "assetData",
"type": "bytes"
},
{
"name": "assetProxyId",
"type": "uint8"
},
{
"name": "from",
"type": "address"
},
{
"name": "to",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"name": "publicDispatchTransferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"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": "0x608060405260008054600160a060020a03191633179055610915806100256000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166338077164811461007c5780635c78d0c7146100b25780638da5cb5b146100d457806392c1421e146100f6578063a5fba6a414610116578063f2fde38b14610136575b600080fd5b34801561008857600080fd5b5061009c610097366004610636565b610156565b6040516100a991906107cb565b60405180910390f35b3480156100be57600080fd5b506100d26100cd366004610672565b610171565b005b3480156100e057600080fd5b506100e96103a8565b6040516100a99190610774565b34801561010257600080fd5b506100e9610111366004610636565b6103b7565b34801561012257600080fd5b506100d26101313660046105aa565b6103d5565b34801561014257600080fd5b506100d2610151366004610584565b6103e9565b600160205260009081526040902054600160a060020a031681565b6000805481908190600160a060020a031633146101ac5760405160e560020a62461bcd0281526004016101a3906107ea565b60405180910390fd5b60ff8616600090815260016020908152604091829020548251808401909352601483527f41535345545f50524f58595f4d49534d4154434800000000000000000000000091830191909152600160a060020a039081169450851684146102285760405160e560020a62461bcd0281526004016101a391906107d9565b50849150600160a060020a0382161561032c5781600160a060020a031663ae25532e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561029257600080fd5b505af11580156102a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102ca9190810190610654565b60408051808201909152601781527f41535345545f50524f58595f49445f4d49534d41544348000000000000000000602082015290915060ff8083169088161461032a5760405160e560020a62461bcd0281526004016101a391906107d9565b505b60ff861660009081526001602052604090819020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038516179055517f27ef5f484e50f2daf7c2d82c60fe4ce409009541176eb64095beac369db1d26090610398908890889088906107fa565b60405180910390a1505050505050565b600054600160a060020a031681565b60ff16600090815260016020526040902054600160a060020a031690565b6103e28585858585610451565b5050505050565b600054600160a060020a031633146104165760405160e560020a62461bcd0281526004016101a3906107ea565b600160a060020a0381161561044e576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000808211156104f1575060ff8416600090815260016020526040908190205490517fa85e59e4000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690819063a85e59e4906104be908990889088908890600401610788565b600060405180830381600087803b1580156104d857600080fd5b505af11580156104ec573d6000803e3d6000fd5b505050505b505050505050565b60006105058235610875565b9392505050565b6000601f8201831361051d57600080fd5b813561053061052b82610849565b610822565b9150808252602083016020830185838301111561054c57600080fd5b610557838284610895565b50505092915050565b60006105058235610881565b60006105058235610884565b60006105058251610884565b60006020828403121561059657600080fd5b60006105a284846104f9565b949350505050565b600080600080600060a086880312156105c257600080fd5b853567ffffffffffffffff8111156105d957600080fd5b6105e58882890161050c565b95505060206105f68882890161056c565b9450506040610607888289016104f9565b9350506060610618888289016104f9565b925050608061062988828901610560565b9150509295509295909350565b60006020828403121561064857600080fd5b60006105a2848461056c565b60006020828403121561066657600080fd5b60006105a28484610578565b60008060006060848603121561068757600080fd5b6000610693868661056c565b93505060206106a4868287016104f9565b92505060406106b5868287016104f9565b9150509250925092565b6106c881610875565b82525050565b60006106d982610871565b8084526106ed8160208601602086016108a1565b6106f6816108d1565b9093016020019392505050565b6106c88161088a565b603381527f4f6e6c7920636f6e7472616374206f776e657220697320616c6c6f776564207460208201527f6f2063616c6c2074686973206d6574686f642e00000000000000000000000000604082015260600190565b6106c881610881565b6106c881610884565b6020810161078282846106bf565b92915050565b6080808252810161079981876106ce565b90506107a860208301866106bf565b6107b560408301856106bf565b6107c26060830184610762565b95945050505050565b602081016107828284610703565b6020808252810161050581846106ce565b602080825281016107828161070c565b60608101610808828661076b565b61081560208301856106bf565b6105a260408301846106bf565b60405181810167ffffffffffffffff8111828210171561084157600080fd5b604052919050565b600067ffffffffffffffff82111561086057600080fd5b506020601f91909101601f19160190565b5190565b600160a060020a031690565b90565b60ff1690565b600061078282610875565b82818337506000910152565b60005b838110156108bc5781810151838201526020016108a4565b838111156108cb576000848401525b50505050565b601f01601f1916905600a265627a7a723058201ca04540ef1d455fdbcade717e6e88e81142f65ac0a86ede6825f66d45cd7c386c6578706572696d656e74616cf50037",
"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 0x915 DUP1 PUSH2 0x25 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x77 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x38077164 DUP2 EQ PUSH2 0x7C JUMPI DUP1 PUSH4 0x5C78D0C7 EQ PUSH2 0xB2 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xD4 JUMPI DUP1 PUSH4 0x92C1421E EQ PUSH2 0xF6 JUMPI DUP1 PUSH4 0xA5FBA6A4 EQ PUSH2 0x116 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x136 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x88 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x9C PUSH2 0x97 CALLDATASIZE PUSH1 0x4 PUSH2 0x636 JUMP JUMPDEST PUSH2 0x156 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA9 SWAP2 SWAP1 PUSH2 0x7CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0xCD CALLDATASIZE PUSH1 0x4 PUSH2 0x672 JUMP JUMPDEST PUSH2 0x171 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xE0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xE9 PUSH2 0x3A8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA9 SWAP2 SWAP1 PUSH2 0x774 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x102 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xE9 PUSH2 0x111 CALLDATASIZE PUSH1 0x4 PUSH2 0x636 JUMP JUMPDEST PUSH2 0x3B7 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x122 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0x131 CALLDATASIZE PUSH1 0x4 PUSH2 0x5AA JUMP JUMPDEST PUSH2 0x3D5 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x142 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0x151 CALLDATASIZE PUSH1 0x4 PUSH2 0x584 JUMP JUMPDEST PUSH2 0x3E9 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 DUP2 SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x1AC JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP1 PUSH2 0x7EA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0xFF DUP7 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x14 DUP4 MSTORE PUSH32 0x41535345545F50524F58595F4D49534D41544348000000000000000000000000 SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 DUP2 AND SWAP5 POP DUP6 AND DUP5 EQ PUSH2 0x228 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP2 SWAP1 PUSH2 0x7D9 JUMP JUMPDEST POP DUP5 SWAP2 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP3 AND ISZERO PUSH2 0x32C JUMPI DUP2 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND PUSH4 0xAE25532E PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH29 0x100000000000000000000000000000000000000000000000000000000 MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x292 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x2A6 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 0x2CA SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x654 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x17 DUP2 MSTORE PUSH32 0x41535345545F50524F58595F49445F4D49534D41544348000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 SWAP2 POP PUSH1 0xFF DUP1 DUP4 AND SWAP1 DUP9 AND EQ PUSH2 0x32A JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP2 SWAP1 PUSH2 0x7D9 JUMP JUMPDEST POP JUMPDEST PUSH1 0xFF DUP7 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 AND OR SWAP1 SSTORE MLOAD PUSH32 0x27EF5F484E50F2DAF7C2D82C60FE4CE409009541176EB64095BEAC369DB1D260 SWAP1 PUSH2 0x398 SWAP1 DUP9 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH2 0x7FA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP 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 PUSH2 0x3E2 DUP6 DUP6 DUP6 DUP6 DUP6 PUSH2 0x451 JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x416 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP1 PUSH2 0x7EA JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP2 AND ISZERO PUSH2 0x44E JUMPI PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP4 AND OR SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 GT ISZERO PUSH2 0x4F1 JUMPI POP PUSH1 0xFF DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SLOAD SWAP1 MLOAD PUSH32 0xA85E59E400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 SWAP2 AND SWAP1 DUP2 SWAP1 PUSH4 0xA85E59E4 SWAP1 PUSH2 0x4BE SWAP1 DUP10 SWAP1 DUP9 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH1 0x4 ADD PUSH2 0x788 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x4D8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x4EC 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 0x505 DUP3 CALLDATALOAD PUSH2 0x875 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F DUP3 ADD DUP4 SGT PUSH2 0x51D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x530 PUSH2 0x52B DUP3 PUSH2 0x849 JUMP JUMPDEST PUSH2 0x822 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x54C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x557 DUP4 DUP3 DUP5 PUSH2 0x895 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 CALLDATALOAD PUSH2 0x881 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 CALLDATALOAD PUSH2 0x884 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 MLOAD PUSH2 0x884 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x596 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x4F9 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA0 DUP7 DUP9 SUB SLT ISZERO PUSH2 0x5C2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP6 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5D9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x5E5 DUP9 DUP3 DUP10 ADD PUSH2 0x50C JUMP JUMPDEST SWAP6 POP POP PUSH1 0x20 PUSH2 0x5F6 DUP9 DUP3 DUP10 ADD PUSH2 0x56C JUMP JUMPDEST SWAP5 POP POP PUSH1 0x40 PUSH2 0x607 DUP9 DUP3 DUP10 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x60 PUSH2 0x618 DUP9 DUP3 DUP10 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x80 PUSH2 0x629 DUP9 DUP3 DUP10 ADD PUSH2 0x560 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 SWAP1 SWAP4 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x648 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x56C JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x666 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x578 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x687 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x693 DUP7 DUP7 PUSH2 0x56C JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x6A4 DUP7 DUP3 DUP8 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x6B5 DUP7 DUP3 DUP8 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x875 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x6D9 DUP3 PUSH2 0x871 JUMP JUMPDEST DUP1 DUP5 MSTORE PUSH2 0x6ED DUP2 PUSH1 0x20 DUP7 ADD PUSH1 0x20 DUP7 ADD PUSH2 0x8A1 JUMP JUMPDEST PUSH2 0x6F6 DUP2 PUSH2 0x8D1 JUMP JUMPDEST SWAP1 SWAP4 ADD PUSH1 0x20 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x88A JUMP JUMPDEST PUSH1 0x33 DUP2 MSTORE PUSH32 0x4F6E6C7920636F6E7472616374206F776E657220697320616C6C6F7765642074 PUSH1 0x20 DUP3 ADD MSTORE PUSH32 0x6F2063616C6C2074686973206D6574686F642E00000000000000000000000000 PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x881 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x884 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x782 DUP3 DUP5 PUSH2 0x6BF JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x80 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x799 DUP2 DUP8 PUSH2 0x6CE JUMP JUMPDEST SWAP1 POP PUSH2 0x7A8 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x7B5 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x7C2 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x762 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x782 DUP3 DUP5 PUSH2 0x703 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x505 DUP2 DUP5 PUSH2 0x6CE JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x782 DUP2 PUSH2 0x70C JUMP JUMPDEST PUSH1 0x60 DUP2 ADD PUSH2 0x808 DUP3 DUP7 PUSH2 0x76B JUMP JUMPDEST PUSH2 0x815 PUSH1 0x20 DUP4 ADD DUP6 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x5A2 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x6BF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x841 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x860 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 0x782 DUP3 PUSH2 0x875 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x8BC JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x8A4 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x8CB JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP STOP LOG2 PUSH6 0x627A7A723058 KECCAK256 SHR LOG0 GASLIMIT BLOCKHASH 0xef SAR GASLIMIT 0x5f 0xdb 0xca 0xde PUSH18 0x7E6E88E81142F65AC0A86EDE6825F66D45CD PUSH29 0x386C6578706572696D656E74616CF50037000000000000000000000000 ",
"sourceMap": "705:333:6:-;;;363:5:10;:18;;-1:-1:-1;;;;;;363:18:10;371:10;363:18;;;705:333:6;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166338077164811461007c5780635c78d0c7146100b25780638da5cb5b146100d457806392c1421e146100f6578063a5fba6a414610116578063f2fde38b14610136575b600080fd5b34801561008857600080fd5b5061009c610097366004610636565b610156565b6040516100a991906107cb565b60405180910390f35b3480156100be57600080fd5b506100d26100cd366004610672565b610171565b005b3480156100e057600080fd5b506100e96103a8565b6040516100a99190610774565b34801561010257600080fd5b506100e9610111366004610636565b6103b7565b34801561012257600080fd5b506100d26101313660046105aa565b6103d5565b34801561014257600080fd5b506100d2610151366004610584565b6103e9565b600160205260009081526040902054600160a060020a031681565b6000805481908190600160a060020a031633146101ac5760405160e560020a62461bcd0281526004016101a3906107ea565b60405180910390fd5b60ff8616600090815260016020908152604091829020548251808401909352601483527f41535345545f50524f58595f4d49534d4154434800000000000000000000000091830191909152600160a060020a039081169450851684146102285760405160e560020a62461bcd0281526004016101a391906107d9565b50849150600160a060020a0382161561032c5781600160a060020a031663ae25532e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561029257600080fd5b505af11580156102a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102ca9190810190610654565b60408051808201909152601781527f41535345545f50524f58595f49445f4d49534d41544348000000000000000000602082015290915060ff8083169088161461032a5760405160e560020a62461bcd0281526004016101a391906107d9565b505b60ff861660009081526001602052604090819020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038516179055517f27ef5f484e50f2daf7c2d82c60fe4ce409009541176eb64095beac369db1d26090610398908890889088906107fa565b60405180910390a1505050505050565b600054600160a060020a031681565b60ff16600090815260016020526040902054600160a060020a031690565b6103e28585858585610451565b5050505050565b600054600160a060020a031633146104165760405160e560020a62461bcd0281526004016101a3906107ea565b600160a060020a0381161561044e576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000808211156104f1575060ff8416600090815260016020526040908190205490517fa85e59e4000000000000000000000000000000000000000000000000000000008152600160a060020a0390911690819063a85e59e4906104be908990889088908890600401610788565b600060405180830381600087803b1580156104d857600080fd5b505af11580156104ec573d6000803e3d6000fd5b505050505b505050505050565b60006105058235610875565b9392505050565b6000601f8201831361051d57600080fd5b813561053061052b82610849565b610822565b9150808252602083016020830185838301111561054c57600080fd5b610557838284610895565b50505092915050565b60006105058235610881565b60006105058235610884565b60006105058251610884565b60006020828403121561059657600080fd5b60006105a284846104f9565b949350505050565b600080600080600060a086880312156105c257600080fd5b853567ffffffffffffffff8111156105d957600080fd5b6105e58882890161050c565b95505060206105f68882890161056c565b9450506040610607888289016104f9565b9350506060610618888289016104f9565b925050608061062988828901610560565b9150509295509295909350565b60006020828403121561064857600080fd5b60006105a2848461056c565b60006020828403121561066657600080fd5b60006105a28484610578565b60008060006060848603121561068757600080fd5b6000610693868661056c565b93505060206106a4868287016104f9565b92505060406106b5868287016104f9565b9150509250925092565b6106c881610875565b82525050565b60006106d982610871565b8084526106ed8160208601602086016108a1565b6106f6816108d1565b9093016020019392505050565b6106c88161088a565b603381527f4f6e6c7920636f6e7472616374206f776e657220697320616c6c6f776564207460208201527f6f2063616c6c2074686973206d6574686f642e00000000000000000000000000604082015260600190565b6106c881610881565b6106c881610884565b6020810161078282846106bf565b92915050565b6080808252810161079981876106ce565b90506107a860208301866106bf565b6107b560408301856106bf565b6107c26060830184610762565b95945050505050565b602081016107828284610703565b6020808252810161050581846106ce565b602080825281016107828161070c565b60608101610808828661076b565b61081560208301856106bf565b6105a260408301846106bf565b60405181810167ffffffffffffffff8111828210171561084157600080fd5b604052919050565b600067ffffffffffffffff82111561086057600080fd5b506020601f91909101601f19160190565b5190565b600160a060020a031690565b90565b60ff1690565b600061078282610875565b82818337506000910152565b60005b838110156108bc5781810151838201526020016108a4565b838111156108cb576000848401525b50505050565b601f01601f1916905600a265627a7a723058201ca04540ef1d455fdbcade717e6e88e81142f65ac0a86ede6825f66d45cd7c386c6578706572696d656e74616cf50037",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x77 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x38077164 DUP2 EQ PUSH2 0x7C JUMPI DUP1 PUSH4 0x5C78D0C7 EQ PUSH2 0xB2 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xD4 JUMPI DUP1 PUSH4 0x92C1421E EQ PUSH2 0xF6 JUMPI DUP1 PUSH4 0xA5FBA6A4 EQ PUSH2 0x116 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x136 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x88 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x9C PUSH2 0x97 CALLDATASIZE PUSH1 0x4 PUSH2 0x636 JUMP JUMPDEST PUSH2 0x156 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA9 SWAP2 SWAP1 PUSH2 0x7CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0xCD CALLDATASIZE PUSH1 0x4 PUSH2 0x672 JUMP JUMPDEST PUSH2 0x171 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xE0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xE9 PUSH2 0x3A8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xA9 SWAP2 SWAP1 PUSH2 0x774 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x102 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xE9 PUSH2 0x111 CALLDATASIZE PUSH1 0x4 PUSH2 0x636 JUMP JUMPDEST PUSH2 0x3B7 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x122 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0x131 CALLDATASIZE PUSH1 0x4 PUSH2 0x5AA JUMP JUMPDEST PUSH2 0x3D5 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x142 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xD2 PUSH2 0x151 CALLDATASIZE PUSH1 0x4 PUSH2 0x584 JUMP JUMPDEST PUSH2 0x3E9 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 DUP2 SWAP1 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x1AC JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP1 PUSH2 0x7EA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0xFF DUP7 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x14 DUP4 MSTORE PUSH32 0x41535345545F50524F58595F4D49534D41544348000000000000000000000000 SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 DUP2 AND SWAP5 POP DUP6 AND DUP5 EQ PUSH2 0x228 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP2 SWAP1 PUSH2 0x7D9 JUMP JUMPDEST POP DUP5 SWAP2 POP PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP3 AND ISZERO PUSH2 0x32C JUMPI DUP2 PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND PUSH4 0xAE25532E PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH29 0x100000000000000000000000000000000000000000000000000000000 MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x292 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x2A6 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 0x2CA SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x654 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x17 DUP2 MSTORE PUSH32 0x41535345545F50524F58595F49445F4D49534D41544348000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 SWAP2 POP PUSH1 0xFF DUP1 DUP4 AND SWAP1 DUP9 AND EQ PUSH2 0x32A JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP2 SWAP1 PUSH2 0x7D9 JUMP JUMPDEST POP JUMPDEST PUSH1 0xFF DUP7 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP6 AND OR SWAP1 SSTORE MLOAD PUSH32 0x27EF5F484E50F2DAF7C2D82C60FE4CE409009541176EB64095BEAC369DB1D260 SWAP1 PUSH2 0x398 SWAP1 DUP9 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH2 0x7FA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP 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 PUSH2 0x3E2 DUP6 DUP6 DUP6 DUP6 DUP6 PUSH2 0x451 JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB AND CALLER EQ PUSH2 0x416 JUMPI PUSH1 0x40 MLOAD PUSH1 0xE5 PUSH1 0x2 EXP PUSH3 0x461BCD MUL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1A3 SWAP1 PUSH2 0x7EA JUMP JUMPDEST PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP2 AND ISZERO PUSH2 0x44E JUMPI PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB DUP4 AND OR SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 GT ISZERO PUSH2 0x4F1 JUMPI POP PUSH1 0xFF DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SLOAD SWAP1 MLOAD PUSH32 0xA85E59E400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x1 PUSH1 0xA0 PUSH1 0x2 EXP SUB SWAP1 SWAP2 AND SWAP1 DUP2 SWAP1 PUSH4 0xA85E59E4 SWAP1 PUSH2 0x4BE SWAP1 DUP10 SWAP1 DUP9 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH1 0x4 ADD PUSH2 0x788 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x4D8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x4EC 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 0x505 DUP3 CALLDATALOAD PUSH2 0x875 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F DUP3 ADD DUP4 SGT PUSH2 0x51D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x530 PUSH2 0x52B DUP3 PUSH2 0x849 JUMP JUMPDEST PUSH2 0x822 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x54C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x557 DUP4 DUP3 DUP5 PUSH2 0x895 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 CALLDATALOAD PUSH2 0x881 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 CALLDATALOAD PUSH2 0x884 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x505 DUP3 MLOAD PUSH2 0x884 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x596 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x4F9 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA0 DUP7 DUP9 SUB SLT ISZERO PUSH2 0x5C2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP6 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5D9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x5E5 DUP9 DUP3 DUP10 ADD PUSH2 0x50C JUMP JUMPDEST SWAP6 POP POP PUSH1 0x20 PUSH2 0x5F6 DUP9 DUP3 DUP10 ADD PUSH2 0x56C JUMP JUMPDEST SWAP5 POP POP PUSH1 0x40 PUSH2 0x607 DUP9 DUP3 DUP10 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x60 PUSH2 0x618 DUP9 DUP3 DUP10 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x80 PUSH2 0x629 DUP9 DUP3 DUP10 ADD PUSH2 0x560 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 SWAP1 SWAP4 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x648 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x56C JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x666 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x5A2 DUP5 DUP5 PUSH2 0x578 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x687 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x693 DUP7 DUP7 PUSH2 0x56C JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x6A4 DUP7 DUP3 DUP8 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x6B5 DUP7 DUP3 DUP8 ADD PUSH2 0x4F9 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x875 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x6D9 DUP3 PUSH2 0x871 JUMP JUMPDEST DUP1 DUP5 MSTORE PUSH2 0x6ED DUP2 PUSH1 0x20 DUP7 ADD PUSH1 0x20 DUP7 ADD PUSH2 0x8A1 JUMP JUMPDEST PUSH2 0x6F6 DUP2 PUSH2 0x8D1 JUMP JUMPDEST SWAP1 SWAP4 ADD PUSH1 0x20 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x88A JUMP JUMPDEST PUSH1 0x33 DUP2 MSTORE PUSH32 0x4F6E6C7920636F6E7472616374206F776E657220697320616C6C6F7765642074 PUSH1 0x20 DUP3 ADD MSTORE PUSH32 0x6F2063616C6C2074686973206D6574686F642E00000000000000000000000000 PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x881 JUMP JUMPDEST PUSH2 0x6C8 DUP2 PUSH2 0x884 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x782 DUP3 DUP5 PUSH2 0x6BF JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x80 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x799 DUP2 DUP8 PUSH2 0x6CE JUMP JUMPDEST SWAP1 POP PUSH2 0x7A8 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x7B5 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x7C2 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x762 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0x782 DUP3 DUP5 PUSH2 0x703 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x505 DUP2 DUP5 PUSH2 0x6CE JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x782 DUP2 PUSH2 0x70C JUMP JUMPDEST PUSH1 0x60 DUP2 ADD PUSH2 0x808 DUP3 DUP7 PUSH2 0x76B JUMP JUMPDEST PUSH2 0x815 PUSH1 0x20 DUP4 ADD DUP6 PUSH2 0x6BF JUMP JUMPDEST PUSH2 0x5A2 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x6BF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x841 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x860 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 0x782 DUP3 PUSH2 0x875 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x8BC JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x8A4 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x8CB JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP STOP LOG2 PUSH6 0x627A7A723058 KECCAK256 SHR LOG0 GASLIMIT BLOCKHASH 0xef SAR GASLIMIT 0x5f 0xdb 0xca 0xde PUSH18 0x7E6E88E81142F65AC0A86EDE6825F66D45CD PUSH29 0x386C6578706572696D656E74616CF50037000000000000000000000000 ",
"sourceMap": "705:333:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1017:50:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1017:50:2;;;;;;;;;;;;;;;;;;;;;;;;;1481:1017;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1481:1017:2;;;;;;;;;;;292:20:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;292:20:10;;;;;;;;;;;;2688:203:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2688:203:2;;;;;;;;;774:262:6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;774:262:6;;;;;;;;;566:167:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;566:167:10;;;;;;;;;1017:50:2;;;;;;;;;;;;-1:-1:-1;;;;;1017:50:2;;:::o;1481:1017::-;1732:25;460:5:10;;1732:25:2;;;;-1:-1:-1;;;;;460:5:10;446:10;:19;425:117;;;;-1:-1:-1;;;;;425:117:10;;;;;;;;;;;;;;;;;1768:26:2;;;;;;;:12;:26;;;;;;;;;;1874:20;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1768:26:2;;;;-1:-1:-1;1826:34:2;;;;1805:99;;;;-1:-1:-1;;;;;1805:99:2;;;;;;;;;;-1:-1:-1;1952:13:2;;-1:-1:-1;;;;;;2095:27:2;;;2091:230;;2162:10;-1:-1:-1;;;;;2162:21:2;;:23;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2162:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2162: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;2162:23:2;;;;;;;;;2273;;;;;;;;;;;;;;;;;2138:47;;-1:-1:-1;2224:31:2;;;;;;;;2199:111;;;;-1:-1:-1;;;;;2199:111:2;;;;;;;;;;;2091:230;2380:26;;;;;;;:12;:26;;;;;;;:39;;-1:-1:-1;;2380:39:2;-1:-1:-1;;;;;2380:39:2;;;;;2434:57;;;;;2380:26;;2462:13;;2477;;2434:57;;;;;;;;;;1481:1017;;;;;;:::o;292:20:10:-;;;-1:-1:-1;;;;;292:20:10;;:::o;2688:203:2:-;2830:26;;2778:7;2830:26;;;:12;:26;;;;;;-1:-1:-1;;;;;2830:26:2;;2688:203::o;774:262:6:-;966:63;987:9;998:12;1012:4;1018:2;1022:6;966:20;:63::i;:::-;774:262;;;;;:::o;566:167:10:-;460:5;;-1:-1:-1;;;;;460:5:10;446:10;:19;425:117;;;;-1:-1:-1;;;;;425:117:10;;;;;;;;;-1:-1:-1;;;;;662:22:10;;;658:69;;700:5;:16;;-1:-1:-1;;700:16:10;-1:-1:-1;;;;;700:16:10;;;;;658:69;566:167;:::o;3283:506:2:-;3597:22;3547:1;3538:6;:10;3534:249;;;-1:-1:-1;3622:26:2;;;;;;;:12;:26;;;;;;;;3720:52;;;;;-1:-1:-1;;;;;3622:26:2;;;;;;3720:23;;:52;;3744:9;;3755:4;;3761:2;;3765:6;;3720:52;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3720:52:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3720:52:2;;;;3534:249;3283:506;;;;;;:::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:843;;;;;;1377:3;1365:9;1356:7;1352:23;1348:33;1345:2;;;1394:1;1391;1384:12;1345:2;1429:31;;1480:18;1469:30;;1466:2;;;1512:1;1509;1502:12;1466:2;1532:62;1586:7;1577:6;1566:9;1562:22;1532:62;;;1522:72;;1408:192;1631:2;1649:51;1692:7;1683:6;1672:9;1668:22;1649:51;;;1639:61;;1610:96;1737:2;1755:53;1800:7;1791:6;1780:9;1776:22;1755:53;;;1745:63;;1716:98;1845:2;1863:53;1908:7;1899:6;1888:9;1884:22;1863:53;;;1853:63;;1824:98;1953:3;1972:53;2017:7;2008:6;1997:9;1993:22;1972:53;;;1962:63;;1932:99;1339:702;;;;;;;;;2048:237;;2150:2;2138:9;2129:7;2125:23;2121:32;2118:2;;;2166:1;2163;2156:12;2118:2;2201:1;2218:51;2261:7;2241:9;2218:51;;2292:259;;2405:2;2393:9;2384:7;2380:23;2376:32;2373:2;;;2421:1;2418;2411:12;2373:2;2456:1;2473:62;2527:7;2507:9;2473:62;;2558:487;;;;2694:2;2682:9;2673:7;2669:23;2665:32;2662:2;;;2710:1;2707;2700:12;2662:2;2745:1;2762:51;2805:7;2785:9;2762:51;;;2752:61;;2724:95;2850:2;2868:53;2913:7;2904:6;2893:9;2889:22;2868:53;;;2858:63;;2829:98;2958:2;2976:53;3021:7;3012:6;3001:9;2997:22;2976:53;;;2966:63;;2937:98;2656:389;;;;;;3052:110;3125:31;3150:5;3125:31;;;3120:3;3113:44;3107:55;;;3169:297;;3269:38;3301:5;3269:38;;;3324:6;3319:3;3312:19;3336:63;3392:6;3385:4;3380:3;3376:14;3369:4;3362:5;3358:16;3336:63;;;3431:29;3453:6;3431:29;;;3411:50;;;3424:4;3411:50;;3249:217;-1:-1;;;3249:217;3473:154;3565:56;3615:5;3565:56;;3934:397;4089:2;4077:15;;4126:66;4121:2;4112:12;;4105:88;4227:66;4222:2;4213:12;;4206:88;4322:2;4313:12;;4070:261;4339:110;4412:31;4437:5;4412:31;;4456:104;4525:29;4548:5;4525:29;;4567:193;4675:2;4660:18;;4689:61;4664:9;4723:6;4689:61;;;4646:114;;;;;4767:581;4977:3;4992:47;;;4962:19;;5053:66;4962:19;5105:6;5053:66;;;5045:74;;5130:62;5188:2;5177:9;5173:18;5164:6;5130:62;;;5203;5261:2;5250:9;5246:18;5237:6;5203:62;;;5276;5334:2;5323:9;5319:18;5310:6;5276:62;;;4948:400;;;;;;;;5355:231;5482:2;5467:18;;5496:80;5471:9;5549:6;5496:80;;5593:273;5717:2;5731:47;;;5702:18;;5792:64;5702:18;5842:6;5792:64;;5873:387;6054:2;6068:47;;;6039:18;;6129:121;6039:18;6129:121;;6267:387;6427:2;6412:18;;6441:57;6416:9;6471:6;6441:57;;;6509:62;6567:2;6556:9;6552:18;6543:6;6509:62;;;6582;6640:2;6629:9;6625:18;6616:6;6582:62;;6661:256;6723:2;6717:9;6749:17;;;6824:18;6809:34;;6845:22;;;6806:62;6803:2;;;6881:1;6878;6871:12;6803:2;6897;6890:22;6701:216;;-1:-1;6701:216;6924:258;;7067:18;7059:6;7056:30;7053:2;;;7099:1;7096;7089:12;7053:2;-1:-1;7172:4;7143;7120:17;;;;-1:-1;;7116:33;7162:15;;6990:192;7189:91;7263:12;;7247:33;7382:128;-1:-1;;;;;7451:54;;7434:76;7517:79;7586:5;7569:27;7603:88;7681:4;7670:16;;7653:38;8014:134;;8112:31;8137:5;8112:31;;8156:145;8237:6;8232:3;8227;8214:30;-1:-1;8293:1;8275:16;;8268:27;8207:94;8310:268;8375:1;8382:101;8396:6;8393:1;8390:13;8382:101;;;8463:11;;;8457:18;8444:11;;;8437:39;8418:2;8411:10;8382:101;;;8498:6;8495:1;8492:13;8489:2;;;8563:1;8554:6;8549:3;8545:16;8538:27;8489:2;8359:219;;;;;8586:97;8674:2;8654:14;-1:-1;;8650:28;;8634: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/LibBytes/LibBytes.sol": {
"id": 7
},
"current/utils/LibMem/LibMem.sol": {
"id": 8
},
"current/utils/Ownable/IOwnable.sol": {
"id": 9
},
"current/utils/Ownable/Ownable.sol": {
"id": 10
}
},
"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 assetData 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 assetData,\n address from,\n address to,\n uint256 amount\n )\n external;\n \n /// @dev Makes multiple transfers of assets. Either succeeds or throws.\n /// @param assetData 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 assetData,\n address[] memory from,\n address[] memory to,\n uint256[] memory amounts\n )\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(\n address target,\n uint256 index\n )\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 \"../../utils/LibBytes/LibBytes.sol\";\nimport \"./libs/LibExchangeErrors.sol\";\nimport \"./mixins/MAssetProxyDispatcher.sol\";\nimport \"../AssetProxy/interfaces/IAssetProxy.sol\";\n\ncontract MixinAssetProxyDispatcher is\n Ownable,\n LibBytes,\n LibExchangeErrors,\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 )\n external\n onlyOwner\n {\n // Ensure the existing asset proxy is not unintentionally overwritten\n address currentAssetProxy = address(assetProxies[assetProxyId]);\n require(\n oldAssetProxy == currentAssetProxy,\n 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 ASSET_PROXY_ID_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 assetData Byte array encoded for the respective asset proxy.\n /// @param assetProxyId Id of assetProxy to dispach to.\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 assetData,\n uint8 assetProxyId,\n address from,\n address to,\n uint256 amount\n )\n internal\n {\n // Do nothing if no amount should be transferred.\n if (amount > 0) {\n // Lookup assetProxy\n IAssetProxy assetProxy = assetProxies[assetProxyId];\n // transferFrom will either succeed or throw.\n assetProxy.transferFrom(assetData, 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 )\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 /// Order validation errors ///\n string constant ORDER_UNFILLABLE = \"ORDER_UNFILLABLE\"; // Order cannot be filled.\n string constant INVALID_MAKER = \"INVALID_MAKER\"; // Invalid makerAddress.\n string constant INVALID_TAKER = \"INVALID_TAKER\"; // Invalid takerAddress.\n string constant INVALID_SENDER = \"INVALID_SENDER\"; // Invalid `msg.sender`.\n string constant INVALID_ORDER_SIGNATURE = \"INVALID_ORDER_SIGNATURE\"; // Signature validation failed. \n \n /// fillOrder validation errors ///\n string constant INVALID_TAKER_AMOUNT = \"INVALID_TAKER_AMOUNT\"; // takerAssetFillAmount cannot equal 0.\n string constant ROUNDING_ERROR = \"ROUNDING_ERROR\"; // Rounding error greater than 0.1% of takerAssetFillAmount. \n \n /// Signature validation errors ///\n string constant INVALID_SIGNATURE = \"INVALID_SIGNATURE\"; // Signature validation failed. \n string constant SIGNATURE_ILLEGAL = \"SIGNATURE_ILLEGAL\"; // Signature type is illegal.\n string constant SIGNATURE_UNSUPPORTED = \"SIGNATURE_UNSUPPORTED\"; // Signature type unsupported.\n \n /// cancelOrdersUptTo errors ///\n string constant INVALID_NEW_MAKER_EPOCH = \"INVALID_NEW_MAKER_EPOCH\"; // Specified salt must be greater than or equal to existing makerEpoch.\n\n /// fillOrKillOrder errors ///\n string constant COMPLETE_FILL_FAILED = \"COMPLETE_FILL_FAILED\"; // Desired takerAssetFillAmount could not be completely filled. \n\n /// matchOrders errors ///\n string constant NEGATIVE_SPREAD_REQUIRED = \"NEGATIVE_SPREAD_REQUIRED\"; // Matched orders must have a negative spread.\n\n /// Transaction errors ///\n string constant REENTRANCY_ILLEGAL = \"REENTRANCY_ILLEGAL\"; // Recursive reentrancy is not allowed. \n string constant INVALID_TX_HASH = \"INVALID_TX_HASH\"; // Transaction has already been executed. \n string constant INVALID_TX_SIGNATURE = \"INVALID_TX_SIGNATURE\"; // Signature validation failed. \n string constant FAILED_EXECUTION = \"FAILED_EXECUTION\"; // Transaction execution failed. \n \n /// registerAssetProxy errors ///\n string constant ASSET_PROXY_MISMATCH = \"ASSET_PROXY_MISMATCH\"; // oldAssetProxy proxy does not match currentAssetProxy. \n string constant ASSET_PROXY_ID_MISMATCH = \"ASSET_PROXY_ID_MISMATCH\"; // newAssetProxyId does not match given assetProxyId.\n\n /// Length validation errors ///\n string constant LENGTH_GREATER_THAN_0_REQUIRED = \"LENGTH_GREATER_THAN_0_REQUIRED\"; // Byte array must have a length greater than 0.\n string constant LENGTH_0_REQUIRED = \"LENGTH_1_REQUIRED\"; // Byte array must have a length of 1.\n string constant LENGTH_65_REQUIRED = \"LENGTH_66_REQUIRED\"; // Byte array must have a length of 66.\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 assetData Byte array encoded for the respective asset proxy.\n /// @param assetProxyId Id of assetProxy to dispach to.\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 assetData,\n uint8 assetProxyId,\n address from,\n address to,\n uint256 amount\n )\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 assetData,\n uint8 assetProxyId,\n address from,\n address to,\n uint256 amount)\n public\n {\n dispatchTransferFrom(assetData, assetProxyId, from, to, amount);\n }\n}\n",
"current/utils/LibBytes/LibBytes.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 \"../LibMem/LibMem.sol\";\n\ncontract LibBytes is\n LibMem\n{\n\n // Revert reasons\n string constant GREATER_THAN_ZERO_LENGTH_REQUIRED = \"GREATER_THAN_ZERO_LENGTH_REQUIRED\";\n string constant GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED = \"GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED\";\n string constant GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED = \"GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED\";\n string constant GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED = \"GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED\";\n string constant GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED = \"GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED\";\n string constant GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED = \"GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED\";\n\n /// @dev Pops the last byte off of a byte array by modifying its length.\n /// @param b Byte array that will be modified.\n /// @return The byte that was popped off.\n function popLastByte(bytes memory b)\n internal\n pure\n returns (bytes1 result)\n {\n require(\n b.length > 0,\n GREATER_THAN_ZERO_LENGTH_REQUIRED\n );\n\n // Store last byte.\n result = b[b.length - 1];\n\n assembly {\n // Decrement length of byte array.\n let newLen := sub(mload(b), 1)\n mstore(b, newLen)\n }\n return result;\n }\n\n /// @dev Pops the last 20 bytes off of a byte array by modifying its length.\n /// @param b Byte array that will be modified.\n /// @return The 20 byte address that was popped off.\n function popLast20Bytes(bytes memory b)\n internal\n pure\n returns (address result)\n {\n require(\n b.length >= 20,\n GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED\n );\n\n // Store last 20 bytes.\n result = readAddress(b, b.length - 20);\n\n assembly {\n // Subtract 20 from byte array length.\n let newLen := sub(mload(b), 20)\n mstore(b, newLen)\n }\n return result;\n }\n\n /// @dev Reads an address from a position in a byte array.\n /// @param b Byte array containing an address.\n /// @param index Index in byte array of address.\n /// @return address from byte array.\n function readAddress(\n bytes memory b,\n uint256 index\n )\n internal\n pure\n returns (address result)\n {\n require(\n b.length >= index + 20, // 20 is length of address\n GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED\n );\n\n // Add offset to index:\n // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)\n // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)\n index += 20;\n\n // Read address from array memory\n assembly {\n // 1. Add index to address of bytes array\n // 2. Load 32-byte word from memory\n // 3. Apply 20-byte mask to obtain address\n result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff)\n }\n return result;\n }\n\n /// @dev Writes an address into a specific position in a byte array.\n /// @param b Byte array to insert address into.\n /// @param index Index in byte array of address.\n /// @param input Address to put into byte array.\n function writeAddress(\n bytes memory b,\n uint256 index,\n address input\n )\n internal\n pure\n {\n require(\n b.length >= index + 20, // 20 is length of address\n GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED\n );\n\n // Add offset to index:\n // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)\n // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)\n index += 20;\n\n // Store address into array memory\n assembly {\n // The address occupies 20 bytes and mstore stores 32 bytes.\n // First fetch the 32-byte word where we'll be storing the address, then\n // apply a mask so we have only the bytes in the word that the address will not occupy.\n // Then combine these bytes with the address and store the 32 bytes back to memory with mstore.\n\n // 1. Add index to address of bytes array\n // 2. Load 32-byte word from memory\n // 3. Apply 12-byte mask to obtain extra bytes occupying word of memory where we'll store the address\n let neighbors := and(mload(add(b, index)), 0xffffffffffffffffffffffff0000000000000000000000000000000000000000)\n\n // Store the neighbors and address into memory\n mstore(add(b, index), xor(input, neighbors))\n }\n }\n\n /// @dev Reads a bytes32 value from a position in a byte array.\n /// @param b Byte array containing a bytes32 value.\n /// @param index Index in byte array of bytes32 value.\n /// @return bytes32 value from byte array.\n function readBytes32(\n bytes memory b,\n uint256 index\n )\n internal\n pure\n returns (bytes32 result)\n {\n require(\n b.length >= index + 32,\n GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED\n );\n\n // Arrays are prefixed by a 256 bit length parameter\n index += 32;\n\n // Read the bytes32 from array memory\n assembly {\n result := mload(add(b, index))\n }\n return result;\n }\n\n /// @dev Writes a bytes32 into a specific position in a byte array.\n /// @param b Byte array to insert into.\n /// @param index Index in byte array of .\n /// @param input bytes32 to put into byte array.\n function writeBytes32(\n bytes memory b,\n uint256 index,\n bytes32 input\n )\n internal\n pure\n {\n require(\n b.length >= index + 32,\n GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED\n );\n\n // Arrays are prefixed by a 256 bit length parameter\n index += 32;\n\n // Read the bytes32 from array memory\n assembly {\n mstore(add(b, index), input)\n }\n }\n\n /// @dev Reads a uint256 value from a position in a byte array.\n /// @param b Byte array containing a uint256 value.\n /// @param index Index in byte array of uint256 value.\n /// @return uint256 value from byte array.\n function readUint256(\n bytes memory b,\n uint256 index\n )\n internal\n pure\n returns (uint256 result)\n {\n return uint256(readBytes32(b, index));\n }\n\n /// @dev Writes a uint256 into a specific position in a byte array.\n /// @param b Byte array to insert into.\n /// @param index Index in byte array of .\n /// @param input uint256 to put into byte array.\n function writeUint256(\n bytes memory b,\n uint256 index,\n uint256 input\n )\n internal\n pure\n {\n writeBytes32(b, index, bytes32(input));\n }\n\n /// @dev Reads the first 4 bytes from a byte array of arbitrary length.\n /// @param b Byte array to read first 4 bytes from.\n /// @return First 4 bytes of data.\n function readFirst4(bytes memory b)\n internal\n pure\n returns (bytes4 result)\n {\n require(\n b.length >= 4,\n GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED\n );\n assembly {\n result := mload(add(b, 32))\n }\n return result;\n }\n\n /// @dev Reads nested bytes from a specific position.\n /// @param b Byte array containing nested bytes.\n /// @param index Index of nested bytes.\n /// @return result Nested bytes.\n function readBytes(\n bytes memory b,\n uint256 index\n )\n internal\n pure\n returns (bytes memory result)\n {\n // Read length of nested bytes\n uint256 nestedBytesLength = readUint256(b, index);\n index += 32;\n\n // Assert length of is valid, given\n // length of nested bytes\n require(\n b.length >= index + nestedBytesLength,\n GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED\n );\n\n // Allocate memory and copy value to result\n result = new bytes(nestedBytesLength);\n memCopy(\n getMemAddress(result) + 32, // +32 skips array length\n getMemAddress(b) + index + 32,\n nestedBytesLength\n );\n\n return result;\n }\n\n /// @dev Inserts bytes at a specific position in a byte array.\n /// @param b Byte array to insert into.\n /// @param index Index in byte array of .\n /// @param input bytes to insert.\n function writeBytes(\n bytes memory b,\n uint256 index,\n bytes memory input\n )\n internal\n pure\n {\n // Assert length of is valid, given\n // length of input\n require(\n b.length >= index + 32 /* 32 bytes to store length */ + input.length,\n GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED\n );\n\n // Copy into \n memCopy(\n getMemAddress(b) + 32 + index, // +32 to skip length of \n getMemAddress(input), // includes length of \n input.length + 32 // +32 bytes to store length\n );\n }\n\n /// @dev Tests equality of two byte arrays.\n /// @param lhs First byte array to compare.\n /// @param rhs Second byte array to compare.\n /// @return True if arrays are the same. False otherwise.\n function areBytesEqual(\n bytes memory lhs,\n bytes memory rhs\n )\n internal\n pure\n returns (bool equal)\n {\n assembly {\n // Get the number of words occupied by \n let lenFullWords := div(add(mload(lhs), 0x1F), 0x20)\n\n // Add 1 to the number of words, to account for the length field\n lenFullWords := add(lenFullWords, 0x1)\n\n // Test equality word-by-word.\n // Terminates early if there is a mismatch.\n for {let i := 0} lt(i, lenFullWords) {i := add(i, 1)} {\n let lhsWord := mload(add(lhs, mul(i, 0x20)))\n let rhsWord := mload(add(rhs, mul(i, 0x20)))\n equal := eq(lhsWord, rhsWord)\n if eq(equal, 0) {\n // Break\n i := lenFullWords\n }\n }\n }\n\n return equal;\n }\n\n /// @dev Performs a deep copy of a byte array onto another byte array of greater than or equal length.\n /// @param dest Byte array that will be overwritten with source bytes.\n /// @param source Byte array to copy onto dest bytes.\n function deepCopyBytes(\n bytes memory dest,\n bytes memory source\n )\n internal\n pure\n {\n uint256 sourceLen = source.length;\n // Dest length must be >= source length, or some bytes would not be copied.\n require(\n dest.length >= sourceLen,\n GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED\n );\n memCopy(\n getMemAddress(dest) + 32, // +32 to skip length of \n getMemAddress(source) + 32, // +32 to skip length of