Overview
ETH Balance
0.5 ETH
Eth Value
$1,635.27 (@ $3,270.54/ETH)More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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:
VSCTokenManager
Compiler Version
v0.6.7+commit.b8d736ae
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-16 */ // File: contracts\thirdParty\ECDSA.sol // Source: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/cryptography/ECDSA.sol // Line 60 added to original source in accordance with recommendation on accepting signatures with 0/1 for v pragma solidity ^0.6.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { revert("ECDSA: invalid signature 's' value"); } if (v < 27) v += 27; if (v != 27 && v != 28) { revert("ECDSA: invalid signature 'v' value"); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } } // File: contracts\interfaces\IERC777.sol pragma solidity 0.6.7; // As defined in https://eips.ethereum.org/EIPS/eip-777 interface IERC777 { event Sent(address indexed operator, address indexed from, address indexed to, uint256 amount, bytes data, bytes operatorData); event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData); event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData); event AuthorizedOperator(address indexed operator,address indexed holder); event RevokedOperator(address indexed operator, address indexed holder); function name() external view returns (string memory); function symbol() external view returns (string memory); function totalSupply() external view returns (uint256); function balanceOf(address holder) external view returns (uint256); function granularity() external view returns (uint256); function defaultOperators() external view returns (address[] memory); function isOperatorFor(address operator, address holder) external view returns (bool); function authorizeOperator(address operator) external; function revokeOperator(address operator) external; function send(address to, uint256 amount, bytes calldata data) external; function operatorSend(address from, address to, uint256 amount, bytes calldata data, bytes calldata operatorData) external; function burn(uint256 amount, bytes calldata data) external; function operatorBurn( address from, uint256 amount, bytes calldata data, bytes calldata operatorData) external; } // File: contracts\interfaces\IERC20.sol pragma solidity 0.6.7; // As described in https://eips.ethereum.org/EIPS/eip-20 interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function name() external view returns (string memory); // optional method - see eip spec function symbol() external view returns (string memory); // optional method - see eip spec function decimals() external view returns (uint8); // optional method - see eip spec function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); } // File: contracts\thirdParty\interfaces\IERC1820Registry.sol // From open https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/introspection/IERC1820Registry.sol pragma solidity ^0.6.0; /** * @dev Interface of the global ERC1820 Registry, as defined in the * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register * implementers for interfaces in this registry, as well as query support. * * Implementers may be shared by multiple accounts, and can also implement more * than a single interface for each account. Contracts can implement interfaces * for themselves, but externally-owned accounts (EOA) must delegate this to a * contract. * * {IERC165} interfaces can also be queried via the registry. * * For an in-depth explanation and source code analysis, see the EIP text. */ interface IERC1820Registry { /** * @dev Sets `newManager` as the manager for `account`. A manager of an * account is able to set interface implementers for it. * * By default, each account is its own manager. Passing a value of `0x0` in * `newManager` will reset the manager to this initial state. * * Emits a {ManagerChanged} event. * * Requirements: * * - the caller must be the current manager for `account`. */ function setManager(address account, address newManager) external; /** * @dev Returns the manager for `account`. * * See {setManager}. */ function getManager(address account) external view returns (address); /** * @dev Sets the `implementer` contract as ``account``'s implementer for * `interfaceHash`. * * `account` being the zero address is an alias for the caller's address. * The zero address can also be used in `implementer` to remove an old one. * * See {interfaceHash} to learn how these are created. * * Emits an {InterfaceImplementerSet} event. * * Requirements: * * - the caller must be the current manager for `account`. * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not * end in 28 zeroes). * - `implementer` must implement {IERC1820Implementer} and return true when * queried for support, unless `implementer` is the caller. See * {IERC1820Implementer-canImplementInterfaceForAddress}. */ function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external; /** * @dev Returns the implementer of `interfaceHash` for `account`. If no such * implementer is registered, returns the zero address. * * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 * zeroes), `account` will be queried for support of it. * * `account` being the zero address is an alias for the caller's address. */ function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address); /** * @dev Returns the interface hash for an `interfaceName`, as defined in the * corresponding * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]. */ function interfaceHash(string calldata interfaceName) external pure returns (bytes32); /** * @notice Updates the cache with whether the contract implements an ERC165 interface or not. * @param account Address of the contract for which to update the cache. * @param interfaceId ERC165 interface for which to update the cache. */ function updateERC165Cache(address account, bytes4 interfaceId) external; /** * @notice Checks whether a contract implements an ERC165 interface or not. * If the result is not cached a direct lookup on the contract address is performed. * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling * {updateERC165Cache} with the contract address. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool); /** * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool); event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer); event ManagerChanged(address indexed account, address indexed newManager); } // File: contracts\interfaces\IERC777Sender.sol pragma solidity 0.6.7; // As defined in the 'ERC777TokensSender And The tokensToSend Hook' section of https://eips.ethereum.org/EIPS/eip-777 interface IERC777Sender { function tokensToSend(address operator, address from, address to, uint256 amount, bytes calldata data, bytes calldata operatorData) external; } // File: contracts\interfaces\IERC777Recipient.sol pragma solidity 0.6.7; // As defined in the 'ERC777TokensRecipient And The tokensReceived Hook' section of https://eips.ethereum.org/EIPS/eip-777 interface IERC777Recipient { function tokensReceived(address operator, address from, address to, uint256 amount, bytes calldata data, bytes calldata operatorData) external; } // File: contracts\thirdParty\SafeMath.sol // Source: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: contracts\libraries\LToken.sol pragma solidity 0.6.7; struct TokenState { uint256 totalSupply; mapping(address => uint256) balances; mapping(address => mapping(address => uint256)) approvals; mapping(address => mapping(address => bool)) authorizedOperators; address[] defaultOperators; mapping(address => bool) defaultOperatorIsRevoked; mapping(address => bool) minters; } library LToken { using SafeMath for uint256; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); event Sent(address indexed operator, address indexed from, address indexed to, uint256 amount, bytes data, bytes operatorData); event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData); event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData); event AuthorizedOperator(address indexed operator, address indexed holder); event RevokedOperator(address indexed operator, address indexed holder); // Universal address as defined in Registry Contract Address section of https://eips.ethereum.org/EIPS/eip-1820 IERC1820Registry constant internal ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); // precalculated hashes - see https://github.com/ethereum/solidity/issues/4024 // keccak256("ERC777TokensSender") bytes32 constant internal ERC777_TOKENS_SENDER_HASH = 0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895; // keccak256("ERC777TokensRecipient") bytes32 constant internal ERC777_TOKENS_RECIPIENT_HASH = 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b; modifier checkSenderNotOperator(address _operator) { require(_operator != msg.sender, "Cannot be operator for self"); _; } function initState(TokenState storage _tokenState, uint8 _decimals, uint256 _initialSupply) external { _tokenState.defaultOperators.push(address(this)); _tokenState.totalSupply = _initialSupply.mul(10**uint256(_decimals)); _tokenState.balances[msg.sender] = _tokenState.totalSupply; } function transferFrom(TokenState storage _tokenState, address _from, address _to, uint256 _value) external { _tokenState.approvals[_from][msg.sender] = _tokenState.approvals[_from][msg.sender].sub(_value, "Amount not approved"); doSend(_tokenState, msg.sender, _from, _to, _value, "", "", false); } function approve(TokenState storage _tokenState, address _spender, uint256 _value) external { require(_spender != address(0), "Cannot approve to zero address"); _tokenState.approvals[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); } function authorizeOperator(TokenState storage _tokenState, address _operator) checkSenderNotOperator(_operator) external { if (_operator == address(this)) _tokenState.defaultOperatorIsRevoked[msg.sender] = false; else _tokenState.authorizedOperators[_operator][msg.sender] = true; emit AuthorizedOperator(_operator, msg.sender); } function revokeOperator(TokenState storage _tokenState, address _operator) checkSenderNotOperator(_operator) external { if (_operator == address(this)) _tokenState.defaultOperatorIsRevoked[msg.sender] = true; else _tokenState.authorizedOperators[_operator][msg.sender] = false; emit RevokedOperator(_operator, msg.sender); } function authorizeMinter(TokenState storage _tokenState, address _minter) external { _tokenState.minters[_minter] = true; } function revokeMinter(TokenState storage _tokenState, address _minter) external { _tokenState.minters[_minter] = false; } function doMint(TokenState storage _tokenState, address _to, uint256 _amount) external { assert(_to != address(0)); _tokenState.totalSupply = _tokenState.totalSupply.add(_amount); _tokenState.balances[_to] = _tokenState.balances[_to].add(_amount); // From ERC777: The token contract MUST call the tokensReceived hook after updating the state. receiveHook(address(this), address(0), _to, _amount, "", "", true); emit Minted(address(this), _to, _amount, "", ""); emit Transfer(address(0), _to, _amount); } function doBurn(TokenState storage _tokenState, address _operator, address _from, uint256 _amount, bytes calldata _data, bytes calldata _operatorData) external { assert(_from != address(0)); // From ERC777: The token contract MUST call the tokensToSend hook before updating the state. sendHook(_operator, _from, address(0), _amount, _data, _operatorData); _tokenState.balances[_from] = _tokenState.balances[_from].sub(_amount, "Cannot burn more than balance"); _tokenState.totalSupply = _tokenState.totalSupply.sub(_amount); emit Burned(_operator, _from, _amount, _data, _operatorData); emit Transfer(_from, address(0), _amount); } function doSend(TokenState storage _tokenState, address _operator, address _from, address _to, uint256 _amount, bytes memory _data, bytes memory _operatorData, bool _enforceERC777) public { assert(_from != address(0)); require(_to != address(0), "Cannot send funds to 0 address"); // From ERC777: The token contract MUST call the tokensToSend hook before updating the state. sendHook(_operator, _from, _to, _amount, _data, _operatorData); _tokenState.balances[_from] = _tokenState.balances[_from].sub(_amount, "Amount exceeds available funds"); _tokenState.balances[_to] = _tokenState.balances[_to].add(_amount); emit Sent(_operator, _from, _to, _amount, _data, _operatorData); emit Transfer(_from, _to, _amount); // From ERC777: The token contract MUST call the tokensReceived hook after updating the state. receiveHook(_operator, _from, _to, _amount, _data, _operatorData, _enforceERC777); } function receiveHook(address _operator, address _from, address _to, uint256 _amount, bytes memory _data, bytes memory _operatorData, bool _enforceERC777) public { address implementer = ERC1820_REGISTRY.getInterfaceImplementer(_to, ERC777_TOKENS_RECIPIENT_HASH); if (implementer != address(0)) IERC777Recipient(implementer).tokensReceived(_operator, _from, _to, _amount, _data, _operatorData); else if (_enforceERC777) require(!isContract(_to), "Must be registered with ERC1820"); } function sendHook(address _operator, address _from, address _to, uint256 _amount, bytes memory _data, bytes memory _operatorData) public { address implementer = ERC1820_REGISTRY.getInterfaceImplementer(_from, ERC777_TOKENS_SENDER_HASH); if (implementer != address(0)) IERC777Sender(implementer).tokensToSend(_operator, _from, _to, _amount, _data, _operatorData); } function isContract(address _account) private view returns (bool isContract_) { uint256 size; assembly { size := extcodesize(_account) } isContract_ = size != 0; } } // File: contracts\Token.sol pragma solidity 0.6.7; /** * Implements ERC777 with ERC20 as defined in https://eips.ethereum.org/EIPS/eip-777, with minting support. * NOTE: Minting is internal only: derive from this contract according to usage. */ contract Token is IERC777, IERC20 { string private tokenName; string private tokenSymbol; uint8 constant private tokenDecimals = 18; uint256 constant private tokenGranularity = 1; TokenState public tokenState; // Universal address as defined in Registry Contract Address section of https://eips.ethereum.org/EIPS/eip-1820 IERC1820Registry constant internal ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); // keccak256("ERC777Token") bytes32 constant internal ERC777_TOKEN_HASH = 0xac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054; // keccak256("ERC20Token") bytes32 constant internal ERC20_TOKEN_HASH = 0xaea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a; event AuthorizedMinter(address minter); event RevokedMinter(address minter); constructor(string memory _name, string memory _symbol, uint256 _initialSupply) internal { require(bytes(_name).length != 0, "Needs a name"); require(bytes(_symbol).length != 0, "Needs a symbol"); tokenName = _name; tokenSymbol = _symbol; LToken.initState(tokenState, tokenDecimals, _initialSupply); ERC1820_REGISTRY.setInterfaceImplementer(address(this), ERC777_TOKEN_HASH, address(this)); ERC1820_REGISTRY.setInterfaceImplementer(address(this), ERC20_TOKEN_HASH, address(this)); } modifier onlyOperator(address _holder) { require(isOperatorFor(msg.sender, _holder), "Not an operator"); _; } modifier onlyMinter { require(tokenState.minters[msg.sender], "onlyMinter"); _; } function name() external view override(IERC777, IERC20) returns (string memory name_) { name_ = tokenName; } function symbol() external view override(IERC777, IERC20) returns (string memory symbol_) { symbol_ = tokenSymbol; } function decimals() external view override returns (uint8 decimals_) { decimals_ = tokenDecimals; } function granularity() external view override returns (uint256 granularity_) { granularity_ = tokenGranularity; } function balanceOf(address _holder) external override(IERC777, IERC20) view returns (uint256 balance_) { balance_ = tokenState.balances[_holder]; } function transfer(address _to, uint256 _value) external override returns (bool success_) { doSend(msg.sender, msg.sender, _to, _value, "", "", false); success_ = true; } function transferFrom(address _from, address _to, uint256 _value) external override returns (bool success_) { LToken.transferFrom(tokenState, _from, _to, _value); success_ = true; } function approve(address _spender, uint256 _value) external override returns (bool success_) { LToken.approve(tokenState, _spender, _value); success_ = true; } function allowance(address _holder, address _spender) external view override returns (uint256 remaining_) { remaining_ = tokenState.approvals[_holder][_spender]; } function defaultOperators() external view override returns (address[] memory) { return tokenState.defaultOperators; } function authorizeOperator(address _operator) external override { LToken.authorizeOperator(tokenState, _operator); } function revokeOperator(address _operator) external override { LToken.revokeOperator(tokenState, _operator); } function send(address _to, uint256 _amount, bytes calldata _data) external override { doSend(msg.sender, msg.sender, _to, _amount, _data, "", true); } function operatorSend(address _from, address _to, uint256 _amount, bytes calldata _data, bytes calldata _operatorData) external override onlyOperator(_from) { doSend(msg.sender, _from, _to, _amount, _data, _operatorData, true); } function burn(uint256 _amount, bytes calldata _data) external override { doBurn(msg.sender, msg.sender, _amount, _data, ""); } function operatorBurn(address _from, uint256 _amount, bytes calldata _data, bytes calldata _operatorData) external override onlyOperator(_from) { doBurn(msg.sender, _from, _amount, _data, _operatorData); } function mint(address _to, uint256 _amount) external onlyMinter { LToken.doMint(tokenState, _to, _amount); } function totalSupply() external view override(IERC777, IERC20) returns (uint256 totalSupply_) { totalSupply_ = tokenState.totalSupply; } function isOperatorFor(address _operator, address _holder) public view override returns (bool isOperatorFor_) { isOperatorFor_ = (_operator == _holder || tokenState.authorizedOperators[_operator][_holder] || _operator == address(this) && !tokenState.defaultOperatorIsRevoked[_holder]); } function doSend(address _operator, address _from, address _to, uint256 _amount, bytes memory _data, bytes memory _operatorData, bool _enforceERC777) internal virtual { LToken.doSend(tokenState, _operator, _from, _to, _amount, _data, _operatorData, _enforceERC777); } function doBurn(address _operator, address _from, uint256 _amount, bytes memory _data, bytes memory _operatorData) internal { LToken.doBurn(tokenState, _operator, _from, _amount, _data, _operatorData); } function authorizeMinter(address _minter) internal { LToken.authorizeMinter(tokenState, _minter); emit AuthorizedMinter(_minter); } function revokeMinter(address _minter) internal { LToken.revokeMinter(tokenState, _minter); emit RevokedMinter(_minter); } } // File: contracts\Owned.sol pragma solidity 0.6.7; contract Owned { address public owner = msg.sender; event LogOwnershipTransferred(address indexed owner, address indexed newOwner); modifier onlyOwner { require(msg.sender == owner, "Sender must be owner"); _; } function setOwner(address _owner) external onlyOwner { require(_owner != address(0), "Owner cannot be zero address"); emit LogOwnershipTransferred(owner, _owner); owner = _owner; } } // File: contracts\VOWToken.sol pragma solidity 0.6.7; /** * ERC777/20 contract which also: * - is owned * - supports proxying of own tokens (only if signed correctly) * - supports partner contracts, keyed by hash * - supports minting (only by owner approved contracts) * - has a USD price */ contract VOWToken is Token, IERC777Recipient, Owned { mapping (bytes32 => bool) public proxyProofs; uint256[2] public usdRate; address public usdRateSetter; mapping(bytes32 => address payable) public partnerContracts; // precalculated hash - see https://github.com/ethereum/solidity/issues/4024 // keccak256("ERC777TokensRecipient") bytes32 constant internal ERC777_TOKENS_RECIPIENT_HASH = 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b; event LogUSDRateSetterSet(address indexed usdRateSetter); event LogUSDRateSet(uint256 numTokens, uint256 numUSD); event LogProxiedTokens(address indexed from, address indexed to, uint256 amount, bytes data, uint256 nonce, bytes proof); event LogPartnerContractSet(bytes32 indexed keyHash, address indexed partnerContract); event LogMintPermissionSet(address indexed contractAddress, bool canMint); constructor(string memory _name, string memory _symbol, uint256 _initialSupply, uint256[2] memory _initialUSDRate) public Token(_name, _symbol, _initialSupply) { doSetUSDRate(_initialUSDRate[0], _initialUSDRate[1]); ERC1820_REGISTRY.setInterfaceImplementer(address(this), ERC777_TOKENS_RECIPIENT_HASH, address(this)); } modifier onlyUSDRateSetter() { require(msg.sender == usdRateSetter, "onlyUSDRateSetter"); _; } modifier onlyOwnTokens { require(msg.sender == address(this), "onlyOwnTokens"); _; } modifier addressNotNull(address _address) { require(_address != address(0), "Address cannot be null"); _; } function tokensReceived(address /* _operator */, address /* _from */, address /* _to */, uint256 _amount, bytes calldata _data, bytes calldata /* _operatorData */) external override onlyOwnTokens { (address from, address to, uint256 amount, bytes memory data, uint256 nonce, bytes memory proof) = abi.decode(_data, (address, address, uint256, bytes, uint256, bytes)); checkProxying(from, to, amount, data, nonce, proof); if (_amount != 0) this.send(from, _amount, ""); this.operatorSend(from, to, amount, data, _data); emit LogProxiedTokens(from, to, amount, data, nonce, proof); } function setPartnerContract(bytes32 _keyHash, address payable _partnerContract) external onlyOwner addressNotNull(_partnerContract) { require(_keyHash != bytes32(0), "Missing key hash"); partnerContracts[_keyHash] = _partnerContract; emit LogPartnerContractSet(_keyHash, _partnerContract); } function setUSDRateSetter(address _usdRateSetter) external onlyOwner addressNotNull(_usdRateSetter) { usdRateSetter = _usdRateSetter; emit LogUSDRateSetterSet(_usdRateSetter); } function setUSDRate(uint256 _numTokens, uint256 _numUSD) external onlyUSDRateSetter { doSetUSDRate(_numTokens, _numUSD); emit LogUSDRateSet(_numTokens, _numUSD); } function setMintPermission(address _contract, bool _canMint) external onlyOwner addressNotNull(_contract) { if (_canMint) authorizeMinter(_contract); else revokeMinter(_contract); emit LogMintPermissionSet(_contract, _canMint); } function doSetUSDRate(uint256 _numTokens, uint256 _numUSD) private { require(_numTokens != 0, "numTokens cannot be zero"); require(_numUSD != 0, "numUSD cannot be zero"); usdRate = [_numTokens, _numUSD]; } function checkProxying(address _from, address _to, uint256 _amount, bytes memory _data, uint256 _nonce, bytes memory _proof) private { require(!proxyProofs[keccak256(_proof)], "Proxy proof not unique"); proxyProofs[keccak256(_proof)] = true; bytes32 hash = keccak256(abi.encodePacked(address(this), _from, _to, _amount, _data, _nonce)); address signer = ECDSA.recover(ECDSA.toEthSignedMessageHash(hash), _proof); require(signer == _from, "Bad signer"); } } // File: contracts\VSCToken.sol pragma solidity 0.6.7; /** * VSCToken is a VOWToken with: * - a linked parent Vow token * - tier 1 burn (with owner aproved exceptions) * - tier 2 delegated lifting (only by owner approved contracts) */ contract VSCToken is VOWToken { using SafeMath for uint256; address public immutable vowContract; mapping(address => bool) public canLift; mapping(address => bool) public skipTier1Burn; uint256[2] public tier1BurnVSC; event LogTier1BurnVSCUpdated(uint256[2] ratio); event LogLiftPermissionSet(address indexed liftingAddress, bool canLift); event LogSkipTier1BurnSet(address indexed skipTier1BurnAddress, bool skipTier1Burn); constructor(string memory _name, string memory _symbol, uint256[2] memory _initialVSCUSD, address _vowContract) VOWToken(_name, _symbol, 0, _initialVSCUSD) public { vowContract = _vowContract; ERC1820_REGISTRY.setInterfaceImplementer(address(this), ERC777_TOKENS_RECIPIENT_HASH, address(this)); tier1BurnVSC = [0, 1]; // Default to no burn: ie burn 0 VSC for every 1 VSC sent on tier 1 setSkipTier1Burn(address(this), true); } modifier onlyLifter() { require(canLift[msg.sender], "onlyLifter"); _; } function setLiftPermission(address _liftingAddress, bool _canLift) external onlyOwner addressNotNull(_liftingAddress) { canLift[_liftingAddress] = _canLift; emit LogLiftPermissionSet(_liftingAddress, _canLift); } function setTier1BurnVSC(uint256 _numVSCBurned, uint256 _numVSCSent) external onlyOwner { require(_numVSCSent != 0, "Invalid burn ratio: div by zero"); require(_numVSCSent >= _numVSCBurned, "Invalid burn ratio: above 100%"); tier1BurnVSC = [_numVSCBurned, _numVSCSent]; emit LogTier1BurnVSCUpdated(tier1BurnVSC); } function lift(address _liftAccount, uint256 _amount, bytes calldata _data) external onlyLifter { address tier2ScalingManager = partnerContracts[keccak256(abi.encodePacked("FTScalingManager"))]; this.operatorSend(_liftAccount, tier2ScalingManager, _amount , _data, ""); } function setSkipTier1Burn(address _skipTier1BurnAddress, bool _skipTier1Burn) public onlyOwner addressNotNull(_skipTier1BurnAddress) { skipTier1Burn[_skipTier1BurnAddress] = _skipTier1Burn; emit LogSkipTier1BurnSet(_skipTier1BurnAddress, _skipTier1Burn); } function doSend(address _operator, address _from, address _to, uint256 _amount, bytes memory _data, bytes memory _operatorData, bool _enforceERC777) internal virtual override { uint256 actualSendAmount = _amount; if (!skipTier1Burn[_from] && !skipTier1Burn[_to]) { uint256 burnAmount = _amount.mul(tier1BurnVSC[0]).div(tier1BurnVSC[1]); doBurn(_operator, _from, burnAmount, _data, _operatorData); actualSendAmount = actualSendAmount.sub(burnAmount); } super.doSend(_operator, _from, _to, actualSendAmount, _data, _operatorData, _enforceERC777); } } // File: contracts\thirdParty\provableAPI_06.sol // Source: https://github.com/provable-things/ethereum-api/blob/master/provableAPI_0.6.sol // <provableAPI> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016-2019 Oraclize LTD Copyright (c) 2019-2020 Provable Things Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity > 0.6.1 < 0.7.0; // Incompatible compiler version - please select a compiler within the stated pragma range, or use a different version of the provableAPI! // Dummy contract only used to emit to end-user they are using wrong solc abstract contract solcChecker { /* INCOMPATIBLE SOLC: import the following instead: "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol" */ function f(bytes calldata x) virtual external; } interface ProvableI { function cbAddress() external returns (address _cbAddress); function setProofType(byte _proofType) external; function setCustomGasPrice(uint _gasPrice) external; function getPrice(string calldata _datasource) external returns (uint _dsprice); function randomDS_getSessionPubKeyHash() external view returns (bytes32 _sessionKeyHash); function getPrice(string calldata _datasource, uint _gasLimit) external returns (uint _dsprice); function queryN(uint _timestamp, string calldata _datasource, bytes calldata _argN) external payable returns (bytes32 _id); function query(uint _timestamp, string calldata _datasource, string calldata _arg) external payable returns (bytes32 _id); function query2(uint _timestamp, string calldata _datasource, string calldata _arg1, string calldata _arg2) external payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg, uint _gasLimit) external payable returns (bytes32 _id); function queryN_withGasLimit(uint _timestamp, string calldata _datasource, bytes calldata _argN, uint _gasLimit) external payable returns (bytes32 _id); function query2_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg1, string calldata _arg2, uint _gasLimit) external payable returns (bytes32 _id); } interface OracleAddrResolverI { function getAddress() external returns (address _address); } /* Begin solidity-cborutils https://github.com/smartcontractkit/solidity-cborutils MIT License Copyright (c) 2018 SmartContract ChainLink, Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library Buffer { struct buffer { bytes buf; uint capacity; } function init(buffer memory _buf, uint _capacity) internal pure { uint capacity = _capacity; if (capacity % 32 != 0) { capacity += 32 - (capacity % 32); } _buf.capacity = capacity; // Allocate space for the buffer data assembly { let ptr := mload(0x40) mstore(_buf, ptr) mstore(ptr, 0) mstore(0x40, add(ptr, capacity)) } } function resize(buffer memory _buf, uint _capacity) private pure { bytes memory oldbuf = _buf.buf; init(_buf, _capacity); append(_buf, oldbuf); } function max(uint _a, uint _b) private pure returns (uint _max) { if (_a > _b) { return _a; } return _b; } /** * @dev Appends a byte array to the end of the buffer. Resizes if doing so * would exceed the capacity of the buffer. * @param _buf The buffer to append to. * @param _data The data to append. * @return _buffer The original buffer. * */ function append(buffer memory _buf, bytes memory _data) internal pure returns (buffer memory _buffer) { if (_data.length + _buf.buf.length > _buf.capacity) { resize(_buf, max(_buf.capacity, _data.length) * 2); } uint dest; uint src; uint len = _data.length; assembly { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data dest := add(add(bufptr, buflen), 32) // Start address = buffer address + buffer length + sizeof(buffer length) mstore(bufptr, add(buflen, mload(_data))) // Update buffer length src := add(_data, 32) } for(; len >= 32; len -= 32) { // Copy word-length chunks while possible assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } uint mask = 256 ** (32 - len) - 1; // Copy remaining bytes assembly { let srcpart := and(mload(src), not(mask)) let destpart := and(mload(dest), mask) mstore(dest, or(destpart, srcpart)) } return _buf; } /** * * @dev Appends a byte to the end of the buffer. Resizes if doing so would * exceed the capacity of the buffer. * @param _buf The buffer to append to. * @param _data The data to append. * */ function append(buffer memory _buf, uint8 _data) internal pure { if (_buf.buf.length + 1 > _buf.capacity) { resize(_buf, _buf.capacity * 2); } assembly { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data let dest := add(add(bufptr, buflen), 32) // Address = buffer address + buffer length + sizeof(buffer length) mstore8(dest, _data) mstore(bufptr, add(buflen, 1)) // Update buffer length } } /** * * @dev Appends a byte to the end of the buffer. Resizes if doing so would * exceed the capacity of the buffer. * @param _buf The buffer to append to. * @param _data The data to append. * @return _buffer The original buffer. * */ function appendInt(buffer memory _buf, uint _data, uint _len) internal pure returns (buffer memory _buffer) { if (_len + _buf.buf.length > _buf.capacity) { resize(_buf, max(_buf.capacity, _len) * 2); } uint mask = 256 ** _len - 1; assembly { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data let dest := add(add(bufptr, buflen), _len) // Address = buffer address + buffer length + sizeof(buffer length) + len mstore(dest, or(and(mload(dest), not(mask)), _data)) mstore(bufptr, add(buflen, _len)) // Update buffer length } return _buf; } } library CBOR { using Buffer for Buffer.buffer; uint8 private constant MAJOR_TYPE_INT = 0; uint8 private constant MAJOR_TYPE_MAP = 5; uint8 private constant MAJOR_TYPE_BYTES = 2; uint8 private constant MAJOR_TYPE_ARRAY = 4; uint8 private constant MAJOR_TYPE_STRING = 3; uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1; uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7; function encodeType(Buffer.buffer memory _buf, uint8 _major, uint _value) private pure { if (_value <= 23) { _buf.append(uint8((_major << 5) | _value)); } else if (_value <= 0xFF) { _buf.append(uint8((_major << 5) | 24)); _buf.appendInt(_value, 1); } else if (_value <= 0xFFFF) { _buf.append(uint8((_major << 5) | 25)); _buf.appendInt(_value, 2); } else if (_value <= 0xFFFFFFFF) { _buf.append(uint8((_major << 5) | 26)); _buf.appendInt(_value, 4); } else if (_value <= 0xFFFFFFFFFFFFFFFF) { _buf.append(uint8((_major << 5) | 27)); _buf.appendInt(_value, 8); } } function encodeIndefiniteLengthType(Buffer.buffer memory _buf, uint8 _major) private pure { _buf.append(uint8((_major << 5) | 31)); } function encodeUInt(Buffer.buffer memory _buf, uint _value) internal pure { encodeType(_buf, MAJOR_TYPE_INT, _value); } function encodeInt(Buffer.buffer memory _buf, int _value) internal pure { if (_value >= 0) { encodeType(_buf, MAJOR_TYPE_INT, uint(_value)); } else { encodeType(_buf, MAJOR_TYPE_NEGATIVE_INT, uint(-1 - _value)); } } function encodeBytes(Buffer.buffer memory _buf, bytes memory _value) internal pure { encodeType(_buf, MAJOR_TYPE_BYTES, _value.length); _buf.append(_value); } function encodeString(Buffer.buffer memory _buf, string memory _value) internal pure { encodeType(_buf, MAJOR_TYPE_STRING, bytes(_value).length); _buf.append(bytes(_value)); } function startArray(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_ARRAY); } function startMap(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_MAP); } function endSequence(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_CONTENT_FREE); } } /* End solidity-cborutils */ contract usingProvable { using CBOR for Buffer.buffer; ProvableI provable; OracleAddrResolverI OAR; uint constant day = 60 * 60 * 24; uint constant week = 60 * 60 * 24 * 7; uint constant month = 60 * 60 * 24 * 30; byte constant proofType_NONE = 0x00; byte constant proofType_Ledger = 0x30; byte constant proofType_Native = 0xF0; byte constant proofStorage_IPFS = 0x01; byte constant proofType_Android = 0x40; byte constant proofType_TLSNotary = 0x10; string provable_network_name; uint8 constant networkID_auto = 0; uint8 constant networkID_morden = 2; uint8 constant networkID_mainnet = 1; uint8 constant networkID_testnet = 2; uint8 constant networkID_consensys = 161; mapping(bytes32 => bytes32) provable_randomDS_args; mapping(bytes32 => bool) provable_randomDS_sessionKeysHashVerified; modifier provableAPI { if ((address(OAR) == address(0)) || (getCodeSize(address(OAR)) == 0)) { provable_setNetwork(networkID_auto); } if (address(provable) != OAR.getAddress()) { provable = ProvableI(OAR.getAddress()); } _; } modifier provable_randomDS_proofVerify(bytes32 _queryId, string memory _result, bytes memory _proof) { // RandomDS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1) require((_proof[0] == "L") && (_proof[1] == "P") && (uint8(_proof[2]) == uint8(1))); bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName()); require(proofVerified); _; } function provable_setNetwork(uint8 _networkID) internal returns (bool _networkSet) { _networkID; // NOTE: Silence the warning and remain backwards compatible return provable_setNetwork(); } function provable_setNetworkName(string memory _network_name) internal { provable_network_name = _network_name; } function provable_getNetworkName() internal view returns (string memory _networkName) { return provable_network_name; } function provable_setNetwork() internal returns (bool _networkSet) { if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet OAR = OracleAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed); provable_setNetworkName("eth_mainnet"); return true; } if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1) > 0) { //ropsten testnet OAR = OracleAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1); provable_setNetworkName("eth_ropsten3"); return true; } if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e) > 0) { //kovan testnet OAR = OracleAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e); provable_setNetworkName("eth_kovan"); return true; } if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48) > 0) { //rinkeby testnet OAR = OracleAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48); provable_setNetworkName("eth_rinkeby"); return true; } if (getCodeSize(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41) > 0) { //goerli testnet OAR = OracleAddrResolverI(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41); provable_setNetworkName("eth_goerli"); return true; } if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475); return true; } if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF) > 0) { //ether.camp ide OAR = OracleAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF); return true; } if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA) > 0) { //browser-solidity OAR = OracleAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA); return true; } return false; } /** * @dev The following `__callback` functions are just placeholders ideally * meant to be defined in child contract when proofs are used. * The function bodies simply silence compiler warnings. */ function __callback(bytes32 _myid, string memory _result) virtual public { __callback(_myid, _result, new bytes(0)); } function __callback(bytes32 _myid, string memory _result, bytes memory _proof) virtual public { _myid; _result; _proof; provable_randomDS_args[bytes32(0)] = bytes32(0); } function provable_getPrice(string memory _datasource) provableAPI internal returns (uint _queryPrice) { return provable.getPrice(_datasource); } function provable_getPrice(string memory _datasource, uint _gasLimit) provableAPI internal returns (uint _queryPrice) { return provable.getPrice(_datasource, _gasLimit); } function provable_query(string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } return provable.query{value: price}(0, _datasource, _arg); } function provable_query(uint _timestamp, string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } return provable.query{value: price}(_timestamp, _datasource, _arg); } function provable_query(uint _timestamp, string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource,_gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } return provable.query_withGasLimit{value: price}(_timestamp, _datasource, _arg, _gasLimit); } function provable_query(string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } return provable.query_withGasLimit{value: price}(0, _datasource, _arg, _gasLimit); } function provable_query(string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } return provable.query2{value: price}(0, _datasource, _arg1, _arg2); } function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } return provable.query2{value: price}(_timestamp, _datasource, _arg1, _arg2); } function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } return provable.query2_withGasLimit{value: price}(_timestamp, _datasource, _arg1, _arg2, _gasLimit); } function provable_query(string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } return provable.query2_withGasLimit{value: price}(0, _datasource, _arg1, _arg2, _gasLimit); } function provable_query(string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } bytes memory args = stra2cbor(_argN); return provable.queryN{value: price}(0, _datasource, args); } function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } bytes memory args = stra2cbor(_argN); return provable.queryN{value: price}(_timestamp, _datasource, args); } function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } bytes memory args = stra2cbor(_argN); return provable.queryN_withGasLimit{value: price}(_timestamp, _datasource, args, _gasLimit); } function provable_query(string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } bytes memory args = stra2cbor(_argN); return provable.queryN_withGasLimit{value: price}(0, _datasource, args, _gasLimit); } function provable_query(string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](1); dynargs[0] = _args[0]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](1); dynargs[0] = _args[0]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](1); dynargs[0] = _args[0]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](1); dynargs[0] = _args[0]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { string[] memory dynargs = new string[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } bytes memory args = ba2cbor(_argN); return provable.queryN{value: price}(0, _datasource, args); } function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource); if (price > 1 ether + tx.gasprice * 200000) { return 0; // Unexpectedly high price } bytes memory args = ba2cbor(_argN); return provable.queryN{value: price}(_timestamp, _datasource, args); } function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } bytes memory args = ba2cbor(_argN); return provable.queryN_withGasLimit{value: price}(_timestamp, _datasource, args, _gasLimit); } function provable_query(string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) { uint price = provable.getPrice(_datasource, _gasLimit); if (price > 1 ether + tx.gasprice * _gasLimit) { return 0; // Unexpectedly high price } bytes memory args = ba2cbor(_argN); return provable.queryN_withGasLimit{value: price}(0, _datasource, args, _gasLimit); } function provable_query(string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = _args[0]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = _args[0]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = _args[0]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = _args[0]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = _args[0]; dynargs[1] = _args[1]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_timestamp, _datasource, dynargs); } function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_timestamp, _datasource, dynargs, _gasLimit); } function provable_query(string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = _args[0]; dynargs[1] = _args[1]; dynargs[2] = _args[2]; dynargs[3] = _args[3]; dynargs[4] = _args[4]; return provable_query(_datasource, dynargs, _gasLimit); } function provable_setProof(byte _proofP) provableAPI internal { return provable.setProofType(_proofP); } function provable_cbAddress() provableAPI internal returns (address _callbackAddress) { return provable.cbAddress(); } function getCodeSize(address _addr) view internal returns (uint _size) { assembly { _size := extcodesize(_addr) } } function provable_setCustomGasPrice(uint _gasPrice) provableAPI internal { return provable.setCustomGasPrice(_gasPrice); } function provable_randomDS_getSessionPubKeyHash() provableAPI internal returns (bytes32 _sessionKeyHash) { return provable.randomDS_getSessionPubKeyHash(); } function parseAddr(string memory _a) internal pure returns (address _parsedAddress) { bytes memory tmp = bytes(_a); uint160 iaddr = 0; uint160 b1; uint160 b2; for (uint i = 2; i < 2 + 2 * 20; i += 2) { iaddr *= 256; b1 = uint160(uint8(tmp[i])); b2 = uint160(uint8(tmp[i + 1])); if ((b1 >= 97) && (b1 <= 102)) { b1 -= 87; } else if ((b1 >= 65) && (b1 <= 70)) { b1 -= 55; } else if ((b1 >= 48) && (b1 <= 57)) { b1 -= 48; } if ((b2 >= 97) && (b2 <= 102)) { b2 -= 87; } else if ((b2 >= 65) && (b2 <= 70)) { b2 -= 55; } else if ((b2 >= 48) && (b2 <= 57)) { b2 -= 48; } iaddr += (b1 * 16 + b2); } return address(iaddr); } function strCompare(string memory _a, string memory _b) internal pure returns (int _returnCode) { bytes memory a = bytes(_a); bytes memory b = bytes(_b); uint minLength = a.length; if (b.length < minLength) { minLength = b.length; } for (uint i = 0; i < minLength; i ++) { if (a[i] < b[i]) { return -1; } else if (a[i] > b[i]) { return 1; } } if (a.length < b.length) { return -1; } else if (a.length > b.length) { return 1; } else { return 0; } } function indexOf(string memory _haystack, string memory _needle) internal pure returns (int _returnCode) { bytes memory h = bytes(_haystack); bytes memory n = bytes(_needle); if (h.length < 1 || n.length < 1 || (n.length > h.length)) { return -1; } else if (h.length > (2 ** 128 - 1)) { return -1; } else { uint subindex = 0; for (uint i = 0; i < h.length; i++) { if (h[i] == n[0]) { subindex = 1; while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex]) { subindex++; } if (subindex == n.length) { return int(i); } } } return -1; } } function strConcat(string memory _a, string memory _b) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, "", "", ""); } function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, "", ""); } function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, _d, ""); } function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length); bytes memory babcde = bytes(abcde); uint k = 0; uint i = 0; for (i = 0; i < _ba.length; i++) { babcde[k++] = _ba[i]; } for (i = 0; i < _bb.length; i++) { babcde[k++] = _bb[i]; } for (i = 0; i < _bc.length; i++) { babcde[k++] = _bc[i]; } for (i = 0; i < _bd.length; i++) { babcde[k++] = _bd[i]; } for (i = 0; i < _be.length; i++) { babcde[k++] = _be[i]; } return string(babcde); } function safeParseInt(string memory _a) internal pure returns (uint _parsedInt) { return safeParseInt(_a, 0); } function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i = 0; i < bresult.length; i++) { if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) { if (decimals) { if (_b == 0) break; else _b--; } mint *= 10; mint += uint(uint8(bresult[i])) - 48; } else if (uint(uint8(bresult[i])) == 46) { require(!decimals, 'More than one decimal encountered in string!'); decimals = true; } else { revert("Non-numeral character encountered in string!"); } } if (_b > 0) { mint *= 10 ** _b; } return mint; } function parseInt(string memory _a) internal pure returns (uint _parsedInt) { return parseInt(_a, 0); } function parseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i = 0; i < bresult.length; i++) { if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) { if (decimals) { if (_b == 0) { break; } else { _b--; } } mint *= 10; mint += uint(uint8(bresult[i])) - 48; } else if (uint(uint8(bresult[i])) == 46) { decimals = true; } } if (_b > 0) { mint *= 10 ** _b; } return mint; } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (_i != 0) { bstr[k--] = byte(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } function stra2cbor(string[] memory _arr) internal pure returns (bytes memory _cborEncoding) { safeMemoryCleaner(); Buffer.buffer memory buf; Buffer.init(buf, 1024); buf.startArray(); for (uint i = 0; i < _arr.length; i++) { buf.encodeString(_arr[i]); } buf.endSequence(); return buf.buf; } function ba2cbor(bytes[] memory _arr) internal pure returns (bytes memory _cborEncoding) { safeMemoryCleaner(); Buffer.buffer memory buf; Buffer.init(buf, 1024); buf.startArray(); for (uint i = 0; i < _arr.length; i++) { buf.encodeBytes(_arr[i]); } buf.endSequence(); return buf.buf; } function provable_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32 _queryId) { require((_nbytes > 0) && (_nbytes <= 32)); _delay *= 10; // Convert from seconds to ledger timer ticks bytes memory nbytes = new bytes(1); nbytes[0] = byte(uint8(_nbytes)); bytes memory unonce = new bytes(32); bytes memory sessionKeyHash = new bytes(32); bytes32 sessionKeyHash_bytes32 = provable_randomDS_getSessionPubKeyHash(); assembly { mstore(unonce, 0x20) /* The following variables can be relaxed. Check the relaxed random contract at https://github.com/oraclize/ethereum-examples for an idea on how to override and replace commit hash variables. */ mstore(add(unonce, 0x20), xor(blockhash(sub(number(), 1)), xor(coinbase(), timestamp()))) mstore(sessionKeyHash, 0x20) mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32) } bytes memory delay = new bytes(32); assembly { mstore(add(delay, 0x20), _delay) } bytes memory delay_bytes8 = new bytes(8); copyBytes(delay, 24, 8, delay_bytes8, 0); bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay]; bytes32 queryId = provable_query("random", args, _customGasLimit); bytes memory delay_bytes8_left = new bytes(8); assembly { let x := mload(add(delay_bytes8, 0x20)) mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000)) } provable_randomDS_setCommitment(queryId, keccak256(abi.encodePacked(delay_bytes8_left, args[1], sha256(args[0]), args[2]))); return queryId; } function provable_randomDS_setCommitment(bytes32 _queryId, bytes32 _commitment) internal { provable_randomDS_args[_queryId] = _commitment; } function verifySig(bytes32 _tosignh, bytes memory _dersig, bytes memory _pubkey) internal returns (bool _sigVerified) { bool sigok; address signer; bytes32 sigr; bytes32 sigs; bytes memory sigr_ = new bytes(32); uint offset = 4 + (uint(uint8(_dersig[3])) - 0x20); sigr_ = copyBytes(_dersig, offset, 32, sigr_, 0); bytes memory sigs_ = new bytes(32); offset += 32 + 2; sigs_ = copyBytes(_dersig, offset + (uint(uint8(_dersig[offset - 1])) - 0x20), 32, sigs_, 0); assembly { sigr := mload(add(sigr_, 32)) sigs := mload(add(sigs_, 32)) } (sigok, signer) = safer_ecrecover(_tosignh, 27, sigr, sigs); if (address(uint160(uint256(keccak256(_pubkey)))) == signer) { return true; } else { (sigok, signer) = safer_ecrecover(_tosignh, 28, sigr, sigs); return (address(uint160(uint256(keccak256(_pubkey)))) == signer); } } function provable_randomDS_proofVerify__sessionKeyValidity(bytes memory _proof, uint _sig2offset) internal returns (bool _proofVerified) { bool sigok; // Random DS Proof Step 6: Verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH) bytes memory sig2 = new bytes(uint(uint8(_proof[_sig2offset + 1])) + 2); copyBytes(_proof, _sig2offset, sig2.length, sig2, 0); bytes memory appkey1_pubkey = new bytes(64); copyBytes(_proof, 3 + 1, 64, appkey1_pubkey, 0); bytes memory tosign2 = new bytes(1 + 65 + 32); tosign2[0] = byte(uint8(1)); //role copyBytes(_proof, _sig2offset - 65, 65, tosign2, 1); bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c"; copyBytes(CODEHASH, 0, 32, tosign2, 1 + 65); sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey); if (!sigok) { return false; } // Random DS Proof Step 7: Verify the APPKEY1 provenance (must be signed by Ledger) bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4"; bytes memory tosign3 = new bytes(1 + 65); tosign3[0] = 0xFE; copyBytes(_proof, 3, 65, tosign3, 1); bytes memory sig3 = new bytes(uint(uint8(_proof[3 + 65 + 1])) + 2); copyBytes(_proof, 3 + 65, sig3.length, sig3, 0); sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY); return sigok; } function provable_randomDS_proofVerify__returnCode(bytes32 _queryId, string memory _result, bytes memory _proof) internal returns (uint8 _returnCode) { // Random DS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1) if ((_proof[0] != "L") || (_proof[1] != "P") || (uint8(_proof[2]) != uint8(1))) { return 1; } bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName()); if (!proofVerified) { return 2; } return 0; } function matchBytes32Prefix(bytes32 _content, bytes memory _prefix, uint _nRandomBytes) internal pure returns (bool _matchesPrefix) { bool match_ = true; require(_prefix.length == _nRandomBytes); for (uint256 i = 0; i< _nRandomBytes; i++) { if (_content[i] != _prefix[i]) { match_ = false; } } return match_; } function provable_randomDS_proofVerify__main(bytes memory _proof, bytes32 _queryId, bytes memory _result, string memory _contextName) internal returns (bool _proofVerified) { // Random DS Proof Step 2: The unique keyhash has to match with the sha256 of (context name + _queryId) uint ledgerProofLength = 3 + 65 + (uint(uint8(_proof[3 + 65 + 1])) + 2) + 32; bytes memory keyhash = new bytes(32); copyBytes(_proof, ledgerProofLength, 32, keyhash, 0); if (!(keccak256(keyhash) == keccak256(abi.encodePacked(sha256(abi.encodePacked(_contextName, _queryId)))))) { return false; } bytes memory sig1 = new bytes(uint(uint8(_proof[ledgerProofLength + (32 + 8 + 1 + 32) + 1])) + 2); copyBytes(_proof, ledgerProofLength + (32 + 8 + 1 + 32), sig1.length, sig1, 0); // Random DS Proof Step 3: We assume sig1 is valid (it will be verified during step 5) and we verify if '_result' is the _prefix of sha256(sig1) if (!matchBytes32Prefix(sha256(sig1), _result, uint(uint8(_proof[ledgerProofLength + 32 + 8])))) { return false; } // Random DS Proof Step 4: Commitment match verification, keccak256(delay, nbytes, unonce, sessionKeyHash) == commitment in storage. // This is to verify that the computed args match with the ones specified in the query. bytes memory commitmentSlice1 = new bytes(8 + 1 + 32); copyBytes(_proof, ledgerProofLength + 32, 8 + 1 + 32, commitmentSlice1, 0); bytes memory sessionPubkey = new bytes(64); uint sig2offset = ledgerProofLength + 32 + (8 + 1 + 32) + sig1.length + 65; copyBytes(_proof, sig2offset - 64, 64, sessionPubkey, 0); bytes32 sessionPubkeyHash = sha256(sessionPubkey); if (provable_randomDS_args[_queryId] == keccak256(abi.encodePacked(commitmentSlice1, sessionPubkeyHash))) { //unonce, nbytes and sessionKeyHash match delete provable_randomDS_args[_queryId]; } else return false; // Random DS Proof Step 5: Validity verification for sig1 (keyhash and args signed with the sessionKey) bytes memory tosign1 = new bytes(32 + 8 + 1 + 32); copyBytes(_proof, ledgerProofLength, 32 + 8 + 1 + 32, tosign1, 0); if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) { return false; } // Verify if sessionPubkeyHash was verified already, if not.. let's do it! if (!provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash]) { provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = provable_randomDS_proofVerify__sessionKeyValidity(_proof, sig2offset); } return provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash]; } /* The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license */ function copyBytes(bytes memory _from, uint _fromOffset, uint _length, bytes memory _to, uint _toOffset) internal pure returns (bytes memory _copiedBytes) { uint minLength = _length + _toOffset; require(_to.length >= minLength); // Buffer too small. Should be a better way? uint i = 32 + _fromOffset; // NOTE: the offset 32 is added to skip the `size` field of both bytes variables uint j = 32 + _toOffset; while (i < (32 + _fromOffset + _length)) { assembly { let tmp := mload(add(_from, i)) mstore(add(_to, j), tmp) } i += 32; j += 32; } return _to; } /* The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license Duplicate Solidity's ecrecover, but catching the CALL return value */ function safer_ecrecover(bytes32 _hash, uint8 _v, bytes32 _r, bytes32 _s) internal returns (bool _success, address _recoveredAddress) { /* We do our own memory management here. Solidity uses memory offset 0x40 to store the current end of memory. We write past it (as writes are memory extensions), but don't update the offset so Solidity will reuse it. The memory used here is only needed for this context. FIXME: inline assembly can't access return values */ bool ret; address addr; assembly { let size := mload(0x40) mstore(size, _hash) mstore(add(size, 32), _v) mstore(add(size, 64), _r) mstore(add(size, 96), _s) ret := call(3000, 1, 0, size, 128, size, 32) // NOTE: we can reuse the request memory because we deal with the return code. addr := mload(size) } return (ret, addr); } /* The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license */ function ecrecovery(bytes32 _hash, bytes memory _sig) internal returns (bool _success, address _recoveredAddress) { bytes32 r; bytes32 s; uint8 v; if (_sig.length != 65) { return (false, address(0)); } /* The signature format is a compact form of: {bytes32 r}{bytes32 s}{uint8 v} Compact means, uint8 is not padded to 32 bytes. */ assembly { r := mload(add(_sig, 32)) s := mload(add(_sig, 64)) /* Here we are loading the last 32 bytes. We exploit the fact that 'mload' will pad with zeroes if we overread. There is no 'mload8' to do this, but that would be nicer. */ v := byte(0, mload(add(_sig, 96))) /* Alternative solution: 'byte' is not working due to the Solidity parser, so lets use the second best option, 'and' v := and(mload(add(_sig, 65)), 255) */ } /* albeit non-transactional signatures are not specified by the YP, one would expect it to match the YP range of [27, 28] geth uses [0, 1] and some clients have followed. This might change, see: https://github.com/ethereum/go-ethereum/issues/2053 */ if (v < 27) { v += 27; } if (v != 27 && v != 28) { return (false, address(0)); } return safer_ecrecover(_hash, v, r, s); } function safeMemoryCleaner() internal pure { assembly { let fmem := mload(0x40) codecopy(fmem, codesize(), sub(msize(), fmem)) } } } // </provableAPI> // File: contracts\libraries\LTokenManager.sol pragma solidity 0.6.7; library LTokenManager { function decimalPriceToRate(string calldata _priceString) external pure returns (uint256[2] memory rate_) { bool hasDp; uint256 dp; uint256 result; uint256 oldResult; bytes memory priceBytes = bytes(_priceString); require(priceBytes.length != 0, "Empty string"); if (priceBytes[0] == "0" && priceBytes.length > 1) require(priceBytes[1] == ".", "Bad format: leading zeros"); for (uint i = 0; i < priceBytes.length; i++) { if (priceBytes[i] == "." && !hasDp) { require(i < priceBytes.length - 1, "Bad format: expected mantissa"); hasDp = true; } else if (uint8(priceBytes[i]) >= 48 && uint8(priceBytes[i]) <= 57) { if (hasDp) dp++; oldResult = result; result = result * 10 + (uint8(priceBytes[i]) - 48); if (oldResult > result || 10**dp < 10**(dp -1)) revert("Overflow"); } else revert("Bad character"); } require(result != 0, "Zero value"); while (result % 10 == 0) { result = result / 10; dp--; } rate_ = [result, 10**dp]; } } // File: contracts\TokenManager.sol pragma solidity 0.6.7; contract TokenManager is Owned, usingProvable { address public immutable token; uint256 public provableUpdateInterval; string public provableQuery; byte public provableProofType; uint256 public provableGasPrice; uint256 public provableGasLimit; bool public autoUpdate; bytes32 private provableQueryID; event LogFundsReceived(address indexed sender, uint256 amount); event LogFundsRecovered(address recipient, uint256 amount); event LogNewRateReceived(uint256[2] rate, bytes indexed proof, string status); event LogNewQuery(uint256 cost, string status); event LogProvableSettingsUpdated(uint256 interval, string query, byte proofType, uint256 gasPrice, uint256 gasLimit, bool autoUpdate); constructor(address _token) internal { token = _token; } modifier onlyProvable() { require(msg.sender == provable_cbAddress(), "Not Provable"); _; } modifier onlyCurrentQuery(bytes32 _id) { require(provableQueryID == _id, "Bad ID"); _; } receive() external payable { emit LogFundsReceived(msg.sender, msg.value); } // TODO: Consider removing gasPrice from here. function updateProvableSettings(uint256 _interval, string calldata _query, byte _proofType, uint256 _gasPrice, uint256 _gasLimit, bool _autoUpdate) onlyOwner external { provableUpdateInterval = _interval; provableQuery = _query; if (provableProofType != _proofType) { provableProofType = _proofType; provable_setProof(provableProofType); } autoUpdate = _autoUpdate; updateProvableGasPrice(_gasPrice); provableGasLimit = _gasLimit; emit LogProvableSettingsUpdated(provableUpdateInterval, provableQuery, provableProofType, provableGasPrice, provableGasLimit, autoUpdate); } function recoverFunds() onlyOwner external { uint256 balance = address(this).balance; (bool success,) = msg.sender.call{value:balance}(""); require(success); emit LogFundsRecovered(msg.sender, balance); } function updateExchangeRate() external payable onlyOwner { if (msg.value > 0) emit LogFundsReceived(msg.sender, msg.value); doUpdateExchangeRate(); } function updateProvableGasPrice(uint256 _gasPrice) onlyOwner public { if (provableGasPrice != _gasPrice) { provableGasPrice = _gasPrice; provable_setCustomGasPrice(provableGasPrice); } // TODO: Consider emitting a log. } function __callback(bytes32 _id, string memory _result, bytes memory _proof) override public onlyProvable { try this.decimalPriceToRate(_id, _result) returns (uint256[2] memory rate) { emit LogNewRateReceived(rate, _proof, "Success"); VOWToken(token).setUSDRate(rate[0], rate[1]); if (autoUpdate) doUpdateExchangeRate(); } catch Error(string memory reason) { emit LogNewRateReceived([uint256(0),uint256(0)], _proof, reason); } } function decimalPriceToRate(bytes32 _id, string memory _priceString) public view onlyCurrentQuery(_id) returns (uint256[2] memory rate_) { rate_ = LTokenManager.decimalPriceToRate(_priceString); } function doUpdateExchangeRate() private { uint256 cost = provable_getPrice("URL", provableGasLimit); if (cost > address(this).balance) emit LogNewQuery(cost, "Query not sent, requires ETH"); else { provableQueryID = provable_query(provableUpdateInterval, "URL", provableQuery, provableGasLimit); emit LogNewQuery(cost, "Query sent, awaiting result..."); } } } // File: contracts\VSCTokenManager.sol pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mapping(address => bool) public registeredMVD; mapping(RatioType => uint256[2]) public ratios; // Universal address as defined in Registry Contract Address section of https://eips.ethereum.org/EIPS/eip-1820 IERC1820Registry constant private ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); // precalculated hash - see https://github.com/ethereum/solidity/issues/4024 // keccak256("ERC777TokensRecipient") bytes32 constant private ERC777_TOKENS_RECIPIENT_HASH = 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b; event LogMVDRegistered(address indexed mvd); event LogMVDDeregistered(address indexed mvd); event LogRatioUpdated(uint256[2] ratio, RatioType ratioType); event LogBurnAndMint(address indexed from, uint256 vowAmount, uint256 vscAmount); event LogMerchantVOWLocked(address indexed mvd, address indexed merchant, uint256 lockedVOW, uint256 mintedVSC); event LogMerchantVOWUnlocked(address indexed unlocker, address indexed merchant, uint256 unlockedVOW, uint256 returnedVSC); constructor(address _token) TokenManager(_token) public { vowContract = VSCToken(_token).vowContract(); ERC1820_REGISTRY.setInterfaceImplementer(address(this), ERC777_TOKENS_RECIPIENT_HASH, address(this)); ratios[RatioType.MerchantLockBurnVOW] = [1,5]; // ie: burn 1 VOW for every 5 VOW locked ratios[RatioType.MerchantLockMintVSC] = [5,1]; // ie: mint 5 VSC for every 1 VSC ratios[RatioType.Liquidity] = [984,1000]; // ie: expect a 1.6% burn on tier2, a liquidity ratio of 62.5 } modifier mvdNotNull(address _mvd) { require(_mvd != address(0), "MVD address cannot be null"); _; } function setRatio(uint256[2] calldata _ratio, RatioType _ratioType) external onlyOwner { require(_ratio[1] != 0, "Invalid ratio: div by zero"); if (_ratioType != RatioType.MerchantLockMintVSC) require(_ratio[1] >= _ratio[0], "Invalid lock ratio: above 100%"); ratios[_ratioType] = _ratio; emit LogRatioUpdated(_ratio, _ratioType); } function getLiquidityRatio() external view returns (uint256[2] memory liquidity_) { liquidity_ = ratios[RatioType.Liquidity]; } function registerMVD(address _mvd) external onlyOwner mvdNotNull(_mvd) { registeredMVD[_mvd] = true; emit LogMVDRegistered(_mvd); } function deregisterMVD(address _mvd) external onlyOwner mvdNotNull(_mvd) { registeredMVD[_mvd] = false; emit LogMVDDeregistered(_mvd); } function tokensReceived(address /* _operator */, address _from, address /* _to */, uint256 _amount, bytes calldata _data, bytes calldata /* _operatorData */) external virtual override { if (msg.sender == vowContract) tokensReceivedVOW(_from, _data, _amount); else if (msg.sender == token) tokensReceivedThisVSC(_from, _data, _amount); else revert("Bad token"); } function getVOWVSCRate() public view returns (uint256 numVOW_, uint256 numVSC_) { VSCToken vscToken = VSCToken(token); VOWToken vowToken = VOWToken(vowContract); numVOW_ = vowToken.usdRate(0).mul(vscToken.usdRate(1)); numVSC_ = vowToken.usdRate(1).mul(vscToken.usdRate(0)); } function tokensReceivedVOW(address _from, bytes memory _data, uint256 _amount) private { if (registeredMVD[_from]) { (address merchant, bytes memory data) = abi.decode(_data, (address, bytes)); doMerchantLock(_from, merchant, _amount, data); return; } VOWToken(vowContract).burn(_amount, ""); (uint256 numVOW, uint256 numVSC) = getVOWVSCRate(); uint256 vscAmount = _amount.mul(numVSC).div(numVOW); VSCToken(token).mint(_from, vscAmount); emit LogBurnAndMint(_from, _amount, vscAmount); } function tokensReceivedThisVSC(address _from, bytes memory _data, uint256 _amount) private { doMerchantUnlock(_from, abi.decode(_data, (address)), _amount); } function doMerchantLock(address _mvd, address _merchant, uint256 _vowAmount, bytes memory _data) private { require(merchantVOWToVSCLock[_merchant][0] == 0, "Merchant is locked"); (uint256 numVOW, uint256 numVSC) = getVOWVSCRate(); uint256 burnAmount = _vowAmount.mul(ratios[RatioType.MerchantLockBurnVOW][0]).div(ratios[RatioType.MerchantLockBurnVOW][1]); uint256 vscAmount = _vowAmount.mul(numVSC).mul(ratios[RatioType.MerchantLockMintVSC][0]). div(numVOW.mul(ratios[RatioType.MerchantLockMintVSC][1])); merchantVOWToVSCLock[_merchant][0] = _vowAmount.sub(burnAmount); merchantVOWToVSCLock[_merchant][1] = vscAmount; VOWToken(vowContract).burn(burnAmount, ""); VSCToken(token).mint(_mvd, vscAmount); VSCToken(token).lift(_mvd, vscAmount, _data); emit LogMerchantVOWLocked(_mvd, _merchant, merchantVOWToVSCLock[_merchant][0], vscAmount); } function doMerchantUnlock(address _unlocker, address _merchant, uint256 _vscAmount) private { require(merchantVOWToVSCLock[_merchant][0] > 0, "No VOW to unlock"); require(merchantVOWToVSCLock[_merchant][1] == _vscAmount, "Incorrect VSC amount"); VSCToken(token).burn(_vscAmount, ""); VOWToken(vowContract).send(_merchant, merchantVOWToVSCLock[_merchant][0], ""); emit LogMerchantVOWUnlocked(_unlocker, _merchant, merchantVOWToVSCLock[_merchant][0], _vscAmount); delete merchantVOWToVSCLock[_merchant]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"vowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vscAmount","type":"uint256"}],"name":"LogBurnAndMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogFundsReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogFundsRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mvd","type":"address"}],"name":"LogMVDDeregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mvd","type":"address"}],"name":"LogMVDRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mvd","type":"address"},{"indexed":true,"internalType":"address","name":"merchant","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockedVOW","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintedVSC","type":"uint256"}],"name":"LogMerchantVOWLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"unlocker","type":"address"},{"indexed":true,"internalType":"address","name":"merchant","type":"address"},{"indexed":false,"internalType":"uint256","name":"unlockedVOW","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnedVSC","type":"uint256"}],"name":"LogMerchantVOWUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"},{"indexed":false,"internalType":"string","name":"status","type":"string"}],"name":"LogNewQuery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[2]","name":"rate","type":"uint256[2]"},{"indexed":true,"internalType":"bytes","name":"proof","type":"bytes"},{"indexed":false,"internalType":"string","name":"status","type":"string"}],"name":"LogNewRateReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"LogOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"interval","type":"uint256"},{"indexed":false,"internalType":"string","name":"query","type":"string"},{"indexed":false,"internalType":"bytes1","name":"proofType","type":"bytes1"},{"indexed":false,"internalType":"uint256","name":"gasPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gasLimit","type":"uint256"},{"indexed":false,"internalType":"bool","name":"autoUpdate","type":"bool"}],"name":"LogProvableSettingsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[2]","name":"ratio","type":"uint256[2]"},{"indexed":false,"internalType":"enum VSCTokenManager.RatioType","name":"ratioType","type":"uint8"}],"name":"LogRatioUpdated","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_myid","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"}],"name":"__callback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_id","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoUpdate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_id","type":"bytes32"},{"internalType":"string","name":"_priceString","type":"string"}],"name":"decimalPriceToRate","outputs":[{"internalType":"uint256[2]","name":"rate_","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mvd","type":"address"}],"name":"deregisterMVD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLiquidityRatio","outputs":[{"internalType":"uint256[2]","name":"liquidity_","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVOWVSCRate","outputs":[{"internalType":"uint256","name":"numVOW_","type":"uint256"},{"internalType":"uint256","name":"numVSC_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"merchantVOWToVSCLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableGasLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableGasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableProofType","outputs":[{"internalType":"bytes1","name":"","type":"bytes1"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableQuery","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provableUpdateInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum VSCTokenManager.RatioType","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ratios","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mvd","type":"address"}],"name":"registerMVD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"registeredMVD","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_ratio","type":"uint256[2]"},{"internalType":"enum VSCTokenManager.RatioType","name":"_ratioType","type":"uint8"}],"name":"setRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateExchangeRate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasPrice","type":"uint256"}],"name":"updateProvableGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"},{"internalType":"string","name":"_query","type":"string"},{"internalType":"bytes1","name":"_proofType","type":"bytes1"},{"internalType":"uint256","name":"_gasPrice","type":"uint256"},{"internalType":"uint256","name":"_gasLimit","type":"uint256"},{"internalType":"bool","name":"_autoUpdate","type":"bool"}],"name":"updateProvableSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vowContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200005157600080fd5b5060405162005c4138038062005c41833981810160405260208110156200007757600080fd5b8101908080519060200190929190505050808073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050508073ffffffffffffffffffffffffffffffffffffffff16631171ffcf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200010857600080fd5b505afa1580156200011d573d6000803e3d6000fd5b505050506040513d60208110156200013457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050731820a4b7618bde71dce8cdc73aab6c95905fad2473ffffffffffffffffffffffffffffffffffffffff166329965a1d307fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60001b306040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b1580156200026e57600080fd5b505af115801562000283573d6000803e3d6000fd5b505050506040518060400160405280600160ff168152602001600560ff16815250600f6000806002811115620002b557fe5b6002811115620002c157fe5b8152602001908152602001600020906002620002df9291906200039e565b506040518060400160405280600560ff168152602001600160ff16815250600f6000600160028111156200030f57fe5b60028111156200031b57fe5b8152602001908152602001600020906002620003399291906200039e565b5060405180604001604052806103d861ffff1681526020016103e861ffff16815250600f60006002808111156200036c57fe5b60028111156200037857fe5b815260200190815260200160002090600262000396929190620003e8565b50506200045b565b8260028101928215620003d5579160200282015b82811115620003d4578251829060ff16905591602001919060010190620003b2565b5b509050620003e4919062000433565b5090565b826002810192821562000420579160200282015b828111156200041f578251829061ffff16905591602001919060010190620003fc565b5b5090506200042f919062000433565b5090565b6200045891905b80821115620004545760008160009055506001016200043a565b5090565b90565b60805160601c60a05160601c615780620004c160003980610d4e528061104152806126d85280612b645280613c8f5280614248525080610df65280611a9052806126b352806129f95280612c3b5280613d2e5280613ded52806141a952506157806000f3fe6080604052600436106101845760003560e01c80634d70ac19116100d15780639d4d23f81161008a578063dafbd30f11610064578063dafbd30f14610beb578063dd5e3f7a14610c33578063eefc20a114610c65578063fc0c546a14610cf5576101d9565b80639d4d23f814610b40578063b79550be14610ba9578063bacec55114610bc0576101d9565b80634d70ac191461098f578063713eab56146109e257806379a9305b14610a0d5780637a43633314610a5e578063865f40f014610a8d5780638da5cb5b14610ae9576101d9565b80632630b7621161013e57806338bbfa501161011857806338bbfa50146106a0578063399d30a01461080957806342c5c97f1461084457806343cffd22146108b3576101d9565b80632630b7621461045157806327dc297e146104c05780633331270d14610592576101d9565b806223de29146101de57806302ce728f1461032357806303ceaf961461032d5780631171ffcf1461035857806313af4035146103af5780631ea1c6d614610400576101d9565b366101d9573373ffffffffffffffffffffffffffffffffffffffff167fafc7c22656214f820dd5d5d53d4e1a42b878f2fe22f8523d33e095602edff922346040518082815260200191505060405180910390a2005b600080fd5b3480156101ea57600080fd5b50610321600480360360c081101561020157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561028857600080fd5b82018360208201111561029a57600080fd5b803590602001918460018302840111640100000000831117156102bc57600080fd5b9091929391929390803590602001906401000000008111156102dd57600080fd5b8201836020820111156102ef57600080fd5b8035906020019184600183028401116401000000008311171561031157600080fd5b9091929391929390505050610d4c565b005b61032b610f15565b005b34801561033957600080fd5b50610342611039565b6040518082815260200191505060405180910390f35b34801561036457600080fd5b5061036d61103f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103bb57600080fd5b506103fe600480360360208110156103d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611063565b005b34801561040c57600080fd5b5061044f6004803603602081101561042357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611286565b005b34801561045d57600080fd5b506104aa6004803603604081101561047457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061148b565b6040518082815260200191505060405180910390f35b3480156104cc57600080fd5b50610590600480360360408110156104e357600080fd5b81019080803590602001909291908035906020019064010000000081111561050a57600080fd5b82018360208201111561051c57600080fd5b8035906020019184600183028401116401000000008311171561053e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506114b0565b005b34801561059e57600080fd5b50610662600480360360408110156105b557600080fd5b8101908080359060200190929190803590602001906401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061150a565b6040518082600260200280838360005b8381101561068d578082015181840152602081019050610672565b5050505090500191505060405180910390f35b3480156106ac57600080fd5b50610807600480360360608110156106c357600080fd5b8101908080359060200190929190803590602001906401000000008111156106ea57600080fd5b8201836020820111156106fc57600080fd5b8035906020019184600183028401116401000000008311171561071e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561078157600080fd5b82018360208201111561079357600080fd5b803590602001918460018302840111640100000000831117156107b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611687565b005b34801561081557600080fd5b506108426004803603602081101561082c57600080fd5b8101908080359060200190929190505050611b68565b005b34801561085057600080fd5b50610859611c49565b60405180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b3480156108bf57600080fd5b5061098d600480360360c08110156108d657600080fd5b8101908080359060200190929190803590602001906401000000008111156108fd57600080fd5b82018360208201111561090f57600080fd5b8035906020019184600183028401116401000000008311171561093157600080fd5b909192939192939080357effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291908035906020019092919080359060200190929190803515159060200190929190505050611c5c565b005b34801561099b57600080fd5b506109a4611f46565b6040518082600260200280838360005b838110156109cf5780820151818401526020810190506109b4565b5050505090500191505060405180910390f35b3480156109ee57600080fd5b506109f7611fb8565b6040518082815260200191505060405180910390f35b348015610a1957600080fd5b50610a5c60048036036020811015610a3057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611fbe565b005b348015610a6a57600080fd5b50610a736121c3565b604051808215151515815260200191505060405180910390f35b348015610a9957600080fd5b50610ad360048036036040811015610ab057600080fd5b81019080803560ff169060200190929190803590602001909291905050506121d6565b6040518082815260200191505060405180910390f35b348015610af557600080fd5b50610afe6121fb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b4c57600080fd5b50610b8f60048036036020811015610b6357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612220565b604051808215151515815260200191505060405180910390f35b348015610bb557600080fd5b50610bbe612240565b005b348015610bcc57600080fd5b50610bd5612400565b6040518082815260200191505060405180910390f35b348015610bf757600080fd5b50610c3160048036036060811015610c0e57600080fd5b8101908080604001909192919290803560ff169060200190929190505050612406565b005b348015610c3f57600080fd5b50610c486126ac565b604051808381526020018281526020019250505060405180910390f35b348015610c7157600080fd5b50610c7a612959565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cba578082015181840152602081019050610c9f565b50505050905090810190601f168015610ce75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d0157600080fd5b50610d0a6129f7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610df457610def8785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505087612a1b565b610f0b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610e9c57610e978785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505087612d57565b610f0a565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f42616420746f6b656e000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5b5050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fd7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b600034111561102f573373ffffffffffffffffffffffffffffffffffffffff167fafc7c22656214f820dd5d5d53d4e1a42b878f2fe22f8523d33e095602edff922346040518082815260200191505060405180910390a25b611037612d8c565b565b60095481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611125576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4f776e65722063616e6e6f74206265207a65726f20616464726573730000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fdb6d05f3295cede580affa301a1eb5297528f3b3f6a56b075887ce6f61c45f2160405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d564420616464726573732063616e6e6f74206265206e756c6c00000000000081525060200191505060405180910390fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167ff1f6f07845730db1f16789497f647c3227342fb0dd429a976251a201227142f660405160405180910390a25050565b600d60205281600052604060002081600281106114a457fe5b01600091509150505481565b6115068282600067ffffffffffffffff811180156114cd57600080fd5b506040519080825280601f01601f1916602001820160405280156115005781602001600182028036833780820191505090505b50611687565b5050565b6115126154c0565b8280600c541461158a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f426164204944000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b730d001133871924fe8cdf88c9ae69e0b106a8f0dc631cf4aa31846040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115f45780820151818401526020810190506115d9565b50505050905090810190601f1680156116215780820380516001836020036101000a031916815260200191505b5092505050604080518083038186803b15801561163d57600080fd5b505af4158015611651573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250604081101561167657600080fd5b810190809190505091505092915050565b61168f612fbe565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f4e6f742050726f7661626c65000000000000000000000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff16633331270d84846040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117a2578082015181840152602081019050611787565b50505050905090810190601f1680156117cf5780820380516001836020036101000a031916815260200191505b509350505050604080518083038186803b1580156117ec57600080fd5b505afa92505050801561182657506040513d601f19601f82011682018060405250604081101561181b57600080fd5b810190809190505060015b61199557611832615673565b8061183d5750611986565b816040518082805190602001908083835b60208310611871578051825260208201915060208101905060208303925061184e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390207f0f1064ccd2d3ded4c4d20cf6986605f07a145aba91c9cbe2e366e2383faea6cb6040518060400160405280600081526020016000815250836040518083600260200280838360005b838110156119025780820151818401526020810190506118e7565b5050505090500180602001828103825283818151815260200191508051906020019080838360005b8381101561194557808201518184015260208101905061192a565b50505050905090810190601f1680156119725780820380516001836020036101000a031916815260200191505b50935050505060405180910390a250611990565b3d6000803e3d6000fd5b611b63565b816040518082805190602001908083835b602083106119c957805182526020820191506020810190506020830392506119a6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390207f0f1064ccd2d3ded4c4d20cf6986605f07a145aba91c9cbe2e366e2383faea6cb826040518082600260200280838360005b83811015611a43578082015181840152602081019050611a28565b5050505090500180602001828103825260078152602001807f53756363657373000000000000000000000000000000000000000000000000008152506020019250505060405180910390a27f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633c85857782600060028110611ad757fe5b602002015183600160028110611ae957fe5b60200201516040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015611b2b57600080fd5b505af1158015611b3f573d6000803e3d6000fd5b50505050600b60009054906101000a900460ff1615611b6157611b60612d8c565b5b505b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b8060095414611c465780600981905550611c456009546132e0565b5b50565b600860009054906101000a900460f81b81565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d1e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b86600681905550858560079190611d369291906154e2565b50837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600860009054906101000a900460f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611dc55783600860006101000a81548160ff021916908360f81c0217905550611dc4600860009054906101000a900460f81b6135e7565b5b80600b60006101000a81548160ff021916908315150217905550611de883611b68565b81600a819055507fafd054979ef8fa6e353be689bba73eac7f4d5757d9a99c1626186b3e10f747126006546007600860009054906101000a900460f81b600954600a54600b60009054906101000a900460ff166040518087815260200180602001867effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200185815260200184815260200183151515158152602001828103825287818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015611f2a5780601f10611eff57610100808354040283529160200191611f2a565b820191906000526020600020905b815481529060010190602001808311611f0d57829003601f168201915b505097505050505050505060405180910390a150505050505050565b611f4e6154c0565b600f6000600280811115611f5e57fe5b6002811115611f6957fe5b8152602001908152602001600020600280602002604051908101604052809291908260028015611fae576020028201915b815481526020019060010190808311611f9a575b5050505050905090565b600a5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d564420616464726573732063616e6e6f74206265206e756c6c00000000000081525060200191505060405180910390fd5b6001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4e97559b34fe01d6b6c0d65a4be036a60df7a981bb0df92f21ae5b6a6952561960405160405180910390a25050565b600b60009054906101000a900460ff1681565b600f60205281600052604060002081600281106121ef57fe5b01600091509150505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff1631905060003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d806000811461237e576040519150601f19603f3d011682016040523d82523d6000602084013e612383565b606091505b505090508061239157600080fd5b7f0f1f6dd3c20ceaf150e6f5ff2392a0e11e1ea84adb6bbb6653296d9c06acb3d13383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b6000826001600281106124d757fe5b60200201351415612550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f496e76616c696420726174696f3a20646976206279207a65726f00000000000081525060200191505060405180910390fd5b6001600281111561255d57fe5b81600281111561256957fe5b14612607578160006002811061257b57fe5b60200201358260016002811061258d57fe5b60200201351015612606576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f496e76616c6964206c6f636b20726174696f3a2061626f76652031303025000081525060200191505060405180910390fd5b5b81600f600083600281111561261857fe5b600281111561262357fe5b815260200190815260200160002090600261263f929190615562565b507f03ef45be66f526a3dc6d0ccdfdc3bc140c667ce360e785ca8f1cdba7aa1776fb82826040518083600260200280828437600081840152601f19601f82011690508083019250505082600281111561269457fe5b60ff1681526020019250505060405180910390a15050565b60008060007f0000000000000000000000000000000000000000000000000000000000000000905060007f000000000000000000000000000000000000000000000000000000000000000090506128248273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560016040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561274e57600080fd5b505afa158015612762573d6000803e3d6000fd5b505050506040513d602081101561277857600080fd5b81019080805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156127db57600080fd5b505afa1580156127ef573d6000803e3d6000fd5b505050506040513d602081101561280557600080fd5b810190808051906020019092919050505061393290919063ffffffff16565b93506129518273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561287b57600080fd5b505afa15801561288f573d6000803e3d6000fd5b505050506040513d60208110156128a557600080fd5b81019080805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560016040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561290857600080fd5b505afa15801561291c573d6000803e3d6000fd5b505050506040513d602081101561293257600080fd5b810190808051906020019092919050505061393290919063ffffffff16565b925050509091565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156129ef5780601f106129c4576101008083540402835291602001916129ef565b820191906000526020600020905b8154815290600101906020018083116129d257829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612b625760006060838060200190516040811015612a8657600080fd5b810190808051906020019092919080516040519392919084640100000000821115612ab057600080fd5b83820191506020820185811115612ac657600080fd5b8251866001820283011164010000000082111715612ae357600080fd5b8083526020830192505050908051906020019080838360005b83811015612b17578082015181840152602081019050612afc565b50505050905090810190601f168015612b445780820380516001836020036101000a031916815260200191505b5060405250505091509150612b5b858385846139b8565b5050612d52565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe9d9303826040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b158015612be957600080fd5b505af1158015612bfd573d6000803e3d6000fd5b50505050600080612c0c6126ac565b915091506000612c3783612c29848761393290919063ffffffff16565b613fda90919063ffffffff16565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015612ce057600080fd5b505af1158015612cf4573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff167f7bbda3a37032c2beb02bb8429f42c79bcce9118c1ca0eae3b5fd258b5bdeac838583604051808381526020018281526020019250505060405180910390a25050505b505050565b612d8783838060200190516020811015612d7057600080fd5b810190808051906020019092919050505083614024565b505050565b6000612dcf6040518060400160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250600a5461446e565b90503073ffffffffffffffffffffffffffffffffffffffff1631811115612e65577fd0417ced7a88af5c87ebd4f7c756f533630528ea153b2a52ab0e785685ff9ed98160405180828152602001806020018281038252601c8152602001807f5175657279206e6f742073656e742c20726571756972657320455448000000008152506020019250505060405180910390a1612fbb565b612f446006546040518060400160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612f375780601f10612f0c57610100808354040283529160200191612f37565b820191906000526020600020905b815481529060010190602001808311612f1a57829003601f168201915b5050505050600a5461480b565b600c819055507fd0417ced7a88af5c87ebd4f7c756f533630528ea153b2a52ab0e785685ff9ed98160405180828152602001806020018281038252601e8152602001807f51756572792073656e742c206177616974696e6720726573756c742e2e2e00008152506020019250505060405180910390a15b50565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061304657506000613044600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15613057576130556000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156130c157600080fd5b505af11580156130d5573d6000803e3d6000fd5b505050506040513d60208110156130eb57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461323657600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156131ba57600080fd5b505af11580156131ce573d6000803e3d6000fd5b505050506040513d60208110156131e457600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156132a057600080fd5b505af11580156132b4573d6000803e3d6000fd5b505050506040513d60208110156132ca57600080fd5b8101908080519060200190929190505050905090565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061336757506000613365600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15613378576133766000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156133e257600080fd5b505af11580156133f6573d6000803e3d6000fd5b505050506040513d602081101561340c57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461355757600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156134db57600080fd5b505af11580156134ef573d6000803e3d6000fd5b505050506040513d602081101561350557600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156135cc57600080fd5b505af11580156135e0573d6000803e3d6000fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061366e5750600061366c600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b1561367f5761367d6000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156136e957600080fd5b505af11580156136fd573d6000803e3d6000fd5b505050506040513d602081101561371357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461385e57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156137e257600080fd5b505af11580156137f6573d6000803e3d6000fd5b505050506040513d602081101561380c57600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff1660e01b815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b15801561391757600080fd5b505af115801561392b573d6000803e3d6000fd5b5050505050565b60008083141561394557600090506139b2565b600082840290508284828161395657fe5b04146139ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061572a6021913960400191505060405180910390fd5b809150505b92915050565b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613a0557fe5b015414613a7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f4d65726368616e74206973206c6f636b6564000000000000000000000000000081525060200191505060405180910390fd5b600080613a856126ac565b915091506000613b1c600f6000806002811115613a9e57fe5b6002811115613aa957fe5b8152602001908152602001600020600160028110613ac357fe5b0154613b0e600f6000806002811115613ad857fe5b6002811115613ae357fe5b8152602001908152602001600020600060028110613afd57fe5b01548861393290919063ffffffff16565b613fda90919063ffffffff16565b90506000613bd7613b6d600f600060016002811115613b3757fe5b6002811115613b4257fe5b8152602001908152602001600020600160028110613b5c57fe5b01548661393290919063ffffffff16565b613bc9600f600060016002811115613b8157fe5b6002811115613b8c57fe5b8152602001908152602001600020600060028110613ba657fe5b0154613bbb878b61393290919063ffffffff16565b61393290919063ffffffff16565b613fda90919063ffffffff16565b9050613bec8287614d7f90919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613c3757fe5b018190555080600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160028110613c8857fe5b01819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe9d9303836040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b158015613d1457600080fd5b505af1158015613d28573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1989836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015613dd357600080fd5b505af1158015613de7573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fbd7d7528983886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613eb1578082015181840152602081019050613e96565b50505050905090810190601f168015613ede5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015613eff57600080fd5b505af1158015613f13573d6000803e3d6000fd5b505050508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167f33a929e3bb2033405c7b04042f9ab73600a55e22e85f5a45427018aa5f6c0363600d60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613fb157fe5b015484604051808381526020018281526020019250505060405180910390a35050505050505050565b600061401c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614dc9565b905092915050565b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006002811061407157fe5b0154116140e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f20564f5720746f20756e6c6f636b0000000000000000000000000000000081525060200191505060405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060016002811061413257fe5b0154146141a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e636f72726563742056534320616d6f756e7400000000000000000000000081525060200191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe9d9303826040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b15801561422e57600080fd5b505af1158015614242573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639bd9bbc683600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600281106142ce57fe5b01546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001806020018281038252600081526020016020019350505050600060405180830381600087803b15801561434d57600080fd5b505af1158015614361573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f9dde8eca91582d40a930aaeedabbaca6940a81dcf0b4aa65891efaabdbc7dee8600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600281106143ff57fe5b015484604051808381526020018281526020019250505060405180910390a3600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061446991906155a2565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806144f6575060006144f4600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15614507576145056000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561457157600080fd5b505af1158015614585573d6000803e3d6000fd5b505050506040513d602081101561459b57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146146e657600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561466a57600080fd5b505af115801561467e573d6000803e3d6000fd5b505050506040513d602081101561469457600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc84846040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561477b578082015181840152602081019050614760565b50505050905090810190601f1680156147a85780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1580156147c857600080fd5b505af11580156147dc573d6000803e3d6000fd5b505050506040513d60208110156147f257600080fd5b8101908080519060200190929190505050905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061489357506000614891600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b156148a4576148a26000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561490e57600080fd5b505af1158015614922573d6000803e3d6000fd5b505050506040513d602081101561493857600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614a8357600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015614a0757600080fd5b505af1158015614a1b573d6000803e3d6000fd5b505050506040513d6020811015614a3157600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015614b1a578082015181840152602081019050614aff565b50505050905090810190601f168015614b475780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015614b6757600080fd5b505af1158015614b7b573d6000803e3d6000fd5b505050506040513d6020811015614b9157600080fd5b81019080805190602001909291905050509050823a02670de0b6b3a764000001811115614bc4576000801b915050614d5b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f82888888886040518663ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015614c66578082015181840152602081019050614c4b565b50505050905090810190601f168015614c935780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015614ccc578082015181840152602081019050614cb1565b50505050905090810190601f168015614cf95780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b158015614d1b57600080fd5b505af1158015614d2f573d6000803e3d6000fd5b50505050506040513d6020811015614d4657600080fd5b81019080805190602001909291905050509150505b949350505050565b6000813b9050919050565b6000614d78614e8f565b9050919050565b6000614dc183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506153e6565b905092915050565b60008083118290614e75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e3a578082015181840152602081019050614e1f565b50505050905090810190601f168015614e675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614e8157fe5b049050809150509392505050565b600080614eaf731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed614d63565b1115614f5157731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550614f486040518060400160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506154a6565b600190506153e3565b6000614f7073c03a2615d5efaf5f49f60b7bb6583eaec212fdf1614d63565b11156150125773c03a2615d5efaf5f49f60b7bb6583eaec212fdf1600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506150096040518060400160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506154a6565b600190506153e3565b600061503173b7a07bcf2ba2f2703b24c0691b5278999c59ac7e614d63565b11156150d35773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506150ca6040518060400160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506154a6565b600190506153e3565b60006150f273146500cfd35b22e4a392fe0adc06de1a1368ed48614d63565b11156151945773146500cfd35b22e4a392fe0adc06de1a1368ed48600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061518b6040518060400160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506154a6565b600190506153e3565b60006151b373a2998efd205fb9d4b4963afb70778d6354ad3a41614d63565b11156152555773a2998efd205fb9d4b4963afb70778d6354ad3a41600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061524c6040518060400160405280600a81526020017f6574685f676f65726c69000000000000000000000000000000000000000000008152506154a6565b600190506153e3565b6000615274736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475614d63565b11156152d857736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b60006152f77320e12a1f859b3feae5fb2a0a32c18f5a65555bbf614d63565b111561535b577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b600061537a7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa614d63565b11156153de577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b600090505b90565b6000838311158290615493576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561545857808201518184015260208101905061543d565b50505050905090810190601f1680156154855780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b80600390805190602001906154bc9291906155b0565b5050565b6040518060400160405280600290602082028036833780820191505090505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061552357803560ff1916838001178555615551565b82800160010185558215615551579182015b82811115615550578235825591602001919060010190615535565b5b50905061555e9190615630565b5090565b8260028101928215615591579160200282015b82811115615590578235825591602001919060010190615575565b5b50905061559e9190615630565b5090565b506000815560010160009055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106155f157805160ff191683800117855561561f565b8280016001018555821561561f579182015b8281111561561e578251825591602001919060010190615603565b5b50905061562c9190615630565b5090565b61565291905b8082111561564e576000816000905550600101615636565b5090565b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d101561568357615726565b60046000803e615694600051615666565b6308c379a081146156a55750615726565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156156d157505050615726565b808201805167ffffffffffffffff8111156156f0575050505050615726565b8060208301013d850181111561570b57505050505050615726565b61571482615655565b60208401016040528296505050505050505b9056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122009b63d29cc86a36336e48de4ae44b15ef2c9e9e94778751eb1f26f4c4d9602b364736f6c634300060700330000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a
Deployed Bytecode
0x6080604052600436106101845760003560e01c80634d70ac19116100d15780639d4d23f81161008a578063dafbd30f11610064578063dafbd30f14610beb578063dd5e3f7a14610c33578063eefc20a114610c65578063fc0c546a14610cf5576101d9565b80639d4d23f814610b40578063b79550be14610ba9578063bacec55114610bc0576101d9565b80634d70ac191461098f578063713eab56146109e257806379a9305b14610a0d5780637a43633314610a5e578063865f40f014610a8d5780638da5cb5b14610ae9576101d9565b80632630b7621161013e57806338bbfa501161011857806338bbfa50146106a0578063399d30a01461080957806342c5c97f1461084457806343cffd22146108b3576101d9565b80632630b7621461045157806327dc297e146104c05780633331270d14610592576101d9565b806223de29146101de57806302ce728f1461032357806303ceaf961461032d5780631171ffcf1461035857806313af4035146103af5780631ea1c6d614610400576101d9565b366101d9573373ffffffffffffffffffffffffffffffffffffffff167fafc7c22656214f820dd5d5d53d4e1a42b878f2fe22f8523d33e095602edff922346040518082815260200191505060405180910390a2005b600080fd5b3480156101ea57600080fd5b50610321600480360360c081101561020157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561028857600080fd5b82018360208201111561029a57600080fd5b803590602001918460018302840111640100000000831117156102bc57600080fd5b9091929391929390803590602001906401000000008111156102dd57600080fd5b8201836020820111156102ef57600080fd5b8035906020019184600183028401116401000000008311171561031157600080fd5b9091929391929390505050610d4c565b005b61032b610f15565b005b34801561033957600080fd5b50610342611039565b6040518082815260200191505060405180910390f35b34801561036457600080fd5b5061036d61103f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103bb57600080fd5b506103fe600480360360208110156103d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611063565b005b34801561040c57600080fd5b5061044f6004803603602081101561042357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611286565b005b34801561045d57600080fd5b506104aa6004803603604081101561047457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061148b565b6040518082815260200191505060405180910390f35b3480156104cc57600080fd5b50610590600480360360408110156104e357600080fd5b81019080803590602001909291908035906020019064010000000081111561050a57600080fd5b82018360208201111561051c57600080fd5b8035906020019184600183028401116401000000008311171561053e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506114b0565b005b34801561059e57600080fd5b50610662600480360360408110156105b557600080fd5b8101908080359060200190929190803590602001906401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061150a565b6040518082600260200280838360005b8381101561068d578082015181840152602081019050610672565b5050505090500191505060405180910390f35b3480156106ac57600080fd5b50610807600480360360608110156106c357600080fd5b8101908080359060200190929190803590602001906401000000008111156106ea57600080fd5b8201836020820111156106fc57600080fd5b8035906020019184600183028401116401000000008311171561071e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561078157600080fd5b82018360208201111561079357600080fd5b803590602001918460018302840111640100000000831117156107b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611687565b005b34801561081557600080fd5b506108426004803603602081101561082c57600080fd5b8101908080359060200190929190505050611b68565b005b34801561085057600080fd5b50610859611c49565b60405180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b3480156108bf57600080fd5b5061098d600480360360c08110156108d657600080fd5b8101908080359060200190929190803590602001906401000000008111156108fd57600080fd5b82018360208201111561090f57600080fd5b8035906020019184600183028401116401000000008311171561093157600080fd5b909192939192939080357effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291908035906020019092919080359060200190929190803515159060200190929190505050611c5c565b005b34801561099b57600080fd5b506109a4611f46565b6040518082600260200280838360005b838110156109cf5780820151818401526020810190506109b4565b5050505090500191505060405180910390f35b3480156109ee57600080fd5b506109f7611fb8565b6040518082815260200191505060405180910390f35b348015610a1957600080fd5b50610a5c60048036036020811015610a3057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611fbe565b005b348015610a6a57600080fd5b50610a736121c3565b604051808215151515815260200191505060405180910390f35b348015610a9957600080fd5b50610ad360048036036040811015610ab057600080fd5b81019080803560ff169060200190929190803590602001909291905050506121d6565b6040518082815260200191505060405180910390f35b348015610af557600080fd5b50610afe6121fb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b4c57600080fd5b50610b8f60048036036020811015610b6357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612220565b604051808215151515815260200191505060405180910390f35b348015610bb557600080fd5b50610bbe612240565b005b348015610bcc57600080fd5b50610bd5612400565b6040518082815260200191505060405180910390f35b348015610bf757600080fd5b50610c3160048036036060811015610c0e57600080fd5b8101908080604001909192919290803560ff169060200190929190505050612406565b005b348015610c3f57600080fd5b50610c486126ac565b604051808381526020018281526020019250505060405180910390f35b348015610c7157600080fd5b50610c7a612959565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cba578082015181840152602081019050610c9f565b50505050905090810190601f168015610ce75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d0157600080fd5b50610d0a6129f7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610df457610def8785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505087612a1b565b610f0b565b7f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610e9c57610e978785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505087612d57565b610f0a565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f42616420746f6b656e000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5b5050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fd7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b600034111561102f573373ffffffffffffffffffffffffffffffffffffffff167fafc7c22656214f820dd5d5d53d4e1a42b878f2fe22f8523d33e095602edff922346040518082815260200191505060405180910390a25b611037612d8c565b565b60095481565b7f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb81565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611125576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4f776e65722063616e6e6f74206265207a65726f20616464726573730000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fdb6d05f3295cede580affa301a1eb5297528f3b3f6a56b075887ce6f61c45f2160405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d564420616464726573732063616e6e6f74206265206e756c6c00000000000081525060200191505060405180910390fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167ff1f6f07845730db1f16789497f647c3227342fb0dd429a976251a201227142f660405160405180910390a25050565b600d60205281600052604060002081600281106114a457fe5b01600091509150505481565b6115068282600067ffffffffffffffff811180156114cd57600080fd5b506040519080825280601f01601f1916602001820160405280156115005781602001600182028036833780820191505090505b50611687565b5050565b6115126154c0565b8280600c541461158a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f426164204944000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b730d001133871924fe8cdf88c9ae69e0b106a8f0dc631cf4aa31846040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115f45780820151818401526020810190506115d9565b50505050905090810190601f1680156116215780820380516001836020036101000a031916815260200191505b5092505050604080518083038186803b15801561163d57600080fd5b505af4158015611651573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250604081101561167657600080fd5b810190809190505091505092915050565b61168f612fbe565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f4e6f742050726f7661626c65000000000000000000000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff16633331270d84846040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117a2578082015181840152602081019050611787565b50505050905090810190601f1680156117cf5780820380516001836020036101000a031916815260200191505b509350505050604080518083038186803b1580156117ec57600080fd5b505afa92505050801561182657506040513d601f19601f82011682018060405250604081101561181b57600080fd5b810190809190505060015b61199557611832615673565b8061183d5750611986565b816040518082805190602001908083835b60208310611871578051825260208201915060208101905060208303925061184e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390207f0f1064ccd2d3ded4c4d20cf6986605f07a145aba91c9cbe2e366e2383faea6cb6040518060400160405280600081526020016000815250836040518083600260200280838360005b838110156119025780820151818401526020810190506118e7565b5050505090500180602001828103825283818151815260200191508051906020019080838360005b8381101561194557808201518184015260208101905061192a565b50505050905090810190601f1680156119725780820380516001836020036101000a031916815260200191505b50935050505060405180910390a250611990565b3d6000803e3d6000fd5b611b63565b816040518082805190602001908083835b602083106119c957805182526020820191506020810190506020830392506119a6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390207f0f1064ccd2d3ded4c4d20cf6986605f07a145aba91c9cbe2e366e2383faea6cb826040518082600260200280838360005b83811015611a43578082015181840152602081019050611a28565b5050505090500180602001828103825260078152602001807f53756363657373000000000000000000000000000000000000000000000000008152506020019250505060405180910390a27f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff16633c85857782600060028110611ad757fe5b602002015183600160028110611ae957fe5b60200201516040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015611b2b57600080fd5b505af1158015611b3f573d6000803e3d6000fd5b50505050600b60009054906101000a900460ff1615611b6157611b60612d8c565b5b505b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b8060095414611c465780600981905550611c456009546132e0565b5b50565b600860009054906101000a900460f81b81565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d1e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b86600681905550858560079190611d369291906154e2565b50837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600860009054906101000a900460f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611dc55783600860006101000a81548160ff021916908360f81c0217905550611dc4600860009054906101000a900460f81b6135e7565b5b80600b60006101000a81548160ff021916908315150217905550611de883611b68565b81600a819055507fafd054979ef8fa6e353be689bba73eac7f4d5757d9a99c1626186b3e10f747126006546007600860009054906101000a900460f81b600954600a54600b60009054906101000a900460ff166040518087815260200180602001867effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200185815260200184815260200183151515158152602001828103825287818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015611f2a5780601f10611eff57610100808354040283529160200191611f2a565b820191906000526020600020905b815481529060010190602001808311611f0d57829003601f168201915b505097505050505050505060405180910390a150505050505050565b611f4e6154c0565b600f6000600280811115611f5e57fe5b6002811115611f6957fe5b8152602001908152602001600020600280602002604051908101604052809291908260028015611fae576020028201915b815481526020019060010190808311611f9a575b5050505050905090565b600a5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d564420616464726573732063616e6e6f74206265206e756c6c00000000000081525060200191505060405180910390fd5b6001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4e97559b34fe01d6b6c0d65a4be036a60df7a981bb0df92f21ae5b6a6952561960405160405180910390a25050565b600b60009054906101000a900460ff1681565b600f60205281600052604060002081600281106121ef57fe5b01600091509150505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff1631905060003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d806000811461237e576040519150601f19603f3d011682016040523d82523d6000602084013e612383565b606091505b505090508061239157600080fd5b7f0f1f6dd3c20ceaf150e6f5ff2392a0e11e1ea84adb6bbb6653296d9c06acb3d13383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f53656e646572206d757374206265206f776e657200000000000000000000000081525060200191505060405180910390fd5b6000826001600281106124d757fe5b60200201351415612550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f496e76616c696420726174696f3a20646976206279207a65726f00000000000081525060200191505060405180910390fd5b6001600281111561255d57fe5b81600281111561256957fe5b14612607578160006002811061257b57fe5b60200201358260016002811061258d57fe5b60200201351015612606576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f496e76616c6964206c6f636b20726174696f3a2061626f76652031303025000081525060200191505060405180910390fd5b5b81600f600083600281111561261857fe5b600281111561262357fe5b815260200190815260200160002090600261263f929190615562565b507f03ef45be66f526a3dc6d0ccdfdc3bc140c667ce360e785ca8f1cdba7aa1776fb82826040518083600260200280828437600081840152601f19601f82011690508083019250505082600281111561269457fe5b60ff1681526020019250505060405180910390a15050565b60008060007f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a905060007f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb90506128248273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560016040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561274e57600080fd5b505afa158015612762573d6000803e3d6000fd5b505050506040513d602081101561277857600080fd5b81019080805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156127db57600080fd5b505afa1580156127ef573d6000803e3d6000fd5b505050506040513d602081101561280557600080fd5b810190808051906020019092919050505061393290919063ffffffff16565b93506129518273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561287b57600080fd5b505afa15801561288f573d6000803e3d6000fd5b505050506040513d60208110156128a557600080fd5b81019080805190602001909291905050508273ffffffffffffffffffffffffffffffffffffffff16636f54ed7560016040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561290857600080fd5b505afa15801561291c573d6000803e3d6000fd5b505050506040513d602081101561293257600080fd5b810190808051906020019092919050505061393290919063ffffffff16565b925050509091565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156129ef5780601f106129c4576101008083540402835291602001916129ef565b820191906000526020600020905b8154815290600101906020018083116129d257829003601f168201915b505050505081565b7f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a81565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612b625760006060838060200190516040811015612a8657600080fd5b810190808051906020019092919080516040519392919084640100000000821115612ab057600080fd5b83820191506020820185811115612ac657600080fd5b8251866001820283011164010000000082111715612ae357600080fd5b8083526020830192505050908051906020019080838360005b83811015612b17578082015181840152602081019050612afc565b50505050905090810190601f168015612b445780820380516001836020036101000a031916815260200191505b5060405250505091509150612b5b858385846139b8565b5050612d52565b7f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb73ffffffffffffffffffffffffffffffffffffffff1663fe9d9303826040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b158015612be957600080fd5b505af1158015612bfd573d6000803e3d6000fd5b50505050600080612c0c6126ac565b915091506000612c3783612c29848761393290919063ffffffff16565b613fda90919063ffffffff16565b90507f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015612ce057600080fd5b505af1158015612cf4573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff167f7bbda3a37032c2beb02bb8429f42c79bcce9118c1ca0eae3b5fd258b5bdeac838583604051808381526020018281526020019250505060405180910390a25050505b505050565b612d8783838060200190516020811015612d7057600080fd5b810190808051906020019092919050505083614024565b505050565b6000612dcf6040518060400160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250600a5461446e565b90503073ffffffffffffffffffffffffffffffffffffffff1631811115612e65577fd0417ced7a88af5c87ebd4f7c756f533630528ea153b2a52ab0e785685ff9ed98160405180828152602001806020018281038252601c8152602001807f5175657279206e6f742073656e742c20726571756972657320455448000000008152506020019250505060405180910390a1612fbb565b612f446006546040518060400160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612f375780601f10612f0c57610100808354040283529160200191612f37565b820191906000526020600020905b815481529060010190602001808311612f1a57829003601f168201915b5050505050600a5461480b565b600c819055507fd0417ced7a88af5c87ebd4f7c756f533630528ea153b2a52ab0e785685ff9ed98160405180828152602001806020018281038252601e8152602001807f51756572792073656e742c206177616974696e6720726573756c742e2e2e00008152506020019250505060405180910390a15b50565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061304657506000613044600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15613057576130556000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156130c157600080fd5b505af11580156130d5573d6000803e3d6000fd5b505050506040513d60208110156130eb57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461323657600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156131ba57600080fd5b505af11580156131ce573d6000803e3d6000fd5b505050506040513d60208110156131e457600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156132a057600080fd5b505af11580156132b4573d6000803e3d6000fd5b505050506040513d60208110156132ca57600080fd5b8101908080519060200190929190505050905090565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061336757506000613365600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15613378576133766000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156133e257600080fd5b505af11580156133f6573d6000803e3d6000fd5b505050506040513d602081101561340c57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461355757600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156134db57600080fd5b505af11580156134ef573d6000803e3d6000fd5b505050506040513d602081101561350557600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156135cc57600080fd5b505af11580156135e0573d6000803e3d6000fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061366e5750600061366c600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b1561367f5761367d6000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156136e957600080fd5b505af11580156136fd573d6000803e3d6000fd5b505050506040513d602081101561371357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461385e57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156137e257600080fd5b505af11580156137f6573d6000803e3d6000fd5b505050506040513d602081101561380c57600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff1660e01b815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b15801561391757600080fd5b505af115801561392b573d6000803e3d6000fd5b5050505050565b60008083141561394557600090506139b2565b600082840290508284828161395657fe5b04146139ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061572a6021913960400191505060405180910390fd5b809150505b92915050565b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613a0557fe5b015414613a7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f4d65726368616e74206973206c6f636b6564000000000000000000000000000081525060200191505060405180910390fd5b600080613a856126ac565b915091506000613b1c600f6000806002811115613a9e57fe5b6002811115613aa957fe5b8152602001908152602001600020600160028110613ac357fe5b0154613b0e600f6000806002811115613ad857fe5b6002811115613ae357fe5b8152602001908152602001600020600060028110613afd57fe5b01548861393290919063ffffffff16565b613fda90919063ffffffff16565b90506000613bd7613b6d600f600060016002811115613b3757fe5b6002811115613b4257fe5b8152602001908152602001600020600160028110613b5c57fe5b01548661393290919063ffffffff16565b613bc9600f600060016002811115613b8157fe5b6002811115613b8c57fe5b8152602001908152602001600020600060028110613ba657fe5b0154613bbb878b61393290919063ffffffff16565b61393290919063ffffffff16565b613fda90919063ffffffff16565b9050613bec8287614d7f90919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613c3757fe5b018190555080600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160028110613c8857fe5b01819055507f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb73ffffffffffffffffffffffffffffffffffffffff1663fe9d9303836040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b158015613d1457600080fd5b505af1158015613d28573d6000803e3d6000fd5b505050507f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff166340c10f1989836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015613dd357600080fd5b505af1158015613de7573d6000803e3d6000fd5b505050507f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff1663fbd7d7528983886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613eb1578082015181840152602081019050613e96565b50505050905090810190601f168015613ede5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015613eff57600080fd5b505af1158015613f13573d6000803e3d6000fd5b505050508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167f33a929e3bb2033405c7b04042f9ab73600a55e22e85f5a45427018aa5f6c0363600d60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060028110613fb157fe5b015484604051808381526020018281526020019250505060405180910390a35050505050505050565b600061401c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614dc9565b905092915050565b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006002811061407157fe5b0154116140e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f20564f5720746f20756e6c6f636b0000000000000000000000000000000081525060200191505060405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060016002811061413257fe5b0154146141a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e636f72726563742056534320616d6f756e7400000000000000000000000081525060200191505060405180910390fd5b7f0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a73ffffffffffffffffffffffffffffffffffffffff1663fe9d9303826040518263ffffffff1660e01b8152600401808281526020018060200182810382526000815260200160200192505050600060405180830381600087803b15801561422e57600080fd5b505af1158015614242573d6000803e3d6000fd5b505050507f0000000000000000000000001bbf25e71ec48b84d773809b4ba55b6f4be946fb73ffffffffffffffffffffffffffffffffffffffff16639bd9bbc683600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600281106142ce57fe5b01546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001806020018281038252600081526020016020019350505050600060405180830381600087803b15801561434d57600080fd5b505af1158015614361573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f9dde8eca91582d40a930aaeedabbaca6940a81dcf0b4aa65891efaabdbc7dee8600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600281106143ff57fe5b015484604051808381526020018281526020019250505060405180910390a3600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061446991906155a2565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806144f6575060006144f4600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b15614507576145056000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561457157600080fd5b505af1158015614585573d6000803e3d6000fd5b505050506040513d602081101561459b57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146146e657600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561466a57600080fd5b505af115801561467e573d6000803e3d6000fd5b505050506040513d602081101561469457600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc84846040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561477b578082015181840152602081019050614760565b50505050905090810190601f1680156147a85780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1580156147c857600080fd5b505af11580156147dc573d6000803e3d6000fd5b505050506040513d60208110156147f257600080fd5b8101908080519060200190929190505050905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061489357506000614891600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16614d63565b145b156148a4576148a26000614d6e565b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561490e57600080fd5b505af1158015614922573d6000803e3d6000fd5b505050506040513d602081101561493857600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614a8357600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015614a0757600080fd5b505af1158015614a1b573d6000803e3d6000fd5b505050506040513d6020811015614a3157600080fd5b8101908080519060200190929190505050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015614b1a578082015181840152602081019050614aff565b50505050905090810190601f168015614b475780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015614b6757600080fd5b505af1158015614b7b573d6000803e3d6000fd5b505050506040513d6020811015614b9157600080fd5b81019080805190602001909291905050509050823a02670de0b6b3a764000001811115614bc4576000801b915050614d5b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f82888888886040518663ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015614c66578082015181840152602081019050614c4b565b50505050905090810190601f168015614c935780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015614ccc578082015181840152602081019050614cb1565b50505050905090810190601f168015614cf95780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b158015614d1b57600080fd5b505af1158015614d2f573d6000803e3d6000fd5b50505050506040513d6020811015614d4657600080fd5b81019080805190602001909291905050509150505b949350505050565b6000813b9050919050565b6000614d78614e8f565b9050919050565b6000614dc183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506153e6565b905092915050565b60008083118290614e75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e3a578082015181840152602081019050614e1f565b50505050905090810190601f168015614e675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614e8157fe5b049050809150509392505050565b600080614eaf731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed614d63565b1115614f5157731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550614f486040518060400160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506154a6565b600190506153e3565b6000614f7073c03a2615d5efaf5f49f60b7bb6583eaec212fdf1614d63565b11156150125773c03a2615d5efaf5f49f60b7bb6583eaec212fdf1600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506150096040518060400160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506154a6565b600190506153e3565b600061503173b7a07bcf2ba2f2703b24c0691b5278999c59ac7e614d63565b11156150d35773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506150ca6040518060400160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506154a6565b600190506153e3565b60006150f273146500cfd35b22e4a392fe0adc06de1a1368ed48614d63565b11156151945773146500cfd35b22e4a392fe0adc06de1a1368ed48600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061518b6040518060400160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506154a6565b600190506153e3565b60006151b373a2998efd205fb9d4b4963afb70778d6354ad3a41614d63565b11156152555773a2998efd205fb9d4b4963afb70778d6354ad3a41600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061524c6040518060400160405280600a81526020017f6574685f676f65726c69000000000000000000000000000000000000000000008152506154a6565b600190506153e3565b6000615274736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475614d63565b11156152d857736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b60006152f77320e12a1f859b3feae5fb2a0a32c18f5a65555bbf614d63565b111561535b577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b600061537a7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa614d63565b11156153de577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506153e3565b600090505b90565b6000838311158290615493576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561545857808201518184015260208101905061543d565b50505050905090810190601f1680156154855780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b80600390805190602001906154bc9291906155b0565b5050565b6040518060400160405280600290602082028036833780820191505090505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061552357803560ff1916838001178555615551565b82800160010185558215615551579182015b82811115615550578235825591602001919060010190615535565b5b50905061555e9190615630565b5090565b8260028101928215615591579160200282015b82811115615590578235825591602001919060010190615575565b5b50905061559e9190615630565b5090565b506000815560010160009055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106155f157805160ff191683800117855561561f565b8280016001018555821561561f579182015b8281111561561e578251825591602001919060010190615603565b5b50905061562c9190615630565b5090565b61565291905b8082111561564e576000816000905550600101615636565b5090565b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d101561568357615726565b60046000803e615694600051615666565b6308c379a081146156a55750615726565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156156d157505050615726565b808201805167ffffffffffffffff8111156156f0575050505050615726565b8060208301013d850181111561570b57505050505050615726565b61571482615655565b60208401016040528296505050505050505b9056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122009b63d29cc86a36336e48de4ae44b15ef2c9e9e94778751eb1f26f4c4d9602b364736f6c63430006070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a
-----Decoded View---------------
Arg [0] : _token (address): 0x0fc6C0465C9739d4a42dAca22eB3b2CB0Eb9937A
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000fc6c0465c9739d4a42daca22eb3b2cb0eb9937a
Deployed Bytecode Sourcemap
104376:5880:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101677:10;101660:39;;;101689:9;101660:39;;;;;;;;;;;;;;;;;;104376:5880;;12:1:-1;9;2:12;107282:426:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107282:426:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;107282:426:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;107282:426:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;107282:426:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;107282:426:0;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;107282:426:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;107282:426:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;107282:426:0;;;;;;;;;;;;:::i;:::-;;102680:187;;;:::i;:::-;;100779:31;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100779:31:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;104567:36;;5:9:-1;2:2;;;27:1;24;17:12;2:2;104567:36:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;31927:211;;5:9:-1;2:2;;;27:1;24;17:12;2:2;31927:211:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;31927:211:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;107109:167;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107109:167:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;107109:167:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;104608:58;;5:9:-1;2:2;;;27:1;24;17:12;2:2;104608:58:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;104608:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;55491:132;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55491:132:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;55491:132:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;55491:132:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;55491:132:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;55491:132:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;55491:132:0;;;;;;;;;;;;;;;:::i;:::-;;103653:227;;5:9:-1;2:2;;;27:1;24;17:12;2:2;103653:227:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;103653:227:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;103653:227:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;103653:227:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;103653:227:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;103653:227:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103653:227:0;;;;;;;;;;;;;;;;103146:501;;5:9:-1;2:2;;;27:1;24;17:12;2:2;103146:501:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;103146:501:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;103146:501:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;103146:501:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;103146:501:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;103146:501:0;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;103146:501:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;103146:501:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;103146:501:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;103146:501:0;;;;;;;;;;;;;;;:::i;:::-;;102873:267;;5:9:-1;2:2;;;27:1;24;17:12;2:2;102873:267:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;102873:267:0;;;;;;;;;;;;;;;;;:::i;:::-;;100745:29;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100745:29:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;101761:667;;5:9:-1;2:2;;;27:1;24;17:12;2:2;101761:667:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;101761:667:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;101761:667:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;101761:667:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;101761:667:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;106782:153;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106782:153:0;;;:::i;:::-;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;106782:153:0;;;;;;;;;;;;;;;;100815:31;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100815:31:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;106941:162;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106941:162:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;106941:162:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;100851:22;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100851:22:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;104721:46;;5:9:-1;2:2;;;27:1;24;17:12;2:2;104721:46:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;104721:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31704:33;;5:9:-1;2:2;;;27:1;24;17:12;2:2;31704:33:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;104671:45;;5:9:-1;2:2;;;27:1;24;17:12;2:2;104671:45:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;104671:45:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;102434:240;;5:9:-1;2:2;;;27:1;24;17:12;2:2;102434:240:0;;;:::i;:::-;;100671:37;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100671:37:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;106397:379;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106397:379:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;106397:379:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;107714:316;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107714:316:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;100713:27;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100713:27:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;100713:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100636:30;;5:9:-1;2:2;;;27:1;24;17:12;2:2;100636:30:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;107282:426;107516:11;107502:25;;:10;:25;;;107498:204;;;107536:40;107554:5;107561;;107536:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;107536:40:0;;;;;;107568:7;107536:17;:40::i;:::-;107498:204;;;107606:5;107592:19;;:10;:19;;;107588:114;;;107620:44;107642:5;107649;;107620:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;107620:44:0;;;;;;107656:7;107620:21;:44::i;:::-;107588:114;;;107683:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107588:114;107498:204;107282:426;;;;;;;;:::o;102680:187::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102778:1:::1;102766:9;:13;102762:70;;;102810:10;102793:39;;;102822:9;102793:39;;;;;;;;;;;;;;;;;;102762:70;102839:22;:20;:22::i;:::-;102680:187::o:0;100779:31::-;;;;:::o;104567:36::-;;;:::o;31927:211::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32026:1:::1;32008:20;;:6;:20;;;;32000:61;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;32104:6;32073:38;;32097:5;::::0;::::1;;;;;;;;;32073:38;;;;;;;;;;;;32126:6;32118:5;::::0;:14:::1;;;;;;;;;;;;;;;;;;31927:211:::0;:::o;107109:167::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107191:4:::1;106344:1;106328:18;;:4;:18;;;;106320:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;107229:5:::2;107207:13;:19;107221:4;107207:19;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;107265:4;107246:24;;;;;;;;;;;;31914:1:::1;107109:167:::0;:::o;104608:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;55491:132::-;55575:40;55586:5;55593:7;55612:1;55602:12;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55602:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;124:4;108:14;100:6;87:42;155:4;147:6;143:17;133:27;;0:164;55602:12:0;;;;55575:10;:40::i;:::-;55491:132;;:::o;103653:227::-;103785:23;;:::i;:::-;103766:3;101587;101568:15;;:22;101560:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103828:13:::1;:32;103861:12;103828:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103828:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;103828:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;103828:46: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;15:2;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;103828:46:0;;;;;;;;103820:54;;103653:227:::0;;;;;:::o;103146:501::-;101457:20;:18;:20::i;:::-;101443:34;;:10;:34;;;101435:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103281:4:::1;:23;;;103305:3;103310:7;103281:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103281:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;103281:37: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;15:2;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;103281:37:0;;;;;;;;;;103277:365;;;;;;;;;;;;;103619:6;103575:59;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;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;;;103575:59:0;;;;;;;;;;;;;;;;;;;;;;;;;103603:1;103575:59;;;;103614:1;103575:59;;::::0;103627:6:::1;103575:59;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103575:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103575:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103527:115;103277:365;;;27:16:-1;24:1;21::::0;6:38:::1;59:16;56:1;49:27;103277:365:0;;;;103391:6;103366:43;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;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;;;103366:43:0;;;;;;;;;;;;;;;;;103385:4;103366:43;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;103366:43:0;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;103427:5;103418:26;;;103445:4;103450:1;103445:7;;;;;;;;;;;103454:4;103459:1;103454:7;;;;;;;;;;;103418:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;103418:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;103418:44:0;;;;103475:10;;;;;;;;;;;103471:47;;;103496:22;:20;:22::i;:::-;103471:47;103319:207;103277:365;103146:501:::0;;;:::o;102873:267::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102985:9:::1;102965:16;;:29;102961:133;;103024:9;103005:16;:28;;;;103042:44;103069:16;;103042:26;:44::i;:::-;102961:133;102873:267:::0;:::o;100745:29::-;;;;;;;;;;;;;:::o;101761:667::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101980:9:::1;101955:22;:34;;;;102012:6;;101996:13;:22;;;;;;;:::i;:::-;;102052:10;102031:31;;;:17;;;;;;;;;;;:31;;;;102027:129;;102093:10;102073:17;;:30;;;;;;;;;;;;;;;;;;102112:36;102130:17;;;;;;;;;;;102112;:36::i;:::-;102027:129;102177:11;102164:10;;:24;;;;;;;;;;;;;;;;;;102197:33;102220:9;102197:22;:33::i;:::-;102258:9;102239:16;:28;;;;102281:141;102308:22;;102332:13;102347:17;;;;;;;;;;;102366:16;;102393;;102411:10;;;;;;;;;;;102281:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101761:667:::0;;;;;;;:::o;106782:153::-;106849:28;;:::i;:::-;106902:6;:27;106909:19;106902:27;;;;;;;;;;;;;;;;;;;;;;;;;;;106889:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106782:153;:::o;100815:31::-;;;;:::o;106941:162::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107021:4:::1;106344:1;106328:18;;:4;:18;;;;106320:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;107059:4:::2;107037:13;:19;107051:4;107037:19;;;;;;;;;;;;;;;;:26;;;;;;;;;;;;;;;;;;107092:4;107075:22;;;;;;;;;;;;31914:1:::1;106941:162:::0;:::o;100851:22::-;;;;;;;;;;;;;:::o;104721:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;31704:33::-;;;;;;;;;;;;;:::o;104671:45::-;;;;;;;;;;;;;;;;;;;;;;:::o;102434:240::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102497:15:::1;102523:4;102515:21;;;102497:39;;102544:12;102561:10;:15;;102583:7;102561:34;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;102543:52:0;;;102610:7;102602:16;;12:1:-1;9::::0;2:12:::1;102602:16:0;102630:38;102648:10;102660:7;102630:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;31914:1;;102434:240::o:0;100671:37::-;;;;:::o;106397:379::-;31877:5;;;;;;;;;;;31863:19;;:10;:19;;;31855:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106525:1:::1;106512:6;106519:1;106512:9;;;;;;;;;;;:14;;106504:53;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;106584:29;106570:43;;;;;;;;:10;:43;;;;;;;;;106566:121;;106643:6;106650:1;106643:9;;;;;;;;;;;106630:6;106637:1;106630:9;;;;;;;;;;;:22;;106622:65;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;106566:121;106717:6;106696;:18;106703:10;106696:18;;;;;;;;;;;;;;;;;;;;;;;;;;;:27;;;;;;;:::i;:::-;;106735:35;106751:6;106759:10;106735:35;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;106735:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;106397:379:::0;;:::o;107714:316::-;107775:15;107792;107819:17;107848:5;107819:35;;107861:17;107890:11;107861:41;;107919:44;107943:8;:16;;;107960:1;107943:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107943:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107943:19:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;107943:19:0;;;;;;;;;;;;;;;;107919:8;:16;;;107936:1;107919:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107919:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107919:19:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;107919:19:0;;;;;;;;;;;;;;;;:23;;:44;;;;:::i;:::-;107909:54;;107980:44;108004:8;:16;;;108021:1;108004:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;108004:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108004:19:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;108004:19:0;;;;;;;;;;;;;;;;107980:8;:16;;;107997:1;107980:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107980:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107980:19:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;107980:19:0;;;;;;;;;;;;;;;;:23;;:44;;;;:::i;:::-;107970:54;;107714:316;;;;:::o;100713:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;100636:30::-;;;:::o;108036:558::-;108142:13;:20;108156:5;108142:20;;;;;;;;;;;;;;;;;;;;;;;;;108138:188;;;108174:16;108192:17;108224:5;108213:35;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;108213:35:0;;;;;;;;;;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;71:11;66:3;62:21;55:28;;123:4;118:3;114:14;159:9;141:16;138:31;135:2;;;182:1;179;172:12;135:2;219:3;213:10;330:9;325:1;311:12;307:20;289:16;285:43;282:58;261:11;247:12;244:29;233:115;230:2;;;361:1;358;351:12;230:2;384:12;379:3;372:25;420:4;415:3;411:14;404:21;;0:432;;108213:35:0;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;108213:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108173:75;;;;108257:46;108272:5;108279:8;108289:7;108298:4;108257:14;:46::i;:::-;108312:7;;;;108138:188;108343:11;108334:26;;;108361:7;108334:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;108334:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108334:39:0;;;;108381:14;108397;108415:15;:13;:15::i;:::-;108380:50;;;;108437:17;108457:31;108481:6;108457:19;108469:6;108457:7;:11;;:19;;;;:::i;:::-;:23;;:31;;;;:::i;:::-;108437:51;;108504:5;108495:20;;;108516:5;108523:9;108495:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;108495:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108495:38:0;;;;108562:5;108547:41;;;108569:7;108578:9;108547:41;;;;;;;;;;;;;;;;;;;;;;;;108036:558;;;;;;;:::o;108600:174::-;108706:62;108723:5;108741;108730:28;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;108730:28:0;;;;;;;;;;;;;;;;108760:7;108706:16;:62::i;:::-;108600:174;;;:::o;103886:409::-;103941:12;103956:42;;;;;;;;;;;;;;;;;;103981:16;;103956:17;:42::i;:::-;103941:57;;104024:4;104016:21;;;104009:4;:28;104005:285;;;104051:49;104063:4;104051:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104005:285;;;104139:78;104154:22;;104139:78;;;;;;;;;;;;;;;;;104185:13;104139:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104200:16;;104139:14;:78::i;:::-;104121:15;:96;;;;104231:51;104243:4;104231:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104005:285;103886:409;:::o;77861:132::-;77921:24;51960:1;51936:26;;51944:3;;;;;;;;;;;51936:26;;;51935:64;;;;51997:1;51968:25;51988:3;;;;;;;;;;;51968:11;:25::i;:::-;:30;51935:64;51931:132;;;52016:35;51582:1;52016:19;:35::i;:::-;;51931:132;52098:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52098:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52098:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52098:16:0;;;;;;;;;;;;;;;;52077:37;;52085:8;;;;;;;;;;;52077:37;;;52073:108;;52152:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52152:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52152:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52152:16:0;;;;;;;;;;;;;;;;52131:8;;:38;;;;;;;;;;;;;;;;;;52073:108;77965:8:::1;;;;;;;;;;;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;77965:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;77965:20:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;77965:20:0;;;;;;;;;;;;;;;;77958:27;;77861:132:::0;:::o;78160:136::-;51960:1;51936:26;;51944:3;;;;;;;;;;;51936:26;;;51935:64;;;;51997:1;51968:25;51988:3;;;;;;;;;;;51968:11;:25::i;:::-;:30;51935:64;51931:132;;;52016:35;51582:1;52016:19;:35::i;:::-;;51931:132;52098:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52098:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52098:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52098:16:0;;;;;;;;;;;;;;;;52077:37;;52085:8;;;;;;;;;;;52077:37;;;52073:108;;52152:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52152:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52152:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52152:16:0;;;;;;;;;;;;;;;;52131:8;;:38;;;;;;;;;;;;;;;;;;52073:108;78251:8:::1;;;;;;;;;;;:26;;;78278:9;78251:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;78251:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;78251:37:0;;;;78160:136:::0;:::o;77733:118::-;51960:1;51936:26;;51944:3;;;;;;;;;;;51936:26;;;51935:64;;;;51997:1;51968:25;51988:3;;;;;;;;;;;51968:11;:25::i;:::-;:30;51935:64;51931:132;;;52016:35;51582:1;52016:19;:35::i;:::-;;51931:132;52098:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52098:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52098:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52098:16:0;;;;;;;;;;;;;;;;52077:37;;52085:8;;;;;;;;;;;52077:37;;;52073:108;;52152:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52152:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52152:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52152:16:0;;;;;;;;;;;;;;;;52131:8;;:38;;;;;;;;;;;;;;;;;;52073:108;77813:8:::1;;;;;;;;;;;:21;;;77835:7;77813:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;77813:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;77813:30:0;;;;77733:118:::0;:::o;14884:471::-;14942:7;15192:1;15187;:6;15183:47;;;15217:1;15210:8;;;;15183:47;15242:9;15258:1;15254;:5;15242:17;;15287:1;15282;15278;:5;;;;;;:10;15270:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15346:1;15339:8;;;14884:471;;;;;:::o;108780:921::-;108946:1;108908:20;:31;108929:9;108908:31;;;;;;;;;;;;;;;108940:1;108908:34;;;;;;;;;:39;108900:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108980:14;108996;109014:15;:13;:15::i;:::-;108979:50;;;;109038:18;109059:102;109120:6;:37;109127:29;109120:37;;;;;;;;;;;;;;;;;;;;;;;;;;;109158:1;109120:40;;;;;;;;;109059:56;109074:6;:37;109081:29;109074:37;;;;;;;;;;;;;;;;;;;;;;;;;;;109112:1;109074:40;;;;;;;;;109059:10;:14;;:56;;;;:::i;:::-;:60;;:102;;;;:::i;:::-;109038:123;;109170:17;109190:136;109273:52;109284:6;:37;109291:29;109284:37;;;;;;;;;;;;;;;;;;;;;;;;;;;109322:1;109284:40;;;;;;;;;109273:6;:10;;:52;;;;:::i;:::-;109190:68;109217:6;:37;109224:29;109217:37;;;;;;;;;;;;;;;;;;;;;;;;;;;109255:1;109217:40;;;;;;;;;109190:22;109205:6;109190:10;:14;;:22;;;;:::i;:::-;:26;;:68;;;;:::i;:::-;:82;;:136;;;;:::i;:::-;109170:156;;109372:26;109387:10;109372;:14;;:26;;;;:::i;:::-;109335:20;:31;109356:9;109335:31;;;;;;;;;;;;;;;109367:1;109335:34;;;;;;;;:63;;;;109442:9;109405:20;:31;109426:9;109405:31;;;;;;;;;;;;;;;109437:1;109405:34;;;;;;;;:46;;;;109469:11;109460:26;;;109487:10;109460:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109460:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109460:42:0;;;;109518:5;109509:20;;;109530:4;109536:9;109509:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109509:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109509:37:0;;;;109562:5;109553:20;;;109574:4;109580:9;109591:5;109553:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;109553:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109553:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109553:44:0;;;;109638:9;109611:84;;109632:4;109611:84;;;109649:20;:31;109670:9;109649:31;;;;;;;;;;;;;;;109681:1;109649:34;;;;;;;;;109685:9;109611:84;;;;;;;;;;;;;;;;;;;;;;;;108780:921;;;;;;;;:::o;15823:132::-;15881:7;15908:39;15912:1;15915;15908:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;15901:46;;15823:132;;;;:::o;109707:546::-;109859:1;109822:20;:31;109843:9;109822:31;;;;;;;;;;;;;;;109854:1;109822:34;;;;;;;;;:38;109814:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109934:10;109896:20;:31;109917:9;109896:31;;;;;;;;;;;;;;;109928:1;109896:34;;;;;;;;;:48;109888:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109987:5;109978:20;;;109999:10;109978:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109978:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109978:36:0;;;;110030:11;110021:26;;;110048:9;110059:20;:31;110080:9;110059:31;;;;;;;;;;;;;;;110091:1;110059:34;;;;;;;;;110021:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;110021:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110021:77:0;;;;110144:9;110110:92;;110133:9;110110:92;;;110155:20;:31;110176:9;110155:31;;;;;;;;;;;;;;;110187:1;110155:34;;;;;;;;;110191:10;110110:92;;;;;;;;;;;;;;;;;;;;;;;;110216:20;:31;110237:9;110216:31;;;;;;;;;;;;;;;;110209:38;;;;:::i;:::-;109707:546;;;:::o;55994:185::-;56094:16;51960:1;51936:26;;51944:3;;;;;;;;;;;51936:26;;;51935:64;;;;51997:1;51968:25;51988:3;;;;;;;;;;;51968:11;:25::i;:::-;:30;51935:64;51931:132;;;52016:35;51582:1;52016:19;:35::i;:::-;;51931:132;52098:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52098:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52098:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52098:16:0;;;;;;;;;;;;;;;;52077:37;;52085:8;;;;;;;;;;;52077:37;;;52073:108;;52152:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52152:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52152:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52152:16:0;;;;;;;;;;;;;;;;52131:8;;:38;;;;;;;;;;;;;;;;;;52073:108;56130:8:::1;;;;;;;;;;;:17;;;56148:11;56161:9;56130:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;56130:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;56130:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;56130:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;56130:41:0;;;;;;;;;;;;;;;;56123:48;;55994:185:::0;;;;:::o;56949:439::-;57083:11;51960:1;51936:26;;51944:3;;;;;;;;;;;51936:26;;;51935:64;;;;51997:1;51968:25;51988:3;;;;;;;;;;;51968:11;:25::i;:::-;:30;51935:64;51931:132;;;52016:35;51582:1;52016:19;:35::i;:::-;;51931:132;52098:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52098:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52098:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52098:16:0;;;;;;;;;;;;;;;;52077:37;;52085:8;;;;;;;;;;;52077:37;;;52073:108;;52152:3;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52152:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52152:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;52152:16:0;;;;;;;;;;;;;;;;52131:8;;:38;;;;;;;;;;;;;;;;;;52073:108;57107:10:::1;57120:8;;;;;;;;;;;:17;;;57138:11;57150:9;57120:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;57120:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;57120:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;57120:40:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;57120:40:0;;;;;;;;;;;;;;;;57107:53;;57207:9;57193:11;:23;57183:7;:33;57175:5;:41;57171:109;;;57240:1;57233:8:::0;::::1;;;;;;57171:109;57297:8;;;;;;;;;;;:27;;;57332:5;57339:10;57351:11;57364:4;57370:9;57297:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;57297:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;57297:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;57297:83:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;57297:83:0;;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;57297:83:0;;;;;;;;;;;;;;;;57290:90;;;52191:1;56949:439:::0;;;;;;:::o;78001:151::-;78060:10;78128:5;78116:18;78107:27;;78092:53;;;:::o;52685:208::-;52750:16;52864:21;:19;:21::i;:::-;52857:28;;52685:208;;;:::o;13968:136::-;14026:7;14053:43;14057:1;14060;14053:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;14046:50;;13968:136;;;;:::o;16485:345::-;16571:7;16670:1;16666;:5;16673:12;16658:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;16658:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16697:9;16713:1;16709;:5;;;;;;16697:17;;16821:1;16814:8;;;16485:345;;;;;:::o;53177:2070::-;53226:16;53317:1;53259:55;53271:42;53259:11;:55::i;:::-;:59;53255:250;;;53371:42;53345:3;;:69;;;;;;;;;;;;;;;;;;53429:38;;;;;;;;;;;;;;;;;;:23;:38::i;:::-;53489:4;53482:11;;;;53255:250;53577:1;53519:55;53531:42;53519:11;:55::i;:::-;:59;53515:259;;;53639:42;53613:3;;:69;;;;;;;;;;;;;;;;;;53697:39;;;;;;;;;;;;;;;;;;:23;:39::i;:::-;53758:4;53751:11;;;;53515:259;53846:1;53788:55;53800:42;53788:11;:55::i;:::-;:59;53784:254;;;53906:42;53880:3;;:69;;;;;;;;;;;;;;;;;;53964:36;;;;;;;;;;;;;;;;;;:23;:36::i;:::-;54022:4;54015:11;;;;53784:254;54110:1;54052:55;54064:42;54052:11;:55::i;:::-;:59;54048:258;;;54172:42;54146:3;;:69;;;;;;;;;;;;;;;;;;54230:38;;;;;;;;;;;;;;;;;;:23;:38::i;:::-;54290:4;54283:11;;;;54048:258;54378:1;54320:55;54332:42;54320:11;:55::i;:::-;:59;54316:256;;;54439:42;54413:3;;:69;;;;;;;;;;;;;;;;;;54497:37;;;;;;;;;;;;;;;;;;:23;:37::i;:::-;54556:4;54549:11;;;;54316:256;54644:1;54586:55;54598:42;54586:11;:55::i;:::-;:59;54582:205;;;54706:42;54680:3;;:69;;;;;;;;;;;;;;;;;;54771:4;54764:11;;;;54582:205;54859:1;54801:55;54813:42;54801:11;:55::i;:::-;:59;54797:204;;;54920:42;54894:3;;:69;;;;;;;;;;;;;;;;;;54985:4;54978:11;;;;54797:204;55073:1;55015:55;55027:42;55015:11;:55::i;:::-;:59;55011:206;;;55136:42;55110:3;;:69;;;;;;;;;;;;;;;;;;55201:4;55194:11;;;;55011:206;55234:5;55227:12;;53177:2070;;:::o;14441:192::-;14527:7;14560:1;14555;:6;;14563:12;14547:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;14547:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14587:9;14603:1;14599;:5;14587:17;;14624:1;14617:8;;;14441:192;;;;;:::o;52901:127::-;53007:13;52983:21;:37;;;;;;;;;;;;:::i;:::-;;52901:127;:::o;104376:5880::-;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;156:4;148:6;144:17;134:27;;0:165;104376:5880:0;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5:97:-1:-;;93:2;89:7;84:2;77:5;73:14;69:28;59:38;;53:49;;;;110:106;;200:5;195:3;191:15;169:37;;163:53;;;;224:739;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;336;333;318:23;357:34;388:1;382:8;357:34;;;414:10;409:3;406:19;396:2;;429:5;;;396:2;460;454:9;514:1;496:16;492:24;489:1;483:4;468:49;543:4;537:11;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;553:2;693:6;687:4;683:17;725:3;719:10;748:18;740:6;737:30;734:2;;;770:5;;;;;;;734:2;814:6;807:4;802:3;798:14;794:27;847:16;841:4;837:27;832:3;829:36;826:2;;;868:5;;;;;;;;826:2;912:29;934:6;912:29;;;905:4;900:3;896:14;892:50;888:2;881:62;955:3;948:10;;267:696;;;;;;;;
Swarm Source
ipfs://09b63d29cc86a36336e48de4ae44b15ef2c9e9e94778751eb1f26f4c4d9602b3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,286.58 | 0.5 | $1,643.29 |
Loading...
Loading
[ 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.