Overview
ETH Balance
0.001 ETH
Eth Value
$3.65 (@ $3,645.83/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 12,824 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Fill Order | 20408719 | 161 days ago | IN | 0.0007 ETH | 0.000062 | ||||
Fill Order | 20408323 | 161 days ago | IN | 0.0007 ETH | 0.000066 | ||||
Fill Order | 16002512 | 779 days ago | IN | 19.68 ETH | 0.00341591 | ||||
Withdraw | 15870748 | 797 days ago | IN | 0 ETH | 0.00389057 | ||||
Cancel Order | 15859308 | 799 days ago | IN | 0 ETH | 0.00060201 | ||||
Deposit | 15820647 | 804 days ago | IN | 0.25 ETH | 0.00102958 | ||||
Fill Order | 15714708 | 819 days ago | IN | 0.1 ETH | 0.00674656 | ||||
Withdraw | 15615609 | 833 days ago | IN | 0 ETH | 0.00081602 | ||||
Cancel Order | 15603317 | 834 days ago | IN | 0 ETH | 0.00039188 | ||||
Deposit | 15603303 | 834 days ago | IN | 0.2 ETH | 0.00028284 | ||||
Deposit | 15594106 | 836 days ago | IN | 0.2 ETH | 0.0003165 | ||||
Fill Order | 15593888 | 836 days ago | IN | 0.12 ETH | 0.00110037 | ||||
Cancel Order | 15556794 | 841 days ago | IN | 0 ETH | 0.00031507 | ||||
Fill Order | 15537453 | 844 days ago | IN | 0.001 ETH | 0.01677598 | ||||
Withdraw | 15513112 | 848 days ago | IN | 0 ETH | 0.00158676 | ||||
Cancel Order | 15488556 | 852 days ago | IN | 0 ETH | 0.00118104 | ||||
Cancel Order | 15488552 | 852 days ago | IN | 0 ETH | 0.00117801 | ||||
Cancel Order | 15488529 | 852 days ago | IN | 0 ETH | 0.00104658 | ||||
Cancel Order | 15488522 | 852 days ago | IN | 0 ETH | 0.00117574 | ||||
Cancel Order | 15488519 | 852 days ago | IN | 0 ETH | 0.00120146 | ||||
Cancel Order | 15488514 | 852 days ago | IN | 0 ETH | 0.00101077 | ||||
Cancel Order | 15488472 | 852 days ago | IN | 0 ETH | 0.00264827 | ||||
Cancel Order | 15488472 | 852 days ago | IN | 0 ETH | 0.00291964 | ||||
Cancel Order | 15488472 | 852 days ago | IN | 0 ETH | 0.00213351 | ||||
Cancel Order | 15488472 | 852 days ago | IN | 0 ETH | 0.00188168 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16002512 | 779 days ago | 0.492 ETH | ||||
16002512 | 779 days ago | 19.188 ETH | ||||
15870748 | 797 days ago | 0.25 ETH | ||||
15714708 | 819 days ago | 0.01 ETH | ||||
15714708 | 819 days ago | 0.09 ETH | ||||
15615609 | 833 days ago | 0.2 ETH | ||||
15603317 | 834 days ago | 0.2 ETH | ||||
15593888 | 836 days ago | 0.012 ETH | ||||
15593888 | 836 days ago | 0.108 ETH | ||||
15537453 | 844 days ago | 0.000025 ETH | ||||
15537453 | 844 days ago | 0.000975 ETH | ||||
15513112 | 848 days ago | 0.1 ETH | ||||
15475941 | 854 days ago | 0.008 ETH | ||||
15475941 | 854 days ago | 0.072 ETH | ||||
15448107 | 858 days ago | 0.07 ETH | ||||
15448107 | 858 days ago | 0.63 ETH | ||||
15445284 | 859 days ago | 0.04 ETH | ||||
15414558 | 863 days ago | 0.034 ETH | ||||
15389522 | 867 days ago | 0.003 ETH | ||||
15389522 | 867 days ago | 0.027 ETH | ||||
15344499 | 875 days ago | 0.045 ETH | ||||
15344499 | 875 days ago | 0.405 ETH | ||||
15334182 | 876 days ago | 0.0000375 ETH | ||||
15334182 | 876 days ago | 0.0014625 ETH | ||||
15334173 | 876 days ago | 0.000025 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Exchange
Compiler Version
v0.4.24+commit.e67f0147
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-08-29 */ // File: @0x/contracts-utils/contracts/src/SafeMath.sol pragma solidity ^0.4.24; contract SafeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require( c / a == b, "UINT256_OVERFLOW" ); return c; } function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { require( b <= a, "UINT256_UNDERFLOW" ); return a - b; } function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require( c >= a, "UINT256_OVERFLOW" ); return c; } function max64(uint64 a, uint64 b) internal pure returns (uint256) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal pure returns (uint256) { return a < b ? a : b; } function max256(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min256(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } } // File: @0x/contracts-exchange-libs/contracts/src/LibFillResults.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract LibFillResults is SafeMath { struct FillResults { uint256 makerAssetFilledAmount; // Total amount of makerAsset(s) filled. uint256 takerAssetFilledAmount; // Total amount of takerAsset(s) filled. uint256 makerFeePaid; // Total amount of ZRX paid by maker(s) to feeRecipient(s). uint256 takerFeePaid; // Total amount of ZRX paid by taker to feeRecipients(s). } struct MatchedFillResults { FillResults left; // Amounts filled and fees paid of left order. FillResults right; // Amounts filled and fees paid of right order. uint256 leftMakerAssetSpreadAmount; // Spread between price of left and right order, denominated in the left order's makerAsset, paid to taker. } /// @dev Adds properties of both FillResults instances. /// Modifies the first FillResults instance specified. /// @param totalFillResults Fill results instance that will be added onto. /// @param singleFillResults Fill results instance that will be added to totalFillResults. function addFillResults(FillResults memory totalFillResults, FillResults memory singleFillResults) internal pure { totalFillResults.makerAssetFilledAmount = safeAdd(totalFillResults.makerAssetFilledAmount, singleFillResults.makerAssetFilledAmount); totalFillResults.takerAssetFilledAmount = safeAdd(totalFillResults.takerAssetFilledAmount, singleFillResults.takerAssetFilledAmount); totalFillResults.makerFeePaid = safeAdd(totalFillResults.makerFeePaid, singleFillResults.makerFeePaid); totalFillResults.takerFeePaid = safeAdd(totalFillResults.takerFeePaid, singleFillResults.takerFeePaid); } } // File: @0x/contracts-exchange-libs/contracts/src/LibEIP712.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract LibEIP712 { // EIP191 header for EIP712 prefix string constant internal EIP191_HEADER = "\x19\x01"; // EIP712 Domain Name value string constant internal EIP712_DOMAIN_NAME = "0x Protocol"; // EIP712 Domain Version value string constant internal EIP712_DOMAIN_VERSION = "2"; // Hash of the EIP712 Domain Separator Schema bytes32 constant internal EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH = keccak256(abi.encodePacked( "EIP712Domain(", "string name,", "string version,", "address verifyingContract", ")" )); // Hash of the EIP712 Domain Separator data // solhint-disable-next-line var-name-mixedcase bytes32 public EIP712_DOMAIN_HASH; constructor () public { EIP712_DOMAIN_HASH = keccak256(abi.encodePacked( EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH, keccak256(bytes(EIP712_DOMAIN_NAME)), keccak256(bytes(EIP712_DOMAIN_VERSION)), bytes32(address(this)) )); } /// @dev Calculates EIP712 encoding for a hash struct in this EIP712 Domain. /// @param hashStruct The EIP712 hash struct. /// @return EIP712 hash applied to this EIP712 Domain. function hashEIP712Message(bytes32 hashStruct) internal view returns (bytes32 result) { bytes32 eip712DomainHash = EIP712_DOMAIN_HASH; // Assembly for more efficient computing: // keccak256(abi.encodePacked( // EIP191_HEADER, // EIP712_DOMAIN_HASH, // hashStruct // )); assembly { // Load free memory pointer let memPtr := mload(64) mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000) // EIP191 header mstore(add(memPtr, 2), eip712DomainHash) // EIP712 domain hash mstore(add(memPtr, 34), hashStruct) // Hash of struct // Compute hash result := keccak256(memPtr, 66) } return result; } } // File: @0x/contracts-exchange-libs/contracts/src/LibOrder.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract LibOrder is LibEIP712 { // Hash for the EIP712 Order Schema bytes32 constant internal EIP712_ORDER_SCHEMA_HASH = keccak256(abi.encodePacked( "Order(", "address makerAddress,", "address takerAddress,", "address feeRecipientAddress,", "address senderAddress,", "uint256 makerAssetAmount,", "uint256 takerAssetAmount,", "uint256 makerFee,", "uint256 takerFee,", "uint256 expirationTimeSeconds,", "uint256 salt,", "bytes makerAssetData,", "bytes takerAssetData", ")" )); // A valid order remains fillable until it is expired, fully filled, or cancelled. // An order's state is unaffected by external factors, like account balances. enum OrderStatus { INVALID, // Default value INVALID_MAKER_ASSET_AMOUNT, // Order does not have a valid maker asset amount INVALID_TAKER_ASSET_AMOUNT, // Order does not have a valid taker asset amount FILLABLE, // Order is fillable EXPIRED, // Order has already expired FULLY_FILLED, // Order is fully filled CANCELLED // Order has been cancelled } // solhint-disable max-line-length struct Order { address makerAddress; // Address that created the order. address takerAddress; // Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order. address feeRecipientAddress; // Address that will recieve fees when order is filled. address senderAddress; // Address that is allowed to call Exchange contract methods that affect this order. If set to 0, any address is allowed to call these methods. uint256 makerAssetAmount; // Amount of makerAsset being offered by maker. Must be greater than 0. uint256 takerAssetAmount; // Amount of takerAsset being bid on by maker. Must be greater than 0. uint256 makerFee; // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to 0, no transfer of ZRX from maker to feeRecipient will be attempted. uint256 takerFee; // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to 0, no transfer of ZRX from taker to feeRecipient will be attempted. uint256 expirationTimeSeconds; // Timestamp in seconds at which order expires. uint256 salt; // Arbitrary number to facilitate uniqueness of the order's hash. bytes makerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring makerAsset. The last byte references the id of this proxy. bytes takerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring takerAsset. The last byte references the id of this proxy. } // solhint-enable max-line-length struct OrderInfo { uint8 orderStatus; // Status that describes order's validity and fillability. bytes32 orderHash; // EIP712 hash of the order (see LibOrder.getOrderHash). uint256 orderTakerAssetFilledAmount; // Amount of order that has already been filled. } /// @dev Calculates Keccak-256 hash of the order. /// @param order The order structure. /// @return Keccak-256 EIP712 hash of the order. function getOrderHash(Order memory order) internal view returns (bytes32 orderHash) { orderHash = hashEIP712Message(hashOrder(order)); return orderHash; } /// @dev Calculates EIP712 hash of the order. /// @param order The order structure. /// @return EIP712 hash of the order. function hashOrder(Order memory order) internal pure returns (bytes32 result) { bytes32 schemaHash = EIP712_ORDER_SCHEMA_HASH; bytes32 makerAssetDataHash = keccak256(order.makerAssetData); bytes32 takerAssetDataHash = keccak256(order.takerAssetData); // Assembly for more efficiently computing: // keccak256(abi.encodePacked( // EIP712_ORDER_SCHEMA_HASH, // bytes32(order.makerAddress), // bytes32(order.takerAddress), // bytes32(order.feeRecipientAddress), // bytes32(order.senderAddress), // order.makerAssetAmount, // order.takerAssetAmount, // order.makerFee, // order.takerFee, // order.expirationTimeSeconds, // order.salt, // keccak256(order.makerAssetData), // keccak256(order.takerAssetData) // )); assembly { // Calculate memory addresses that will be swapped out before hashing let pos1 := sub(order, 32) let pos2 := add(order, 320) let pos3 := add(order, 352) // Backup let temp1 := mload(pos1) let temp2 := mload(pos2) let temp3 := mload(pos3) // Hash in place mstore(pos1, schemaHash) mstore(pos2, makerAssetDataHash) mstore(pos3, takerAssetDataHash) result := keccak256(pos1, 416) // Restore mstore(pos1, temp1) mstore(pos2, temp2) mstore(pos3, temp3) } return result; } } // File: @0x/contracts-exchange-libs/contracts/src/LibMath.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract LibMath is SafeMath { /// @dev Calculates partial value given a numerator and denominator rounded down. /// Reverts if rounding error is >= 0.1% /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to calculate partial of. /// @return Partial value of target rounded down. function safeGetPartialAmountFloor( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (uint256 partialAmount) { require( denominator > 0, "DIVISION_BY_ZERO" ); require( !isRoundingErrorFloor( numerator, denominator, target ), "ROUNDING_ERROR" ); partialAmount = safeDiv( safeMul(numerator, target), denominator ); return partialAmount; } /// @dev Calculates partial value given a numerator and denominator rounded down. /// Reverts if rounding error is >= 0.1% /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to calculate partial of. /// @return Partial value of target rounded up. function safeGetPartialAmountCeil( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (uint256 partialAmount) { require( denominator > 0, "DIVISION_BY_ZERO" ); require( !isRoundingErrorCeil( numerator, denominator, target ), "ROUNDING_ERROR" ); // safeDiv computes `floor(a / b)`. We use the identity (a, b integer): // ceil(a / b) = floor((a + b - 1) / b) // To implement `ceil(a / b)` using safeDiv. partialAmount = safeDiv( safeAdd( safeMul(numerator, target), safeSub(denominator, 1) ), denominator ); return partialAmount; } /// @dev Calculates partial value given a numerator and denominator rounded down. /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to calculate partial of. /// @return Partial value of target rounded down. function getPartialAmountFloor( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (uint256 partialAmount) { require( denominator > 0, "DIVISION_BY_ZERO" ); partialAmount = safeDiv( safeMul(numerator, target), denominator ); return partialAmount; } /// @dev Calculates partial value given a numerator and denominator rounded down. /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to calculate partial of. /// @return Partial value of target rounded up. function getPartialAmountCeil( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (uint256 partialAmount) { require( denominator > 0, "DIVISION_BY_ZERO" ); // safeDiv computes `floor(a / b)`. We use the identity (a, b integer): // ceil(a / b) = floor((a + b - 1) / b) // To implement `ceil(a / b)` using safeDiv. partialAmount = safeDiv( safeAdd( safeMul(numerator, target), safeSub(denominator, 1) ), denominator ); return partialAmount; } /// @dev Checks if rounding error >= 0.1% when rounding down. /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to multiply with numerator/denominator. /// @return Rounding error is present. function isRoundingErrorFloor( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (bool isError) { require( denominator > 0, "DIVISION_BY_ZERO" ); // The absolute rounding error is the difference between the rounded // value and the ideal value. The relative rounding error is the // absolute rounding error divided by the absolute value of the // ideal value. This is undefined when the ideal value is zero. // // The ideal value is `numerator * target / denominator`. // Let's call `numerator * target % denominator` the remainder. // The absolute error is `remainder / denominator`. // // When the ideal value is zero, we require the absolute error to // be zero. Fortunately, this is always the case. The ideal value is // zero iff `numerator == 0` and/or `target == 0`. In this case the // remainder and absolute error are also zero. if (target == 0 || numerator == 0) { return false; } // Otherwise, we want the relative rounding error to be strictly // less than 0.1%. // The relative error is `remainder / (numerator * target)`. // We want the relative error less than 1 / 1000: // remainder / (numerator * denominator) < 1 / 1000 // or equivalently: // 1000 * remainder < numerator * target // so we have a rounding error iff: // 1000 * remainder >= numerator * target uint256 remainder = mulmod( target, numerator, denominator ); isError = safeMul(1000, remainder) >= safeMul(numerator, target); return isError; } /// @dev Checks if rounding error >= 0.1% when rounding up. /// @param numerator Numerator. /// @param denominator Denominator. /// @param target Value to multiply with numerator/denominator. /// @return Rounding error is present. function isRoundingErrorCeil( uint256 numerator, uint256 denominator, uint256 target ) internal pure returns (bool isError) { require( denominator > 0, "DIVISION_BY_ZERO" ); // See the comments in `isRoundingError`. if (target == 0 || numerator == 0) { // When either is zero, the ideal value and rounded value are zero // and there is no rounding error. (Although the relative error // is undefined.) return false; } // Compute remainder as before uint256 remainder = mulmod( target, numerator, denominator ); remainder = safeSub(denominator, remainder) % denominator; isError = safeMul(1000, remainder) >= safeMul(numerator, target); return isError; } } // File: contracts/exchange/interfaces/IExchangeCore.sol /* Modified by Metaps Alpha Inc. Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; pragma experimental ABIEncoderV2; contract IExchangeCore { /// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch /// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). /// @param targetOrderEpoch Orders created with a salt less or equal to this value will be cancelled. function cancelOrdersUpTo(uint256 targetOrderEpoch) external; /// @dev Fills the input order. /// @param order Order struct containing order specifications. /// @param takerAssetFillAmount Desired amount of takerAsset to sell. /// @param signature Proof that order has been created by maker. /// @return Amounts filled and fees paid by maker and taker. function fillOrder( LibOrder.Order memory order, uint256 takerAssetFillAmount, bytes memory signature ) public payable returns (LibFillResults.FillResults memory fillResults); /// @dev After calling, the order can not be filled anymore. /// @param order Order struct containing order specifications. function cancelOrder(LibOrder.Order memory order) public; /// @dev Gets information about an order: status, hash, and amount filled. /// @param order Order to gather information on. /// @return OrderInfo Information about the order and its state. /// See LibOrder.OrderInfo for a complete description. function getOrderInfo(LibOrder.Order memory order) public view returns (LibOrder.OrderInfo memory orderInfo); /// @dev miime - Update order (Cancel order and then update deposit for new order). /// @param newOrderHash New orderHash for deposit. /// @param newOfferAmount New offer amount. /// @param orderToBeCanceled Order to be canceled. function updateOrder( bytes32 newOrderHash, uint256 newOfferAmount, LibOrder.Order memory orderToBeCanceled ) public payable; } // File: contracts/exchange/mixins/MExchangeCore.sol /* Modified by Metaps Alpha Inc. Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MExchangeCore is IExchangeCore { // Fill event is emitted whenever an order is filled. event Fill( address indexed makerAddress, // Address that created the order. address indexed feeRecipientAddress, // Address that received fees. address takerAddress, // Address that filled the order. address senderAddress, // Address that called the Exchange contract (msg.sender). uint256 makerAssetFilledAmount, // Amount of makerAsset sold by maker and bought by taker. uint256 takerAssetFilledAmount, // Amount of takerAsset sold by taker and bought by maker. uint256 makerFeePaid, // Amount of ZRX paid to feeRecipient by maker. uint256 takerFeePaid, // Amount of ZRX paid to feeRecipient by taker. bytes32 indexed orderHash, // EIP712 hash of order (see LibOrder.getOrderHash). bytes makerAssetData, // Encoded data specific to makerAsset. bytes takerAssetData // Encoded data specific to takerAsset. ); // Cancel event is emitted whenever an individual order is cancelled. event Cancel( address indexed makerAddress, // Address that created the order. address indexed feeRecipientAddress, // Address that would have recieved fees if order was filled. address senderAddress, // Address that called the Exchange contract (msg.sender). bytes32 indexed orderHash, // EIP712 hash of order (see LibOrder.getOrderHash). bytes makerAssetData, // Encoded data specific to makerAsset. bytes takerAssetData // Encoded data specific to takerAsset. ); // CancelUpTo event is emitted whenever `cancelOrdersUpTo` is executed succesfully. event CancelUpTo( address indexed makerAddress, // Orders cancelled must have been created by this address. address indexed senderAddress, // Orders cancelled must have a `senderAddress` equal to this address. uint256 orderEpoch // Orders with specified makerAddress and senderAddress with a salt less than this value are considered cancelled. ); // miime: Transfer event is emitted whenever `transfer` is executed succesfully. event Transfer( address indexed toAddress, uint256 indexed amount ); /// @dev Fills the input order. /// @param order Order struct containing order specifications. /// @param takerAssetFillAmount Desired amount of takerAsset to sell. /// @param signature Proof that order has been created by maker. /// @return Amounts filled and fees paid by maker and taker. function fillOrderInternal( LibOrder.Order memory order, uint256 takerAssetFillAmount, bytes memory signature ) internal returns (LibFillResults.FillResults memory fillResults); /// @dev After calling, the order can not be filled anymore. /// @param order Order struct containing order specifications. function cancelOrderInternal(LibOrder.Order memory order) internal returns (LibOrder.OrderInfo); /// @dev Updates state with results of a fill order. /// @param order that was filled. /// @param takerAddress Address of taker who filled the order. /// @param orderTakerAssetFilledAmount Amount of order already filled. /// @return fillResults Amounts filled and fees paid by maker and taker. function updateFilledState( LibOrder.Order memory order, address takerAddress, bytes32 orderHash, uint256 orderTakerAssetFilledAmount, LibFillResults.FillResults memory fillResults ) internal; /// @dev Updates state with results of cancelling an order. /// State is only updated if the order is currently fillable. /// Otherwise, updating state would have no effect. /// @param order that was cancelled. /// @param orderHash Hash of order that was cancelled. function updateCancelledState( LibOrder.Order memory order, bytes32 orderHash ) internal; /// @dev Validates context for fillOrder. Succeeds or throws. /// @param order to be filled. /// @param orderInfo OrderStatus, orderHash, and amount already filled of order. /// @param takerAddress Address of order taker. /// @param signature Proof that the orders was created by its maker. function assertFillableOrder( LibOrder.Order memory order, LibOrder.OrderInfo memory orderInfo, address takerAddress, bytes memory signature ) internal view; /// @dev Validates context for fillOrder. Succeeds or throws. /// @param order to be filled. /// @param orderInfo Status, orderHash, and amount already filled of order. /// @param takerAssetFillAmount Desired amount of order to fill by taker. /// @param takerAssetFilledAmount Amount of takerAsset that will be filled. /// @param makerAssetFilledAmount Amount of makerAsset that will be transfered. function assertValidFill( LibOrder.Order memory order, LibOrder.OrderInfo memory orderInfo, uint256 takerAssetFillAmount, uint256 takerAssetFilledAmount, uint256 makerAssetFilledAmount ) internal view; /// @dev Validates context for cancelOrder. Succeeds or throws. /// @param order to be cancelled. /// @param orderInfo OrderStatus, orderHash, and amount already filled of order. function assertValidCancel( LibOrder.Order memory order, LibOrder.OrderInfo memory orderInfo ) internal view; /// @dev Calculates amounts filled and fees paid by maker and taker. /// @param order to be filled. /// @param takerAssetFilledAmount Amount of takerAsset that will be filled. /// @return fillResults Amounts filled and fees paid by maker and taker. function calculateFillResults( LibOrder.Order memory order, uint256 takerAssetFilledAmount ) internal pure returns (LibFillResults.FillResults memory fillResults); } // File: contracts/exchange/interfaces/ISignatureValidator.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract ISignatureValidator { /// @dev Approves a hash on-chain using any valid signature type. /// After presigning a hash, the preSign signature type will become valid for that hash and signer. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof that the hash has been signed by signer. function preSign( bytes32 hash, address signerAddress, bytes signature ) external; /// @dev Approves/unnapproves a Validator contract to verify signatures on signer's behalf. /// @param validatorAddress Address of Validator contract. /// @param approval Approval or disapproval of Validator contract. function setSignatureValidatorApproval( address validatorAddress, bool approval ) external; /// @dev Verifies that a signature is valid. /// @param hash Message hash that is signed. /// @param signerAddress Address of signer. /// @param signature Proof of signing. /// @return Validity of order signature. function isValidSignature( bytes32 hash, address signerAddress, bytes memory signature ) public view returns (bool isValid); } // File: contracts/exchange/mixins/MSignatureValidator.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MSignatureValidator is ISignatureValidator { event SignatureValidatorApproval( address indexed signerAddress, // Address that approves or disapproves a contract to verify signatures. address indexed validatorAddress, // Address of signature validator contract. bool approved // Approval or disapproval of validator contract. ); // Allowed signature types. enum SignatureType { Illegal, // 0x00, default value Invalid, // 0x01 EIP712, // 0x02 EthSign, // 0x03 Wallet, // 0x04 Validator, // 0x05 PreSigned, // 0x06 NSignatureTypes // 0x07, number of signature types. Always leave at end. } /// @dev Verifies signature using logic defined by Wallet contract. /// @param hash Any 32 byte hash. /// @param walletAddress Address that should have signed the given hash /// and defines its own signature verification method. /// @param signature Proof that the hash has been signed by signer. /// @return True if the address recovered from the provided signature matches the input signer address. function isValidWalletSignature( bytes32 hash, address walletAddress, bytes signature ) internal view returns (bool isValid); /// @dev Verifies signature using logic defined by Validator contract. /// @param validatorAddress Address of validator contract. /// @param hash Any 32 byte hash. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof that the hash has been signed by signer. /// @return True if the address recovered from the provided signature matches the input signer address. function isValidValidatorSignature( address validatorAddress, bytes32 hash, address signerAddress, bytes signature ) internal view returns (bool isValid); } // File: contracts/exchange/interfaces/ITransactions.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract ITransactions { /// @dev Executes an exchange method call in the context of signer. /// @param salt Arbitrary number to ensure uniqueness of transaction hash. /// @param signerAddress Address of transaction signer. /// @param data AbiV2 encoded calldata. /// @param signature Proof of signer transaction by signer. function executeTransaction( uint256 salt, address signerAddress, bytes data, bytes signature ) external; } // File: contracts/exchange/mixins/MTransactions.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MTransactions is ITransactions { // Hash for the EIP712 ZeroEx Transaction Schema bytes32 constant internal EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH = keccak256(abi.encodePacked( "ZeroExTransaction(", "uint256 salt,", "address signerAddress,", "bytes data", ")" )); /// @dev Calculates EIP712 hash of the Transaction. /// @param salt Arbitrary number to ensure uniqueness of transaction hash. /// @param signerAddress Address of transaction signer. /// @param data AbiV2 encoded calldata. /// @return EIP712 hash of the Transaction. function hashZeroExTransaction( uint256 salt, address signerAddress, bytes memory data ) internal pure returns (bytes32 result); /// @dev The current function will be called in the context of this address (either 0x transaction signer or `msg.sender`). /// If calling a fill function, this address will represent the taker. /// If calling a cancel function, this address will represent the maker. /// @return Signer of 0x transaction if entry point is `executeTransaction`. /// `msg.sender` if entry point is any other function. function getCurrentContextAddress() internal view returns (address); } // File: contracts/exchange/interfaces/IAssetProxyDispatcher.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract IAssetProxyDispatcher { /// @dev Registers an asset proxy to its asset proxy id. /// Once an asset proxy is registered, it cannot be unregistered. /// @param assetProxy Address of new asset proxy to register. function registerAssetProxy(address assetProxy) external; /// @dev Gets an asset proxy. /// @param assetProxyId Id of the asset proxy. /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. function getAssetProxy(bytes4 assetProxyId) external view returns (address); } // File: contracts/exchange/mixins/MAssetProxyDispatcher.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MAssetProxyDispatcher is IAssetProxyDispatcher { // Logs registration of new asset proxy event AssetProxyRegistered( bytes4 id, // Id of new registered AssetProxy. address assetProxy // Address of new registered AssetProxy. ); /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws. /// @param assetData Byte array encoded for the asset. /// @param from Address to transfer token from. /// @param to Address to transfer token to. /// @param amount Amount of token to transfer. function dispatchTransferFrom( bytes memory assetData, address from, address to, uint256 amount ) internal; } // File: @0x/contracts-utils/contracts/src/ReentrancyGuard.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract ReentrancyGuard { // Locked state of mutex bool private locked = false; /// @dev Functions with this modifer cannot be reentered. The mutex will be locked /// before function execution and unlocked after. modifier nonReentrant() { // Ensure mutex is unlocked require( !locked, "REENTRANCY_ILLEGAL" ); // Lock mutex before function call locked = true; // Perform function call _; // Unlock mutex after function call locked = false; } } // File: contracts/exchange/libs/Operational.sol /* Copyright 2019 Metaps Alpha Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract Operational { address public owner; address[] public withdrawOperators; // It is mainly responsible for the withdraw of deposit on cancelling. mapping (address => bool) public isWithdrawOperator; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); event WithdrawOperatorAdded( address indexed target, address indexed caller ); event WithdrawOperatorRemoved( address indexed target, address indexed caller ); constructor () public { owner = msg.sender; } modifier onlyOwner() { require( msg.sender == owner, "ONLY_CONTRACT_OWNER" ); _; } modifier withdrawable(address toAddress) { require( isWithdrawOperator[msg.sender] || toAddress == msg.sender, "SENDER_IS_NOT_WITHDRAWABLE" ); _; } function transferOwnership(address newOwner) public onlyOwner { require( newOwner != address(0), "INVALID_OWNER" ); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } function addWithdrawOperator(address target) external onlyOwner { require( !isWithdrawOperator[target], "TARGET_IS_ALREADY_WITHDRAW_OPERATOR" ); isWithdrawOperator[target] = true; withdrawOperators.push(target); emit WithdrawOperatorAdded(target, msg.sender); } function removeWithdrawOperator(address target) external onlyOwner { require( isWithdrawOperator[target], "TARGET_IS_NOT_WITHDRAW_OPERATOR" ); delete isWithdrawOperator[target]; for (uint256 i = 0; i < withdrawOperators.length; i++) { if (withdrawOperators[i] == target) { withdrawOperators[i] = withdrawOperators[withdrawOperators.length - 1]; withdrawOperators.length -= 1; break; } } emit WithdrawOperatorRemoved(target, msg.sender); } } // File: contracts/exchange/libs/DepositManager.sol /* Copyright 2019 Metaps Alpha Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract DepositManager is Operational, ReentrancyGuard, SafeMath { // Mapping from user to deposit amount mapping (address => uint256) public depositAmount; // Mapping from order and user to deposit amount for withdraw mapping (bytes32 => mapping (address => uint256)) public orderToDepositAmount; // Deposit event is emitted whenever `deposit` is executed succesfully. event Deposit( bytes32 indexed orderHash, address indexed senderAddress, uint256 amount ); // DepositChanged event is emitted whenever `updateOrder` is executed succesfully. event DepositChanged( bytes32 indexed newOrderHash, uint256 newAmount, bytes32 indexed oldOrderHash, uint256 oldAmount, address indexed senderAddress ); // Withdraw event is emitted whenever `withdraw` (it may be called in `cancelOrder`) is executed succesfully. event Withdraw( bytes32 indexed orderHash, address indexed toAddress, uint256 amount ); /// @dev Deposit for offer. /// @param orderHash orderHash of the order. function deposit(bytes32 orderHash) public payable nonReentrant { depositInternal(orderHash, msg.sender, msg.value); } /// @dev Withdraw deposit. /// @param orderHash orderHash of the order. /// @param toAddress Address to be refund. function withdraw(bytes32 orderHash, address toAddress) public nonReentrant withdrawable(toAddress) { withdrawInternal(orderHash, toAddress); } function depositInternal(bytes32 orderHash, address sender, uint256 amount) internal { depositAmount[sender] = safeAdd(depositAmount[sender], amount); orderToDepositAmount[orderHash][sender] = safeAdd(orderToDepositAmount[orderHash][sender], amount); emit Deposit(orderHash, sender, amount); } function withdrawInternal(bytes32 orderHash, address toAddress) internal { if (orderToDepositAmount[orderHash][toAddress] > 0) { uint256 amount = orderToDepositAmount[orderHash][toAddress]; depositAmount[toAddress] = safeSub(depositAmount[toAddress], amount); delete orderToDepositAmount[orderHash][toAddress]; toAddress.transfer(amount); emit Withdraw(orderHash, toAddress, amount); } } function changeDeposit( bytes32 newOrderHash, uint256 newOfferAmount, bytes32 oldOrderHash, uint256 oldOfferAmount, address sender ) internal { if (msg.value > 0) { depositAmount[sender] = safeAdd(depositAmount[sender], msg.value); orderToDepositAmount[newOrderHash][sender] = safeAdd(orderToDepositAmount[newOrderHash][sender], msg.value); } uint256 oldOrderToDepositAmount = orderToDepositAmount[oldOrderHash][sender]; moveDeposit(oldOrderHash, newOrderHash, sender); if (oldOrderToDepositAmount > newOfferAmount) { uint256 refundAmount = safeSub(orderToDepositAmount[newOrderHash][sender], newOfferAmount); orderToDepositAmount[newOrderHash][sender] = safeSub(orderToDepositAmount[newOrderHash][sender], refundAmount); depositAmount[sender] = safeSub(depositAmount[sender], refundAmount); sender.transfer(refundAmount); } emit DepositChanged(newOrderHash, newOfferAmount, oldOrderHash, oldOfferAmount, sender); } function moveDeposit( bytes32 fromOrderHash, bytes32 toOrderHash, address sender ) internal { uint256 amount = orderToDepositAmount[fromOrderHash][sender]; delete orderToDepositAmount[fromOrderHash][sender]; orderToDepositAmount[toOrderHash][sender] = safeAdd(orderToDepositAmount[toOrderHash][sender], amount); } function deductOrderToDepositAmount( bytes32 orderHash, address target, uint256 amount ) internal { orderToDepositAmount[orderHash][target] = safeSub(orderToDepositAmount[orderHash][target], amount); } } // File: contracts/exchange/libs/LibConstants.sol /* Copyright 2019 Metaps Alpha Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; // solhint-disable max-line-length contract LibConstants { // miime - The special asset data for ETH // ETH_ASSET_DATA = bytes4(keccak256("ERC20Token(address)")); + 0 padding // = 0xf47261b00000000000000000000000000000000000000000000000000000000000000000 bytes constant public ETH_ASSET_DATA = "\xf4\x72\x61\xb0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; bytes32 constant public KECCAK256_ETH_ASSET_DATA = keccak256(ETH_ASSET_DATA); uint256 constant public TRANSFER_GAS_LIMIT = 300000; // Gas limit for ETH sending } // solhint-enable max-line-length // File: contracts/exchange/MixinExchangeCore.sol /* Modified by Metaps Alpha Inc. Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MixinExchangeCore is DepositManager, LibConstants, LibMath, LibOrder, LibFillResults, MAssetProxyDispatcher, MExchangeCore, MSignatureValidator, MTransactions { // Mapping of orderHash => amount of takerAsset already bought by maker mapping (bytes32 => uint256) public filled; // Mapping of orderHash => cancelled mapping (bytes32 => bool) public cancelled; // Mapping of makerAddress => senderAddress => lowest salt an order can have in order to be fillable // Orders with specified senderAddress and with a salt less than their epoch are considered cancelled mapping (address => mapping (address => uint256)) public orderEpoch; /// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch /// and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). /// @param targetOrderEpoch Orders created with a salt less or equal to this value will be cancelled. function cancelOrdersUpTo(uint256 targetOrderEpoch) external nonReentrant { address makerAddress = getCurrentContextAddress(); // If this function is called via `executeTransaction`, we only update the orderEpoch for the makerAddress/msg.sender combination. // This allows external filter contracts to add rules to how orders are cancelled via this function. address senderAddress = makerAddress == msg.sender ? address(0) : msg.sender; // orderEpoch is initialized to 0, so to cancelUpTo we need salt + 1 uint256 newOrderEpoch = targetOrderEpoch + 1; uint256 oldOrderEpoch = orderEpoch[makerAddress][senderAddress]; // Ensure orderEpoch is monotonically increasing require( newOrderEpoch > oldOrderEpoch, "INVALID_NEW_ORDER_EPOCH" ); // Update orderEpoch orderEpoch[makerAddress][senderAddress] = newOrderEpoch; emit CancelUpTo( makerAddress, senderAddress, newOrderEpoch ); } /// @dev Fills the input order. /// @param order Order struct containing order specifications. /// @param takerAssetFillAmount Desired amount of takerAsset to sell. /// @param signature Proof that order has been created by maker. /// @return Amounts filled and fees paid by maker and taker. function fillOrder( Order memory order, uint256 takerAssetFillAmount, bytes memory signature ) public payable nonReentrant returns (FillResults memory fillResults) { fillResults = fillOrderInternal( order, takerAssetFillAmount, signature ); return fillResults; } /// @dev After calling, the order can not be filled anymore. /// Throws if order is invalid or sender does not have permission to cancel. /// @param order Order to cancel. Order must be OrderStatus.FILLABLE. function cancelOrder(Order memory order) public nonReentrant { OrderInfo memory orderInfo = cancelOrderInternal(order); withdrawInternal(orderInfo.orderHash, msg.sender); } /// @dev Gets information about an order: status, hash, and amount filled. /// @param order Order to gather information on. /// @return OrderInfo Information about the order and its state. /// See LibOrder.OrderInfo for a complete description. function getOrderInfo(Order memory order) public view returns (OrderInfo memory orderInfo) { // Compute the order hash orderInfo.orderHash = getOrderHash(order); // Fetch filled amount orderInfo.orderTakerAssetFilledAmount = filled[orderInfo.orderHash]; // If order.makerAssetAmount is zero, we also reject the order. // While the Exchange contract handles them correctly, they create // edge cases in the supporting infrastructure because they have // an 'infinite' price when computed by a simple division. if (order.makerAssetAmount == 0) { orderInfo.orderStatus = uint8(OrderStatus.INVALID_MAKER_ASSET_AMOUNT); return orderInfo; } // If order.takerAssetAmount is zero, then the order will always // be considered filled because 0 == takerAssetAmount == orderTakerAssetFilledAmount // Instead of distinguishing between unfilled and filled zero taker // amount orders, we choose not to support them. if (order.takerAssetAmount == 0) { orderInfo.orderStatus = uint8(OrderStatus.INVALID_TAKER_ASSET_AMOUNT); return orderInfo; } // Validate order availability if (orderInfo.orderTakerAssetFilledAmount >= order.takerAssetAmount) { orderInfo.orderStatus = uint8(OrderStatus.FULLY_FILLED); return orderInfo; } // Validate order expiration // solhint-disable-next-line not-rely-on-time if (block.timestamp >= order.expirationTimeSeconds) { orderInfo.orderStatus = uint8(OrderStatus.EXPIRED); return orderInfo; } // Check if order has been cancelled if (cancelled[orderInfo.orderHash]) { orderInfo.orderStatus = uint8(OrderStatus.CANCELLED); return orderInfo; } if (orderEpoch[order.makerAddress][order.senderAddress] > order.salt) { orderInfo.orderStatus = uint8(OrderStatus.CANCELLED); return orderInfo; } // All other statuses are ruled out: order is Fillable orderInfo.orderStatus = uint8(OrderStatus.FILLABLE); return orderInfo; } /// @dev miime - Cancel order and then update deposit for new order. /// @param newOrderHash New orderHash for deposit. /// @param newOfferAmount New offer amount. /// @param orderToBeCanceled Order to be canceled. function updateOrder( bytes32 newOrderHash, uint256 newOfferAmount, Order memory orderToBeCanceled ) public payable nonReentrant { OrderInfo memory orderInfo = cancelOrderInternal(orderToBeCanceled); uint256 oldOfferAmount = safeAdd(orderToBeCanceled.makerAssetAmount, orderToBeCanceled.makerFee); changeDeposit(newOrderHash, newOfferAmount, orderInfo.orderHash, oldOfferAmount, msg.sender); } /// @dev Fills the input order. /// @param order Order struct containing order specifications. /// @param takerAssetFillAmount Desired amount of takerAsset to sell. /// @param signature Proof that order has been created by maker. /// @return Amounts filled and fees paid by maker and taker. function fillOrderInternal( Order memory order, uint256 takerAssetFillAmount, bytes memory signature ) internal returns (FillResults memory fillResults) { // Fetch order info OrderInfo memory orderInfo = getOrderInfo(order); // Fetch taker address address takerAddress = getCurrentContextAddress(); // miime: Deposit the sending ETH on buying // Hash calculation is expensive, so it is implemented here. if (msg.value > 0) { depositInternal(orderInfo.orderHash, takerAddress, msg.value); } // Assert that the order is fillable by taker assertFillableOrder( order, orderInfo, takerAddress, signature ); // Get amount of takerAsset to fill uint256 remainingTakerAssetAmount = safeSub(order.takerAssetAmount, orderInfo.orderTakerAssetFilledAmount); uint256 takerAssetFilledAmount = min256(takerAssetFillAmount, remainingTakerAssetAmount); // Compute proportional fill amounts fillResults = calculateFillResults(order, takerAssetFilledAmount); // Validate context assertValidFill( order, orderInfo, takerAssetFillAmount, takerAssetFilledAmount, fillResults.makerAssetFilledAmount ); // Update exchange internal state updateFilledState( order, takerAddress, orderInfo.orderHash, orderInfo.orderTakerAssetFilledAmount, fillResults ); // Settle order settleOrder( order, takerAddress, fillResults ); // miime: Deduct deposit of this order if (keccak256(order.makerAssetData) == KECCAK256_ETH_ASSET_DATA) { deductOrderToDepositAmount( orderInfo.orderHash, order.makerAddress, safeAdd(fillResults.makerAssetFilledAmount, fillResults.makerFeePaid) ); } if (keccak256(order.takerAssetData) == KECCAK256_ETH_ASSET_DATA) { deductOrderToDepositAmount( orderInfo.orderHash, takerAddress, safeAdd(fillResults.takerAssetFilledAmount, fillResults.takerFeePaid) ); } return fillResults; } /// @dev After calling, the order can not be filled anymore. /// Throws if order is invalid or sender does not have permission to cancel. /// @param order Order to cancel. Order must be OrderStatus.FILLABLE. /// @return orderInfo function cancelOrderInternal(Order memory order) internal returns (OrderInfo) { // Fetch current order status OrderInfo memory orderInfo = getOrderInfo(order); // Validate context assertValidCancel(order, orderInfo); // Perform cancel updateCancelledState(order, orderInfo.orderHash); return orderInfo; } /// @dev Updates state with results of a fill order. /// @param order that was filled. /// @param takerAddress Address of taker who filled the order. /// @param orderTakerAssetFilledAmount Amount of order already filled. function updateFilledState( Order memory order, address takerAddress, bytes32 orderHash, uint256 orderTakerAssetFilledAmount, FillResults memory fillResults ) internal { // Update state filled[orderHash] = safeAdd(orderTakerAssetFilledAmount, fillResults.takerAssetFilledAmount); // Log order emit Fill( order.makerAddress, order.feeRecipientAddress, takerAddress, msg.sender, fillResults.makerAssetFilledAmount, fillResults.takerAssetFilledAmount, fillResults.makerFeePaid, fillResults.takerFeePaid, orderHash, order.makerAssetData, order.takerAssetData ); } /// @dev Updates state with results of cancelling an order. /// State is only updated if the order is currently fillable. /// Otherwise, updating state would have no effect. /// @param order that was cancelled. /// @param orderHash Hash of order that was cancelled. function updateCancelledState( Order memory order, bytes32 orderHash ) internal { // Perform cancel cancelled[orderHash] = true; // Log cancel emit Cancel( order.makerAddress, order.feeRecipientAddress, msg.sender, orderHash, order.makerAssetData, order.takerAssetData ); } /// @dev Validates context for fillOrder. Succeeds or throws. /// @param order to be filled. /// @param orderInfo OrderStatus, orderHash, and amount already filled of order. /// @param takerAddress Address of order taker. /// @param signature Proof that the orders was created by its maker. function assertFillableOrder( Order memory order, OrderInfo memory orderInfo, address takerAddress, bytes memory signature ) internal view { // An order can only be filled if its status is FILLABLE. require( orderInfo.orderStatus == uint8(OrderStatus.FILLABLE), "ORDER_UNFILLABLE" ); // Validate sender is allowed to fill this order if (order.senderAddress != address(0)) { require( order.senderAddress == msg.sender, "INVALID_SENDER" ); } // Validate taker is allowed to fill this order if (order.takerAddress != address(0)) { require( order.takerAddress == takerAddress, "INVALID_TAKER" ); } // Validate Maker signature (check only if first time seen) if (orderInfo.orderTakerAssetFilledAmount == 0) { require( isValidSignature( orderInfo.orderHash, order.makerAddress, signature ), "INVALID_ORDER_SIGNATURE" ); } } /// @dev Validates context for fillOrder. Succeeds or throws. /// @param order to be filled. /// @param orderInfo OrderStatus, orderHash, and amount already filled of order. /// @param takerAssetFillAmount Desired amount of order to fill by taker. /// @param takerAssetFilledAmount Amount of takerAsset that will be filled. /// @param makerAssetFilledAmount Amount of makerAsset that will be transfered. function assertValidFill( Order memory order, OrderInfo memory orderInfo, uint256 takerAssetFillAmount, // TODO: use FillResults uint256 takerAssetFilledAmount, uint256 makerAssetFilledAmount ) internal view { // Revert if fill amount is invalid // TODO: reconsider necessity for v2.1 require( takerAssetFillAmount != 0, "INVALID_TAKER_AMOUNT" ); // Make sure taker does not pay more than desired amount // NOTE: This assertion should never fail, it is here // as an extra defence against potential bugs. require( takerAssetFilledAmount <= takerAssetFillAmount, "TAKER_OVERPAY" ); // Make sure order is not overfilled // NOTE: This assertion should never fail, it is here // as an extra defence against potential bugs. require( safeAdd(orderInfo.orderTakerAssetFilledAmount, takerAssetFilledAmount) <= order.takerAssetAmount, "ORDER_OVERFILL" ); // Make sure order is filled at acceptable price. // The order has an implied price from the makers perspective: // order price = order.makerAssetAmount / order.takerAssetAmount // i.e. the number of makerAsset maker is paying per takerAsset. The // maker is guaranteed to get this price or a better (lower) one. The // actual price maker is getting in this fill is: // fill price = makerAssetFilledAmount / takerAssetFilledAmount // We need `fill price <= order price` for the fill to be fair to maker. // This amounts to: // makerAssetFilledAmount order.makerAssetAmount // ------------------------ <= ----------------------- // takerAssetFilledAmount order.takerAssetAmount // or, equivalently: // makerAssetFilledAmount * order.takerAssetAmount <= // order.makerAssetAmount * takerAssetFilledAmount // NOTE: This assertion should never fail, it is here // as an extra defence against potential bugs. require( safeMul(makerAssetFilledAmount, order.takerAssetAmount) <= safeMul(order.makerAssetAmount, takerAssetFilledAmount), "INVALID_FILL_PRICE" ); } /// @dev Validates context for cancelOrder. Succeeds or throws. /// @param order to be cancelled. /// @param orderInfo OrderStatus, orderHash, and amount already filled of order. function assertValidCancel( Order memory order, OrderInfo memory orderInfo ) internal view { // Ensure order is valid // An order can only be cancelled if its status is FILLABLE. require( orderInfo.orderStatus == uint8(OrderStatus.FILLABLE), "ORDER_UNFILLABLE" ); // Validate sender is allowed to cancel this order if (order.senderAddress != address(0)) { require( order.senderAddress == msg.sender, "INVALID_SENDER" ); } // Validate transaction signed by maker address makerAddress = getCurrentContextAddress(); require( order.makerAddress == makerAddress, "INVALID_MAKER" ); } /// @dev Calculates amounts filled and fees paid by maker and taker. /// @param order to be filled. /// @param takerAssetFilledAmount Amount of takerAsset that will be filled. /// @return fillResults Amounts filled and fees paid by maker and taker. function calculateFillResults( Order memory order, uint256 takerAssetFilledAmount ) internal pure returns (FillResults memory fillResults) { // Compute proportional transfer amounts fillResults.takerAssetFilledAmount = takerAssetFilledAmount; fillResults.makerAssetFilledAmount = safeGetPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.makerAssetAmount ); fillResults.makerFeePaid = safeGetPartialAmountFloor( fillResults.makerAssetFilledAmount, order.makerAssetAmount, order.makerFee ); fillResults.takerFeePaid = safeGetPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.takerFee ); return fillResults; } /// @dev Settles an order by transferring assets between counterparties. /// @param order Order struct containing order specifications. /// @param takerAddress Address selling takerAsset and buying makerAsset. /// @param fillResults Amounts to be filled and fees paid by maker and taker. function settleOrder( LibOrder.Order memory order, address takerAddress, LibFillResults.FillResults memory fillResults ) private { bytes memory ethAssetData = ETH_ASSET_DATA; dispatchTransferFrom( order.makerAssetData, order.makerAddress, takerAddress, fillResults.makerAssetFilledAmount ); dispatchTransferFrom( order.takerAssetData, takerAddress, order.makerAddress, fillResults.takerAssetFilledAmount ); dispatchTransferFrom( ethAssetData, order.makerAddress, order.feeRecipientAddress, fillResults.makerFeePaid ); dispatchTransferFrom( ethAssetData, takerAddress, order.feeRecipientAddress, fillResults.takerFeePaid ); } } // File: @0x/contracts-utils/contracts/src/LibBytes.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; library LibBytes { using LibBytes for bytes; /// @dev Gets the memory address for a byte array. /// @param input Byte array to lookup. /// @return memoryAddress Memory address of byte array. This /// points to the header of the byte array which contains /// the length. function rawAddress(bytes memory input) internal pure returns (uint256 memoryAddress) { assembly { memoryAddress := input } return memoryAddress; } /// @dev Gets the memory address for the contents of a byte array. /// @param input Byte array to lookup. /// @return memoryAddress Memory address of the contents of the byte array. function contentAddress(bytes memory input) internal pure returns (uint256 memoryAddress) { assembly { memoryAddress := add(input, 32) } return memoryAddress; } /// @dev Copies `length` bytes from memory location `source` to `dest`. /// @param dest memory address to copy bytes to. /// @param source memory address to copy bytes from. /// @param length number of bytes to copy. function memCopy( uint256 dest, uint256 source, uint256 length ) internal pure { if (length < 32) { // Handle a partial word by reading destination and masking // off the bits we are interested in. // This correctly handles overlap, zero lengths and source == dest assembly { let mask := sub(exp(256, sub(32, length)), 1) let s := and(mload(source), not(mask)) let d := and(mload(dest), mask) mstore(dest, or(s, d)) } } else { // Skip the O(length) loop when source == dest. if (source == dest) { return; } // For large copies we copy whole words at a time. The final // word is aligned to the end of the range (instead of after the // previous) to handle partial words. So a copy will look like this: // // #### // #### // #### // #### // // We handle overlap in the source and destination range by // changing the copying direction. This prevents us from // overwriting parts of source that we still need to copy. // // This correctly handles source == dest // if (source > dest) { assembly { // We subtract 32 from `sEnd` and `dEnd` because it // is easier to compare with in the loop, and these // are also the addresses we need for copying the // last bytes. length := sub(length, 32) let sEnd := add(source, length) let dEnd := add(dest, length) // Remember the last 32 bytes of source // This needs to be done here and not after the loop // because we may have overwritten the last bytes in // source already due to overlap. let last := mload(sEnd) // Copy whole words front to back // Note: the first check is always true, // this could have been a do-while loop. // solhint-disable-next-line no-empty-blocks for {} lt(source, sEnd) {} { mstore(dest, mload(source)) source := add(source, 32) dest := add(dest, 32) } // Write the last 32 bytes mstore(dEnd, last) } } else { assembly { // We subtract 32 from `sEnd` and `dEnd` because those // are the starting points when copying a word at the end. length := sub(length, 32) let sEnd := add(source, length) let dEnd := add(dest, length) // Remember the first 32 bytes of source // This needs to be done here and not after the loop // because we may have overwritten the first bytes in // source already due to overlap. let first := mload(source) // Copy whole words back to front // We use a signed comparisson here to allow dEnd to become // negative (happens when source and dest < 32). Valid // addresses in local memory will never be larger than // 2**255, so they can be safely re-interpreted as signed. // Note: the first check is always true, // this could have been a do-while loop. // solhint-disable-next-line no-empty-blocks for {} slt(dest, dEnd) {} { mstore(dEnd, mload(sEnd)) sEnd := sub(sEnd, 32) dEnd := sub(dEnd, 32) } // Write the first 32 bytes mstore(dest, first) } } } } /// @dev Returns a slices from a byte array. /// @param b The byte array to take a slice from. /// @param from The starting index for the slice (inclusive). /// @param to The final index for the slice (exclusive). /// @return result The slice containing bytes at indices [from, to) function slice( bytes memory b, uint256 from, uint256 to ) internal pure returns (bytes memory result) { require( from <= to, "FROM_LESS_THAN_TO_REQUIRED" ); require( to < b.length, "TO_LESS_THAN_LENGTH_REQUIRED" ); // Create a new bytes structure and copy contents result = new bytes(to - from); memCopy( result.contentAddress(), b.contentAddress() + from, result.length ); return result; } /// @dev Returns a slice from a byte array without preserving the input. /// @param b The byte array to take a slice from. Will be destroyed in the process. /// @param from The starting index for the slice (inclusive). /// @param to The final index for the slice (exclusive). /// @return result The slice containing bytes at indices [from, to) /// @dev When `from == 0`, the original array will match the slice. In other cases its state will be corrupted. function sliceDestructive( bytes memory b, uint256 from, uint256 to ) internal pure returns (bytes memory result) { require( from <= to, "FROM_LESS_THAN_TO_REQUIRED" ); require( to < b.length, "TO_LESS_THAN_LENGTH_REQUIRED" ); // Create a new bytes structure around [from, to) in-place. assembly { result := add(b, from) mstore(result, sub(to, from)) } return result; } /// @dev Pops the last byte off of a byte array by modifying its length. /// @param b Byte array that will be modified. /// @return The byte that was popped off. function popLastByte(bytes memory b) internal pure returns (bytes1 result) { require( b.length > 0, "GREATER_THAN_ZERO_LENGTH_REQUIRED" ); // Store last byte. result = b[b.length - 1]; assembly { // Decrement length of byte array. let newLen := sub(mload(b), 1) mstore(b, newLen) } return result; } /// @dev Pops the last 20 bytes off of a byte array by modifying its length. /// @param b Byte array that will be modified. /// @return The 20 byte address that was popped off. function popLast20Bytes(bytes memory b) internal pure returns (address result) { require( b.length >= 20, "GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED" ); // Store last 20 bytes. result = readAddress(b, b.length - 20); assembly { // Subtract 20 from byte array length. let newLen := sub(mload(b), 20) mstore(b, newLen) } return result; } /// @dev Tests equality of two byte arrays. /// @param lhs First byte array to compare. /// @param rhs Second byte array to compare. /// @return True if arrays are the same. False otherwise. function equals( bytes memory lhs, bytes memory rhs ) internal pure returns (bool equal) { // Keccak gas cost is 30 + numWords * 6. This is a cheap way to compare. // We early exit on unequal lengths, but keccak would also correctly // handle this. return lhs.length == rhs.length && keccak256(lhs) == keccak256(rhs); } /// @dev Reads an address from a position in a byte array. /// @param b Byte array containing an address. /// @param index Index in byte array of address. /// @return address from byte array. function readAddress( bytes memory b, uint256 index ) internal pure returns (address result) { require( b.length >= index + 20, // 20 is length of address "GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED" ); // Add offset to index: // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index) // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index) index += 20; // Read address from array memory assembly { // 1. Add index to address of bytes array // 2. Load 32-byte word from memory // 3. Apply 20-byte mask to obtain address result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff) } return result; } /// @dev Writes an address into a specific position in a byte array. /// @param b Byte array to insert address into. /// @param index Index in byte array of address. /// @param input Address to put into byte array. function writeAddress( bytes memory b, uint256 index, address input ) internal pure { require( b.length >= index + 20, // 20 is length of address "GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED" ); // Add offset to index: // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index) // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index) index += 20; // Store address into array memory assembly { // The address occupies 20 bytes and mstore stores 32 bytes. // First fetch the 32-byte word where we'll be storing the address, then // apply a mask so we have only the bytes in the word that the address will not occupy. // Then combine these bytes with the address and store the 32 bytes back to memory with mstore. // 1. Add index to address of bytes array // 2. Load 32-byte word from memory // 3. Apply 12-byte mask to obtain extra bytes occupying word of memory where we'll store the address let neighbors := and( mload(add(b, index)), 0xffffffffffffffffffffffff0000000000000000000000000000000000000000 ) // Make sure input address is clean. // (Solidity does not guarantee this) input := and(input, 0xffffffffffffffffffffffffffffffffffffffff) // Store the neighbors and address into memory mstore(add(b, index), xor(input, neighbors)) } } /// @dev Reads a bytes32 value from a position in a byte array. /// @param b Byte array containing a bytes32 value. /// @param index Index in byte array of bytes32 value. /// @return bytes32 value from byte array. function readBytes32( bytes memory b, uint256 index ) internal pure returns (bytes32 result) { require( b.length >= index + 32, "GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED" ); // Arrays are prefixed by a 256 bit length parameter index += 32; // Read the bytes32 from array memory assembly { result := mload(add(b, index)) } return result; } /// @dev Writes a bytes32 into a specific position in a byte array. /// @param b Byte array to insert <input> into. /// @param index Index in byte array of <input>. /// @param input bytes32 to put into byte array. function writeBytes32( bytes memory b, uint256 index, bytes32 input ) internal pure { require( b.length >= index + 32, "GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED" ); // Arrays are prefixed by a 256 bit length parameter index += 32; // Read the bytes32 from array memory assembly { mstore(add(b, index), input) } } /// @dev Reads a uint256 value from a position in a byte array. /// @param b Byte array containing a uint256 value. /// @param index Index in byte array of uint256 value. /// @return uint256 value from byte array. function readUint256( bytes memory b, uint256 index ) internal pure returns (uint256 result) { result = uint256(readBytes32(b, index)); return result; } /// @dev Writes a uint256 into a specific position in a byte array. /// @param b Byte array to insert <input> into. /// @param index Index in byte array of <input>. /// @param input uint256 to put into byte array. function writeUint256( bytes memory b, uint256 index, uint256 input ) internal pure { writeBytes32(b, index, bytes32(input)); } /// @dev Reads an unpadded bytes4 value from a position in a byte array. /// @param b Byte array containing a bytes4 value. /// @param index Index in byte array of bytes4 value. /// @return bytes4 value from byte array. function readBytes4( bytes memory b, uint256 index ) internal pure returns (bytes4 result) { require( b.length >= index + 4, "GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED" ); // Arrays are prefixed by a 32 byte length field index += 32; // Read the bytes4 from array memory assembly { result := mload(add(b, index)) // Solidity does not require us to clean the trailing bytes. // We do it anyway result := and(result, 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000) } return result; } /// @dev Reads nested bytes from a specific position. /// @dev NOTE: the returned value overlaps with the input value. /// Both should be treated as immutable. /// @param b Byte array containing nested bytes. /// @param index Index of nested bytes. /// @return result Nested bytes. function readBytesWithLength( bytes memory b, uint256 index ) internal pure returns (bytes memory result) { // Read length of nested bytes uint256 nestedBytesLength = readUint256(b, index); index += 32; // Assert length of <b> is valid, given // length of nested bytes require( b.length >= index + nestedBytesLength, "GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED" ); // Return a pointer to the byte array as it exists inside `b` assembly { result := add(b, index) } return result; } /// @dev Inserts bytes at a specific position in a byte array. /// @param b Byte array to insert <input> into. /// @param index Index in byte array of <input>. /// @param input bytes to insert. function writeBytesWithLength( bytes memory b, uint256 index, bytes memory input ) internal pure { // Assert length of <b> is valid, given // length of input require( b.length >= index + 32 + input.length, // 32 bytes to store length "GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED" ); // Copy <input> into <b> memCopy( b.contentAddress() + index, input.rawAddress(), // includes length of <input> input.length + 32 // +32 bytes to store <input> length ); } /// @dev Performs a deep copy of a byte array onto another byte array of greater than or equal length. /// @param dest Byte array that will be overwritten with source bytes. /// @param source Byte array to copy onto dest bytes. function deepCopyBytes( bytes memory dest, bytes memory source ) internal pure { uint256 sourceLen = source.length; // Dest length must be >= source length, or some bytes would not be copied. require( dest.length >= sourceLen, "GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED" ); memCopy( dest.contentAddress(), source.contentAddress(), sourceLen ); } } // File: contracts/exchange/interfaces/IWallet.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract IWallet { /// @dev Verifies that a signature is valid. /// @param hash Message hash that is signed. /// @param signature Proof of signing. /// @return Validity of order signature. function isValidSignature( bytes32 hash, bytes signature ) external view returns (bool isValid); } // File: contracts/exchange/interfaces/IValidator.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract IValidator { /// @dev Verifies that a signature is valid. /// @param hash Message hash that is signed. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof of signing. /// @return Validity of order signature. function isValidSignature( bytes32 hash, address signerAddress, bytes signature ) external view returns (bool isValid); } // File: contracts/exchange/MixinSignatureValidator.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MixinSignatureValidator is ReentrancyGuard, MSignatureValidator, MTransactions { using LibBytes for bytes; // Mapping of hash => signer => signed mapping (bytes32 => mapping (address => bool)) public preSigned; // Mapping of signer => validator => approved mapping (address => mapping (address => bool)) public allowedValidators; /// @dev Approves a hash on-chain using any valid signature type. /// After presigning a hash, the preSign signature type will become valid for that hash and signer. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof that the hash has been signed by signer. function preSign( bytes32 hash, address signerAddress, bytes signature ) external { if (signerAddress != msg.sender) { require( isValidSignature( hash, signerAddress, signature ), "INVALID_SIGNATURE" ); } preSigned[hash][signerAddress] = true; } /// @dev Approves/unnapproves a Validator contract to verify signatures on signer's behalf. /// @param validatorAddress Address of Validator contract. /// @param approval Approval or disapproval of Validator contract. function setSignatureValidatorApproval( address validatorAddress, bool approval ) external nonReentrant { address signerAddress = getCurrentContextAddress(); allowedValidators[signerAddress][validatorAddress] = approval; emit SignatureValidatorApproval( signerAddress, validatorAddress, approval ); } /// @dev Verifies that a hash has been signed by the given signer. /// @param hash Any 32 byte hash. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof that the hash has been signed by signer. /// @return True if the address recovered from the provided signature matches the input signer address. function isValidSignature( bytes32 hash, address signerAddress, bytes memory signature ) public view returns (bool isValid) { require( signature.length > 0, "LENGTH_GREATER_THAN_0_REQUIRED" ); // Pop last byte off of signature byte array. uint8 signatureTypeRaw = uint8(signature.popLastByte()); // Ensure signature is supported require( signatureTypeRaw < uint8(SignatureType.NSignatureTypes), "SIGNATURE_UNSUPPORTED" ); SignatureType signatureType = SignatureType(signatureTypeRaw); // Variables are not scoped in Solidity. uint8 v; bytes32 r; bytes32 s; address recovered; // Always illegal signature. // This is always an implicit option since a signer can create a // signature array with invalid type or length. We may as well make // it an explicit option. This aids testing and analysis. It is // also the initialization value for the enum type. if (signatureType == SignatureType.Illegal) { revert("SIGNATURE_ILLEGAL"); // Always invalid signature. // Like Illegal, this is always implicitly available and therefore // offered explicitly. It can be implicitly created by providing // a correctly formatted but incorrect signature. } else if (signatureType == SignatureType.Invalid) { require( signature.length == 0, "LENGTH_0_REQUIRED" ); isValid = false; return isValid; // Signature using EIP712 } else if (signatureType == SignatureType.EIP712) { require( signature.length == 65, "LENGTH_65_REQUIRED" ); v = uint8(signature[0]); r = signature.readBytes32(1); s = signature.readBytes32(33); recovered = ecrecover( hash, v, r, s ); isValid = signerAddress == recovered; return isValid; // Signed using web3.eth_sign } else if (signatureType == SignatureType.EthSign) { require( signature.length == 65, "LENGTH_65_REQUIRED" ); v = uint8(signature[0]); r = signature.readBytes32(1); s = signature.readBytes32(33); recovered = ecrecover( keccak256(abi.encodePacked( "\x19Ethereum Signed Message:\n32", hash )), v, r, s ); isValid = signerAddress == recovered; return isValid; // Signature verified by wallet contract. // If used with an order, the maker of the order is the wallet contract. } else if (signatureType == SignatureType.Wallet) { isValid = isValidWalletSignature( hash, signerAddress, signature ); return isValid; // Signature verified by validator contract. // If used with an order, the maker of the order can still be an EOA. // A signature using this type should be encoded as: // | Offset | Length | Contents | // | 0x00 | x | Signature to validate | // | 0x00 + x | 20 | Address of validator contract | // | 0x14 + x | 1 | Signature type is always "\x06" | } else if (signatureType == SignatureType.Validator) { // Pop last 20 bytes off of signature byte array. address validatorAddress = signature.popLast20Bytes(); // Ensure signer has approved validator. if (!allowedValidators[signerAddress][validatorAddress]) { return false; } isValid = isValidValidatorSignature( validatorAddress, hash, signerAddress, signature ); return isValid; // Signer signed hash previously using the preSign function. } else if (signatureType == SignatureType.PreSigned) { isValid = preSigned[hash][signerAddress]; return isValid; } // Anything else is illegal (We do not return false because // the signature may actually be valid, just not in a format // that we currently support. In this case returning false // may lead the caller to incorrectly believe that the // signature was invalid.) revert("SIGNATURE_UNSUPPORTED"); } /// @dev Verifies signature using logic defined by Wallet contract. /// @param hash Any 32 byte hash. /// @param walletAddress Address that should have signed the given hash /// and defines its own signature verification method. /// @param signature Proof that the hash has been signed by signer. /// @return True if signature is valid for given wallet.. function isValidWalletSignature( bytes32 hash, address walletAddress, bytes signature ) internal view returns (bool isValid) { bytes memory calldata = abi.encodeWithSelector( IWallet(walletAddress).isValidSignature.selector, hash, signature ); bytes32 magic_salt = bytes32(bytes4(keccak256("isValidWalletSignature(bytes32,address,bytes)"))); assembly { if iszero(extcodesize(walletAddress)) { // Revert with `Error("WALLET_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000) mstore(96, 0) revert(0, 100) } let cdStart := add(calldata, 32) let success := staticcall( gas, // forward all gas walletAddress, // address of Wallet contract cdStart, // pointer to start of input mload(calldata), // length of input cdStart, // write output over input 32 // output size is 32 bytes ) if iszero(eq(returndatasize(), 32)) { // Revert with `Error("WALLET_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000) mstore(96, 0) revert(0, 100) } switch success case 0 { // Revert with `Error("WALLET_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000) mstore(96, 0) revert(0, 100) } case 1 { // Signature is valid if call did not revert and returned true isValid := eq( and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000), and(magic_salt, 0xffffffff00000000000000000000000000000000000000000000000000000000) ) } } return isValid; } /// @dev Verifies signature using logic defined by Validator contract. /// @param validatorAddress Address of validator contract. /// @param hash Any 32 byte hash. /// @param signerAddress Address that should have signed the given hash. /// @param signature Proof that the hash has been signed by signer. /// @return True if the address recovered from the provided signature matches the input signer address. function isValidValidatorSignature( address validatorAddress, bytes32 hash, address signerAddress, bytes signature ) internal view returns (bool isValid) { bytes memory calldata = abi.encodeWithSelector( IValidator(signerAddress).isValidSignature.selector, hash, signerAddress, signature ); bytes32 magic_salt = bytes32(bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)"))); assembly { if iszero(extcodesize(validatorAddress)) { // Revert with `Error("VALIDATOR_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000) mstore(96, 0) revert(0, 100) } let cdStart := add(calldata, 32) let success := staticcall( gas, // forward all gas validatorAddress, // address of Validator contract cdStart, // pointer to start of input mload(calldata), // length of input cdStart, // write output over input 32 // output size is 32 bytes ) if iszero(eq(returndatasize(), 32)) { // Revert with `Error("VALIDATOR_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000) mstore(96, 0) revert(0, 100) } switch success case 0 { // Revert with `Error("VALIDATOR_ERROR")` mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000) mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000) mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000) mstore(96, 0) revert(0, 100) } case 1 { // Signature is valid if call did not revert and returned true isValid := eq( and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000), and(magic_salt, 0xffffffff00000000000000000000000000000000000000000000000000000000) ) } } return isValid; } } // File: contracts/exchange/MixinWrapperFunctions.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MixinWrapperFunctions is ReentrancyGuard, LibMath, MExchangeCore { /// @dev Synchronously cancels multiple orders in a single transaction. /// @param orders Array of order specifications. function batchCancelOrders(LibOrder.Order[] memory orders) public nonReentrant { uint256 ordersLength = orders.length; for (uint256 i = 0; i != ordersLength; i++) { cancelOrderInternal(orders[i]); } } /// @dev Fetches information for all passed in orders. /// @param orders Array of order specifications. /// @return Array of OrderInfo instances that correspond to each order. function getOrdersInfo(LibOrder.Order[] memory orders) public view returns (LibOrder.OrderInfo[] memory) { uint256 ordersLength = orders.length; LibOrder.OrderInfo[] memory ordersInfo = new LibOrder.OrderInfo[](ordersLength); for (uint256 i = 0; i != ordersLength; i++) { ordersInfo[i] = getOrderInfo(orders[i]); } return ordersInfo; } } // File: @0x/contracts-utils/contracts/src/interfaces/IOwnable.sol pragma solidity ^0.4.24; contract IOwnable { function transferOwnership(address newOwner) public; } // File: @0x/contracts-asset-proxy/contracts/src/interfaces/IAuthorizable.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract IAuthorizable is IOwnable { /// @dev Authorizes an address. /// @param target Address to authorize. function addAuthorizedAddress(address target) external; /// @dev Removes authorizion of an address. /// @param target Address to remove authorization from. function removeAuthorizedAddress(address target) external; /// @dev Removes authorizion of an address. /// @param target Address to remove authorization from. /// @param index Index of target in authorities array. function removeAuthorizedAddressAtIndex( address target, uint256 index ) external; /// @dev Gets all authorized addresses. /// @return Array of authorized addresses. function getAuthorizedAddresses() external view returns (address[] memory); } // File: @0x/contracts-asset-proxy/contracts/src/interfaces/IAssetProxy.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.4.24; contract IAssetProxy is IAuthorizable { /// @dev Transfers assets. Either succeeds or throws. /// @param assetData Byte array encoded for the respective asset proxy. /// @param from Address to transfer asset from. /// @param to Address to transfer asset to. /// @param amount Amount of asset to transfer. function transferFrom( bytes assetData, address from, address to, uint256 amount ) external; /// @dev Gets the proxy id associated with the proxy address. /// @return Proxy id. function getProxyId() external pure returns (bytes4); } // File: contracts/exchange/MixinAssetProxyDispatcher.sol /* Modified by Metaps Alpha Inc. Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MixinAssetProxyDispatcher is DepositManager, LibConstants, MAssetProxyDispatcher { // Mapping from Asset Proxy Id's to their respective Asset Proxy mapping (bytes4 => IAssetProxy) public assetProxies; /// @dev Registers an asset proxy to its asset proxy id. /// Once an asset proxy is registered, it cannot be unregistered. /// @param assetProxy Address of new asset proxy to register. function registerAssetProxy(address assetProxy) external onlyOwner { IAssetProxy assetProxyContract = IAssetProxy(assetProxy); // Ensure that no asset proxy exists with current id. bytes4 assetProxyId = assetProxyContract.getProxyId(); address currentAssetProxy = assetProxies[assetProxyId]; require( currentAssetProxy == address(0), "ASSET_PROXY_ALREADY_EXISTS" ); // Add asset proxy and log registration. assetProxies[assetProxyId] = assetProxyContract; emit AssetProxyRegistered( assetProxyId, assetProxy ); } /// @dev Gets an asset proxy. /// @param assetProxyId Id of the asset proxy. /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. function getAssetProxy(bytes4 assetProxyId) external view returns (address) { return assetProxies[assetProxyId]; } /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws. /// @param assetData Byte array encoded for the asset. /// @param from Address to transfer token from. /// @param to Address to transfer token to. /// @param amount Amount of token to transfer. function dispatchTransferFrom( bytes memory assetData, address from, address to, uint256 amount ) internal { // Do nothing if no amount should be transferred. if (amount > 0 && from != to) { // Ensure assetData length is valid require( assetData.length > 3, "LENGTH_GREATER_THAN_3_REQUIRED" ); // miime - If assetData is for ETH, send ETH from deposit. if (keccak256(assetData) == KECCAK256_ETH_ASSET_DATA) { require( depositAmount[from] >= amount, "DEPOSIT_AMOUNT_IS_INSUFFICIENT" ); uint256 afterBalance = safeSub(depositAmount[from], amount); depositAmount[from] = afterBalance; if (to != address(this)) { if (!to.call.gas(TRANSFER_GAS_LIMIT).value(amount)()) { revert("ETH_SENDING_FAILED"); } } return; } // Lookup assetProxy. We do not use `LibBytes.readBytes4` for gas efficiency reasons. bytes4 assetProxyId; assembly { assetProxyId := and(mload( add(assetData, 32)), 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 ) } address assetProxy = assetProxies[assetProxyId]; // Ensure that assetProxy exists require( assetProxy != address(0), "ASSET_PROXY_DOES_NOT_EXIST" ); // We construct calldata for the `assetProxy.transferFrom` ABI. // The layout of this calldata is in the table below. // // | Area | Offset | Length | Contents | // | -------- |--------|---------|-------------------------------------------- | // | Header | 0 | 4 | function selector | // | Params | | 4 * 32 | function parameters: | // | | 4 | | 1. offset to assetData (*) | // | | 36 | | 2. from | // | | 68 | | 3. to | // | | 100 | | 4. amount | // | Data | | | assetData: | // | | 132 | 32 | assetData Length | // | | 164 | ** | assetData Contents | assembly { /////// Setup State /////// // `cdStart` is the start of the calldata for `assetProxy.transferFrom` (equal to free memory ptr). let cdStart := mload(64) // `dataAreaLength` is the total number of words needed to store `assetData` // As-per the ABI spec, this value is padded up to the nearest multiple of 32, // and includes 32-bytes for length. let dataAreaLength := and(add(mload(assetData), 63), 0xFFFFFFFFFFFE0) // `cdEnd` is the end of the calldata for `assetProxy.transferFrom`. let cdEnd := add(cdStart, add(132, dataAreaLength)) /////// Setup Header Area /////// // This area holds the 4-byte `transferFromSelector`. // bytes4(keccak256("transferFrom(bytes,address,address,uint256)")) = 0xa85e59e4 mstore(cdStart, 0xa85e59e400000000000000000000000000000000000000000000000000000000) /////// Setup Params Area /////// // Each parameter is padded to 32-bytes. The entire Params Area is 128 bytes. // Notes: // 1. The offset to `assetData` is the length of the Params Area (128 bytes). // 2. A 20-byte mask is applied to addresses to zero-out the unused bytes. mstore(add(cdStart, 4), 128) mstore(add(cdStart, 36), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) mstore(add(cdStart, 68), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) mstore(add(cdStart, 100), amount) /////// Setup Data Area /////// // This area holds `assetData`. let dataArea := add(cdStart, 132) // solhint-disable-next-line no-empty-blocks for {} lt(dataArea, cdEnd) {} { mstore(dataArea, mload(assetData)) dataArea := add(dataArea, 32) assetData := add(assetData, 32) } /////// Call `assetProxy.transferFrom` using the constructed calldata /////// let success := call( gas, // forward all gas assetProxy, // call address of asset proxy 0, // don't send any ETH cdStart, // pointer to start of input sub(cdEnd, cdStart), // length of input cdStart, // write output over input 512 // reserve 512 bytes for output ) if iszero(success) { revert(cdStart, returndatasize()) } } } } } // File: @0x/contracts-exchange-libs/contracts/src/LibExchangeErrors.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // solhint-disable pragma solidity ^0.4.24; /// @dev This contract documents the revert reasons used in the Exchange contract. /// This contract is intended to serve as a reference, but is not actually used for efficiency reasons. contract LibExchangeErrors { /// Order validation errors /// string constant ORDER_UNFILLABLE = "ORDER_UNFILLABLE"; // Order cannot be filled. string constant INVALID_MAKER = "INVALID_MAKER"; // Invalid makerAddress. string constant INVALID_TAKER = "INVALID_TAKER"; // Invalid takerAddress. string constant INVALID_SENDER = "INVALID_SENDER"; // Invalid `msg.sender`. string constant INVALID_ORDER_SIGNATURE = "INVALID_ORDER_SIGNATURE"; // Signature validation failed. /// fillOrder validation errors /// string constant INVALID_TAKER_AMOUNT = "INVALID_TAKER_AMOUNT"; // takerAssetFillAmount cannot equal 0. string constant ROUNDING_ERROR = "ROUNDING_ERROR"; // Rounding error greater than 0.1% of takerAssetFillAmount. /// Signature validation errors /// string constant INVALID_SIGNATURE = "INVALID_SIGNATURE"; // Signature validation failed. string constant SIGNATURE_ILLEGAL = "SIGNATURE_ILLEGAL"; // Signature type is illegal. string constant SIGNATURE_UNSUPPORTED = "SIGNATURE_UNSUPPORTED"; // Signature type unsupported. /// cancelOrdersUptTo errors /// string constant INVALID_NEW_ORDER_EPOCH = "INVALID_NEW_ORDER_EPOCH"; // Specified salt must be greater than or equal to existing orderEpoch. /// fillOrKillOrder errors /// string constant COMPLETE_FILL_FAILED = "COMPLETE_FILL_FAILED"; // Desired takerAssetFillAmount could not be completely filled. /// matchOrders errors /// string constant NEGATIVE_SPREAD_REQUIRED = "NEGATIVE_SPREAD_REQUIRED"; // Matched orders must have a negative spread. /// Transaction errors /// string constant REENTRANCY_ILLEGAL = "REENTRANCY_ILLEGAL"; // Recursive reentrancy is not allowed. string constant INVALID_TX_HASH = "INVALID_TX_HASH"; // Transaction has already been executed. string constant INVALID_TX_SIGNATURE = "INVALID_TX_SIGNATURE"; // Signature validation failed. string constant FAILED_EXECUTION = "FAILED_EXECUTION"; // Transaction execution failed. /// registerAssetProxy errors /// string constant ASSET_PROXY_ALREADY_EXISTS = "ASSET_PROXY_ALREADY_EXISTS"; // AssetProxy with same id already exists. /// dispatchTransferFrom errors /// string constant ASSET_PROXY_DOES_NOT_EXIST = "ASSET_PROXY_DOES_NOT_EXIST"; // No assetProxy registered at given id. string constant TRANSFER_FAILED = "TRANSFER_FAILED"; // Asset transfer unsuccesful. /// Length validation errors /// string constant LENGTH_GREATER_THAN_0_REQUIRED = "LENGTH_GREATER_THAN_0_REQUIRED"; // Byte array must have a length greater than 0. string constant LENGTH_GREATER_THAN_3_REQUIRED = "LENGTH_GREATER_THAN_3_REQUIRED"; // Byte array must have a length greater than 3. string constant LENGTH_0_REQUIRED = "LENGTH_0_REQUIRED"; // Byte array must have a length of 0. string constant LENGTH_65_REQUIRED = "LENGTH_65_REQUIRED"; // Byte array must have a length of 65. } // File: contracts/exchange/MixinTransactions.sol /* Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; contract MixinTransactions is LibEIP712, MSignatureValidator, MTransactions { // Mapping of transaction hash => executed // This prevents transactions from being executed more than once. mapping (bytes32 => bool) public transactions; // Address of current transaction signer address public currentContextAddress; /// @dev Executes an exchange method call in the context of signer. /// @param salt Arbitrary number to ensure uniqueness of transaction hash. /// @param signerAddress Address of transaction signer. /// @param data AbiV2 encoded calldata. /// @param signature Proof of signer transaction by signer. function executeTransaction( uint256 salt, address signerAddress, bytes data, bytes signature ) external { // Prevent reentrancy require( currentContextAddress == address(0), "REENTRANCY_ILLEGAL" ); bytes32 transactionHash = hashEIP712Message(hashZeroExTransaction( salt, signerAddress, data )); // Validate transaction has not been executed require( !transactions[transactionHash], "INVALID_TX_HASH" ); // Transaction always valid if signer is sender of transaction if (signerAddress != msg.sender) { // Validate signature require( isValidSignature( transactionHash, signerAddress, signature ), "INVALID_TX_SIGNATURE" ); // Set the current transaction signer currentContextAddress = signerAddress; } // Execute transaction transactions[transactionHash] = true; require( address(this).delegatecall(data), "FAILED_EXECUTION" ); // Reset current transaction signer if it was previously updated if (signerAddress != msg.sender) { currentContextAddress = address(0); } } /// @dev Calculates EIP712 hash of the Transaction. /// @param salt Arbitrary number to ensure uniqueness of transaction hash. /// @param signerAddress Address of transaction signer. /// @param data AbiV2 encoded calldata. /// @return EIP712 hash of the Transaction. function hashZeroExTransaction( uint256 salt, address signerAddress, bytes memory data ) internal pure returns (bytes32 result) { bytes32 schemaHash = EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH; bytes32 dataHash = keccak256(data); // Assembly for more efficiently computing: // keccak256(abi.encodePacked( // EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH, // salt, // bytes32(signerAddress), // keccak256(data) // )); assembly { // Load free memory pointer let memPtr := mload(64) mstore(memPtr, schemaHash) // hash of schema mstore(add(memPtr, 32), salt) // salt mstore(add(memPtr, 64), and(signerAddress, 0xffffffffffffffffffffffffffffffffffffffff)) // signerAddress mstore(add(memPtr, 96), dataHash) // hash of data // Compute hash result := keccak256(memPtr, 128) } return result; } /// @dev The current function will be called in the context of this address (either 0x transaction signer or `msg.sender`). /// If calling a fill function, this address will represent the taker. /// If calling a cancel function, this address will represent the maker. /// @return Signer of 0x transaction if entry point is `executeTransaction`. /// `msg.sender` if entry point is any other function. function getCurrentContextAddress() internal view returns (address) { address currentContextAddress_ = currentContextAddress; address contextAddress = currentContextAddress_ == address(0) ? msg.sender : currentContextAddress_; return contextAddress; } } // File: contracts/exchange/Exchange.sol /* Modified by Metaps Alpha Inc. Copyright 2018 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.24; // solhint-disable no-empty-blocks contract Exchange is MixinExchangeCore, MixinSignatureValidator, MixinTransactions, MixinWrapperFunctions, MixinAssetProxyDispatcher { string constant public VERSION = "2.0.1-alpha-miime"; // Mixins are instantiated in the order they are inherited constructor () public MixinExchangeCore() MixinSignatureValidator() MixinTransactions() MixinAssetProxyDispatcher() MixinWrapperFunctions() {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"orderHash","type":"bytes32"},{"name":"toAddress","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"filled","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"cancelled","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"},{"name":"","type":"address"}],"name":"orderToDepositAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"},{"name":"signerAddress","type":"address"},{"name":"signature","type":"bytes"}],"name":"preSign","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"TRANSFER_GAS_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes4"}],"name":"assetProxies","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"KECCAK256_ETH_ASSET_DATA","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"orders","type":"tuple[]"}],"name":"batchCancelOrders","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"targetOrderEpoch","type":"uint256"}],"name":"cancelOrdersUpTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"depositAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"assetProxyId","type":"bytes4"}],"name":"getAssetProxy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"}],"name":"addWithdrawOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"transactions","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"validatorAddress","type":"address"},{"name":"approval","type":"bool"}],"name":"setSignatureValidatorApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowedValidators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"orders","type":"tuple[]"}],"name":"getOrdersInfo","outputs":[{"components":[{"name":"orderStatus","type":"uint8"},{"name":"orderHash","type":"bytes32"},{"name":"orderTakerAssetFilledAmount","type":"uint256"}],"name":"","type":"tuple[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"},{"name":"","type":"address"}],"name":"preSigned","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ETH_ASSET_DATA","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"}],"name":"removeWithdrawOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"hash","type":"bytes32"},{"name":"signerAddress","type":"address"},{"name":"signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"name":"isValid","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"orderHash","type":"bytes32"}],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"order","type":"tuple"},{"name":"takerAssetFillAmount","type":"uint256"},{"name":"signature","type":"bytes"}],"name":"fillOrder","outputs":[{"components":[{"name":"makerAssetFilledAmount","type":"uint256"},{"name":"takerAssetFilledAmount","type":"uint256"},{"name":"makerFeePaid","type":"uint256"},{"name":"takerFeePaid","type":"uint256"}],"name":"fillResults","type":"tuple"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"salt","type":"uint256"},{"name":"signerAddress","type":"address"},{"name":"data","type":"bytes"},{"name":"signature","type":"bytes"}],"name":"executeTransaction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"isWithdrawOperator","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"assetProxy","type":"address"}],"name":"registerAssetProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"order","type":"tuple"}],"name":"getOrderInfo","outputs":[{"components":[{"name":"orderStatus","type":"uint8"},{"name":"orderHash","type":"bytes32"},{"name":"orderTakerAssetFilledAmount","type":"uint256"}],"name":"orderInfo","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"order","type":"tuple"}],"name":"cancelOrder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"orderEpoch","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"EIP712_DOMAIN_HASH","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentContextAddress","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"},{"constant":false,"inputs":[{"name":"newOrderHash","type":"bytes32"},{"name":"newOfferAmount","type":"uint256"},{"components":[{"name":"makerAddress","type":"address"},{"name":"takerAddress","type":"address"},{"name":"feeRecipientAddress","type":"address"},{"name":"senderAddress","type":"address"},{"name":"makerAssetAmount","type":"uint256"},{"name":"takerAssetAmount","type":"uint256"},{"name":"makerFee","type":"uint256"},{"name":"takerFee","type":"uint256"},{"name":"expirationTimeSeconds","type":"uint256"},{"name":"salt","type":"uint256"},{"name":"makerAssetData","type":"bytes"},{"name":"takerAssetData","type":"bytes"}],"name":"orderToBeCanceled","type":"tuple"}],"name":"updateOrder","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"withdrawOperators","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"signerAddress","type":"address"},{"indexed":true,"name":"validatorAddress","type":"address"},{"indexed":false,"name":"approved","type":"bool"}],"name":"SignatureValidatorApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"makerAddress","type":"address"},{"indexed":true,"name":"feeRecipientAddress","type":"address"},{"indexed":false,"name":"takerAddress","type":"address"},{"indexed":false,"name":"senderAddress","type":"address"},{"indexed":false,"name":"makerAssetFilledAmount","type":"uint256"},{"indexed":false,"name":"takerAssetFilledAmount","type":"uint256"},{"indexed":false,"name":"makerFeePaid","type":"uint256"},{"indexed":false,"name":"takerFeePaid","type":"uint256"},{"indexed":true,"name":"orderHash","type":"bytes32"},{"indexed":false,"name":"makerAssetData","type":"bytes"},{"indexed":false,"name":"takerAssetData","type":"bytes"}],"name":"Fill","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"makerAddress","type":"address"},{"indexed":true,"name":"feeRecipientAddress","type":"address"},{"indexed":false,"name":"senderAddress","type":"address"},{"indexed":true,"name":"orderHash","type":"bytes32"},{"indexed":false,"name":"makerAssetData","type":"bytes"},{"indexed":false,"name":"takerAssetData","type":"bytes"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"makerAddress","type":"address"},{"indexed":true,"name":"senderAddress","type":"address"},{"indexed":false,"name":"orderEpoch","type":"uint256"}],"name":"CancelUpTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"toAddress","type":"address"},{"indexed":true,"name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"bytes4"},{"indexed":false,"name":"assetProxy","type":"address"}],"name":"AssetProxyRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"orderHash","type":"bytes32"},{"indexed":true,"name":"senderAddress","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"newOrderHash","type":"bytes32"},{"indexed":false,"name":"newAmount","type":"uint256"},{"indexed":true,"name":"oldOrderHash","type":"bytes32"},{"indexed":false,"name":"oldAmount","type":"uint256"},{"indexed":true,"name":"senderAddress","type":"address"}],"name":"DepositChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"orderHash","type":"bytes32"},{"indexed":true,"name":"toAddress","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":true,"name":"caller","type":"address"}],"name":"WithdrawOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":true,"name":"caller","type":"address"}],"name":"WithdrawOperatorRemoved","type":"event"}]
Contract Creation Code
60806040526003805460ff191690553480156200001b57600080fd5b5060008054600160a060020a03191633179055604080517f454950373132446f6d61696e28000000000000000000000000000000000000006020808301919091527f737472696e67206e616d652c0000000000000000000000000000000000000000602d8301527f737472696e672076657273696f6e2c000000000000000000000000000000000060398301527f6164647265737320766572696679696e67436f6e74726163740000000000000060488301527f2900000000000000000000000000000000000000000000000000000000000000606183015282516042818403018152606290920192839052815191929182918401908083835b60208310620001365780518252601f19909201916020918201910162000115565b51815160209384036101000a6000190180199092169116179052604080519290940182900382208285018552600b8084527f30782050726f746f636f6c000000000000000000000000000000000000000000928401928352945190965091945090928392508083835b60208310620001c05780518252601f1990920191602091820191016200019f565b51815160209384036101000a600019018019909216911617905260408051929094018290038220828501855260018084527f3200000000000000000000000000000000000000000000000000000000000000928401928352945190965091945090928392508083835b602083106200024a5780518252601f19909201916020918201910162000229565b51815160209384036101000a6000190180199092169116179052604080519290940182900382208282019890985281840196909652606081019690965250306080808701919091528151808703909101815260a09095019081905284519093849350850191508083835b60208310620002d55780518252601f199092019160209182019101620002b4565b5181516000196020949094036101000a9390930192831692191691909117905260405192018290039091206006555050506149e380620003166000396000f3006080604052600436106101c15763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631b258d5081146101c6578063288cdc91146101e85780632ac126221461021e5780632c45ed781461024b5780633683ef8e1461026b57806338a66be21461028b5780633fd3c997146102a057806343c71aff146102cd5780634ac14782146102e25780634f9559b11461030257806350f62da714610322578063607041081461034257806360ac85d61461036f578063642f2eaf1461038f57806377fcce68146103af5780637b8e3514146103cf5780637e9d74dc146103ef57806382c174d01461041c57806389d807fd1461043c5780638da5cb5b1461045e57806392b34620146104735780639363470214610493578063b214faa5146104b3578063b4be83d5146104c6578063bfc8bfce146104e6578063c3e562f514610506578063c585bb9314610526578063c75e0a8114610546578063d46b02c314610573578063d9bfa73e14610593578063e306f779146105b3578063eea086ba146105c8578063f2fde38b146105dd578063f3f6c9c8146105fd578063fa0aba3214610610578063ffa1ad7414610630575b600080fd5b3480156101d257600080fd5b506101e66101e1366004613914565b610645565b005b3480156101f457600080fd5b506102086102033660046138f6565b6106e3565b604051610215919061456d565b60405180910390f35b34801561022a57600080fd5b5061023e6102393660046138f6565b6106f5565b604051610215919061455f565b34801561025757600080fd5b50610208610266366004613914565b61070a565b34801561027757600080fd5b506101e6610286366004613933565b610727565b34801561029757600080fd5b506102086107c5565b3480156102ac57600080fd5b506102c06102bb366004613a5b565b6107cc565b6040516102159190614629565b3480156102d957600080fd5b506102086107e7565b3480156102ee57600080fd5b506101e66102fd3660046138c1565b610867565b34801561030e57600080fd5b506101e661031d3660046138f6565b6108d6565b34801561032e57600080fd5b5061020861033d366004613839565b6109fc565b34801561034e57600080fd5b5061036261035d366004613a5b565b610a0e565b604051610215919061447f565b34801561037b57600080fd5b506101e661038a366004613839565b610a37565b34801561039b57600080fd5b5061023e6103aa3660046138f6565b610b3a565b3480156103bb57600080fd5b506101e66103ca366004613891565b610b4f565b3480156103db57600080fd5b5061023e6103ea366004613857565b610c0d565b3480156103fb57600080fd5b5061040f61040a3660046138c1565b610c2d565b604051610215919061454e565b34801561042857600080fd5b5061023e610437366004613914565b610cca565b34801561044857600080fd5b50610451610cea565b6040516102159190614618565b34801561046a57600080fd5b50610362610d15565b34801561047f57600080fd5b506101e661048e366004613839565b610d24565b34801561049f57600080fd5b5061023e6104ae36600461399b565b610eb8565b6101e66104c13660046138f6565b6112c5565b6104d96104d4366004613acc565b611310565b6040516102159190614887565b3480156104f257600080fd5b506101e6610501366004613b15565b611368565b34801561051257600080fd5b5061023e610521366004613839565b61153d565b34801561053257600080fd5b506101e6610541366004613839565b611552565b34801561055257600080fd5b50610566610561366004613a97565b6116de565b6040516102159190614895565b34801561057f57600080fd5b506101e661058e366004613a97565b6117cb565b34801561059f57600080fd5b506102086105ae366004613857565b61182d565b3480156105bf57600080fd5b5061020861184a565b3480156105d457600080fd5b50610362611850565b3480156105e957600080fd5b506101e66105f8366004613839565b61185f565b6101e661060b366004613a00565b61191f565b34801561061c57600080fd5b5061036261062b3660046138f6565b61199e565b34801561063c57600080fd5b506104516119c6565b60035460ff16156106745760405160e560020a62461bcd02815260040161066b906147e7565b60405180910390fd5b6003805460ff1916600117905533600090815260026020526040902054819060ff16806106a95750600160a060020a03811633145b15156106ca5760405160e560020a62461bcd02815260040161066b90614867565b6106d483836119fd565b50506003805460ff1916905550565b60076020526000908152604090205481565b60086020526000908152604090205460ff1681565b600560209081526000928352604080842090915290825290205481565b600160a060020a038316331461079357610772848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843750610eb8945050505050565b15156107935760405160e560020a62461bcd02815260040161066b90614717565b50506000918252600a60209081526040808420600160a060020a0390931684529190529020805460ff19166001179055565b620493e081565b600e60205260009081526040902054600160a060020a031681565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106108375780518252601f199092019160209182019101610818565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902081565b600354600090819060ff16156108925760405160e560020a62461bcd02815260040161066b906147e7565b50506003805460ff19166001179055805160005b8082146106d4576108cd83828151811015156108be57fe5b90602001906020020151611b09565b506001016108a6565b60035460009081908190819060ff16156109055760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561091a611b42565b9350600160a060020a03841633146109325733610935565b60005b600160a060020a0380861660009081526009602090815260408083209385168352929052205490935060018601925090508082116109885760405160e560020a62461bcd02815260040161066b906147a7565b600160a060020a0380851660008181526009602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f0906109e390869061456d565b60405180910390a350506003805460ff19169055505050565b60046020526000908152604090205481565b600160e060020a031981166000908152600e6020526040902054600160a060020a03165b919050565b600054600160a060020a03163314610a645760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03811660009081526002602052604090205460ff1615610aa05760405160e560020a62461bcd02815260040161066b906146d7565b600160a060020a038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff191684179055513392917f0da9caec92a6633ec5303ab10a916b8b9259517e13192c0aec8d6bf3f7fb350b91a350565b600c6020526000908152604090205460ff1681565b60035460009060ff1615610b785760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff19166001179055610b8d611b42565b600160a060020a038181166000818152600b602090815260408083209489168084529490915290819020805460ff19168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610bf690869061455f565b60405180910390a350506003805460ff1916905550565b600b60209081526000928352604080842090915290825290205460ff1681565b60606000606060008451925082604051908082528060200260200182016040528015610c7357816020015b610c60613522565b815260200190600190039081610c585790505b509150600090505b808314610cc257610ca28582815181101515610c9357fe5b906020019060200201516116de565b8282815181101515610cb057fe5b60209081029091010152600101610c7b565b509392505050565b600a60209081526000928352604080842090915290825290205460ff1681565b6060604051908101604052806024815260200160e460020a630f47261b028152602001600081525081565b600054600160a060020a031681565b60008054600160a060020a03163314610d525760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03821660009081526002602052604090205460ff161515610d8f5760405160e560020a62461bcd02815260040161066b90614827565b50600160a060020a0381166000908152600260205260408120805460ff191690555b600154811015610e7e5781600160a060020a0316600182815481101515610dd457fe5b600091825260209091200154600160a060020a03161415610e7657600180546000198101908110610e0157fe5b60009182526020909120015460018054600160a060020a039092169183908110610e2757fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600180546000190190610e709082613542565b50610e7e565b600101610db1565b6040513390600160a060020a038416907fc03f62302eb85eef9129d96cb26c130f821bd2244125a4a71fdf348790832b1390600090a35050565b60008060008060008060008060008951111515610eea5760405160e560020a62461bcd02815260040161066b90614797565b610ef389611b67565b60f860020a90049650600760ff881610610f225760405160e560020a62461bcd02815260040161066b90614697565b8660ff166007811115610f3157fe5b95506000866007811115610f4157fe5b1415610f625760405160e560020a62461bcd02815260040161066b90614787565b6001866007811115610f7057fe5b1415610fa157885115610f985760405160e560020a62461bcd02815260040161066b90614877565b600097506112b7565b6002866007811115610faf57fe5b141561108c578851604114610fd95760405160e560020a62461bcd02815260040161066b90614637565b886000815181101515610fe857fe5b016020015160f860020a90819004810204945061100c89600163ffffffff611bbc16565b935061101f89602163ffffffff611bbc16565b925060018b8686866040516000815260200160405260405161104494939291906145c8565b60206040516020810390808403906000865af1158015611068573d6000803e3d6000fd5b5050604051601f190151600160a060020a038c811690821614995092506112b79050565b600386600781111561109a57fe5b14156111d15788516041146110c45760405160e560020a62461bcd02815260040161066b90614637565b8860008151811015156110d357fe5b016020015160f860020a9081900481020494506110f789600163ffffffff611bbc16565b935061110a89602163ffffffff611bbc16565b925060018b60405160200180807f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250601c0182600019166000191681526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061118d5780518252601f19909201916020918201910161116e565b51815160209384036101000a6000190180199092169116179052604080519290940182900382206000835291019283905261104494509250899189915088906145c8565b60048660078111156111df57fe5b14156111f7576111f08b8b8b611bf0565b97506112b7565b600586600781111561120557fe5b141561125b5761121489611dea565b600160a060020a03808c166000908152600b602090815260408083209385168352929052205490915060ff16151561124f57600097506112b7565b6111f0818c8c8c611e2e565b600686600781111561126957fe5b141561129c5760008b8152600a60209081526040808320600160a060020a038e16845290915290205460ff1697506112b7565b60405160e560020a62461bcd02815260040161066b90614697565b505050505050509392505050565b60035460ff16156112eb5760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561130381333461202b565b506003805460ff19169055565b611318613566565b60035460ff161561133e5760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff191660011790556113568484846120e2565b6003805460ff19169055949350505050565b600d54600090600160a060020a0316156113975760405160e560020a62461bcd02815260040161066b906147e7565b6113da6113d5888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437506123a1945050505050565b61255d565b6000818152600c602052604090205490915060ff161561140f5760405160e560020a62461bcd02815260040161066b90614707565b600160a060020a03861633146114a45761145a818785858080601f01602080910402602001604051908101604052809392919081815260200183838082843750610eb8945050505050565b151561147b5760405160e560020a62461bcd02815260040161066b90614847565b600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0388161790555b6000818152600c602052604090819020805460ff191660011790555130908690869080838380828437820191505092505050600060405180830381855af491505015156115065760405160e560020a62461bcd02815260040161066b90614737565b600160a060020a038616331461153457600d805473ffffffffffffffffffffffffffffffffffffffff191690555b50505050505050565b60026020526000908152604090205460ff1681565b6000805481908190600160a060020a031633146115845760405160e560020a62461bcd02815260040161066b906147f7565b83925082600160a060020a031663ae25532e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156115de57600080fd5b505af11580156115f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116169190810190613a79565b600160e060020a031981166000908152600e6020526040902054909250600160a060020a03169050801561165f5760405160e560020a62461bcd02815260040161066b90614677565b600160e060020a031982166000908152600e602052604090819020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c03194906116d090849087906145fd565b60405180910390a150505050565b6116e6613522565b6116ef8261259d565b60208083018290526000918252600790526040908190205490820152608082015115156117235760015b60ff168152610a32565b60a08201511515611735576002611719565b60a082015160408201511061174b576005611719565b610100820151421061175e576004611719565b60208082015160009081526008909152604090205460ff1615611782576006611719565b6101208201518251600160a060020a03908116600090815260096020908152604080832060608801519094168352929052205411156117c2576006611719565b60038152919050565b6117d3613522565b60035460ff16156117f95760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561180f82611b09565b905061181f8160200151336119fd565b50506003805460ff19169055565b600960209081526000928352604080842090915290825290205481565b60065481565b600d54600160a060020a031681565b600054600160a060020a0316331461188c5760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03811615156118b75760405160e560020a62461bcd02815260040161066b906147b7565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b611927613522565b60035460009060ff16156119505760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561196683611b09565b915061197a83608001518460c001516125ab565b905061198d8585846020015184336125de565b50506003805460ff19169055505050565b60018054829081106119ac57fe5b600091825260209091200154600160a060020a0316905081565b60408051808201909152601181527f322e302e312d616c7068612d6d69696d65000000000000000000000000000000602082015281565b6000828152600560209081526040808320600160a060020a0385168452909152812054811015611b0457506000828152600560209081526040808320600160a060020a0385168452825280832054600490925290912054611a5e90826127d3565b600160a060020a0383166000818152600460209081526040808320949094558682526005815283822083835290528281208190559151909183156108fc02918491818181858888f19350505050158015611abc573d6000803e3d6000fd5b5081600160a060020a031683600019167fe7284ffe0c70ad2f3b0aa15cde1cfe95f736935651a138725b21fd168edc5d6a83604051611afb919061456d565b60405180910390a35b505050565b611b11613522565b611b19613522565b611b22836116de565b9050611b2e83826127fe565b611b3c8382602001516128a4565b92915050565b600d54600090600160a060020a0316818115611b5e5781611b60565b335b9392505050565b6000808251111515611b8e5760405160e560020a62461bcd02815260040161066b90614777565b815182906000198101908110611ba057fe5b01602001518251600019019092525060f860020a908190040290565b600081602001835110151515611be75760405160e560020a62461bcd02815260040161066b90614687565b50016020015190565b60405160009060609082907f1626ba7e0000000000000000000000000000000000000000000000000000000090611c2d90889087906024016145a8565b60408051601f19818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a031995861617905281517f697356616c696457616c6c65745369676e617475726528627974657333322c6181527f6464726573732c6279746573290000000000000000000000000000000000000091810191909152905190819003602d019020909350169050843b1515611d185760e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b60208201602081845183895afa3d602014611d6e5760e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b808015611d825760018114611dc357611dde565b60e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b600160e060020a03198416600160e060020a03198451161495505b50505050509392505050565b60006014825110151515611e135760405160e560020a62461bcd02815260040161066b90614807565b611e21826014845103612920565b8251601319019092525090565b60405160009060609082907f936347020000000000000000000000000000000000000000000000000000000090611e6d9088908890889060240161457b565b60408051601f19818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a031995861617905281517f697356616c696456616c696461746f725369676e61747572652861646472657381527f732c627974657333322c616464726573732c6279746573290000000000000000918101919091529051908190036038019020909350169050863b1515611f585760e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b602082016020818451838b5afa3d602014611fae5760e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b808015611fc257600181146120035761201e565b60e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b600160e060020a03198416600160e060020a03198451161495505b5050505050949350505050565b600160a060020a03821660009081526004602052604090205461204e90826125ab565b600160a060020a0383166000818152600460209081526040808320949094558682526005815283822092825291909152205461208a90826125ab565b6000848152600560209081526040808320600160a060020a038716808552925291829020929092555184907f182fa52899142d44ff5c45a6354d3b3e868d5b07db6a65580b39bd321bdaf8ac90611afb90859061456d565b6120ea613566565b6120f2613522565b6000806000612100886116de565b935061210a611b42565b92506000341115612124576121248460200151843461202b565b6121308885858961295d565b6121428860a0015185604001516127d3565b915061214e8783612a58565b905061215a8882612a6e565b945061216d888589848960000151612acf565b61218288848660200151876040015189612b8c565b61218d888487612c2b565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106121dd5780518252601f1990920191602091820191016121be565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101408e01518051919650945090928392508401908083835b6020831061223b5780518252601f19909201916020918201910161221c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614156122965761229684602001518960000151612291886000015189604001516125ab565b612cae565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106122e65780518252601f1990920191602091820191016122c7565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101608e01518051919650945090928392508401908083835b602083106123445780518252601f199092019160209182019101612325565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916141561239657612396846020015184612291886020015189606001516125ab565b505050509392505050565b604080517f5a65726f45785472616e73616374696f6e2800000000000000000000000000006020808301919091527f75696e743235362073616c742c0000000000000000000000000000000000000060328301527f61646472657373207369676e6572416464726573732c00000000000000000000603f8301527f627974657320646174610000000000000000000000000000000000000000000060558301527f2900000000000000000000000000000000000000000000000000000000000000605f830152825180830384018152606090920192839052815160009384938493909282918401908083835b602083106124ac5780518252601f19909201916020918201910161248d565b51815160209384036101000a600019018019909216911617905260405191909301819003812089519097508995509093508392850191508083835b602083106125065780518252601f1990920191602091820191016124e7565b51815160209384036101000a60001901801990921691161790526040805192909401829003822097825281019a909a5250600160a060020a0397909716968801969096525050606085015250506080909120919050565b6006546040517f19010000000000000000000000000000000000000000000000000000000000008152600281019190915260228101919091526042902090565b6000611b3c6113d583612d04565b6000828201838110156125d35760405160e560020a62461bcd02815260040161066b906146e7565b8091505b5092915050565b600080600034111561266d57600160a060020a03831660009081526004602052604090205461260d90346125ab565b600160a060020a0384166000818152600460209081526040808320949094558a82526005815283822092825291909152205461264990346125ab565b6000888152600560209081526040808320600160a060020a03881684529091529020555b6000858152600560209081526040808320600160a060020a0387168452909152902054915061269d85888561308b565b85821115612781576000878152600560209081526040808320600160a060020a03871684529091529020546126d290876127d3565b6000888152600560209081526040808320600160a060020a038816845290915290205490915061270290826127d3565b6000888152600560209081526040808320600160a060020a038816845282528083209390935560049052205461273890826127d3565b600160a060020a038416600081815260046020526040808220939093559151909183156108fc02918491818181858888f1935050505015801561277f573d6000803e3d6000fd5b505b604051600160a060020a03841690869089907f8cc802977edfa64abef2b610ec3adbc8fbe0dabbe60079046b02789ac0d13b86906127c2908b908a906148a3565b60405180910390a450505050505050565b6000828211156127f85760405160e560020a62461bcd02815260040161066b90614667565b50900390565b805160009060ff166003146128285760405160e560020a62461bcd02815260040161066b90614817565b6060830151600160a060020a03161561286a576060830151600160a060020a0316331461286a5760405160e560020a62461bcd02815260040161066b90614837565b612872611b42565b8351909150600160a060020a03808316911614611b045760405160e560020a62461bcd02815260040161066b906146c7565b60008181526008602052604090819020805460ff1916600117905582810151835161014085015161016086015193518594600160a060020a039485169493909316927fdc47b3613d9fe400085f6dbdc99453462279057e6207385042827ed6b1a62cf79261291492339290614511565b60405180910390a45050565b60008160140183511015151561294b5760405160e560020a62461bcd02815260040161066b90614807565b500160140151600160a060020a031690565b825160ff166003146129845760405160e560020a62461bcd02815260040161066b90614817565b6060840151600160a060020a0316156129c6576060840151600160a060020a031633146129c65760405160e560020a62461bcd02815260040161066b90614837565b6020840151600160a060020a031615612a135781600160a060020a03168460200151600160a060020a0316141515612a135760405160e560020a62461bcd02815260040161066b90614647565b60408301511515612a5257612a318360200151856000015183610eb8565b1515612a525760405160e560020a62461bcd02815260040161066b906146b7565b50505050565b6000818310612a675781611b60565b5090919050565b612a76613566565b6020810182905260a08301516080840151612a929184916130fc565b808252608084015160c0850151612aaa9291906130fc565b604082015260a083015160e0840151612ac49184916130fc565b606082015292915050565b821515612af15760405160e560020a62461bcd02815260040161066b90614757565b82821115612b145760405160e560020a62461bcd02815260040161066b90614747565b8460a00151612b278560400151846125ab565b1115612b485760405160e560020a62461bcd02815260040161066b90614657565b612b56856080015183613166565b612b64828760a00151613166565b1115612b855760405160e560020a62461bcd02815260040161066b906147d7565b5050505050565b612b9a8282602001516125ab565b600084815260076020908152604091829020929092558681015187518451938501518584015160608701516101408c01516101608d015196518b98600160a060020a039788169897909616967f0bcc4c97732e47d9946f229edb95f5b6323f601300e4690de719993f3c37112996612c1c968f9633969295919490939061448d565b60405180910390a45050505050565b604080516060810182526024815260e460020a630f47261b02602082015260009181019190915261014084015184518351612c6992919086906131aa565b612c8284610160015184866000015185602001516131aa565b612c9a818560000151866040015185604001516131aa565b612a528184866040015185606001516131aa565b6000838152600560209081526040808320600160a060020a0386168452909152902054612cdb90826127d3565b6000938452600560209081526040808620600160a060020a039095168652939052919092205550565b604080517f4f726465722800000000000000000000000000000000000000000000000000006020808301919091527f61646472657373206d616b6572416464726573732c000000000000000000000060268301527f616464726573732074616b6572416464726573732c0000000000000000000000603b8301527f6164647265737320666565526563697069656e74416464726573732c0000000060508301527f616464726573732073656e646572416464726573732c00000000000000000000606c8301527f75696e74323536206d616b65724173736574416d6f756e742c0000000000000060828301527f75696e743235362074616b65724173736574416d6f756e742c00000000000000609b8301527f75696e74323536206d616b65724665652c00000000000000000000000000000060b48301527f75696e743235362074616b65724665652c00000000000000000000000000000060c58301527f75696e743235362065787069726174696f6e54696d655365636f6e64732c000060d68301527f75696e743235362073616c742c0000000000000000000000000000000000000060f48301527f6279746573206d616b65724173736574446174612c00000000000000000000006101018301527f62797465732074616b65724173736574446174610000000000000000000000006101168301527f290000000000000000000000000000000000000000000000000000000000000061012a830152825161010b81840301815261012b90920192839052815160009384938493849391929182918401908083835b60208310612f6e5780518252601f199092019160209182019101612f4f565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101408b0151805191995095509093508392850191508083835b60208310612fcd5780518252601f199092019160209182019101612fae565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101608b0151805191985095509093508392850191508083835b6020831061302c5780518252601f19909201916020918201910161300d565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120601f19890180516101408b018051610160909c0180519a84529881529288526101a0822091529890525050509190525090919050565b6000838152600560208181526040808420600160a060020a038616808652908352818520805490869055878652938352818520908552909152909120546130d290826125ab565b6000938452600560209081526040808620600160a060020a03909516865293905291909220555050565b60008083116131205760405160e560020a62461bcd02815260040161066b906146a7565b61312b84848461349d565b1561314b5760405160e560020a62461bcd02815260040161066b90614727565b61315e6131588584613166565b8461350b565b949350505050565b60008083151561317957600091506125d7565b5082820282848281151561318957fe5b04146125d35760405160e560020a62461bcd02815260040161066b906146e7565b600080600080841180156131d0575084600160a060020a031686600160a060020a031614155b156115345786516003106131f95760405160e560020a62461bcd02815260040161066b906147c7565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106132495780518252601f19909201916020918201910161322a565b51815160209384036101000a60001901801990921691161790526040519190930181900381208c519095508c945090928392508401908083835b602083106132a25780518252601f199092019160209182019101613283565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614156133a857600160a060020a0386166000908152600460205260409020548411156133145760405160e560020a62461bcd02815260040161066b906146f7565b600160a060020a03861660009081526004602052604090205461333790856127d3565b600160a060020a038088166000908152600460205260409020829055909350851630146133a35784600160a060020a0316620493e085604051600060405180830381858888f1935050505015156133a35760405160e560020a62461bcd02815260040161066b90614857565b611534565b5050602085810151600160e060020a0319166000818152600e909252604090912054600160a060020a03168015156133f55760405160e560020a62461bcd02815260040161066b90614767565b604051660fffffffffffe0603f895101168060840182017fa85e59e400000000000000000000000000000000000000000000000000000000835260806004840152600160a060020a0389166024840152600160a060020a0388166044840152866064840152608483015b81811015613477578a51815260209a8b019a0161345f565b61020084858403866000895af180151561348f573d85fd5b505050505050505050505050565b6000808084116134c25760405160e560020a62461bcd02815260040161066b906146a7565b8215806134cd575084155b156134db5760009150610cc2565b838015156134e557fe5b85840990506134f48584613166565b6135006103e883613166565b101595945050505050565b600080828481151561351957fe5b04949350505050565b604080516060810182526000808252602082018190529181019190915290565b815481835581811115611b0457600083815260209020611b0491810190830161358f565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b6135ad91905b808211156135a95760008155600101613595565b5090565b90565b6000611b608235614938565b6000601f820183136135cd57600080fd5b81356135e06135db826148e5565b6148be565b81815260209384019390925082018360005b8381101561361e578135860161360888826136f0565b84525060209283019291909101906001016135f2565b5050505092915050565b6000611b608235614944565b6000611b6082356135ad565b6000611b608235614949565b6000611b608251614949565b600080601f8301841361366a57600080fd5b50813567ffffffffffffffff81111561368257600080fd5b60208301915083600182028301111561369a57600080fd5b9250929050565b6000601f820183136136b257600080fd5b81356136c06135db82614906565b915080825260208301602083018583830111156136dc57600080fd5b6136e7838284614967565b50505092915050565b6000610180828403121561370357600080fd5b61370e6101806148be565b9050600061371c84846135b0565b825250602061372d848483016135b0565b6020830152506040613741848285016135b0565b6040830152506060613755848285016135b0565b606083015250608061376984828501613634565b60808301525060a061377d84828501613634565b60a08301525060c061379184828501613634565b60c08301525060e06137a584828501613634565b60e0830152506101006137ba84828501613634565b610100830152506101206137d084828501613634565b6101208301525061014082013567ffffffffffffffff8111156137f257600080fd5b6137fe848285016136a1565b6101408301525061016082013567ffffffffffffffff81111561382057600080fd5b61382c848285016136a1565b6101608301525092915050565b60006020828403121561384b57600080fd5b600061315e84846135b0565b6000806040838503121561386a57600080fd5b600061387685856135b0565b9250506020613887858286016135b0565b9150509250929050565b600080604083850312156138a457600080fd5b60006138b085856135b0565b925050602061388785828601613628565b6000602082840312156138d357600080fd5b813567ffffffffffffffff8111156138ea57600080fd5b61315e848285016135bc565b60006020828403121561390857600080fd5b600061315e8484613634565b6000806040838503121561392757600080fd5b60006138768585613634565b6000806000806060858703121561394957600080fd5b60006139558787613634565b9450506020613966878288016135b0565b935050604085013567ffffffffffffffff81111561398357600080fd5b61398f87828801613658565b95989497509550505050565b6000806000606084860312156139b057600080fd5b60006139bc8686613634565b93505060206139cd868287016135b0565b925050604084013567ffffffffffffffff8111156139ea57600080fd5b6139f6868287016136a1565b9150509250925092565b600080600060608486031215613a1557600080fd5b6000613a218686613634565b9350506020613a3286828701613634565b925050604084013567ffffffffffffffff811115613a4f57600080fd5b6139f6868287016136f0565b600060208284031215613a6d57600080fd5b600061315e8484613640565b600060208284031215613a8b57600080fd5b600061315e848461364c565b600060208284031215613aa957600080fd5b813567ffffffffffffffff811115613ac057600080fd5b61315e848285016136f0565b600080600060608486031215613ae157600080fd5b833567ffffffffffffffff811115613af857600080fd5b613b04868287016136f0565b93505060206139cd86828701613634565b60008060008060008060808789031215613b2e57600080fd5b6000613b3a8989613634565b9650506020613b4b89828a016135b0565b955050604087013567ffffffffffffffff811115613b6857600080fd5b613b7489828a01613658565b9450945050606087013567ffffffffffffffff811115613b9357600080fd5b613b9f89828a01613658565b92509250509295509295509295565b613bb781614938565b82525050565b6000613bc882614934565b808452602084019350613bda8361492e565b60005b82811015613c0a57613bf086835161443f565b613bf98261492e565b606096909601959150600101613bdd565b5093949350505050565b613bb781614944565b613bb7816135ad565b613bb781614949565b6000613c3a82614934565b808452613c4e816020860160208601614973565b613c578161499f565b9093016020019392505050565b613bb78161495c565b601281527f4c454e4754485f36355f52455155495245440000000000000000000000000000602082015260400190565b600d81527f494e56414c49445f54414b455200000000000000000000000000000000000000602082015260400190565b600e81527f4f524445525f4f56455246494c4c000000000000000000000000000000000000602082015260400190565b601181527f55494e543235365f554e444552464c4f57000000000000000000000000000000602082015260400190565b601a81527f41535345545f50524f58595f414c52454144595f455849535453000000000000602082015260400190565b602681527f475245415445525f4f525f455155414c5f544f5f33325f4c454e4754485f524560208201527f5155495245440000000000000000000000000000000000000000000000000000604082015260600190565b601581527f5349474e41545552455f554e535550504f525445440000000000000000000000602082015260400190565b601081527f4449564953494f4e5f42595f5a45524f00000000000000000000000000000000602082015260400190565b601781527f494e56414c49445f4f524445525f5349474e4154555245000000000000000000602082015260400190565b600d81527f494e56414c49445f4d414b455200000000000000000000000000000000000000602082015260400190565b602381527f5441524745545f49535f414c52454144595f57495448445241575f4f5045524160208201527f544f520000000000000000000000000000000000000000000000000000000000604082015260600190565b601081527f55494e543235365f4f564552464c4f5700000000000000000000000000000000602082015260400190565b601e81527f4445504f5349545f414d4f554e545f49535f494e53554646494349454e540000602082015260400190565b600f81527f494e56414c49445f54585f484153480000000000000000000000000000000000602082015260400190565b601181527f494e56414c49445f5349474e4154555245000000000000000000000000000000602082015260400190565b600e81527f524f554e44494e475f4552524f52000000000000000000000000000000000000602082015260400190565b601081527f4641494c45445f455845435554494f4e00000000000000000000000000000000602082015260400190565b600d81527f54414b45525f4f56455250415900000000000000000000000000000000000000602082015260400190565b601481527f494e56414c49445f54414b45525f414d4f554e54000000000000000000000000602082015260400190565b601a81527f41535345545f50524f58595f444f45535f4e4f545f4558495354000000000000602082015260400190565b602181527f475245415445525f5448414e5f5a45524f5f4c454e4754485f5245515549524560208201527f4400000000000000000000000000000000000000000000000000000000000000604082015260600190565b601181527f5349474e41545552455f494c4c4547414c000000000000000000000000000000602082015260400190565b601e81527f4c454e4754485f475245415445525f5448414e5f305f52455155495245440000602082015260400190565b601781527f494e56414c49445f4e45575f4f524445525f45504f4348000000000000000000602082015260400190565b600d81527f494e56414c49445f4f574e455200000000000000000000000000000000000000602082015260400190565b601e81527f4c454e4754485f475245415445525f5448414e5f335f52455155495245440000602082015260400190565b601281527f494e56414c49445f46494c4c5f50524943450000000000000000000000000000602082015260400190565b601281527f5245454e5452414e43595f494c4c4547414c0000000000000000000000000000602082015260400190565b601381527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000602082015260400190565b602681527f475245415445525f4f525f455155414c5f544f5f32305f4c454e4754485f524560208201527f5155495245440000000000000000000000000000000000000000000000000000604082015260600190565b601081527f4f524445525f554e46494c4c41424c4500000000000000000000000000000000602082015260400190565b601f81527f5441524745545f49535f4e4f545f57495448445241575f4f50455241544f5200602082015260400190565b600e81527f494e56414c49445f53454e444552000000000000000000000000000000000000602082015260400190565b601481527f494e56414c49445f54585f5349474e4154555245000000000000000000000000602082015260400190565b601281527f4554485f53454e44494e475f4641494c45440000000000000000000000000000602082015260400190565b601a81527f53454e4445525f49535f4e4f545f574954484452415741424c45000000000000602082015260400190565b601181527f4c454e4754485f305f5245515549524544000000000000000000000000000000602082015260400190565b805160808301906144068482613c1d565b5060208201516144196020850182613c1d565b50604082015161442c6040850182613c1d565b506060820151612a526060850182613c1d565b805160608301906144508482614476565b5060208201516144636020850182613c1d565b506040820151612a526040850182613c1d565b613bb781614956565b60208101611b3c8284613bae565b610100810161449c828b613bae565b6144a9602083018a613bae565b6144b66040830189613c1d565b6144c36060830188613c1d565b6144d06080830187613c1d565b6144dd60a0830186613c1d565b81810360c08301526144ef8185613c2f565b905081810360e08301526145038184613c2f565b9a9950505050505050505050565b6060810161451f8286613bae565b81810360208301526145318185613c2f565b905081810360408301526145458184613c2f565b95945050505050565b60208082528101611b608184613bbd565b60208101611b3c8284613c14565b60208101611b3c8284613c1d565b606081016145898286613c1d565b6145966020830185613bae565b81810360408301526145458184613c2f565b604081016145b68285613c1d565b818103602083015261315e8184613c2f565b608081016145d68287613c1d565b6145e36020830186614476565b6145f06040830185613c1d565b6145456060830184613c1d565b6040810161460b8285613c26565b611b606020830184613bae565b60208082528101611b608184613c2f565b60208101611b3c8284613c64565b60208082528101611b3c81613c6d565b60208082528101611b3c81613c9d565b60208082528101611b3c81613ccd565b60208082528101611b3c81613cfd565b60208082528101611b3c81613d2d565b60208082528101611b3c81613d5d565b60208082528101611b3c81613db3565b60208082528101611b3c81613de3565b60208082528101611b3c81613e13565b60208082528101611b3c81613e43565b60208082528101611b3c81613e73565b60208082528101611b3c81613ec9565b60208082528101611b3c81613ef9565b60208082528101611b3c81613f29565b60208082528101611b3c81613f59565b60208082528101611b3c81613f89565b60208082528101611b3c81613fb9565b60208082528101611b3c81613fe9565b60208082528101611b3c81614019565b60208082528101611b3c81614049565b60208082528101611b3c81614079565b60208082528101611b3c816140cf565b60208082528101611b3c816140ff565b60208082528101611b3c8161412f565b60208082528101611b3c8161415f565b60208082528101611b3c8161418f565b60208082528101611b3c816141bf565b60208082528101611b3c816141ef565b60208082528101611b3c8161421f565b60208082528101611b3c8161424f565b60208082528101611b3c816142a5565b60208082528101611b3c816142d5565b60208082528101611b3c81614305565b60208082528101611b3c81614335565b60208082528101611b3c81614365565b60208082528101611b3c81614395565b60208082528101611b3c816143c5565b60808101611b3c82846143f5565b60608101611b3c828461443f565b604081016148b18285613c1d565b611b606020830184613c1d565b60405181810167ffffffffffffffff811182821017156148dd57600080fd5b604052919050565b600067ffffffffffffffff8211156148fc57600080fd5b5060209081020190565b600067ffffffffffffffff82111561491d57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b600160a060020a031690565b151590565b600160e060020a03191690565b60ff1690565b6000611b3c82614938565b82818337506000910152565b60005b8381101561498e578181015183820152602001614976565b83811115612a525750506000910152565b601f01601f1916905600a265627a7a7230582038e3a1164d412decb3f10d34a1c5659d838536b18e8833fead921463cd7adc4c6c6578706572696d656e74616cf50037
Deployed Bytecode
0x6080604052600436106101c15763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631b258d5081146101c6578063288cdc91146101e85780632ac126221461021e5780632c45ed781461024b5780633683ef8e1461026b57806338a66be21461028b5780633fd3c997146102a057806343c71aff146102cd5780634ac14782146102e25780634f9559b11461030257806350f62da714610322578063607041081461034257806360ac85d61461036f578063642f2eaf1461038f57806377fcce68146103af5780637b8e3514146103cf5780637e9d74dc146103ef57806382c174d01461041c57806389d807fd1461043c5780638da5cb5b1461045e57806392b34620146104735780639363470214610493578063b214faa5146104b3578063b4be83d5146104c6578063bfc8bfce146104e6578063c3e562f514610506578063c585bb9314610526578063c75e0a8114610546578063d46b02c314610573578063d9bfa73e14610593578063e306f779146105b3578063eea086ba146105c8578063f2fde38b146105dd578063f3f6c9c8146105fd578063fa0aba3214610610578063ffa1ad7414610630575b600080fd5b3480156101d257600080fd5b506101e66101e1366004613914565b610645565b005b3480156101f457600080fd5b506102086102033660046138f6565b6106e3565b604051610215919061456d565b60405180910390f35b34801561022a57600080fd5b5061023e6102393660046138f6565b6106f5565b604051610215919061455f565b34801561025757600080fd5b50610208610266366004613914565b61070a565b34801561027757600080fd5b506101e6610286366004613933565b610727565b34801561029757600080fd5b506102086107c5565b3480156102ac57600080fd5b506102c06102bb366004613a5b565b6107cc565b6040516102159190614629565b3480156102d957600080fd5b506102086107e7565b3480156102ee57600080fd5b506101e66102fd3660046138c1565b610867565b34801561030e57600080fd5b506101e661031d3660046138f6565b6108d6565b34801561032e57600080fd5b5061020861033d366004613839565b6109fc565b34801561034e57600080fd5b5061036261035d366004613a5b565b610a0e565b604051610215919061447f565b34801561037b57600080fd5b506101e661038a366004613839565b610a37565b34801561039b57600080fd5b5061023e6103aa3660046138f6565b610b3a565b3480156103bb57600080fd5b506101e66103ca366004613891565b610b4f565b3480156103db57600080fd5b5061023e6103ea366004613857565b610c0d565b3480156103fb57600080fd5b5061040f61040a3660046138c1565b610c2d565b604051610215919061454e565b34801561042857600080fd5b5061023e610437366004613914565b610cca565b34801561044857600080fd5b50610451610cea565b6040516102159190614618565b34801561046a57600080fd5b50610362610d15565b34801561047f57600080fd5b506101e661048e366004613839565b610d24565b34801561049f57600080fd5b5061023e6104ae36600461399b565b610eb8565b6101e66104c13660046138f6565b6112c5565b6104d96104d4366004613acc565b611310565b6040516102159190614887565b3480156104f257600080fd5b506101e6610501366004613b15565b611368565b34801561051257600080fd5b5061023e610521366004613839565b61153d565b34801561053257600080fd5b506101e6610541366004613839565b611552565b34801561055257600080fd5b50610566610561366004613a97565b6116de565b6040516102159190614895565b34801561057f57600080fd5b506101e661058e366004613a97565b6117cb565b34801561059f57600080fd5b506102086105ae366004613857565b61182d565b3480156105bf57600080fd5b5061020861184a565b3480156105d457600080fd5b50610362611850565b3480156105e957600080fd5b506101e66105f8366004613839565b61185f565b6101e661060b366004613a00565b61191f565b34801561061c57600080fd5b5061036261062b3660046138f6565b61199e565b34801561063c57600080fd5b506104516119c6565b60035460ff16156106745760405160e560020a62461bcd02815260040161066b906147e7565b60405180910390fd5b6003805460ff1916600117905533600090815260026020526040902054819060ff16806106a95750600160a060020a03811633145b15156106ca5760405160e560020a62461bcd02815260040161066b90614867565b6106d483836119fd565b50506003805460ff1916905550565b60076020526000908152604090205481565b60086020526000908152604090205460ff1681565b600560209081526000928352604080842090915290825290205481565b600160a060020a038316331461079357610772848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843750610eb8945050505050565b15156107935760405160e560020a62461bcd02815260040161066b90614717565b50506000918252600a60209081526040808420600160a060020a0390931684529190529020805460ff19166001179055565b620493e081565b600e60205260009081526040902054600160a060020a031681565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106108375780518252601f199092019160209182019101610818565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902081565b600354600090819060ff16156108925760405160e560020a62461bcd02815260040161066b906147e7565b50506003805460ff19166001179055805160005b8082146106d4576108cd83828151811015156108be57fe5b90602001906020020151611b09565b506001016108a6565b60035460009081908190819060ff16156109055760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561091a611b42565b9350600160a060020a03841633146109325733610935565b60005b600160a060020a0380861660009081526009602090815260408083209385168352929052205490935060018601925090508082116109885760405160e560020a62461bcd02815260040161066b906147a7565b600160a060020a0380851660008181526009602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f0906109e390869061456d565b60405180910390a350506003805460ff19169055505050565b60046020526000908152604090205481565b600160e060020a031981166000908152600e6020526040902054600160a060020a03165b919050565b600054600160a060020a03163314610a645760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03811660009081526002602052604090205460ff1615610aa05760405160e560020a62461bcd02815260040161066b906146d7565b600160a060020a038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff191684179055513392917f0da9caec92a6633ec5303ab10a916b8b9259517e13192c0aec8d6bf3f7fb350b91a350565b600c6020526000908152604090205460ff1681565b60035460009060ff1615610b785760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff19166001179055610b8d611b42565b600160a060020a038181166000818152600b602090815260408083209489168084529490915290819020805460ff19168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610bf690869061455f565b60405180910390a350506003805460ff1916905550565b600b60209081526000928352604080842090915290825290205460ff1681565b60606000606060008451925082604051908082528060200260200182016040528015610c7357816020015b610c60613522565b815260200190600190039081610c585790505b509150600090505b808314610cc257610ca28582815181101515610c9357fe5b906020019060200201516116de565b8282815181101515610cb057fe5b60209081029091010152600101610c7b565b509392505050565b600a60209081526000928352604080842090915290825290205460ff1681565b6060604051908101604052806024815260200160e460020a630f47261b028152602001600081525081565b600054600160a060020a031681565b60008054600160a060020a03163314610d525760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03821660009081526002602052604090205460ff161515610d8f5760405160e560020a62461bcd02815260040161066b90614827565b50600160a060020a0381166000908152600260205260408120805460ff191690555b600154811015610e7e5781600160a060020a0316600182815481101515610dd457fe5b600091825260209091200154600160a060020a03161415610e7657600180546000198101908110610e0157fe5b60009182526020909120015460018054600160a060020a039092169183908110610e2757fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600180546000190190610e709082613542565b50610e7e565b600101610db1565b6040513390600160a060020a038416907fc03f62302eb85eef9129d96cb26c130f821bd2244125a4a71fdf348790832b1390600090a35050565b60008060008060008060008060008951111515610eea5760405160e560020a62461bcd02815260040161066b90614797565b610ef389611b67565b60f860020a90049650600760ff881610610f225760405160e560020a62461bcd02815260040161066b90614697565b8660ff166007811115610f3157fe5b95506000866007811115610f4157fe5b1415610f625760405160e560020a62461bcd02815260040161066b90614787565b6001866007811115610f7057fe5b1415610fa157885115610f985760405160e560020a62461bcd02815260040161066b90614877565b600097506112b7565b6002866007811115610faf57fe5b141561108c578851604114610fd95760405160e560020a62461bcd02815260040161066b90614637565b886000815181101515610fe857fe5b016020015160f860020a90819004810204945061100c89600163ffffffff611bbc16565b935061101f89602163ffffffff611bbc16565b925060018b8686866040516000815260200160405260405161104494939291906145c8565b60206040516020810390808403906000865af1158015611068573d6000803e3d6000fd5b5050604051601f190151600160a060020a038c811690821614995092506112b79050565b600386600781111561109a57fe5b14156111d15788516041146110c45760405160e560020a62461bcd02815260040161066b90614637565b8860008151811015156110d357fe5b016020015160f860020a9081900481020494506110f789600163ffffffff611bbc16565b935061110a89602163ffffffff611bbc16565b925060018b60405160200180807f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250601c0182600019166000191681526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061118d5780518252601f19909201916020918201910161116e565b51815160209384036101000a6000190180199092169116179052604080519290940182900382206000835291019283905261104494509250899189915088906145c8565b60048660078111156111df57fe5b14156111f7576111f08b8b8b611bf0565b97506112b7565b600586600781111561120557fe5b141561125b5761121489611dea565b600160a060020a03808c166000908152600b602090815260408083209385168352929052205490915060ff16151561124f57600097506112b7565b6111f0818c8c8c611e2e565b600686600781111561126957fe5b141561129c5760008b8152600a60209081526040808320600160a060020a038e16845290915290205460ff1697506112b7565b60405160e560020a62461bcd02815260040161066b90614697565b505050505050509392505050565b60035460ff16156112eb5760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561130381333461202b565b506003805460ff19169055565b611318613566565b60035460ff161561133e5760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff191660011790556113568484846120e2565b6003805460ff19169055949350505050565b600d54600090600160a060020a0316156113975760405160e560020a62461bcd02815260040161066b906147e7565b6113da6113d5888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437506123a1945050505050565b61255d565b6000818152600c602052604090205490915060ff161561140f5760405160e560020a62461bcd02815260040161066b90614707565b600160a060020a03861633146114a45761145a818785858080601f01602080910402602001604051908101604052809392919081815260200183838082843750610eb8945050505050565b151561147b5760405160e560020a62461bcd02815260040161066b90614847565b600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0388161790555b6000818152600c602052604090819020805460ff191660011790555130908690869080838380828437820191505092505050600060405180830381855af491505015156115065760405160e560020a62461bcd02815260040161066b90614737565b600160a060020a038616331461153457600d805473ffffffffffffffffffffffffffffffffffffffff191690555b50505050505050565b60026020526000908152604090205460ff1681565b6000805481908190600160a060020a031633146115845760405160e560020a62461bcd02815260040161066b906147f7565b83925082600160a060020a031663ae25532e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156115de57600080fd5b505af11580156115f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116169190810190613a79565b600160e060020a031981166000908152600e6020526040902054909250600160a060020a03169050801561165f5760405160e560020a62461bcd02815260040161066b90614677565b600160e060020a031982166000908152600e602052604090819020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c03194906116d090849087906145fd565b60405180910390a150505050565b6116e6613522565b6116ef8261259d565b60208083018290526000918252600790526040908190205490820152608082015115156117235760015b60ff168152610a32565b60a08201511515611735576002611719565b60a082015160408201511061174b576005611719565b610100820151421061175e576004611719565b60208082015160009081526008909152604090205460ff1615611782576006611719565b6101208201518251600160a060020a03908116600090815260096020908152604080832060608801519094168352929052205411156117c2576006611719565b60038152919050565b6117d3613522565b60035460ff16156117f95760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561180f82611b09565b905061181f8160200151336119fd565b50506003805460ff19169055565b600960209081526000928352604080842090915290825290205481565b60065481565b600d54600160a060020a031681565b600054600160a060020a0316331461188c5760405160e560020a62461bcd02815260040161066b906147f7565b600160a060020a03811615156118b75760405160e560020a62461bcd02815260040161066b906147b7565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b611927613522565b60035460009060ff16156119505760405160e560020a62461bcd02815260040161066b906147e7565b6003805460ff1916600117905561196683611b09565b915061197a83608001518460c001516125ab565b905061198d8585846020015184336125de565b50506003805460ff19169055505050565b60018054829081106119ac57fe5b600091825260209091200154600160a060020a0316905081565b60408051808201909152601181527f322e302e312d616c7068612d6d69696d65000000000000000000000000000000602082015281565b6000828152600560209081526040808320600160a060020a0385168452909152812054811015611b0457506000828152600560209081526040808320600160a060020a0385168452825280832054600490925290912054611a5e90826127d3565b600160a060020a0383166000818152600460209081526040808320949094558682526005815283822083835290528281208190559151909183156108fc02918491818181858888f19350505050158015611abc573d6000803e3d6000fd5b5081600160a060020a031683600019167fe7284ffe0c70ad2f3b0aa15cde1cfe95f736935651a138725b21fd168edc5d6a83604051611afb919061456d565b60405180910390a35b505050565b611b11613522565b611b19613522565b611b22836116de565b9050611b2e83826127fe565b611b3c8382602001516128a4565b92915050565b600d54600090600160a060020a0316818115611b5e5781611b60565b335b9392505050565b6000808251111515611b8e5760405160e560020a62461bcd02815260040161066b90614777565b815182906000198101908110611ba057fe5b01602001518251600019019092525060f860020a908190040290565b600081602001835110151515611be75760405160e560020a62461bcd02815260040161066b90614687565b50016020015190565b60405160009060609082907f1626ba7e0000000000000000000000000000000000000000000000000000000090611c2d90889087906024016145a8565b60408051601f19818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a031995861617905281517f697356616c696457616c6c65745369676e617475726528627974657333322c6181527f6464726573732c6279746573290000000000000000000000000000000000000091810191909152905190819003602d019020909350169050843b1515611d185760e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b60208201602081845183895afa3d602014611d6e5760e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b808015611d825760018114611dc357611dde565b60e560020a62461bcd0260005260e560020a6020527c0c57414c4c45545f4552524f5200000000000000000000000000000000604052600060605260646000fd5b600160e060020a03198416600160e060020a03198451161495505b50505050509392505050565b60006014825110151515611e135760405160e560020a62461bcd02815260040161066b90614807565b611e21826014845103612920565b8251601319019092525090565b60405160009060609082907f936347020000000000000000000000000000000000000000000000000000000090611e6d9088908890889060240161457b565b60408051601f19818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a031995861617905281517f697356616c696456616c696461746f725369676e61747572652861646472657381527f732c627974657333322c616464726573732c6279746573290000000000000000918101919091529051908190036038019020909350169050863b1515611f585760e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b602082016020818451838b5afa3d602014611fae5760e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b808015611fc257600181146120035761201e565b60e560020a62461bcd0260005260e560020a6020527c0f56414c494441544f525f4552524f5200000000000000000000000000604052600060605260646000fd5b600160e060020a03198416600160e060020a03198451161495505b5050505050949350505050565b600160a060020a03821660009081526004602052604090205461204e90826125ab565b600160a060020a0383166000818152600460209081526040808320949094558682526005815283822092825291909152205461208a90826125ab565b6000848152600560209081526040808320600160a060020a038716808552925291829020929092555184907f182fa52899142d44ff5c45a6354d3b3e868d5b07db6a65580b39bd321bdaf8ac90611afb90859061456d565b6120ea613566565b6120f2613522565b6000806000612100886116de565b935061210a611b42565b92506000341115612124576121248460200151843461202b565b6121308885858961295d565b6121428860a0015185604001516127d3565b915061214e8783612a58565b905061215a8882612a6e565b945061216d888589848960000151612acf565b61218288848660200151876040015189612b8c565b61218d888487612c2b565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106121dd5780518252601f1990920191602091820191016121be565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101408e01518051919650945090928392508401908083835b6020831061223b5780518252601f19909201916020918201910161221c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614156122965761229684602001518960000151612291886000015189604001516125ab565b612cae565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106122e65780518252601f1990920191602091820191016122c7565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101608e01518051919650945090928392508401908083835b602083106123445780518252601f199092019160209182019101612325565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916141561239657612396846020015184612291886020015189606001516125ab565b505050509392505050565b604080517f5a65726f45785472616e73616374696f6e2800000000000000000000000000006020808301919091527f75696e743235362073616c742c0000000000000000000000000000000000000060328301527f61646472657373207369676e6572416464726573732c00000000000000000000603f8301527f627974657320646174610000000000000000000000000000000000000000000060558301527f2900000000000000000000000000000000000000000000000000000000000000605f830152825180830384018152606090920192839052815160009384938493909282918401908083835b602083106124ac5780518252601f19909201916020918201910161248d565b51815160209384036101000a600019018019909216911617905260405191909301819003812089519097508995509093508392850191508083835b602083106125065780518252601f1990920191602091820191016124e7565b51815160209384036101000a60001901801990921691161790526040805192909401829003822097825281019a909a5250600160a060020a0397909716968801969096525050606085015250506080909120919050565b6006546040517f19010000000000000000000000000000000000000000000000000000000000008152600281019190915260228101919091526042902090565b6000611b3c6113d583612d04565b6000828201838110156125d35760405160e560020a62461bcd02815260040161066b906146e7565b8091505b5092915050565b600080600034111561266d57600160a060020a03831660009081526004602052604090205461260d90346125ab565b600160a060020a0384166000818152600460209081526040808320949094558a82526005815283822092825291909152205461264990346125ab565b6000888152600560209081526040808320600160a060020a03881684529091529020555b6000858152600560209081526040808320600160a060020a0387168452909152902054915061269d85888561308b565b85821115612781576000878152600560209081526040808320600160a060020a03871684529091529020546126d290876127d3565b6000888152600560209081526040808320600160a060020a038816845290915290205490915061270290826127d3565b6000888152600560209081526040808320600160a060020a038816845282528083209390935560049052205461273890826127d3565b600160a060020a038416600081815260046020526040808220939093559151909183156108fc02918491818181858888f1935050505015801561277f573d6000803e3d6000fd5b505b604051600160a060020a03841690869089907f8cc802977edfa64abef2b610ec3adbc8fbe0dabbe60079046b02789ac0d13b86906127c2908b908a906148a3565b60405180910390a450505050505050565b6000828211156127f85760405160e560020a62461bcd02815260040161066b90614667565b50900390565b805160009060ff166003146128285760405160e560020a62461bcd02815260040161066b90614817565b6060830151600160a060020a03161561286a576060830151600160a060020a0316331461286a5760405160e560020a62461bcd02815260040161066b90614837565b612872611b42565b8351909150600160a060020a03808316911614611b045760405160e560020a62461bcd02815260040161066b906146c7565b60008181526008602052604090819020805460ff1916600117905582810151835161014085015161016086015193518594600160a060020a039485169493909316927fdc47b3613d9fe400085f6dbdc99453462279057e6207385042827ed6b1a62cf79261291492339290614511565b60405180910390a45050565b60008160140183511015151561294b5760405160e560020a62461bcd02815260040161066b90614807565b500160140151600160a060020a031690565b825160ff166003146129845760405160e560020a62461bcd02815260040161066b90614817565b6060840151600160a060020a0316156129c6576060840151600160a060020a031633146129c65760405160e560020a62461bcd02815260040161066b90614837565b6020840151600160a060020a031615612a135781600160a060020a03168460200151600160a060020a0316141515612a135760405160e560020a62461bcd02815260040161066b90614647565b60408301511515612a5257612a318360200151856000015183610eb8565b1515612a525760405160e560020a62461bcd02815260040161066b906146b7565b50505050565b6000818310612a675781611b60565b5090919050565b612a76613566565b6020810182905260a08301516080840151612a929184916130fc565b808252608084015160c0850151612aaa9291906130fc565b604082015260a083015160e0840151612ac49184916130fc565b606082015292915050565b821515612af15760405160e560020a62461bcd02815260040161066b90614757565b82821115612b145760405160e560020a62461bcd02815260040161066b90614747565b8460a00151612b278560400151846125ab565b1115612b485760405160e560020a62461bcd02815260040161066b90614657565b612b56856080015183613166565b612b64828760a00151613166565b1115612b855760405160e560020a62461bcd02815260040161066b906147d7565b5050505050565b612b9a8282602001516125ab565b600084815260076020908152604091829020929092558681015187518451938501518584015160608701516101408c01516101608d015196518b98600160a060020a039788169897909616967f0bcc4c97732e47d9946f229edb95f5b6323f601300e4690de719993f3c37112996612c1c968f9633969295919490939061448d565b60405180910390a45050505050565b604080516060810182526024815260e460020a630f47261b02602082015260009181019190915261014084015184518351612c6992919086906131aa565b612c8284610160015184866000015185602001516131aa565b612c9a818560000151866040015185604001516131aa565b612a528184866040015185606001516131aa565b6000838152600560209081526040808320600160a060020a0386168452909152902054612cdb90826127d3565b6000938452600560209081526040808620600160a060020a039095168652939052919092205550565b604080517f4f726465722800000000000000000000000000000000000000000000000000006020808301919091527f61646472657373206d616b6572416464726573732c000000000000000000000060268301527f616464726573732074616b6572416464726573732c0000000000000000000000603b8301527f6164647265737320666565526563697069656e74416464726573732c0000000060508301527f616464726573732073656e646572416464726573732c00000000000000000000606c8301527f75696e74323536206d616b65724173736574416d6f756e742c0000000000000060828301527f75696e743235362074616b65724173736574416d6f756e742c00000000000000609b8301527f75696e74323536206d616b65724665652c00000000000000000000000000000060b48301527f75696e743235362074616b65724665652c00000000000000000000000000000060c58301527f75696e743235362065787069726174696f6e54696d655365636f6e64732c000060d68301527f75696e743235362073616c742c0000000000000000000000000000000000000060f48301527f6279746573206d616b65724173736574446174612c00000000000000000000006101018301527f62797465732074616b65724173736574446174610000000000000000000000006101168301527f290000000000000000000000000000000000000000000000000000000000000061012a830152825161010b81840301815261012b90920192839052815160009384938493849391929182918401908083835b60208310612f6e5780518252601f199092019160209182019101612f4f565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101408b0151805191995095509093508392850191508083835b60208310612fcd5780518252601f199092019160209182019101612fae565b51815160209384036101000a60001901801990921691161790526040519190930181900381206101608b0151805191985095509093508392850191508083835b6020831061302c5780518252601f19909201916020918201910161300d565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120601f19890180516101408b018051610160909c0180519a84529881529288526101a0822091529890525050509190525090919050565b6000838152600560208181526040808420600160a060020a038616808652908352818520805490869055878652938352818520908552909152909120546130d290826125ab565b6000938452600560209081526040808620600160a060020a03909516865293905291909220555050565b60008083116131205760405160e560020a62461bcd02815260040161066b906146a7565b61312b84848461349d565b1561314b5760405160e560020a62461bcd02815260040161066b90614727565b61315e6131588584613166565b8461350b565b949350505050565b60008083151561317957600091506125d7565b5082820282848281151561318957fe5b04146125d35760405160e560020a62461bcd02815260040161066b906146e7565b600080600080841180156131d0575084600160a060020a031686600160a060020a031614155b156115345786516003106131f95760405160e560020a62461bcd02815260040161066b906147c7565b60408051606081018252602480825260e460020a630f47261b02602083019081526000838501529251919282918083835b602083106132495780518252601f19909201916020918201910161322a565b51815160209384036101000a60001901801990921691161790526040519190930181900381208c519095508c945090928392508401908083835b602083106132a25780518252601f199092019160209182019101613283565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614156133a857600160a060020a0386166000908152600460205260409020548411156133145760405160e560020a62461bcd02815260040161066b906146f7565b600160a060020a03861660009081526004602052604090205461333790856127d3565b600160a060020a038088166000908152600460205260409020829055909350851630146133a35784600160a060020a0316620493e085604051600060405180830381858888f1935050505015156133a35760405160e560020a62461bcd02815260040161066b90614857565b611534565b5050602085810151600160e060020a0319166000818152600e909252604090912054600160a060020a03168015156133f55760405160e560020a62461bcd02815260040161066b90614767565b604051660fffffffffffe0603f895101168060840182017fa85e59e400000000000000000000000000000000000000000000000000000000835260806004840152600160a060020a0389166024840152600160a060020a0388166044840152866064840152608483015b81811015613477578a51815260209a8b019a0161345f565b61020084858403866000895af180151561348f573d85fd5b505050505050505050505050565b6000808084116134c25760405160e560020a62461bcd02815260040161066b906146a7565b8215806134cd575084155b156134db5760009150610cc2565b838015156134e557fe5b85840990506134f48584613166565b6135006103e883613166565b101595945050505050565b600080828481151561351957fe5b04949350505050565b604080516060810182526000808252602082018190529181019190915290565b815481835581811115611b0457600083815260209020611b0491810190830161358f565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b6135ad91905b808211156135a95760008155600101613595565b5090565b90565b6000611b608235614938565b6000601f820183136135cd57600080fd5b81356135e06135db826148e5565b6148be565b81815260209384019390925082018360005b8381101561361e578135860161360888826136f0565b84525060209283019291909101906001016135f2565b5050505092915050565b6000611b608235614944565b6000611b6082356135ad565b6000611b608235614949565b6000611b608251614949565b600080601f8301841361366a57600080fd5b50813567ffffffffffffffff81111561368257600080fd5b60208301915083600182028301111561369a57600080fd5b9250929050565b6000601f820183136136b257600080fd5b81356136c06135db82614906565b915080825260208301602083018583830111156136dc57600080fd5b6136e7838284614967565b50505092915050565b6000610180828403121561370357600080fd5b61370e6101806148be565b9050600061371c84846135b0565b825250602061372d848483016135b0565b6020830152506040613741848285016135b0565b6040830152506060613755848285016135b0565b606083015250608061376984828501613634565b60808301525060a061377d84828501613634565b60a08301525060c061379184828501613634565b60c08301525060e06137a584828501613634565b60e0830152506101006137ba84828501613634565b610100830152506101206137d084828501613634565b6101208301525061014082013567ffffffffffffffff8111156137f257600080fd5b6137fe848285016136a1565b6101408301525061016082013567ffffffffffffffff81111561382057600080fd5b61382c848285016136a1565b6101608301525092915050565b60006020828403121561384b57600080fd5b600061315e84846135b0565b6000806040838503121561386a57600080fd5b600061387685856135b0565b9250506020613887858286016135b0565b9150509250929050565b600080604083850312156138a457600080fd5b60006138b085856135b0565b925050602061388785828601613628565b6000602082840312156138d357600080fd5b813567ffffffffffffffff8111156138ea57600080fd5b61315e848285016135bc565b60006020828403121561390857600080fd5b600061315e8484613634565b6000806040838503121561392757600080fd5b60006138768585613634565b6000806000806060858703121561394957600080fd5b60006139558787613634565b9450506020613966878288016135b0565b935050604085013567ffffffffffffffff81111561398357600080fd5b61398f87828801613658565b95989497509550505050565b6000806000606084860312156139b057600080fd5b60006139bc8686613634565b93505060206139cd868287016135b0565b925050604084013567ffffffffffffffff8111156139ea57600080fd5b6139f6868287016136a1565b9150509250925092565b600080600060608486031215613a1557600080fd5b6000613a218686613634565b9350506020613a3286828701613634565b925050604084013567ffffffffffffffff811115613a4f57600080fd5b6139f6868287016136f0565b600060208284031215613a6d57600080fd5b600061315e8484613640565b600060208284031215613a8b57600080fd5b600061315e848461364c565b600060208284031215613aa957600080fd5b813567ffffffffffffffff811115613ac057600080fd5b61315e848285016136f0565b600080600060608486031215613ae157600080fd5b833567ffffffffffffffff811115613af857600080fd5b613b04868287016136f0565b93505060206139cd86828701613634565b60008060008060008060808789031215613b2e57600080fd5b6000613b3a8989613634565b9650506020613b4b89828a016135b0565b955050604087013567ffffffffffffffff811115613b6857600080fd5b613b7489828a01613658565b9450945050606087013567ffffffffffffffff811115613b9357600080fd5b613b9f89828a01613658565b92509250509295509295509295565b613bb781614938565b82525050565b6000613bc882614934565b808452602084019350613bda8361492e565b60005b82811015613c0a57613bf086835161443f565b613bf98261492e565b606096909601959150600101613bdd565b5093949350505050565b613bb781614944565b613bb7816135ad565b613bb781614949565b6000613c3a82614934565b808452613c4e816020860160208601614973565b613c578161499f565b9093016020019392505050565b613bb78161495c565b601281527f4c454e4754485f36355f52455155495245440000000000000000000000000000602082015260400190565b600d81527f494e56414c49445f54414b455200000000000000000000000000000000000000602082015260400190565b600e81527f4f524445525f4f56455246494c4c000000000000000000000000000000000000602082015260400190565b601181527f55494e543235365f554e444552464c4f57000000000000000000000000000000602082015260400190565b601a81527f41535345545f50524f58595f414c52454144595f455849535453000000000000602082015260400190565b602681527f475245415445525f4f525f455155414c5f544f5f33325f4c454e4754485f524560208201527f5155495245440000000000000000000000000000000000000000000000000000604082015260600190565b601581527f5349474e41545552455f554e535550504f525445440000000000000000000000602082015260400190565b601081527f4449564953494f4e5f42595f5a45524f00000000000000000000000000000000602082015260400190565b601781527f494e56414c49445f4f524445525f5349474e4154555245000000000000000000602082015260400190565b600d81527f494e56414c49445f4d414b455200000000000000000000000000000000000000602082015260400190565b602381527f5441524745545f49535f414c52454144595f57495448445241575f4f5045524160208201527f544f520000000000000000000000000000000000000000000000000000000000604082015260600190565b601081527f55494e543235365f4f564552464c4f5700000000000000000000000000000000602082015260400190565b601e81527f4445504f5349545f414d4f554e545f49535f494e53554646494349454e540000602082015260400190565b600f81527f494e56414c49445f54585f484153480000000000000000000000000000000000602082015260400190565b601181527f494e56414c49445f5349474e4154555245000000000000000000000000000000602082015260400190565b600e81527f524f554e44494e475f4552524f52000000000000000000000000000000000000602082015260400190565b601081527f4641494c45445f455845435554494f4e00000000000000000000000000000000602082015260400190565b600d81527f54414b45525f4f56455250415900000000000000000000000000000000000000602082015260400190565b601481527f494e56414c49445f54414b45525f414d4f554e54000000000000000000000000602082015260400190565b601a81527f41535345545f50524f58595f444f45535f4e4f545f4558495354000000000000602082015260400190565b602181527f475245415445525f5448414e5f5a45524f5f4c454e4754485f5245515549524560208201527f4400000000000000000000000000000000000000000000000000000000000000604082015260600190565b601181527f5349474e41545552455f494c4c4547414c000000000000000000000000000000602082015260400190565b601e81527f4c454e4754485f475245415445525f5448414e5f305f52455155495245440000602082015260400190565b601781527f494e56414c49445f4e45575f4f524445525f45504f4348000000000000000000602082015260400190565b600d81527f494e56414c49445f4f574e455200000000000000000000000000000000000000602082015260400190565b601e81527f4c454e4754485f475245415445525f5448414e5f335f52455155495245440000602082015260400190565b601281527f494e56414c49445f46494c4c5f50524943450000000000000000000000000000602082015260400190565b601281527f5245454e5452414e43595f494c4c4547414c0000000000000000000000000000602082015260400190565b601381527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000602082015260400190565b602681527f475245415445525f4f525f455155414c5f544f5f32305f4c454e4754485f524560208201527f5155495245440000000000000000000000000000000000000000000000000000604082015260600190565b601081527f4f524445525f554e46494c4c41424c4500000000000000000000000000000000602082015260400190565b601f81527f5441524745545f49535f4e4f545f57495448445241575f4f50455241544f5200602082015260400190565b600e81527f494e56414c49445f53454e444552000000000000000000000000000000000000602082015260400190565b601481527f494e56414c49445f54585f5349474e4154555245000000000000000000000000602082015260400190565b601281527f4554485f53454e44494e475f4641494c45440000000000000000000000000000602082015260400190565b601a81527f53454e4445525f49535f4e4f545f574954484452415741424c45000000000000602082015260400190565b601181527f4c454e4754485f305f5245515549524544000000000000000000000000000000602082015260400190565b805160808301906144068482613c1d565b5060208201516144196020850182613c1d565b50604082015161442c6040850182613c1d565b506060820151612a526060850182613c1d565b805160608301906144508482614476565b5060208201516144636020850182613c1d565b506040820151612a526040850182613c1d565b613bb781614956565b60208101611b3c8284613bae565b610100810161449c828b613bae565b6144a9602083018a613bae565b6144b66040830189613c1d565b6144c36060830188613c1d565b6144d06080830187613c1d565b6144dd60a0830186613c1d565b81810360c08301526144ef8185613c2f565b905081810360e08301526145038184613c2f565b9a9950505050505050505050565b6060810161451f8286613bae565b81810360208301526145318185613c2f565b905081810360408301526145458184613c2f565b95945050505050565b60208082528101611b608184613bbd565b60208101611b3c8284613c14565b60208101611b3c8284613c1d565b606081016145898286613c1d565b6145966020830185613bae565b81810360408301526145458184613c2f565b604081016145b68285613c1d565b818103602083015261315e8184613c2f565b608081016145d68287613c1d565b6145e36020830186614476565b6145f06040830185613c1d565b6145456060830184613c1d565b6040810161460b8285613c26565b611b606020830184613bae565b60208082528101611b608184613c2f565b60208101611b3c8284613c64565b60208082528101611b3c81613c6d565b60208082528101611b3c81613c9d565b60208082528101611b3c81613ccd565b60208082528101611b3c81613cfd565b60208082528101611b3c81613d2d565b60208082528101611b3c81613d5d565b60208082528101611b3c81613db3565b60208082528101611b3c81613de3565b60208082528101611b3c81613e13565b60208082528101611b3c81613e43565b60208082528101611b3c81613e73565b60208082528101611b3c81613ec9565b60208082528101611b3c81613ef9565b60208082528101611b3c81613f29565b60208082528101611b3c81613f59565b60208082528101611b3c81613f89565b60208082528101611b3c81613fb9565b60208082528101611b3c81613fe9565b60208082528101611b3c81614019565b60208082528101611b3c81614049565b60208082528101611b3c81614079565b60208082528101611b3c816140cf565b60208082528101611b3c816140ff565b60208082528101611b3c8161412f565b60208082528101611b3c8161415f565b60208082528101611b3c8161418f565b60208082528101611b3c816141bf565b60208082528101611b3c816141ef565b60208082528101611b3c8161421f565b60208082528101611b3c8161424f565b60208082528101611b3c816142a5565b60208082528101611b3c816142d5565b60208082528101611b3c81614305565b60208082528101611b3c81614335565b60208082528101611b3c81614365565b60208082528101611b3c81614395565b60208082528101611b3c816143c5565b60808101611b3c82846143f5565b60608101611b3c828461443f565b604081016148b18285613c1d565b611b606020830184613c1d565b60405181810167ffffffffffffffff811182821017156148dd57600080fd5b604052919050565b600067ffffffffffffffff8211156148fc57600080fd5b5060209081020190565b600067ffffffffffffffff82111561491d57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b600160a060020a031690565b151590565b600160e060020a03191690565b60ff1690565b6000611b3c82614938565b82818337506000910152565b60005b8381101561498e578181015183820152602001614976565b83811115612a525750506000910152565b601f01601f1916905600a265627a7a7230582038e3a1164d412decb3f10d34a1c5659d838536b18e8833fead921463cd7adc4c6c6578706572696d656e74616cf50037
Deployed Bytecode Sourcemap
133873:495:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48876:189;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;48876:189:0;;;;;;;;;;;54104:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54104:42:0;;;;;;;;;;;;;;;;;;;;;;;;;54197;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54197:42:0;;;;;;;;;;;;;;;;;47658:77;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;47658:77:0;;;;;;;;;96967:463;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;96967:463:0;;;;;;;;;52968:51;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52968:51:0;;;;115921;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;115921:51:0;;;;;;;;;;;;;;;;;52885:76;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52885:76:0;;;;110933:268;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;110933:268:0;;;;;;;;;54857:1102;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54857:1102:0;;;;;;;;;47535:49;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;47535:49:0;;;;;;;;;117067:160;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;117067:160:0;;;;;;;;;;;;;;;;;45713:362;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;45713:362:0;;;;;;;;;128825:45;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;128825:45:0;;;;;;;;;97672:426;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;97672:426:0;;;;;;;;;96555:71;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;96555:71:0;;;;;;;;;111400:430;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;111400:430:0;;;;;;;;;;;;;;;;;96432:63;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;96432:63:0;;;;;;;;;52693:185;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52693:185:0;;;;;;;;;;;;44458:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;44458:20:0;;;;46083:625;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;46083:625:0;;;;;;;;;98477:4971;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;98477:4971:0;;;;;;;;;48574:164;;;;;;;;;;56283:406;;;;;;;;;;;;;;;;;;129294:1509;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;129294:1509:0;;;;;;;;;44597:51;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;44597:51:0;;;;;;;;;116186:686;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;116186:686:0;;;;;;;;;57423:2316;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;57423:2316:0;;;;;;;;;;;;;;;;;56925:218;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56925:218:0;;;;;;;;;54461:67;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54461:67:0;;;;;;;;;5574:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5574:33:0;;;;128925:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;128925:36:0;;;;45436:269;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;45436:269:0;;;;;;;;;59982:489;;;;;;;;;;44485:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;44485:34:0;;;;;;;;;134039:52;;8:9:-1;5:2;;;30:1;27;20:12;5:2;134039:52:0;;;;48876:189;43488:6;;;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;45316:10;43597:6;45297:30;;;:18;:30;;;;;;48992:9;;43597:13;45297:30;;:57;;-1:-1:-1;;;;;;45331:23:0;;45344:10;45331:23;45297:57;45275:133;;;;;;-1:-1:-1;;;;;45275:133:0;;;;;;;;;49019:38;49036:9;49047;49019:16;:38::i;:::-;-1:-1:-1;;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;-1:-1:-1;48876:189:0:o;54104:42::-;;;;;;;;;;;;;:::o;54197:::-;;;;;;;;;;;;;;;:::o;47658:77::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;96967:463::-;-1:-1:-1;;;;;97110:27:0;;97127:10;97110:27;97106:269;;97180:130;97219:4;97246:13;97282:9;;97180:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97180:16:0;;-1:-1:-1;;;;;97180:130:0:i;:::-;97154:209;;;;;;-1:-1:-1;;;;;97154:209:0;;;;;;;;;-1:-1:-1;;97385:15:0;;;;:9;:15;;;;;;;;-1:-1:-1;;;;;97385:30:0;;;;;;;;;;:37;;-1:-1:-1;;97385:37:0;97418:4;97385:37;;;96967:463::o;52968:51::-;53013:6;52968:51;:::o;115921:::-;;;;;;;;;;;;-1:-1:-1;;;;;115921:51:0;;:::o;52885:76::-;52946:14;;;;;;;;;;;;-1:-1:-1;;;;;52946:14:0;;;;;;-1:-1:-1;52946:14:0;;;;52936:25;;52946:14;;52936:25;;52946:14;52936:25;52946:14;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;52936:25:0;;;;;;;;;;;;;;;;52885:76;:::o;110933:268::-;43488:6;;111046:20;;;;43488:6;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;-1:-1:-1;;43597:6:0;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;111069;;43597:6;111093:101;111113:17;;;111093:101;;111152:30;111172:6;111179:1;111172:9;;;;;;;;;;;;;;;;;;111152:19;:30::i;:::-;-1:-1:-1;111132:3:0;;111093:101;;54857:1102;43488:6;;54965:20;;;;;;;;43488:6;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;54988:26;:24;:26::i;:::-;54965:49;-1:-1:-1;;;;;;55299:26:0;;55315:10;55299:26;:52;;55341:10;55299:52;;;55336:1;55299:52;-1:-1:-1;;;;;55521:24:0;;;;;;;:10;:24;;;;;;;;:39;;;;;;;;;;55275:76;;-1:-1:-1;55485:1:0;55466:20;;;-1:-1:-1;55521:39:0;-1:-1:-1;55653:29:0;;;55631:102;;;;-1:-1:-1;;;;;55631:102:0;;;;;;;;;-1:-1:-1;;;;;55776:24:0;;;;;;;:10;:24;;;;;;;;:39;;;;;;;;;;;;;;:55;;;55847:104;;;;;55818:13;;55847:104;;;;;;;;;;-1:-1:-1;;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;-1:-1:-1;;;54857:1102:0:o;47535:49::-;;;;;;;;;;;;;:::o;117067:160::-;-1:-1:-1;;;;;;117193:26:0;;117161:7;117193:26;;;:12;:26;;;;;;-1:-1:-1;;;;;117193:26:0;117067:160;;;;:::o;45713:362::-;45143:5;;-1:-1:-1;;;;;45143:5:0;45129:10;:19;45107:88;;;;-1:-1:-1;;;;;45107:88:0;;;;;;;;;-1:-1:-1;;;;;45834:26:0;;;;;;:18;:26;;;;;;;;45833:27;45811:112;;;;-1:-1:-1;;;;;45811:112:0;;;;;;;;;-1:-1:-1;;;;;45936:26:0;;;;;;:18;:26;;;;;;:33;;-1:-1:-1;;45936:33:0;45965:4;45936:33;;;;;;27:10:-1;;23:18;;;45:23;;45980:30:0;;;;;;;-1:-1:-1;;45980:30:0;;;;;46026:41;46056:10;;45936:26;46026:41;;;45713:362;:::o;128825:45::-;;;;;;;;;;;;;;;:::o;97672:426::-;43488:6;;97833:21;;43488:6;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;97857:26;:24;:26::i;:::-;-1:-1:-1;;;;;97894:32:0;;;;;;;:17;:32;;;;;;;;:50;;;;;;;;;;;;;;:61;;-1:-1:-1;;97894:61:0;;;;;;;97971:119;97894:32;;-1:-1:-1;97894:50:0;;97971:119;;;;97894:61;;97971:119;;;;;;;;;;-1:-1:-1;;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;-1:-1:-1;97672:426:0:o;96555:71::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;111400:430::-;111503:20;111548;111595:38;111690:9;111571:6;:13;111548:36;;111661:12;111636:38;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;111595:79;;111702:1;111690:13;;111685:110;111705:17;;;111685:110;;111760:23;111773:6;111780:1;111773:9;;;;;;;;;;;;;;;;;;111760:12;:23::i;:::-;111744:10;111755:1;111744:13;;;;;;;;;;;;;;;;;;:39;111724:3;;111685:110;;;-1:-1:-1;111812:10:0;111400:430;-1:-1:-1;;;111400:430:0:o;96432:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52693:185::-;;;;;;;;;;;;;;;-1:-1:-1;;;;;52693:185:0;;;;;;;;;:::o;44458:20::-;;;-1:-1:-1;;;;;44458:20:0;;:::o;46083:625::-;46353:9;45143:5;;-1:-1:-1;;;;;45143:5:0;45129:10;:19;45107:88;;;;-1:-1:-1;;;;;45107:88:0;;;;;;;;;-1:-1:-1;;;;;46206:26:0;;;;;;:18;:26;;;;;;;;46184:107;;;;;;-1:-1:-1;;;;;46184:107:0;;;;;;;;;-1:-1:-1;;;;;;46311:26:0;;;;;;:18;:26;;;;;46304:33;;-1:-1:-1;;46304:33:0;;;46348:294;46372:17;:24;46368:28;;46348:294;;;46446:6;-1:-1:-1;;;;;46422:30:0;:17;46440:1;46422:20;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46422:20:0;:30;46418:213;;;46496:17;46514:24;;-1:-1:-1;;46514:28:0;;;46496:47;;;;;;;;;;;;;;;;;46473:20;;-1:-1:-1;;;;;46496:47:0;;;;46491:1;;46473:20;;;;;;;;;;;;;;;:70;;-1:-1:-1;;46473:70:0;-1:-1:-1;;;;;46473:70:0;;;;;;;;;;-1:-1:-1;46562:29:0;;-1:-1:-1;;46562:29:0;;;;;;:::i;:::-;;46610:5;;46418:213;46398:3;;46348:294;;;46657:43;;46689:10;;-1:-1:-1;;;;;46657:43:0;;;;;;;;46083:625;;:::o;98477:4971::-;98646:12;98844:22;99093:27;99217:7;99235:9;99255;99275:17;102419:24;98717:1;98698:9;:16;:20;98676:100;;;;;;-1:-1:-1;;;;;98676:100:0;;;;;;;;;98875:23;:9;:21;:23::i;:::-;-1:-1:-1;;;98869:30:0;;;-1:-1:-1;99001:29:0;98976:55;;;;98954:126;;;;-1:-1:-1;;;;;98954:126:0;;;;;;;;;99137:16;99123:31;;;;;;;;;;99093:61;-1:-1:-1;99649:21:0;99632:13;:38;;;;;;;;;99628:3462;;;99687:27;;-1:-1:-1;;;;;99687:27:0;;;;;;;;99628:3462;100002:21;99985:13;:38;;;;;;;;;99981:3109;;;100066:16;;:21;100040:100;;;;-1:-1:-1;;;;;100040:100:0;;;;;;;;;100165:5;;-1:-1:-1;100185:14:0;;99981:3109;100275:20;100258:13;:37;;;;;;;;;100254:2836;;;100338:16;;100358:2;100338:22;100312:102;;;;-1:-1:-1;;;;;100312:102:0;;;;;;;;;100439:9;100449:1;100439:12;;;;;;;;;;;;;;-1:-1:-1;;;100439:12:0;;;;;;100433:19;;-1:-1:-1;100471:24:0;:9;100493:1;100471:24;:21;:24;:::i;:::-;100467:28;-1:-1:-1;100514:25:0;:9;100536:2;100514:25;:21;:25;:::i;:::-;100510:29;;100566:107;100594:4;100617:1;100637;100657;100566:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;100566:107:0;;-1:-1:-1;;100566:107:0;;-1:-1:-1;;;;;100698:26:0;;;;;;;;-1:-1:-1;100566:107:0;-1:-1:-1;100739:14:0;;-1:-1:-1;100739:14:0;100254:2836;100833:21;100816:13;:38;;;;;;;;;100812:2278;;;100897:16;;100917:2;100897:22;100871:102;;;;-1:-1:-1;;;;;100871:102:0;;;;;;;;;100998:9;101008:1;100998:12;;;;;;;;;;;;;;-1:-1:-1;;;100998:12:0;;;;;;100992:19;;-1:-1:-1;101030:24:0;:9;101052:1;101030:24;:21;:24;:::i;:::-;101026:28;-1:-1:-1;101073:25:0;:9;101095:2;101073:25;:21;:25;:::i;:::-;101069:29;;101125:233;101259:4;101163:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;101163:119:0;;;101153:130;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;101153:130:0;;;;;;;;;;;;-1:-1:-1;101125:233:0;;;;;;;;;;-1:-1:-1;101153:130:0;-1:-1:-1;101302:1:0;;101322;;-1:-1:-1;101342:1:0;;101125:233;;100812:2278;101612:20;101595:13;:37;;;;;;;;;101591:1499;;;101659:120;101700:4;101723:13;101755:9;101659:22;:120::i;:::-;101649:130;-1:-1:-1;101794:14:0;;101591:1499;102316:23;102299:13;:40;;;;;;;;;102295:795;;;102446:26;:9;:24;:26::i;:::-;-1:-1:-1;;;;;102548:32:0;;;;;;;:17;:32;;;;;;;;:50;;;;;;;;;;102419:53;;-1:-1:-1;102548:50:0;;102547:51;102543:104;;;102626:5;102619:12;;;;102543:104;102671:158;102715:16;102750:4;102773:13;102805:9;102671:25;:158::i;102295:795::-;102969:23;102952:13;:40;;;;;;;;;102948:142;;;103019:15;;;;:9;:15;;;;;;;;-1:-1:-1;;;;;103019:30:0;;;;;;;;;;;;;-1:-1:-1;103064:14:0;;102948:142;103409:31;;-1:-1:-1;;;;;103409:31:0;;;;;;;;98477:4971;;;;;;;;;;;;;:::o;48574:164::-;43488:6;;;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;48681:49;48697:9;48708:10;48720:9;48681:15;:49::i;:::-;-1:-1:-1;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;48574:164::o;56283:406::-;56483:30;;:::i;:::-;43488:6;;;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;56545:107;56577:5;56597:20;56632:9;56545:17;:107::i;:::-;43716:6;:14;;-1:-1:-1;;43716:14:0;;;56531:121;56283:406;-1:-1:-1;;;;56283:406:0:o;129294:1509::-;129518:21;;129612:23;;-1:-1:-1;;;;;129518:21:0;:35;129496:103;;;;-1:-1:-1;;;;;129496:103:0;;;;;;;;;129638:117;129656:98;129692:4;129711:13;129739:4;;129656:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;129656:21:0;;-1:-1:-1;;;;;129656:98:0:i;:::-;129638:17;:117::i;:::-;129846:29;;;;:12;:29;;;;;;129612:143;;-1:-1:-1;129846:29:0;;129845:30;129823:95;;;;-1:-1:-1;;;;;129823:95:0;;;;;;;;;-1:-1:-1;;;;;130007:27:0;;130024:10;130007:27;130003:423;;130112:141;130151:15;130189:13;130225:9;;130112:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;130112:16:0;;-1:-1:-1;;;;;130112:141:0:i;:::-;130086:223;;;;;;-1:-1:-1;;;;;130086:223:0;;;;;;;;;130377:21;:37;;-1:-1:-1;;130377:37:0;-1:-1:-1;;;;;130377:37:0;;;;;130003:423;130470:29;;;;:12;:29;;;;;;;:36;;-1:-1:-1;;130470:36:0;130502:4;130470:36;;;130539:32;130547:4;;130566;;;;130539:32;130566:4;;;;130539:32;;;;;;;;;;;;;;;;;;;;;;;;130517:98;;;;;;-1:-1:-1;;;;;130517:98:0;;;;;;;;;-1:-1:-1;;;;;130706:27:0;;130723:10;130706:27;130702:94;;130750:21;:34;;-1:-1:-1;;130750:34:0;;;130702:94;129294:1509;;;;;;;:::o;44597:51::-;;;;;;;;;;;;;;;:::o;116186:686::-;116287:30;45143:5;;116287:30;;;;-1:-1:-1;;;;;45143:5:0;45129:10;:19;45107:88;;;;-1:-1:-1;;;;;45107:88:0;;;;;;;;;116332:10;116287:56;;116441:18;-1:-1:-1;;;;;116441:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116441:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;116441:31:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;116441:31:0;;;;;;;;;-1:-1:-1;;;;;;116511:26:0;;;;;;:12;:26;;;;;;116419:53;;-1:-1:-1;;;;;;116511:26:0;;-1:-1:-1;116570:31:0;;116548:107;;;;-1:-1:-1;;;;;116548:107:0;;;;;;;;;-1:-1:-1;;;;;;116718:26:0;;;;;;:12;:26;;;;;;;:47;;-1:-1:-1;;116718:47:0;-1:-1:-1;;;;;116718:47:0;;;;;116781:83;;;;;116718:26;;116843:10;;116781:83;;;;;;;;;;116186:686;;;;:::o;57423:2316::-;57513:26;;:::i;:::-;57614:19;57627:5;57614:12;:19::i;:::-;57592;;;;:41;;;;57718:27;;;:6;:27;;;;;;;;57678:37;;;:67;58053:22;;;;:27;58049:160;;;58127:38;58121:45;58097:69;;;;58181:16;;58049:160;58528:22;;;;:27;58524:160;;;58602:38;58596:45;;58524:160;58781:22;;;;58740:37;;;;:63;58736:182;;58850:24;58844:31;;58736:182;59046:27;;;;59027:15;:46;59023:160;;59120:19;59114:26;;59023:160;59255:19;;;;;59245:30;;;;:9;:30;;;;;;;;;59241:146;;;59322:21;59316:28;;59241:146;59455:10;;;;59412:18;;-1:-1:-1;;;;;59401:30:0;;;;;;;:10;:30;;;;;;;;59432:19;;;;59401:51;;;;;;;;;;:64;59397:180;;;59512:21;59506:28;;59397:180;59683:20;59653:51;;;57423:2316;-1:-1:-1;57423:2316:0:o;56925:218::-;57020:26;;:::i;:::-;43488:6;;;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;57049:26;57069:5;57049:19;:26::i;:::-;57020:55;;57086:49;57103:9;:19;;;57124:10;57086:16;:49::i;:::-;-1:-1:-1;;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;56925:218::o;54461:67::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;5574:33::-;;;;:::o;128925:36::-;;;-1:-1:-1;;;;;128925:36:0;;:::o;45436:269::-;45143:5;;-1:-1:-1;;;;;45143:5:0;45129:10;:19;45107:88;;;;-1:-1:-1;;;;;45107:88:0;;;;;;;;;-1:-1:-1;;;;;45554:22:0;;;;45532:85;;;;-1:-1:-1;;;;;45532:85:0;;;;;;;;;45654:5;;;45633:37;;-1:-1:-1;;;;;45633:37:0;;;;45654:5;;;45633:37;;;45681:5;:16;;-1:-1:-1;;45681:16:0;-1:-1:-1;;;;;45681:16:0;;;;;;;;;;45436:269::o;59982:489::-;60186:26;;:::i;:::-;43488:6;;60264:22;;43488:6;;43487:7;43465:75;;;;-1:-1:-1;;;;;43465:75:0;;;;;;;;;43597:6;:13;;-1:-1:-1;;43597:13:0;43606:4;43597:13;;;60215:38;60235:17;60215:19;:38::i;:::-;60186:67;;60289:71;60297:17;:34;;;60333:17;:26;;;60289:7;:71::i;:::-;60264:96;;60371:92;60385:12;60399:14;60415:9;:19;;;60436:14;60452:10;60371:13;:92::i;:::-;-1:-1:-1;;43716:6:0;:14;;-1:-1:-1;;43716:14:0;;;-1:-1:-1;;;59982:489:0:o;44485:34::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44485:34:0;;-1:-1:-1;44485:34:0;:::o;134039:52::-;;;;;;;;;;;;;;;;;;;:::o;49420:489::-;49585:14;49522:31;;;:20;:31;;;;;;;;-1:-1:-1;;;;;49522:42:0;;;;;;;;;;:46;-1:-1:-1;49518:384:0;;;-1:-1:-1;49602:31:0;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;49602:42:0;;;;;;;;;;49694:13;:24;;;;;;;49686:41;;49602:42;49686:7;:41::i;:::-;-1:-1:-1;;;;;49659:24:0;;;;;;:13;:24;;;;;;;;:68;;;;49749:31;;;:20;:31;;;;;:42;;;;;;;;49742:49;;;49806:26;;49659:24;;49806:26;;;;;49825:6;;49806:26;49659:24;49806:26;49825:6;49659:24;49806:26;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49806:26:0;49872:9;-1:-1:-1;;;;;49852:38:0;49861:9;49852:38;;;;49883:6;49852:38;;;;;;;;;;;;;;;49518:384;49420:489;;;:::o;63574:401::-;63659:9;;:::i;:::-;63725:26;;:::i;:::-;63754:19;63767:5;63754:12;:19::i;:::-;63725:48;;63815:35;63833:5;63840:9;63815:17;:35::i;:::-;63890:48;63911:5;63918:9;:19;;;63890:20;:48::i;:::-;63958:9;63574:401;-1:-1:-1;;63574:401:0:o;132809:315::-;132953:21;;132895:7;;-1:-1:-1;;;;;132953:21:0;132895:7;133010:36;;:74;;133062:22;133010:74;;;133049:10;133010:74;132985:99;132809:315;-1:-1:-1;;;132809:315:0:o;82441:467::-;82528:13;82592:1;82581;:8;:12;82559:95;;;;;;-1:-1:-1;;;;;82559:95:0;;;;;;;;;82707:8;;82705:1;;-1:-1:-1;;82707:12:0;;;82705:15;;;;;;;;;;82823:8;;-1:-1:-1;;82819:16:0;82849:17;;;-1:-1:-1;;;;82705:15:0;;;;;;82441:467::o;87563:511::-;87690:14;87756:5;87764:2;87756:10;87744:1;:8;:22;;87722:110;;;;;;-1:-1:-1;;;;;87722:110:0;;;;;;;;;-1:-1:-1;88018:13:0;87916:2;88018:13;88012:20;;87563:511::o;103862:2802::-;104086:139;;104032:12;;104062:21;;104032:12;;104123:48;;104086:139;;104186:4;;104205:9;;104086:139;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;104086:139:0;;;49:4:-1;25:18;;;61:17;;104086:139:0;182:15:-1;-1:-1;;;;;;104086:139:0;;;179:29:-1;160:49;;104272:58:0;;;;;;;;;;;;;;;;;;;;;;;104086:139;;-1:-1:-1;104257:75:0;;-1:-1:-1;104377:26:0;;104370:34;104367:2;;;-1:-1:-1;;;;;104487:1:0;104480:77;-1:-1:-1;;;104582:2:0;104575:78;104682:66;104678:2;104671:78;104778:1;104774:2;104767:13;104808:3;104805:1;104798:14;104367:2;104872;104862:8;104858:17;105232:2;105170:7;105122:8;105116:15;105052:7;104987:13;104933:3;104904:387;105320:16;105338:2;105317:24;105307:2;;-1:-1:-1;;;;;105425:1:0;105418:77;-1:-1:-1;;;105520:2:0;105513:78;105620:66;105616:2;105609:78;105716:1;105712:2;105705:13;105746:3;105743:1;105736:14;105307:2;105788:7;105809:429;;;;106257:1;106252:369;;;;105781:840;;105809:429;-1:-1:-1;;;;;105898:1:0;105891:77;-1:-1:-1;;;105993:2:0;105986:78;106093:66;106089:2;106082:78;106189:1;106185:2;106178:13;106219:3;106216:1;106209:14;106252:369;-1:-1:-1;;;;;;106508:10:0;106504:83;-1:-1:-1;;;;;;106404:7:0;106398:14;106394:87;106369:237;106358:248;;105781:840;-1:-1:-1;;;103862:2802:0;;;;;;;:::o;83108:501::-;83198:14;83264:2;83252:1;:8;:14;;83230:102;;;;;;-1:-1:-1;;;;;83230:102:0;;;;;;;;;83387:29;83399:1;83413:2;83402:1;:8;:13;83387:11;:29::i;:::-;83523:8;;-1:-1:-1;;83519:17:0;83550;;;-1:-1:-1;83378:38:0;83108:501::o;107111:2903::-;107373:170;;107319:12;;107349:21;;107319:12;;107410:51;;107373:170;;107476:4;;107421:13;;107523:9;;107373:170;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;107373:170:0;;;49:4:-1;25:18;;;61:17;;107373:170:0;182:15:-1;-1:-1;;;;;;107373:170:0;;;179:29:-1;160:49;;107590:69:0;;;;;;;;;;;;;;;;;;;;;;;107373:170;;-1:-1:-1;107575:86:0;;-1:-1:-1;107706:29:0;;107699:37;107696:2;;;-1:-1:-1;;;;;107822:1:0;107815:77;-1:-1:-1;;;107917:2:0;107910:78;108017:66;108013:2;108006:78;108113:1;108109:2;108102:13;108143:3;108140:1;108133:14;107696:2;108207;108197:8;108193:17;108575:2;108512:7;108463:8;108457:15;108392:7;108323:16;108268:3;108239:396;108664:16;108682:2;108661:24;108651:2;;-1:-1:-1;;;;;108772:1:0;108765:77;-1:-1:-1;;;108867:2:0;108860:78;108967:66;108963:2;108956:78;109063:1;109059:2;109052:13;109093:3;109090:1;109083:14;108651:2;109135:7;109156:432;;;;109607:1;109602:369;;;;109128:843;;109156:432;-1:-1:-1;;;;;109248:1:0;109241:77;-1:-1:-1;;;109343:2:0;109336:78;109443:66;109439:2;109432:78;109539:1;109535:2;109528:13;109569:3;109566:1;109559:14;109602:369;-1:-1:-1;;;;;;109858:10:0;109854:83;-1:-1:-1;;;;;;109754:7:0;109748:14;109744:87;109719:237;109708:248;;109128:843;-1:-1:-1;;;107111:2903:0;;;;;;;;:::o;49073:339::-;-1:-1:-1;;;;;49215:21:0;;;;;;:13;:21;;;;;;49207:38;;49238:6;49207:7;:38::i;:::-;-1:-1:-1;;;;;49183:21:0;;;;;;:13;:21;;;;;;;;:62;;;;49306:31;;;:20;:31;;;;;:39;;;;;;;;;49298:56;;49347:6;49298:7;:56::i;:::-;49256:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;49256:39:0;;;;;;;;;;;:98;;;;49370:34;49277:9;;49370:34;;;;49397:6;;49370:34;;60795:2516;60966:30;;:::i;:::-;61043:26;;:::i;:::-;61136:20;61678:33;61795:30;61072:19;61085:5;61072:12;:19::i;:::-;61043:48;;61159:26;:24;:26::i;:::-;61136:49;;61337:1;61325:9;:13;61321:107;;;61355:61;61371:9;:19;;;61392:12;61406:9;61355:15;:61::i;:::-;61495:125;61529:5;61549:9;61573:12;61600:9;61495:19;:125::i;:::-;61714:70;61722:5;:22;;;61746:9;:37;;;61714:7;:70::i;:::-;61678:106;;61828:55;61835:20;61857:25;61828:6;:55::i;:::-;61795:88;;61956:51;61977:5;61984:22;61956:20;:51::i;:::-;61942:65;;62049:191;62079:5;62099:9;62123:20;62158:22;62195:11;:34;;;62049:15;:191::i;:::-;62296:187;62328:5;62348:12;62375:9;:19;;;62409:9;:37;;;62461:11;62296:17;:187::i;:::-;62521:95;62547:5;62567:12;62594:11;62521;:95::i;:::-;52946:14;;;;;;;;;;;;-1:-1:-1;;;;;52946:14:0;;;;;;-1:-1:-1;52946:14:0;;;;52936:25;;52946:14;;52936:25;;52946:14;52936:25;52946:14;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;52936:25:0;;;;;;;;;;;62691:20;;;;62681:31;;52936:25;;-1:-1:-1;62691:20:0;-1:-1:-1;52936:25:0;;;;-1:-1:-1;62681:31:0;;;;52936:25;62681:31;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;62681:31:0;;;;;;;;;;;;;;;;:59;;;;62677:296;;;62757:204;62802:9;:19;;;62840:5;:18;;;62877:69;62885:11;:34;;;62921:11;:24;;;62877:7;:69::i;:::-;62757:26;:204::i;:::-;52946:14;;;;;;;;;;;;-1:-1:-1;;;;;52946:14:0;;;;;;-1:-1:-1;52946:14:0;;;;52936:25;;52946:14;;52936:25;;52946:14;52936:25;52946:14;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;52936:25:0;;;;;;;;;;;62997:20;;;;62987:31;;52936:25;;-1:-1:-1;62997:20:0;-1:-1:-1;52936:25:0;;;;-1:-1:-1;62987:31:0;;;;52936:25;62987:31;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;62987:31:0;;;;;;;;;;;;;;;;:59;;;;62983:290;;;63063:198;63108:9;:19;;;63146:12;63177:69;63185:11;:34;;;63221:11;:24;;;63177:7;:69::i;63063:198::-;60795:2516;;;;;;;;;:::o;131103:1255::-;38477:152;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;38477:152:0;;;;;;;;38467:163;;131274:14;;;;;;38477:152;;;;38467:163;;;;38477:152;38467:163;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;38467:163:0;;;;;;;;;;;131394:15;;38467:163;;-1:-1:-1;131394:15:0;;-1:-1:-1;38467:163:0;;-1:-1:-1;38467:163:0;;131394:15;;;-1:-1:-1;131394:15:0;38467:163;131394:15;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;131394:15:0;;;;;;;;;;;;131786:26;;;131913:15;;131906:29;;;;-1:-1:-1;;;;;;132040:62:0;;;;132023:15;;;132016:87;;;;-1:-1:-1;;132154:2:0;132142:15;;132135:33;-1:-1:-1;;132312:3:0;132294:22;;;;131103:1255;-1:-1:-1;131103:1255:0:o;6123:950::-;6279:18;;6602:2;6596:9;6636:66;6621:82;;6754:1;6742:14;;6735:40;;;;6873:2;6861:15;;6854:35;;;;7028:2;7010:21;;;6123:950::o;11414:209::-;11506:17;11553:35;11571:16;11581:5;11571:9;:16::i;818:241::-;907:7;944:5;;;982:6;;;;960:72;;;;-1:-1:-1;;;;;960:72:0;;;;;;;;;1050:1;1043:8;;818:241;;;;;;:::o;49917:1125::-;50377:31;50583:20;50150:1;50138:9;:13;50134:233;;;-1:-1:-1;;;;;50200:21:0;;;;;;:13;:21;;;;;;50192:41;;50223:9;50192:7;:41::i;:::-;-1:-1:-1;;;;;50168:21:0;;;;;;:13;:21;;;;;;;;:65;;;;50301:34;;;:20;:34;;;;;:42;;;;;;;;;50293:62;;50345:9;50293:7;:62::i;:::-;50248:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;50248:42:0;;;;;;;;;:107;50134:233;50411:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;50411:42:0;;;;;;;;;;;-1:-1:-1;50464:47:0;50432:12;50490;50446:6;50464:11;:47::i;:::-;50552:14;50526:23;:40;50522:415;;;50614:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;50614:42:0;;;;;;;;;;50606:67;;50658:14;50606:7;:67::i;:::-;50741:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;50741:42:0;;;;;;;;;;50583:90;;-1:-1:-1;50733:65:0;;50583:90;50733:7;:65::i;:::-;50688:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;50688:42:0;;;;;;;;;:110;;;;50845:13;:21;;;;50837:44;;50868:12;50837:7;:44::i;:::-;-1:-1:-1;;;;;50813:21:0;;;;;;:13;:21;;;;;;:68;;;;50896:29;;50813:21;;50896:29;;;;;50912:12;;50896:29;50813:21;50896:29;50912:12;50813:21;50896:29;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;50896:29:0;50522:415;50952:82;;-1:-1:-1;;;;;50952:82:0;;;50997:12;;50967;;50952:82;;;;50981:14;;51011;;50952:82;;;;;;;;;;49917:1125;;;;;;;:::o;592:218::-;681:7;728:6;;;;706:73;;;;-1:-1:-1;;;;;706:73:0;;;;;;;;;-1:-1:-1;797:5:0;;;592:218::o;70516:844::-;70790:21;;71195:20;;70790:52;;70821:20;70790:52;70768:118;;;;-1:-1:-1;;;;;70768:118:0;;;;;;;;;70963:19;;;;-1:-1:-1;;;;;70963:33:0;;70959:175;;71039:19;;;;-1:-1:-1;;;;;71039:33:0;71062:10;71039:33;71013:109;;;;-1:-1:-1;;;;;71013:109:0;;;;;;;;;71218:26;:24;:26::i;:::-;71277:18;;71195:49;;-1:-1:-1;;;;;;71277:34:0;;;;;;71255:97;;;;-1:-1:-1;;;;;71255:97:0;;;;;;;;65351:440;65506:20;;;;:9;:20;;;;;;;:27;;-1:-1:-1;;65506:27:0;65529:4;65506:27;;;65628:25;;;;65595:18;;65717:20;;;;65752;;;;65574:209;;65516:9;;-1:-1:-1;;;;;65574:209:0;;;;;;;;;;;;;65668:10;;65752:20;65574:209;;;;;;;;;;65351:440;;:::o;84463:912::-;84590:14;84656:5;84664:2;84656:10;84644:1;:8;:22;;84622:138;;;;;;-1:-1:-1;;;;;84622:138:0;;;;;;;;;-1:-1:-1;85274:13:0;85012:2;85274:13;85268:20;-1:-1:-1;;;;;85264:69:0;;84463:912::o;66115:1286::-;66418:21;;:52;;66449:20;66418:52;66396:118;;;;-1:-1:-1;;;;;66396:118:0;;;;;;;;;66589:19;;;;-1:-1:-1;;;;;66589:33:0;;66585:175;;66665:19;;;;-1:-1:-1;;;;;66665:33:0;66688:10;66665:33;66639:109;;;;-1:-1:-1;;;;;66639:109:0;;;;;;;;;66833:18;;;;-1:-1:-1;;;;;66833:32:0;;66829:174;;66930:12;-1:-1:-1;;;;;66908:34:0;:5;:18;;;-1:-1:-1;;;;;66908:34:0;;66882:109;;;;;;-1:-1:-1;;;;;66882:109:0;;;;;;;;;67088:37;;;;:42;67084:310;;;67173:150;67212:9;:19;;;67254:5;:18;;;67295:9;67173:16;:150::i;:::-;67147:235;;;;;;-1:-1:-1;;;;;67147:235:0;;;;;;;;;66115:1286;;;;:::o;1510:141::-;1598:7;1634:1;1630;:5;:13;;1642:1;1630:13;;;-1:-1:-1;1638:1:0;;1623:20;-1:-1:-1;1510:141:0:o;71637:914::-;71794:30;;:::i;:::-;71892:34;;;:59;;;72076:22;;;;72113;;;;71999:147;;71929:22;;71999:25;:147::i;:::-;71962:184;;;72273:22;;;;72310:14;;;;72184:151;;71962:184;72273:22;72184:25;:151::i;:::-;72157:24;;;:178;72450:22;;;;72487:14;;;;72373:139;;72413:22;;72373:25;:139::i;:::-;72346:24;;;:166;71637:914;;;;:::o;67843:2471::-;68251:25;;;68229:95;;;;-1:-1:-1;;;;;68229:95:0;;;;;;;;;68550:46;;;;68528:109;;;;-1:-1:-1;;;;;68528:109:0;;;;;;;;;68917:5;:22;;;68843:70;68851:9;:37;;;68890:22;68843:7;:70::i;:::-;:96;;68821:160;;;;-1:-1:-1;;;;;68821:160:0;;;;;;;;;70205:55;70213:5;:22;;;70237;70205:7;:55::i;:::-;70120;70128:22;70152:5;:22;;;70120:7;:55::i;:::-;:140;;70098:208;;;;-1:-1:-1;;;;;70098:208:0;;;;;;;;;67843:2471;;;;;:::o;64224:818::-;64512:72;64520:27;64549:11;:34;;;64512:7;:72::i;:::-;64492:17;;;;:6;:17;;;;;;;;;:92;;;;64676:25;;;;64643:18;;64768:34;;64817;;;;64866:24;;;;64905;;;;64968:20;;;;65003;;;;64624:410;;64492:17;;-1:-1:-1;;;;;64624:410:0;;;;;;;;;;;;;64716:12;;64743:10;;64768:34;;64817;;64866:24;;65003:20;64624:410;;;;;;;;;;64224:818;;;;;:::o;72867:964::-;73081:14;;;73053:25;73081:14;;;;;;;-1:-1:-1;;;;;73081:14:0;;;;-1:-1:-1;73081:14:0;;;;;;;73141:20;;;;73176:18;;73236:34;;73106:175;;73141:20;73176:18;73209:12;;73106:20;:175::i;:::-;73292;73327:5;:20;;;73362:12;73389:5;:18;;;73422:11;:34;;;73292:20;:175::i;:::-;73478:170;73513:12;73540:5;:18;;;73573:5;:25;;;73613:11;:24;;;73478:20;:170::i;:::-;73659:164;73694:12;73721;73748:5;:25;;;73788:11;:24;;;73659:20;:164::i;51449:261::-;51654:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;51654:39:0;;;;;;;;;;51646:56;;51695:6;51646:7;:56::i;:::-;51604:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;51604:39:0;;;;;;;;;;;;:98;-1:-1:-1;51449:261:0:o;11768:1727::-;7925:472;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;7925:472:0;;;;;;;;7915:483;;11857:14;;;;;;;;7925:472;;;;;7915:483;;;;7925:472;7915:483;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;7915:483:0;;;;;;;;;;;11984:20;;;;11974:31;;7915:483;;-1:-1:-1;11984:20:0;-1:-1:-1;7915:483:0;;-1:-1:-1;7915:483:0;;11974:31;;;-1:-1:-1;11974:31:0;7915:483;11974:31;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;11974:31:0;;;;;;;;;;;12055:20;;;;12045:31;;11974;;-1:-1:-1;12055:20:0;-1:-1:-1;11974:31:0;;-1:-1:-1;11974:31:0;;12045;;;-1:-1:-1;12045:31:0;11974;12045;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;;;;365:33;;12045:31:0;;;;;;;;;;-1:-1:-1;;12863:14:0;;13011:11;;12914:3;12903:15;;13049:11;;12955:3;12944:15;;;13087:11;;13156:24;;;13194:32;;;13240;;;13312:3;13296:20;;13368:19;;13401;;;-1:-1:-1;;;13434:19:0;;;-1:-1:-1;13296:20:0;;11768:1727;-1:-1:-1;11768:1727:0:o;51050:391::-;51199:14;51216:35;;;:20;:35;;;;;;;;-1:-1:-1;;;;;51216:43:0;;;;;;;;;;;;;51270:50;;;;51383:33;;;;;;;;;:41;;;;;;;;;;51375:58;;51216:43;51375:7;:58::i;:::-;51331:33;;;;:20;:33;;;;;;;;-1:-1:-1;;;;;51331:41:0;;;;;;;;;;;;:102;-1:-1:-1;;51050:391:0:o;14565:652::-;14740:21;14801:15;;;14779:81;;;;-1:-1:-1;;;;;14779:81:0;;;;;;;;;14896:118;14935:9;14963:11;14993:6;14896:20;:118::i;:::-;14895:119;14873:183;;;;-1:-1:-1;;;;;14873:183:0;;;;;;;;;15093:85;15115:26;15123:9;15134:6;15115:7;:26::i;:::-;15156:11;15093:7;:85::i;:::-;15077:101;14565:652;-1:-1:-1;;;;14565:652:0:o;116:302::-;205:7;;234:6;;230:47;;;264:1;257:8;;;;230:47;-1:-1:-1;299:5:0;;;303:1;299;:5;337;;;;;;;;:10;315:76;;;;-1:-1:-1;;;;;315:76:0;;;;;;;;117549:5918;118301:20;118787:19;119053:18;117794:1;117785:6;:10;:24;;;;;117807:2;-1:-1:-1;;;;;117799:10:0;:4;-1:-1:-1;;;;;117799:10:0;;;117785:24;117781:5679;;;117901:16;;117920:1;-1:-1:-1;117875:112:0;;;;-1:-1:-1;;;;;117875:112:0;;;;;;;;;52946:14;;;;;;;;;;;;-1:-1:-1;;;;;52946:14:0;;;;;;-1:-1:-1;52946:14:0;;;;52936:25;;52946:14;;52936:25;;52946:14;52936:25;52946:14;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;52936:25:0;;;;;;;;;;;118080:20;;52936:25;;-1:-1:-1;118080:20:0;;-1:-1:-1;52936:25:0;;;;-1:-1:-1;118080:20:0;;;;52936:25;118080:20;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;118080:20:0;;;;;;;;;;;;;;;;:48;;;;118076:596;;;-1:-1:-1;;;;;118179:19:0;;;;;;:13;:19;;;;;;:29;-1:-1:-1;118179:29:0;118149:133;;;;-1:-1:-1;;;;;118149:133:0;;;;;;;;;-1:-1:-1;;;;;118332:19:0;;;;;;:13;:19;;;;;;118324:36;;118353:6;118324:7;:36::i;:::-;-1:-1:-1;;;;;118379:19:0;;;;;;;:13;:19;;;;;:34;;;118301:59;;-1:-1:-1;118436:19:0;;118450:4;118436:19;118432:200;;118485:2;-1:-1:-1;;;;;118485:7:0;53013:6;118523;118485:47;;;;;;;;;;;;;;;;;;118484:48;118480:133;;;118561:28;;-1:-1:-1;;;;;118561:28:0;;;;;;;;118480:133;118650:7;;118076:596;-1:-1:-1;;118912:2:0;118897:18;;;118869:47;-1:-1:-1;;;;;;118865:159:0;119074:26;;;;:12;:26;;;;;;;;-1:-1:-1;;;;;119074:26:0;119189:24;;;119163:112;;;;-1:-1:-1;;;;;119163:112:0;;;;;;;;;120712:2;120706:9;121032:15;121027:2;121015:9;121009:16;121005:25;121001:47;121187:14;121182:3;121178:24;121169:7;121165:38;121477:66;121468:7;121461:83;121968:3;121964:1;121955:7;121951:15;121944:28;-1:-1:-1;;;;;122019:4:0;122015:53;122010:2;122001:7;121997:16;121990:79;-1:-1:-1;;;;;122116:2:0;122112:51;122107:2;122098:7;122094:16;122087:77;122208:6;122202:3;122193:7;122189:17;122182:33;122378:3;122369:7;122365:17;122462:210;122482:5;122472:8;122469:19;122462:210;;;122532:16;;122515:34;;122597:2;122635:18;;;;122583:17;122462:210;;;123248:3;123176:7;123121;123114:5;123110:19;123036:7;122969:1;122893:10;122829:3;122802:520;123350:7;123343:15;123340:2;;;123398:16;123389:7;123382:33;123340:2;120510:2939;;;;;117549:5918;;;;;;;:::o;18467:1916::-;18637:12;;18689:15;;;18667:81;;;;-1:-1:-1;;;;;18667:81:0;;;;;;;;;19583:11;;;:29;;-1:-1:-1;19598:14:0;;19583:29;19579:74;;;19636:5;19629:12;;;;19579:74;20253:11;20187:88;;;;;;;20229:9;20208:6;20187:88;20167:108;;20324:26;20332:9;20343:6;20324:7;:26::i;:::-;20296:24;20304:4;20310:9;20296:7;:24::i;:::-;:54;;;18467:1916;-1:-1:-1;;;;;18467:1916:0:o;426:158::-;515:7;540:9;556:1;552;:5;;;;;;;;;426:158;-1:-1:-1;;;;426:158:0:o;133873:495::-;;;;;;;;;-1:-1:-1;133873:495:0;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;5:118:-1:-;;72:46;110:6;97:20;72:46;;162:732;;290:4;278:17;;274:27;-1:-1;264:2;;315:1;312;305:12;264:2;352:6;339:20;374:98;389:82;464:6;389:82;;;374:98;;;500:21;;;544:4;532:17;;;;365:107;;-1:-1;557:14;;532:17;652:1;637:251;662:6;659:1;656:13;637:251;;;745:3;732:17;724:6;720:30;769:55;820:3;808:10;769:55;;;757:68;;-1:-1;848:4;839:14;;;;867;;;;;684:1;677:9;637:251;;;641:14;257:637;;;;;;;;902:112;;966:43;1001:6;988:20;966:43;;1021:118;;1088:46;1126:6;1113:20;1088:46;;1146:116;;1212:45;1249:6;1236:20;1212:45;;1269:120;;1346:38;1376:6;1370:13;1346:38;;1410:335;;;1517:4;1505:17;;1501:27;-1:-1;1491:2;;1542:1;1539;1532:12;1491:2;-1:-1;1562:20;;1602:18;1591:30;;1588:2;;;1634:1;1631;1624:12;1588:2;1668:4;1660:6;1656:17;1644:29;;1718:3;1711;1703:6;1699:16;1689:8;1685:31;1682:40;1679:2;;;1735:1;1732;1725:12;1679:2;1484:261;;;;;;1754:432;;1844:4;1832:17;;1828:27;-1:-1;1818:2;;1869:1;1866;1859:12;1818:2;1906:6;1893:20;1928:60;1943:44;1980:6;1943:44;;1928:60;1919:69;;2008:6;2001:5;1994:21;2044:4;2036:6;2032:17;2077:4;2070:5;2066:16;2112:3;2103:6;2098:3;2094:16;2091:25;2088:2;;;2129:1;2126;2119:12;2088:2;2139:41;2173:6;2168:3;2163;2139:41;;;1811:375;;;;;;;;2671:2204;;2778:5;2766:9;2761:3;2757:19;2753:31;2750:2;;;2797:1;2794;2787:12;2750:2;2815:21;2830:5;2815:21;;;2806:30;-1:-1;2894:1;2925:49;2970:3;2950:9;2925:49;;;2901:74;;-1:-1;3044:2;3077:49;3122:3;3098:22;;;3077:49;;;3070:4;3063:5;3059:16;3052:75;2996:142;3203:2;3236:49;3281:3;3272:6;3261:9;3257:22;3236:49;;;3229:4;3222:5;3218:16;3211:75;3148:149;3356:2;3389:49;3434:3;3425:6;3414:9;3410:22;3389:49;;;3382:4;3375:5;3371:16;3364:75;3307:143;3512:3;3546:49;3591:3;3582:6;3571:9;3567:22;3546:49;;;3539:4;3532:5;3528:16;3521:75;3460:147;3669:3;3703:49;3748:3;3739:6;3728:9;3724:22;3703:49;;;3696:4;3689:5;3685:16;3678:75;3617:147;3818:3;3852:49;3897:3;3888:6;3877:9;3873:22;3852:49;;;3845:4;3838:5;3834:16;3827:75;3774:139;3967:3;4001:49;4046:3;4037:6;4026:9;4022:22;4001:49;;;3994:4;3987:5;3983:16;3976:75;3923:139;4129:3;4164:49;4209:3;4200:6;4189:9;4185:22;4164:49;;;4156:5;4149;4145:17;4138:76;4072:153;4275:3;4310:49;4355:3;4346:6;4335:9;4331:22;4310:49;;;4302:5;4295;4291:17;4284:76;4235:136;4459:3;4448:9;4444:19;4431:33;4484:18;4476:6;4473:30;4470:2;;;4516:1;4513;4506:12;4470:2;4552:54;4602:3;4593:6;4582:9;4578:22;4552:54;;;4544:5;4537;4533:17;4526:81;4381:237;4706:3;4695:9;4691:19;4678:33;4731:18;4723:6;4720:30;4717:2;;;4763:1;4760;4753:12;4717:2;4799:54;4849:3;4840:6;4829:9;4825:22;4799:54;;;4791:5;4784;4780:17;4773:81;4628:237;2744:2131;;;;;7250:241;;7354:2;7342:9;7333:7;7329:23;7325:32;7322:2;;;7370:1;7367;7360:12;7322:2;7405:1;7422:53;7467:7;7447:9;7422:53;;7498:366;;;7619:2;7607:9;7598:7;7594:23;7590:32;7587:2;;;7635:1;7632;7625:12;7587:2;7670:1;7687:53;7732:7;7712:9;7687:53;;;7677:63;;7649:97;7777:2;7795:53;7840:7;7831:6;7820:9;7816:22;7795:53;;;7785:63;;7756:98;7581:283;;;;;;7871:360;;;7989:2;7977:9;7968:7;7964:23;7960:32;7957:2;;;8005:1;8002;7995:12;7957:2;8040:1;8057:53;8102:7;8082:9;8057:53;;;8047:63;;8019:97;8147:2;8165:50;8207:7;8198:6;8187:9;8183:22;8165:50;;8238:413;;8385:2;8373:9;8364:7;8360:23;8356:32;8353:2;;;8401:1;8398;8391:12;8353:2;8436:31;;8487:18;8476:30;;8473:2;;;8519:1;8516;8509:12;8473:2;8539:96;8627:7;8618:6;8607:9;8603:22;8539:96;;8658:241;;8762:2;8750:9;8741:7;8737:23;8733:32;8730:2;;;8778:1;8775;8768:12;8730:2;8813:1;8830:53;8875:7;8855:9;8830:53;;8906:366;;;9027:2;9015:9;9006:7;9002:23;8998:32;8995:2;;;9043:1;9040;9033:12;8995:2;9078:1;9095:53;9140:7;9120:9;9095:53;;9279:615;;;;;9436:2;9424:9;9415:7;9411:23;9407:32;9404:2;;;9452:1;9449;9442:12;9404:2;9487:1;9504:53;9549:7;9529:9;9504:53;;;9494:63;;9466:97;9594:2;9612:53;9657:7;9648:6;9637:9;9633:22;9612:53;;;9602:63;;9573:98;9730:2;9719:9;9715:18;9702:32;9754:18;9746:6;9743:30;9740:2;;;9786:1;9783;9776:12;9740:2;9814:64;9870:7;9861:6;9850:9;9846:22;9814:64;;;9398:496;;;;-1:-1;9796:82;-1:-1;;;;9398:496;9901:595;;;;10048:2;10036:9;10027:7;10023:23;10019:32;10016:2;;;10064:1;10061;10054:12;10016:2;10099:1;10116:53;10161:7;10141:9;10116:53;;;10106:63;;10078:97;10206:2;10224:53;10269:7;10260:6;10249:9;10245:22;10224:53;;;10214:63;;10185:98;10342:2;10331:9;10327:18;10314:32;10366:18;10358:6;10355:30;10352:2;;;10398:1;10395;10388:12;10352:2;10418:62;10472:7;10463:6;10452:9;10448:22;10418:62;;;10408:72;;10293:193;10010:486;;;;;;10503:621;;;;10663:2;10651:9;10642:7;10638:23;10634:32;10631:2;;;10679:1;10676;10669:12;10631:2;10714:1;10731:53;10776:7;10756:9;10731:53;;;10721:63;;10693:97;10821:2;10839:53;10884:7;10875:6;10864:9;10860:22;10839:53;;;10829:63;;10800:98;10957:2;10946:9;10942:18;10929:32;10981:18;10973:6;10970:30;10967:2;;;11013:1;11010;11003:12;10967:2;11033:75;11100:7;11091:6;11080:9;11076:22;11033:75;;11131:239;;11234:2;11222:9;11213:7;11209:23;11205:32;11202:2;;;11250:1;11247;11240:12;11202:2;11285:1;11302:52;11346:7;11326:9;11302:52;;11377:261;;11491:2;11479:9;11470:7;11466:23;11462:32;11459:2;;;11507:1;11504;11497:12;11459:2;11542:1;11559:63;11614:7;11594:9;11559:63;;11645:371;;11771:2;11759:9;11750:7;11746:23;11742:32;11739:2;;;11787:1;11784;11777:12;11739:2;11822:31;;11873:18;11862:30;;11859:2;;;11905:1;11902;11895:12;11859:2;11925:75;11992:7;11983:6;11972:9;11968:22;11925:75;;12023:725;;;;12192:2;12180:9;12171:7;12167:23;12163:32;12160:2;;;12208:1;12205;12198:12;12160:2;12243:31;;12294:18;12283:30;;12280:2;;;12326:1;12323;12316:12;12280:2;12346:75;12413:7;12404:6;12393:9;12389:22;12346:75;;;12336:85;;12222:205;12458:2;12476:53;12521:7;12512:6;12501:9;12497:22;12476:53;;13003:865;;;;;;;13196:3;13184:9;13175:7;13171:23;13167:33;13164:2;;;13213:1;13210;13203:12;13164:2;13248:1;13265:53;13310:7;13290:9;13265:53;;;13255:63;;13227:97;13355:2;13373:53;13418:7;13409:6;13398:9;13394:22;13373:53;;;13363:63;;13334:98;13491:2;13480:9;13476:18;13463:32;13515:18;13507:6;13504:30;13501:2;;;13547:1;13544;13537:12;13501:2;13575:64;13631:7;13622:6;13611:9;13607:22;13575:64;;;13557:82;;;;13442:203;13704:2;13693:9;13689:18;13676:32;13728:18;13720:6;13717:30;13714:2;;;13760:1;13757;13750:12;13714:2;13788:64;13844:7;13835:6;13824:9;13820:22;13788:64;;;13770:82;;;;13655:203;13158:710;;;;;;;;;13875:110;13948:31;13973:5;13948:31;;;13943:3;13936:44;13930:55;;;14059:748;;14238:76;14308:5;14238:76;;;14332:6;14327:3;14320:19;14356:4;14351:3;14347:14;14340:21;;14401:78;14473:5;14401:78;;;14500:1;14485:300;14510:6;14507:1;14504:13;14485:300;;;14550:101;14647:3;14638:6;14632:13;14550:101;;;14668:82;14743:6;14668:82;;;14773:4;14764:14;;;;;14658:92;-1:-1;14532:1;14525:9;14485:300;;;-1:-1;14798:3;;14217:590;-1:-1;;;;14217:590;14815:101;14882:28;14904:5;14882:28;;14923:110;14996:31;15021:5;14996:31;;15040:107;15111:30;15135:5;15111:30;;15154:297;;15254:38;15286:5;15254:38;;;15309:6;15304:3;15297:19;15321:63;15377:6;15370:4;15365:3;15361:14;15354:4;15347:5;15343:16;15321:63;;;15416:29;15438:6;15416:29;;;15396:50;;;15409:4;15396:50;;15234:217;-1:-1;;;15234:217;15754:156;15847:57;15898:5;15847:57;;16217:296;16372:2;16360:15;;16409:66;16404:2;16395:12;;16388:88;16504:2;16495:12;;16353:160;16522:296;16677:2;16665:15;;16714:66;16709:2;16700:12;;16693:88;16809:2;16800:12;;16658:160;16827:296;16982:2;16970:15;;17019:66;17014:2;17005:12;;16998:88;17114:2;17105:12;;16963:160;17132:296;17287:2;17275:15;;17324:66;17319:2;17310:12;;17303:88;17419:2;17410:12;;17268:160;17437:296;17592:2;17580:15;;17629:66;17624:2;17615:12;;17608:88;17724:2;17715:12;;17573:160;17742:397;17897:2;17885:15;;17934:66;17929:2;17920:12;;17913:88;18035:66;18030:2;18021:12;;18014:88;18130:2;18121:12;;17878:261;18148:296;18303:2;18291:15;;18340:66;18335:2;18326:12;;18319:88;18435:2;18426:12;;18284:160;18453:296;18608:2;18596:15;;18645:66;18640:2;18631:12;;18624:88;18740:2;18731:12;;18589:160;18758:296;18913:2;18901:15;;18950:66;18945:2;18936:12;;18929:88;19045:2;19036:12;;18894:160;19063:296;19218:2;19206:15;;19255:66;19250:2;19241:12;;19234:88;19350:2;19341:12;;19199:160;19368:397;19523:2;19511:15;;19560:66;19555:2;19546:12;;19539:88;19661:66;19656:2;19647:12;;19640:88;19756:2;19747:12;;19504:261;19774:296;19929:2;19917:15;;19966:66;19961:2;19952:12;;19945:88;20061:2;20052:12;;19910:160;20079:296;20234:2;20222:15;;20271:66;20266:2;20257:12;;20250:88;20366:2;20357:12;;20215:160;20384:296;20539:2;20527:15;;20576:66;20571:2;20562:12;;20555:88;20671:2;20662:12;;20520:160;20689:296;20844:2;20832:15;;20881:66;20876:2;20867:12;;20860:88;20976:2;20967:12;;20825:160;20994:296;21149:2;21137:15;;21186:66;21181:2;21172:12;;21165:88;21281:2;21272:12;;21130:160;21299:296;21454:2;21442:15;;21491:66;21486:2;21477:12;;21470:88;21586:2;21577:12;;21435:160;21604:296;21759:2;21747:15;;21796:66;21791:2;21782:12;;21775:88;21891:2;21882:12;;21740:160;21909:296;22064:2;22052:15;;22101:66;22096:2;22087:12;;22080:88;22196:2;22187:12;;22045:160;22214:296;22369:2;22357:15;;22406:66;22401:2;22392:12;;22385:88;22501:2;22492:12;;22350:160;22519:397;22674:2;22662:15;;22711:66;22706:2;22697:12;;22690:88;22812:66;22807:2;22798:12;;22791:88;22907:2;22898:12;;22655:261;22925:296;23080:2;23068:15;;23117:66;23112:2;23103:12;;23096:88;23212:2;23203:12;;23061:160;23230:296;23385:2;23373:15;;23422:66;23417:2;23408:12;;23401:88;23517:2;23508:12;;23366:160;23535:296;23690:2;23678:15;;23727:66;23722:2;23713:12;;23706:88;23822:2;23813:12;;23671:160;23840:296;23995:2;23983:15;;24032:66;24027:2;24018:12;;24011:88;24127:2;24118:12;;23976:160;24145:296;24300:2;24288:15;;24337:66;24332:2;24323:12;;24316:88;24432:2;24423:12;;24281:160;24450:296;24605:2;24593:15;;24642:66;24637:2;24628:12;;24621:88;24737:2;24728:12;;24586:160;24755:296;24910:2;24898:15;;24947:66;24942:2;24933:12;;24926:88;25042:2;25033:12;;24891:160;25060:296;25215:2;25203:15;;25252:66;25247:2;25238:12;;25231:88;25347:2;25338:12;;25196:160;25365:397;25520:2;25508:15;;25557:66;25552:2;25543:12;;25536:88;25658:66;25653:2;25644:12;;25637:88;25753:2;25744:12;;25501:261;25771:296;25926:2;25914:15;;25963:66;25958:2;25949:12;;25942:88;26058:2;26049:12;;25907:160;26076:296;26231:2;26219:15;;26268:66;26263:2;26254:12;;26247:88;26363:2;26354:12;;26212:160;26381:296;26536:2;26524:15;;26573:66;26568:2;26559:12;;26552:88;26668:2;26659:12;;26517:160;26686:296;26841:2;26829:15;;26878:66;26873:2;26864:12;;26857:88;26973:2;26964:12;;26822:160;26991:296;27146:2;27134:15;;27183:66;27178:2;27169:12;;27162:88;27278:2;27269:12;;27127:160;27296:296;27451:2;27439:15;;27488:66;27483:2;27474:12;;27467:88;27583:2;27574:12;;27432:160;27601:296;27756:2;27744:15;;27793:66;27788:2;27779:12;;27772:88;27888:2;27879:12;;27737:160;27982:886;28208:22;;28121:4;28112:14;;;28242:61;28116:3;28208:22;28242:61;;;28141:174;28409:4;28402:5;28398:16;28392:23;28427:62;28483:4;28478:3;28474:14;28461:11;28427:62;;;28325:176;28585:4;28578:5;28574:16;28568:23;28603:62;28659:4;28654:3;28650:14;28637:11;28603:62;;;28511:166;28761:4;28754:5;28750:16;28744:23;28779:62;28835:4;28830:3;28826:14;28813:11;28779:62;;28936:693;29147:22;;29071:4;29062:14;;;29181:57;29066:3;29147:22;29181:57;;;29091:159;29331:4;29324:5;29320:16;29314:23;29349:62;29405:4;29400:3;29396:14;29383:11;29349:62;;;29260:163;29522:4;29515:5;29511:16;29505:23;29540:62;29596:4;29591:3;29587:14;29574:11;29540:62;;30510:104;30579:29;30602:5;30579:29;;30621:193;30729:2;30714:18;;30743:61;30718:9;30777:6;30743:61;;30821:1057;31153:3;31138:19;;31168:61;31142:9;31202:6;31168:61;;;31240:62;31298:2;31287:9;31283:18;31274:6;31240:62;;;31313;31371:2;31360:9;31356:18;31347:6;31313:62;;;31386;31444:2;31433:9;31429:18;31420:6;31386:62;;;31459:63;31517:3;31506:9;31502:19;31493:6;31459:63;;;31533;31591:3;31580:9;31576:19;31567:6;31533:63;;;31645:9;31639:4;31635:20;31629:3;31618:9;31614:19;31607:49;31670:62;31727:4;31718:6;31670:62;;;31662:70;;31781:9;31775:4;31771:20;31765:3;31754:9;31750:19;31743:49;31806:62;31863:4;31854:6;31806:62;;;31798:70;31124:754;-1:-1;;;;;;;;;;31124:754;31885:547;32077:2;32062:18;;32091:61;32066:9;32125:6;32091:61;;;32200:9;32194:4;32190:20;32185:2;32174:9;32170:18;32163:48;32225:62;32282:4;32273:6;32225:62;;;32217:70;;32335:9;32329:4;32325:20;32320:2;32309:9;32305:18;32298:48;32360:62;32417:4;32408:6;32360:62;;;32352:70;32048:384;-1:-1;;;;;32048:384;32439:429;32641:2;32655:47;;;32626:18;;32716:142;32626:18;32844:6;32716:142;;32875:181;32977:2;32962:18;;32991:55;32966:9;33019:6;32991:55;;33063:193;33171:2;33156:18;;33185:61;33160:9;33219:6;33185:61;;33263:479;33445:2;33430:18;;33459:61;33434:9;33493:6;33459:61;;;33531:62;33589:2;33578:9;33574:18;33565:6;33531:62;;;33641:9;33635:4;33631:20;33626:2;33615:9;33611:18;33604:48;33666:66;33727:4;33718:6;33666:66;;33749:378;33903:2;33888:18;;33917:61;33892:9;33951:6;33917:61;;;34026:9;34020:4;34016:20;34011:2;34000:9;33996:18;33989:48;34051:66;34112:4;34103:6;34051:66;;34134:489;34322:3;34307:19;;34337:61;34311:9;34371:6;34337:61;;;34409:58;34463:2;34452:9;34448:18;34439:6;34409:58;;;34478:62;34536:2;34525:9;34521:18;34512:6;34478:62;;;34551;34609:2;34598:9;34594:18;34585:6;34551:62;;34630:290;34764:2;34749:18;;34778:59;34753:9;34810:6;34778:59;;;34848:62;34906:2;34895:9;34891:18;34882:6;34848:62;;34927:269;35049:2;35063:47;;;35034:18;;35124:62;35034:18;35172:6;35124:62;;35203:233;35331:2;35316:18;;35345:81;35320:9;35399:6;35345:81;;35723:387;35904:2;35918:47;;;35889:18;;35979:121;35889:18;35979:121;;36117:387;36298:2;36312:47;;;36283:18;;36373:121;36283:18;36373:121;;36511:387;36692:2;36706:47;;;36677:18;;36767:121;36677:18;36767:121;;36905:387;37086:2;37100:47;;;37071:18;;37161:121;37071:18;37161:121;;37299:387;37480:2;37494:47;;;37465:18;;37555:121;37465:18;37555:121;;37693:387;37874:2;37888:47;;;37859:18;;37949:121;37859:18;37949:121;;38087:387;38268:2;38282:47;;;38253:18;;38343:121;38253:18;38343:121;;38481:387;38662:2;38676:47;;;38647:18;;38737:121;38647:18;38737:121;;38875:387;39056:2;39070:47;;;39041:18;;39131:121;39041:18;39131:121;;39269:387;39450:2;39464:47;;;39435:18;;39525:121;39435:18;39525:121;;39663:387;39844:2;39858:47;;;39829:18;;39919:121;39829:18;39919:121;;40057:387;40238:2;40252:47;;;40223:18;;40313:121;40223:18;40313:121;;40451:387;40632:2;40646:47;;;40617:18;;40707:121;40617:18;40707:121;;40845:387;41026:2;41040:47;;;41011:18;;41101:121;41011:18;41101:121;;41239:387;41420:2;41434:47;;;41405:18;;41495:121;41405:18;41495:121;;41633:387;41814:2;41828:47;;;41799:18;;41889:121;41799:18;41889:121;;42027:387;42208:2;42222:47;;;42193:18;;42283:121;42193:18;42283:121;;42421:387;42602:2;42616:47;;;42587:18;;42677:121;42587:18;42677:121;;42815:387;42996:2;43010:47;;;42981:18;;43071:121;42981:18;43071:121;;43209:387;43390:2;43404:47;;;43375:18;;43465:121;43375:18;43465:121;;43603:387;43784:2;43798:47;;;43769:18;;43859:121;43769:18;43859:121;;43997:387;44178:2;44192:47;;;44163:18;;44253:121;44163:18;44253:121;;44391:387;44572:2;44586:47;;;44557:18;;44647:121;44557:18;44647:121;;44785:387;44966:2;44980:47;;;44951:18;;45041:121;44951:18;45041:121;;45179:387;45360:2;45374:47;;;45345:18;;45435:121;45345:18;45435:121;;45573:387;45754:2;45768:47;;;45739:18;;45829:121;45739:18;45829:121;;45967:387;46148:2;46162:47;;;46133:18;;46223:121;46133:18;46223:121;;46361:387;46542:2;46556:47;;;46527:18;;46617:121;46527:18;46617:121;;46755:387;46936:2;46950:47;;;46921:18;;47011:121;46921:18;47011:121;;47149:387;47330:2;47344:47;;;47315:18;;47405:121;47315:18;47405:121;;47543:387;47724:2;47738:47;;;47709:18;;47799:121;47709:18;47799:121;;47937:387;48118:2;48132:47;;;48103:18;;48193:121;48103:18;48193:121;;48331:387;48512:2;48526:47;;;48497:18;;48587:121;48497:18;48587:121;;48725:387;48906:2;48920:47;;;48891:18;;48981:121;48891:18;48981:121;;49119:387;49300:2;49314:47;;;49285:18;;49375:121;49285:18;49375:121;;49513:387;49694:2;49708:47;;;49679:18;;49769:121;49679:18;49769:121;;49907:387;50088:2;50102:47;;;50073:18;;50163:121;50073:18;50163:121;;50301:306;50465:3;50450:19;;50480:117;50454:9;50570:6;50480:117;;50614:297;50774:2;50759:18;;50788:113;50763:9;50874:6;50788:113;;51118:294;51254:2;51239:18;;51268:61;51243:9;51302:6;51268:61;;;51340:62;51398:2;51387:9;51383:18;51374:6;51340:62;;51419:256;51481:2;51475:9;51507:17;;;51582:18;51567:34;;51603:22;;;51564:62;51561:2;;;51639:1;51636;51629:12;51561:2;51655;51648:22;51459:216;;-1:-1;51459:216;51682:276;;51859:18;51851:6;51848:30;51845:2;;;51891:1;51888;51881:12;51845:2;-1:-1;51920:4;51908:17;;;51938:15;;51782:176;51965:254;;52104:18;52096:6;52093:30;52090:2;;;52136:1;52133;52126:12;52090:2;-1:-1;52209:4;52180;52157:17;;;;-1:-1;;52153:33;52199:15;;52027:192;52493:143;52624:4;52612:17;;52593:43;52645:129;52757:12;;52741:33;53221:128;-1:-1;;;;;53290:54;;53273:76;53356:92;53429:13;53422:21;;53405:43;53541:151;-1:-1;;;;;;53609:78;;53592:100;53785:88;53863:4;53852:16;;53835:38;54444:135;;54543:31;54568:5;54543:31;;54587:145;54668:6;54663:3;54658;54645:30;-1:-1;54724:1;54706:16;;54699:27;54638:94;54741:268;54806:1;54813:101;54827:6;54824:1;54821:13;54813:101;;;54894:11;;;54888:18;54875:11;;;54868:39;54849:2;54842:10;54813:101;;;54929:6;54926:1;54923:13;54920:2;;;-1:-1;;54994:1;54976:16;;54969:27;54790:219;55017:97;55105:2;55085:14;-1:-1;;55081:28;;55065:49
Swarm Source
bzzr://38e3a1164d412decb3f10d34a1c5659d838536b18e8833fead921463cd7adc4c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,644.56 | 0.001 | $3.64 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.