Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 228 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute Meta Tx | 10944050 | 1610 days ago | IN | 0 ETH | 0.03005839 | ||||
Execute Meta Tx | 10944050 | 1610 days ago | IN | 0 ETH | 0.00847777 | ||||
Execute Meta Tx | 10857221 | 1623 days ago | IN | 0 ETH | 0.03916352 | ||||
Execute Meta Tx | 10857221 | 1623 days ago | IN | 0 ETH | 0.01250116 | ||||
Execute Meta Tx | 10784899 | 1634 days ago | IN | 0 ETH | 0.1495485 | ||||
Execute Meta Tx | 10784899 | 1634 days ago | IN | 0 ETH | 0.04772973 | ||||
Execute Meta Tx | 10784874 | 1634 days ago | IN | 0 ETH | 0.09889524 | ||||
Execute Meta Tx | 10780997 | 1635 days ago | IN | 0 ETH | 0.03129291 | ||||
Execute Meta Tx | 10770291 | 1637 days ago | IN | 0 ETH | 0.16908664 | ||||
Execute Meta Tx | 10770291 | 1637 days ago | IN | 0 ETH | 0.04768837 | ||||
Execute Meta Tx | 10767757 | 1637 days ago | IN | 0 ETH | 0.08217563 | ||||
Execute Meta Tx | 10767757 | 1637 days ago | IN | 0 ETH | 0.0259336 | ||||
Execute Meta Tx | 10766735 | 1637 days ago | IN | 0 ETH | 0.09985444 | ||||
Execute Meta Tx | 10766735 | 1637 days ago | IN | 0 ETH | 0.0315091 | ||||
Execute Meta Tx | 10763202 | 1638 days ago | IN | 0 ETH | 0.10777838 | ||||
Execute Meta Tx | 10763202 | 1638 days ago | IN | 0 ETH | 0.03039728 | ||||
Execute Meta Tx | 10761137 | 1638 days ago | IN | 0 ETH | 0.06524621 | ||||
Execute Meta Tx | 10761137 | 1638 days ago | IN | 0 ETH | 0.01840309 | ||||
Execute Meta Tx | 10759320 | 1638 days ago | IN | 0 ETH | 0.05730099 | ||||
Execute Meta Tx | 10759320 | 1638 days ago | IN | 0 ETH | 0.01616138 | ||||
Execute Meta Tx | 10758094 | 1639 days ago | IN | 0 ETH | 0.03787824 | ||||
Execute Meta Tx | 10758094 | 1639 days ago | IN | 0 ETH | 0.01209077 | ||||
Execute Meta Tx | 10756814 | 1639 days ago | IN | 0 ETH | 0.04755192 | ||||
Execute Meta Tx | 10756814 | 1639 days ago | IN | 0 ETH | 0.01738794 | ||||
Execute Meta Tx | 10756019 | 1639 days ago | IN | 0 ETH | 0.03029684 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GuardianModule
Compiler Version
v0.6.6+commit.6c089d02
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-06-24 */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; /* solium-disable */ library strings { struct slice { uint _len; uint _ptr; } function memcpy(uint dest, uint src, uint len) private pure { // Copy word-length chunks while possible for(; len >= 32; len -= 32) { assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } // Copy remaining bytes uint mask = 256 ** (32 - len) - 1; assembly { let srcpart := and(mload(src), not(mask)) let destpart := and(mload(dest), mask) mstore(dest, or(destpart, srcpart)) } } /* * @dev Returns a slice containing the entire string. * @param self The string to make a slice from. * @return A newly allocated slice containing the entire string. */ function toSlice(string memory self) internal pure returns (slice memory) { uint ptr; assembly { ptr := add(self, 0x20) } return slice(bytes(self).length, ptr); } /* * @dev Returns the length of a null-terminated bytes32 string. * @param self The value to find the length of. * @return The length of the string, from 0 to 32. */ function len(bytes32 self) internal pure returns (uint) { uint ret; if (self == 0) return 0; if (uint256(self) & 0xffffffffffffffffffffffffffffffff == 0) { ret += 16; self = bytes32(uint(self) / 0x100000000000000000000000000000000); } if (uint256(self) & 0xffffffffffffffff == 0) { ret += 8; self = bytes32(uint(self) / 0x10000000000000000); } if (uint256(self) & 0xffffffff == 0) { ret += 4; self = bytes32(uint(self) / 0x100000000); } if (uint256(self) & 0xffff == 0) { ret += 2; self = bytes32(uint(self) / 0x10000); } if (uint256(self) & 0xff == 0) { ret += 1; } return 32 - ret; } /* * @dev Returns a slice containing the entire bytes32, interpreted as a * null-terminated utf-8 string. * @param self The bytes32 value to convert to a slice. * @return A new slice containing the value of the input argument up to the * first null. */ function toSliceB32(bytes32 self) internal pure returns (slice memory ret) { // Allocate space for `self` in memory, copy it there, and point ret at it assembly { let ptr := mload(0x40) mstore(0x40, add(ptr, 0x20)) mstore(ptr, self) mstore(add(ret, 0x20), ptr) } ret._len = len(self); } /* * @dev Returns a new slice containing the same data as the current slice. * @param self The slice to copy. * @return A new slice containing the same data as `self`. */ function copy(slice memory self) internal pure returns (slice memory) { return slice(self._len, self._ptr); } /* * @dev Copies a slice to a new string. * @param self The slice to copy. * @return A newly allocated string containing the slice's text. */ function toString(slice memory self) internal pure returns (string memory) { string memory ret = new string(self._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); return ret; } /* * @dev Returns the length in runes of the slice. Note that this operation * takes time proportional to the length of the slice; avoid using it * in loops, and call `slice.empty()` if you only need to know whether * the slice is empty or not. * @param self The slice to operate on. * @return The length of the slice in runes. */ function len(slice memory self) internal pure returns (uint l) { // Starting at ptr-31 means the LSB will be the byte we care about uint ptr = self._ptr - 31; uint end = ptr + self._len; for (l = 0; ptr < end; l++) { uint8 b; assembly { b := and(mload(ptr), 0xFF) } if (b < 0x80) { ptr += 1; } else if(b < 0xE0) { ptr += 2; } else if(b < 0xF0) { ptr += 3; } else if(b < 0xF8) { ptr += 4; } else if(b < 0xFC) { ptr += 5; } else { ptr += 6; } } } /* * @dev Returns true if the slice is empty (has a length of 0). * @param self The slice to operate on. * @return True if the slice is empty, False otherwise. */ function empty(slice memory self) internal pure returns (bool) { return self._len == 0; } /* * @dev Returns a positive number if `other` comes lexicographically after * `self`, a negative number if it comes before, or zero if the * contents of the two slices are equal. Comparison is done per-rune, * on unicode codepoints. * @param self The first slice to compare. * @param other The second slice to compare. * @return The result of the comparison. */ function compare(slice memory self, slice memory other) internal pure returns (int) { uint shortest = self._len; if (other._len < self._len) shortest = other._len; uint selfptr = self._ptr; uint otherptr = other._ptr; for (uint idx = 0; idx < shortest; idx += 32) { uint a; uint b; assembly { a := mload(selfptr) b := mload(otherptr) } if (a != b) { // Mask out irrelevant bytes and check again uint256 mask = uint256(-1); // 0xffff... if(shortest < 32) { mask = ~(2 ** (8 * (32 - shortest + idx)) - 1); } uint256 diff = (a & mask) - (b & mask); if (diff != 0) return int(diff); } selfptr += 32; otherptr += 32; } return int(self._len) - int(other._len); } /* * @dev Returns true if the two slices contain the same text. * @param self The first slice to compare. * @param self The second slice to compare. * @return True if the slices are equal, false otherwise. */ function equals(slice memory self, slice memory other) internal pure returns (bool) { return compare(self, other) == 0; } /* * @dev Extracts the first rune in the slice into `rune`, advancing the * slice to point to the next rune and returning `self`. * @param self The slice to operate on. * @param rune The slice that will contain the first rune. * @return `rune`. */ function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) { rune._ptr = self._ptr; if (self._len == 0) { rune._len = 0; return rune; } uint l; uint b; // Load the first byte of the rune into the LSBs of b assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) } if (b < 0x80) { l = 1; } else if(b < 0xE0) { l = 2; } else if(b < 0xF0) { l = 3; } else { l = 4; } // Check for truncated codepoints if (l > self._len) { rune._len = self._len; self._ptr += self._len; self._len = 0; return rune; } self._ptr += l; self._len -= l; rune._len = l; return rune; } /* * @dev Returns the first rune in the slice, advancing the slice to point * to the next rune. * @param self The slice to operate on. * @return A slice containing only the first rune from `self`. */ function nextRune(slice memory self) internal pure returns (slice memory ret) { nextRune(self, ret); } /* * @dev Returns the number of the first codepoint in the slice. * @param self The slice to operate on. * @return The number of the first codepoint in the slice. */ function ord(slice memory self) internal pure returns (uint ret) { if (self._len == 0) { return 0; } uint word; uint length; uint divisor = 2 ** 248; // Load the rune into the MSBs of b assembly { word:= mload(mload(add(self, 32))) } uint b = word / divisor; if (b < 0x80) { ret = b; length = 1; } else if(b < 0xE0) { ret = b & 0x1F; length = 2; } else if(b < 0xF0) { ret = b & 0x0F; length = 3; } else { ret = b & 0x07; length = 4; } // Check for truncated codepoints if (length > self._len) { return 0; } for (uint i = 1; i < length; i++) { divisor = divisor / 256; b = (word / divisor) & 0xFF; if (b & 0xC0 != 0x80) { // Invalid UTF-8 sequence return 0; } ret = (ret * 64) | (b & 0x3F); } return ret; } /* * @dev Returns the keccak-256 hash of the slice. * @param self The slice to hash. * @return The hash of the slice. */ function keccak(slice memory self) internal pure returns (bytes32 ret) { assembly { ret := keccak256(mload(add(self, 32)), mload(self)) } } /* * @dev Returns true if `self` starts with `needle`. * @param self The slice to operate on. * @param needle The slice to search for. * @return True if the slice starts with the provided text, false otherwise. */ function startsWith(slice memory self, slice memory needle) internal pure returns (bool) { if (self._len < needle._len) { return false; } if (self._ptr == needle._ptr) { return true; } bool equal; assembly { let length := mload(needle) let selfptr := mload(add(self, 0x20)) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } return equal; } /* * @dev If `self` starts with `needle`, `needle` is removed from the * beginning of `self`. Otherwise, `self` is unmodified. * @param self The slice to operate on. * @param needle The slice to search for. * @return `self` */ function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) { if (self._len < needle._len) { return self; } bool equal = true; if (self._ptr != needle._ptr) { assembly { let length := mload(needle) let selfptr := mload(add(self, 0x20)) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } } if (equal) { self._len -= needle._len; self._ptr += needle._len; } return self; } /* * @dev Returns true if the slice ends with `needle`. * @param self The slice to operate on. * @param needle The slice to search for. * @return True if the slice starts with the provided text, false otherwise. */ function endsWith(slice memory self, slice memory needle) internal pure returns (bool) { if (self._len < needle._len) { return false; } uint selfptr = self._ptr + self._len - needle._len; if (selfptr == needle._ptr) { return true; } bool equal; assembly { let length := mload(needle) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } return equal; } /* * @dev If `self` ends with `needle`, `needle` is removed from the * end of `self`. Otherwise, `self` is unmodified. * @param self The slice to operate on. * @param needle The slice to search for. * @return `self` */ function until(slice memory self, slice memory needle) internal pure returns (slice memory) { if (self._len < needle._len) { return self; } uint selfptr = self._ptr + self._len - needle._len; bool equal = true; if (selfptr != needle._ptr) { assembly { let length := mload(needle) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } } if (equal) { self._len -= needle._len; } return self; } // Returns the memory address of the first byte of the first occurrence of // `needle` in `self`, or the first byte after `self` if not found. function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) { uint ptr = selfptr; uint idx; if (needlelen <= selflen) { if (needlelen <= 32) { bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1)); bytes32 needledata; assembly { needledata := and(mload(needleptr), mask) } uint end = selfptr + selflen - needlelen; bytes32 ptrdata; assembly { ptrdata := and(mload(ptr), mask) } while (ptrdata != needledata) { if (ptr >= end) return selfptr + selflen; ptr++; assembly { ptrdata := and(mload(ptr), mask) } } return ptr; } else { // For long needles, use hashing bytes32 hash; assembly { hash := keccak256(needleptr, needlelen) } for (idx = 0; idx <= selflen - needlelen; idx++) { bytes32 testHash; assembly { testHash := keccak256(ptr, needlelen) } if (hash == testHash) return ptr; ptr += 1; } } } return selfptr + selflen; } // Returns the memory address of the first byte after the last occurrence of // `needle` in `self`, or the address of `self` if not found. function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) { uint ptr; if (needlelen <= selflen) { if (needlelen <= 32) { bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1)); bytes32 needledata; assembly { needledata := and(mload(needleptr), mask) } ptr = selfptr + selflen - needlelen; bytes32 ptrdata; assembly { ptrdata := and(mload(ptr), mask) } while (ptrdata != needledata) { if (ptr <= selfptr) return selfptr; ptr--; assembly { ptrdata := and(mload(ptr), mask) } } return ptr + needlelen; } else { // For long needles, use hashing bytes32 hash; assembly { hash := keccak256(needleptr, needlelen) } ptr = selfptr + (selflen - needlelen); while (ptr >= selfptr) { bytes32 testHash; assembly { testHash := keccak256(ptr, needlelen) } if (hash == testHash) return ptr + needlelen; ptr -= 1; } } } return selfptr; } /* * @dev Modifies `self` to contain everything from the first occurrence of * `needle` to the end of the slice. `self` is set to the empty slice * if `needle` is not found. * @param self The slice to search and modify. * @param needle The text to search for. * @return `self`. */ function find(slice memory self, slice memory needle) internal pure returns (slice memory) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr); self._len -= ptr - self._ptr; self._ptr = ptr; return self; } /* * @dev Modifies `self` to contain the part of the string from the start of * `self` to the end of the first occurrence of `needle`. If `needle` * is not found, `self` is set to the empty slice. * @param self The slice to search and modify. * @param needle The text to search for. * @return `self`. */ function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) { uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr); self._len = ptr - self._ptr; return self; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and `token` to everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and `token` is set to the entirety of `self`. * @param self The slice to split. * @param needle The text to search for in `self`. * @param token An output parameter to which the first token is written. * @return `token`. */ function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr); token._ptr = self._ptr; token._len = ptr - self._ptr; if (ptr == self._ptr + self._len) { // Not found self._len = 0; } else { self._len -= token._len + needle._len; self._ptr = ptr + needle._len; } return token; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and returning everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and the entirety of `self` is returned. * @param self The slice to split. * @param needle The text to search for in `self`. * @return The part of `self` up to the first occurrence of `delim`. */ function split(slice memory self, slice memory needle) internal pure returns (slice memory token) { split(self, needle, token); } /* * @dev Splits the slice, setting `self` to everything before the last * occurrence of `needle`, and `token` to everything after it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and `token` is set to the entirety of `self`. * @param self The slice to split. * @param needle The text to search for in `self`. * @param token An output parameter to which the first token is written. * @return `token`. */ function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) { uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr); token._ptr = ptr; token._len = self._len - (ptr - self._ptr); if (ptr == self._ptr) { // Not found self._len = 0; } else { self._len -= token._len + needle._len; } return token; } /* * @dev Splits the slice, setting `self` to everything before the last * occurrence of `needle`, and returning everything after it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and the entirety of `self` is returned. * @param self The slice to split. * @param needle The text to search for in `self`. * @return The part of `self` after the last occurrence of `delim`. */ function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) { rsplit(self, needle, token); } /* * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`. * @param self The slice to search. * @param needle The text to search for in `self`. * @return The number of occurrences of `needle` found in `self`. */ function count(slice memory self, slice memory needle) internal pure returns (uint cnt) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len; while (ptr <= self._ptr + self._len) { cnt++; ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len; } } /* * @dev Returns True if `self` contains `needle`. * @param self The slice to search. * @param needle The text to search for in `self`. * @return True if `needle` is found in `self`, false otherwise. */ function contains(slice memory self, slice memory needle) internal pure returns (bool) { return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr; } /* * @dev Returns a newly allocated string containing the concatenation of * `self` and `other`. * @param self The first slice to concatenate. * @param other The second slice to concatenate. * @return The concatenation of the two strings. */ function concat(slice memory self, slice memory other) internal pure returns (string memory) { string memory ret = new string(self._len + other._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); memcpy(retptr + self._len, other._ptr, other._len); return ret; } /* * @dev Joins an array of slices, using `self` as a delimiter, returning a * newly allocated string. * @param self The delimiter to use. * @param parts A list of slices to join. * @return A newly allocated string containing all the slices in `parts`, * joined with `self`. */ function join(slice memory self, slice[] memory parts) internal pure returns (string memory) { if (parts.length == 0) return ""; uint length = self._len * (parts.length - 1); for(uint i = 0; i < parts.length; i++) length += parts[i]._len; string memory ret = new string(length); uint retptr; assembly { retptr := add(ret, 32) } for(uint i = 0; i < parts.length; i++) { memcpy(retptr, parts[i]._ptr, parts[i]._len); retptr += parts[i]._len; if (i < parts.length - 1) { memcpy(retptr, self._ptr, self._len); retptr += self._len; } } return ret; } } // Taken from Argent's code base - https://github.com/argentlabs/argent-contracts/blob/develop/contracts/ens/ENS.sol // with few modifications. /** * ENS Registry interface. */ interface ENSRegistry { // Logged when the owner of a node assigns a new owner to a subnode. event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner); // Logged when the owner of a node transfers ownership to a new account. event Transfer(bytes32 indexed node, address owner); // Logged when the resolver for a node changes. event NewResolver(bytes32 indexed node, address resolver); // Logged when the TTL of a node changes event NewTTL(bytes32 indexed node, uint64 ttl); function setSubnodeOwner(bytes32 node, bytes32 label, address owner) external; function setResolver(bytes32 node, address resolver) external; function setOwner(bytes32 node, address owner) external; function setTTL(bytes32 node, uint64 ttl) external; function owner(bytes32 node) external view returns (address); function resolver(bytes32 node) external view returns (address); function ttl(bytes32 node) external view returns (uint64); } /** * ENS Resolver interface. */ abstract contract ENSResolver { function addr(bytes32 _node) public view virtual returns (address); function setAddr(bytes32 _node, address _addr) public virtual; function name(bytes32 _node) public view virtual returns (string memory); function setName(bytes32 _node, string memory _name) public virtual; } /** * ENS Reverse Registrar interface. */ abstract contract ENSReverseRegistrar { function claim(address _owner) public virtual returns (bytes32 _node); function claimWithResolver(address _owner, address _resolver) public virtual returns (bytes32); function setName(string memory _name) public virtual returns (bytes32); function node(address _addr) public view virtual returns (bytes32); } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Wallet /// @dev Base contract for smart wallets. /// Sub-contracts must NOT use non-default constructor to initialize /// wallet states, instead, `init` shall be used. This is to enable /// proxies to be deployed in front of the real wallet contract for /// saving gas. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts interface Wallet { function owner() external view returns (address); /// @dev Set a new owner. function setOwner(address newOwner) external; /// @dev Set up this wallet by assigning an original owner and a /// list of initial modules. For each module, its `init` method /// will be called with `address(this)` as the parameter. /// /// Note that calling this method more than once will throw. /// /// @param _controller The Controller instance. /// @param _owner The owner of this wallet, must not be address(0). /// @param _boostrapModule The bootstrap module. function setup(address _controller, address _owner, address _boostrapModule) external; /// @dev Adds a new module. The `init` method of the module /// will be called with `address(this)` as the parameter. /// This method must throw if the module has already been added. /// @param _module The module's address. function addModule(address _module) external; /// @dev Removes an existing module. This method must throw if the module /// has NOT been added or the module is the wallet's only module. /// @param _module The module's address. function removeModule(address _module) external; /// @dev Checks if a module has been added to this wallet. /// @param _module The module to check. /// @return True if the module exists; False otherwise. function hasModule(address _module) external view returns (bool); /// @dev Binds a method from the given module to this /// wallet so the method can be invoked using this wallet's default /// function. /// Note that this method must throw when the given module has /// not been added to this wallet. /// @param _method The method's 4-byte selector. /// @param _module The module's address. Use address(0) to unbind the method. function bindMethod(bytes4 _method, address _module) external; /// @dev Returns the module the given method has been bound to. /// @param _method The method's 4-byte selector. /// @return _module The address of the bound module. If no binding exists, /// returns address(0) instead. function boundMethodModule(bytes4 _method) external view returns (address _module); /// @dev Performs generic transactions. Any module that has been added to this /// wallet can use this method to transact on any third-party contract with /// msg.sender as this wallet itself. /// /// This method will emit `Transacted` event if it doesn't throw. /// /// Note: this method must ONLY allow invocations from a module that has /// been added to this wallet. The wallet owner shall NOT be permitted /// to call this method directly. /// /// @param mode The transaction mode, 1 for CALL, 2 for DELEGATECALL. /// @param to The desitination address. /// @param value The amount of Ether to transfer. /// @param data The data to send over using `to.call{value: value}(data)` /// @return returnData The transaction's return value. function transact( uint8 mode, address to, uint value, bytes calldata data ) external returns (bytes memory returnData); } // Taken from Argent's code base - https://github.com/argentlabs/argent-contracts/blob/develop/contracts/ens/ENSConsumer.sol // with few modifications. /** * @title ENSConsumer * @dev Helper contract to resolve ENS names. * @author Julien Niset - <[email protected]> */ contract ENSConsumer { using strings for *; // namehash('addr.reverse') bytes32 constant public ADDR_REVERSE_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2; // the address of the ENS registry address ensRegistry; /** * @dev No address should be provided when deploying on Mainnet to avoid storage cost. The * contract will use the hardcoded value. */ constructor(address _ensRegistry) public { ensRegistry = _ensRegistry; } /** * @dev Resolves an ENS name to an address. * @param _node The namehash of the ENS name. */ function resolveEns(bytes32 _node) public view returns (address) { address resolver = getENSRegistry().resolver(_node); return ENSResolver(resolver).addr(_node); } /** * @dev Gets the official ENS registry. */ function getENSRegistry() public view returns (ENSRegistry) { return ENSRegistry(ensRegistry); } /** * @dev Gets the official ENS reverse registrar. */ function getENSReverseRegistrar() public view returns (ENSReverseRegistrar) { return ENSReverseRegistrar(getENSRegistry().owner(ADDR_REVERSE_NODE)); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title AddressSet /// @author Daniel Wang - <[email protected]> contract AddressSet { struct Set { address[] addresses; mapping (address => uint) positions; uint count; } mapping (bytes32 => Set) private sets; function addAddressToSet( bytes32 key, address addr, bool maintainList ) internal { Set storage set = sets[key]; require(set.positions[addr] == 0, "ALREADY_IN_SET"); if (maintainList) { require(set.addresses.length == set.count, "PREVIOUSLY_NOT_MAINTAILED"); set.addresses.push(addr); } else { require(set.addresses.length == 0, "MUST_MAINTAIN"); } set.count += 1; set.positions[addr] = set.count; } function removeAddressFromSet( bytes32 key, address addr ) internal { Set storage set = sets[key]; uint pos = set.positions[addr]; require(pos != 0, "NOT_IN_SET"); delete set.positions[addr]; set.count -= 1; if (set.addresses.length > 0) { address lastAddr = set.addresses[set.count]; if (lastAddr != addr) { set.addresses[pos - 1] = lastAddr; set.positions[lastAddr] = pos; } set.addresses.pop(); } } function removeSet(bytes32 key) internal { delete sets[key]; } function isAddressInSet( bytes32 key, address addr ) internal view returns (bool) { return sets[key].positions[addr] != 0; } function numAddressesInSet(bytes32 key) internal view returns (uint) { Set storage set = sets[key]; return set.count; } function addressesInSet(bytes32 key) internal view returns (address[] memory) { Set storage set = sets[key]; require(set.count == set.addresses.length, "NOT_MAINTAINED"); return sets[key].addresses; } }/* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title ERC20 Token Interface /// @dev see https://github.com/ethereum/EIPs/issues/20 /// @author Daniel Wang - <[email protected]> abstract contract ERC20 { function totalSupply() public view virtual returns (uint); function balanceOf( address who ) public view virtual returns (uint); function allowance( address owner, address spender ) public view virtual returns (uint); function transfer( address to, uint value ) public virtual returns (bool); function transferFrom( address from, address to, uint value ) public virtual returns (bool); function approve( address spender, uint value ) public virtual returns (bool); } // Copied from https://eips.ethereum.org/EIPS/eip-1271. abstract contract ERC1271 { // bytes4(keccak256("isValidSignature(bytes,bytes)") bytes4 constant internal MAGICVALUE = 0x20c13b0b; /** * @dev Should return whether the signature provided is valid for the provided data * @param _data Arbitrary length data signed on the behalf of address(this) * @param _signature Signature byte array associated with _data * * MUST return the bytes4 magic value 0x20c13b0b when function passes. * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5) * MUST allow external calls */ function isValidSignature( bytes memory _data, bytes memory _signature) public view virtual returns (bytes4 magicValue); }//Mainly taken from https://github.com/GNSPS/solidity-bytes-utils/blob/master/contracts/BytesLib.sol library BytesUtil { function concat( bytes memory _preBytes, bytes memory _postBytes ) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore(0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. )) } return tempBytes; } function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes_slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes_slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes_slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes_slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore( sc, add( and( fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00 ), and(mload(mc), mask) ) ) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes_slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes_slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice( bytes memory _bytes, uint _start, uint _length ) internal pure returns (bytes memory) { require(_bytes.length >= (_start + _length)); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod))) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress(bytes memory _bytes, uint _start) internal pure returns (address) { require(_bytes.length >= (_start + 20)); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint8(bytes memory _bytes, uint _start) internal pure returns (uint8) { require(_bytes.length >= (_start + 1)); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16(bytes memory _bytes, uint _start) internal pure returns (uint16) { require(_bytes.length >= (_start + 2)); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint32(bytes memory _bytes, uint _start) internal pure returns (uint32) { require(_bytes.length >= (_start + 4)); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64(bytes memory _bytes, uint _start) internal pure returns (uint64) { require(_bytes.length >= (_start + 8)); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96(bytes memory _bytes, uint _start) internal pure returns (uint96) { require(_bytes.length >= (_start + 12)); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128(bytes memory _bytes, uint _start) internal pure returns (uint128) { require(_bytes.length >= (_start + 16)); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint(bytes memory _bytes, uint _start) internal pure returns (uint256) { require(_bytes.length >= (_start + 32)); uint256 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes4(bytes memory _bytes, uint _start) internal pure returns (bytes4) { require(_bytes.length >= (_start + 4)); bytes4 tempBytes4; assembly { tempBytes4 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes4; } function toBytes32(bytes memory _bytes, uint _start) internal pure returns (bytes32) { require(_bytes.length >= (_start + 32)); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage( bytes storage _preBytes, bytes memory _postBytes ) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes_slot) // Decode the length of the stored array like in concatStorage(). let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes_slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint(mc < end) + cb == 2) for {} eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Utility Functions for uint /// @author Daniel Wang - <[email protected]> library MathUint { function mul( uint a, uint b ) internal pure returns (uint c) { c = a * b; require(a == 0 || c / a == b, "MUL_OVERFLOW"); } function sub( uint a, uint b ) internal pure returns (uint) { require(b <= a, "SUB_UNDERFLOW"); return a - b; } function add( uint a, uint b ) internal pure returns (uint c) { c = a + b; require(c >= a, "ADD_OVERFLOW"); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Utility Functions for addresses /// @author Daniel Wang - <[email protected]> /// @author Brecht Devos - <[email protected]> library AddressUtil { using AddressUtil for *; function isContract( address addr ) internal view returns (bool) { uint32 size; assembly { size := extcodesize(addr) } return (size > 0); } function toPayable( address addr ) internal pure returns (address payable) { return address(uint160(addr)); } // Works like address.send but with a customizable gas limit // Make sure your code is safe for reentrancy when using this function! function sendETH( address to, uint amount, uint gasLimit ) internal returns (bool success) { if (amount == 0) { return true; } address payable recipient = to.toPayable(); /* solium-disable-next-line */ (success, ) = recipient.call{value: amount, gas: gasLimit}(""); } // Works like address.transfer but with a customizable gas limit // Make sure your code is safe for reentrancy when using this function! function sendETHAndVerify( address to, uint amount, uint gasLimit ) internal returns (bool success) { success = to.sendETH(amount, gasLimit); require(success, "TRANSFER_FAILURE"); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title DataStore /// @dev Modules share states by accessing the same storage instance. /// Using ModuleStorage will achieve better module decoupling. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts contract DataStore { modifier onlyWalletModule(address wallet) { require(Wallet(wallet).hasModule(msg.sender), "UNAUTHORIZED"); _; } }/* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ library Data { struct Guardian { address addr; uint group; uint validSince; uint validUntil; } } /// @title SecurityStore /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts contract SecurityStore is DataStore { struct Wallet { address inheritor; uint128 lastActive; // the latest timestamp the owner is considered to be active uint128 lock; address lockedBy; // the module that locked the wallet. Data.Guardian[] guardians; mapping (address => uint) guardianIdx; } mapping (address => Wallet) public wallets; constructor() public DataStore() {} function isGuardian( address wallet, address addr ) public view returns (bool) { Data.Guardian memory guardian = getGuardian(wallet, addr); return guardian.addr != address(0) && isGuardianActive(guardian); } function isGuardianOrPendingAddition( address wallet, address addr ) public view returns (bool) { Data.Guardian memory guardian = getGuardian(wallet, addr); return guardian.addr != address(0) && (isGuardianActive(guardian) || isGuardianPendingAddition(guardian)); } function getGuardian( address wallet, address guardianAddr ) public view returns (Data.Guardian memory) { uint index = wallets[wallet].guardianIdx[guardianAddr]; if (index > 0) { return wallets[wallet].guardians[index-1]; } } // @dev Returns active guardians. function guardians(address wallet) public view returns (Data.Guardian[] memory _guardians) { Wallet storage w = wallets[wallet]; _guardians = new Data.Guardian[](w.guardians.length); uint index = 0; for (uint i = 0; i < w.guardians.length; i++) { Data.Guardian memory g = w.guardians[i]; if (isGuardianActive(g)) { _guardians[index] = g; index ++; } } assembly { mstore(_guardians, index) } } // @dev Returns the number of active guardians. function numGuardians(address wallet) public view returns (uint count) { Wallet storage w = wallets[wallet]; for (uint i = 0; i < w.guardians.length; i++) { if (isGuardianActive(w.guardians[i])) { count ++; } } } // @dev Returns guardians who are either active or pending addition. function guardiansWithPending(address wallet) public view returns (Data.Guardian[] memory _guardians) { Wallet storage w = wallets[wallet]; _guardians = new Data.Guardian[](w.guardians.length); uint index = 0; for (uint i = 0; i < w.guardians.length; i++) { Data.Guardian memory g = w.guardians[i]; if (isGuardianActive(g) || isGuardianPendingAddition(g)) { _guardians[index] = g; index ++; } } assembly { mstore(_guardians, index) } } // @dev Returns the number of guardians who are active or pending addition. function numGuardiansWithPending(address wallet) public view returns (uint count) { Wallet storage w = wallets[wallet]; for (uint i = 0; i < w.guardians.length; i++) { Data.Guardian memory g = w.guardians[i]; if (isGuardianActive(g) || isGuardianPendingAddition(g)) { count ++; } } } function addGuardian( address wallet, address guardianAddr, uint group, uint validSince ) public onlyWalletModule(wallet) { cleanRemovedGuardians(wallet); require(guardianAddr != address(0), "ZERO_ADDRESS"); Wallet storage w = wallets[wallet]; uint pos = w.guardianIdx[guardianAddr]; require(pos == 0, "GUARDIAN_EXISTS"); // Add the new guardian Data.Guardian memory g = Data.Guardian(guardianAddr, group, validSince, 0); w.guardians.push(g); w.guardianIdx[guardianAddr] = w.guardians.length; } function cancelGuardianAddition( address wallet, address guardianAddr ) public onlyWalletModule(wallet) { cleanRemovedGuardians(wallet); Wallet storage w = wallets[wallet]; uint idx = w.guardianIdx[guardianAddr]; require(idx > 0, "GUARDIAN_NOT_EXISTS"); require( isGuardianPendingAddition(w.guardians[idx - 1]), "NOT_PENDING_ADDITION" ); Data.Guardian memory lastGuardian = w.guardians[w.guardians.length - 1]; if (guardianAddr != lastGuardian.addr) { w.guardians[idx - 1] = lastGuardian; w.guardianIdx[lastGuardian.addr] = idx; } w.guardians.pop(); delete w.guardianIdx[guardianAddr]; } function removeGuardian( address wallet, address guardianAddr, uint validUntil ) public onlyWalletModule(wallet) { cleanRemovedGuardians(wallet); Wallet storage w = wallets[wallet]; uint idx = w.guardianIdx[guardianAddr]; require(idx > 0, "GUARDIAN_NOT_EXISTS"); w.guardians[idx - 1].validUntil = validUntil; } function removeAllGuardians(address wallet) public onlyWalletModule(wallet) { Wallet storage w = wallets[wallet]; for (uint i = 0; i < w.guardians.length; i++) { delete w.guardianIdx[w.guardians[i].addr]; } delete w.guardians; } function cancelGuardianRemoval( address wallet, address guardianAddr ) public onlyWalletModule(wallet) { cleanRemovedGuardians(wallet); Wallet storage w = wallets[wallet]; uint idx = w.guardianIdx[guardianAddr]; require(idx > 0, "GUARDIAN_NOT_EXISTS"); require( isGuardianPendingRemoval(w.guardians[idx - 1]), "NOT_PENDING_REMOVAL" ); w.guardians[idx - 1].validUntil = 0; } function getLock(address wallet) public view returns (uint _lock, address _module) { _lock = uint(wallets[wallet].lock); _module = wallets[wallet].lockedBy; } function setLock( address wallet, uint lock ) public onlyWalletModule(wallet) { require(lock == 0 || lock > now, "INVALID_LOCK_TIME"); uint128 _lock = uint128(lock); require(uint(_lock) == lock, "LOCK_TOO_LARGE"); wallets[wallet].lock = _lock; wallets[wallet].lockedBy = msg.sender; } function touchLastActive(address wallet) public onlyWalletModule(wallet) { wallets[wallet].lastActive = uint128(now); } function inheritor(address wallet) public view returns ( address who, uint lastActive ) { who = wallets[wallet].inheritor; lastActive = uint(wallets[wallet].lastActive); } function setInheritor(address wallet, address who) public onlyWalletModule(wallet) { wallets[wallet].inheritor = who; wallets[wallet].lastActive = uint128(now); } function cleanRemovedGuardians(address wallet) private { Wallet storage w = wallets[wallet]; for (int i = int(w.guardians.length) - 1; i >= 0; i--) { Data.Guardian memory g = w.guardians[uint(i)]; if (isGuardianExpired(g)) { Data.Guardian memory lastGuardian = w.guardians[w.guardians.length - 1]; if (g.addr != lastGuardian.addr) { w.guardians[uint(i)] = lastGuardian; w.guardianIdx[lastGuardian.addr] = uint(i) + 1; } w.guardians.pop(); delete w.guardianIdx[g.addr]; } } } function isGuardianActive(Data.Guardian memory guardian) private view returns (bool) { return guardian.validSince > 0 && guardian.validSince <= now && !isGuardianExpired(guardian); } function isGuardianPendingAddition(Data.Guardian memory guardian) private view returns (bool) { return guardian.validSince > now; } function isGuardianPendingRemoval(Data.Guardian memory guardian) private view returns (bool) { return guardian.validUntil > now; } function isGuardianExpired(Data.Guardian memory guardian) private view returns (bool) { return guardian.validUntil > 0 && guardian.validUntil <= now; } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title ModuleRegistry /// @dev A registry for modules. /// /// @author Daniel Wang - <[email protected]> interface ModuleRegistry { function registerModule(address module) external; function deregisterModule(address module) external; function isModuleRegistered(address module) external view returns (bool); function modules() external view returns (address[] memory _modules); function numOfModules() external view returns (uint); } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title WalletRegistry /// @dev A registry for wallets. /// @author Daniel Wang - <[email protected]> interface WalletRegistry { function registerWallet(address wallet) external; function isWalletRegistered(address addr) external view returns (bool); function numOfWallets() external view returns (uint); } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title QuotaStore /// @dev This store maintains daily spending quota for each wallet. /// A rolling daily limit is used. contract QuotaStore is DataStore { using MathUint for uint; uint public defaultQuota; struct Quota { uint currentQuota; // 0 indicates default uint pendingQuota; uint64 pendingUntil; uint64 spentTimestamp; uint spentAmount; } mapping (address => Quota) public quotas; event QuotaScheduled( address indexed wallet, uint pendingQuota, uint64 pendingUntil ); constructor(uint _defaultQuota) public DataStore() { defaultQuota = _defaultQuota; } function changeQuota( address wallet, uint newQuota, uint effectiveTime ) public onlyWalletModule(wallet) { quotas[wallet].currentQuota = currentQuota(wallet); quotas[wallet].pendingQuota = newQuota; quotas[wallet].pendingUntil = uint64(effectiveTime); emit QuotaScheduled( wallet, newQuota, quotas[wallet].pendingUntil ); } function checkAndAddToSpent( address wallet, uint amount ) public onlyWalletModule(wallet) { require(hasEnoughQuota(wallet, amount), "QUOTA_EXCEEDED"); addToSpent(wallet, amount); } function addToSpent( address wallet, uint amount ) public onlyWalletModule(wallet) { Quota storage q = quotas[wallet]; q.spentAmount = spentQuota(wallet).add(amount); q.spentTimestamp = uint64(now); } function currentQuota(address wallet) public view returns (uint) { Quota storage q = quotas[wallet]; uint value = q.pendingUntil <= now ? q.pendingQuota : q.currentQuota; return value == 0 ? defaultQuota : value; } function pendingQuota(address wallet) public view returns ( uint _pendingQuota, uint _pendingUntil ) { Quota storage q = quotas[wallet]; if (q.pendingUntil > 0 && q.pendingUntil > now) { _pendingQuota = q.pendingQuota > 0 ? q.pendingQuota : defaultQuota; _pendingUntil = q.pendingUntil; } } function spentQuota(address wallet) public view returns (uint) { Quota storage q = quotas[wallet]; uint timeSinceLastSpent = now.sub(q.spentTimestamp); if (timeSinceLastSpent < 1 days) { return q.spentAmount.sub(q.spentAmount.mul(timeSinceLastSpent) / 1 days); } else { return 0; } } function availableQuota(address wallet) public view returns (uint) { uint quota = currentQuota(wallet); uint spent = spentQuota(wallet); return quota > spent ? quota - spent : 0; } function hasEnoughQuota( address wallet, uint requiredAmount ) public view returns (bool) { return availableQuota(wallet) >= requiredAmount; } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Ownable /// @author Brecht Devos - <[email protected]> /// @dev The Ownable contract has an owner address, and provides basic /// authorization control functions, this simplifies the implementation of /// "user permissions". contract Ownable { address public owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /// @dev The Ownable constructor sets the original `owner` of the contract /// to the sender. constructor() public { owner = msg.sender; } /// @dev Throws if called by any account other than the owner. modifier onlyOwner() { require(msg.sender == owner, "UNAUTHORIZED"); _; } /// @dev Allows the current owner to transfer control of the contract to a /// new owner. /// @param newOwner The address to transfer ownership to. function transferOwnership( address newOwner ) public virtual onlyOwner { require(newOwner != address(0), "ZERO_ADDRESS"); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } function renounceOwnership() public onlyOwner { emit OwnershipTransferred(owner, address(0)); owner = address(0); } } /// @title Claimable /// @author Brecht Devos - <[email protected]> /// @dev Extension for the Ownable contract, where the ownership needs /// to be claimed. This allows the new owner to accept the transfer. contract Claimable is Ownable { address public pendingOwner; /// @dev Modifier throws if called by any account other than the pendingOwner. modifier onlyPendingOwner() { require(msg.sender == pendingOwner, "UNAUTHORIZED"); _; } /// @dev Allows the current owner to set the pendingOwner address. /// @param newOwner The address to transfer ownership to. function transferOwnership( address newOwner ) public override onlyOwner { require(newOwner != address(0) && newOwner != owner, "INVALID_ADDRESS"); pendingOwner = newOwner; } /// @dev Allows the pendingOwner address to finalize the transfer. function claimOwnership() public onlyPendingOwner { emit OwnershipTransferred(owner, pendingOwner); owner = pendingOwner; pendingOwner = address(0); } } contract OwnerManagable is Claimable, AddressSet { bytes32 internal constant MANAGER = keccak256("__MANAGED__"); event ManagerAdded (address indexed manager); event ManagerRemoved(address indexed manager); modifier onlyManager { require(isManager(msg.sender), "NOT_MANAGER"); _; } modifier onlyOwnerOrManager { require(msg.sender == owner || isManager(msg.sender), "NOT_OWNER_OR_MANAGER"); _; } constructor() public Claimable() {} /// @dev Gets the managers. /// @return The list of managers. function managers() public view returns (address[] memory) { return addressesInSet(MANAGER); } /// @dev Gets the number of managers. /// @return The numer of managers. function numManagers() public view returns (uint) { return numAddressesInSet(MANAGER); } /// @dev Checks if an address is a manger. /// @param addr The address to check. /// @return True if the address is a manager, False otherwise. function isManager(address addr) public view returns (bool) { return isAddressInSet(MANAGER, addr); } /// @dev Adds a new manager. /// @param manager The new address to add. function addManager(address manager) public onlyOwner { addManagerInternal(manager); } /// @dev Removes a manager. /// @param manager The manager to remove. function removeManager(address manager) public onlyOwner { removeAddressFromSet(MANAGER, manager); emit ManagerRemoved(manager); } function addManagerInternal(address manager) internal { addAddressToSet(MANAGER, manager, true); emit ManagerAdded(manager); } } /// @title DappAddressStore /// @dev This store maintains global whitelist dapps. contract DappAddressStore is DataStore, OwnerManagable { bytes32 internal constant DAPPS = keccak256("__DAPPS__"); event Whitelisted( address indexed addr, bool whitelisted ); constructor() public DataStore() {} function addDapp(address addr) public onlyManager { addAddressToSet(DAPPS, addr, true); emit Whitelisted(addr, true); } function removeDapp(address addr) public onlyManager { removeAddressFromSet(DAPPS, addr); emit Whitelisted(addr, false); } function dapps() public view returns ( address[] memory addresses ) { return addressesInSet(DAPPS); } function isDapp( address addr ) public view returns (bool) { return isAddressInSet(DAPPS, addr); } function numDapps() public view returns (uint) { return numAddressesInSet(DAPPS); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title WhitelistStore /// @dev This store maintains a wallet's whitelisted addresses. contract WhitelistStore is DataStore, AddressSet { // wallet => whitelisted_addr => effective_since mapping(address => mapping(address => uint)) public effectiveTimeMap; event Whitelisted( address indexed wallet, address indexed addr, bool whitelisted, uint effectiveTime ); constructor() public DataStore() {} function addToWhitelist( address wallet, address addr, uint effectiveTime ) public onlyWalletModule(wallet) { addAddressToSet(walletKey(wallet), addr, true); uint effective = effectiveTime >= now ? effectiveTime : now; effectiveTimeMap[wallet][addr] = effective; emit Whitelisted(wallet, addr, true, effective); } function removeFromWhitelist( address wallet, address addr ) public onlyWalletModule(wallet) { removeAddressFromSet(walletKey(wallet), addr); delete effectiveTimeMap[wallet][addr]; emit Whitelisted(wallet, addr, false, 0); } function whitelist(address wallet) public view returns ( address[] memory addresses, uint[] memory effectiveTimes ) { addresses = addressesInSet(walletKey(wallet)); effectiveTimes = new uint[](addresses.length); for (uint i = 0; i < addresses.length; i++) { effectiveTimes[i] = effectiveTimeMap[wallet][addresses[i]]; } } function isWhitelisted( address wallet, address addr ) public view returns ( bool isWhitelistedAndEffective, uint effectiveTime ) { effectiveTime = effectiveTimeMap[wallet][addr]; isWhitelistedAndEffective = effectiveTime > 0 && effectiveTime <= now; } function whitelistSize(address wallet) public view returns (uint) { return numAddressesInSet(walletKey(wallet)); } function walletKey(address addr) public pure returns (bytes32) { return keccak256(abi.encodePacked("__WHITELIST__", addr)); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title PriceOracle abstract contract PriceOracle { // @dev Return's the token's value in ETH function tokenValue(address token, uint amount) public view virtual returns (uint value); } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Taken from Argent's code base - https://github.com/argentlabs/argent-contracts/blob/develop/contracts/ens/ArgentENSManager.sol // with few modifications. /** * @dev Interface for an ENS Mananger. */ interface IENSManager { function changeRootnodeOwner(address _newOwner) external; function isAvailable(bytes32 _subnode) external view returns(bool); function resolveName(address _owner) external view returns (string memory); function register( address _owner, string calldata _label, bytes calldata _approval ) external; } /** * @title BaseENSManager * @dev Implementation of an ENS manager that orchestrates the complete * registration of subdomains for a single root (e.g. argent.eth). * The contract defines a manager role who is the only role that can trigger the registration of * a new subdomain. * @author Julien Niset - <[email protected]> */ contract BaseENSManager is IENSManager, OwnerManagable, ENSConsumer { using strings for *; using BytesUtil for bytes; using MathUint for uint; // The managed root name string public rootName; // The managed root node bytes32 public rootNode; // The address of the ENS resolver address public ensResolver; // *************** Events *************************** // event RootnodeOwnerChange(bytes32 indexed _rootnode, address indexed _newOwner); event ENSResolverChanged(address addr); event Registered(address indexed _owner, string _ens); event Unregistered(string _ens); // *************** Constructor ********************** // /** * @dev Constructor that sets the ENS root name and root node to manage. * @param _rootName The root name (e.g. argentx.eth). * @param _rootNode The node of the root name (e.g. namehash(argentx.eth)). */ constructor(string memory _rootName, bytes32 _rootNode, address _ensRegistry, address _ensResolver) ENSConsumer(_ensRegistry) public { rootName = _rootName; rootNode = _rootNode; ensResolver = _ensResolver; } // *************** External Functions ********************* // /** * @dev This function must be called when the ENS Manager contract is replaced * and the address of the new Manager should be provided. * @param _newOwner The address of the new ENS manager that will manage the root node. */ function changeRootnodeOwner(address _newOwner) external override onlyOwner { getENSRegistry().setOwner(rootNode, _newOwner); emit RootnodeOwnerChange(rootNode, _newOwner); } /** * @dev Lets the owner change the address of the ENS resolver contract. * @param _ensResolver The address of the ENS resolver contract. */ function changeENSResolver(address _ensResolver) external onlyOwner { require(_ensResolver != address(0), "WF: address cannot be null"); ensResolver = _ensResolver; emit ENSResolverChanged(_ensResolver); } /** * @dev Lets the manager assign an ENS subdomain of the root node to a target address. * Registers both the forward and reverse ENS. * @param _owner The owner of the subdomain. * @param _label The subdomain label. * @param _approval The signature of _owner and _label by a manager. */ function register( address _owner, string calldata _label, bytes calldata _approval ) external override onlyManager { verifyApproval(_owner, _label, _approval); bytes32 labelNode = keccak256(abi.encodePacked(_label)); bytes32 node = keccak256(abi.encodePacked(rootNode, labelNode)); address currentOwner = getENSRegistry().owner(node); require(currentOwner == address(0), "AEM: _label is alrealdy owned"); // Forward ENS getENSRegistry().setSubnodeOwner(rootNode, labelNode, address(this)); getENSRegistry().setResolver(node, ensResolver); getENSRegistry().setOwner(node, _owner); ENSResolver(ensResolver).setAddr(node, _owner); // Reverse ENS strings.slice[] memory parts = new strings.slice[](2); parts[0] = _label.toSlice(); parts[1] = rootName.toSlice(); string memory name = ".".toSlice().join(parts); bytes32 reverseNode = getENSReverseRegistrar().node(_owner); ENSResolver(ensResolver).setName(reverseNode, name); emit Registered(_owner, name); } // *************** Public Functions ********************* // /** * @dev Resolves an address to an ENS name * @param _owner The ENS owner address */ function resolveName(address _owner) public view override returns (string memory) { bytes32 reverseNode = getENSReverseRegistrar().node(_owner); return ENSResolver(ensResolver).name(reverseNode); } /** * @dev Returns true is a given subnode is available. * @param _subnode The target subnode. * @return true if the subnode is available. */ function isAvailable(bytes32 _subnode) public view override returns (bool) { bytes32 node = keccak256(abi.encodePacked(rootNode, _subnode)); address currentOwner = getENSRegistry().owner(node); if(currentOwner == address(0)) { return true; } return false; } function verifyApproval( address _owner, string memory _label, bytes memory _approval ) internal view { if (numManagers() == 1) { return; } bytes32 messageHash = keccak256( abi.encodePacked( _owner, _label ) ); bytes32 hash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", messageHash ) ); address signer = SignatureUtil.recoverECDSASigner(hash, _approval); require(isManager(signer), "UNAUTHORIZED"); } } /// @title WalletENSManager /// @dev An ENS manager to interactive with ENS module. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts contract WalletENSManager is BaseENSManager { constructor( string memory _rootName, bytes32 _rootNode, address _ensRegistry, address _ensResolver ) public BaseENSManager( _rootName, _rootNode, _ensRegistry, _ensResolver ) { } } /// @title Controller /// /// @author Daniel Wang - <[email protected]> contract Controller { // The address to which all colletable tokens/ether in modules will // be sent to. address public collectTo; uint public defaultLockPeriod; ModuleRegistry public moduleRegistry; WalletRegistry public walletRegistry; QuotaStore public quotaStore; SecurityStore public securityStore; DappAddressStore public dappAddressStore; WhitelistStore public whitelistStore; PriceOracle public priceOracle; WalletENSManager public ensManager; } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless _requirement by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ library EIP712 { struct Domain { string name; string version; address verifyingContract; } bytes32 constant internal EIP712_DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); string constant internal EIP191_HEADER = "\x19\x01"; function hash(Domain memory domain) internal pure returns (bytes32) { uint _chainid; assembly { _chainid := chainid() } return keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(domain.name)), keccak256(bytes(domain.version)), _chainid, domain.verifyingContract ) ); } function hashPacked( bytes32 domainHash, bytes32 dataHash ) internal pure returns (bytes32) { return keccak256( abi.encodePacked( EIP191_HEADER, domainHash, dataHash ) ); } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title SignatureUtil /// @author Daniel Wang - <[email protected]> /// @dev This method supports multihash standard. Each signature's first byte indicates /// the signature's type, the second byte indicates the signature's length, therefore, /// each signature will have 2 extra bytes prefix. Mulitple signatures are concatenated /// together. library SignatureUtil { using BytesUtil for bytes; using MathUint for uint; enum SignatureType { ILLEGAL, INVALID, EIP_712, ETH_SIGN, WALLET } bytes4 constant private ERC1271_MAGICVALUE = 0x20c13b0b; function verifySignatures( bytes32 signHash, address[] memory signers, bytes[] memory signatures ) internal view returns (bool) { require(signers.length == signatures.length, "BAD_SIGNATURE_DATA"); address lastSigner; for (uint i = 0; i < signers.length; i++) { require(signers[i] > lastSigner, "INVALID_SIGNERS_ORDER"); lastSigner = signers[i]; if (!verifySignature(signHash, signers[i], signatures[i])) { return false; } } return true; } function verifySignature( bytes32 signHash, address signer, bytes memory signature ) internal view returns (bool) { uint signatureTypeOffset = signature.length.sub(1); SignatureType signatureType = SignatureType(signature.toUint8(signatureTypeOffset)); bytes memory stripped = signature.slice(0, signatureTypeOffset); if (signatureType == SignatureType.WALLET) { return verifyERC1271Signature(signHash, signer, stripped); } else if (signatureType == SignatureType.EIP_712) { return recoverECDSASigner(signHash, stripped) == signer; } else if (signatureType == SignatureType.ETH_SIGN) { bytes32 hash = keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", signHash) ); return recoverECDSASigner(hash, stripped) == signer; } else { return false; } } function verifyERC1271Signature( bytes32 signHash, address signer, bytes memory signature ) private view returns(bool) { bytes memory callData = abi.encodeWithSelector( ERC1271(0).isValidSignature.selector, abi.encode(signHash), signature ); (bool success, bytes memory result) = signer.staticcall(callData); return ( success && result.length == 32 && result.toBytes4(0) == ERC1271_MAGICVALUE ); } function recoverECDSASigner( bytes32 signHash, bytes memory signature ) internal pure returns (address) { if (signature.length != 65) { return address(0); } bytes32 r; bytes32 s; uint8 v; // we jump 32 (0x20) as the first slot of bytes contains the length // we jump 65 (0x41) per signature // for v we load 32 bytes ending with v (the first 31 come from s) then apply a mask assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := and(mload(add(signature, 0x41)), 0xff) } // See https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/cryptography/ECDSA.sol if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return address(0); } if (v == 27 || v == 28) { return ecrecover(signHash, v, r, s); } else { return address(0); } } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title ReentrancyGuard /// @author Brecht Devos - <[email protected]> /// @dev Exposes a modifier that guards a function against reentrancy /// Changing the value of the same storage value multiple times in a transaction /// is cheap (starting from Istanbul) so there is no need to minimize /// the number of times the value is changed contract ReentrancyGuard { //The default value must be 0 in order to work behind a proxy. uint private _guardValue; modifier nonReentrant() { require(_guardValue == 0, "REENTRANCY"); _guardValue = 1; _; _guardValue = 0; } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Module /// @dev Base contract for all smart wallet modules. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts interface Module { /// @dev Activates the module for the given wallet (msg.sender) after the module is added. /// Warning: this method shall ONLY be callable by a wallet. function activate() external; /// @dev Deactivates the module for the given wallet (msg.sender) before the module is removed. /// Warning: this method shall ONLY be callable by a wallet. function deactivate() external; } /// @title BaseModule /// @dev This contract implements some common functions that are likely /// be useful for all modules. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts contract BaseModule is ReentrancyGuard, Module { event Activated (address indexed wallet); event Deactivated (address indexed wallet); modifier onlyFromWallet(address wallet) virtual { require(msg.sender == wallet, "NOT_FROM_WALLET"); _; } modifier onlyFromMetaTx() virtual { require(msg.sender == address(this), "NOT_FROM_META_TX"); _; } modifier onlyFromWalletOwner(address wallet) virtual { require(msg.sender == Wallet(wallet).owner(), "NOT_FROM_WALLET_OWNER"); _; } modifier onlyFromMetaTxOrWalletOwner(address wallet) virtual { require( msg.sender == address(this) || msg.sender == Wallet(wallet).owner(), "NOT_FROM_METATX_OR_WALLET_OWNER"); _; } modifier onlyFromMetaTxOrOwner(address owner) virtual { require( msg.sender == address(this) || msg.sender == owner, "NOT_FROM_METATX_OR_OWNER"); _; } modifier onlyWalletOwner(address wallet, address addr) virtual { require(Wallet(wallet).owner() == addr, "NOT_WALLET_OWNER"); _; } modifier notWalletOwner(address wallet, address addr) virtual { require(Wallet(wallet).owner() != addr, "IS_WALLET_OWNER"); _; } function addModule( address wallet, address module ) external nonReentrant onlyFromMetaTxOrWalletOwner(wallet) { Wallet(wallet).addModule(module); } /// @dev This method will cause an re-entry to the same module contract. function activate() external override virtual { address wallet = msg.sender; bindMethods(wallet); emit Activated(wallet); } /// @dev This method will cause an re-entry to the same module contract. function deactivate() external override virtual { address wallet = msg.sender; unbindMethods(wallet); emit Deactivated(wallet); } ///.@dev Gets the list of methods for binding to wallets. /// Sub-contracts should override this method to provide methods for /// wallet binding. /// @return methods A list of method selectors for binding to the wallet /// when this module is activated for the wallet. function bindableMethods() public pure virtual returns (bytes4[] memory methods) { } // ===== internal & private methods ===== /// @dev Binds all methods to the given wallet. function bindMethods(address wallet) internal { Wallet w = Wallet(wallet); bytes4[] memory methods = bindableMethods(); for (uint i = 0; i < methods.length; i++) { w.bindMethod(methods[i], address(this)); } } /// @dev Unbinds all methods from the given wallet. function unbindMethods(address wallet) internal { Wallet w = Wallet(wallet); bytes4[] memory methods = bindableMethods(); for (uint i = 0; i < methods.length; i++) { w.bindMethod(methods[i], address(0)); } } function transactCall( address wallet, address to, uint value, bytes memory data ) internal returns (bytes memory) { return Wallet(wallet).transact(uint8(1), to, value, data); } // Special case for transactCall to support transfers on "bad" ERC20 tokens function transactTokenTransfer( address wallet, address token, address to, uint amount ) internal returns (bool success) { bytes memory txData = abi.encodeWithSelector( ERC20(0).transfer.selector, to, amount ); bytes memory returnData = transactCall(wallet, token, 0, txData); // `transactCall` will revert if the call was unsuccessful. // The only extra check we have to do is verify if the return value (if there is any) is correct. if (returnData.length > 0) { success = abi.decode(returnData, (bool)); } else { // If there is no return value then a failure would have resulted in a revert success = true; } } // Special case for transactCall to support approvals on "bad" ERC20 tokens function transactTokenApprove( address wallet, address token, address spender, uint amount ) internal returns (bool success) { bytes memory txData = abi.encodeWithSelector( ERC20(0).approve.selector, spender, amount ); bytes memory returnData = transactCall(wallet, token, 0, txData); // `transactCall` will revert if the call was unsuccessful. // The only extra check we have to do is verify if the return value (if there is any) is correct. if (returnData.length > 0) { success = abi.decode(returnData, (bool)); } else { // If there is no return value then a failure would have resulted in a revert success = true; } } function transactDelegateCall( address wallet, address to, uint value, bytes memory data ) internal returns (bytes memory) { return Wallet(wallet).transact(uint8(2), to, value, data); } function transactStaticCall( address wallet, address to, bytes memory data ) internal returns (bytes memory) { return Wallet(wallet).transact(uint8(3), to, 0, data); } } /// @title MetaTxModule /// @dev This is the base module for supporting meta-transactions. /// A MetaTxModule will only relay transactions on itself, and the methods /// relayed must as the target wallet address as its first argument, unless /// the `extractWalletAddress` is overridden. /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts abstract contract MetaTxModule is BaseModule { using MathUint for uint; using AddressUtil for address; using SignatureUtil for bytes32; using BytesUtil for bytes; struct WalletState { uint nonce; mapping (bytes32 => bool) metaTxHash; } struct GasSettings { address token; uint price; uint limit; uint overhead; address recipient; } struct MetaTransaction { address wallet; address module; uint value; bytes data; uint nonce; uint validUntil; address gasToken; uint gasPrice; uint gasLimit; uint gasOverhead; address feeRecipient; } bytes32 constant public METATRANSACTION_TYPEHASH = keccak256( "MetaTransaction(address wallet,address module,uint256 value,bytes data,uint256 nonce,uint256 validUntil,address gasToken,uint256 gasPrice,uint256 gasLimit,uint256 gasOverhead,address feeRecipient)" ); bytes32 public DOMAIN_SEPARATOR; Controller public controller; mapping (address => WalletState) public wallets; event MetaTxExecuted( address indexed transactor, address indexed wallet, uint nonce, bytes32 metaTxHash, uint gasUsed, bool success, bytes returnData ); modifier onlyFromMetaTx override { require(msg.sender == address(this), "NOT_FROM_THIS_MODULE"); _; } constructor(Controller _controller) public BaseModule() { DOMAIN_SEPARATOR = EIP712.hash(EIP712.Domain("Loopring Wallet MetaTxModule", "1.0", address(this))); controller = _controller; } function quotaStore() internal view virtual returns (address) { return address(0); } function isWalletOwnerOrGuardian(address wallet, address addr) internal view returns (bool) { return Wallet(wallet).owner() == addr || controller.securityStore().isGuardian(wallet, addr); } function isWalletOwnerOrGuardian(address wallet, address[] memory addrs) internal view returns (bool) { if (addrs.length == 0) return false; for (uint i = 0; i < addrs.length; i++) { if (!isWalletOwnerOrGuardian(wallet, addrs[i])) { return false; } } return true; } /// @dev Execute a signed meta transaction. /// This method can be called by any relayer without restriction. The relayer /// will pay for transaction gas in Ether and charge the wallet Ether or other /// ERC20 tokens as fee. If gasPrice is set to 0, then the relayer won't charge /// the wallet any fee. /// /// Important! This function needs to be safe against re-entrancy by using /// the 'Checks Effects Interactions' pattern! We do not use `nonReentrant` /// because this function is used to call into the same contract. /// /// @param data The raw transaction to be performed on this module. /// @param nonce The nonce of this meta transaction. When nonce is 0, this module will /// make sure the transaction's metaTxHash is unique; otherwise, the module /// requires the nonce is greater than the last nonce used by the same /// wallet, but not by more than `block.number * 2^128`. /// @param validUntil The expiry timestamp /// @param gasSetting A list that contains `gasToken` address, `gasPrice`, `gasLimit`, /// `gasOverhead` and `feeRecipient`. To pay fee in Ether, use address(0) as gasToken. /// To receive reimbursement at `msg.sender`, use address(0) as feeRecipient. /// @param signatures The signatures of the signers. /// @param signers The signers needed for the transaction. function executeMetaTx( bytes memory data, uint nonce, uint validUntil, uint[5] memory gasSetting, // [gasToken address][gasPrice][gasLimit][gasOverhead][feeRecipient] bytes[] memory signatures, address[] memory signers ) public payable { require(validUntil >= now, "EXPIRED"); GasSettings memory gasSettings = GasSettings( address(gasSetting[0]), gasSetting[1], gasSetting[2], gasSetting[3], address(gasSetting[4]) ); require(gasSettings.limit > 0, "INVALID_GAS_LIMIT"); require(gasSettings.recipient == controller.collectTo(), "INVALID_GAS_RECIPIENT"); address wallet = extractWalletAddress(data); bytes32 metaTxHash = EIP712.hashPacked( DOMAIN_SEPARATOR, hash( MetaTransaction( wallet, address(this), msg.value, data, nonce, validUntil, gasSettings.token, gasSettings.price, gasSettings.limit, gasSettings.overhead, gasSettings.recipient ) ) ); // Get the signers necessary for this meta transaction. require(checkSigners(wallet, data, signers), "METATX_UNAUTHORIZED"); require(metaTxHash.verifySignatures(signers, signatures), "INVALID_SIGNATURES"); // Mark the transaction as used before doing the call to guard against re-entrancy // (the only exploit possible here is that the transaction can be executed multiple times). saveExecutedMetaTx(wallet, nonce, metaTxHash); // Deposit msg.value to the wallet so it can be used from the wallet if (msg.value > 0) { wallet.sendETHAndVerify(msg.value, gasleft()); } require(gasleft() >= (gasSettings.limit.mul(64) / 63).add(60000), "INSUFFICIENT_GAS"); uint gasUsed = gasleft(); // solium-disable-next-line security/no-call-value (bool success, bytes memory returnData) = address(this).call{gas: gasSettings.limit}(data); gasUsed = gasUsed - gasleft(); // The gas amount measured could be a little bit higher because of the extra costs to do the call itself gasUsed = gasUsed < gasSettings.limit ? gasUsed : gasSettings.limit; emit MetaTxExecuted(msg.sender, wallet, nonce, metaTxHash, gasUsed, success, returnData); if (gasSettings.price != 0 && reimbursable(extractMethod(data))) { reimburseGasFee(wallet, gasSettings, gasUsed); } } /// @dev Returns the last nonce used by a wallet. /// @param wallet The wallet's address. /// @return Last nonce used. function lastNonce(address wallet) public view returns (uint) { return wallets[wallet].nonce; } /// @dev Collects tokens and ether owned by this module to a controlled address. /// @param tokens The list of tokens and ether to collect. function collectTokens(address[] calldata tokens) external nonReentrant { address to = controller.collectTo(); for (uint i = 0; i < tokens.length; i++) { address token = tokens[i]; if (token == address(0)) { uint amount = address(this).balance; to.sendETHAndVerify(amount, gasleft()); } else { uint amount = ERC20(token).balanceOf(address(this)); if (amount > 0) { // Do not check the return value to support "bad" ERC20 tokens ERC20(token).transfer(to, amount); } } } } // ---- internal functions ----- /// @dev Validate the list of signers for the given meta transaction. /// Additional validation of the signers can also be done inside this function. /// @param wallet The wallet address. /// @param method The method selector. /// @param data The call data. /// @param signers The list of addresses which have signed the meta transaction /// @return True if the list of signers are as expected, else False function verifySigners( address wallet, bytes4 method, bytes memory data, address[] memory signers ) internal view virtual returns (bool); /// @dev Check if the specified signer is the only signer function isOnlySigner(address signer, address[] memory signers) internal pure virtual returns (bool) { return (signers.length == 1 && signers[0] == signer); } function reimbursable(bytes4 method) internal view virtual returns (bool) { return true; } /// @dev For all relayed method, the first parameter must be the wallet address. function extractWalletAddress(bytes memory data) internal view virtual returns (address wallet) { wallet = extractAddressFromCallData(data, 0); } /// @dev Returns the address stored in the call data /// at the specified function parameter index. /// Example: function bar(uint value, address signer, bytes data); /// To extact `signer` use parameterIdx := 1 function extractAddressFromCallData( bytes memory data, uint parameterIdx ) internal pure returns (address addr) { addr = data.toAddress(4 + 32 * parameterIdx + 12); } /// @dev Returns a read-only array with the addresses stored in the call data /// at the specified function parameter index. /// Example: function bar(address[] signers, uint value); /// To extact `signers` use parameterIdx := 0 /// Example: function foo(address wallet, address[] signers, address[] contracts); /// To extact `signers` use parameterIdx := 1 /// To extact `contracts` use parameterIdx := 2 function extractAddressesFromCallData( bytes memory data, uint parameterIdx ) internal pure returns (address[] memory addresses) { // Find the offset of the function parameter in the call data uint dataOffset = data.toUint(4 + 32 * parameterIdx); // Make sure enough bytes are in data to store the complete array uint length = data.toUint(4 + dataOffset); require(data.length >= 4 + dataOffset + 32 * (1 + length), "INVALID_DATA"); // Extract the signers by copying the pointer at the beginning of the array // An extra offset of 36 is applied: 32(length) + 4(sig) assembly { addresses := add(data, add(36, dataOffset)) } } function hash(MetaTransaction memory _tx) internal pure returns (bytes32) { return keccak256( abi.encode( METATRANSACTION_TYPEHASH, _tx.wallet, _tx.module, _tx.value, keccak256(_tx.data), _tx.nonce, _tx.validUntil, _tx.gasToken, _tx.gasPrice, _tx.gasLimit, _tx.gasOverhead, _tx.feeRecipient ) ); } function extractMethod(bytes memory data) internal pure returns (bytes4 method) { return data.toBytes4(0); } function reimburseGasFee( address wallet, GasSettings memory gasSettings, uint gasUsed ) private { uint gasCost = gasUsed.add(gasSettings.overhead).mul(gasSettings.price); updateQuota(wallet, gasSettings.token, gasCost); address feeRecipient = gasSettings.recipient; if (gasSettings.token == address(0)) { transactCall(wallet, feeRecipient, gasCost, ""); } else { require( transactTokenTransfer(wallet, gasSettings.token, feeRecipient, gasCost), "TRANSFER_FAILED" ); } } // ---- private functions ----- function checkSigners( address wallet, bytes memory data, address[] memory signers ) private view returns (bool) { bytes4 method = extractMethod(data); if (method == this.addModule.selector) { return isOnlySigner(Wallet(wallet).owner(), signers); } else { return verifySigners(wallet, method, data, signers); } } /// @dev Save the meta-transaction to history. /// This method must throw if the transaction is not unique or the nonce is invalid. /// @param wallet The target wallet. /// @param nonce The nonce /// @param metaTxHash The signed hash of the transaction function saveExecutedMetaTx( address wallet, uint nonce, bytes32 metaTxHash ) private { if (nonce == 0) { require(!wallets[wallet].metaTxHash[metaTxHash], "INVALID_HASH"); wallets[wallet].metaTxHash[metaTxHash] = true; } else { require(nonce > wallets[wallet].nonce, "NONCE_TOO_SMALL"); require((nonce >> 128) <= (block.number), "NONCE_TOO_LARGE"); wallets[wallet].nonce = nonce; } } function updateQuota( address wallet, address token, uint amount ) internal { if (amount > 0 && quotaStore() != address(0)) { uint value = controller.priceOracle().tokenValue(token, amount); QuotaStore(quotaStore()).checkAndAddToSpent(wallet, value); } } function tryToUpdateQuota( address wallet, address token, uint amount ) internal returns (bool) { if (quotaStore() != address(0)) { uint value = controller.priceOracle().tokenValue(token, amount); try QuotaStore(quotaStore()).checkAndAddToSpent(wallet, value) { return true; } catch Error(string memory /*reason*/) { return false; } } else { return true; } } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title GuardianUtils /// @author Brecht Devos - <[email protected]> library GuardianUtils { uint constant public MAX_NUM_GROUPS = 16; enum SigRequirement { OwnerNotAllowed, OwnerAllowed, OwnerRequired } function requireMajority( SecurityStore securityStore, address wallet, address[] memory signers, SigRequirement requirement ) internal view returns (bool) { // We always need at least one signer if (signers.length == 0) { return false; } // Calculate total group sizes Data.Guardian[] memory allGuardians = securityStore.guardians(wallet); uint[MAX_NUM_GROUPS] memory total = countGuardians(allGuardians); // Calculate how many signers are in each group bool walletOwnerSigned = false; Data.Guardian[] memory signingGuardians = new Data.Guardian[](signers.length); address walletOwner = Wallet(wallet).owner(); uint numGuardians = 0; address lastSigner; for (uint i = 0; i < signers.length; i++) { // Check for duplicates require(signers[i] > lastSigner, "INVALID_SIGNERS_ORDER"); lastSigner = signers[i]; if (signers[i] == walletOwner) { walletOwnerSigned = true; } else { require(securityStore.isGuardian(wallet, signers[i]), "SIGNER_NOT_GUARDIAN"); signingGuardians[numGuardians++] = securityStore.getGuardian(wallet, signers[i]); } } // Check owner requirements if (requirement == SigRequirement.OwnerRequired) { require(walletOwnerSigned, "WALLET_OWNER_SIGNATURE_REQUIRED"); } else if (requirement == SigRequirement.OwnerNotAllowed) { require(!walletOwnerSigned, "WALLET_OWNER_SIGNATURE_NOT_ALLOWED"); } // Update the signingGuardians array with the actual number of guardians that have signed // (could be 1 less than the length if the owner signed as well) assembly { mstore(signingGuardians, numGuardians) } uint[MAX_NUM_GROUPS] memory signed = countGuardians(signingGuardians); // Count the number of votes uint totalNumVotes = 0; uint numVotes = 0; if (requirement != SigRequirement.OwnerNotAllowed) { totalNumVotes += 1; numVotes += walletOwnerSigned ? 1 : 0; } if (total[0] > 0) { // Group 0: No grouping totalNumVotes += total[0]; numVotes += signed[0]; } for (uint i = 1; i < MAX_NUM_GROUPS; i++) { if (total[i] > 0) { totalNumVotes += 1; if (i < 6) { // Groups [1, 5]: Single guardian needed per group numVotes += signed[i] > 0 ? 1 : 0; } else if (i < 11) { // Groups [6, 10]: Half the guardians needed per group numVotes += hasHalf(signed[i], total[i]) ? 1 : 0; } else { // Groups [11, 15]: A majority of guardians needed per group numVotes += hasMajority(signed[i], total[i]) ? 1 : 0; } } } // We need a majority of votes require(hasMajority(numVotes, totalNumVotes), "NOT_ENOUGH_SIGNERS"); return true; } function hasHalf( uint count, uint total ) internal pure returns (bool) { return (count >= (total + 1) / 2); } function hasMajority( uint count, uint total ) internal pure returns (bool) { return (count >= (total / 2) + 1); } function countGuardians( Data.Guardian[] memory guardians ) internal pure returns (uint[MAX_NUM_GROUPS] memory total) { for (uint i = 0; i < guardians.length; i++) { total[guardians[i].group]++; } } } /// @title SecurityStore /// /// @author Daniel Wang - <[email protected]> /// /// The design of this contract is inspired by Argent's contract codebase: /// https://github.com/argentlabs/argent-contracts abstract contract SecurityModule is MetaTxModule { // The minimal number of guardians for recovery and locking. uint constant public MIN_ACTIVE_GUARDIANS = 2; event WalletLock( address indexed wallet, uint lock ); constructor(Controller _controller) public MetaTxModule(_controller) { } // overriding modifier onlyFromWalletOwner(address wallet) override { require( msg.sender == Wallet(wallet).owner(), "NOT_FROM_WALLET_OWNER" ); controller.securityStore().touchLastActive(wallet); _; } // overridding modifier onlyFromMetaTxOrWalletOwner(address wallet) override { require( msg.sender == Wallet(wallet).owner() || msg.sender == address(this), "NOT_FROM_METATX_OR_WALLET_OWNER" ); controller.securityStore().touchLastActive(wallet); _; } modifier onlyWhenWalletLocked(address wallet) { require(isWalletLocked(wallet), "NOT_LOCKED"); _; } modifier onlyWhenWalletUnlocked(address wallet) { require(!isWalletLocked(wallet), "LOCKED"); _; } modifier onlyWalletGuardian(address wallet, address guardian) { require(controller.securityStore().isGuardian(wallet, guardian), "NOT_GUARDIAN"); _; } modifier notWalletGuardian(address wallet, address guardian) { require(!controller.securityStore().isGuardian(wallet, guardian), "IS_GUARDIAN"); _; } modifier onlyFromMetaTxOr(address guardian) { require( msg.sender == address(this) || msg.sender == guardian, "UNAUTHORIZED" ); _; } modifier onlyHaveEnoughGuardians(address wallet) { require( controller.securityStore().numGuardians(wallet) >= MIN_ACTIVE_GUARDIANS, "NO_ENOUGH_ACTIVE_GUARDIANS" ); _; } // ----- internal methods ----- function quotaStore() internal view override returns (address) { return address(controller.quotaStore()); } function lockWallet(address wallet) internal { lockWallet(wallet, controller.defaultLockPeriod()); } function lockWallet(address wallet, uint _lockPeriod) internal onlyWhenWalletUnlocked(wallet) { // cannot lock the wallet twice by different modules. require(_lockPeriod > 0, "ZERO_VALUE"); uint lock = now + _lockPeriod; controller.securityStore().setLock(wallet, lock); emit WalletLock(wallet, lock); } function unlockWallet(address wallet, bool forceUnlock) internal { (uint _lock, address _lockedBy) = controller.securityStore().getLock(wallet); if (_lock > now) { require(forceUnlock || _lockedBy == address(this), "UNABLE_TO_UNLOCK"); controller.securityStore().setLock(wallet, 0); emit WalletLock(wallet, 0); } } function getWalletLock(address wallet) internal view returns (uint _lock, address _lockedBy) { return controller.securityStore().getLock(wallet); } function isWalletLocked(address wallet) internal view returns (bool) { (uint _lock,) = controller.securityStore().getLock(wallet); return _lock > now; } } /// @title GuardianModule contract GuardianModule is SecurityModule { using SignatureUtil for bytes32; using AddressUtil for address; uint constant public MAX_GUARDIANS = 20; uint public pendingPeriod; event GuardianAdded (address indexed wallet, address indexed guardian, uint group, uint effectiveTime); event GuardianAdditionCancelled (address indexed wallet, address indexed guardian); event GuardianRemoved (address indexed wallet, address indexed guardian, uint removalEffectiveTime); event GuardianRemovalCancelled (address indexed wallet, address indexed guardian); event Recovered( address indexed wallet, address indexed oldOwner, address indexed newOwner, bool removedAsGuardian ); constructor( Controller _controller, uint _pendingPeriod ) public SecurityModule(_controller) { require(_pendingPeriod > 0, "INVALID_DELAY"); pendingPeriod = _pendingPeriod; } function addGuardian( address wallet, address guardian, uint group ) external nonReentrant onlyWhenWalletUnlocked(wallet) notWalletOwner(wallet, guardian) onlyFromMetaTxOrWalletOwner(wallet) { require(guardian != address(0), "ZERO_ADDRESS"); require(group < GuardianUtils.MAX_NUM_GROUPS, "INVALID_GROUP"); uint numGuardians = controller.securityStore().numGuardiansWithPending(wallet); require(numGuardians < MAX_GUARDIANS, "TOO_MANY_GUARDIANS"); uint effectiveTime = now; if (numGuardians >= MIN_ACTIVE_GUARDIANS) { effectiveTime = now + pendingPeriod; } controller.securityStore().addGuardian(wallet, guardian, group, effectiveTime); emit GuardianAdded(wallet, guardian, group, effectiveTime); } function cancelGuardianAddition( address wallet, address guardian ) external nonReentrant onlyWhenWalletUnlocked(wallet) onlyFromMetaTxOrWalletOwner(wallet) { controller.securityStore().cancelGuardianAddition(wallet, guardian); emit GuardianAdditionCancelled(wallet, guardian); } function removeGuardian( address wallet, address guardian ) external nonReentrant onlyWhenWalletUnlocked(wallet) onlyWalletGuardian(wallet, guardian) onlyFromMetaTxOrWalletOwner(wallet) { controller.securityStore().removeGuardian(wallet, guardian, now + pendingPeriod); emit GuardianRemoved(wallet, guardian, now + pendingPeriod); } function cancelGuardianRemoval( address wallet, address guardian ) external nonReentrant onlyWhenWalletUnlocked(wallet) onlyFromMetaTxOrWalletOwner(wallet) { controller.securityStore().cancelGuardianRemoval(wallet, guardian); emit GuardianRemovalCancelled(wallet, guardian); } function lock( address wallet, address guardian ) external nonReentrant // onlyWhenWalletUnlocked(wallet) onlyFromMetaTxOr(guardian) onlyWalletGuardian(wallet, guardian) onlyHaveEnoughGuardians(wallet) { lockWallet(wallet); } function unlock( address wallet, address guardian ) external nonReentrant // onlyWhenWalletLocked(wallet) onlyFromMetaTxOr(guardian) onlyWalletGuardian(wallet, guardian) { unlockWallet(wallet, false); } /// @dev Recover a wallet by setting a new owner. /// @param wallet The wallet for which the recovery shall be cancelled. /// @param newOwner The new owner address to set. /// The addresses must be sorted ascendently. function recover( address wallet, address newOwner ) external nonReentrant notWalletOwner(wallet, newOwner) onlyFromMetaTx onlyHaveEnoughGuardians(wallet) { Wallet w = Wallet(wallet); address oldOwner = w.owner(); require(newOwner != oldOwner, "SAME_ADDRESS"); require(newOwner != address(0), "ZERO_ADDRESS"); SecurityStore securityStore = controller.securityStore(); bool removedAsGuardian = securityStore.isGuardianOrPendingAddition(wallet, newOwner); if (removedAsGuardian) { securityStore.removeGuardian(wallet, newOwner, now); } w.setOwner(newOwner); unlockWallet(wallet, true /*force*/); emit Recovered(wallet, oldOwner, newOwner, removedAsGuardian); } function getLock(address wallet) public view returns (uint _lock, address _lockedBy) { return getWalletLock(wallet); } function isLocked(address wallet) public view returns (bool) { return isWalletLocked(wallet); } function verifySigners( address wallet, bytes4 method, bytes memory data, address[] memory signers ) internal view override returns (bool) { if (method == this.addGuardian.selector || method == this.removeGuardian.selector || method == this.cancelGuardianAddition.selector || method == this.cancelGuardianRemoval.selector) { return isOnlySigner(Wallet(wallet).owner(), signers); } else if (method == this.lock.selector || method == this.unlock.selector) { address expectedSigner = extractAddressFromCallData(data, 1); return isOnlySigner(expectedSigner, signers) && controller.securityStore().isGuardian(wallet, expectedSigner); } else if (method == this.recover.selector) { return GuardianUtils.requireMajority( controller.securityStore(), wallet, signers, GuardianUtils.SigRequirement.OwnerNotAllowed ); } else { revert("INVALID_METHOD"); } } function reimbursable(bytes4 method) internal view override returns (bool) { if (method == this.lock.selector || method == this.unlock.selector) { return false; } else { return true; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract Controller","name":"_controller","type":"address"},{"internalType":"uint256","name":"_pendingPeriod","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"Activated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"Deactivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"},{"indexed":false,"internalType":"uint256","name":"group","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"effectiveTime","type":"uint256"}],"name":"GuardianAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"}],"name":"GuardianAdditionCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"}],"name":"GuardianRemovalCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"},{"indexed":false,"internalType":"uint256","name":"removalEffectiveTime","type":"uint256"}],"name":"GuardianRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"transactor","type":"address"},{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"metaTxHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"gasUsed","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"returnData","type":"bytes"}],"name":"MetaTxExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"},{"indexed":false,"internalType":"bool","name":"removedAsGuardian","type":"bool"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"lock","type":"uint256"}],"name":"WalletLock","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GUARDIANS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METATRANSACTION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_ACTIVE_GUARDIANS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"},{"internalType":"uint256","name":"group","type":"uint256"}],"name":"addGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"module","type":"address"}],"name":"addModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bindableMethods","outputs":[{"internalType":"bytes4[]","name":"methods","type":"bytes4[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"cancelGuardianAddition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"cancelGuardianRemoval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"collectTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"contract Controller","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"validUntil","type":"uint256"},{"internalType":"uint256[5]","name":"gasSetting","type":"uint256[5]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"address[]","name":"signers","type":"address[]"}],"name":"executeMetaTx","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getLock","outputs":[{"internalType":"uint256","name":"_lock","type":"uint256"},{"internalType":"address","name":"_lockedBy","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"lastNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"removeGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wallets","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200576938038062005769833981016040819052620000349162000183565b8180620000bf60405180606001604052806040518060400160405280601c81526020017f4c6f6f7072696e672057616c6c6574204d65746154784d6f64756c65000000008152508152602001604051806040016040528060038152602001620312e360ec1b8152508152602001306001600160a01b03168152506200011660201b620053aa1760201c565b600155600280546001600160a01b0319166001600160a01b039290921691909117905550806200010c5760405162461bcd60e51b8152600401620001039062000253565b60405180910390fd5b600455506200027a565b60405160009046906200012990620001bd565b60405180910390208360000151805190602001208460200151805190602001208386604001516040516020016200016595949392919062000227565b60405160208183030381529060405280519060200120915050919050565b6000806040838503121562000196578182fd5b82516001600160a01b0381168114620001ad578283fd5b6020939093015192949293505050565b7f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c6164647265737320602082015271766572696679696e67436f6e74726163742960701b604082015260520190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6020808252600d908201526c494e56414c49445f44454c415960981b604082015260600190565b6154df806200028a6000396000f3fe6080604052600436106101405760003560e01c80635a1db8c4116100b6578063a6eb06901161006f578063a6eb069014610349578063afa3363d14610369578063c0fd43b41461038b578063e674a0bd146103ab578063f77c4791146103cb578063fbc5d1ed146103ed57610140565b80635a1db8c41461027b578063648bf7741461029b5780636b9db4e6146102bb57806389b08f11146102e957806390502c2e146103095780639b27a90e1461032957610140565b80632d621c51116101085780632d621c51146101da578063328c0bc2146101ef5780633644e5151461020f578063422c1d37146102245780634a4fbeec1461023957806351b42b001461026657610140565b806307364c18146101455780630ab9ad33146101675780630f15f4c01461017a57806313d53dcf1461018f57806317ffe171146101ba575b600080fd5b34801561015157600080fd5b50610165610160366004614603565b610402565b005b610165610175366004614815565b61070d565b34801561018657600080fd5b50610165610aea565b34801561019b57600080fd5b506101a4610b2b565b6040516101b19190614bce565b60405180910390f35b3480156101c657600080fd5b506101656101d5366004614603565b610b30565b3480156101e657600080fd5b506101a4610dd5565b3480156101fb57600080fd5b5061016561020a36600461463b565b610dec565b34801561021b57600080fd5b506101a4611320565b34801561023057600080fd5b506101a4611326565b34801561024557600080fd5b506102596102543660046145cb565b61132b565b6040516101b19190614bc3565b34801561027257600080fd5b5061016561133e565b34801561028757600080fd5b50610165610296366004614603565b61137f565b3480156102a757600080fd5b506101656102b6366004614603565b61159d565b3480156102c757600080fd5b506102db6102d63660046145cb565b611aa8565b6040516101b1929190615272565b3480156102f557600080fd5b506101a46103043660046145cb565b611abd565b34801561031557600080fd5b5061016561032436600461467b565b611acf565b34801561033557600080fd5b50610165610344366004614603565b611cf5565b34801561035557600080fd5b50610165610364366004614603565b612137565b34801561037557600080fd5b5061037e612439565b6040516101b19190614b81565b34801561039757600080fd5b506101a46103a63660046145cb565b61243e565b3480156103b757600080fd5b506101656103c6366004614603565b612459565b3480156103d757600080fd5b506103e06125e8565b6040516101b19190614aed565b3480156103f957600080fd5b506101a46125f7565b6000541561042b5760405162461bcd60e51b815260040161042290614cf0565b60405180910390fd5b60016000558161043a816125fd565b156104575760405162461bcd60e51b8152600401610422906151c9565b82806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561049157600080fd5b505afa1580156104a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c991906145e7565b6001600160a01b0316336001600160a01b031614806104e757503330145b6105035760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561055157600080fd5b505afa158015610565573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058991906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016105b49190614aed565b600060405180830381600087803b1580156105ce57600080fd5b505af11580156105e2573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561063457600080fd5b505afa158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c91906145e7565b6001600160a01b03166307364c1885856040518363ffffffff1660e01b8152600401610699929190614b01565b600060405180830381600087803b1580156106b357600080fd5b505af11580156106c7573d6000803e3d6000fd5b50506040516001600160a01b038087169350871691507fa6c573e1154a7ad35f68b855687705be4e0933d1ab6ee4fd8308a1d0a4a52d4890600090a35050600080555050565b4284101561072d5760405162461bcd60e51b8152600401610422906150c6565b6107356143cd565b506040805160a08101825284516001600160a01b03908116825260208087015190830152858301519282018390526060808701519083015260808087015190911690820152906107975760405162461bcd60e51b815260040161042290614d8f565b600260009054906101000a90046001600160a01b03166001600160a01b03166306a32ffd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107e557600080fd5b505afa1580156107f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081d91906145e7565b6001600160a01b031681608001516001600160a01b0316146108515760405162461bcd60e51b81526004016104229061501c565b600061085c8861270a565b905060006108f76001546108f2604051806101600160405280866001600160a01b03168152602001306001600160a01b031681526020013481526020018d81526020018c81526020018b815260200187600001516001600160a01b0316815260200187602001518152602001876040015181526020018760600151815260200187608001516001600160a01b0316815250612717565b6127a6565b9050610904828a866127f6565b6109205760405162461bcd60e51b815260040161042290614f9b565b61093181858763ffffffff6128b216565b61094d5760405162461bcd60e51b81526004016104229061519d565b610958828983612990565b341561097c5761097a345a6001600160a01b038516919063ffffffff612a9116565b505b6109b061ea60603f61099c60408760400151612acc90919063ffffffff16565b816109a357fe5b049063ffffffff612b0016565b5a10156109cf5760405162461bcd60e51b81526004016104229061514d565b60005a905060006060306001600160a01b031686604001518d6040516109f59190614985565b60006040518083038160008787f1925050503d8060008114610a33576040519150601f19603f3d011682016040523d82523d6000602084013e610a38565b606091505b50915091505a60408701519303928310610a56578560400151610a58565b825b9250846001600160a01b0316336001600160a01b03167f4d3367ceeab65bf3b68cc4658d780a0f6e4101b2475aa8b6658c2df7851e12bb8d87878787604051610aa5959493929190615289565b60405180910390a3602086015115801590610acc5750610acc610ac78d612b23565b612b35565b15610adc57610adc858785612b7b565b505050505050505050505050565b33610af481612c21565b6040516001600160a01b038216907f0cc43938d137e7efade6a531f663e78c1fc75257b0d65ffda2fdaf70cb49cdf990600090a250565b600281565b60005415610b505760405162461bcd60e51b815260040161042290614cf0565b60016000558033301480610b6c5750336001600160a01b038216145b610b885760405162461bcd60e51b815260040161042290614d14565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1091906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401610c3d929190614b01565b60206040518083038186803b158015610c5557600080fd5b505afa158015610c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8d9190614788565b610ca95760405162461bcd60e51b815260040161042290614e1d565b600280546040805163d51b3a1b60e01b815290518893926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b158015610cef57600080fd5b505afa158015610d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2791906145e7565b6001600160a01b031663dc75049d836040518263ffffffff1660e01b8152600401610d529190614aed565b60206040518083038186803b158015610d6a57600080fd5b505afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da2919061491d565b1015610dc05760405162461bcd60e51b815260040161042290615215565b610dc986612cbf565b50506000805550505050565b604051610de1906149f9565b604051809103902081565b60005415610e0c5760405162461bcd60e51b815260040161042290614cf0565b600160005582610e1b816125fd565b15610e385760405162461bcd60e51b8152600401610422906151c9565b8383806001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e7d57600080fd5b505afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb591906145e7565b6001600160a01b03161415610edc5760405162461bcd60e51b81526004016104229061509d565b85806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1657600080fd5b505afa158015610f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4e91906145e7565b6001600160a01b0316336001600160a01b03161480610f6c57503330145b610f885760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd657600080fd5b505afa158015610fea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100e91906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016110399190614aed565b600060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050506001600160a01b0386166110915760405162461bcd60e51b815260040161042290614ebd565b601085106110b15760405162461bcd60e51b815260040161042290614cc9565b6002546040805163d51b3a1b60e01b815290516000926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906145e7565b6001600160a01b03166379e0adfd896040518263ffffffff1660e01b81526004016111599190614aed565b60206040518083038186803b15801561117157600080fd5b505afa158015611185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a9919061491d565b9050601481106111cb5760405162461bcd60e51b815260040161042290615071565b42600282106111db575060045442015b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561122957600080fd5b505afa15801561123d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126191906145e7565b6001600160a01b031663c0d9f7558a8a8a856040518563ffffffff1660e01b81526004016112929493929190614b3f565b600060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b50505050876001600160a01b0316896001600160a01b03167f90476f7f2bcb3682723cc19263e554ff706aa9a33b63d08e57dfee9f92bd217c89846040516113099291906152b6565b60405180910390a350506000805550505050505050565b60015481565b601481565b6000611336826125fd565b90505b919050565b3361134881612d51565b6040516001600160a01b038216907f749cb6b4c510bc468cf6b9c2086d6f0a54d6b18e25d37bf3200e68eab0880c0090600090a250565b6000541561139f5760405162461bcd60e51b815260040161042290614cf0565b600160008190555081806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113e157600080fd5b505afa1580156113f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141991906145e7565b6001600160a01b0316336001600160a01b0316148061143757503330145b6114535760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114a157600080fd5b505afa1580156114b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016115049190614aed565b600060405180830381600087803b15801561151e57600080fd5b505af1158015611532573d6000803e3d6000fd5b5050604051631ed86f1960e01b81526001600160a01b0386169250631ed86f199150611562908590600401614aed565b600060405180830381600087803b15801561157c57600080fd5b505af1158015611590573d6000803e3d6000fd5b5050600080555050505050565b600054156115bd5760405162461bcd60e51b815260040161042290614cf0565b60016000819055508181806001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164291906145e7565b6001600160a01b031614156116695760405162461bcd60e51b81526004016104229061509d565b3330146116885760405162461bcd60e51b815260040161042290614fee565b600280546040805163d51b3a1b60e01b815290518793926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156116ce57600080fd5b505afa1580156116e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170691906145e7565b6001600160a01b031663dc75049d836040518263ffffffff1660e01b81526004016117319190614aed565b60206040518083038186803b15801561174957600080fd5b505afa15801561175d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611781919061491d565b101561179f5760405162461bcd60e51b815260040161042290615215565b60008590506000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156117df57600080fd5b505afa1580156117f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181791906145e7565b9050806001600160a01b0316866001600160a01b0316141561184b5760405162461bcd60e51b815260040161042290614fc8565b6001600160a01b0386166118715760405162461bcd60e51b815260040161042290614ebd565b6002546040805163d51b3a1b60e01b815290516000926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156118b657600080fd5b505afa1580156118ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ee91906145e7565b90506000816001600160a01b031663379d86b48a8a6040518363ffffffff1660e01b8152600401611920929190614b01565b60206040518083038186803b15801561193857600080fd5b505afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190614788565b905080156119db576040516332e93cf760e11b81526001600160a01b038316906365d279ee906119a8908c908c904290600401614b1b565b600060405180830381600087803b1580156119c257600080fd5b505af11580156119d6573d6000803e3d6000fd5b505050505b6040516313af403560e01b81526001600160a01b038516906313af403590611a07908b90600401614aed565b600060405180830381600087803b158015611a2157600080fd5b505af1158015611a35573d6000803e3d6000fd5b50505050611a44896001612dea565b876001600160a01b0316836001600160a01b03168a6001600160a01b03167fa100e59fdf0c345320069af44de9180371fed71eee63f20e008e17be73e8f9b684604051611a919190614bc3565b60405180910390a450506000805550505050505050565b600080611ab483613057565b91509150915091565b60036020526000908152604090205481565b60005415611aef5760405162461bcd60e51b815260040161042290614cf0565b60016000908155600254604080516306a32ffd60e01b815290516001600160a01b03909216916306a32ffd91600480820192602092909190829003018186803b158015611b3b57600080fd5b505afa158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7391906145e7565b905060005b82811015611ceb576000848483818110611b8e57fe5b9050602002016020810190611ba391906145cb565b90506001600160a01b038116611bd75747611bd0815a6001600160a01b038716919063ffffffff612a9116565b5050611ce2565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190611c06903090600401614aed565b60206040518083038186803b158015611c1e57600080fd5b505afa158015611c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c56919061491d565b90508015611ce05760405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb90611c8c9087908590600401614b68565b602060405180830381600087803b158015611ca657600080fd5b505af1158015611cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cde9190614788565b505b505b50600101611b78565b5050600080555050565b60005415611d155760405162461bcd60e51b815260040161042290614cf0565b600160005581611d24816125fd565b15611d415760405162461bcd60e51b8152600401610422906151c9565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d9157600080fd5b505afa158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc991906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401611df6929190614b01565b60206040518083038186803b158015611e0e57600080fd5b505afa158015611e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e469190614788565b611e625760405162461bcd60e51b815260040161042290614e1d565b84806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e9c57600080fd5b505afa158015611eb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed491906145e7565b6001600160a01b0316336001600160a01b03161480611ef257503330145b611f0e5760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9491906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b8152600401611fbf9190614aed565b600060405180830381600087803b158015611fd957600080fd5b505af1158015611fed573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561203f57600080fd5b505afa158015612053573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207791906145e7565b6001600160a01b03166365d279ee878760045442016040518463ffffffff1660e01b81526004016120aa93929190614b1b565b600060405180830381600087803b1580156120c457600080fd5b505af11580156120d8573d6000803e3d6000fd5b50505050846001600160a01b0316866001600160a01b03167f3b474d5aea4286914f107a200bc4aefdff380346cf5f4b744aa13f5e7de416ac60045442016040516121239190614bce565b60405180910390a350506000805550505050565b600054156121575760405162461bcd60e51b815260040161042290614cf0565b600160005581612166816125fd565b156121835760405162461bcd60e51b8152600401610422906151c9565b82806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156121bd57600080fd5b505afa1580156121d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f591906145e7565b6001600160a01b0316336001600160a01b0316148061221357503330145b61222f5760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561227d57600080fd5b505afa158015612291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b591906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016122e09190614aed565b600060405180830381600087803b1580156122fa57600080fd5b505af115801561230e573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145e7565b6001600160a01b031663a6eb069085856040518363ffffffff1660e01b81526004016123c5929190614b01565b600060405180830381600087803b1580156123df57600080fd5b505af11580156123f3573d6000803e3d6000fd5b50506040516001600160a01b038087169350871691507faa13b27c23e9e3f3d5f3861a53b7a2931e019170a6a19ed64942e26a1dd5987a90600090a35050600080555050565b606090565b6001600160a01b031660009081526003602052604090205490565b600054156124795760405162461bcd60e51b815260040161042290614cf0565b600160005580333014806124955750336001600160a01b038216145b6124b15760405162461bcd60e51b815260040161042290614d14565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561250157600080fd5b505afa158015612515573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253991906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401612566929190614b01565b60206040518083038186803b15801561257e57600080fd5b505afa158015612592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b69190614788565b6125d25760405162461bcd60e51b815260040161042290614e1d565b6125dd856000612dea565b505060008055505050565b6002546001600160a01b031681565b60045481565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561264e57600080fd5b505afa158015612662573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268691906145e7565b6001600160a01b0316636b9db4e6846040518263ffffffff1660e01b81526004016126b19190614aed565b604080518083038186803b1580156126c857600080fd5b505afa1580156126dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127009190614935565b5042109392505050565b600061133682600061315a565b6000604051612725906149f9565b604051809103902082600001518360200151846040015185606001518051906020012086608001518760a001518860c001518960e001518a61010001518b61012001518c61014001516040516020016127899c9b9a99989796959493929190614bd7565b604051602081830303815290604052805190602001209050919050565b600060405180604001604052806002815260200161190160f01b81525083836040516020016127d7939291906149a1565b6040516020818303038152906040528051906020012090505b92915050565b60008061280284612b23565b90506001600160e01b031981166316876e3160e21b141561289f57612897856001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561285957600080fd5b505afa15801561286d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289191906145e7565b84613172565b9150506128ab565b612897858286866131b1565b9392505050565b600081518351146128d55760405162461bcd60e51b815260040161042290614dba565b6000805b845181101561298457816001600160a01b03168582815181106128f857fe5b60200260200101516001600160a01b0316116129265760405162461bcd60e51b815260040161042290614ee3565b84818151811061293257fe5b6020026020010151915061296d8686838151811061294c57fe5b602002602001015186848151811061296057fe5b60200260200101516134bc565b61297c576000925050506128ab565b6001016128d9565b50600195945050505050565b81612a15576001600160a01b038316600090815260036020908152604080832084845260010190915290205460ff16156129dc5760405162461bcd60e51b815260040161042290615177565b6001600160a01b03831660009081526003602090815260408083208484526001908101909252909120805460ff19169091179055612a8c565b6001600160a01b0383166000908152600360205260409020548211612a4c5760405162461bcd60e51b815260040161042290614e6d565b43608083901c1115612a705760405162461bcd60e51b815260040161042290614f12565b6001600160a01b03831660009081526003602052604090208290555b505050565b6000612aad6001600160a01b038516848463ffffffff6135e716565b9050806128ab5760405162461bcd60e51b815260040161042290614e43565b818102821580612ae4575081838281612ae157fe5b04145b6127f05760405162461bcd60e51b81526004016104229061524c565b818101828110156127f05760405162461bcd60e51b81526004016104229061504b565b6000611336828263ffffffff61367416565b60006001600160e01b031982166317ffe17160e01b1480612b6657506001600160e01b0319821663e674a0bd60e01b145b15612b7357506000611339565b506001611339565b6000612ba88360200151612b9c856060015185612b0090919063ffffffff16565b9063ffffffff612acc16565b9050612bb984846000015183613690565b608083015183516001600160a01b0316612bee57612be88582846040518060200160405280600081525061381f565b50612c1a565b612bfe85856000015183856138b4565b612c1a5760405162461bcd60e51b815260040161042290614f3b565b5050505050565b806060612c2c612439565b905060005b8151811015612cb957826001600160a01b031663b149206e838381518110612c5557fe5b6020026020010151306040518363ffffffff1660e01b8152600401612c7b929190614c57565b600060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505060019092019150612c319050565b50505050565b612d4e81600260009054906101000a90046001600160a01b03166001600160a01b03166326c8fded6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d1157600080fd5b505afa158015612d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d49919061491d565b61394a565b50565b806060612d5c612439565b905060005b8151811015612cb957826001600160a01b031663b149206e838381518110612d8557fe5b602002602001015160006040518363ffffffff1660e01b8152600401612dac929190614c57565b600060405180830381600087803b158015612dc657600080fd5b505af1158015612dda573d6000803e3d6000fd5b505060019092019150612d619050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e3b57600080fd5b505afa158015612e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7391906145e7565b6001600160a01b0316636b9db4e6856040518263ffffffff1660e01b8152600401612e9e9190614aed565b604080518083038186803b158015612eb557600080fd5b505afa158015612ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eed9190614935565b9150915042821115612cb9578280612f0d57506001600160a01b03811630145b612f295760405162461bcd60e51b815260040161042290614c9f565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612f7757600080fd5b505afa158015612f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612faf91906145e7565b6001600160a01b031663b0fc29e68560006040518363ffffffff1660e01b8152600401612fdd929190614b68565b600060405180830381600087803b158015612ff757600080fd5b505af115801561300b573d6000803e3d6000fd5b50505050836001600160a01b03167f8f830d5754bc62bcea9615494ff998b81aaa2308c9e26dd55750e0e6028b482660006040516130499190614bce565b60405180910390a250505050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156130a857600080fd5b505afa1580156130bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130e091906145e7565b6001600160a01b0316636b9db4e6846040518263ffffffff1660e01b815260040161310b9190614aed565b604080518083038186803b15801561312257600080fd5b505afa158015613136573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab49190614935565b60006128ab836010602085020163ffffffff613aa716565b6000815160011480156128ab5750826001600160a01b03168260008151811061319757fe5b60200260200101516001600160a01b031614905092915050565b60006001600160e01b0319841663194605e160e11b14806131e257506001600160e01b03198416634d93d48760e11b145b806131fd57506001600160e01b03198416630a6eb06960e41b145b8061321757506001600160e01b0319841662e6c98360e31b145b1561329d57613296856001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561325857600080fd5b505afa15801561326c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061329091906145e7565b83613172565b90506134b4565b6001600160e01b031984166317ffe17160e01b14806132cc57506001600160e01b0319841663e674a0bd60e01b145b156133fc5760006132de84600161315a565b90506132ea8184613172565b80156133f45750600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561333f57600080fd5b505afa158015613353573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337791906145e7565b6001600160a01b031663d4ee973487836040518363ffffffff1660e01b81526004016133a4929190614b01565b60206040518083038186803b1580156133bc57600080fd5b505afa1580156133d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f49190614788565b9150506134b4565b6001600160e01b03198416631922fddd60e21b141561349c576002546040805163d51b3a1b60e01b81529051613296926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b15801561345b57600080fd5b505afa15801561346f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349391906145e7565b86846000613aca565b60405162461bcd60e51b815260040161042290614d3a565b949350505050565b6000806134d46001845161402a90919063ffffffff16565b905060006134e8848363ffffffff61405216565b60ff1660048111156134f657fe5b9050606061350c8560008563ffffffff61406e16565b9050600482600481111561351c57fe5b14156135375761352d8787836140ee565b93505050506128ab565b600282600481111561354557fe5b141561357357856001600160a01b031661355f8883614205565b6001600160a01b03161493505050506128ab565b600382600481111561358157fe5b14156135db5760008760405160200161359a91906149c8565b604051602081830303815290604052805190602001209050866001600160a01b03166135c68284614205565b6001600160a01b0316149450505050506128ab565b600093505050506128ab565b6000826135f6575060016128ab565b600061360a856001600160a01b03166142dd565b9050806001600160a01b0316848490604051613625906142dd565b600060405180830381858888f193505050503d8060008114613663576040519150601f19603f3d011682016040523d82523d6000602084013e613668565b606091505b50909695505050505050565b6000816004018351101561368757600080fd5b50016020015190565b6000811180156136b1575060006136a56142e0565b6001600160a01b031614155b15612a8c5760025460408051632630c12f60e01b815290516000926001600160a01b031691632630c12f916004808301926020929190829003018186803b1580156136fb57600080fd5b505afa15801561370f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373391906145e7565b6001600160a01b031663f182178384846040518363ffffffff1660e01b8152600401613760929190614b68565b60206040518083038186803b15801561377857600080fd5b505afa15801561378c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b0919061491d565b90506137ba6142e0565b6001600160a01b031663c976bd9a85836040518363ffffffff1660e01b81526004016137e7929190614b68565b600060405180830381600087803b15801561380157600080fd5b505af1158015613815573d6000803e3d6000fd5b5050505050505050565b604051631c48add360e21b81526060906001600160a01b03861690637122b74c90613855906001908890889088906004016152c4565b600060405180830381600087803b15801561386f57600080fd5b505af1158015613883573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138ab91908101906147a8565b95945050505050565b6000606063a9059cbb60e01b84846040516024016138d3929190614b68565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506060613916878760008561381f565b80519091501561393b57808060200190518101906139349190614788565b9250613940565b600192505b5050949350505050565b81613954816125fd565b156139715760405162461bcd60e51b8152600401610422906151c9565b600082116139915760405162461bcd60e51b8152600401610422906150e7565b6002546040805163d51b3a1b60e01b81529051428501926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156139d757600080fd5b505afa1580156139eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a0f91906145e7565b6001600160a01b031663b0fc29e685836040518363ffffffff1660e01b8152600401613a3c929190614b68565b600060405180830381600087803b158015613a5657600080fd5b505af1158015613a6a573d6000803e3d6000fd5b50505050836001600160a01b03167f8f830d5754bc62bcea9615494ff998b81aaa2308c9e26dd55750e0e6028b4826826040516130499190614bce565b60008160140183511015613aba57600080fd5b500160200151600160601b900490565b6000825160001415613ade575060006134b4565b604051630319d8a560e11b81526060906001600160a01b03871690630633b14a90613b0d908890600401614aed565b60006040518083038186803b158015613b2557600080fd5b505afa158015613b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b6191908101906146e7565b9050613b6b61440e565b613b7482614362565b905060008090506060865167ffffffffffffffff81118015613b9557600080fd5b50604051908082528060200260200182016040528015613bcf57816020015b613bbc61442d565b815260200190600190039081613bb45790505b5090506000886001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0d57600080fd5b505afa158015613c21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c4591906145e7565b9050600080805b8a51811015613e4857816001600160a01b03168b8281518110613c6b57fe5b60200260200101516001600160a01b031611613c995760405162461bcd60e51b815260040161042290614ee3565b8a8181518110613ca557fe5b60200260200101519150836001600160a01b03168b8281518110613cc557fe5b60200260200101516001600160a01b03161415613ce55760019550613e40565b8c6001600160a01b031663d4ee97348d8d8481518110613d0157fe5b60200260200101516040518363ffffffff1660e01b8152600401613d26929190614b01565b60206040518083038186803b158015613d3e57600080fd5b505afa158015613d52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d769190614788565b613d925760405162461bcd60e51b815260040161042290614d62565b8c6001600160a01b031663da34a8508d8d8481518110613dae57fe5b60200260200101516040518363ffffffff1660e01b8152600401613dd3929190614b01565b60806040518083038186803b158015613deb57600080fd5b505afa158015613dff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e239190614902565b8551600185019487918110613e3457fe5b60200260200101819052505b600101613c4c565b506002896002811115613e5757fe5b1415613e7f5784613e7a5760405162461bcd60e51b815260040161042290614de6565b613eb1565b6000896002811115613e8d57fe5b1415613eb1578415613eb15760405162461bcd60e51b81526004016104229061510b565b818452613ebc61440e565b613ec585614362565b9050600080808c6002811115613ed757fe5b14613ef65760018201915087613eee576000613ef1565b60015b60ff16015b885115613f065788518351920191015b60015b6010811015613fee5760008a8260108110613f2057fe5b60200201511115613fe6576001830192506006811015613f68576000848260108110613f4857fe5b602002015111613f59576000613f5c565b60015b60ff1682019150613fe6565b600b811015613fa657613f9b848260108110613f8057fe5b60200201518b8360108110613f9157fe5b60200201516143b3565b613f59576000613f5c565b613fd0848260108110613fb557fe5b60200201518b8360108110613fc657fe5b60200201516143c1565b613fdb576000613fde565b60015b60ff16820191505b600101613f09565b50613ff981836143c1565b6140155760405162461bcd60e51b8152600401610422906151e9565b5060019e9d5050505050505050505050505050565b60008282111561404c5760405162461bcd60e51b815260040161042290614e96565b50900390565b6000816001018351101561406557600080fd5b50016001015190565b60608183018451101561408057600080fd5b60608215801561409b576040519150602082016040526140e5565b6040519150601f8416801560200281840101858101878315602002848b0101015b818310156140d45780518352602092830192016140bc565b5050858452601f01601f1916604052505b50949350505050565b600060606320c13b0b60e01b8560405160200161410b9190614bce565b60408051601f198184030181529082905261412a918690602401614c7a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050905060006060856001600160a01b03168360405161417b9190614985565b600060405180830381855afa9150503d80600081146141b6576040519150601f19603f3d011682016040523d82523d6000602084013e6141bb565b606091505b50915091508180156141ce575080516020145b80156141fa57506320c13b0b60e01b6141ee82600063ffffffff61367416565b6001600160e01b031916145b979650505050505050565b60008151604114614218575060006127f0565b60208201516040830151604184015160ff167f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561425e57600093505050506127f0565b8060ff16601b148061427357508060ff16601c145b156142d1576001868285856040516000815260200160405260405161429b9493929190614c39565b6020604051602081039080840390855afa1580156142bd573d6000803e3d6000fd5b5050506020604051035193505050506127f0565b600093505050506127f0565b90565b60025460408051633674412160e21b815290516000926001600160a01b03169163d9d10484916004808301926020929190829003018186803b15801561432557600080fd5b505afa158015614339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061435d91906145e7565b905090565b61436a61440e565b60005b82518110156143ad578183828151811061438357fe5b6020026020010151602001516010811061439957fe5b60200201805160019081019091520161436d565b50919050565b600260019190910104111590565b60029004600101111590565b6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518061020001604052806010906020820280368337509192915050565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b600082601f83011261446e578081fd5b813561448161447c82615325565b6152fe565b8181529150602080830190848101818402860182018710156144a257600080fd5b60005b848110156144ca5781356144b881615395565b845292820192908201906001016144a5565b505050505092915050565b600082601f8301126144e5578081fd5b81356144f361447c82615325565b818152915060208083019084810160005b848110156144ca5761451b888484358a010161452d565b84529282019290820190600101614504565b600082601f83011261453d578081fd5b813561454b61447c82615345565b915080825283602082850101111561456257600080fd5b8060208401602084013760009082016020015292915050565b60006080828403121561458c578081fd5b61459660806152fe565b905081516145a381615395565b8082525060208201516020820152604082015160408201526060820151606082015292915050565b6000602082840312156145dc578081fd5b81356128ab81615395565b6000602082840312156145f8578081fd5b81516128ab81615395565b60008060408385031215614615578081fd5b823561462081615395565b9150602083013561463081615395565b809150509250929050565b60008060006060848603121561464f578081fd5b833561465a81615395565b9250602084013561466a81615395565b929592945050506040919091013590565b6000806020838503121561468d578182fd5b823567ffffffffffffffff808211156146a4578384fd5b81850186601f8201126146b5578485fd5b80359250818311156146c5578485fd5b86602080850283010111156146d8578485fd5b60200196919550909350505050565b600060208083850312156146f9578182fd5b825167ffffffffffffffff81111561470f578283fd5b80840185601f820112614720578384fd5b8051915061473061447c83615325565b828152838101908285016080808602850187018a101561474e578788fd5b8794505b8585101561477a576147648a8361457b565b8452600194909401939286019290810190614752565b509098975050505050505050565b600060208284031215614799578081fd5b815180151581146128ab578182fd5b6000602082840312156147b9578081fd5b815167ffffffffffffffff8111156147cf578182fd5b80830184601f8201126147e0578283fd5b805191506147f061447c83615345565b828152856020848401011115614804578384fd5b6138ab836020830160208501615369565b600080600080600080610140878903121561482e578384fd5b863567ffffffffffffffff80821115614845578586fd5b6148518a838b0161452d565b9750602091508189013596506040890135955089607f8a0112614872578384fd5b61487c60a06152fe565b8060608b016101008c018d811115614892578788fd5b875b60058110156148b157823585529386019391860191600101614894565b509197505035925050808211156148c6578384fd5b6148d28a838b016144d5565b93506101208901359150808211156148e8578283fd5b506148f589828a0161445e565b9150509295509295509295565b600060808284031215614913578081fd5b6128ab838361457b565b60006020828403121561492e578081fd5b5051919050565b60008060408385031215614947578182fd5b82519150602083015161463081615395565b60008151808452614971816020860160208601615369565b601f01601f19169290920160200192915050565b60008251614997818460208701615369565b9190910192915050565b600084516149b3818460208901615369565b91909101928352506020820152604001919050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b7f4d6574615472616e73616374696f6e28616464726573732077616c6c65742c6181527f646472657373206d6f64756c652c75696e743235362076616c75652c6279746560208201527f7320646174612c75696e74323536206e6f6e63652c75696e743235362076616c60408201527f6964556e74696c2c6164647265737320676173546f6b656e2c75696e7432353660608201527f2067617350726963652c75696e74323536206761734c696d69742c75696e743260808201527f3536206761734f766572686561642c616464726573732066656552656369706960a082015263656e742960e01b60c082015260c40190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156136685783516001600160e01b03191683529284019291840191600101614b9d565b901515815260200190565b90815260200190565b9b8c526001600160a01b039a8b1660208d0152988a1660408c015260608b019790975260808a019590955260a089019390935260c0880191909152851660e0870152610100860152610120850152610140840152166101608201526101800190565b93845260ff9290921660208401526040830152606082015260800190565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b600060408252614c8d6040830185614959565b82810360208401526138ab8185614959565b60208082526010908201526f554e41424c455f544f5f554e4c4f434b60801b604082015260600190565b6020808252600d908201526c0494e56414c49445f47524f555609c1b604082015260600190565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b6020808252600e908201526d1253959053125117d351551213d160921b604082015260600190565b60208082526013908201527229a4a3a722a92fa727aa2fa3aaa0a92224a0a760691b604082015260600190565b6020808252601190820152701253959053125117d1d054d7d312535255607a1b604082015260600190565b6020808252601290820152714241445f5349474e41545552455f4441544160701b604082015260600190565b6020808252601f908201527f57414c4c45545f4f574e45525f5349474e41545552455f524551554952454400604082015260600190565b6020808252600c908201526b2727aa2fa3aaa0a92224a0a760a11b604082015260600190565b60208082526010908201526f5452414e534645525f4641494c55524560801b604082015260600190565b6020808252600f908201526e1393d390d157d513d3d7d4d3505313608a1b604082015260600190565b6020808252600d908201526c5355425f554e444552464c4f5760981b604082015260600190565b6020808252600c908201526b5a45524f5f4144445245535360a01b604082015260600190565b60208082526015908201527424a72b20a624a22fa9a4a3a722a929afa7a92222a960591b604082015260600190565b6020808252600f908201526e4e4f4e43455f544f4f5f4c4152474560881b604082015260600190565b6020808252600f908201526e1514905394d1915497d19052531151608a1b604082015260600190565b6020808252601f908201527f4e4f545f46524f4d5f4d45544154585f4f525f57414c4c45545f4f574e455200604082015260600190565b60208082526013908201527213515510551617d5539055551213d492569151606a1b604082015260600190565b6020808252600c908201526b53414d455f4144445245535360a01b604082015260600190565b6020808252601490820152734e4f545f46524f4d5f544849535f4d4f44554c4560601b604082015260600190565b6020808252601590820152741253959053125117d1d054d7d49150d25412515395605a1b604082015260600190565b6020808252600c908201526b4144445f4f564552464c4f5760a01b604082015260600190565b602080825260129082015271544f4f5f4d414e595f475541524449414e5360701b604082015260600190565b6020808252600f908201526e24a9afaba0a62622aa2fa7aba722a960891b604082015260600190565b6020808252600790820152661156141254915160ca1b604082015260600190565b6020808252600a90820152695a45524f5f56414c554560b01b604082015260600190565b60208082526022908201527f57414c4c45545f4f574e45525f5349474e41545552455f4e4f545f414c4c4f57604082015261115160f21b606082015260800190565b60208082526010908201526f494e53554646494349454e545f47415360801b604082015260600190565b6020808252600c908201526b0929cac82989288be9082a6960a31b604082015260600190565b602080825260129082015271494e56414c49445f5349474e41545552455360701b604082015260600190565b6020808252600690820152651313d0d2d15160d21b604082015260600190565b6020808252601290820152714e4f545f454e4f5547485f5349474e45525360701b604082015260600190565b6020808252601a908201527f4e4f5f454e4f5547485f4143544956455f475541524449414e53000000000000604082015260600190565b6020808252600c908201526b4d554c5f4f564552464c4f5760a01b604082015260600190565b9182526001600160a01b0316602082015260400190565b6000868252856020830152846040830152831515606083015260a060808301526141fa60a0830184614959565b918252602082015260400190565b600060ff8616825260018060a01b0385166020830152836040830152608060608301526152f46080830184614959565b9695505050505050565b60405181810167ffffffffffffffff8111828210171561531d57600080fd5b604052919050565b600067ffffffffffffffff82111561533b578081fd5b5060209081020190565b600067ffffffffffffffff82111561535b578081fd5b50601f01601f191660200190565b60005b8381101561538457818101518382015260200161536c565b83811115612cb95750506000910152565b6001600160a01b0381168114612d4e57600080fd5b60405160009046906153bb90615413565b60405180910390208360000151805190602001208460200151805190602001208386604001516040516020016153f595949392919061547d565b60405160208183030381529060405280519060200120915050919050565b7f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c6164647265737320602082015271766572696679696e67436f6e74726163742960701b604082015260520190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a0019056fea26469706673582212201267bcae79de177d2b65c72feee17c0261b0f46e46f1a27383cf4e869d12e6e364736f6c63430006060033000000000000000000000000728348a947b808483365bf24f5f7886f0a9786bf0000000000000000000000000000000000000000000000000000000000015180
Deployed Bytecode
0x6080604052600436106101405760003560e01c80635a1db8c4116100b6578063a6eb06901161006f578063a6eb069014610349578063afa3363d14610369578063c0fd43b41461038b578063e674a0bd146103ab578063f77c4791146103cb578063fbc5d1ed146103ed57610140565b80635a1db8c41461027b578063648bf7741461029b5780636b9db4e6146102bb57806389b08f11146102e957806390502c2e146103095780639b27a90e1461032957610140565b80632d621c51116101085780632d621c51146101da578063328c0bc2146101ef5780633644e5151461020f578063422c1d37146102245780634a4fbeec1461023957806351b42b001461026657610140565b806307364c18146101455780630ab9ad33146101675780630f15f4c01461017a57806313d53dcf1461018f57806317ffe171146101ba575b600080fd5b34801561015157600080fd5b50610165610160366004614603565b610402565b005b610165610175366004614815565b61070d565b34801561018657600080fd5b50610165610aea565b34801561019b57600080fd5b506101a4610b2b565b6040516101b19190614bce565b60405180910390f35b3480156101c657600080fd5b506101656101d5366004614603565b610b30565b3480156101e657600080fd5b506101a4610dd5565b3480156101fb57600080fd5b5061016561020a36600461463b565b610dec565b34801561021b57600080fd5b506101a4611320565b34801561023057600080fd5b506101a4611326565b34801561024557600080fd5b506102596102543660046145cb565b61132b565b6040516101b19190614bc3565b34801561027257600080fd5b5061016561133e565b34801561028757600080fd5b50610165610296366004614603565b61137f565b3480156102a757600080fd5b506101656102b6366004614603565b61159d565b3480156102c757600080fd5b506102db6102d63660046145cb565b611aa8565b6040516101b1929190615272565b3480156102f557600080fd5b506101a46103043660046145cb565b611abd565b34801561031557600080fd5b5061016561032436600461467b565b611acf565b34801561033557600080fd5b50610165610344366004614603565b611cf5565b34801561035557600080fd5b50610165610364366004614603565b612137565b34801561037557600080fd5b5061037e612439565b6040516101b19190614b81565b34801561039757600080fd5b506101a46103a63660046145cb565b61243e565b3480156103b757600080fd5b506101656103c6366004614603565b612459565b3480156103d757600080fd5b506103e06125e8565b6040516101b19190614aed565b3480156103f957600080fd5b506101a46125f7565b6000541561042b5760405162461bcd60e51b815260040161042290614cf0565b60405180910390fd5b60016000558161043a816125fd565b156104575760405162461bcd60e51b8152600401610422906151c9565b82806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561049157600080fd5b505afa1580156104a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c991906145e7565b6001600160a01b0316336001600160a01b031614806104e757503330145b6105035760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561055157600080fd5b505afa158015610565573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058991906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016105b49190614aed565b600060405180830381600087803b1580156105ce57600080fd5b505af11580156105e2573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561063457600080fd5b505afa158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c91906145e7565b6001600160a01b03166307364c1885856040518363ffffffff1660e01b8152600401610699929190614b01565b600060405180830381600087803b1580156106b357600080fd5b505af11580156106c7573d6000803e3d6000fd5b50506040516001600160a01b038087169350871691507fa6c573e1154a7ad35f68b855687705be4e0933d1ab6ee4fd8308a1d0a4a52d4890600090a35050600080555050565b4284101561072d5760405162461bcd60e51b8152600401610422906150c6565b6107356143cd565b506040805160a08101825284516001600160a01b03908116825260208087015190830152858301519282018390526060808701519083015260808087015190911690820152906107975760405162461bcd60e51b815260040161042290614d8f565b600260009054906101000a90046001600160a01b03166001600160a01b03166306a32ffd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107e557600080fd5b505afa1580156107f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081d91906145e7565b6001600160a01b031681608001516001600160a01b0316146108515760405162461bcd60e51b81526004016104229061501c565b600061085c8861270a565b905060006108f76001546108f2604051806101600160405280866001600160a01b03168152602001306001600160a01b031681526020013481526020018d81526020018c81526020018b815260200187600001516001600160a01b0316815260200187602001518152602001876040015181526020018760600151815260200187608001516001600160a01b0316815250612717565b6127a6565b9050610904828a866127f6565b6109205760405162461bcd60e51b815260040161042290614f9b565b61093181858763ffffffff6128b216565b61094d5760405162461bcd60e51b81526004016104229061519d565b610958828983612990565b341561097c5761097a345a6001600160a01b038516919063ffffffff612a9116565b505b6109b061ea60603f61099c60408760400151612acc90919063ffffffff16565b816109a357fe5b049063ffffffff612b0016565b5a10156109cf5760405162461bcd60e51b81526004016104229061514d565b60005a905060006060306001600160a01b031686604001518d6040516109f59190614985565b60006040518083038160008787f1925050503d8060008114610a33576040519150601f19603f3d011682016040523d82523d6000602084013e610a38565b606091505b50915091505a60408701519303928310610a56578560400151610a58565b825b9250846001600160a01b0316336001600160a01b03167f4d3367ceeab65bf3b68cc4658d780a0f6e4101b2475aa8b6658c2df7851e12bb8d87878787604051610aa5959493929190615289565b60405180910390a3602086015115801590610acc5750610acc610ac78d612b23565b612b35565b15610adc57610adc858785612b7b565b505050505050505050505050565b33610af481612c21565b6040516001600160a01b038216907f0cc43938d137e7efade6a531f663e78c1fc75257b0d65ffda2fdaf70cb49cdf990600090a250565b600281565b60005415610b505760405162461bcd60e51b815260040161042290614cf0565b60016000558033301480610b6c5750336001600160a01b038216145b610b885760405162461bcd60e51b815260040161042290614d14565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1091906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401610c3d929190614b01565b60206040518083038186803b158015610c5557600080fd5b505afa158015610c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8d9190614788565b610ca95760405162461bcd60e51b815260040161042290614e1d565b600280546040805163d51b3a1b60e01b815290518893926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b158015610cef57600080fd5b505afa158015610d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2791906145e7565b6001600160a01b031663dc75049d836040518263ffffffff1660e01b8152600401610d529190614aed565b60206040518083038186803b158015610d6a57600080fd5b505afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da2919061491d565b1015610dc05760405162461bcd60e51b815260040161042290615215565b610dc986612cbf565b50506000805550505050565b604051610de1906149f9565b604051809103902081565b60005415610e0c5760405162461bcd60e51b815260040161042290614cf0565b600160005582610e1b816125fd565b15610e385760405162461bcd60e51b8152600401610422906151c9565b8383806001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e7d57600080fd5b505afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb591906145e7565b6001600160a01b03161415610edc5760405162461bcd60e51b81526004016104229061509d565b85806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1657600080fd5b505afa158015610f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4e91906145e7565b6001600160a01b0316336001600160a01b03161480610f6c57503330145b610f885760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd657600080fd5b505afa158015610fea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100e91906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016110399190614aed565b600060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050506001600160a01b0386166110915760405162461bcd60e51b815260040161042290614ebd565b601085106110b15760405162461bcd60e51b815260040161042290614cc9565b6002546040805163d51b3a1b60e01b815290516000926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906145e7565b6001600160a01b03166379e0adfd896040518263ffffffff1660e01b81526004016111599190614aed565b60206040518083038186803b15801561117157600080fd5b505afa158015611185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a9919061491d565b9050601481106111cb5760405162461bcd60e51b815260040161042290615071565b42600282106111db575060045442015b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561122957600080fd5b505afa15801561123d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126191906145e7565b6001600160a01b031663c0d9f7558a8a8a856040518563ffffffff1660e01b81526004016112929493929190614b3f565b600060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b50505050876001600160a01b0316896001600160a01b03167f90476f7f2bcb3682723cc19263e554ff706aa9a33b63d08e57dfee9f92bd217c89846040516113099291906152b6565b60405180910390a350506000805550505050505050565b60015481565b601481565b6000611336826125fd565b90505b919050565b3361134881612d51565b6040516001600160a01b038216907f749cb6b4c510bc468cf6b9c2086d6f0a54d6b18e25d37bf3200e68eab0880c0090600090a250565b6000541561139f5760405162461bcd60e51b815260040161042290614cf0565b600160008190555081806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113e157600080fd5b505afa1580156113f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141991906145e7565b6001600160a01b0316336001600160a01b0316148061143757503330145b6114535760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114a157600080fd5b505afa1580156114b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016115049190614aed565b600060405180830381600087803b15801561151e57600080fd5b505af1158015611532573d6000803e3d6000fd5b5050604051631ed86f1960e01b81526001600160a01b0386169250631ed86f199150611562908590600401614aed565b600060405180830381600087803b15801561157c57600080fd5b505af1158015611590573d6000803e3d6000fd5b5050600080555050505050565b600054156115bd5760405162461bcd60e51b815260040161042290614cf0565b60016000819055508181806001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164291906145e7565b6001600160a01b031614156116695760405162461bcd60e51b81526004016104229061509d565b3330146116885760405162461bcd60e51b815260040161042290614fee565b600280546040805163d51b3a1b60e01b815290518793926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156116ce57600080fd5b505afa1580156116e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170691906145e7565b6001600160a01b031663dc75049d836040518263ffffffff1660e01b81526004016117319190614aed565b60206040518083038186803b15801561174957600080fd5b505afa15801561175d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611781919061491d565b101561179f5760405162461bcd60e51b815260040161042290615215565b60008590506000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156117df57600080fd5b505afa1580156117f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181791906145e7565b9050806001600160a01b0316866001600160a01b0316141561184b5760405162461bcd60e51b815260040161042290614fc8565b6001600160a01b0386166118715760405162461bcd60e51b815260040161042290614ebd565b6002546040805163d51b3a1b60e01b815290516000926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156118b657600080fd5b505afa1580156118ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ee91906145e7565b90506000816001600160a01b031663379d86b48a8a6040518363ffffffff1660e01b8152600401611920929190614b01565b60206040518083038186803b15801561193857600080fd5b505afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190614788565b905080156119db576040516332e93cf760e11b81526001600160a01b038316906365d279ee906119a8908c908c904290600401614b1b565b600060405180830381600087803b1580156119c257600080fd5b505af11580156119d6573d6000803e3d6000fd5b505050505b6040516313af403560e01b81526001600160a01b038516906313af403590611a07908b90600401614aed565b600060405180830381600087803b158015611a2157600080fd5b505af1158015611a35573d6000803e3d6000fd5b50505050611a44896001612dea565b876001600160a01b0316836001600160a01b03168a6001600160a01b03167fa100e59fdf0c345320069af44de9180371fed71eee63f20e008e17be73e8f9b684604051611a919190614bc3565b60405180910390a450506000805550505050505050565b600080611ab483613057565b91509150915091565b60036020526000908152604090205481565b60005415611aef5760405162461bcd60e51b815260040161042290614cf0565b60016000908155600254604080516306a32ffd60e01b815290516001600160a01b03909216916306a32ffd91600480820192602092909190829003018186803b158015611b3b57600080fd5b505afa158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7391906145e7565b905060005b82811015611ceb576000848483818110611b8e57fe5b9050602002016020810190611ba391906145cb565b90506001600160a01b038116611bd75747611bd0815a6001600160a01b038716919063ffffffff612a9116565b5050611ce2565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190611c06903090600401614aed565b60206040518083038186803b158015611c1e57600080fd5b505afa158015611c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c56919061491d565b90508015611ce05760405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb90611c8c9087908590600401614b68565b602060405180830381600087803b158015611ca657600080fd5b505af1158015611cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cde9190614788565b505b505b50600101611b78565b5050600080555050565b60005415611d155760405162461bcd60e51b815260040161042290614cf0565b600160005581611d24816125fd565b15611d415760405162461bcd60e51b8152600401610422906151c9565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d9157600080fd5b505afa158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc991906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401611df6929190614b01565b60206040518083038186803b158015611e0e57600080fd5b505afa158015611e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e469190614788565b611e625760405162461bcd60e51b815260040161042290614e1d565b84806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e9c57600080fd5b505afa158015611eb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed491906145e7565b6001600160a01b0316336001600160a01b03161480611ef257503330145b611f0e5760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9491906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b8152600401611fbf9190614aed565b600060405180830381600087803b158015611fd957600080fd5b505af1158015611fed573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561203f57600080fd5b505afa158015612053573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207791906145e7565b6001600160a01b03166365d279ee878760045442016040518463ffffffff1660e01b81526004016120aa93929190614b1b565b600060405180830381600087803b1580156120c457600080fd5b505af11580156120d8573d6000803e3d6000fd5b50505050846001600160a01b0316866001600160a01b03167f3b474d5aea4286914f107a200bc4aefdff380346cf5f4b744aa13f5e7de416ac60045442016040516121239190614bce565b60405180910390a350506000805550505050565b600054156121575760405162461bcd60e51b815260040161042290614cf0565b600160005581612166816125fd565b156121835760405162461bcd60e51b8152600401610422906151c9565b82806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156121bd57600080fd5b505afa1580156121d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f591906145e7565b6001600160a01b0316336001600160a01b0316148061221357503330145b61222f5760405162461bcd60e51b815260040161042290614f64565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561227d57600080fd5b505afa158015612291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b591906145e7565b6001600160a01b031663d36e3517826040518263ffffffff1660e01b81526004016122e09190614aed565b600060405180830381600087803b1580156122fa57600080fd5b505af115801561230e573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145e7565b6001600160a01b031663a6eb069085856040518363ffffffff1660e01b81526004016123c5929190614b01565b600060405180830381600087803b1580156123df57600080fd5b505af11580156123f3573d6000803e3d6000fd5b50506040516001600160a01b038087169350871691507faa13b27c23e9e3f3d5f3861a53b7a2931e019170a6a19ed64942e26a1dd5987a90600090a35050600080555050565b606090565b6001600160a01b031660009081526003602052604090205490565b600054156124795760405162461bcd60e51b815260040161042290614cf0565b600160005580333014806124955750336001600160a01b038216145b6124b15760405162461bcd60e51b815260040161042290614d14565b8282600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561250157600080fd5b505afa158015612515573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253991906145e7565b6001600160a01b031663d4ee973483836040518363ffffffff1660e01b8152600401612566929190614b01565b60206040518083038186803b15801561257e57600080fd5b505afa158015612592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b69190614788565b6125d25760405162461bcd60e51b815260040161042290614e1d565b6125dd856000612dea565b505060008055505050565b6002546001600160a01b031681565b60045481565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561264e57600080fd5b505afa158015612662573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268691906145e7565b6001600160a01b0316636b9db4e6846040518263ffffffff1660e01b81526004016126b19190614aed565b604080518083038186803b1580156126c857600080fd5b505afa1580156126dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127009190614935565b5042109392505050565b600061133682600061315a565b6000604051612725906149f9565b604051809103902082600001518360200151846040015185606001518051906020012086608001518760a001518860c001518960e001518a61010001518b61012001518c61014001516040516020016127899c9b9a99989796959493929190614bd7565b604051602081830303815290604052805190602001209050919050565b600060405180604001604052806002815260200161190160f01b81525083836040516020016127d7939291906149a1565b6040516020818303038152906040528051906020012090505b92915050565b60008061280284612b23565b90506001600160e01b031981166316876e3160e21b141561289f57612897856001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561285957600080fd5b505afa15801561286d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289191906145e7565b84613172565b9150506128ab565b612897858286866131b1565b9392505050565b600081518351146128d55760405162461bcd60e51b815260040161042290614dba565b6000805b845181101561298457816001600160a01b03168582815181106128f857fe5b60200260200101516001600160a01b0316116129265760405162461bcd60e51b815260040161042290614ee3565b84818151811061293257fe5b6020026020010151915061296d8686838151811061294c57fe5b602002602001015186848151811061296057fe5b60200260200101516134bc565b61297c576000925050506128ab565b6001016128d9565b50600195945050505050565b81612a15576001600160a01b038316600090815260036020908152604080832084845260010190915290205460ff16156129dc5760405162461bcd60e51b815260040161042290615177565b6001600160a01b03831660009081526003602090815260408083208484526001908101909252909120805460ff19169091179055612a8c565b6001600160a01b0383166000908152600360205260409020548211612a4c5760405162461bcd60e51b815260040161042290614e6d565b43608083901c1115612a705760405162461bcd60e51b815260040161042290614f12565b6001600160a01b03831660009081526003602052604090208290555b505050565b6000612aad6001600160a01b038516848463ffffffff6135e716565b9050806128ab5760405162461bcd60e51b815260040161042290614e43565b818102821580612ae4575081838281612ae157fe5b04145b6127f05760405162461bcd60e51b81526004016104229061524c565b818101828110156127f05760405162461bcd60e51b81526004016104229061504b565b6000611336828263ffffffff61367416565b60006001600160e01b031982166317ffe17160e01b1480612b6657506001600160e01b0319821663e674a0bd60e01b145b15612b7357506000611339565b506001611339565b6000612ba88360200151612b9c856060015185612b0090919063ffffffff16565b9063ffffffff612acc16565b9050612bb984846000015183613690565b608083015183516001600160a01b0316612bee57612be88582846040518060200160405280600081525061381f565b50612c1a565b612bfe85856000015183856138b4565b612c1a5760405162461bcd60e51b815260040161042290614f3b565b5050505050565b806060612c2c612439565b905060005b8151811015612cb957826001600160a01b031663b149206e838381518110612c5557fe5b6020026020010151306040518363ffffffff1660e01b8152600401612c7b929190614c57565b600060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505060019092019150612c319050565b50505050565b612d4e81600260009054906101000a90046001600160a01b03166001600160a01b03166326c8fded6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d1157600080fd5b505afa158015612d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d49919061491d565b61394a565b50565b806060612d5c612439565b905060005b8151811015612cb957826001600160a01b031663b149206e838381518110612d8557fe5b602002602001015160006040518363ffffffff1660e01b8152600401612dac929190614c57565b600060405180830381600087803b158015612dc657600080fd5b505af1158015612dda573d6000803e3d6000fd5b505060019092019150612d619050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e3b57600080fd5b505afa158015612e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7391906145e7565b6001600160a01b0316636b9db4e6856040518263ffffffff1660e01b8152600401612e9e9190614aed565b604080518083038186803b158015612eb557600080fd5b505afa158015612ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eed9190614935565b9150915042821115612cb9578280612f0d57506001600160a01b03811630145b612f295760405162461bcd60e51b815260040161042290614c9f565b600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612f7757600080fd5b505afa158015612f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612faf91906145e7565b6001600160a01b031663b0fc29e68560006040518363ffffffff1660e01b8152600401612fdd929190614b68565b600060405180830381600087803b158015612ff757600080fd5b505af115801561300b573d6000803e3d6000fd5b50505050836001600160a01b03167f8f830d5754bc62bcea9615494ff998b81aaa2308c9e26dd55750e0e6028b482660006040516130499190614bce565b60405180910390a250505050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156130a857600080fd5b505afa1580156130bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130e091906145e7565b6001600160a01b0316636b9db4e6846040518263ffffffff1660e01b815260040161310b9190614aed565b604080518083038186803b15801561312257600080fd5b505afa158015613136573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab49190614935565b60006128ab836010602085020163ffffffff613aa716565b6000815160011480156128ab5750826001600160a01b03168260008151811061319757fe5b60200260200101516001600160a01b031614905092915050565b60006001600160e01b0319841663194605e160e11b14806131e257506001600160e01b03198416634d93d48760e11b145b806131fd57506001600160e01b03198416630a6eb06960e41b145b8061321757506001600160e01b0319841662e6c98360e31b145b1561329d57613296856001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561325857600080fd5b505afa15801561326c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061329091906145e7565b83613172565b90506134b4565b6001600160e01b031984166317ffe17160e01b14806132cc57506001600160e01b0319841663e674a0bd60e01b145b156133fc5760006132de84600161315a565b90506132ea8184613172565b80156133f45750600260009054906101000a90046001600160a01b03166001600160a01b031663d51b3a1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561333f57600080fd5b505afa158015613353573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337791906145e7565b6001600160a01b031663d4ee973487836040518363ffffffff1660e01b81526004016133a4929190614b01565b60206040518083038186803b1580156133bc57600080fd5b505afa1580156133d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f49190614788565b9150506134b4565b6001600160e01b03198416631922fddd60e21b141561349c576002546040805163d51b3a1b60e01b81529051613296926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b15801561345b57600080fd5b505afa15801561346f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349391906145e7565b86846000613aca565b60405162461bcd60e51b815260040161042290614d3a565b949350505050565b6000806134d46001845161402a90919063ffffffff16565b905060006134e8848363ffffffff61405216565b60ff1660048111156134f657fe5b9050606061350c8560008563ffffffff61406e16565b9050600482600481111561351c57fe5b14156135375761352d8787836140ee565b93505050506128ab565b600282600481111561354557fe5b141561357357856001600160a01b031661355f8883614205565b6001600160a01b03161493505050506128ab565b600382600481111561358157fe5b14156135db5760008760405160200161359a91906149c8565b604051602081830303815290604052805190602001209050866001600160a01b03166135c68284614205565b6001600160a01b0316149450505050506128ab565b600093505050506128ab565b6000826135f6575060016128ab565b600061360a856001600160a01b03166142dd565b9050806001600160a01b0316848490604051613625906142dd565b600060405180830381858888f193505050503d8060008114613663576040519150601f19603f3d011682016040523d82523d6000602084013e613668565b606091505b50909695505050505050565b6000816004018351101561368757600080fd5b50016020015190565b6000811180156136b1575060006136a56142e0565b6001600160a01b031614155b15612a8c5760025460408051632630c12f60e01b815290516000926001600160a01b031691632630c12f916004808301926020929190829003018186803b1580156136fb57600080fd5b505afa15801561370f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373391906145e7565b6001600160a01b031663f182178384846040518363ffffffff1660e01b8152600401613760929190614b68565b60206040518083038186803b15801561377857600080fd5b505afa15801561378c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b0919061491d565b90506137ba6142e0565b6001600160a01b031663c976bd9a85836040518363ffffffff1660e01b81526004016137e7929190614b68565b600060405180830381600087803b15801561380157600080fd5b505af1158015613815573d6000803e3d6000fd5b5050505050505050565b604051631c48add360e21b81526060906001600160a01b03861690637122b74c90613855906001908890889088906004016152c4565b600060405180830381600087803b15801561386f57600080fd5b505af1158015613883573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138ab91908101906147a8565b95945050505050565b6000606063a9059cbb60e01b84846040516024016138d3929190614b68565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506060613916878760008561381f565b80519091501561393b57808060200190518101906139349190614788565b9250613940565b600192505b5050949350505050565b81613954816125fd565b156139715760405162461bcd60e51b8152600401610422906151c9565b600082116139915760405162461bcd60e51b8152600401610422906150e7565b6002546040805163d51b3a1b60e01b81529051428501926001600160a01b03169163d51b3a1b916004808301926020929190829003018186803b1580156139d757600080fd5b505afa1580156139eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a0f91906145e7565b6001600160a01b031663b0fc29e685836040518363ffffffff1660e01b8152600401613a3c929190614b68565b600060405180830381600087803b158015613a5657600080fd5b505af1158015613a6a573d6000803e3d6000fd5b50505050836001600160a01b03167f8f830d5754bc62bcea9615494ff998b81aaa2308c9e26dd55750e0e6028b4826826040516130499190614bce565b60008160140183511015613aba57600080fd5b500160200151600160601b900490565b6000825160001415613ade575060006134b4565b604051630319d8a560e11b81526060906001600160a01b03871690630633b14a90613b0d908890600401614aed565b60006040518083038186803b158015613b2557600080fd5b505afa158015613b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b6191908101906146e7565b9050613b6b61440e565b613b7482614362565b905060008090506060865167ffffffffffffffff81118015613b9557600080fd5b50604051908082528060200260200182016040528015613bcf57816020015b613bbc61442d565b815260200190600190039081613bb45790505b5090506000886001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0d57600080fd5b505afa158015613c21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c4591906145e7565b9050600080805b8a51811015613e4857816001600160a01b03168b8281518110613c6b57fe5b60200260200101516001600160a01b031611613c995760405162461bcd60e51b815260040161042290614ee3565b8a8181518110613ca557fe5b60200260200101519150836001600160a01b03168b8281518110613cc557fe5b60200260200101516001600160a01b03161415613ce55760019550613e40565b8c6001600160a01b031663d4ee97348d8d8481518110613d0157fe5b60200260200101516040518363ffffffff1660e01b8152600401613d26929190614b01565b60206040518083038186803b158015613d3e57600080fd5b505afa158015613d52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d769190614788565b613d925760405162461bcd60e51b815260040161042290614d62565b8c6001600160a01b031663da34a8508d8d8481518110613dae57fe5b60200260200101516040518363ffffffff1660e01b8152600401613dd3929190614b01565b60806040518083038186803b158015613deb57600080fd5b505afa158015613dff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e239190614902565b8551600185019487918110613e3457fe5b60200260200101819052505b600101613c4c565b506002896002811115613e5757fe5b1415613e7f5784613e7a5760405162461bcd60e51b815260040161042290614de6565b613eb1565b6000896002811115613e8d57fe5b1415613eb1578415613eb15760405162461bcd60e51b81526004016104229061510b565b818452613ebc61440e565b613ec585614362565b9050600080808c6002811115613ed757fe5b14613ef65760018201915087613eee576000613ef1565b60015b60ff16015b885115613f065788518351920191015b60015b6010811015613fee5760008a8260108110613f2057fe5b60200201511115613fe6576001830192506006811015613f68576000848260108110613f4857fe5b602002015111613f59576000613f5c565b60015b60ff1682019150613fe6565b600b811015613fa657613f9b848260108110613f8057fe5b60200201518b8360108110613f9157fe5b60200201516143b3565b613f59576000613f5c565b613fd0848260108110613fb557fe5b60200201518b8360108110613fc657fe5b60200201516143c1565b613fdb576000613fde565b60015b60ff16820191505b600101613f09565b50613ff981836143c1565b6140155760405162461bcd60e51b8152600401610422906151e9565b5060019e9d5050505050505050505050505050565b60008282111561404c5760405162461bcd60e51b815260040161042290614e96565b50900390565b6000816001018351101561406557600080fd5b50016001015190565b60608183018451101561408057600080fd5b60608215801561409b576040519150602082016040526140e5565b6040519150601f8416801560200281840101858101878315602002848b0101015b818310156140d45780518352602092830192016140bc565b5050858452601f01601f1916604052505b50949350505050565b600060606320c13b0b60e01b8560405160200161410b9190614bce565b60408051601f198184030181529082905261412a918690602401614c7a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050905060006060856001600160a01b03168360405161417b9190614985565b600060405180830381855afa9150503d80600081146141b6576040519150601f19603f3d011682016040523d82523d6000602084013e6141bb565b606091505b50915091508180156141ce575080516020145b80156141fa57506320c13b0b60e01b6141ee82600063ffffffff61367416565b6001600160e01b031916145b979650505050505050565b60008151604114614218575060006127f0565b60208201516040830151604184015160ff167f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561425e57600093505050506127f0565b8060ff16601b148061427357508060ff16601c145b156142d1576001868285856040516000815260200160405260405161429b9493929190614c39565b6020604051602081039080840390855afa1580156142bd573d6000803e3d6000fd5b5050506020604051035193505050506127f0565b600093505050506127f0565b90565b60025460408051633674412160e21b815290516000926001600160a01b03169163d9d10484916004808301926020929190829003018186803b15801561432557600080fd5b505afa158015614339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061435d91906145e7565b905090565b61436a61440e565b60005b82518110156143ad578183828151811061438357fe5b6020026020010151602001516010811061439957fe5b60200201805160019081019091520161436d565b50919050565b600260019190910104111590565b60029004600101111590565b6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518061020001604052806010906020820280368337509192915050565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b600082601f83011261446e578081fd5b813561448161447c82615325565b6152fe565b8181529150602080830190848101818402860182018710156144a257600080fd5b60005b848110156144ca5781356144b881615395565b845292820192908201906001016144a5565b505050505092915050565b600082601f8301126144e5578081fd5b81356144f361447c82615325565b818152915060208083019084810160005b848110156144ca5761451b888484358a010161452d565b84529282019290820190600101614504565b600082601f83011261453d578081fd5b813561454b61447c82615345565b915080825283602082850101111561456257600080fd5b8060208401602084013760009082016020015292915050565b60006080828403121561458c578081fd5b61459660806152fe565b905081516145a381615395565b8082525060208201516020820152604082015160408201526060820151606082015292915050565b6000602082840312156145dc578081fd5b81356128ab81615395565b6000602082840312156145f8578081fd5b81516128ab81615395565b60008060408385031215614615578081fd5b823561462081615395565b9150602083013561463081615395565b809150509250929050565b60008060006060848603121561464f578081fd5b833561465a81615395565b9250602084013561466a81615395565b929592945050506040919091013590565b6000806020838503121561468d578182fd5b823567ffffffffffffffff808211156146a4578384fd5b81850186601f8201126146b5578485fd5b80359250818311156146c5578485fd5b86602080850283010111156146d8578485fd5b60200196919550909350505050565b600060208083850312156146f9578182fd5b825167ffffffffffffffff81111561470f578283fd5b80840185601f820112614720578384fd5b8051915061473061447c83615325565b828152838101908285016080808602850187018a101561474e578788fd5b8794505b8585101561477a576147648a8361457b565b8452600194909401939286019290810190614752565b509098975050505050505050565b600060208284031215614799578081fd5b815180151581146128ab578182fd5b6000602082840312156147b9578081fd5b815167ffffffffffffffff8111156147cf578182fd5b80830184601f8201126147e0578283fd5b805191506147f061447c83615345565b828152856020848401011115614804578384fd5b6138ab836020830160208501615369565b600080600080600080610140878903121561482e578384fd5b863567ffffffffffffffff80821115614845578586fd5b6148518a838b0161452d565b9750602091508189013596506040890135955089607f8a0112614872578384fd5b61487c60a06152fe565b8060608b016101008c018d811115614892578788fd5b875b60058110156148b157823585529386019391860191600101614894565b509197505035925050808211156148c6578384fd5b6148d28a838b016144d5565b93506101208901359150808211156148e8578283fd5b506148f589828a0161445e565b9150509295509295509295565b600060808284031215614913578081fd5b6128ab838361457b565b60006020828403121561492e578081fd5b5051919050565b60008060408385031215614947578182fd5b82519150602083015161463081615395565b60008151808452614971816020860160208601615369565b601f01601f19169290920160200192915050565b60008251614997818460208701615369565b9190910192915050565b600084516149b3818460208901615369565b91909101928352506020820152604001919050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b7f4d6574615472616e73616374696f6e28616464726573732077616c6c65742c6181527f646472657373206d6f64756c652c75696e743235362076616c75652c6279746560208201527f7320646174612c75696e74323536206e6f6e63652c75696e743235362076616c60408201527f6964556e74696c2c6164647265737320676173546f6b656e2c75696e7432353660608201527f2067617350726963652c75696e74323536206761734c696d69742c75696e743260808201527f3536206761734f766572686561642c616464726573732066656552656369706960a082015263656e742960e01b60c082015260c40190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156136685783516001600160e01b03191683529284019291840191600101614b9d565b901515815260200190565b90815260200190565b9b8c526001600160a01b039a8b1660208d0152988a1660408c015260608b019790975260808a019590955260a089019390935260c0880191909152851660e0870152610100860152610120850152610140840152166101608201526101800190565b93845260ff9290921660208401526040830152606082015260800190565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b600060408252614c8d6040830185614959565b82810360208401526138ab8185614959565b60208082526010908201526f554e41424c455f544f5f554e4c4f434b60801b604082015260600190565b6020808252600d908201526c0494e56414c49445f47524f555609c1b604082015260600190565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b6020808252600e908201526d1253959053125117d351551213d160921b604082015260600190565b60208082526013908201527229a4a3a722a92fa727aa2fa3aaa0a92224a0a760691b604082015260600190565b6020808252601190820152701253959053125117d1d054d7d312535255607a1b604082015260600190565b6020808252601290820152714241445f5349474e41545552455f4441544160701b604082015260600190565b6020808252601f908201527f57414c4c45545f4f574e45525f5349474e41545552455f524551554952454400604082015260600190565b6020808252600c908201526b2727aa2fa3aaa0a92224a0a760a11b604082015260600190565b60208082526010908201526f5452414e534645525f4641494c55524560801b604082015260600190565b6020808252600f908201526e1393d390d157d513d3d7d4d3505313608a1b604082015260600190565b6020808252600d908201526c5355425f554e444552464c4f5760981b604082015260600190565b6020808252600c908201526b5a45524f5f4144445245535360a01b604082015260600190565b60208082526015908201527424a72b20a624a22fa9a4a3a722a929afa7a92222a960591b604082015260600190565b6020808252600f908201526e4e4f4e43455f544f4f5f4c4152474560881b604082015260600190565b6020808252600f908201526e1514905394d1915497d19052531151608a1b604082015260600190565b6020808252601f908201527f4e4f545f46524f4d5f4d45544154585f4f525f57414c4c45545f4f574e455200604082015260600190565b60208082526013908201527213515510551617d5539055551213d492569151606a1b604082015260600190565b6020808252600c908201526b53414d455f4144445245535360a01b604082015260600190565b6020808252601490820152734e4f545f46524f4d5f544849535f4d4f44554c4560601b604082015260600190565b6020808252601590820152741253959053125117d1d054d7d49150d25412515395605a1b604082015260600190565b6020808252600c908201526b4144445f4f564552464c4f5760a01b604082015260600190565b602080825260129082015271544f4f5f4d414e595f475541524449414e5360701b604082015260600190565b6020808252600f908201526e24a9afaba0a62622aa2fa7aba722a960891b604082015260600190565b6020808252600790820152661156141254915160ca1b604082015260600190565b6020808252600a90820152695a45524f5f56414c554560b01b604082015260600190565b60208082526022908201527f57414c4c45545f4f574e45525f5349474e41545552455f4e4f545f414c4c4f57604082015261115160f21b606082015260800190565b60208082526010908201526f494e53554646494349454e545f47415360801b604082015260600190565b6020808252600c908201526b0929cac82989288be9082a6960a31b604082015260600190565b602080825260129082015271494e56414c49445f5349474e41545552455360701b604082015260600190565b6020808252600690820152651313d0d2d15160d21b604082015260600190565b6020808252601290820152714e4f545f454e4f5547485f5349474e45525360701b604082015260600190565b6020808252601a908201527f4e4f5f454e4f5547485f4143544956455f475541524449414e53000000000000604082015260600190565b6020808252600c908201526b4d554c5f4f564552464c4f5760a01b604082015260600190565b9182526001600160a01b0316602082015260400190565b6000868252856020830152846040830152831515606083015260a060808301526141fa60a0830184614959565b918252602082015260400190565b600060ff8616825260018060a01b0385166020830152836040830152608060608301526152f46080830184614959565b9695505050505050565b60405181810167ffffffffffffffff8111828210171561531d57600080fd5b604052919050565b600067ffffffffffffffff82111561533b578081fd5b5060209081020190565b600067ffffffffffffffff82111561535b578081fd5b50601f01601f191660200190565b60005b8381101561538457818101518382015260200161536c565b83811115612cb95750506000910152565b6001600160a01b0381168114612d4e57600080fd5b60405160009046906153bb90615413565b60405180910390208360000151805190602001208460200151805190602001208386604001516040516020016153f595949392919061547d565b60405160208183030381529060405280519060200120915050919050565b7f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c6164647265737320602082015271766572696679696e67436f6e74726163742960701b604082015260520190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a0019056fea26469706673582212201267bcae79de177d2b65c72feee17c0261b0f46e46f1a27383cf4e869d12e6e364736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000728348a947b808483365bf24f5f7886f0a9786bf0000000000000000000000000000000000000000000000000000000000015180
-----Decoded View---------------
Arg [0] : _controller (address): 0x728348A947B808483365Bf24F5f7886f0a9786Bf
Arg [1] : _pendingPeriod (uint256): 86400
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000728348a947b808483365bf24f5f7886f0a9786bf
Arg [1] : 0000000000000000000000000000000000000000000000000000000000015180
Deployed Bytecode Sourcemap
142502:6741:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;145280:367:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;145280:367:0;;;;;;;;:::i;:::-;;122820:2846;;;;;;;;;:::i;113851:187::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;113851:187:0;;;:::i;138956:45::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;138956:45:0;;;:::i;:::-;;;;;;;;;;;;;;;;145655:325;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;145655:325:0;;;;;;;;:::i;119479:276::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;119479:276:0;;;:::i;143567:887::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;143567:887:0;;;;;;;;:::i;119764:34::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;119764:34:0;;;:::i;142630:39::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142630:39:0;;;:::i;147595:141::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;147595:141:0;;;;;;;;:::i;:::-;;;;;;;;114124:193;;5:9:-1;2:2;;;27:1;24;17:12;2:2;114124:193:0;;;:::i;113544:221::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;113544:221:0;;;;;;;;:::i;146534:881::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;146534:881:0;;;;;;;;:::i;147423:164::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;147423:164:0;;;;;;;;:::i;:::-;;;;;;;;;119842:47;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;119842:47:0;;;;;;;;:::i;126107:706::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;126107:706:0;;;;;;;;:::i;144840:432::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;144840:432:0;;;;;;;;:::i;144462:370::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;144462:370:0;;;;;;;;:::i;114638:130::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;114638:130:0;;;:::i;:::-;;;;;;;;125808:141;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;125808:141:0;;;;;;;;:::i;145988:293::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;145988:293:0;;;;;;;;:::i;119805:28::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;119805:28:0;;;:::i;:::-;;;;;;;;142676:25;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142676:25:0;;;:::i;145280:367::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;;;;;;;;;110475:1;110461:11;:15;145446:6;140045:22:::1;145446:6:::0;140045:14:::1;:22::i;:::-;140044:23;140036:42;;;;-1:-1:-1::0;;;140036:42:0::1;;;;;;;;;145491:6:::2;139630;-1:-1:-1::0;;;;;139623:20:0::2;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139623:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139623:22: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;139623:22:0;;;;;;;;;-1:-1:-1::0;;;;;139609:36:0::2;:10;-1:-1:-1::0;;;;;139609:36:0::2;;:80;;;-1:-1:-1::0;139662:10:0::2;139684:4;139662:27;139609:80;139587:161;;;;-1:-1:-1::0;;;139587:161:0::2;;;;;;;;;139759:10;;;;;;;;;-1:-1:-1::0;;;;;139759:10:0::2;-1:-1:-1::0;;;;;139759:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139759:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139759:26: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;139759:26:0;;;;;;;;;-1:-1:-1::0;;;;;139759:42:0::2;;139802:6;139759:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139759:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139759:50:0;;;;145515:10:::3;;;;;;;;;-1:-1:-1::0;;;;;145515:10:0::3;-1:-1:-1::0;;;;;145515:24:0::3;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;145515:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;145515:26: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;145515:26:0;;;;;;;;;-1:-1:-1::0;;;;;145515:48:0::3;;145564:6;145572:8;145515:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;145515:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;-1:-1:::0;;145597:42:0::3;::::0;-1:-1:-1;;;;;145597:42:0;;::::3;::::0;-1:-1:-1;145597:42:0;::::3;::::0;-1:-1:-1;145597:42:0::3;::::0;;;::::3;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;145280:367:0:o;122820:2846::-;123194:3;123180:10;:17;;123172:37;;;;-1:-1:-1;;;123172:37:0;;;;;;;;;123222:30;;:::i;:::-;-1:-1:-1;123255:180:0;;;;;;;;123289:13;;-1:-1:-1;;;;;123255:180:0;;;;;123289:13;123318;;;;123255:180;;;;123346:13;;;;123255:180;;;;;;;123374:13;;;;123255:180;;;;;123410:13;;;;123255:180;;;;;;;;123446:51;;;;-1:-1:-1;;;123446:51:0;;;;;;;;;123541:10;;;;;;;;;-1:-1:-1;;;;;123541:10:0;-1:-1:-1;;;;;123541:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;123541:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;123541:22: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;123541:22:0;;;;;;;;;-1:-1:-1;;;;;123516:47:0;:11;:21;;;-1:-1:-1;;;;;123516:47:0;;123508:81;;;;-1:-1:-1;;;123508:81:0;;;;;;;;;123602:14;123619:26;123640:4;123619:20;:26::i;:::-;123602:43;;123656:18;123677:538;123709:16;;123740:464;123763:426;;;;;;;;123801:6;-1:-1:-1;;;;;123763:426:0;;;;;123838:4;-1:-1:-1;;;;;123763:426:0;;;;;123866:9;123763:426;;;;123898:4;123763:426;;;;123925:5;123763:426;;;;123953:10;123763:426;;;;123986:11;:17;;;-1:-1:-1;;;;;123763:426:0;;;;;124026:11;:17;;;123763:426;;;;124066:11;:17;;;123763:426;;;;124106:11;:20;;;123763:426;;;;124149:11;:21;;;-1:-1:-1;;;;;123763:426:0;;;;123740:4;:464::i;:::-;123677:17;:538::i;:::-;123656:559;;124301:35;124314:6;124322:4;124328:7;124301:12;:35::i;:::-;124293:67;;;;-1:-1:-1;;;124293:67:0;;;;;;;;;124379:48;:10;124407:7;124416:10;124379:48;:27;:48;:::i;:::-;124371:79;;;;-1:-1:-1;;;124371:79:0;;;;;;;;;124656:45;124675:6;124683:5;124690:10;124656:18;:45::i;:::-;124796:9;:13;124792:91;;124826:45;124850:9;124861;-1:-1:-1;;;;;124826:23:0;;;:45;;:23;:45;:::i;:::-;;124792:91;124916:43;124953:5;124945:2;124917:25;124939:2;124917:11;:17;;;:21;;:25;;;;:::i;:::-;:30;;;;;;;124916:43;:36;:43;:::i;:::-;124903:9;:56;;124895:85;;;;-1:-1:-1;;;124895:85:0;;;;;;;;;124991:12;125006:9;124991:24;;125087:12;125101:23;125136:4;-1:-1:-1;;;;;125128:18:0;125152:11;:17;;;125171:4;125128:48;;;;;;;;;;;;;;;;;;;;;;;;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;;125086:90:0;;;;125207:9;125361:17;;;;125197:19;;;125351:27;;:57;;125391:11;:17;;;125351:57;;;125381:7;125351:57;125341:67;;125453:6;-1:-1:-1;;;;;125426:83:0;125441:10;-1:-1:-1;;;;;125426:83:0;;125461:5;125468:10;125480:7;125489;125498:10;125426:83;;;;;;;;;;;;;;;;;;;125526:17;;;;:22;;;;:59;;;125552:33;125565:19;125579:4;125565:13;:19::i;:::-;125552:12;:33::i;:::-;125522:137;;;125602:45;125618:6;125626:11;125639:7;125602:15;:45::i;:::-;122820:2846;;;;;;;;;;;;:::o;113851:187::-;113957:10;113978:19;113957:10;113978:11;:19::i;:::-;114013:17;;-1:-1:-1;;;;;114013:17:0;;;;;;;;113851:187;:::o;138956:45::-;139000:1;138956:45;:::o;145655:325::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;145841:8;140559:10:::1;140581:4;140559:27;::::0;:53:::1;;-1:-1:-1::0;140590:10:0::1;-1:-1:-1::0;;;;;140590:22:0;::::1;;140559:53;140537:115;;;;-1:-1:-1::0;;;140537:115:0::1;;;;;;;;;145879:6:::2;145887:8;140192:10;;;;;;;;;-1:-1:-1::0;;;;;140192:10:0::2;-1:-1:-1::0;;;;;140192:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:26: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;140192:26:0;;;;;;;;;-1:-1:-1::0;;;;;140192:37:0::2;;140230:6;140238:8;140192:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:55: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;140192:55:0;;;;;;;;;140184:80;;;;-1:-1:-1::0;;;140184:80:0::2;;;;;;;;;139000:1:::3;140767:10:::0;;:26:::3;::::0;;-1:-1:-1;;;140767:26:0;;;;145930:6;;139000:1;-1:-1:-1;;;;;140767:10:0::3;::::0;:24:::3;::::0;:26:::3;::::0;;::::3;::::0;::::3;::::0;;;;;;;;:10;:26;::::3;;2:2:-1::0;::::3;;;27:1;24::::0;17:12:::3;2:2;140767:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;140767:26: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;140767:26:0;;;;;;;;;-1:-1:-1::0;;;;;140767:39:0::3;;140807:6;140767:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;140767:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;140767:47: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;140767:47:0;;;;;;;;;:71;;140745:147;;;;-1:-1:-1::0;;;140745:147:0::3;;;;;;;;;145954:18:::4;145965:6;145954:10;:18::i;:::-;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;;;145655:325:0:o;119479:276::-;119530:225;;;;;;;;;;;;;;119479:276;:::o;143567:887::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;143747:6;140045:22:::1;143747:6:::0;140045:14:::1;:22::i;:::-;140044:23;140036:42;;;;-1:-1:-1::0;;;140036:42:0::1;;;;;;;;;143779:6:::2;143787:8;113492:4;-1:-1:-1::0;;;;;113466:30:0::2;113473:6;-1:-1:-1::0;;;;;113466:20:0::2;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;113466:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;113466:22: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;113466:22:0;;;;;;;;;-1:-1:-1::0;;;;;113466:30:0::2;;;113458:58;;;;-1:-1:-1::0;;;113458:58:0::2;;;;;;;;;143834:6:::3;139630;-1:-1:-1::0;;;;;139623:20:0::3;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139623:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;139623:22: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;139623:22:0;;;;;;;;;-1:-1:-1::0;;;;;139609:36:0::3;:10;-1:-1:-1::0;;;;;139609:36:0::3;;:80;;;-1:-1:-1::0;139662:10:0::3;139684:4;139662:27;139609:80;139587:161;;;;-1:-1:-1::0;;;139587:161:0::3;;;;;;;;;139759:10;;;;;;;;;-1:-1:-1::0;;;;;139759:10:0::3;-1:-1:-1::0;;;;;139759:24:0::3;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139759:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;139759:26: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;139759:26:0;;;;;;;;;-1:-1:-1::0;;;;;139759:42:0::3;;139802:6;139759:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139759:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;-1:-1:::0;;;;;;;;;143866:22:0;::::4;143858:47;;;;-1:-1:-1::0;;;143858:47:0::4;;;;;;;;;134494:2;143924:5;:36;143916:62;;;;-1:-1:-1::0;;;143916:62:0::4;;;;;;;;;144009:10;::::0;:26:::4;::::0;;-1:-1:-1;;;144009:26:0;;;;143989:17:::4;::::0;-1:-1:-1;;;;;144009:10:0::4;::::0;:24:::4;::::0;:26:::4;::::0;;::::4;::::0;::::4;::::0;;;;;;;;:10;:26;::::4;;2:2:-1::0;::::4;;;27:1;24::::0;17:12:::4;2:2;144009:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;144009:26: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;144009:26:0;;;;;;;;;-1:-1:-1::0;;;;;144009:50:0::4;;144060:6;144009:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;144009:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;144009:58: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;144009:58:0;;;;;;;;;143989:78;;142667:2;144086:12;:28;144078:59;;;;-1:-1:-1::0;;;144078:59:0::4;;;;;;;;;144171:3;139000:1;144189:36:::0;::::4;144185:104;;-1:-1:-1::0;144264:13:0::4;::::0;144258:3:::4;:19;144185:104;144299:10;;;;;;;;;-1:-1:-1::0;;;;;144299:10:0::4;-1:-1:-1::0;;;;;144299:24:0::4;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;144299:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;144299:26: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;144299:26:0;;;;;;;;;-1:-1:-1::0;;;;;144299:38:0::4;;144338:6;144346:8;144356:5;144363:13;144299:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;144299:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;144299:78:0;;;;144415:8;-1:-1:-1::0;;;;;144393:53:0::4;144407:6;-1:-1:-1::0;;;;;144393:53:0::4;;144425:5;144432:13;144393:53;;;;;;;;;;;;;;;;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;;;;;;143567:887:0:o;119764:34::-;;;;:::o;142630:39::-;142667:2;142630:39;:::o;147595:141::-;147677:4;147706:22;147721:6;147706:14;:22::i;:::-;147699:29;;147595:141;;;;:::o;114124:193::-;114232:10;114253:21;114232:10;114253:13;:21::i;:::-;114290:19;;-1:-1:-1;;;;;114290:19:0;;;;;;;;114124:193;:::o;113544:221::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;;;;113701:6:::1;139630;-1:-1:-1::0;;;;;139623:20:0::1;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;139623:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;139623:22: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;139623:22:0;;;;;;;;;-1:-1:-1::0;;;;;139609:36:0::1;:10;-1:-1:-1::0;;;;;139609:36:0::1;;:80;;;-1:-1:-1::0;139662:10:0::1;139684:4;139662:27;139609:80;139587:161;;;;-1:-1:-1::0;;;139587:161:0::1;;;;;;;;;139759:10;;;;;;;;;-1:-1:-1::0;;;;;139759:10:0::1;-1:-1:-1::0;;;;;139759:24:0::1;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;139759:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;139759:26: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;139759:26:0;;;;;;;;;-1:-1:-1::0;;;;;139759:42:0::1;;139802:6;139759:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;139759:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;;113725:32:0::2;::::0;-1:-1:-1;;;113725:32:0;;-1:-1:-1;;;;;113725:24:0;::::2;::::0;-1:-1:-1;113725:24:0::2;::::0;-1:-1:-1;113725:32:0::2;::::0;113750:6;;113725:32:::2;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;113725:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;-1:-1:::0;;110513:1:0;110499:15;;-1:-1:-1;;;;;113544:221:0:o;146534:881::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;;;;146700:6:::1;146708:8;113492:4;-1:-1:-1::0;;;;;113466:30:0::1;113473:6;-1:-1:-1::0;;;;;113466:20:0::1;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;113466:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;113466:22: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;113466:22:0;;;;;;;;;-1:-1:-1::0;;;;;113466:30:0::1;;;113458:58;;;;-1:-1:-1::0;;;113458:58:0::1;;;;;;;;;120195:10:::2;120217:4;120195:27;120187:60;;;;-1:-1:-1::0;;;120187:60:0::2;;;;;;;;;139000:1:::3;140767:10:::0;;:26:::3;::::0;;-1:-1:-1;;;140767:26:0;;;;146775:6;;139000:1;-1:-1:-1;;;;;140767:10:0::3;::::0;:24:::3;::::0;:26:::3;::::0;;::::3;::::0;::::3;::::0;;;;;;;;:10;:26;::::3;;2:2:-1::0;::::3;;;27:1;24::::0;17:12:::3;2:2;140767:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;140767:26: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;140767:26:0;;;;;;;;;-1:-1:-1::0;;;;;140767:39:0::3;;140807:6;140767:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;140767:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;140767:47: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;140767:47:0;;;;;;;;;:71;;140745:147;;;;-1:-1:-1::0;;;140745:147:0::3;;;;;;;;;146799:8:::4;146817:6;146799:25;;146835:16;146854:1;-1:-1:-1::0;;;;;146854:7:0::4;;:9;;;;;;;;;;;;;;;;;;;;;;5::-1;2:2;;;27:1;24::::0;17:12:::4;2:2;146854:9:0;;;;8::-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;146854:9: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;146854:9:0;;;;;;;;;146835:28;;146894:8;-1:-1:-1::0;;;;;146882:20:0::4;:8;-1:-1:-1::0;;;;;146882:20:0::4;;;146874:45;;;;-1:-1:-1::0;;;146874:45:0::4;;;;;;;;;-1:-1:-1::0;;;;;146938:22:0;::::4;146930:47;;;;-1:-1:-1::0;;;146930:47:0::4;;;;;;;;;147020:10;::::0;:26:::4;::::0;;-1:-1:-1;;;147020:26:0;;;;146990:27:::4;::::0;-1:-1:-1;;;;;147020:10:0::4;::::0;:24:::4;::::0;:26:::4;::::0;;::::4;::::0;::::4;::::0;;;;;;;;:10;:26;::::4;;2:2:-1::0;::::4;;;27:1;24::::0;17:12:::4;2:2;147020:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;147020:26: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;147020:26:0;;;;;;;;;146990:56;;147057:22;147082:13;-1:-1:-1::0;;;;;147082:41:0::4;;147124:6;147132:8;147082:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;147082:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;147082:59: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;147082:59:0;;;;;;;;;147057:84;;147158:17;147154:100;;;147191:51;::::0;-1:-1:-1;;;147191:51:0;;-1:-1:-1;;;;;147191:28:0;::::4;::::0;::::4;::::0;:51:::4;::::0;147220:6;;147228:8;;147238:3:::4;::::0;147191:51:::4;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;147191:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;147191:51:0;;;;147154:100;147266:20;::::0;-1:-1:-1;;;147266:20:0;;-1:-1:-1;;;;;147266:10:0;::::4;::::0;::::4;::::0;:20:::4;::::0;147277:8;;147266:20:::4;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;147266:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;147266:20:0;;;;147297:36;147310:6;147318:4;147297:12;:36::i;:::-;147379:8;-1:-1:-1::0;;;;;147351:56:0::4;147369:8;-1:-1:-1::0;;;;;147351:56:0::4;147361:6;-1:-1:-1::0;;;;;147351:56:0::4;;147389:17;147351:56;;;;;;;;;;;;;;;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;;;;;;146534:881:0:o;147423:164::-;147504:10;147516:17;147558:21;147572:6;147558:13;:21::i;:::-;147551:28;;;;147423:164;;;:::o;119842:47::-;;;;;;;;;;;;;:::o;126107:706::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;;;126226:10:::1;::::0;:22:::1;::::0;;-1:-1:-1;;;126226:22:0;;;;-1:-1:-1;;;;;126226:10:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;:10;:22;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;126226:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;126226:22: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;126226:22:0;;;;;;;;;126213:35:::0;-1:-1:-1;126266:6:0::1;126261:545;126278:17:::0;;::::1;126261:545;;;126317:13;126333:6;;126340:1;126333:9;;;;;;;;;;;;;;;;;;;;;;126317:25:::0;-1:-1:-1;;;;;;126361:19:0;::::1;126357:438;;126415:21;126455:38;126415:21:::0;126483:9:::1;-1:-1:-1::0;;;;;126455:19:0;::::1;::::0;:38;::::1;:19;:38;:::i;:::-;;126357:438;;;;126548:37;::::0;-1:-1:-1;;;126548:37:0;;126534:11:::1;::::0;-1:-1:-1;;;;;126548:22:0;::::1;::::0;::::1;::::0;:37:::1;::::0;126579:4:::1;::::0;126548:37:::1;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;126548:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;126548: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;126548:37:0;;;;;;;;;126534:51:::0;-1:-1:-1;126608:10:0;;126604:176:::1;;126727:33;::::0;-1:-1:-1;;;126727:33:0;;-1:-1:-1;;;;;126727:21:0;::::1;::::0;::::1;::::0;:33:::1;::::0;126749:2;;126753:6;;126727:33:::1;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;126727:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;126727:33: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;126727:33:0;;;;;;;;;;126604:176;126357:438;;-1:-1:-1::0;126297:3:0::1;;126261:545;;;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;126107:706:0:o;144840:432::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;144999:6;140045:22:::1;144999:6:::0;140045:14:::1;:22::i;:::-;140044:23;140036:42;;;;-1:-1:-1::0;;;140036:42:0::1;;;;;;;;;145035:6:::2;145043:8;140192:10;;;;;;;;;-1:-1:-1::0;;;;;140192:10:0::2;-1:-1:-1::0;;;;;140192:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:26: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;140192:26:0;;;;;;;;;-1:-1:-1::0;;;;;140192:37:0::2;;140230:6;140238:8;140192:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:55: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;140192:55:0;;;;;;;;;140184:80;;;;-1:-1:-1::0;;;140184:80:0::2;;;;;;;;;145090:6:::3;139630;-1:-1:-1::0;;;;;139623:20:0::3;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139623:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;139623:22: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;139623:22:0;;;;;;;;;-1:-1:-1::0;;;;;139609:36:0::3;:10;-1:-1:-1::0;;;;;139609:36:0::3;;:80;;;-1:-1:-1::0;139662:10:0::3;139684:4;139662:27;139609:80;139587:161;;;;-1:-1:-1::0;;;139587:161:0::3;;;;;;;;;139759:10;;;;;;;;;-1:-1:-1::0;;;;;139759:10:0::3;-1:-1:-1::0;;;;;139759:24:0::3;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139759:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;139759:26: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;139759:26:0;;;;;;;;;-1:-1:-1::0;;;;;139759:42:0::3;;139802:6;139759:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;139759:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;139759:50:0;;;;145114:10:::4;;;;;;;;;-1:-1:-1::0;;;;;145114:10:0::4;-1:-1:-1::0;;;;;145114:24:0::4;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;145114:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;145114:26: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;145114:26:0;;;;;;;;;-1:-1:-1::0;;;;;145114:41:0::4;;145156:6;145164:8;145180:13;;145174:3;:19;145114:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::4;2:2;145114:80:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::4;77:16;74:1;67:27;5:2;145114:80:0;;;;145234:8;-1:-1:-1::0;;;;;145210:54:0::4;145226:6;-1:-1:-1::0;;;;;145210:54:0::4;;145250:13;;145244:3;:19;145210:54;;;;;;;;;;;;;;;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;;;144840:432:0:o;144462:370::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;144629:6;140045:22:::1;144629:6:::0;140045:14:::1;:22::i;:::-;140044:23;140036:42;;;;-1:-1:-1::0;;;140036:42:0::1;;;;;;;;;144674:6:::2;139630;-1:-1:-1::0;;;;;139623:20:0::2;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139623:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139623:22: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;139623:22:0;;;;;;;;;-1:-1:-1::0;;;;;139609:36:0::2;:10;-1:-1:-1::0;;;;;139609:36:0::2;;:80;;;-1:-1:-1::0;139662:10:0::2;139684:4;139662:27;139609:80;139587:161;;;;-1:-1:-1::0;;;139587:161:0::2;;;;;;;;;139759:10;;;;;;;;;-1:-1:-1::0;;;;;139759:10:0::2;-1:-1:-1::0;;;;;139759:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139759:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139759:26: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;139759:26:0;;;;;;;;;-1:-1:-1::0;;;;;139759:42:0::2;;139802:6;139759:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;139759:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;139759:50:0;;;;144698:10:::3;;;;;;;;;-1:-1:-1::0;;;;;144698:10:0::3;-1:-1:-1::0;;;;;144698:24:0::3;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;144698:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;144698:26: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;144698:26:0;;;;;;;;;-1:-1:-1::0;;;;;144698:49:0::3;;144748:6;144756:8;144698:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::3;2:2;144698:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::3;77:16;74:1;67:27;5:2;-1:-1:::0;;144781:43:0::3;::::0;-1:-1:-1;;;;;144781:43:0;;::::3;::::0;-1:-1:-1;144781:43:0;::::3;::::0;-1:-1:-1;144781:43:0::3;::::0;;;::::3;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;144462:370:0:o;114638:130::-;114730:23;114638:130;:::o;125808:141::-;-1:-1:-1;;;;;125920:15:0;125891:4;125920:15;;;:7;:15;;;;;:21;;125808:141::o;145988:293::-;110419:11;;:16;110411:39;;;;-1:-1:-1;;;110411:39:0;;;;;;;;;110475:1;110461:11;:15;146174:8;140559:10:::1;140581:4;140559:27;::::0;:53:::1;;-1:-1:-1::0;140590:10:0::1;-1:-1:-1::0;;;;;140590:22:0;::::1;;140559:53;140537:115;;;;-1:-1:-1::0;;;140537:115:0::1;;;;;;;;;146212:6:::2;146220:8;140192:10;;;;;;;;;-1:-1:-1::0;;;;;140192:10:0::2;-1:-1:-1::0;;;;;140192:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:26: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;140192:26:0;;;;;;;;;-1:-1:-1::0;;;;;140192:37:0::2;;140230:6;140238:8;140192:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;140192:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;140192:55: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;140192:55:0;;;;;;;;;140184:80;;;;-1:-1:-1::0;;;140184:80:0::2;;;;;;;;;146246:27:::3;146259:6;146267:5;146246:12;:27::i;:::-;-1:-1:-1::0;;110513:1:0;110499:15;;-1:-1:-1;;;145988:293:0:o;119805:28::-;;;-1:-1:-1;;;;;119805:28:0;;:::o;142676:25::-;;;;:::o;142257:207::-;142347:4;142370:10;142385;;;;;;;;;-1:-1:-1;;;;;142385:10:0;-1:-1:-1;;;;;142385:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142385:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;142385:26: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;142385:26:0;;;;;;;;;-1:-1:-1;;;;;142385:34:0;;142420:6;142385:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142385:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;142385:42: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;142385:42:0;;;;;;;;;-1:-1:-1;142453:3:0;-1:-1:-1;;142257:207:0;-1:-1:-1;;;142257:207:0:o;128061:200::-;128177:14;128218:35;128245:4;128251:1;128218:26;:35::i;130040:582::-;130132:7;119530:225;;;;;;;;;;;;;;130260:3;:10;;;130289:3;:10;;;130318:3;:9;;;130356:3;:8;;;130346:19;;;;;;130384:3;:9;;;130412:3;:14;;;130445:3;:12;;;130476:3;:12;;;130507:3;:12;;;130538:3;:15;;;130572:3;:16;;;130188:415;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;130188:415:0;;;130164:450;;;;;;130157:457;;130040:582;;;:::o;103582:331::-;103719:7;103810:13;;;;;;;;;;;;;-1:-1:-1;;;103810:13:0;;;103842:10;103871:8;103775:119;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;103775:119:0;;;103751:154;;;;;;103744:161;;103582:331;;;;;:::o;131504:453::-;131680:4;131702:13;131718:19;131732:4;131718:13;:19::i;:::-;131702:35;-1:-1:-1;;;;;;;131752:33:0;;-1:-1:-1;;;131752:33:0;131748:202;;;131809:45;131829:6;-1:-1:-1;;;;;131822:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;131822:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131822:22: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;131822:22:0;;;;;;;;;131846:7;131809:12;:45::i;:::-;131802:52;;;;;131748:202;131894:44;131908:6;131916;131924:4;131930:7;131894:13;:44::i;131504:453::-;;;;;;:::o;105227:630::-;105416:4;105464:10;:17;105446:7;:14;:35;105438:66;;;;-1:-1:-1;;;105438:66:0;;;;;;;;;105515:18;;105544:284;105565:7;:14;105561:1;:18;105544:284;;;105622:10;-1:-1:-1;;;;;105609:23:0;:7;105617:1;105609:10;;;;;;;;;;;;;;-1:-1:-1;;;;;105609:23:0;;105601:57;;;;-1:-1:-1;;;105601:57:0;;;;;;;;;105686:7;105694:1;105686:10;;;;;;;;;;;;;;105673:23;;105716:52;105732:8;105742:7;105750:1;105742:10;;;;;;;;;;;;;;105754;105765:1;105754:13;;;;;;;;;;;;;;105716:15;:52::i;:::-;105711:106;;105796:5;105789:12;;;;;;105711:106;105581:3;;105544:284;;;-1:-1:-1;105845:4:0;;105227:630;-1:-1:-1;;;;;105227:630:0:o;132248:533::-;132402:10;132398:376;;-1:-1:-1;;;;;132438:15:0;;;;;;:7;:15;;;;;;;;:38;;;:26;;:38;;;;;;;;132437:39;132429:64;;;;-1:-1:-1;;;132429:64:0;;;;;;;;;-1:-1:-1;;;;;132508:15:0;;;;;;:7;:15;;;;;;;;:38;;;132549:4;132508:26;;;:38;;;;;;:45;;-1:-1:-1;;132508:45:0;;;;;;132398:376;;;-1:-1:-1;;;;;132602:15:0;;;;;;:7;:15;;;;;:21;132594:29;;132586:57;;;;-1:-1:-1;;;132586:57:0;;;;;;;;;132685:12;132676:3;132667:5;:12;;132666:32;;132658:60;;;;-1:-1:-1;;;132658:60:0;;;;;;;;;-1:-1:-1;;;;;132733:15:0;;;;;;:7;:15;;;;;:29;;;132398:376;132248:533;;;:::o;60800:269::-;60946:12;60986:28;-1:-1:-1;;;;;60986:10:0;;60997:6;61005:8;60986:28;:10;:28;:::i;:::-;60976:38;;61033:7;61025:36;;;;-1:-1:-1;;;61025:36:0;;;;;;;;58255:205;58391:5;;;58415:6;;;:20;;;58434:1;58429;58425;:5;;;;;;:10;58415:20;58407:45;;;;-1:-1:-1;;;58407:45:0;;;;;;;;58669:191;58805:5;;;58829:6;;;;58821:31;;;;-1:-1:-1;;;58821:31:0;;;;;;;;130630:154;130722:13;130760:16;:4;130722:13;130760:16;:13;:16;:::i;148956:282::-;149061:4;-1:-1:-1;;;;;;149082:28:0;;-1:-1:-1;;;149082:28:0;;:62;;-1:-1:-1;;;;;;;149114:30:0;;-1:-1:-1;;;149114:30:0;149082:62;149078:151;;;-1:-1:-1;149168:5:0;149161:12;;149078:151;-1:-1:-1;149213:4:0;149206:11;;130792:665;130961:12;130976:56;131014:11;:17;;;130976:33;130988:11;:20;;;130976:7;:11;;:33;;;;:::i;:::-;:37;:56;:37;:56;:::i;:::-;130961:71;;131043:47;131055:6;131063:11;:17;;;131082:7;131043:11;:47::i;:::-;131126:21;;;;131162:17;;-1:-1:-1;;;;;131162:31:0;131158:292;;131210:47;131223:6;131231:12;131245:7;131210:47;;;;;;;;;;;;:12;:47::i;:::-;;131158:292;;;131316:71;131338:6;131346:11;:17;;;131365:12;131379:7;131316:21;:71::i;:::-;131290:148;;;;-1:-1:-1;;;131290:148:0;;;;;;;;;130792:665;;;;;:::o;114878:276::-;114967:6;114985:23;115011:17;:15;:17::i;:::-;114985:43;-1:-1:-1;115044:6:0;115039:108;115060:7;:14;115056:1;:18;115039:108;;;115096:1;-1:-1:-1;;;;;115096:12:0;;115109:7;115117:1;115109:10;;;;;;;;;;;;;;115129:4;115096:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;115096:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;115076:3:0;;;;;-1:-1:-1;115039:108:0;;-1:-1:-1;115039:108:0;;;114878:276;;;:::o;141129:128::-;141199:50;141210:6;141218:10;;;;;;;;;-1:-1:-1;;;;;141218:10:0;-1:-1:-1;;;;;141218:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141218:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141218:30: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;141218:30:0;;;;;;;;;141199:10;:50::i;:::-;141129:128;:::o;115219:275::-;115310:6;115328:23;115354:17;:15;:17::i;:::-;115328:43;-1:-1:-1;115387:6:0;115382:105;115403:7;:14;115399:1;:18;115382:105;;;115439:1;-1:-1:-1;;;;;115439:12:0;;115452:7;115460:1;115452:10;;;;;;;;;;;;;;115472:1;115439:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;115439:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;115419:3:0;;;;;-1:-1:-1;115382:105:0;;-1:-1:-1;115382:105:0;141649:399;141740:10;141752:17;141773:10;;;;;;;;;-1:-1:-1;;;;;141773:10:0;-1:-1:-1;;;;;141773:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141773:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141773:26: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;141773:26:0;;;;;;;;;-1:-1:-1;;;;;141773:34:0;;141808:6;141773:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141773:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141773:42: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;141773:42:0;;;;;;;;;141739:76;;;;141838:3;141830:5;:11;141826:215;;;141866:11;:41;;;-1:-1:-1;;;;;;141881:26:0;;141902:4;141881:26;141866:41;141858:70;;;;-1:-1:-1;;;141858:70:0;;;;;;;;;141943:10;;;;;;;;;-1:-1:-1;;;;;141943:10:0;-1:-1:-1;;;;;141943:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141943:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141943:26: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;141943:26:0;;;;;;;;;-1:-1:-1;;;;;141943:34:0;;141978:6;141986:1;141943:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141943:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141943:45:0;;;;142019:6;-1:-1:-1;;;;;142008:21:0;;142027:1;142008:21;;;;;;;;;;;;;;;141649:399;;;;:::o;142056:193::-;142145:10;142157:17;142199:10;;;;;;;;;-1:-1:-1;;;;;142199:10:0;-1:-1:-1;;;;;142199:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142199:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;142199:26: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;142199:26:0;;;;;;;;;-1:-1:-1;;;;;142199:34:0;;142234:6;142199:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142199:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;142199:42: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;142199:42:0;;;;;;;;128525:241;128679:12;128716:42;:4;128731:26;128735:2;:17;;128731:26;128716:42;:14;:42;:::i;127606:213::-;127737:4;127767:7;:14;127785:1;127767:19;:43;;;;;127804:6;-1:-1:-1;;;;;127790:20:0;:7;127798:1;127790:10;;;;;;;;;;;;;;-1:-1:-1;;;;;127790:20:0;;127759:52;;127606:213;;;;:::o;147744:1204::-;147967:4;-1:-1:-1;;;;;;147993:35:0;;-1:-1:-1;;;147993:35:0;;:90;;-1:-1:-1;;;;;;;148045:38:0;;-1:-1:-1;;;148045:38:0;147993:90;:153;;;-1:-1:-1;;;;;;;148100:46:0;;-1:-1:-1;;;148100:46:0;147993:153;:215;;;-1:-1:-1;;;;;;;148163:45:0;;-1:-1:-1;;;148163:45:0;147993:215;147989:952;;;148232:45;148252:6;-1:-1:-1;;;;;148245:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;148245:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;148245:22: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;148245:22:0;;;;;;;;;148269:7;148232:12;:45::i;:::-;148225:52;;;;147989:952;-1:-1:-1;;;;;;148299:28:0;;-1:-1:-1;;;148299:28:0;;:75;;-1:-1:-1;;;;;;;148344:30:0;;-1:-1:-1;;;148344:30:0;148299:75;148295:646;;;148391:22;148416:35;148443:4;148449:1;148416:26;:35::i;:::-;148391:60;;148473:37;148486:14;148502:7;148473:12;:37::i;:::-;:119;;;;;148531:10;;;;;;;;;-1:-1:-1;;;;;148531:10:0;-1:-1:-1;;;;;148531:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;148531:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;148531:26: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;148531:26:0;;;;;;;;;-1:-1:-1;;;;;148531:37:0;;148569:6;148577:14;148531:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;148531:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;148531:61: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;148531:61:0;;;;;;;;;148466:126;;;;;148295:646;-1:-1:-1;;;;;;148614:31:0;;-1:-1:-1;;;148614:31:0;148610:331;;;148717:10;;:26;;;-1:-1:-1;;;148717:26:0;;;;148669:203;;-1:-1:-1;;;;;148717:10:0;;:24;;:26;;;;;;;;;;;;;;:10;:26;;;2:2:-1;;;;27:1;24;17:12;2:2;148717:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;148717:26: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;148717:26:0;;;;;;;;;148762:6;148787:7;148813:44;148669:29;:203::i;148610:331::-;148905:24;;-1:-1:-1;;;148905:24:0;;;;;;;;148610:331;147744:1204;;;;;;:::o;105865:1003::-;106038:4;106060:24;106087:23;106108:1;106087:9;:16;:20;;:23;;;;:::i;:::-;106060:50;-1:-1:-1;106121:27:0;106165:38;:9;106060:50;106165:38;:17;:38;:::i;:::-;106151:53;;;;;;;;;;106121:83;-1:-1:-1;106217:21:0;106241:39;:9;106257:1;106260:19;106241:39;:15;:39;:::i;:::-;106217:63;-1:-1:-1;106314:20:0;106297:13;:37;;;;;;;;;106293:568;;;106358:50;106381:8;106391:6;106399:8;106358:22;:50::i;:::-;106351:57;;;;;;;106293:568;106447:21;106430:13;:38;;;;;;;;;106426:435;;;106534:6;-1:-1:-1;;;;;106492:48:0;:38;106511:8;106521;106492:18;:38::i;:::-;-1:-1:-1;;;;;106492:48:0;;106485:55;;;;;;;106426:435;106579:22;106562:13;:39;;;;;;;;;106558:303;;;106618:12;106714:8;106661:62;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;106661:62:0;;;106633:105;;;;;;106618:120;;106798:6;-1:-1:-1;;;;;106760:44:0;:34;106779:4;106785:8;106760:18;:34::i;:::-;-1:-1:-1;;;;;106760:44:0;;106753:51;;;;;;;;106558:303;106844:5;106837:12;;;;;;;60250:395;60387:12;60421:11;60417:55;;-1:-1:-1;60456:4:0;60449:11;;60417:55;60482:25;60510:14;:2;-1:-1:-1;;;;;60510:12:0;;:14::i;:::-;60482:42;;60589:9;-1:-1:-1;;;;;60589:14:0;60611:6;60624:8;60589:48;;;;;;;;;;;;;;;;;;;;;;;;;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;-1:-1;60575:62:0;;60250:395;-1:-1:-1;;;;;;60250:395:0:o;52652:297::-;52728:6;52773;52782:1;52773:10;52755:6;:13;:29;;52747:38;;12:1:-1;9;2:12;52747:38:0;-1:-1:-1;52870:30:0;52886:4;52870:30;52864:37;;52652:297::o;132789:356::-;132942:1;132933:6;:10;:40;;;;-1:-1:-1;132971:1:0;132947:12;:10;:12::i;:::-;-1:-1:-1;;;;;132947:26:0;;;132933:40;132929:209;;;133003:10;;:24;;;-1:-1:-1;;;133003:24:0;;;;132990:10;;-1:-1:-1;;;;;133003:10:0;;:22;;:24;;;;;;;;;;;;;;:10;:24;;;2:2:-1;;;;27:1;24;17:12;2:2;133003:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133003:24: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;133003:24:0;;;;;;;;;-1:-1:-1;;;;;133003:35:0;;133039:5;133046:6;133003:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;133003:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133003:50: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;133003:50:0;;;;;;;;;132990:63;;133079:12;:10;:12::i;:::-;-1:-1:-1;;;;;133068:43:0;;133112:6;133120:5;133068:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;133068:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133068:58:0;;;;132929:209;132789:356;;;:::o;115502:264::-;115708:50;;-1:-1:-1;;;115708:50:0;;115671:12;;-1:-1:-1;;;;;115708:23:0;;;;;:50;;115738:1;;115742:2;;115746:5;;115753:4;;115708:50;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;115708:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115708:50:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;115708:50:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;115708:50:0;;;;;;;;;115701:57;115502:264;-1:-1:-1;;;;;115502:264:0:o;115855:838::-;116028:12;116058:19;116117:26;;;116158:2;116175:6;116080:112;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;116080:112:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;116080:112:0;;;179:29:-1;;;;160:49;;;116080:112:0;-1:-1:-1;116203:23:0;116229:38;116242:6;116250:5;-1:-1:-1;116080:112:0;116229:12;:38::i;:::-;116458:17;;116203:64;;-1:-1:-1;116458:21:0;116454:232;;116517:10;116506:30;;;;;;;;;;;;;;116496:40;;116454:232;;;116670:4;116660:14;;116454:232;115855:838;;;;;;;;:::o;141265:376::-;141369:6;140045:22;140060:6;140045:14;:22::i;:::-;140044:23;140036:42;;;;-1:-1:-1;;;140036:42:0;;;;;;;;;141478:1:::1;141464:11;:15;141456:38;;;;-1:-1:-1::0;;;141456:38:0::1;;;;;;;;;141545:10;::::0;:26:::1;::::0;;-1:-1:-1;;;141545:26:0;;;;141517:3:::1;:17:::0;::::1;::::0;-1:-1:-1;;;;;141545:10:0::1;::::0;:24:::1;::::0;:26:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:10;:26;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;141545:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;141545:26: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;141545:26:0;;;;;;;;;-1:-1:-1::0;;;;;141545:34:0::1;;141580:6;141588:4;141545:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;141545:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;141545:48:0;;;;141620:6;-1:-1:-1::0;;;;;141609:24:0::1;;141628:4;141609:24;;;;;;;50215:338:::0;50292:7;50338:6;50347:2;50338:11;50320:6;:13;:30;;50312:39;;12:1:-1;9;2:12;50312:39:0;-1:-1:-1;50443:30:0;50459:4;50443:30;50437:37;-1:-1:-1;;;50433:71:0;;;50215:338::o;134618:3313::-;134856:4;134929:7;:14;134947:1;134929:19;134925:64;;;-1:-1:-1;134972:5:0;134965:12;;134925:64;135079:31;;-1:-1:-1;;;135079:31:0;;135041:35;;-1:-1:-1;;;;;135079:23:0;;;;;:31;;135103:6;;135079:31;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135079:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135079:31:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;135079:31:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;135079:31:0;;;;;;;;;135041:69;;135121:33;;:::i;:::-;135157:28;135172:12;135157:14;:28::i;:::-;135121:64;;135255:22;135280:5;135255:30;;135296:39;135358:7;:14;135338:35;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135338:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;135296:77;;135384:19;135413:6;-1:-1:-1;;;;;135406:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135406:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135406:22: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;135406:22:0;;;;;;;;;135384:44;-1:-1:-1;135439:17:0;;;135500:523;135521:7;:14;135517:1;:18;135500:523;;;135615:10;-1:-1:-1;;;;;135602:23:0;:7;135610:1;135602:10;;;;;;;;;;;;;;-1:-1:-1;;;;;135602:23:0;;135594:57;;;;-1:-1:-1;;;135594:57:0;;;;;;;;;135679:7;135687:1;135679:10;;;;;;;;;;;;;;135666:23;;135724:11;-1:-1:-1;;;;;135710:25:0;:7;135718:1;135710:10;;;;;;;;;;;;;;-1:-1:-1;;;;;135710:25:0;;135706:306;;;135776:4;135756:24;;135706:306;;;135829:13;-1:-1:-1;;;;;135829:24:0;;135854:6;135862:7;135870:1;135862:10;;;;;;;;;;;;;;135829:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135829:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135829:44: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;135829:44:0;;;;;;;;;135821:76;;;;-1:-1:-1;;;135821:76:0;;;;;;;;;135951:13;-1:-1:-1;;;;;135951:25:0;;135977:6;135985:7;135993:1;135985:10;;;;;;;;;;;;;;135951:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135951:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135951:45: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;135951:45:0;;;;;;;;;135916:32;;135933:14;;;;135916:16;;:32;;;;;;;;;;;:80;;;;135706:306;135537:3;;135500:523;;;-1:-1:-1;136091:28:0;136076:11;:43;;;;;;;;;136072:286;;;136144:17;136136:61;;;;-1:-1:-1;;;136136:61:0;;;;;;;;;136072:286;;;136234:30;136219:11;:45;;;;;;;;;136215:143;;;136290:17;136289:18;136281:65;;;;-1:-1:-1;;;136281:65:0;;;;;;;;;136579:12;136561:16;136554:38;136604:34;;:::i;:::-;136641:32;136656:16;136641:14;:32::i;:::-;136604:69;-1:-1:-1;136724:18:0;;;136789:11;:45;;;;;;;;;136785:148;;136868:1;136851:18;;;;136896:17;:25;;136920:1;136896:25;;;136916:1;136896:25;136884:37;;;136785:148;136947:8;;:12;136943:143;;137030:8;;137065:9;;137013:25;;;137053:21;136943:143;137110:1;137096:684;134494:2;137113:1;:18;137096:684;;;137168:1;137157:5;137163:1;137157:8;;;;;;;;;;;:12;137153:616;;;137207:1;137190:18;;;;137235:1;137231;:5;137227:527;;;137357:1;137345:6;137352:1;137345:9;;;;;;;;;;;:13;:21;;137365:1;137345:21;;;137361:1;137345:21;137333:33;;;;;;137227:527;;;137400:2;137396:1;:6;137392:362;;;137515:28;137523:6;137530:1;137523:9;;;;;;;;;;;137534:5;137540:1;137534:8;;;;;;;;;;;137515:7;:28::i;:::-;:36;;137550:1;137515:36;;137392:362;137694:32;137706:6;137713:1;137706:9;;;;;;;;;;;137717:5;137723:1;137717:8;;;;;;;;;;;137694:11;:32::i;:::-;:40;;137733:1;137694:40;;;137729:1;137694:40;137682:52;;;;;;137392:362;137133:3;;137096:684;;;;137840:36;137852:8;137862:13;137840:11;:36::i;:::-;137832:67;;;;-1:-1:-1;;;137832:67:0;;;;;;;;;-1:-1:-1;137919:4:0;;134618:3313;-1:-1:-1;;;;;;;;;;;;;;134618:3313:0:o;58468:193::-;58576:4;58611:1;58606;:6;;58598:32;;;;-1:-1:-1;;;58598:32:0;;;;;;;;;-1:-1:-1;58648:5:0;;;58468:193::o;50561:287::-;50636:5;50680:6;50689:1;50680:10;50662:6;:13;:29;;50654:38;;12:1:-1;9;2:12;50654:38:0;-1:-1:-1;50772:29:0;50788:3;50772:29;50766:36;;50561:287::o;47608:2599::-;47755:12;47820:7;47811:6;:16;47793:6;:13;:35;;47785:44;;12:1:-1;9;2:12;47785:44:0;47842:22;47908:15;;47937:2005;;;;50086:4;50080:11;50067:24;;50139:4;50128:9;50124:20;50118:4;50111:34;47901:2259;;47937:2005;48122:4;48116:11;48103:24;;48791:2;48782:7;48778:16;49179:9;49172:17;49166:4;49162:28;49150:9;49139;49135:25;49131:60;49228:7;49224:2;49220:16;49485:6;49471:9;49464:17;49458:4;49454:28;49442:9;49434:6;49430:22;49426:57;49422:70;49256:434;49519:3;49515:2;49512:11;49256:434;;;49661:9;;49650:21;;49561:4;49553:13;;;;49594;49256:434;;;-1:-1:-1;;49710:26:0;;;49922:2;49905:11;-1:-1:-1;;49901:25:0;49895:4;49888:39;-1:-1:-1;47901:2259:0;-1:-1:-1;50190:9:0;47608:2599;-1:-1:-1;;;;47608:2599:0:o;106876:595::-;107054:4;107076:21;107137:36;;;107199:8;107188:20;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;107188:20:0;;;;107100:143;;107223:9;;107100:143;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;107100:143:0;;;;-1:-1:-1;;;;;107100:143:0;;38:4:-1;29:7;25:18;67:10;61:17;-1:-1;;;;;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;107100:143:0;107076:167;;107255:12;107269:19;107292:6;-1:-1:-1;;;;;107292:17:0;107310:8;107292:27;;;;;;;;;;;;;;;;;;;;;;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;;107254:65:0;;;;107352:7;:43;;;;;107376:6;:13;107393:2;107376:19;107352:43;:100;;;;-1:-1:-1;;;;107412:18:0;:6;107428:1;107412:18;:15;:18;:::i;:::-;-1:-1:-1;;;;;;107412:40:0;;107352:100;107330:133;106876:595;-1:-1:-1;;;;;;;106876:595:0:o;107479:1116::-;107633:7;107662:9;:16;107682:2;107662:22;107658:72;;-1:-1:-1;107716:1:0;107701:17;;107658:72;108067:4;108052:20;;108046:27;108113:4;108098:20;;108092:27;108163:4;108148:20;;108142:27;108171:4;108138:38;108330:66;108317:79;;108313:129;;;108428:1;108413:17;;;;;;;108313:129;108456:1;:7;;108461:2;108456:7;:18;;;;108467:1;:7;;108472:2;108467:7;108456:18;108452:136;;;108498:28;108508:8;108518:1;108521;108524;108498:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108498:28:0;;;;;;;;108491:35;;;;;;;108452:136;108574:1;108559:17;;;;;;;59926:173;60085:4;59926:173::o;140959:162::-;141089:10;;:23;;;-1:-1:-1;;;141089:23:0;;;;141049:7;;-1:-1:-1;;;;;141089:10:0;;:21;;:23;;;;;;;;;;;;;;:10;:23;;;2:2:-1;;;;27:1;24;17:12;2:2;141089:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141089:23: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;141089:23:0;;;;;;;;;141074:39;;140959:162;:::o;138325:284::-;138453:33;;:::i;:::-;138509:6;138504:98;138525:9;:16;138521:1;:20;138504:98;;;138563:5;138569:9;138579:1;138569:12;;;;;;;;;;;;;;:18;;;138563:25;;;;;;;;;;:27;;;;;;;;;138543:3;138504:98;;;;138325:284;;;:::o;137939:183::-;138112:1;138107;138099:9;;;;138098:15;-1:-1:-1;138089:24:0;;137939:183::o;138130:187::-;138302:1;138294:9;;138307:1;138293:15;-1:-1:-1;138284:24:0;;138130:187::o;142502:6741::-;;;;;;;;;;-1:-1:-1;;;;;142502:6741:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;142502:6741:0;;;;;:::o;:::-;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;-1:-1;142502:6741:0;;;-1:-1:-1;;142502:6741:0:o;:::-;;;;;;;;;;-1:-1:-1;;;;;142502:6741:0;;;;;;;;;;;;;;;;;;;;:::o;679:707:-1:-;;796:3;789:4;781:6;777:17;773:27;763:2;;-1:-1;;804:12;763:2;851:6;838:20;873:80;888:64;945:6;888:64;;;873:80;;;981:21;;;864:89;-1:-1;1025:4;1038:14;;;;1013:17;;;1127;;;1118:27;;;;1115:36;-1:-1;1112:2;;;1164:1;;1154:12;1112:2;1189:1;1174:206;1199:6;1196:1;1193:13;1174:206;;;85:6;72:20;97:33;124:5;97:33;;;1267:50;;1331:14;;;;1359;;;;1221:1;1214:9;1174:206;;;1178:14;;;;;756:630;;;;;1410:705;;1536:3;1529:4;1521:6;1517:17;1513:27;1503:2;;-1:-1;;1544:12;1503:2;1591:6;1578:20;1613:89;1628:73;1694:6;1628:73;;1613:89;1730:21;;;1604:98;-1:-1;1774:4;1787:14;;;;1762:17;;;1882:1;1867:242;1892:6;1889:1;1886:13;1867:242;;;1999:46;2041:3;1774:4;1975:3;1962:17;1766:6;1950:30;;1999:46;;;1987:59;;2060:14;;;;2088;;;;1914:1;1907:9;1867:242;;3741:440;;3842:3;3835:4;3827:6;3823:17;3819:27;3809:2;;-1:-1;;3850:12;3809:2;3897:6;3884:20;3919:64;3934:48;3975:6;3934:48;;3919:64;3910:73;;4003:6;3996:5;3989:21;4107:3;4039:4;4098:6;4031;4089:16;;4086:25;4083:2;;;4124:1;;4114:12;4083:2;59550:6;4039:4;4031:6;4027:17;4039:4;4065:5;4061:16;59527:30;59606:1;59588:16;;;4039:4;59588:16;59581:27;4065:5;3802:379;-1:-1;;3802:379;5212:824;;5338:4;5326:9;5321:3;5317:19;5313:30;5310:2;;;-1:-1;;5346:12;5310:2;5374:20;5338:4;5374:20;;;5365:29;;226:6;220:13;238:33;265:5;238:33;;;5476:60;5458:16;5451:86;;5599:2;5668:9;5664:22;6258:13;5599:2;5618:5;5614:16;5607:86;5760:2;5829:9;5825:22;6258:13;5760:2;5779:5;5775:16;5768:86;5921:2;5990:9;5986:22;6258:13;5921:2;5940:5;5936:16;5929:86;5304:732;;;;;6321:241;;6425:2;6413:9;6404:7;6400:23;6396:32;6393:2;;;-1:-1;;6431:12;6393:2;85:6;72:20;97:33;124:5;97:33;;6569:263;;6684:2;6672:9;6663:7;6659:23;6655:32;6652:2;;;-1:-1;;6690:12;6652:2;226:6;220:13;238:33;265:5;238:33;;6839:366;;;6960:2;6948:9;6939:7;6935:23;6931:32;6928:2;;;-1:-1;;6966:12;6928:2;85:6;72:20;97:33;124:5;97:33;;;7018:63;-1:-1;7118:2;7157:22;;72:20;97:33;72:20;97:33;;;7126:63;;;;6922:283;;;;;;7212:491;;;;7350:2;7338:9;7329:7;7325:23;7321:32;7318:2;;;-1:-1;;7356:12;7318:2;85:6;72:20;97:33;124:5;97:33;;;7408:63;-1:-1;7508:2;7547:22;;72:20;97:33;72:20;97:33;;;7312:391;;7516:63;;-1:-1;;;7616:2;7655:22;;;;6110:20;;7312:391;7710:397;;;7849:2;7837:9;7828:7;7824:23;7820:32;7817:2;;;-1:-1;;7855:12;7817:2;7913:17;7900:31;7951:18;;7943:6;7940:30;7937:2;;;-1:-1;;7973:12;7937:2;8074:6;8063:9;8059:22;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;482:6;469:20;459:30;;7951:18;501:6;498:30;495:2;;;-1:-1;;531:12;495:2;626:3;7849:2;;610:6;606:17;567:6;592:32;;589:41;586:2;;;-1:-1;;633:12;586:2;7849;563:17;;8001:90;;-1:-1;7811:296;;-1:-1;;;;7811:296;8114:444;;8280:2;;8268:9;8259:7;8255:23;8251:32;8248:2;;;-1:-1;;8286:12;8248:2;8337:17;8331:24;8375:18;8367:6;8364:30;8361:2;;;-1:-1;;8397:12;8361:2;8525:6;8514:9;8510:22;2308:3;2301:4;2293:6;2289:17;2285:27;2275:2;;-1:-1;;2316:12;2275:2;2356:6;2350:13;2336:27;;2378:106;2393:90;2476:6;2393:90;;2378:106;2512:21;;;2569:14;;;;2544:17;;;2670:4;2658:17;;;2649:27;;;;2646:36;-1:-1;2643:2;;;-1:-1;;2685:12;2643:2;-1:-1;2711:10;;2705:243;2730:6;2727:1;2724:13;2705:243;;;2810:74;2880:3;2868:10;2810:74;;;2798:87;;2752:1;2745:9;;;;;2899:14;;;;2927;;;;2705:243;;;-1:-1;8417:125;;8242:316;-1:-1;;;;;;;;8242:316;8565:257;;8677:2;8665:9;8656:7;8652:23;8648:32;8645:2;;;-1:-1;;8683:12;8645:2;3686:6;3680:13;60290:5;57760:13;57753:21;60268:5;60265:32;60255:2;;-1:-1;;60301:12;8829:360;;8953:2;8941:9;8932:7;8928:23;8924:32;8921:2;;;-1:-1;;8959:12;8921:2;9010:17;9004:24;9048:18;9040:6;9037:30;9034:2;;;-1:-1;;9070:12;9034:2;9156:6;9145:9;9141:22;4302:3;4295:4;4287:6;4283:17;4279:27;4269:2;;-1:-1;;4310:12;4269:2;4350:6;4344:13;4330:27;;4372:64;4387:48;4428:6;4387:48;;4372:64;4456:6;4449:5;4442:21;4560:3;8953:2;4551:6;4484;4542:16;;4539:25;4536:2;;;-1:-1;;4567:12;4536:2;4587:39;4619:6;8953:2;4518:5;4514:16;8953:2;4484:6;4480:17;4587:39;;9196:1309;;;;;;;9476:3;9464:9;9455:7;9451:23;9447:33;9444:2;;;-1:-1;;9483:12;9444:2;9541:17;9528:31;9579:18;;9571:6;9568:30;9565:2;;;-1:-1;;9601:12;9565:2;9631:62;9685:7;9676:6;9665:9;9661:22;9631:62;;;9621:72;;9730:2;;;;9773:9;9769:22;6110:20;9738:63;;9838:2;9881:9;9877:22;6110:20;9846:63;;3096:3;3077:17;10012:9;3077:17;3073:27;3063:2;;-1:-1;;3104:12;3063:2;3157:78;55722:17;3157:78;;;3241:16;9946:2;10012:9;10008:22;3329:27;10012:9;3329:27;3358:3;3329:27;3326:36;3323:2;;;-1:-1;;3365:12;3323:2;-1:-1;3385:206;3138:4;3407:1;3404:13;3385:206;;;6110:20;;3478:50;;3542:14;;;;3570;;;;3432:1;3425:9;3385:206;;;-1:-1;9954:86;;-1:-1;;10077:33;;-1:-1;;10119:30;;;10116:2;;;-1:-1;;10152:12;10116:2;10182:87;10261:7;10252:6;10241:9;10237:22;10182:87;;;10172:97;;10334:3;10323:9;10319:19;10306:33;10292:47;;9579:18;10351:6;10348:30;10345:2;;;-1:-1;;10381:12;10345:2;;10411:78;10481:7;10472:6;10461:9;10457:22;10411:78;;;10401:88;;;9438:1067;;;;;;;;;11444:316;;11585:3;11573:9;11564:7;11560:23;11556:33;11553:2;;;-1:-1;;11592:12;11553:2;11654:90;11736:7;11712:22;11654:90;;11767:263;;11882:2;11870:9;11861:7;11857:23;11853:32;11850:2;;;-1:-1;;11888:12;11850:2;-1:-1;6258:13;;11844:186;-1:-1;11844:186;12037:399;;;12169:2;12157:9;12148:7;12144:23;12140:32;12137:2;;;-1:-1;;12175:12;12137:2;6264:6;6258:13;12227:74;;12338:2;12392:9;12388:22;220:13;238:33;265:5;238:33;;14223:343;;14365:5;56348:12;56890:6;56885:3;56878:19;14458:52;14503:6;56927:4;56922:3;56918:14;56927:4;14484:5;14480:16;14458:52;;;60064:7;60048:14;-1:-1;;60044:28;14522:39;;;;56927:4;14522:39;;14313:253;-1:-1;;14313:253;28765:262;;14733:5;56348:12;14844:52;14889:6;14884:3;14877:4;14870:5;14866:16;14844:52;;;14908:16;;;;;28890:137;-1:-1;;28890:137;29034:544;;14733:5;56348:12;14844:52;14889:6;14884:3;14877:4;14870:5;14866:16;14844:52;;;14908:16;;;;13791:37;;;-1:-1;14877:4;29430:12;;13791:37;29541:12;;;29217:361;-1:-1;29217:361;29585:511;16567:66;16547:87;;16531:2;16653:12;;13791:37;;;;30059:12;;;29793:303;30480:372;25411:34;25391:55;;25480:34;25475:2;25466:12;;25459:56;25549:34;25544:2;25535:12;;25528:56;25618:34;25613:2;25604:12;;25597:56;25688:34;25682:3;25673:13;;25666:57;25758:34;25752:3;25743:13;;25736:57;-1:-1;;;25822:3;25813:13;;25806:29;25374:3;25854:13;;30660:192;30859:213;-1:-1;;;;;58433:54;;;;12841:37;;30977:2;30962:18;;30948:124;31079:324;-1:-1;;;;;58433:54;;;12841:37;;58433:54;;31389:2;31374:18;;12841:37;31225:2;31210:18;;31196:207;31410:435;-1:-1;;;;;58433:54;;;12841:37;;58433:54;;;;31748:2;31733:18;;12841:37;31831:2;31816:18;;13791:37;;;;31584:2;31569:18;;31555:290;31852:547;-1:-1;;;;;58433:54;;;12841:37;;58433:54;;;;32219:2;32204:18;;12841:37;32302:2;32287:18;;13791:37;32385:2;32370:18;;13791:37;;;;32054:3;32039:19;;32025:374;32406:340;-1:-1;;;;;58433:54;;;;12841:37;;32732:2;32717:18;;15186:58;32560:2;32545:18;;32531:215;33084:357;33250:2;33264:47;;;56348:12;;33235:18;;;56878:19;;;33084:357;;33250:2;56203:14;;;;56918;;;;33084:357;13322:257;13347:6;13344:1;13341:13;13322:257;;;13408:13;;-1:-1;;;;;;57926:78;14058:36;;56734:14;;;;12593;;;;13369:1;13362:9;13322:257;;33448:201;57760:13;;57753:21;13674:34;;33560:2;33545:18;;33531:118;33656:213;13791:37;;;33774:2;33759:18;;33745:124;33876:1447;13791:37;;;-1:-1;;;;;58433:54;;;34469:2;34454:18;;12841:37;58433:54;;;34552:2;34537:18;;12841:37;34635:2;34620:18;;13791:37;;;;34718:3;34703:19;;13791:37;;;;58444:42;34787:19;;13791:37;;;;34886:3;34871:19;;13791:37;;;;58433:54;;34970:3;34955:19;;12841:37;35054:3;35039:19;;13791:37;35138:3;35123:19;;13791:37;35223:3;35208:19;;13791:37;58433:54;35308:3;35293:19;;12841:37;34304:3;34289:19;;34275:1048;35330:539;13791:37;;;58649:4;58638:16;;;;35689:2;35674:18;;28718:35;35772:2;35757:18;;13791:37;35855:2;35840:18;;13791:37;35528:3;35513:19;;35499:370;35876:320;-1:-1;;;;;;57926:78;;;;14058:36;;-1:-1;;;;;58433:54;36182:2;36167:18;;12841:37;36020:2;36005:18;;35991:205;36546:492;;36728:2;36749:17;36742:47;36803:76;36728:2;36717:9;36713:18;36865:6;36803:76;;;36927:9;36921:4;36917:20;36912:2;36901:9;36897:18;36890:48;36952:76;37023:4;37014:6;36952:76;;37539:407;37730:2;37744:47;;;15848:2;37715:18;;;56878:19;-1:-1;;;56918:14;;;15864:39;15922:12;;;37701:245;37953:407;38144:2;38158:47;;;16173:2;38129:18;;;56878:19;-1:-1;;;56918:14;;;16189:36;16244:12;;;38115:245;38367:407;38558:2;38572:47;;;16904:2;38543:18;;;56878:19;-1:-1;;;56918:14;;;16920:33;16972:12;;;38529:245;38781:407;38972:2;38986:47;;;17223:2;38957:18;;;56878:19;-1:-1;;;56918:14;;;17239:35;17293:12;;;38943:245;39195:407;39386:2;39400:47;;;17544:2;39371:18;;;56878:19;-1:-1;;;56918:14;;;17560:37;17616:12;;;39357:245;39609:407;39800:2;39814:47;;;17867:2;39785:18;;;56878:19;-1:-1;;;56918:14;;;17883:42;17944:12;;;39771:245;40023:407;40214:2;40228:47;;;18195:2;40199:18;;;56878:19;-1:-1;;;56918:14;;;18211:40;18270:12;;;40185:245;40437:407;40628:2;40642:47;;;18521:2;40613:18;;;56878:19;-1:-1;;;56918:14;;;18537:41;18597:12;;;40599:245;40851:407;41042:2;41056:47;;;18848:2;41027:18;;;56878:19;18884:33;56918:14;;;18864:54;18937:12;;;41013:245;41265:407;41456:2;41470:47;;;19188:2;41441:18;;;56878:19;-1:-1;;;56918:14;;;19204:35;19258:12;;;41427:245;41679:407;41870:2;41884:47;;;19509:2;41855:18;;;56878:19;-1:-1;;;56918:14;;;19525:39;19583:12;;;41841:245;42093:407;42284:2;42298:47;;;19834:2;42269:18;;;56878:19;-1:-1;;;56918:14;;;19850:38;19907:12;;;42255:245;42507:407;42698:2;42712:47;;;20158:2;42683:18;;;56878:19;-1:-1;;;56918:14;;;20174:36;20229:12;;;42669:245;42921:407;43112:2;43126:47;;;20480:2;43097:18;;;56878:19;-1:-1;;;56918:14;;;20496:35;20550:12;;;43083:245;43335:407;43526:2;43540:47;;;20801:2;43511:18;;;56878:19;-1:-1;;;56918:14;;;20817:44;20880:12;;;43497:245;43749:407;43940:2;43954:47;;;21131:2;43925:18;;;56878:19;-1:-1;;;56918:14;;;21147:38;21204:12;;;43911:245;44163:407;44354:2;44368:47;;;21455:2;44339:18;;;56878:19;-1:-1;;;56918:14;;;21471:38;21528:12;;;44325:245;44577:407;44768:2;44782:47;;;21779:2;44753:18;;;56878:19;21815:33;56918:14;;;21795:54;21868:12;;;44739:245;44991:407;45182:2;45196:47;;;22119:2;45167:18;;;56878:19;-1:-1;;;56918:14;;;22135:42;22196:12;;;45153:245;45405:407;45596:2;45610:47;;;22447:2;45581:18;;;56878:19;-1:-1;;;56918:14;;;22463:35;22517:12;;;45567:245;45819:407;46010:2;46024:47;;;22768:2;45995:18;;;56878:19;-1:-1;;;56918:14;;;22784:43;22846:12;;;45981:245;46233:407;46424:2;46438:47;;;23097:2;46409:18;;;56878:19;-1:-1;;;56918:14;;;23113:44;23176:12;;;46395:245;46647:407;46838:2;46852:47;;;23427:2;46823:18;;;56878:19;-1:-1;;;56918:14;;;23443:35;23497:12;;;46809:245;47061:407;47252:2;47266:47;;;23748:2;47237:18;;;56878:19;-1:-1;;;56918:14;;;23764:41;23824:12;;;47223:245;47475:407;47666:2;47680:47;;;24075:2;47651:18;;;56878:19;-1:-1;;;56918:14;;;24091:38;24148:12;;;47637:245;47889:407;48080:2;48094:47;;;24399:1;48065:18;;;56878:19;-1:-1;;;56918:14;;;24414:30;24463:12;;;48051:245;48303:407;48494:2;48508:47;;;25019:2;48479:18;;;56878:19;-1:-1;;;56918:14;;;25035:33;25087:12;;;48465:245;48717:407;48908:2;48922:47;;;26106:2;48893:18;;;56878:19;26142:34;56918:14;;;26122:55;-1:-1;;;26197:12;;;26190:26;26235:12;;;48879:245;49131:407;49322:2;49336:47;;;26486:2;49307:18;;;56878:19;-1:-1;;;56918:14;;;26502:39;26560:12;;;49293:245;49545:407;49736:2;49750:47;;;26811:2;49721:18;;;56878:19;-1:-1;;;56918:14;;;26827:35;26881:12;;;49707:245;49959:407;50150:2;50164:47;;;27132:2;50135:18;;;56878:19;-1:-1;;;56918:14;;;27148:41;27208:12;;;50121:245;50373:407;50564:2;50578:47;;;27459:1;50549:18;;;56878:19;-1:-1;;;56918:14;;;27474:29;27522:12;;;50535:245;50787:407;50978:2;50992:47;;;27773:2;50963:18;;;56878:19;-1:-1;;;56918:14;;;27789:41;27849:12;;;50949:245;51201:407;51392:2;51406:47;;;28100:2;51377:18;;;56878:19;28136:28;56918:14;;;28116:49;28184:12;;;51363:245;51615:407;51806:2;51820:47;;;28435:2;51791:18;;;56878:19;-1:-1;;;56918:14;;;28451:35;28505:12;;;51777:245;52249:324;13791:37;;;-1:-1;;;;;58433:54;52559:2;52544:18;;12841:37;52395:2;52380:18;;52366:207;52580:731;;13821:5;13798:3;13791:37;13821:5;52987:2;52976:9;52972:18;13791:37;13821:5;53070:2;53059:9;53055:18;13791:37;13701:5;57760:13;57753:21;53147:2;53136:9;53132:18;13674:34;52822:3;53184;53173:9;53169:19;53162:49;53225:76;52822:3;52811:9;52807:19;53287:6;53225:76;;53318:324;13791:37;;;53628:2;53613:18;;13791:37;53464:2;53449:18;;53435:207;53649:623;;58649:4;28746:5;58638:16;28725:3;28718:35;7951:18;;58444:42;;;57676:5;58433:54;54026:2;54015:9;54011:18;12841:37;13821:5;54109:2;54098:9;54094:18;13791:37;53865:3;54146:2;54135:9;54131:18;54124:48;54186:76;53865:3;53854:9;53850:19;54248:6;54186:76;;;54178:84;53836:436;-1:-1;;;;;;53836:436;54279:256;54341:2;54335:9;54367:17;;;54442:18;54427:34;;54463:22;;;54424:62;54421:2;;;54499:1;;54489:12;54421:2;54341;54508:22;54319:216;;-1:-1;54319:216;54542:304;;54701:18;54693:6;54690:30;54687:2;;;-1:-1;;54723:12;54687:2;-1:-1;54768:4;54756:17;;;54821:15;;54624:222;55761:321;;55904:18;55896:6;55893:30;55890:2;;;-1:-1;;55926:12;55890:2;-1:-1;60064:7;55980:17;-1:-1;;55976:33;56067:4;56057:15;;55827:255;59623:268;59688:1;59695:101;59709:6;59706:1;59703:13;59695:101;;;59776:11;;;59770:18;59757:11;;;59750:39;59731:2;59724:10;59695:101;;;59811:6;59808:1;59805:13;59802:2;;;-1:-1;;59688:1;59858:16;;59851:27;59672:219;60085:117;-1:-1;;;;;58433:54;;60144:35;;60134:2;;60193:1;;60183:12;60128:74;102928:111:0;;103194:7;;103266:9;;102928:111;;;;;;;;;;;;103406:6;:11;;;103390:29;;;;;;103454:6;:14;;;103438:32;;;;;;103489:8;103516:6;:24;;;103320:235;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;103320:235:0;;;103296:270;;;;;;103289:277;;;103108:466;;;:::o;866:372:-1:-;542:34;522:55;;611:34;606:2;597:12;;590:56;-1:-1;;;675:2;666:12;;659:42;506:2;720:12;;1046:192;1245:659;196:37;;;1640:2;1625:18;;196:37;;;;1723:2;1708:18;;196:37;;;;1806:2;1791:18;;196:37;-1:-1;;;;;2304:54;1889:3;1874:19;;76:37;1475:3;1460:19;;1446:458
Swarm Source
ipfs://1267bcae79de177d2b65c72feee17c0261b0f46e46f1a27383cf4e869d12e6e3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.