Address Details
contract
0x6E17CF4e1A21125D0Ce9a1ce4A284AD7BF783B67
- Contract Name
- StakedCelo
- Creator
- 0x5bc1c4–68a788 at 0xe9fd0a–ad6613
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 28942411
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- StakedCelo
- Optimization enabled
- false
- Compiler version
- v0.8.11+commit.d7f03943
- EVM Version
- istanbul
- Verified at
- 2024-05-28T10:21:15.076885Z
contracts/StakedCelo.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./common/ERC20Upgradeable.sol"; import "./common/UsingRegistryUpgradeable.sol"; import "./common/UUPSOwnableUpgradeable.sol"; import "./Managed.sol"; import "./interfaces/IManager.sol"; import "./Pausable.sol"; /** * @title An ERC-20 token that is a fungible and transferrable representation * of reward-earning voted LockedGold (i.e. locked CELO). */ contract StakedCelo is ERC20Upgradeable, UUPSOwnableUpgradeable, Managed, Pausable { mapping(address => uint256) private _lockedBalances; /** * @notice Emitted when stCELO is locked. * @param account The owner of locked stCELO. * @param amount The amount of locked stCELO. */ event LockedStCelo(address account, uint256 amount); /** * @notice Emitted when stCELO is inlocked. * @param account The owner of unlocked stCELO. * @param amount The amount of unlocked stCELO. */ event UnlockedStCelo(address account, uint256 amount); /** * @notice Used when attempting to unlock stCELO when there is no locked stCELO. * @param account The account's address. */ error NoLockedStakedCelo(address account); /** * @notice Used when attempting to lock stCELO when there is not enough stCELO. * @param account The account's address. */ error NotEnoughStCeloToLock(address account); /** * @notice Used when attempting to unlock stCELO when there is no stCELO to unlock. * @param account The account's address. */ error NothingToUnlock(address account); /** * @notice Empty constructor for proxy implementation, `initializer` modifer ensures the * implementation gets initialized. */ // solhint-disable-next-line no-empty-blocks constructor() initializer {} /** * @notice Initializes the contract. * @param _manager The address of the Manager contract. * @param _owner The address to set as the owner. */ function initialize(address _manager, address _owner) external initializer { __ERC20_init("Staked CELO", "stCELO"); __Managed_init(_manager); _transferOwnership(_owner); } /** * @notice Sets that address permissioned to pause/unpause this contract to * the owner of this contract. */ function setPauser() external onlyOwner { _setPauser(owner()); } /** * @notice Mints new stCELO to an address. * @param to The address that will receive the new stCELO. * @param amount The amount of stCELO to mint. */ function mint(address to, uint256 amount) external onlyManager { _mint(to, amount); } /** * @notice Burns stCELO from an address. * @param from The address that will have its stCELO burned. * @param amount The amount of stCELO to burn. */ function burn(address from, uint256 amount) external onlyManager { _burn(from, amount); } /** * @notice Locks vote stCELO from an address. * @param account The address that will have its stCELO balance locked. * @param amount The amount of stCELO to lock. */ function lockVoteBalance(address account, uint256 amount) external onlyManager { uint256 lockedBalance = _lockedBalances[account]; if (lockedBalance < amount) { _lockedBalances[account] = amount; uint256 amountToSubtract = amount - lockedBalance; uint256 accountBalance = balanceOf(account); if (accountBalance < amountToSubtract) { revert NotEnoughStCeloToLock(account); } unchecked { _balances[account] = accountBalance - amountToSubtract; } emit LockedStCelo(account, amount); } } /** * @notice Returns the storage, major, minor, and patch version of the contract. * @return Storage version of the contract. * @return Major version of the contract. * @return Minor version of the contract. * @return Patch version of the contract. */ function getVersionNumber() external pure returns ( uint256, uint256, uint256, uint256 ) { return (1, 1, 3, 0); } /** * @notice Unlocks vote stCELO from an address. * @param beneficiary The address that will have its stCELO balance unlocked. */ function unlockVoteBalance(address beneficiary) public onlyWhenNotPaused { uint256 previouslyLocked = _lockedBalances[beneficiary]; if (previouslyLocked == 0) { revert NoLockedStakedCelo(beneficiary); } uint256 currentlyLocked = IManager(manager).updateHistoryAndReturnLockedStCeloInVoting( beneficiary ); if (previouslyLocked <= currentlyLocked) { revert NothingToUnlock(beneficiary); } _lockedBalances[beneficiary] = currentlyLocked; uint256 amountToAdd = previouslyLocked - currentlyLocked; _balances[beneficiary] += amountToAdd; emit UnlockedStCelo(beneficiary, previouslyLocked - _lockedBalances[beneficiary]); } /** * @notice Returns vote stCELO locked balance. * @param account The address of locked stCELO balance. * @return The amount of locked stCELO. */ function lockedVoteBalanceOf(address account) public view returns (uint256) { return _lockedBalances[account]; } /** * @notice Registers transfer to manager whenever stCELO is being transfered. **/ function _afterTokenTransfer( address from, address to, uint256 amount ) internal override { if (from == address(0) || to == address(0)) { // mint or burn return; } IManager(manager).transfer(from, to, amount); } function _approve( address from, address to, uint256 amount ) internal override onlyWhenNotPaused { super._approve(from, to, amount); } function _transfer( address from, address to, uint256 amount ) internal override onlyWhenNotPaused { super._transfer(from, to, amount); } }
/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeacon.sol"; import "../../utils/Address.sol"; import "../../utils/StorageSlot.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967Upgrade { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallSecure( address newImplementation, bytes memory data, bool forceCall ) internal { address oldImplementation = _getImplementation(); // Initial upgrade and setup call _setImplementation(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } // Perform rollback test if not already in progress StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT); if (!rollbackTesting.value) { // Trigger rollback using upgradeTo from the new implementation rollbackTesting.value = true; Address.functionDelegateCall( newImplementation, abi.encodeWithSignature("upgradeTo(address)", oldImplementation) ); rollbackTesting.value = false; // Check rollback was effective require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades"); // Finally reset to the new implementation and log the upgrade _upgradeTo(newImplementation); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } }
/@openzeppelin/contracts/proxy/beacon/IBeacon.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../ERC1967/ERC1967Upgrade.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is ERC1967Upgrade { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallSecure(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; }
/@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/@openzeppelin/contracts/utils/StorageSlot.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } }
/@openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
/@openzeppelin/contracts/utils/math/Math.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/contracts/Managed.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "./common/Errors.sol"; /** * @title Used via inheritance to grant special access control to the Manager * contract. */ abstract contract Managed is Errors, Initializable, OwnableUpgradeable { address public manager; /** * @notice Emitted when the manager is initially set or later modified. * @param manager The new managing account address. */ event ManagerSet(address indexed manager); /** * @notice Used when an `onlyManager` function is called by a non-manager. * @param caller `msg.sender` that called the function. */ error CallerNotManager(address caller); /** * @dev Throws if called by any account other than the manager. */ modifier onlyManager() { if (manager != msg.sender) { revert CallerNotManager(msg.sender); } _; } /** * @notice Sets the manager address. * @param _manager The new manager address. */ function setManager(address _manager) external onlyOwner { _setManager(_manager); } /** * @dev Initializes the contract in an upgradable context. * @param _manager The initial managing address. */ // solhint-disable-next-line func-name-mixedcase function __Managed_init(address _manager) internal onlyInitializing { _setManager(_manager); } /** * @notice Sets the manager address. * @param _manager The new manager address. */ function _setManager(address _manager) internal { if (_manager == address(0)) { revert AddressZeroNotAllowed(); } manager = _manager; emit ManagerSet(_manager); } }
/contracts/Pausable.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; import "./interfaces/IPausable.sol"; import "./common/Errors.sol"; /** * @title A helper contract to add pasuing functionality to a contract. * @notice Used to prevent/mitigate damage in case an exploit is found in the * extending contract. */ abstract contract Pausable is Errors, IPausable { /** * @notice The storage slot under which we store a boolean representing * whether or not the contract is currently paused. */ bytes32 public constant PAUSED_POSITION = bytes32(uint256(keccak256("staked-celo.pausable.paused")) - 1); /** * @notice The storage slot under which we store an address representing the * address permissioned to pause/unpause this contract. */ bytes32 public constant PAUSER_POSITION = bytes32(uint256(keccak256("staked-celo.pausable.pauser")) - 1); /** * Emitted when this contract is paused. */ event ContractPaused(); /** * Emitted when this contract is unpaused. */ event ContractUnpaused(); /** * @notice Emitted when the address authorized to pause/unpause the contract is * changed. * @param pauser THe new pauser. */ event PauserSet(address pauser); /** * @notice Used when an `onlyWhenNotPaused` function is called while the * contract is paused. */ error Paused(); /** * @notice Used when an `onlyPauser` function is called with a different * address. */ error OnlyPauser(); /** * @notice Reverts if the contract is paused. */ modifier onlyWhenNotPaused() { if (isPaused()) { revert Paused(); } _; } /** * @notice Reverts if the caller is not the pauser. */ modifier onlyPauser() { if (msg.sender != pauser()) { revert OnlyPauser(); } _; } /** * @notice Pauses the contract. */ function pause() public onlyPauser { _setPaused(true); emit ContractPaused(); } /** * @notice Unpauses the contract. */ function unpause() public onlyPauser { _setPaused(false); emit ContractUnpaused(); } /** * @notice Returns whether or not the contract is paused. * @return `true` if the contract is paused, `false` otherwise. */ function isPaused() public view returns (bool) { bool paused; bytes32 pausedPosition = PAUSED_POSITION; // solhint-disable-next-line no-inline-assembly assembly { paused := sload(pausedPosition) } return paused; } /** * @notice Returns the address permissioned to pause/unpause this contract. */ function pauser() public view returns (address) { address pauserAddress; bytes32 pauserPosition = PAUSER_POSITION; // solhint-disable-next-line no-inline-assembly assembly { pauserAddress := sload(pauserPosition) } return pauserAddress; } /** * @notice Sets the contract's paused state. * @param paused `true` for paused, `false` for unpaused. */ function _setPaused(bool paused) internal { bytes32 pausedPosition = PAUSED_POSITION; // solhint-disable-next-line no-inline-assembly assembly { sstore(pausedPosition, paused) } } /** * @notice Sets the address permissioned to pause this contract. * @param _pauser The new pauser. * @dev This should be wrapped by the inheriting contract, likely in a * permissioned function like `onlyOwner`. */ function _setPauser(address _pauser) internal { if (_pauser == address(0)) { revert AddressZeroNotAllowed(); } bytes32 pauserPosition = PAUSER_POSITION; // solhint-disable-next-line no-inline-assembly assembly { sstore(pauserPosition, _pauser) } emit PauserSet(_pauser); } }
/contracts/common/ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity 0.8.11; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; // Only change is in that _balances have internal modifier instead of private modifier /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ // solhint-disable-next-line func-name-mixedcase function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } // solhint-disable-next-line func-name-mixedcase function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; // solhint-disable-next-line reason-string require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { // solhint-disable-next-line reason-string require(from != address(0), "ERC20: transfer from the zero address"); // solhint-disable-next-line reason-string require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; // solhint-disable-next-line reason-string require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { // solhint-disable-next-line reason-string require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; // solhint-disable-next-line reason-string require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { // solhint-disable-next-line reason-string require(owner != address(0), "ERC20: approve from the zero address"); // solhint-disable-next-line reason-string require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to * xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount // solhint-disable-next-line no-empty-blocks ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to * xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount // solhint-disable-next-line no-empty-blocks ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[45] private __gap; }
/contracts/common/Errors.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; /** * @title Provides some common general errors. */ abstract contract Errors { /** * @notice Used when attempting to pass in address zero where not allowed. */ error AddressZeroNotAllowed(); }
/contracts/common/UUPSOwnableUpgradeable.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; /** * @title A contract that links UUPSUUpgradeable with OwanbleUpgradeable to gate upgrades. */ abstract contract UUPSOwnableUpgradeable is UUPSUpgradeable, OwnableUpgradeable { /** * @notice Guard method for UUPS (Universal Upgradable Proxy Standard) * See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#transparent-vs-uups * @dev This methods overrides the virtual one in UUPSUpgradeable and * adds the onlyOwner modifer. */ // solhint-disable-next-line no-empty-blocks function _authorizeUpgrade(address) internal override onlyOwner {} }
/contracts/common/UsingRegistryUpgradeable.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "../interfaces/IAccounts.sol"; import "../interfaces/IElection.sol"; import "../interfaces/IGoldToken.sol"; import "../interfaces/ILockedGold.sol"; import "../interfaces/IRegistry.sol"; import "../interfaces/IGovernance.sol"; import "../interfaces/IValidators.sol"; /** * @title A helper for getting Celo core contracts from the Registry. */ abstract contract UsingRegistryUpgradeable is Initializable { /// @notice The canonical address of the Registry. address internal constant CANONICAL_REGISTRY = 0x000000000000000000000000000000000000ce10; /// @notice The registry ID for the Accounts contract. bytes32 private constant ACCOUNTS_REGISTRY_ID = keccak256(abi.encodePacked("Accounts")); /// @notice The registry ID for the Election contract. bytes32 private constant ELECTION_REGISTRY_ID = keccak256(abi.encodePacked("Election")); /// @notice The registry ID for the GoldToken contract. bytes32 private constant GOLD_TOKEN_REGISTRY_ID = keccak256(abi.encodePacked("GoldToken")); /// @notice The registry ID for the LockedGold contract. bytes32 private constant LOCKED_GOLD_REGISTRY_ID = keccak256(abi.encodePacked("LockedGold")); /// @notice The registry ID for the Governance contract. bytes32 private constant GOVERNANCE_REGISTRY_ID = keccak256(abi.encodePacked("Governance")); /// @notice The registry ID for the Validator contract. bytes32 private constant VALIDATORS_REGISTRY_ID = keccak256(abi.encodePacked("Validators")); /// @notice The Registry. IRegistry public registry; /** * @notice Initializes the UsingRegistryUpgradable contract in an upgradable scenario * @param _registry The address of the Registry. For convenience, if the zero address is * provided, the registry is set to the canonical Registry address, i.e. 0x0...ce10. This * parameter should only be a non-zero address when testing. */ // solhint-disable-next-line func-name-mixedcase function __UsingRegistry_init(address _registry) internal onlyInitializing { if (_registry == address(0)) { registry = IRegistry(CANONICAL_REGISTRY); } else { registry = IRegistry(_registry); } } /** * @notice Gets the Accounts contract from the Registry. * @return The Accounts contract from the Registry. */ function getAccounts() internal view returns (IAccounts) { return IAccounts(registry.getAddressForOrDie(ACCOUNTS_REGISTRY_ID)); } /** * @notice Gets the Election contract from the Registry. * @return The Election contract from the Registry. */ function getElection() internal view returns (IElection) { return IElection(registry.getAddressForOrDie(ELECTION_REGISTRY_ID)); } /** * @notice Gets the GoldToken contract from the Registry. * @return The GoldToken contract from the Registry. */ function getGoldToken() internal view returns (IGoldToken) { return IGoldToken(registry.getAddressForOrDie(GOLD_TOKEN_REGISTRY_ID)); } /** * @notice Gets the LockedGold contract from the Registry. * @return The LockedGold contract from the Registry. */ function getLockedGold() internal view returns (ILockedGold) { return ILockedGold(registry.getAddressForOrDie(LOCKED_GOLD_REGISTRY_ID)); } /** * @notice Gets the Governance contract from the Registry. * @return The Governance contract from the Registry. */ function getGovernance() internal view returns (IGovernance) { return IGovernance(registry.getAddressForOrDie(GOVERNANCE_REGISTRY_ID)); } /** * @notice Gets the validators contract from the Registry. * @return The validators contract from the Registry. */ function getValidators() internal view returns (IValidators) { return IValidators(registry.getAddressForOrDie(VALIDATORS_REGISTRY_ID)); } }
/contracts/interfaces/IAccounts.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IAccounts { function isAccount(address) external view returns (bool); function voteSignerToAccount(address) external view returns (address); function validatorSignerToAccount(address) external view returns (address); function attestationSignerToAccount(address) external view returns (address); function signerToAccount(address) external view returns (address); function getAttestationSigner(address) external view returns (address); function getValidatorSigner(address) external view returns (address); function getVoteSigner(address) external view returns (address); function hasAuthorizedVoteSigner(address) external view returns (bool); function hasAuthorizedValidatorSigner(address) external view returns (bool); function hasAuthorizedAttestationSigner(address) external view returns (bool); function setAccountDataEncryptionKey(bytes calldata) external; function setMetadataURL(string calldata) external; function setName(string calldata) external; function setWalletAddress( address, uint8, bytes32, bytes32 ) external; function setAccount( string calldata, bytes calldata, address, uint8, bytes32, bytes32 ) external; function getDataEncryptionKey(address) external view returns (bytes memory); function getWalletAddress(address) external view returns (address); function getMetadataURL(address) external view returns (string memory); function batchGetMetadataURL(address[] calldata) external view returns (uint256[] memory, bytes memory); function getName(address) external view returns (string memory); function authorizeVoteSigner( address, uint8, bytes32, bytes32 ) external; function authorizeValidatorSigner( address, uint8, bytes32, bytes32 ) external; function authorizeValidatorSignerWithPublicKey( address, uint8, bytes32, bytes32, bytes calldata ) external; function authorizeValidatorSignerWithKeys( address, uint8, bytes32, bytes32, bytes calldata, bytes calldata, bytes calldata ) external; function authorizeAttestationSigner( address, uint8, bytes32, bytes32 ) external; function createAccount() external returns (bool); }
/contracts/interfaces/IElection.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IElection { function vote( address, uint256, address, address ) external returns (bool); function activate(address) external returns (bool); function activateForAccount(address, address) external returns (bool); function revokeActive( address, uint256, address, address, uint256 ) external returns (bool); function revokeAllActive( address, address, address, uint256 ) external returns (bool); function revokePending( address, uint256, address, address, uint256 ) external returns (bool); function markGroupIneligible(address) external; function markGroupEligible( address, address, address ) external; function forceDecrementVotes( address, uint256, address[] calldata, address[] calldata, uint256[] calldata ) external returns (uint256); // only owner function setElectableValidators(uint256, uint256) external returns (bool); function setMaxNumGroupsVotedFor(uint256) external returns (bool); function setElectabilityThreshold(uint256) external returns (bool); // only VM function distributeEpochRewards( address, uint256, address, address ) external; function allowedToVoteOverMaxNumberOfGroups(address) external returns (bool); function setAllowedToVoteOverMaxNumberOfGroups(bool flag) external; // view functions function electValidatorSigners() external view returns (address[] memory); function electNValidatorSigners(uint256, uint256) external view returns (address[] memory); function getElectableValidators() external view returns (uint256, uint256); function getElectabilityThreshold() external view returns (uint256); function getNumVotesReceivable(address) external view returns (uint256); function getTotalVotes() external view returns (uint256); function getActiveVotes() external view returns (uint256); function getTotalVotesByAccount(address) external view returns (uint256); function getPendingVotesForGroupByAccount(address, address) external view returns (uint256); function getActiveVotesForGroupByAccount(address, address) external view returns (uint256); function getTotalVotesForGroupByAccount(address, address) external view returns (uint256); function getActiveVoteUnitsForGroupByAccount(address, address) external view returns (uint256); function getTotalVotesForGroup(address) external view returns (uint256); function getActiveVotesForGroup(address) external view returns (uint256); function getPendingVotesForGroup(address) external view returns (uint256); function getGroupEligibility(address) external view returns (bool); function getGroupEpochRewards( address, uint256, uint256[] calldata ) external view returns (uint256); function getGroupsVotedForByAccount(address) external view returns (address[] memory); function getEligibleValidatorGroups() external view returns (address[] memory); function getTotalVotesForEligibleValidatorGroups() external view returns (address[] memory, uint256[] memory); function getCurrentValidatorSigners() external view returns (address[] memory); function canReceiveVotes(address, uint256) external view returns (bool); function hasActivatablePendingVotes(address, address) external view returns (bool); function maxNumGroupsVotedFor() external view returns (uint256); function validatorSignerAddressFromCurrentSet(uint256 index) external view returns (address); function numberValidatorsInCurrentSet() external view returns (uint256); function getEpochNumber() external view returns (uint256); }
/contracts/interfaces/IGoldToken.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IGoldToken { function transfer(address to, uint256 value) external returns (bool); function transferWithComment( address to, uint256 value, string calldata comment ) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function increaseAllowance(address spender, uint256 value) external returns (bool); function decreaseAllowance(address spender, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function balanceOf(address owner) external view returns (uint256); }
/contracts/interfaces/IGovernance.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IGovernance { function votePartially( uint256 proposalId, uint256 index, uint256 yesVotes, uint256 noVotes, uint256 abstainVotes ) external returns (bool); function getProposal(uint256 proposalId) external view returns ( address, uint256, uint256, uint256, string memory ); function getReferendumStageDuration() external view returns (uint256); }
/contracts/interfaces/ILockedGold.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface ILockedGold { function lock() external payable; function incrementNonvotingAccountBalance(address, uint256) external; function unlock(uint256) external; function relock(uint256, uint256) external; function withdraw(uint256) external; function slash( address account, uint256 penalty, address reporter, uint256 reward, address[] calldata lessers, address[] calldata greaters, uint256[] calldata indices ) external; function decrementNonvotingAccountBalance(address, uint256) external; function unlockingPeriod() external view returns (uint256); function getAccountTotalLockedGold(address) external view returns (uint256); function getTotalLockedGold() external view returns (uint256); function getPendingWithdrawal(address, uint256) external view returns (uint256, uint256); function getSlashingWhitelist() external view returns (bytes32[] memory); function getPendingWithdrawals(address) external view returns (uint256[] memory, uint256[] memory); function getTotalPendingWithdrawals(address) external view returns (uint256); function isSlasher(address) external view returns (bool); function owner() external view returns (address); function getAccountNonvotingLockedGold(address account) external view returns (uint256); }
/contracts/interfaces/IManager.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IManager { function updateHistoryAndReturnLockedStCeloInVoting(address beneficiary) external returns (uint256); function transfer( address from, address to, uint256 amount ) external; function scheduleTransferWithinStrategy( address[] calldata fromGroups, address[] calldata toGroups, uint256[] calldata fromVotes, uint256[] calldata toVotes ) external; function toCelo(uint256 stCeloAmount) external view returns (uint256); function toStakedCelo(uint256 celoAmount) external view returns (uint256); function getReceivableVotesForGroup(address group) external view returns (uint256); }
/contracts/interfaces/IPausable.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IPausable { function pause() external; function unpause() external; function isPaused() external returns (bool); }
/contracts/interfaces/IRegistry.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; interface IRegistry { function setAddressFor(string calldata, address) external; function getAddressForOrDie(bytes32) external view returns (address); function getAddressFor(bytes32) external view returns (address); function getAddressForStringOrDie(string calldata identifier) external view returns (address); function getAddressForString(string calldata identifier) external view returns (address); function isOneOf(bytes32[] calldata, address) external view returns (bool); }
/contracts/interfaces/IValidators.sol
//SPDX-License-Identifier: LGPL-3.0-only pragma solidity ^0.8.11; interface IValidators { function registerValidator( bytes calldata, bytes calldata, bytes calldata ) external returns (bool); function deregisterValidator(uint256) external returns (bool); function affiliate(address) external returns (bool); function deaffiliate() external returns (bool); function updateBlsPublicKey(bytes calldata, bytes calldata) external returns (bool); function registerValidatorGroup(uint256) external returns (bool); function deregisterValidatorGroup(uint256) external returns (bool); function addMember(address) external returns (bool); function addFirstMember( address, address, address ) external returns (bool); function removeMember(address) external returns (bool); function reorderMember( address, address, address ) external returns (bool); function updateCommission() external; function setNextCommissionUpdate(uint256) external; function resetSlashingMultiplier() external; // only owner function setCommissionUpdateDelay(uint256) external; function setMaxGroupSize(uint256) external returns (bool); function setMembershipHistoryLength(uint256) external returns (bool); function setValidatorScoreParameters(uint256, uint256) external returns (bool); function setGroupLockedGoldRequirements(uint256, uint256) external returns (bool); function setValidatorLockedGoldRequirements(uint256, uint256) external returns (bool); function setSlashingMultiplierResetPeriod(uint256) external; // view functions function getMaxGroupSize() external view returns (uint256); function getCommissionUpdateDelay() external view returns (uint256); function getValidatorScoreParameters() external view returns (uint256, uint256); function getMembershipHistory(address) external view returns ( uint256[] memory, address[] memory, uint256, uint256 ); function calculateEpochScore(uint256) external view returns (uint256); function calculateGroupEpochScore(uint256[] calldata) external view returns (uint256); function getAccountLockedGoldRequirement(address) external view returns (uint256); function meetsAccountLockedGoldRequirements(address) external view returns (bool); function getValidatorBlsPublicKeyFromSigner(address) external view returns (bytes memory); function getValidator(address account) external view returns ( bytes memory, bytes memory, address, uint256, address ); function getValidatorGroup(address) external view returns ( address[] memory, uint256, uint256, uint256, uint256[] memory, uint256, uint256 ); function getGroupNumMembers(address) external view returns (uint256); function getTopGroupValidators(address, uint256) external view returns (address[] memory); function getGroupsNumMembers(address[] calldata accounts) external view returns (uint256[] memory); function getNumRegisteredValidators() external view returns (uint256); function groupMembershipInEpoch( address, uint256, uint256 ) external view returns (address); // only registered contract function updateEcdsaPublicKey( address, address, bytes calldata ) external returns (bool); function updatePublicKeys( address, address, bytes calldata, bytes calldata, bytes calldata ) external returns (bool); function getValidatorLockedGoldRequirements() external view returns (uint256, uint256); function getGroupLockedGoldRequirements() external view returns (uint256, uint256); function getRegisteredValidators() external view returns (address[] memory); function getRegisteredValidatorSigners() external view returns (address[] memory); function getRegisteredValidatorGroups() external view returns (address[] memory); function isValidatorGroup(address) external view returns (bool); function isValidator(address) external view returns (bool); function getValidatorGroupSlashingMultiplier(address) external view returns (uint256); function getMembershipInLastEpoch(address) external view returns (address); function getMembershipInLastEpochFromSigner(address) external view returns (address); // only VM function updateValidatorScoreFromSigner(address, uint256) external; function distributeEpochPaymentsFromSigner(address, uint256) external returns (uint256); // only slasher function forceDeaffiliateIfValidator(address) external; function halveSlashingMultiplier(address) external; }
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"contracts/StakedCelo.sol":"StakedCelo"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"AddressZeroNotAllowed","inputs":[]},{"type":"error","name":"CallerNotManager","inputs":[{"type":"address","name":"caller","internalType":"address"}]},{"type":"error","name":"NoLockedStakedCelo","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"NotEnoughStCeloToLock","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"NothingToUnlock","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"OnlyPauser","inputs":[]},{"type":"error","name":"Paused","inputs":[]},{"type":"event","name":"AdminChanged","inputs":[{"type":"address","name":"previousAdmin","internalType":"address","indexed":false},{"type":"address","name":"newAdmin","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BeaconUpgraded","inputs":[{"type":"address","name":"beacon","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ContractPaused","inputs":[],"anonymous":false},{"type":"event","name":"ContractUnpaused","inputs":[],"anonymous":false},{"type":"event","name":"LockedStCelo","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ManagerSet","inputs":[{"type":"address","name":"manager","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PauserSet","inputs":[{"type":"address","name":"pauser","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UnlockedStCelo","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"type":"address","name":"implementation","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PAUSED_POSITION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PAUSER_POSITION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVersionNumber","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_manager","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPaused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockVoteBalance","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockedVoteBalanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"manager","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pauser","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setManager","inputs":[{"type":"address","name":"_manager","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPauser","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unlockVoteBalance","inputs":[{"type":"address","name":"beneficiary","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"upgradeTo","inputs":[{"type":"address","name":"newImplementation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"upgradeToAndCall","inputs":[{"type":"address","name":"newImplementation","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]}]
Contract Creation Code
0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152503480156200004457600080fd5b50600060019054906101000a900460ff166200006f5760008054906101000a900460ff161562000080565b6200007f6200013c60201b60201c565b5b620000c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b99062000204565b60405180910390fd5b60008060019054906101000a900460ff16159050801562000113576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015620001355760008060016101000a81548160ff0219169083151502179055505b5062000226565b600062000154306200015a60201b62001b651760201c565b15905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000620001ec602e836200017d565b9150620001f9826200018e565b604082019050919050565b600060208201905081810360008301526200021f81620001dd565b9050919050565b60805161414b6200025760003960008181610865015281816108f401528181610da40152610e33015261414b6000f3fe6080604052600436106101e35760003560e01c8063715018a6116101025780639fd0506d11610095578063d0ebdbe711610064578063d0ebdbe7146106b4578063dd62ed3e146106dd578063e37d49b81461071a578063f2fde38b14610743576101e3565b80639fd0506d146105e4578063a457c2d71461060f578063a9059cbb1461064c578063b187bd2614610689576101e3565b80639468ba0e116100d15780639468ba0e1461053c57806395d89b41146105675780639caa9e29146105925780639dc29fac146105bb576101e3565b8063715018a6146104cc5780637c0d530f146104e35780638456cb59146104fa5780638da5cb5b14610511576101e3565b80633f4ba83a1161017a5780634f1ef286116101495780634f1ef28614610408578063536a5f271461042457806354255be01461046157806370a082311461048f576101e3565b80633f4ba83a1461037457806340c10f191461038b578063481c6a75146103b4578063485cc955146103df576101e3565b8063313ce567116101b6578063313ce567146102b85780633659cfe6146102e3578063395093511461030c5780633cbf587214610349576101e3565b806306fdde03146101e8578063095ea7b31461021357806318160ddd1461025057806323b872dd1461027b575b600080fd5b3480156101f457600080fd5b506101fd61076c565b60405161020a9190612fdb565b60405180910390f35b34801561021f57600080fd5b5061023a600480360381019061023591906130a5565b6107fe565b6040516102479190613100565b60405180910390f35b34801561025c57600080fd5b50610265610821565b604051610272919061312a565b60405180910390f35b34801561028757600080fd5b506102a2600480360381019061029d9190613145565b61082b565b6040516102af9190613100565b60405180910390f35b3480156102c457600080fd5b506102cd61085a565b6040516102da91906131b4565b60405180910390f35b3480156102ef57600080fd5b5061030a600480360381019061030591906131cf565b610863565b005b34801561031857600080fd5b50610333600480360381019061032e91906130a5565b6109ec565b6040516103409190613100565b60405180910390f35b34801561035557600080fd5b5061035e610a96565b60405161036b9190613215565b60405180910390f35b34801561038057600080fd5b50610389610acc565b005b34801561039757600080fd5b506103b260048036038101906103ad91906130a5565b610b70565b005b3480156103c057600080fd5b506103c9610c10565b6040516103d6919061323f565b60405180910390f35b3480156103eb57600080fd5b506104066004803603810190610401919061325a565b610c36565b005b610422600480360381019061041d91906133cf565b610da2565b005b34801561043057600080fd5b5061044b600480360381019061044691906131cf565b610edf565b604051610458919061312a565b60405180910390f35b34801561046d57600080fd5b50610476610f28565b604051610486949392919061342b565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b191906131cf565b610f43565b6040516104c3919061312a565b60405180910390f35b3480156104d857600080fd5b506104e1610f8c565b005b3480156104ef57600080fd5b506104f8611014565b005b34801561050657600080fd5b5061050f6110a2565b005b34801561051d57600080fd5b50610526611146565b604051610533919061323f565b60405180910390f35b34801561054857600080fd5b50610551611170565b60405161055e9190613215565b60405180910390f35b34801561057357600080fd5b5061057c6111a6565b6040516105899190612fdb565b60405180910390f35b34801561059e57600080fd5b506105b960048036038101906105b491906130a5565b611238565b005b3480156105c757600080fd5b506105e260048036038101906105dd91906130a5565b611443565b005b3480156105f057600080fd5b506105f96114e3565b604051610606919061323f565b60405180910390f35b34801561061b57600080fd5b50610636600480360381019061063191906130a5565b611529565b6040516106439190613100565b60405180910390f35b34801561065857600080fd5b50610673600480360381019061066e91906130a5565b611613565b6040516106809190613100565b60405180910390f35b34801561069557600080fd5b5061069e611636565b6040516106ab9190613100565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d691906131cf565b61167c565b005b3480156106e957600080fd5b5061070460048036038101906106ff919061325a565b611704565b604051610711919061312a565b60405180910390f35b34801561072657600080fd5b50610741600480360381019061073c91906131cf565b61178b565b005b34801561074f57600080fd5b5061076a600480360381019061076591906131cf565b611a6d565b005b60606036805461077b9061349f565b80601f01602080910402602001604051908101604052809291908181526020018280546107a79061349f565b80156107f45780601f106107c9576101008083540402835291602001916107f4565b820191906000526020600020905b8154815290600101906020018083116107d757829003601f168201915b5050505050905090565b600080610809611b88565b9050610816818585611b90565b600191505092915050565b6000603554905090565b600080610836611b88565b9050610843858285611bdf565b61084e858585611c6b565b60019150509392505050565b60006012905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614156108f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e990613543565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610931611cba565b73ffffffffffffffffffffffffffffffffffffffff1614610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e906135d5565b60405180910390fd5b61099081611d11565b6109e981600067ffffffffffffffff8111156109af576109ae6132a4565b5b6040519080825280601f01601f1916602001820160405280156109e15781602001600182028036833780820191505090505b506000611d90565b50565b6000806109f7611b88565b9050610a8b818585603460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a869190613624565b611b90565b600191505092915050565b60017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c610ac6919061367a565b60001b81565b610ad46114e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b38576040517f75df51dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b426000611f61565b7f0e5e3b3fb504c22cf5c42fa07d521225937514c654007e1f12646f89768d6f9460405160405180910390a1565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c0257336040517f3b2495f1000000000000000000000000000000000000000000000000000000008152600401610bf9919061323f565b60405180910390fd5b610c0c8282611f9f565b5050565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900460ff16610c5e5760008054906101000a900460ff1615610c67565b610c66612100565b5b610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613720565b60405180910390fd5b60008060019054906101000a900460ff161590508015610cf6576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b610d6a6040518060400160405280600b81526020017f5374616b65642043454c4f0000000000000000000000000000000000000000008152506040518060400160405280600681526020017f737443454c4f0000000000000000000000000000000000000000000000000000815250612111565b610d738361216e565b610d7c826121c9565b8015610d9d5760008060016101000a81548160ff0219169083151502179055505b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890613543565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610e70611cba565b73ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906135d5565b60405180910390fd5b610ecf82611d11565b610edb82826001611d90565b5050565b6000609860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008060008060018060036000935093509350935090919293565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f94611b88565b73ffffffffffffffffffffffffffffffffffffffff16610fb2611146565b73ffffffffffffffffffffffffffffffffffffffff1614611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff9061378c565b60405180910390fd5b61101260006121c9565b565b61101c611b88565b73ffffffffffffffffffffffffffffffffffffffff1661103a611146565b73ffffffffffffffffffffffffffffffffffffffff1614611090576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110879061378c565b60405180910390fd5b6110a061109b611146565b61228f565b565b6110aa6114e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461110e576040517f75df51dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111186001611f61565b7fab35696f06e428ebc5ceba8cd17f8fed287baf43440206d1943af1ee53e6d26760405160405180910390a1565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c6111a0919061367a565b60001b81565b6060603780546111b59061349f565b80601f01602080910402602001604051908101604052809291908181526020018280546111e19061349f565b801561122e5780601f106112035761010080835404028352916020019161122e565b820191906000526020600020905b81548152906001019060200180831161121157829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112ca57336040517f3b2495f10000000000000000000000000000000000000000000000000000000081526004016112c1919061323f565b60405180910390fd5b6000609860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561143e5781609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008183611368919061367a565b9050600061137585610f43565b9050818110156113bc57846040517f302eac670000000000000000000000000000000000000000000000000000000081526004016113b3919061323f565b60405180910390fd5b818103603360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fe37e8cb8ed38bb9b63754c5710e41c3475ab33b84179eaa49e7d1d3f19375b0785856040516114339291906137ac565b60405180910390a150505b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114d557336040517f3b2495f10000000000000000000000000000000000000000000000000000000081526004016114cc919061323f565b60405180910390fd5b6114df828261236b565b5050565b600080600060017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c611518919061367a565b60001b905080549150819250505090565b600080611534611b88565b90506000603460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190613847565b60405180910390fd5b6116078286868403611b90565b60019250505092915050565b60008061161e611b88565b905061162b818585611c6b565b600191505092915050565b600080600060017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c61166b919061367a565b60001b905080549150819250505090565b611684611b88565b73ffffffffffffffffffffffffffffffffffffffff166116a2611146565b73ffffffffffffffffffffffffffffffffffffffff16146116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef9061378c565b60405180910390fd5b61170181612544565b50565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611793611636565b156117ca576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081141561185457816040517f52113b8900000000000000000000000000000000000000000000000000000000815260040161184b919061323f565b60405180910390fd5b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166348fd6ea6846040518263ffffffff1660e01b81526004016118b1919061323f565b6020604051808303816000875af11580156118d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f4919061387c565b905080821161193a57826040517fca9f0336000000000000000000000000000000000000000000000000000000008152600401611931919061323f565b60405180910390fd5b80609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000818361198c919061367a565b905080603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119dd9190613624565b925050819055507fda5d2c5893395f22bb4bb4ecad229f58d2403a4b1b2683e0d065b86a5df5c86a84609860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611a51919061367a565b604051611a5f9291906137ac565b60405180910390a150505050565b611a75611b88565b73ffffffffffffffffffffffffffffffffffffffff16611a93611146565b73ffffffffffffffffffffffffffffffffffffffff1614611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae09061378c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b509061391b565b60405180910390fd5b611b62816121c9565b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600033905090565b611b98611636565b15611bcf576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bda838383612632565b505050565b6000611beb8484611704565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c655781811015611c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4e90613987565b60405180910390fd5b611c648484848403611b90565b5b50505050565b611c73611636565b15611caa576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cb58383836127fd565b505050565b6000611ce87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612a81565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d19611b88565b73ffffffffffffffffffffffffffffffffffffffff16611d37611146565b73ffffffffffffffffffffffffffffffffffffffff1614611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d849061378c565b60405180910390fd5b50565b6000611d9a611cba565b9050611da584612a8b565b600083511180611db25750815b15611dc357611dc18484612b44565b505b6000611df17f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612b71565b90508060000160009054906101000a900460ff16611f5a5760018160000160006101000a81548160ff021916908315150217905550611ebd8583604051602401611e3b919061323f565b6040516020818303038152906040527f3659cfe6000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612b44565b5060008160000160006101000a81548160ff021916908315150217905550611ee3611cba565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4790613a19565b60405180910390fd5b611f5985612b7b565b5b5050505050565b600060017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c611f93919061367a565b60001b90508181555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561200f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200690613a85565b60405180910390fd5b61201b60008383612bca565b806035600082825461202d9190613624565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120839190613624565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516120e8919061312a565b60405180910390a36120fc60008383612bcf565b5050565b600061210b30611b65565b15905090565b600060019054906101000a900460ff16612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215790613b17565b60405180910390fd5b61216a8282612cd7565b5050565b600060019054906101000a900460ff166121bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b490613b17565b60405180910390fd5b6121c681612544565b50565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f6576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c612328919061367a565b60001b90508181557fd11d57c2c7468878b1035df11c670bcd0091aa840bf8aa166365397622237bea8260405161235f919061323f565b60405180910390a15050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290613ba9565b60405180910390fd5b6123e782600083612bca565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246590613c3b565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282546124c6919061367a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161252b919061312a565b60405180910390a361253f83600084612bcf565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125ab576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f60a0f5b9f9e81e98216071b85826681c796256fe3d1354ecb675580fba64fa6960405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990613ccd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270990613d5f565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516127f0919061312a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561286d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286490613df1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d490613e83565b60405180910390fd5b6128e8838383612bca565b6000603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296690613f15565b60405180910390fd5b818103603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a049190613624565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a68919061312a565b60405180910390a3612a7b848484612bcf565b50505050565b6000819050919050565b612a9481612d58565b612ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aca90613fa7565b60405180910390fd5b80612b007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612a81565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060612b6983836040518060600160405280602781526020016140ef60279139612d6b565b905092915050565b6000819050919050565b612b8481612a8b565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612c365750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15612c4057612cd2565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beabacc88484846040518463ffffffff1660e01b8152600401612c9f93929190613fc7565b600060405180830381600087803b158015612cb957600080fd5b505af1158015612ccd573d6000803e3d6000fd5b505050505b505050565b600060019054906101000a900460ff16612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d90613b17565b60405180910390fd5b8160369080519060200190612d3c929190612e9f565b508060379080519060200190612d53929190612e9f565b505050565b600080823b905060008111915050919050565b6060612d7684612d58565b612db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dac90614070565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1685604051612ddd91906140d7565b600060405180830381855af49150503d8060008114612e18576040519150601f19603f3d011682016040523d82523d6000602084013e612e1d565b606091505b5091509150612e2d828286612e38565b925050509392505050565b60608315612e4857829050612e98565b600083511115612e5b5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8f9190612fdb565b60405180910390fd5b9392505050565b828054612eab9061349f565b90600052602060002090601f016020900481019282612ecd5760008555612f14565b82601f10612ee657805160ff1916838001178555612f14565b82800160010185558215612f14579182015b82811115612f13578251825591602001919060010190612ef8565b5b509050612f219190612f25565b5090565b5b80821115612f3e576000816000905550600101612f26565b5090565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f7c578082015181840152602081019050612f61565b83811115612f8b576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fad82612f42565b612fb78185612f4d565b9350612fc7818560208601612f5e565b612fd081612f91565b840191505092915050565b60006020820190508181036000830152612ff58184612fa2565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061303c82613011565b9050919050565b61304c81613031565b811461305757600080fd5b50565b60008135905061306981613043565b92915050565b6000819050919050565b6130828161306f565b811461308d57600080fd5b50565b60008135905061309f81613079565b92915050565b600080604083850312156130bc576130bb613007565b5b60006130ca8582860161305a565b92505060206130db85828601613090565b9150509250929050565b60008115159050919050565b6130fa816130e5565b82525050565b600060208201905061311560008301846130f1565b92915050565b6131248161306f565b82525050565b600060208201905061313f600083018461311b565b92915050565b60008060006060848603121561315e5761315d613007565b5b600061316c8682870161305a565b935050602061317d8682870161305a565b925050604061318e86828701613090565b9150509250925092565b600060ff82169050919050565b6131ae81613198565b82525050565b60006020820190506131c960008301846131a5565b92915050565b6000602082840312156131e5576131e4613007565b5b60006131f38482850161305a565b91505092915050565b6000819050919050565b61320f816131fc565b82525050565b600060208201905061322a6000830184613206565b92915050565b61323981613031565b82525050565b60006020820190506132546000830184613230565b92915050565b6000806040838503121561327157613270613007565b5b600061327f8582860161305a565b92505060206132908582860161305a565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132dc82612f91565b810181811067ffffffffffffffff821117156132fb576132fa6132a4565b5b80604052505050565b600061330e612ffd565b905061331a82826132d3565b919050565b600067ffffffffffffffff82111561333a576133396132a4565b5b61334382612f91565b9050602081019050919050565b82818337600083830152505050565b600061337261336d8461331f565b613304565b90508281526020810184848401111561338e5761338d61329f565b5b613399848285613350565b509392505050565b600082601f8301126133b6576133b561329a565b5b81356133c684826020860161335f565b91505092915050565b600080604083850312156133e6576133e5613007565b5b60006133f48582860161305a565b925050602083013567ffffffffffffffff8111156134155761341461300c565b5b613421858286016133a1565b9150509250929050565b6000608082019050613440600083018761311b565b61344d602083018661311b565b61345a604083018561311b565b613467606083018461311b565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806134b757607f821691505b602082108114156134cb576134ca613470565b5b50919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b600061352d602c83612f4d565b9150613538826134d1565b604082019050919050565b6000602082019050818103600083015261355c81613520565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b60006135bf602c83612f4d565b91506135ca82613563565b604082019050919050565b600060208201905081810360008301526135ee816135b2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061362f8261306f565b915061363a8361306f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561366f5761366e6135f5565b5b828201905092915050565b60006136858261306f565b91506136908361306f565b9250828210156136a3576136a26135f5565b5b828203905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061370a602e83612f4d565b9150613715826136ae565b604082019050919050565b60006020820190508181036000830152613739816136fd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613776602083612f4d565b915061378182613740565b602082019050919050565b600060208201905081810360008301526137a581613769565b9050919050565b60006040820190506137c16000830185613230565b6137ce602083018461311b565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613831602583612f4d565b915061383c826137d5565b604082019050919050565b6000602082019050818103600083015261386081613824565b9050919050565b60008151905061387681613079565b92915050565b60006020828403121561389257613891613007565b5b60006138a084828501613867565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613905602683612f4d565b9150613910826138a9565b604082019050919050565b60006020820190508181036000830152613934816138f8565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613971601d83612f4d565b915061397c8261393b565b602082019050919050565b600060208201905081810360008301526139a081613964565b9050919050565b7f45524331393637557067726164653a207570677261646520627265616b73206660008201527f7572746865722075706772616465730000000000000000000000000000000000602082015250565b6000613a03602f83612f4d565b9150613a0e826139a7565b604082019050919050565b60006020820190508181036000830152613a32816139f6565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000613a6f601f83612f4d565b9150613a7a82613a39565b602082019050919050565b60006020820190508181036000830152613a9e81613a62565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000613b01602b83612f4d565b9150613b0c82613aa5565b604082019050919050565b60006020820190508181036000830152613b3081613af4565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b93602183612f4d565b9150613b9e82613b37565b604082019050919050565b60006020820190508181036000830152613bc281613b86565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c25602283612f4d565b9150613c3082613bc9565b604082019050919050565b60006020820190508181036000830152613c5481613c18565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613cb7602483612f4d565b9150613cc282613c5b565b604082019050919050565b60006020820190508181036000830152613ce681613caa565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d49602283612f4d565b9150613d5482613ced565b604082019050919050565b60006020820190508181036000830152613d7881613d3c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613ddb602583612f4d565b9150613de682613d7f565b604082019050919050565b60006020820190508181036000830152613e0a81613dce565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e6d602383612f4d565b9150613e7882613e11565b604082019050919050565b60006020820190508181036000830152613e9c81613e60565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613eff602683612f4d565b9150613f0a82613ea3565b604082019050919050565b60006020820190508181036000830152613f2e81613ef2565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000613f91602d83612f4d565b9150613f9c82613f35565b604082019050919050565b60006020820190508181036000830152613fc081613f84565b9050919050565b6000606082019050613fdc6000830186613230565b613fe96020830185613230565b613ff6604083018461311b565b949350505050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b600061405a602683612f4d565b915061406582613ffe565b604082019050919050565b600060208201905081810360008301526140898161404d565b9050919050565b600081519050919050565b600081905092915050565b60006140b182614090565b6140bb818561409b565b93506140cb818560208601612f5e565b80840191505092915050565b60006140e382846140a6565b91508190509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204ed41342fe0528209a2ed63d360796b585d8675b65398bcd52c7835ace8a28ab64736f6c634300080b0033
Deployed ByteCode
0x6080604052600436106101e35760003560e01c8063715018a6116101025780639fd0506d11610095578063d0ebdbe711610064578063d0ebdbe7146106b4578063dd62ed3e146106dd578063e37d49b81461071a578063f2fde38b14610743576101e3565b80639fd0506d146105e4578063a457c2d71461060f578063a9059cbb1461064c578063b187bd2614610689576101e3565b80639468ba0e116100d15780639468ba0e1461053c57806395d89b41146105675780639caa9e29146105925780639dc29fac146105bb576101e3565b8063715018a6146104cc5780637c0d530f146104e35780638456cb59146104fa5780638da5cb5b14610511576101e3565b80633f4ba83a1161017a5780634f1ef286116101495780634f1ef28614610408578063536a5f271461042457806354255be01461046157806370a082311461048f576101e3565b80633f4ba83a1461037457806340c10f191461038b578063481c6a75146103b4578063485cc955146103df576101e3565b8063313ce567116101b6578063313ce567146102b85780633659cfe6146102e3578063395093511461030c5780633cbf587214610349576101e3565b806306fdde03146101e8578063095ea7b31461021357806318160ddd1461025057806323b872dd1461027b575b600080fd5b3480156101f457600080fd5b506101fd61076c565b60405161020a9190612fdb565b60405180910390f35b34801561021f57600080fd5b5061023a600480360381019061023591906130a5565b6107fe565b6040516102479190613100565b60405180910390f35b34801561025c57600080fd5b50610265610821565b604051610272919061312a565b60405180910390f35b34801561028757600080fd5b506102a2600480360381019061029d9190613145565b61082b565b6040516102af9190613100565b60405180910390f35b3480156102c457600080fd5b506102cd61085a565b6040516102da91906131b4565b60405180910390f35b3480156102ef57600080fd5b5061030a600480360381019061030591906131cf565b610863565b005b34801561031857600080fd5b50610333600480360381019061032e91906130a5565b6109ec565b6040516103409190613100565b60405180910390f35b34801561035557600080fd5b5061035e610a96565b60405161036b9190613215565b60405180910390f35b34801561038057600080fd5b50610389610acc565b005b34801561039757600080fd5b506103b260048036038101906103ad91906130a5565b610b70565b005b3480156103c057600080fd5b506103c9610c10565b6040516103d6919061323f565b60405180910390f35b3480156103eb57600080fd5b506104066004803603810190610401919061325a565b610c36565b005b610422600480360381019061041d91906133cf565b610da2565b005b34801561043057600080fd5b5061044b600480360381019061044691906131cf565b610edf565b604051610458919061312a565b60405180910390f35b34801561046d57600080fd5b50610476610f28565b604051610486949392919061342b565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b191906131cf565b610f43565b6040516104c3919061312a565b60405180910390f35b3480156104d857600080fd5b506104e1610f8c565b005b3480156104ef57600080fd5b506104f8611014565b005b34801561050657600080fd5b5061050f6110a2565b005b34801561051d57600080fd5b50610526611146565b604051610533919061323f565b60405180910390f35b34801561054857600080fd5b50610551611170565b60405161055e9190613215565b60405180910390f35b34801561057357600080fd5b5061057c6111a6565b6040516105899190612fdb565b60405180910390f35b34801561059e57600080fd5b506105b960048036038101906105b491906130a5565b611238565b005b3480156105c757600080fd5b506105e260048036038101906105dd91906130a5565b611443565b005b3480156105f057600080fd5b506105f96114e3565b604051610606919061323f565b60405180910390f35b34801561061b57600080fd5b50610636600480360381019061063191906130a5565b611529565b6040516106439190613100565b60405180910390f35b34801561065857600080fd5b50610673600480360381019061066e91906130a5565b611613565b6040516106809190613100565b60405180910390f35b34801561069557600080fd5b5061069e611636565b6040516106ab9190613100565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d691906131cf565b61167c565b005b3480156106e957600080fd5b5061070460048036038101906106ff919061325a565b611704565b604051610711919061312a565b60405180910390f35b34801561072657600080fd5b50610741600480360381019061073c91906131cf565b61178b565b005b34801561074f57600080fd5b5061076a600480360381019061076591906131cf565b611a6d565b005b60606036805461077b9061349f565b80601f01602080910402602001604051908101604052809291908181526020018280546107a79061349f565b80156107f45780601f106107c9576101008083540402835291602001916107f4565b820191906000526020600020905b8154815290600101906020018083116107d757829003601f168201915b5050505050905090565b600080610809611b88565b9050610816818585611b90565b600191505092915050565b6000603554905090565b600080610836611b88565b9050610843858285611bdf565b61084e858585611c6b565b60019150509392505050565b60006012905090565b7f0000000000000000000000006e17cf4e1a21125d0ce9a1ce4a284ad7bf783b6773ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614156108f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e990613543565b60405180910390fd5b7f0000000000000000000000006e17cf4e1a21125d0ce9a1ce4a284ad7bf783b6773ffffffffffffffffffffffffffffffffffffffff16610931611cba565b73ffffffffffffffffffffffffffffffffffffffff1614610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e906135d5565b60405180910390fd5b61099081611d11565b6109e981600067ffffffffffffffff8111156109af576109ae6132a4565b5b6040519080825280601f01601f1916602001820160405280156109e15781602001600182028036833780820191505090505b506000611d90565b50565b6000806109f7611b88565b9050610a8b818585603460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a869190613624565b611b90565b600191505092915050565b60017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c610ac6919061367a565b60001b81565b610ad46114e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b38576040517f75df51dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b426000611f61565b7f0e5e3b3fb504c22cf5c42fa07d521225937514c654007e1f12646f89768d6f9460405160405180910390a1565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c0257336040517f3b2495f1000000000000000000000000000000000000000000000000000000008152600401610bf9919061323f565b60405180910390fd5b610c0c8282611f9f565b5050565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900460ff16610c5e5760008054906101000a900460ff1615610c67565b610c66612100565b5b610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613720565b60405180910390fd5b60008060019054906101000a900460ff161590508015610cf6576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b610d6a6040518060400160405280600b81526020017f5374616b65642043454c4f0000000000000000000000000000000000000000008152506040518060400160405280600681526020017f737443454c4f0000000000000000000000000000000000000000000000000000815250612111565b610d738361216e565b610d7c826121c9565b8015610d9d5760008060016101000a81548160ff0219169083151502179055505b505050565b7f0000000000000000000000006e17cf4e1a21125d0ce9a1ce4a284ad7bf783b6773ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890613543565b60405180910390fd5b7f0000000000000000000000006e17cf4e1a21125d0ce9a1ce4a284ad7bf783b6773ffffffffffffffffffffffffffffffffffffffff16610e70611cba565b73ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906135d5565b60405180910390fd5b610ecf82611d11565b610edb82826001611d90565b5050565b6000609860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008060008060018060036000935093509350935090919293565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f94611b88565b73ffffffffffffffffffffffffffffffffffffffff16610fb2611146565b73ffffffffffffffffffffffffffffffffffffffff1614611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff9061378c565b60405180910390fd5b61101260006121c9565b565b61101c611b88565b73ffffffffffffffffffffffffffffffffffffffff1661103a611146565b73ffffffffffffffffffffffffffffffffffffffff1614611090576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110879061378c565b60405180910390fd5b6110a061109b611146565b61228f565b565b6110aa6114e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461110e576040517f75df51dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111186001611f61565b7fab35696f06e428ebc5ceba8cd17f8fed287baf43440206d1943af1ee53e6d26760405160405180910390a1565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c6111a0919061367a565b60001b81565b6060603780546111b59061349f565b80601f01602080910402602001604051908101604052809291908181526020018280546111e19061349f565b801561122e5780601f106112035761010080835404028352916020019161122e565b820191906000526020600020905b81548152906001019060200180831161121157829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112ca57336040517f3b2495f10000000000000000000000000000000000000000000000000000000081526004016112c1919061323f565b60405180910390fd5b6000609860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561143e5781609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008183611368919061367a565b9050600061137585610f43565b9050818110156113bc57846040517f302eac670000000000000000000000000000000000000000000000000000000081526004016113b3919061323f565b60405180910390fd5b818103603360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fe37e8cb8ed38bb9b63754c5710e41c3475ab33b84179eaa49e7d1d3f19375b0785856040516114339291906137ac565b60405180910390a150505b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114d557336040517f3b2495f10000000000000000000000000000000000000000000000000000000081526004016114cc919061323f565b60405180910390fd5b6114df828261236b565b5050565b600080600060017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c611518919061367a565b60001b905080549150819250505090565b600080611534611b88565b90506000603460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190613847565b60405180910390fd5b6116078286868403611b90565b60019250505092915050565b60008061161e611b88565b905061162b818585611c6b565b600191505092915050565b600080600060017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c61166b919061367a565b60001b905080549150819250505090565b611684611b88565b73ffffffffffffffffffffffffffffffffffffffff166116a2611146565b73ffffffffffffffffffffffffffffffffffffffff16146116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef9061378c565b60405180910390fd5b61170181612544565b50565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611793611636565b156117ca576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000609860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081141561185457816040517f52113b8900000000000000000000000000000000000000000000000000000000815260040161184b919061323f565b60405180910390fd5b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166348fd6ea6846040518263ffffffff1660e01b81526004016118b1919061323f565b6020604051808303816000875af11580156118d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f4919061387c565b905080821161193a57826040517fca9f0336000000000000000000000000000000000000000000000000000000008152600401611931919061323f565b60405180910390fd5b80609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000818361198c919061367a565b905080603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119dd9190613624565b925050819055507fda5d2c5893395f22bb4bb4ecad229f58d2403a4b1b2683e0d065b86a5df5c86a84609860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611a51919061367a565b604051611a5f9291906137ac565b60405180910390a150505050565b611a75611b88565b73ffffffffffffffffffffffffffffffffffffffff16611a93611146565b73ffffffffffffffffffffffffffffffffffffffff1614611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae09061378c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b509061391b565b60405180910390fd5b611b62816121c9565b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600033905090565b611b98611636565b15611bcf576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bda838383612632565b505050565b6000611beb8484611704565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c655781811015611c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4e90613987565b60405180910390fd5b611c648484848403611b90565b5b50505050565b611c73611636565b15611caa576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cb58383836127fd565b505050565b6000611ce87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612a81565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d19611b88565b73ffffffffffffffffffffffffffffffffffffffff16611d37611146565b73ffffffffffffffffffffffffffffffffffffffff1614611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d849061378c565b60405180910390fd5b50565b6000611d9a611cba565b9050611da584612a8b565b600083511180611db25750815b15611dc357611dc18484612b44565b505b6000611df17f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612b71565b90508060000160009054906101000a900460ff16611f5a5760018160000160006101000a81548160ff021916908315150217905550611ebd8583604051602401611e3b919061323f565b6040516020818303038152906040527f3659cfe6000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612b44565b5060008160000160006101000a81548160ff021916908315150217905550611ee3611cba565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4790613a19565b60405180910390fd5b611f5985612b7b565b5b5050505050565b600060017f8f989356aeb576065c8d201815b96ac9c10cf89197a532e428ebd68581557c2360001c611f93919061367a565b60001b90508181555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561200f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200690613a85565b60405180910390fd5b61201b60008383612bca565b806035600082825461202d9190613624565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120839190613624565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516120e8919061312a565b60405180910390a36120fc60008383612bcf565b5050565b600061210b30611b65565b15905090565b600060019054906101000a900460ff16612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215790613b17565b60405180910390fd5b61216a8282612cd7565b5050565b600060019054906101000a900460ff166121bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b490613b17565b60405180910390fd5b6121c681612544565b50565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f6576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060017f29f060ba1cf8d3659516b02281c85dcc3e81b4287766ae4751c0f500688be30f60001c612328919061367a565b60001b90508181557fd11d57c2c7468878b1035df11c670bcd0091aa840bf8aa166365397622237bea8260405161235f919061323f565b60405180910390a15050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290613ba9565b60405180910390fd5b6123e782600083612bca565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246590613c3b565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282546124c6919061367a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161252b919061312a565b60405180910390a361253f83600084612bcf565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125ab576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f60a0f5b9f9e81e98216071b85826681c796256fe3d1354ecb675580fba64fa6960405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990613ccd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270990613d5f565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516127f0919061312a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561286d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286490613df1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d490613e83565b60405180910390fd5b6128e8838383612bca565b6000603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296690613f15565b60405180910390fd5b818103603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a049190613624565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a68919061312a565b60405180910390a3612a7b848484612bcf565b50505050565b6000819050919050565b612a9481612d58565b612ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aca90613fa7565b60405180910390fd5b80612b007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612a81565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060612b6983836040518060600160405280602781526020016140ef60279139612d6b565b905092915050565b6000819050919050565b612b8481612a8b565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612c365750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15612c4057612cd2565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beabacc88484846040518463ffffffff1660e01b8152600401612c9f93929190613fc7565b600060405180830381600087803b158015612cb957600080fd5b505af1158015612ccd573d6000803e3d6000fd5b505050505b505050565b600060019054906101000a900460ff16612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d90613b17565b60405180910390fd5b8160369080519060200190612d3c929190612e9f565b508060379080519060200190612d53929190612e9f565b505050565b600080823b905060008111915050919050565b6060612d7684612d58565b612db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dac90614070565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1685604051612ddd91906140d7565b600060405180830381855af49150503d8060008114612e18576040519150601f19603f3d011682016040523d82523d6000602084013e612e1d565b606091505b5091509150612e2d828286612e38565b925050509392505050565b60608315612e4857829050612e98565b600083511115612e5b5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8f9190612fdb565b60405180910390fd5b9392505050565b828054612eab9061349f565b90600052602060002090601f016020900481019282612ecd5760008555612f14565b82601f10612ee657805160ff1916838001178555612f14565b82800160010185558215612f14579182015b82811115612f13578251825591602001919060010190612ef8565b5b509050612f219190612f25565b5090565b5b80821115612f3e576000816000905550600101612f26565b5090565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f7c578082015181840152602081019050612f61565b83811115612f8b576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fad82612f42565b612fb78185612f4d565b9350612fc7818560208601612f5e565b612fd081612f91565b840191505092915050565b60006020820190508181036000830152612ff58184612fa2565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061303c82613011565b9050919050565b61304c81613031565b811461305757600080fd5b50565b60008135905061306981613043565b92915050565b6000819050919050565b6130828161306f565b811461308d57600080fd5b50565b60008135905061309f81613079565b92915050565b600080604083850312156130bc576130bb613007565b5b60006130ca8582860161305a565b92505060206130db85828601613090565b9150509250929050565b60008115159050919050565b6130fa816130e5565b82525050565b600060208201905061311560008301846130f1565b92915050565b6131248161306f565b82525050565b600060208201905061313f600083018461311b565b92915050565b60008060006060848603121561315e5761315d613007565b5b600061316c8682870161305a565b935050602061317d8682870161305a565b925050604061318e86828701613090565b9150509250925092565b600060ff82169050919050565b6131ae81613198565b82525050565b60006020820190506131c960008301846131a5565b92915050565b6000602082840312156131e5576131e4613007565b5b60006131f38482850161305a565b91505092915050565b6000819050919050565b61320f816131fc565b82525050565b600060208201905061322a6000830184613206565b92915050565b61323981613031565b82525050565b60006020820190506132546000830184613230565b92915050565b6000806040838503121561327157613270613007565b5b600061327f8582860161305a565b92505060206132908582860161305a565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132dc82612f91565b810181811067ffffffffffffffff821117156132fb576132fa6132a4565b5b80604052505050565b600061330e612ffd565b905061331a82826132d3565b919050565b600067ffffffffffffffff82111561333a576133396132a4565b5b61334382612f91565b9050602081019050919050565b82818337600083830152505050565b600061337261336d8461331f565b613304565b90508281526020810184848401111561338e5761338d61329f565b5b613399848285613350565b509392505050565b600082601f8301126133b6576133b561329a565b5b81356133c684826020860161335f565b91505092915050565b600080604083850312156133e6576133e5613007565b5b60006133f48582860161305a565b925050602083013567ffffffffffffffff8111156134155761341461300c565b5b613421858286016133a1565b9150509250929050565b6000608082019050613440600083018761311b565b61344d602083018661311b565b61345a604083018561311b565b613467606083018461311b565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806134b757607f821691505b602082108114156134cb576134ca613470565b5b50919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b600061352d602c83612f4d565b9150613538826134d1565b604082019050919050565b6000602082019050818103600083015261355c81613520565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b60006135bf602c83612f4d565b91506135ca82613563565b604082019050919050565b600060208201905081810360008301526135ee816135b2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061362f8261306f565b915061363a8361306f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561366f5761366e6135f5565b5b828201905092915050565b60006136858261306f565b91506136908361306f565b9250828210156136a3576136a26135f5565b5b828203905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061370a602e83612f4d565b9150613715826136ae565b604082019050919050565b60006020820190508181036000830152613739816136fd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613776602083612f4d565b915061378182613740565b602082019050919050565b600060208201905081810360008301526137a581613769565b9050919050565b60006040820190506137c16000830185613230565b6137ce602083018461311b565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613831602583612f4d565b915061383c826137d5565b604082019050919050565b6000602082019050818103600083015261386081613824565b9050919050565b60008151905061387681613079565b92915050565b60006020828403121561389257613891613007565b5b60006138a084828501613867565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613905602683612f4d565b9150613910826138a9565b604082019050919050565b60006020820190508181036000830152613934816138f8565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613971601d83612f4d565b915061397c8261393b565b602082019050919050565b600060208201905081810360008301526139a081613964565b9050919050565b7f45524331393637557067726164653a207570677261646520627265616b73206660008201527f7572746865722075706772616465730000000000000000000000000000000000602082015250565b6000613a03602f83612f4d565b9150613a0e826139a7565b604082019050919050565b60006020820190508181036000830152613a32816139f6565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000613a6f601f83612f4d565b9150613a7a82613a39565b602082019050919050565b60006020820190508181036000830152613a9e81613a62565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000613b01602b83612f4d565b9150613b0c82613aa5565b604082019050919050565b60006020820190508181036000830152613b3081613af4565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b93602183612f4d565b9150613b9e82613b37565b604082019050919050565b60006020820190508181036000830152613bc281613b86565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c25602283612f4d565b9150613c3082613bc9565b604082019050919050565b60006020820190508181036000830152613c5481613c18565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613cb7602483612f4d565b9150613cc282613c5b565b604082019050919050565b60006020820190508181036000830152613ce681613caa565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d49602283612f4d565b9150613d5482613ced565b604082019050919050565b60006020820190508181036000830152613d7881613d3c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613ddb602583612f4d565b9150613de682613d7f565b604082019050919050565b60006020820190508181036000830152613e0a81613dce565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e6d602383612f4d565b9150613e7882613e11565b604082019050919050565b60006020820190508181036000830152613e9c81613e60565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613eff602683612f4d565b9150613f0a82613ea3565b604082019050919050565b60006020820190508181036000830152613f2e81613ef2565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000613f91602d83612f4d565b9150613f9c82613f35565b604082019050919050565b60006020820190508181036000830152613fc081613f84565b9050919050565b6000606082019050613fdc6000830186613230565b613fe96020830185613230565b613ff6604083018461311b565b949350505050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b600061405a602683612f4d565b915061406582613ffe565b604082019050919050565b600060208201905081810360008301526140898161404d565b9050919050565b600081519050919050565b600081905092915050565b60006140b182614090565b6140bb818561409b565b93506140cb818560208601612f5e565b80840191505092915050565b60006140e382846140a6565b91508190509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204ed41342fe0528209a2ed63d360796b585d8675b65398bcd52c7835ace8a28ab64736f6c634300080b0033