Source Code
Overview
ETH Balance
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 991059 | 791 days ago | 0 ETH | ||||
| 991058 | 791 days ago | 0 ETH | ||||
| 991054 | 791 days ago | 0 ETH | ||||
| 991052 | 791 days ago | 0 ETH | ||||
| 991051 | 791 days ago | 0 ETH | ||||
| 991051 | 791 days ago | 0 ETH | ||||
| 990954 | 791 days ago | 0 ETH | ||||
| 990948 | 791 days ago | 0 ETH | ||||
| 990937 | 791 days ago | 0 ETH | ||||
| 990928 | 791 days ago | 0 ETH | ||||
| 990922 | 791 days ago | 0 ETH | ||||
| 990922 | 791 days ago | 0 ETH | ||||
| 990863 | 791 days ago | 0 ETH | ||||
| 990797 | 791 days ago | 0 ETH | ||||
| 990792 | 791 days ago | 0 ETH | ||||
| 990773 | 791 days ago | 0 ETH | ||||
| 990764 | 791 days ago | 0 ETH | ||||
| 990733 | 791 days ago | 0 ETH | ||||
| 990726 | 791 days ago | 0 ETH | ||||
| 990709 | 791 days ago | 0 ETH | ||||
| 990707 | 791 days ago | 0 ETH | ||||
| 990677 | 791 days ago | 0 ETH | ||||
| 990670 | 791 days ago | 0 ETH | ||||
| 990636 | 791 days ago | 0 ETH | ||||
| 990629 | 791 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PortalRegistry
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { OwnableUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol";
// solhint-disable-next-line max-line-length
import { ERC165CheckerUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/utils/introspection/ERC165CheckerUpgradeable.sol";
import { AbstractPortal } from "./interface/AbstractPortal.sol";
import { DefaultPortal } from "./DefaultPortal.sol";
import { Portal } from "./types/Structs.sol";
import { IRouter } from "./interface/IRouter.sol";
import { IPortal } from "./interface/IPortal.sol";
/**
* @title Portal Registry
* @author Consensys
* @notice This contract aims to manage the Portals used by attestation issuers
*/
contract PortalRegistry is OwnableUpgradeable {
IRouter public router;
mapping(address id => Portal portal) private portals;
mapping(address issuerAddress => bool isIssuer) private issuers;
address[] private portalAddresses;
/// @notice Error thrown when an invalid Router address is given
error RouterInvalid();
/// @notice Error thrown when a non-issuer tries to call a method that can only be called by an issuer
error OnlyIssuer();
/// @notice Error thrown when attempting to register a Portal twice
error PortalAlreadyExists();
/// @notice Error thrown when attempting to register a Portal that is not a smart contract
error PortalAddressInvalid();
/// @notice Error thrown when attempting to register a Portal with an empty name
error PortalNameMissing();
/// @notice Error thrown when attempting to register a Portal with an empty description
error PortalDescriptionMissing();
/// @notice Error thrown when attempting to register a Portal with an empty owner name
error PortalOwnerNameMissing();
/// @notice Error thrown when attempting to register a Portal that does not implement IPortal interface
error PortalInvalid();
/// @notice Error thrown when attempting to get a Portal that is not registered
error PortalNotRegistered();
/// @notice Event emitted when a Portal registered
event PortalRegistered(string name, string description, address portalAddress);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
/**
* @notice Contract initialization
*/
function initialize() public initializer {
__Ownable_init();
}
/**
* @notice Changes the address for the Router
* @dev Only the registry owner can call this method
*/
function updateRouter(address _router) public onlyOwner {
if (_router == address(0)) revert RouterInvalid();
router = IRouter(_router);
}
/**
* @notice Registers an address as been an issuer
* @param issuer the address to register as an issuer
*/
function setIssuer(address issuer) public onlyOwner {
issuers[issuer] = true;
}
/**
* @notice Revokes issuer status from an address
* @param issuer the address to be revoked as an issuer
*/
function removeIssuer(address issuer) public onlyOwner {
issuers[issuer] = false;
}
/**
* @notice Checks if a given address is an issuer
* @return A flag indicating whether the given address is an issuer
*/
function isIssuer(address issuer) public view returns (bool) {
return issuers[issuer];
}
/**
* @notice Checks if the caller is a registered issuer.
* @param issuer the issuer address
*/
modifier onlyIssuers(address issuer) {
if (!isIssuer(issuer)) revert OnlyIssuer();
_;
}
/**
* @notice Registers a Portal to the PortalRegistry
* @param id the portal address
* @param name the portal name
* @param description the portal description
* @param isRevocable whether the portal issues revocable attestations
* @param ownerName name of this portal's owner
*/
function register(
address id,
string memory name,
string memory description,
bool isRevocable,
string memory ownerName
) public onlyIssuers(msg.sender) {
// Check if portal already exists
if (portals[id].id != address(0)) revert PortalAlreadyExists();
// Check if portal is a smart contract
if (!isContractAddress(id)) revert PortalAddressInvalid();
// Check if name is not empty
if (bytes(name).length == 0) revert PortalNameMissing();
// Check if description is not empty
if (bytes(description).length == 0) revert PortalDescriptionMissing();
// Check if the owner's name is not empty
if (bytes(ownerName).length == 0) revert PortalOwnerNameMissing();
// Check if portal has implemented AbstractPortal
if (!ERC165CheckerUpgradeable.supportsInterface(id, type(IPortal).interfaceId)) revert PortalInvalid();
// Get the array of modules implemented by the portal
address[] memory modules = AbstractPortal(id).getModules();
// Add portal to mapping
Portal memory newPortal = Portal(id, msg.sender, modules, isRevocable, name, description, ownerName);
portals[id] = newPortal;
portalAddresses.push(id);
// Emit event
emit PortalRegistered(name, description, id);
}
/**
* @notice Deploys and registers a clone of default portal
* @param modules the modules addresses
* @param name the portal name
* @param description the portal description
* @param ownerName name of this portal's owner
*/
function deployDefaultPortal(
address[] calldata modules,
string memory name,
string memory description,
bool isRevocable,
string memory ownerName
) external onlyIssuers(msg.sender) {
DefaultPortal defaultPortal = new DefaultPortal(modules, address(router));
register(address(defaultPortal), name, description, isRevocable, ownerName);
}
/**
* @notice Get a Portal by its address
* @param id The address of the Portal
* @return The Portal
*/
function getPortalByAddress(address id) public view returns (Portal memory) {
if (!isRegistered(id)) revert PortalNotRegistered();
return portals[id];
}
/**
* @notice Check if a Portal is registered
* @param id The address of the Portal
* @return True if the Portal is registered, false otherwise
*/
function isRegistered(address id) public view returns (bool) {
return portals[id].id != address(0);
}
/**
* @notice Get the number of Portals managed by the contract
* @return The number of Portals already registered
* @dev Returns the length of the `portalAddresses` array
*/
function getPortalsCount() public view returns (uint256) {
return portalAddresses.length;
}
/**
* Check if address is smart contract and not EOA
* @param contractAddress address to be verified
* @return the result as true if it is a smart contract else false
*/
function isContractAddress(address contractAddress) internal view returns (bool) {
return contractAddress.code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
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.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* 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 prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// 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;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/introspection/ERC165Checker.sol)
pragma solidity ^0.8.0;
import "./IERC165Upgradeable.sol";
/**
* @dev Library used to query support of an interface declared via {IERC165}.
*
* Note that these functions return the actual result of the query: they do not
* `revert` if an interface is not supported. It is up to the caller to decide
* what to do in these cases.
*/
library ERC165CheckerUpgradeable {
// As per the EIP-165 spec, no interface should ever match 0xffffffff
bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;
/**
* @dev Returns true if `account` supports the {IERC165} interface.
*/
function supportsERC165(address account) internal view returns (bool) {
// Any contract that implements ERC165 must explicitly indicate support of
// InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
return
supportsERC165InterfaceUnchecked(account, type(IERC165Upgradeable).interfaceId) &&
!supportsERC165InterfaceUnchecked(account, _INTERFACE_ID_INVALID);
}
/**
* @dev Returns true if `account` supports the interface defined by
* `interfaceId`. Support for {IERC165} itself is queried automatically.
*
* See {IERC165-supportsInterface}.
*/
function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
// query support of both ERC165 as per the spec and support of _interfaceId
return supportsERC165(account) && supportsERC165InterfaceUnchecked(account, interfaceId);
}
/**
* @dev Returns a boolean array where each value corresponds to the
* interfaces passed in and whether they're supported or not. This allows
* you to batch check interfaces for a contract where your expectation
* is that some interfaces may not be supported.
*
* See {IERC165-supportsInterface}.
*
* _Available since v3.4._
*/
function getSupportedInterfaces(
address account,
bytes4[] memory interfaceIds
) internal view returns (bool[] memory) {
// an array of booleans corresponding to interfaceIds and whether they're supported or not
bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);
// query support of ERC165 itself
if (supportsERC165(account)) {
// query support of each interface in interfaceIds
for (uint256 i = 0; i < interfaceIds.length; i++) {
interfaceIdsSupported[i] = supportsERC165InterfaceUnchecked(account, interfaceIds[i]);
}
}
return interfaceIdsSupported;
}
/**
* @dev Returns true if `account` supports all the interfaces defined in
* `interfaceIds`. Support for {IERC165} itself is queried automatically.
*
* Batch-querying can lead to gas savings by skipping repeated checks for
* {IERC165} support.
*
* See {IERC165-supportsInterface}.
*/
function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
// query support of ERC165 itself
if (!supportsERC165(account)) {
return false;
}
// query support of each interface in interfaceIds
for (uint256 i = 0; i < interfaceIds.length; i++) {
if (!supportsERC165InterfaceUnchecked(account, interfaceIds[i])) {
return false;
}
}
// all interfaces supported
return true;
}
/**
* @notice Query if a contract implements an interface, does not check ERC165 support
* @param account The address of the contract to query for support of an interface
* @param interfaceId The interface identifier, as specified in ERC-165
* @return true if the contract at account indicates support of the interface with
* identifier interfaceId, false otherwise
* @dev Assumes that account contains a contract that supports ERC165, otherwise
* the behavior of this method is undefined. This precondition can be checked
* with {supportsERC165}.
*
* Some precompiled contracts will falsely indicate support for a given interface, so caution
* should be exercised when using this function.
*
* Interface identification is specified in ERC-165.
*/
function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) {
// prepare call
bytes memory encodedParams = abi.encodeWithSelector(IERC165Upgradeable.supportsInterface.selector, interfaceId);
// perform static call
bool success;
uint256 returnSize;
uint256 returnValue;
assembly {
success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20)
returnSize := returndatasize()
returnValue := mload(0x00)
}
return success && returnSize >= 0x20 && returnValue > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165Upgradeable {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { OwnableUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol";
import { Attestation, AttestationPayload } from "./types/Structs.sol";
import { PortalRegistry } from "./PortalRegistry.sol";
import { SchemaRegistry } from "./SchemaRegistry.sol";
import { IRouter } from "./interface/IRouter.sol";
/**
* @title Attestation Registry
* @author Consensys
* @notice This contract stores a registry of all attestations
*/
contract AttestationRegistry is OwnableUpgradeable {
IRouter public router;
uint16 private version;
uint32 private attestationIdCounter;
mapping(bytes32 attestationId => Attestation attestation) private attestations;
/// @notice Error thrown when a non-portal tries to call a method that can only be called by a portal
error OnlyPortal();
/// @notice Error thrown when an invalid Router address is given
error RouterInvalid();
/// @notice Error thrown when an attestation is not registered in the AttestationRegistry
error AttestationNotAttested();
/// @notice Error thrown when an attempt is made to revoke an attestation by an entity other than the attesting portal
error OnlyAttestingPortal();
/// @notice Error thrown when a schema id is not registered
error SchemaNotRegistered();
/// @notice Error thrown when an attestation subject is empty
error AttestationSubjectFieldEmpty();
/// @notice Error thrown when an attestation data field is empty
error AttestationDataFieldEmpty();
/// @notice Error thrown when an attempt is made to bulk replace with mismatched parameter array lengths
error ArrayLengthMismatch();
/// @notice Error thrown when an attempt is made to revoke an attestation that was already revoked
error AlreadyRevoked();
/// @notice Error thrown when an attempt is made to revoke an attestation based on a non-revocable schema
error AttestationNotRevocable();
/// @notice Event emitted when an attestation is registered
event AttestationRegistered(bytes32 indexed attestationId);
/// @notice Event emitted when an attestation is replaced
event AttestationReplaced(bytes32 attestationId, bytes32 replacedBy);
/// @notice Event emitted when an attestation is revoked
event AttestationRevoked(bytes32 attestationId);
/// @notice Event emitted when the version number is incremented
event VersionUpdated(uint16 version);
/**
* @notice Checks if the caller is a registered portal
* @param portal the portal address
*/
modifier onlyPortals(address portal) {
bool isPortalRegistered = PortalRegistry(router.getPortalRegistry()).isRegistered(portal);
if (!isPortalRegistered) revert OnlyPortal();
_;
}
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
/**
* @notice Contract initialization
*/
function initialize() public initializer {
__Ownable_init();
}
/**
* @notice Changes the address for the Router
* @dev Only the registry owner can call this method
*/
function updateRouter(address _router) public onlyOwner {
if (_router == address(0)) revert RouterInvalid();
router = IRouter(_router);
}
/**
* @notice Registers an attestation to the AttestationRegistry
* @param attestationPayload the attestation payload to create attestation and register it
* @param attester the account address issuing the attestation
* @dev This method is only callable by a registered Portal
*/
function attest(AttestationPayload calldata attestationPayload, address attester) public onlyPortals(msg.sender) {
// Verify the schema id exists
SchemaRegistry schemaRegistry = SchemaRegistry(router.getSchemaRegistry());
if (!schemaRegistry.isRegistered(attestationPayload.schemaId)) revert SchemaNotRegistered();
// Verify the subject field is not blank
if (attestationPayload.subject.length == 0) revert AttestationSubjectFieldEmpty();
// Verify the attestationData field is not blank
if (attestationPayload.attestationData.length == 0) revert AttestationDataFieldEmpty();
// Auto increment attestation counter
attestationIdCounter++;
bytes32 id = bytes32(abi.encode(attestationIdCounter));
// Create attestation
attestations[id] = Attestation(
id,
attestationPayload.schemaId,
bytes32(0),
attester,
msg.sender,
uint64(block.timestamp),
attestationPayload.expirationDate,
0,
version,
false,
attestationPayload.subject,
attestationPayload.attestationData
);
emit AttestationRegistered(id);
}
/**
* @notice Registers attestations to the AttestationRegistry
* @param attestationsPayloads the attestations payloads to create attestations and register them
*/
function bulkAttest(AttestationPayload[] calldata attestationsPayloads, address attester) public {
for (uint256 i = 0; i < attestationsPayloads.length; i++) {
attest(attestationsPayloads[i], attester);
}
}
function massImport(AttestationPayload[] calldata attestationsPayloads, address portal) public onlyOwner {
for (uint256 i = 0; i < attestationsPayloads.length; i++) {
// Auto increment attestation counter
attestationIdCounter++;
bytes32 id = bytes32(abi.encode(attestationIdCounter));
// Create attestation
attestations[id] = Attestation(
id,
attestationsPayloads[i].schemaId,
bytes32(0),
msg.sender,
portal,
uint64(block.timestamp),
attestationsPayloads[i].expirationDate,
0,
version,
false,
attestationsPayloads[i].subject,
attestationsPayloads[i].attestationData
);
emit AttestationRegistered(id);
}
}
/**
* @notice Replaces an attestation for the given identifier and replaces it with a new attestation
* @param attestationId the ID of the attestation to replace
* @param attestationPayload the attestation payload to create the new attestation and register it
* @param attester the account address issuing the attestation
*/
function replace(bytes32 attestationId, AttestationPayload calldata attestationPayload, address attester) public {
attest(attestationPayload, attester);
revoke(attestationId);
bytes32 replacedBy = bytes32(abi.encode(attestationIdCounter));
attestations[attestationId].replacedBy = replacedBy;
emit AttestationReplaced(attestationId, replacedBy);
}
/**
* @notice Replaces attestations for given identifiers and replaces them with new attestations
* @param attestationIds the list of IDs of the attestations to replace
* @param attestationPayloads the list of attestation payloads to create the new attestations and register them
* @param attester the account address issuing the attestation
*/
function bulkReplace(
bytes32[] calldata attestationIds,
AttestationPayload[] calldata attestationPayloads,
address attester
) public {
if (attestationIds.length != attestationPayloads.length) revert ArrayLengthMismatch();
for (uint256 i = 0; i < attestationIds.length; i++) {
replace(attestationIds[i], attestationPayloads[i], attester);
}
}
/**
* @notice Revokes an attestation for a given identifier
* @param attestationId the ID of the attestation to revoke
*/
function revoke(bytes32 attestationId) public {
if (!isRegistered(attestationId)) revert AttestationNotAttested();
if (attestations[attestationId].revoked) revert AlreadyRevoked();
if (msg.sender != attestations[attestationId].portal) revert OnlyAttestingPortal();
if (!isRevocable(attestations[attestationId].portal)) revert AttestationNotRevocable();
attestations[attestationId].revoked = true;
attestations[attestationId].revocationDate = uint64(block.timestamp);
emit AttestationRevoked(attestationId);
}
/**
* @notice Bulk revokes a list of attestations for the given identifiers
* @param attestationIds the IDs of the attestations to revoke
*/
function bulkRevoke(bytes32[] memory attestationIds) external {
for (uint256 i = 0; i < attestationIds.length; i++) {
revoke(attestationIds[i]);
}
}
/**
* @notice Checks if an attestation is registered
* @param attestationId the attestation identifier
* @return true if the attestation is registered, false otherwise
*/
function isRegistered(bytes32 attestationId) public view returns (bool) {
return attestations[attestationId].attestationId != bytes32(0);
}
/**
* @notice Checks whether a portal issues revocable attestations
* @param portalId the portal address (ID)
* @return true if the attestations issued by this portal are revocable, false otherwise
*/
function isRevocable(address portalId) public view returns (bool) {
PortalRegistry portalRegistry = PortalRegistry(router.getPortalRegistry());
return portalRegistry.getPortalByAddress(portalId).isRevocable;
}
/**
* @notice Gets an attestation by its identifier
* @param attestationId the attestation identifier
* @return the attestation
*/
function getAttestation(bytes32 attestationId) public view returns (Attestation memory) {
if (!isRegistered(attestationId)) revert AttestationNotAttested();
return attestations[attestationId];
}
/**
* @notice Increments the registry version
* @return The new version number
*/
function incrementVersionNumber() public onlyOwner returns (uint16) {
++version;
emit VersionUpdated(version);
return version;
}
/**
* @notice Gets the registry version
* @return The current version number
*/
function getVersionNumber() public view returns (uint16) {
return version;
}
/**
* @notice Gets the attestation id counter
* @return The attestationIdCounter
*/
function getAttestationIdCounter() public view returns (uint32) {
return attestationIdCounter;
}
/**
* @notice Checks if an address owns a given attestation following ERC-1155
* @param account The address of the token holder
* @param id ID of the attestation
* @return The _owner's balance of the attestations on a given attestation ID
*/
function balanceOf(address account, uint256 id) public view returns (uint256) {
bytes32 attestationId = bytes32(abi.encode(id));
Attestation memory attestation = attestations[attestationId];
if (attestation.subject.length > 20 && keccak256(attestation.subject) == keccak256(abi.encode(account))) return 1;
if (attestation.subject.length == 20 && keccak256(attestation.subject) == keccak256(abi.encodePacked(account)))
return 1;
return 0;
}
/**
* @notice Get the balance of multiple account/attestation pairs following ERC-1155
* @param accounts The addresses of the attestation holders
* @param ids ID of the attestations
* @return The _owner's balance of the attestation for a given address (i.e. balance for each (owner, id) pair)
*/
function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view returns (uint256[] memory) {
if (accounts.length != ids.length) revert ArrayLengthMismatch();
uint256[] memory result = new uint256[](accounts.length);
for (uint256 i = 0; i < accounts.length; i++) {
result[i] = balanceOf(accounts[i], ids[i]);
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { AbstractPortal } from "./interface/AbstractPortal.sol";
/**
* @title Default Portal
* @author Consensys
* @notice This contract aims to provide a default portal
* @dev This Portal does not add any logic to the AbstractPortal
*/
contract DefaultPortal is AbstractPortal {
/**
* @notice Contract constructor
* @param modules list of modules to use for the portal (can be empty)
* @param router the Router's address
* @dev This sets the addresses for the AttestationRegistry, ModuleRegistry and PortalRegistry
*/
constructor(address[] memory modules, address router) AbstractPortal(modules, router) {}
/// @inheritdoc AbstractPortal
function withdraw(address payable to, uint256 amount) external override {}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { AttestationPayload } from "../types/Structs.sol";
import { IERC165 } from "openzeppelin-contracts/contracts/utils/introspection/IERC165.sol";
/**
* @title Abstract Module
* @author Consensys
* @notice Defines the minimal Module interface
*/
abstract contract AbstractModule is IERC165 {
/**
* @notice Executes the module's custom logic.
* @param attestationPayload The incoming attestation data.
* @param validationPayload Additional data required for verification.
* @param txSender The transaction sender's address.
* @param value The transaction value.
*/
function run(
AttestationPayload memory attestationPayload,
bytes memory validationPayload,
address txSender,
uint256 value
) public virtual;
/**
* @notice Checks if the contract implements the Module interface.
* @param interfaceID The ID of the interface to check.
* @return A boolean indicating interface support.
*/
function supportsInterface(bytes4 interfaceID) public pure virtual override returns (bool) {
return interfaceID == type(AbstractModule).interfaceId || interfaceID == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { AttestationRegistry } from "../AttestationRegistry.sol";
import { ModuleRegistry } from "../ModuleRegistry.sol";
import { PortalRegistry } from "../PortalRegistry.sol";
import { AttestationPayload } from "../types/Structs.sol";
import { IERC165 } from "openzeppelin-contracts/contracts/utils/introspection/ERC165.sol";
import { IRouter } from "../interface/IRouter.sol";
import { IPortal } from "../interface/IPortal.sol";
/**
* @title Abstract Portal
* @author Consensys
* @notice This contract is an abstract contract with basic Portal logic
* to be inherited. We strongly encourage all Portals to implement
* this contract.
*/
abstract contract AbstractPortal is IPortal {
IRouter public router;
address[] public modules;
ModuleRegistry public moduleRegistry;
AttestationRegistry public attestationRegistry;
PortalRegistry public portalRegistry;
/// @notice Error thrown when someone else than the portal's owner is trying to revoke
error OnlyPortalOwner();
/**
* @notice Contract constructor
* @param _modules list of modules to use for the portal (can be empty)
* @param _router Router's address
* @dev This sets the addresses for the AttestationRegistry, ModuleRegistry and PortalRegistry
*/
constructor(address[] memory _modules, address _router) {
modules = _modules;
router = IRouter(_router);
attestationRegistry = AttestationRegistry(router.getAttestationRegistry());
moduleRegistry = ModuleRegistry(router.getModuleRegistry());
portalRegistry = PortalRegistry(router.getPortalRegistry());
}
/**
* @notice Optional method to withdraw funds from the Portal
* @param to the address to send the funds to
* @param amount the amount to withdraw
*/
function withdraw(address payable to, uint256 amount) external virtual;
/**
* @notice Attest the schema with given attestationPayload and validationPayload
* @param attestationPayload the payload to attest
* @param validationPayloads the payloads to validate via the modules to issue the attestations
* @dev Runs all modules for the portal and registers the attestation using AttestationRegistry
*/
function attest(AttestationPayload memory attestationPayload, bytes[] memory validationPayloads) public payable {
moduleRegistry.runModules(modules, attestationPayload, validationPayloads, msg.value);
_onAttest(attestationPayload, getAttester(), msg.value);
attestationRegistry.attest(attestationPayload, getAttester());
}
/**
* @notice Bulk attest the schema with payloads to attest and validation payloads
* @param attestationsPayloads the payloads to attest
* @param validationPayloads the payloads to validate via the modules to issue the attestations
*/
function bulkAttest(AttestationPayload[] memory attestationsPayloads, bytes[][] memory validationPayloads) public {
moduleRegistry.bulkRunModules(modules, attestationsPayloads, validationPayloads);
_onBulkAttest(attestationsPayloads, validationPayloads);
attestationRegistry.bulkAttest(attestationsPayloads, getAttester());
}
/**
* @notice Replaces the attestation for the given identifier and replaces it with a new attestation
* @param attestationId the ID of the attestation to replace
* @param attestationPayload the attestation payload to create the new attestation and register it
* @param validationPayloads the payloads to validate via the modules to issue the attestation
* @dev Runs all modules for the portal and registers the attestation using AttestationRegistry
*/
function replace(
bytes32 attestationId,
AttestationPayload memory attestationPayload,
bytes[] memory validationPayloads
) public payable {
moduleRegistry.runModules(modules, attestationPayload, validationPayloads, msg.value);
_onReplace(attestationId, attestationPayload, getAttester(), msg.value);
attestationRegistry.replace(attestationId, attestationPayload, getAttester());
}
/**
* @notice Bulk replaces the attestation for the given identifiers and replaces them with new attestations
* @param attestationIds the list of IDs of the attestations to replace
* @param attestationsPayloads the list of attestation payloads to create the new attestations and register them
* @param validationPayloads the payloads to validate via the modules to issue the attestations
*/
function bulkReplace(
bytes32[] memory attestationIds,
AttestationPayload[] memory attestationsPayloads,
bytes[][] memory validationPayloads
) public {
moduleRegistry.bulkRunModules(modules, attestationsPayloads, validationPayloads);
_onBulkReplace(attestationIds, attestationsPayloads, validationPayloads);
attestationRegistry.bulkReplace(attestationIds, attestationsPayloads, getAttester());
}
/**
* @notice Revokes an attestation for the given identifier
* @param attestationId the ID of the attestation to revoke
* @dev By default, revocation is only possible by the portal owner
* We strongly encourage implementing such a rule in your Portal if you intend on overriding this method
*/
function revoke(bytes32 attestationId) public {
_onRevoke(attestationId);
attestationRegistry.revoke(attestationId);
}
/**
* @notice Bulk revokes a list of attestations for the given identifiers
* @param attestationIds the IDs of the attestations to revoke
*/
function bulkRevoke(bytes32[] memory attestationIds) public {
_onBulkRevoke(attestationIds);
attestationRegistry.bulkRevoke(attestationIds);
}
/**
* @notice Get all the modules addresses used by the Portal
* @return The list of modules addresses linked to the Portal
*/
function getModules() external view returns (address[] memory) {
return modules;
}
/**
* @notice Verifies that a specific interface is implemented by the Portal, following ERC-165 specification
* @param interfaceID the interface identifier checked in this call
* @return The list of modules addresses linked to the Portal
*/
function supportsInterface(bytes4 interfaceID) public pure virtual override returns (bool) {
return
interfaceID == type(AbstractPortal).interfaceId ||
interfaceID == type(IPortal).interfaceId ||
interfaceID == type(IERC165).interfaceId;
}
/**
* @notice Defines the address of the entity issuing attestations to the subject
* @dev We strongly encourage a reflection when overriding this rule: who should be set as the attester?
*/
function getAttester() public view virtual returns (address) {
return msg.sender;
}
/**
* @notice Optional method run before a payload is attested
* @param attestationPayload the attestation payload supposed to be attested
* @param attester the address of the attester
* @param value the value sent with the attestation
*/
function _onAttest(AttestationPayload memory attestationPayload, address attester, uint256 value) internal virtual {}
/**
* @notice Optional method run when an attestation is replaced
* @param attestationId the ID of the attestation being replaced
* @param attestationPayload the attestation payload to create attestation and register it
* @param attester the address of the attester
* @param value the value sent with the attestation
*/
function _onReplace(
bytes32 attestationId,
AttestationPayload memory attestationPayload,
address attester,
uint256 value
) internal virtual {}
/**
* @notice Optional method run when attesting a batch of payloads
* @param attestationsPayloads the payloads to attest
* @param validationPayloads the payloads to validate in order to issue the attestations
*/
function _onBulkAttest(
AttestationPayload[] memory attestationsPayloads,
bytes[][] memory validationPayloads
) internal virtual {}
function _onBulkReplace(
bytes32[] memory attestationIds,
AttestationPayload[] memory attestationsPayloads,
bytes[][] memory validationPayloads
) internal virtual {}
/**
* @notice Optional method run when an attestation is revoked or replaced
* @dev IMPORTANT NOTE: By default, revocation is only possible by the portal owner
*/
function _onRevoke(bytes32 /*attestationId*/) internal virtual {
if (msg.sender != portalRegistry.getPortalByAddress(address(this)).ownerAddress) revert OnlyPortalOwner();
}
/**
* @notice Optional method run when a batch of attestations are revoked or replaced
* @dev IMPORTANT NOTE: By default, revocation is only possible by the portal owner
*/
function _onBulkRevoke(bytes32[] memory /*attestationIds*/) internal virtual {
if (msg.sender != portalRegistry.getPortalByAddress(address(this)).ownerAddress) revert OnlyPortalOwner();
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { IERC165 } from "openzeppelin-contracts/contracts/utils/introspection/ERC165.sol";
/**
* @title IPortal
* @author Consensys
* @notice This contract is the interface to be implemented by any Portal.
* NOTE: A portal must implement this interface to registered on
* the PortalRegistry contract.
*/
interface IPortal is IERC165 {
/**
* @notice Get all the modules addresses used by the Portal
* @return The list of modules addresses linked to the Portal
*/
function getModules() external view returns (address[] memory);
/**
* @notice Defines the address of the entity issuing attestations to the subject
* @dev We strongly encourage a reflection when implementing this method
*/
function getAttester() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
/**
* @title Router
* @author Consensys
* @notice This contract aims to provides a single entrypoint for the Verax registries
*/
interface IRouter {
/**
* @notice Gives the address for the AttestationRegistry contract
* @return The current address of the AttestationRegistry contract
*/
function getAttestationRegistry() external view returns (address);
/**
* @notice Gives the address for the ModuleRegistry contract
* @return The current address of the ModuleRegistry contract
*/
function getModuleRegistry() external view returns (address);
/**
* @notice Gives the address for the PortalRegistry contract
* @return The current address of the PortalRegistry contract
*/
function getPortalRegistry() external view returns (address);
/**
* @notice Gives the address for the SchemaRegistry contract
* @return The current address of the SchemaRegistry contract
*/
function getSchemaRegistry() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { AttestationPayload, Module } from "./types/Structs.sol";
import { AbstractModule } from "./interface/AbstractModule.sol";
import { OwnableUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol";
// solhint-disable-next-line max-line-length
import { ERC165CheckerUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/utils/introspection/ERC165CheckerUpgradeable.sol";
import { PortalRegistry } from "./PortalRegistry.sol";
import { IRouter } from "./interface/IRouter.sol";
/**
* @title Module Registry
* @author Consensys
* @notice This contract aims to manage the Modules used by the Portals, including their discoverability
*/
contract ModuleRegistry is OwnableUpgradeable {
IRouter public router;
/// @dev The list of Modules, accessed by their address
mapping(address id => Module module) public modules;
/// @dev The list of Module addresses
address[] public moduleAddresses;
/// @notice Error thrown when an invalid Router address is given
error RouterInvalid();
/// @notice Error thrown when a non-issuer tries to call a method that can only be called by an issuer
error OnlyIssuer();
/// @notice Error thrown when an identical Module was already registered
error ModuleAlreadyExists();
/// @notice Error thrown when attempting to add a Module without a name
error ModuleNameMissing();
/// @notice Error thrown when attempting to add a Module without an address of deployed smart contract
error ModuleAddressInvalid();
/// @notice Error thrown when attempting to add a Module which has not implemented the IModule interface
error ModuleInvalid();
/// @notice Error thrown when attempting to run modules with no attestation payload provided
error AttestationPayloadMissing();
/// @notice Error thrown when module is not registered
error ModuleNotRegistered();
/// @notice Error thrown when module addresses and validation payload length mismatch
error ModuleValidationPayloadMismatch();
/// @notice Event emitted when a Module is registered
event ModuleRegistered(string name, string description, address moduleAddress);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
/**
* @notice Contract initialization
*/
function initialize() public initializer {
__Ownable_init();
}
/**
* @notice Checks if the caller is a registered issuer.
* @param issuer the issuer address
*/
modifier onlyIssuers(address issuer) {
bool isIssuerRegistered = PortalRegistry(router.getPortalRegistry()).isIssuer(issuer);
if (!isIssuerRegistered) revert OnlyIssuer();
_;
}
/**
* @notice Changes the address for the Router
* @dev Only the registry owner can call this method
*/
function updateRouter(address _router) public onlyOwner {
if (_router == address(0)) revert RouterInvalid();
router = IRouter(_router);
}
/**
* Check if address is smart contract and not EOA
* @param contractAddress address to be verified
* @return the result as true if it is a smart contract else false
*/
function isContractAddress(address contractAddress) public view returns (bool) {
return contractAddress.code.length > 0;
}
/**
* @notice Registers a Module, with its metadata and run some checks:
* - mandatory name
* - mandatory module's deployed smart contract address
* - the module must be unique
* @param name the module name
* @param description the module description
* @param moduleAddress the address of the deployed smart contract
* @dev the module is stored in a mapping, the number of modules is incremented and an event is emitted
*/
function register(
string memory name,
string memory description,
address moduleAddress
) public onlyIssuers(msg.sender) {
if (bytes(name).length == 0) revert ModuleNameMissing();
// Check if moduleAddress is a smart contract address
if (!isContractAddress(moduleAddress)) revert ModuleAddressInvalid();
// Check if module has implemented AbstractModule
if (!ERC165CheckerUpgradeable.supportsInterface(moduleAddress, type(AbstractModule).interfaceId))
revert ModuleInvalid();
// Module address is used to identify uniqueness of the module
if (bytes(modules[moduleAddress].name).length > 0) revert ModuleAlreadyExists();
modules[moduleAddress] = Module(moduleAddress, name, description);
moduleAddresses.push(moduleAddress);
emit ModuleRegistered(name, description, moduleAddress);
}
/**
* @notice Executes the run method for all given Modules that are registered
* @param modulesAddresses the addresses of the registered modules
* @param attestationPayload the payload to attest
* @param validationPayloads the payloads to check for each module (one payload per module)
* @dev check if modules are registered and execute run method for each module
*/
function runModules(
address[] memory modulesAddresses,
AttestationPayload memory attestationPayload,
bytes[] memory validationPayloads,
uint256 value
) public {
// If no modules provided, bypass module validation
if (modulesAddresses.length == 0) return;
// Each module involved must have a corresponding item from the validation payload
if (modulesAddresses.length != validationPayloads.length) revert ModuleValidationPayloadMismatch();
// For each module check if it is registered and call run method
for (uint32 i = 0; i < modulesAddresses.length; i++) {
if (!isRegistered(modulesAddresses[i])) revert ModuleNotRegistered();
AbstractModule(modulesAddresses[i]).run(attestationPayload, validationPayloads[i], tx.origin, value);
}
}
/**
* @notice Executes the modules validation for all attestations payloads for all given Modules that are registered
* @param modulesAddresses the addresses of the registered modules
* @param attestationsPayloads the payloads to attest
* @param validationPayloads the payloads to check for each module
* @dev NOTE: Currently the bulk run modules does not handle payable modules
* a default value of 0 is used.
*/
function bulkRunModules(
address[] memory modulesAddresses,
AttestationPayload[] memory attestationsPayloads,
bytes[][] memory validationPayloads
) public {
for (uint32 i = 0; i < attestationsPayloads.length; i++) {
runModules(modulesAddresses, attestationsPayloads[i], validationPayloads[i], 0);
}
}
/**
* @notice Get the number of Modules managed by the contract
* @return The number of Modules already registered
* @dev Returns the length of the `moduleAddresses` array
*/
function getModulesNumber() public view returns (uint256) {
return moduleAddresses.length;
}
/**
* @notice Checks that a module is registered in the module registry
* @param moduleAddress The address of the Module to check
* @return True if the Module is registered, False otherwise
*/
function isRegistered(address moduleAddress) public view returns (bool) {
return bytes(modules[moduleAddress].name).length > 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { OwnableUpgradeable } from "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol";
import { Schema } from "./types/Structs.sol";
import { PortalRegistry } from "./PortalRegistry.sol";
import { IRouter } from "./interface/IRouter.sol";
/**
* @title Schema Registry
* @author Consensys
* @notice This contract aims to manage the Schemas used by the Portals, including their discoverability
*/
contract SchemaRegistry is OwnableUpgradeable {
IRouter public router;
/// @dev The list of Schemas, accessed by their ID
mapping(bytes32 id => Schema schema) private schemas;
/// @dev The list of Schema IDs
bytes32[] public schemaIds;
/// @notice Error thrown when an invalid Router address is given
error RouterInvalid();
/// @notice Error thrown when a non-issuer tries to call a method that can only be called by an issuer
error OnlyIssuer();
/// @notice Error thrown when an identical Schema was already registered
error SchemaAlreadyExists();
/// @notice Error thrown when attempting to add a Schema without a name
error SchemaNameMissing();
/// @notice Error thrown when attempting to add a Schema without a string to define it
error SchemaStringMissing();
/// @notice Error thrown when attempting to get a Schema that is not registered
error SchemaNotRegistered();
/// @notice Event emitted when a Schema is created and registered
event SchemaCreated(bytes32 indexed id, string name, string description, string context, string schemaString);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
/**
* @notice Contract initialization
*/
function initialize() public initializer {
__Ownable_init();
}
/**
* @notice Checks if the caller is a registered issuer.
* @param issuer the issuer address
*/
modifier onlyIssuers(address issuer) {
bool isIssuerRegistered = PortalRegistry(router.getPortalRegistry()).isIssuer(issuer);
if (!isIssuerRegistered) revert OnlyIssuer();
_;
}
/**
* @notice Changes the address for the Router
* @dev Only the registry owner can call this method
*/
function updateRouter(address _router) public onlyOwner {
if (_router == address(0)) revert RouterInvalid();
router = IRouter(_router);
}
/**
* Generate an ID for a given schema
* @param schema the string defining a schema
* @return the schema ID
* @dev encodes a schema string to unique bytes
*/
function getIdFromSchemaString(string memory schema) public pure returns (bytes32) {
return keccak256(abi.encodePacked(schema));
}
/**
* @notice Creates a Schema, with its metadata and runs some checks:
* - mandatory name
* - mandatory string defining the schema
* - the Schema must be unique
* @param name the Schema name
* @param description the Schema description
* @param context the Schema context
* @param schemaString the string defining a Schema
* @dev the Schema is stored in a mapping, its ID is added to an array of IDs and an event is emitted
*/
function createSchema(
string memory name,
string memory description,
string memory context,
string memory schemaString
) public onlyIssuers(msg.sender) {
if (bytes(name).length == 0) revert SchemaNameMissing();
if (bytes(schemaString).length == 0) revert SchemaStringMissing();
bytes32 schemaId = getIdFromSchemaString(schemaString);
if (isRegistered(schemaId)) {
revert SchemaAlreadyExists();
}
schemas[schemaId] = Schema(name, description, context, schemaString);
schemaIds.push(schemaId);
emit SchemaCreated(schemaId, name, description, context, schemaString);
}
/**
* @notice Updates the context of a given schema
* @param schemaId the schema ID
* @param context the Schema context
* @dev Retrieve the Schema with given ID and update its context with new value
*/
function updateContext(bytes32 schemaId, string memory context) public onlyIssuers(msg.sender) {
if (!isRegistered(schemaId)) revert SchemaNotRegistered();
schemas[schemaId].context = context;
}
/**
* @notice Gets a schema by its identifier
* @param schemaId the schema ID
* @return the schema
*/
function getSchema(bytes32 schemaId) public view returns (Schema memory) {
if (!isRegistered(schemaId)) revert SchemaNotRegistered();
return schemas[schemaId];
}
/**
* @notice Get the number of Schemas managed by the contract
* @return The number of Schemas already registered
* @dev Returns the length of the `schemaIds` array
*/
function getSchemasNumber() public view returns (uint256) {
return schemaIds.length;
}
/**
* @notice Check if a Schema is registered
* @param schemaId The ID of the Schema
* @return True if the Schema is registered, false otherwise
*/
function isRegistered(bytes32 schemaId) public view returns (bool) {
return bytes(schemas[schemaId].name).length > 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
struct AttestationPayload {
bytes32 schemaId; // The identifier of the schema this attestation adheres to.
uint64 expirationDate; // The expiration date of the attestation.
bytes subject; // The ID of the attestee, EVM address, DID, URL etc.
bytes attestationData; // The attestation data.
}
struct Attestation {
bytes32 attestationId; // The unique identifier of the attestation.
bytes32 schemaId; // The identifier of the schema this attestation adheres to.
bytes32 replacedBy; // Whether the attestation was replaced by a new one.
address attester; // The address issuing the attestation to the subject.
address portal; // The id of the portal that created the attestation.
uint64 attestedDate; // The date the attestation is issued.
uint64 expirationDate; // The expiration date of the attestation.
uint64 revocationDate; // The date when the attestation was revoked.
uint16 version; // Version of the registry when the attestation was created.
bool revoked; // Whether the attestation is revoked or not.
bytes subject; // The ID of the attestee, EVM address, DID, URL etc.
bytes attestationData; // The attestation data.
}
struct Schema {
string name; // The name of the schema.
string description; // A description of the schema.
string context; // The context of the schema.
string schema; // The schema definition.
}
struct Portal {
address id; // The unique identifier of the portal.
address ownerAddress; // The address of the owner of this portal.
address[] modules; // Addresses of modules implemented by the portal.
bool isRevocable; // Whether attestations issued can be revoked.
string name; // The name of the portal.
string description; // A description of the portal.
string ownerName; // The name of the owner of this portal.
}
struct Module {
address moduleAddress; // The address of the module.
string name; // The name of the module.
string description; // A description of the module.
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyIssuer","type":"error"},{"inputs":[],"name":"PortalAddressInvalid","type":"error"},{"inputs":[],"name":"PortalAlreadyExists","type":"error"},{"inputs":[],"name":"PortalDescriptionMissing","type":"error"},{"inputs":[],"name":"PortalInvalid","type":"error"},{"inputs":[],"name":"PortalNameMissing","type":"error"},{"inputs":[],"name":"PortalNotRegistered","type":"error"},{"inputs":[],"name":"PortalOwnerNameMissing","type":"error"},{"inputs":[],"name":"RouterInvalid","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"description","type":"string"},{"indexed":false,"internalType":"address","name":"portalAddress","type":"address"}],"name":"PortalRegistered","type":"event"},{"inputs":[{"internalType":"address[]","name":"modules","type":"address[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"bool","name":"isRevocable","type":"bool"},{"internalType":"string","name":"ownerName","type":"string"}],"name":"deployDefaultPortal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"id","type":"address"}],"name":"getPortalByAddress","outputs":[{"components":[{"internalType":"address","name":"id","type":"address"},{"internalType":"address","name":"ownerAddress","type":"address"},{"internalType":"address[]","name":"modules","type":"address[]"},{"internalType":"bool","name":"isRevocable","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"ownerName","type":"string"}],"internalType":"struct Portal","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPortalsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"}],"name":"isIssuer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"id","type":"address"}],"name":"isRegistered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"id","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"bool","name":"isRevocable","type":"bool"},{"internalType":"string","name":"ownerName","type":"string"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"}],"name":"removeIssuer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"}],"name":"setIssuer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"updateRouter","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50620000226200002860201b60201c565b620001d2565b600060019054906101000a900460ff16156200007b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000729062000175565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff1614620000ec5760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620000e39190620001b5565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200015d602783620000ee565b91506200016a82620000ff565b604082019050919050565b6000602082019050818103600083015262000190816200014e565b9050919050565b600060ff82169050919050565b620001af8162000197565b82525050565b6000602082019050620001cc6000830184620001a4565b92915050565b6153a580620001e26000396000f3fe60806040523480156200001157600080fd5b5060043610620001005760003560e01c80638da5cb5b1162000099578063c851cc32116200006f578063c851cc321462000263578063f0d124ec1462000283578063f2fde38b14620002a3578063f887ea4014620002c35762000100565b80638da5cb5b14620001d5578063c0fbc74814620001f7578063c3c5a547146200022d5762000100565b806355cc4e5711620000db57806355cc4e571462000167578063715018a614620001875780638129fc1c1462000193578063877b9a67146200019f5762000100565b806328c0ddf5146200010557806345592640146200012557806347bc70931462000147575b600080fd5b6200012360048036038101906200011d919062001845565b620002e5565b005b6200012f6200082c565b6040516200013e919062001945565b60405180910390f35b6200016560048036038101906200015f919062001962565b62000839565b005b6200018560048036038101906200017f919062001962565b6200089e565b005b6200019162000903565b005b6200019d6200091b565b005b620001bd6004803603810190620001b7919062001962565b62000a67565b604051620001cc9190620019a5565b60405180910390f35b620001df62000abd565b604051620001ee9190620019d3565b60405180910390f35b6200021560048036038101906200020f919062001962565b62000ae7565b60405162000224919062001c17565b60405180910390f35b6200024b600480360381019062000245919062001962565b62000ea9565b6040516200025a9190620019a5565b60405180910390f35b6200028160048036038101906200027b919062001962565b62000f44565b005b620002a160048036038101906200029b919062001ca4565b62000ff9565b005b620002c16004803603810190620002bb919062001962565b620010b8565b005b620002cd62001142565b604051620002dc919062001e16565b60405180910390f35b33620002f18162000a67565b62000328576040517f55b51ef100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16606660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620003f1576040517fb11640c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003fc8662001168565b62000433576040517fa3f8514f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008551036200046f576040517f40f13f8e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000845103620004ab576040517f379e340600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000825103620004e7576040517fc57edda100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000513867f31c1afd5000000000000000000000000000000000000000000000000000000006200118b565b6200054a576040517f2c1d4deb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008673ffffffffffffffffffffffffffffffffffffffff1663b2494df36040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000598573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190620005c3919062001f20565b905060006040518060e001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001861515815260200188815260200187815260200185815250905080606660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190805190602001906200071692919062001506565b5060608201518160030160006101000a81548160ff02191690831515021790555060808201518160040190816200074e91906200219d565b5060a08201518160050190816200076691906200219d565b5060c08201518160060190816200077e91906200219d565b509050506068889080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2b7df910f1bbb7a5c5b32de79907b6445d28b219a71bcb754b46d8d225d27e8687878a6040516200081a93929190620022d6565b60405180910390a15050505050505050565b6000606880549050905090565b62000843620011b5565b6000606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b620008a8620011b5565b6001606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6200090d620011b5565b6200091960006200123a565b565b60008060019054906101000a900460ff161590508080156200094d5750600160008054906101000a900460ff1660ff16105b806200097e57506200095f3062001300565b1580156200097d5750600160008054906101000a900460ff1660ff16145b5b620009c0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009b79062002397565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015620009fe576001600060016101000a81548160ff0219169083151502179055505b62000a0862001323565b801562000a645760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405162000a5b919062002409565b60405180910390a15b50565b6000606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62000af162001595565b62000afc8262000ea9565b62000b33576040517f082cec1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060e00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180548060200260200160405190810160405280929190818152602001828054801562000cb057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831162000c65575b505050505081526020016003820160009054906101000a900460ff1615151515815260200160048201805462000ce69062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000d149062001fa0565b801562000d655780601f1062000d395761010080835404028352916020019162000d65565b820191906000526020600020905b81548152906001019060200180831162000d4757829003601f168201915b5050505050815260200160058201805462000d809062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000dae9062001fa0565b801562000dff5780601f1062000dd35761010080835404028352916020019162000dff565b820191906000526020600020905b81548152906001019060200180831162000de157829003601f168201915b5050505050815260200160068201805462000e1a9062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000e489062001fa0565b801562000e995780601f1062000e6d5761010080835404028352916020019162000e99565b820191906000526020600020905b81548152906001019060200180831162000e7b57829003601f168201915b5050505050815250509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000f4e620011b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000fb5576040517f4944068e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b33620010058162000a67565b6200103c576040517f55b51ef100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008787606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620010719062001600565b6200107f93929190620024d0565b604051809103906000f0801580156200109c573d6000803e3d6000fd5b509050620010ae8187878787620002e5565b5050505050505050565b620010c2620011b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362001134576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200112b906200257c565b60405180910390fd5b6200113f816200123a565b50565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000620011988362001381565b8015620011ad5750620011ac8383620013d3565b5b905092915050565b620011bf62001496565b73ffffffffffffffffffffffffffffffffffffffff16620011df62000abd565b73ffffffffffffffffffffffffffffffffffffffff161462001238576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200122f90620025ee565b60405180910390fd5b565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff1662001375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200136c9062002686565b60405180910390fd5b6200137f6200149e565b565b6000620013af827f01ffc9a700000000000000000000000000000000000000000000000000000000620013d3565b8015620013cc5750620013ca8263ffffffff60e01b620013d3565b155b9050919050565b6000806301ffc9a760e01b83604051602401620013f19190620026e5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d915060005190508280156200147d575060208210155b80156200148a5750600081115b94505050505092915050565b600033905090565b600060019054906101000a900460ff16620014f0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620014e79062002686565b60405180910390fd5b62001504620014fe62001496565b6200123a565b565b82805482825590600052602060002090810192821562001582579160200282015b82811115620015815782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062001527565b5b5090506200159191906200160e565b5090565b6040518060e00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081526020016000151581526020016060815260200160608152602001606081525090565b612c6d806200270383390190565b5b80821115620016295760008160009055506001016200160f565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200166e8262001641565b9050919050565b620016808162001661565b81146200168c57600080fd5b50565b600081359050620016a08162001675565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620016fb82620016b0565b810181811067ffffffffffffffff821117156200171d576200171c620016c1565b5b80604052505050565b6000620017326200162d565b9050620017408282620016f0565b919050565b600067ffffffffffffffff821115620017635762001762620016c1565b5b6200176e82620016b0565b9050602081019050919050565b82818337600083830152505050565b6000620017a16200179b8462001745565b62001726565b905082815260208101848484011115620017c057620017bf620016ab565b5b620017cd8482856200177b565b509392505050565b600082601f830112620017ed57620017ec620016a6565b5b8135620017ff8482602086016200178a565b91505092915050565b60008115159050919050565b6200181f8162001808565b81146200182b57600080fd5b50565b6000813590506200183f8162001814565b92915050565b600080600080600060a0868803121562001864576200186362001637565b5b600062001874888289016200168f565b955050602086013567ffffffffffffffff8111156200189857620018976200163c565b5b620018a688828901620017d5565b945050604086013567ffffffffffffffff811115620018ca57620018c96200163c565b5b620018d888828901620017d5565b9350506060620018eb888289016200182e565b925050608086013567ffffffffffffffff8111156200190f576200190e6200163c565b5b6200191d88828901620017d5565b9150509295509295909350565b6000819050919050565b6200193f816200192a565b82525050565b60006020820190506200195c600083018462001934565b92915050565b6000602082840312156200197b576200197a62001637565b5b60006200198b848285016200168f565b91505092915050565b6200199f8162001808565b82525050565b6000602082019050620019bc600083018462001994565b92915050565b620019cd8162001661565b82525050565b6000602082019050620019ea6000830184620019c2565b92915050565b620019fb8162001661565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600062001a3b8383620019f0565b60208301905092915050565b6000602082019050919050565b600062001a618262001a01565b62001a6d818562001a0c565b935062001a7a8362001a1d565b8060005b8381101562001ab157815162001a95888262001a2d565b975062001aa28362001a47565b92505060018101905062001a7e565b5085935050505092915050565b62001ac98162001808565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562001b0b57808201518184015260208101905062001aee565b60008484015250505050565b600062001b248262001acf565b62001b30818562001ada565b935062001b4281856020860162001aeb565b62001b4d81620016b0565b840191505092915050565b600060e08301600083015162001b726000860182620019f0565b50602083015162001b876020860182620019f0565b506040830151848203604086015262001ba1828262001a54565b915050606083015162001bb8606086018262001abe565b506080830151848203608086015262001bd2828262001b17565b91505060a083015184820360a086015262001bee828262001b17565b91505060c083015184820360c086015262001c0a828262001b17565b9150508091505092915050565b6000602082019050818103600083015262001c33818462001b58565b905092915050565b600080fd5b600080fd5b60008083601f84011262001c5e5762001c5d620016a6565b5b8235905067ffffffffffffffff81111562001c7e5762001c7d62001c3b565b5b60208301915083602082028301111562001c9d5762001c9c62001c40565b5b9250929050565b60008060008060008060a0878903121562001cc45762001cc362001637565b5b600087013567ffffffffffffffff81111562001ce55762001ce46200163c565b5b62001cf389828a0162001c45565b9650965050602087013567ffffffffffffffff81111562001d195762001d186200163c565b5b62001d2789828a01620017d5565b945050604087013567ffffffffffffffff81111562001d4b5762001d4a6200163c565b5b62001d5989828a01620017d5565b935050606062001d6c89828a016200182e565b925050608087013567ffffffffffffffff81111562001d905762001d8f6200163c565b5b62001d9e89828a01620017d5565b9150509295509295509295565b6000819050919050565b600062001dd662001dd062001dca8462001641565b62001dab565b62001641565b9050919050565b600062001dea8262001db5565b9050919050565b600062001dfe8262001ddd565b9050919050565b62001e108162001df1565b82525050565b600060208201905062001e2d600083018462001e05565b92915050565b600067ffffffffffffffff82111562001e515762001e50620016c1565b5b602082029050602081019050919050565b60008151905062001e738162001675565b92915050565b600062001e9062001e8a8462001e33565b62001726565b9050808382526020820190506020840283018581111562001eb65762001eb562001c40565b5b835b8181101562001ee3578062001ece888262001e62565b84526020840193505060208101905062001eb8565b5050509392505050565b600082601f83011262001f055762001f04620016a6565b5b815162001f1784826020860162001e79565b91505092915050565b60006020828403121562001f395762001f3862001637565b5b600082015167ffffffffffffffff81111562001f5a5762001f596200163c565b5b62001f688482850162001eed565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062001fb957607f821691505b60208210810362001fcf5762001fce62001f71565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620020397fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001ffa565b62002045868362001ffa565b95508019841693508086168417925050509392505050565b60006200207e6200207862002072846200192a565b62001dab565b6200192a565b9050919050565b6000819050919050565b6200209a836200205d565b620020b2620020a98262002085565b84845462002007565b825550505050565b600090565b620020c9620020ba565b620020d68184846200208f565b505050565b5b81811015620020fe57620020f2600082620020bf565b600181019050620020dc565b5050565b601f8211156200214d57620021178162001fd5565b620021228462001fea565b8101602085101562002132578190505b6200214a620021418562001fea565b830182620020db565b50505b505050565b600082821c905092915050565b6000620021726000198460080262002152565b1980831691505092915050565b60006200218d83836200215f565b9150826002028217905092915050565b620021a88262001acf565b67ffffffffffffffff811115620021c457620021c3620016c1565b5b620021d0825462001fa0565b620021dd82828562002102565b600060209050601f83116001811462002215576000841562002200578287015190505b6200220c85826200217f565b8655506200227c565b601f198416620022258662001fd5565b60005b828110156200224f5784890151825560018201915060208501945060208101905062002228565b868310156200226f57848901516200226b601f8916826200215f565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b6000620022a28262001acf565b620022ae818562002284565b9350620022c081856020860162001aeb565b620022cb81620016b0565b840191505092915050565b60006060820190508181036000830152620022f2818662002295565b9050818103602083015262002308818562002295565b9050620023196040830184620019c2565b949350505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006200237f602e8362002284565b91506200238c8262002321565b604082019050919050565b60006020820190508181036000830152620023b28162002370565b9050919050565b6000819050919050565b600060ff82169050919050565b6000620023f1620023eb620023e584620023b9565b62001dab565b620023c3565b9050919050565b6200240381620023d0565b82525050565b6000602082019050620024206000830184620023f8565b92915050565b600082825260208201905092915050565b6000819050919050565b60006200245260208401846200168f565b905092915050565b6000602082019050919050565b600062002475838562002426565b9350620024828262002437565b8060005b85811015620024c3576200249b828462002441565b620024a7888262001a2d565b9750620024b4836200245a565b92505060018101905062002486565b5085925050509392505050565b60006040820190508181036000830152620024ed81858762002467565b9050620024fe6020830184620019c2565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006200256460268362002284565b9150620025718262002506565b604082019050919050565b60006020820190508181036000830152620025978162002555565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620025d660208362002284565b9150620025e3826200259e565b602082019050919050565b600060208201905081810360008301526200260981620025c7565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006200266e602b8362002284565b91506200267b8262002610565b604082019050919050565b60006020820190508181036000830152620026a1816200265f565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620026df81620026a8565b82525050565b6000602082019050620026fc6000830184620026d4565b9291505056fe60806040523480156200001157600080fd5b5060405162002c6d38038062002c6d8339818101604052810190620000379190620005ae565b818181600190805190602001906200005192919062000312565b50806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bfa665856040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000124919062000614565b600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663edec79526040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f6919062000614565b600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b7dac9766040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c8919062000614565b600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505062000646565b8280548282559060005260206000209081019282156200038e579160200282015b828111156200038d5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000333565b5b5090506200039d9190620003a1565b5090565b5b80821115620003bc576000816000905550600101620003a2565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042482620003d9565b810181811067ffffffffffffffff82111715620004465762000445620003ea565b5b80604052505050565b60006200045b620003c0565b905062000469828262000419565b919050565b600067ffffffffffffffff8211156200048c576200048b620003ea565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004cf82620004a2565b9050919050565b620004e181620004c2565b8114620004ed57600080fd5b50565b6000815190506200050181620004d6565b92915050565b60006200051e62000518846200046e565b6200044f565b905080838252602082019050602084028301858111156200054457620005436200049d565b5b835b818110156200057157806200055c8882620004f0565b84526020840193505060208101905062000546565b5050509392505050565b600082601f830112620005935762000592620003d4565b5b8151620005a584826020860162000507565b91505092915050565b60008060408385031215620005c857620005c7620003ca565b5b600083015167ffffffffffffffff811115620005e957620005e8620003cf565b5b620005f7858286016200057b565b92505060206200060a85828601620004f0565b9150509250929050565b6000602082840312156200062d576200062c620003ca565b5b60006200063d84828501620004f0565b91505092915050565b61261780620006566000396000f3fe6080604052600436106100e85760003560e01c8063b2494df31161008a578063ecdbb4fd11610059578063ecdbb4fd146102d3578063ed6d73f9146102ef578063f3fef3a31461031a578063f887ea4014610343576100e8565b8063b2494df314610229578063b666493414610254578063b75c7dc61461027f578063b95459e4146102a8576100e8565b80634ada8076116100c65780634ada80761461016f578063523ba7ca1461019857806381b2248a146101c15780638388e226146101fe576100e8565b806301ffc9a7146100ed578063074321961461012a5780633cc30e2a14610146575b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190610ed5565b61036e565b6040516101219190610f1d565b60405180910390f35b610144600480360381019061013f9190611294565b6104a8565b005b34801561015257600080fd5b5061016d60048036038101906101689190611591565b6105e8565b005b34801561017b57600080fd5b5061019660048036038101906101919190611638565b610722565b005b3480156101a457600080fd5b506101bf60048036038101906101ba9190611681565b6107bb565b005b3480156101cd57600080fd5b506101e860048036038101906101e3919061172f565b6108f1565b6040516101f5919061179d565b60405180910390f35b34801561020a57600080fd5b50610213610930565b604051610220919061179d565b60405180910390f35b34801561023557600080fd5b5061023e610938565b60405161024b9190611876565b60405180910390f35b34801561026057600080fd5b506102696109c6565b60405161027691906118f7565b60405180910390f35b34801561028b57600080fd5b506102a660048036038101906102a19190611912565b6109ec565b005b3480156102b457600080fd5b506102bd610a85565b6040516102ca9190611960565b60405180910390f35b6102ed60048036038101906102e8919061197b565b610aab565b005b3480156102fb57600080fd5b50610304610bef565b6040516103119190611a27565b60405180910390f35b34801561032657600080fd5b50610341600480360381019061033c9190611a80565b610c15565b005b34801561034f57600080fd5b50610358610c19565b6040516103659190611ae1565b60405180910390f35b60007f204cf909000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061043957507f31c1afd5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104a157507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e253ca60018484346040518563ffffffff1660e01b815260040161050a9493929190611dc0565b600060405180830381600087803b15801561052457600080fd5b505af1158015610538573d6000803e3d6000fd5b5050505061054e82610548610930565b34610c3d565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166362fa3d4583610595610930565b6040518363ffffffff1660e01b81526004016105b2929190611e1a565b600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2baec4a600184846040518463ffffffff1660e01b8152600401610648939291906120be565b600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b50505050610685838383610c42565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636ec4d4cb84846106cd610930565b6040518463ffffffff1660e01b81526004016106eb939291906121b9565b600060405180830381600087803b15801561070557600080fd5b505af1158015610719573d6000803e3d6000fd5b50505050505050565b61072b81610c47565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ada8076826040518263ffffffff1660e01b815260040161078691906121fe565b600060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2baec4a600184846040518463ffffffff1660e01b815260040161081b939291906120be565b600060405180830381600087803b15801561083557600080fd5b505af1158015610849573d6000803e3d6000fd5b505050506108578282610d53565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8e2812d8361089e610930565b6040518363ffffffff1660e01b81526004016108bb929190612220565b600060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050505050565b6001818154811061090157600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b606060018054806020026020016040519081016040528092919081815260200182805480156109bc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610972575b5050505050905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109f581610d57565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b75c7dc6826040518263ffffffff1660e01b8152600401610a50919061225f565b600060405180830381600087803b158015610a6a57600080fd5b505af1158015610a7e573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e253ca60018484346040518563ffffffff1660e01b8152600401610b0d9493929190611dc0565b600060405180830381600087803b158015610b2757600080fd5b505af1158015610b3b573d6000803e3d6000fd5b50505050610b528383610b4c610930565b34610e63565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638ffa736b8484610b9a610930565b6040518463ffffffff1660e01b8152600401610bb89392919061227a565b600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b50505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b505050565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c0fbc748306040518263ffffffff1660e01b8152600401610ca2919061179d565b600060405180830381865afa158015610cbf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ce89190612598565b6020015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d50576040517f71f63e3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c0fbc748306040518263ffffffff1660e01b8152600401610db2919061179d565b600060405180830381865afa158015610dcf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610df89190612598565b6020015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e60576040517f71f63e3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b50505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610eb281610e7d565b8114610ebd57600080fd5b50565b600081359050610ecf81610ea9565b92915050565b600060208284031215610eeb57610eea610e73565b5b6000610ef984828501610ec0565b91505092915050565b60008115159050919050565b610f1781610f02565b82525050565b6000602082019050610f326000830184610f0e565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610f8682610f3d565b810181811067ffffffffffffffff82111715610fa557610fa4610f4e565b5b80604052505050565b6000610fb8610e69565b9050610fc48282610f7d565b919050565b600080fd5b6000819050919050565b610fe181610fce565b8114610fec57600080fd5b50565b600081359050610ffe81610fd8565b92915050565b600067ffffffffffffffff82169050919050565b61102181611004565b811461102c57600080fd5b50565b60008135905061103e81611018565b92915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561106957611068610f4e565b5b61107282610f3d565b9050602081019050919050565b82818337600083830152505050565b60006110a161109c8461104e565b610fae565b9050828152602081018484840111156110bd576110bc611049565b5b6110c884828561107f565b509392505050565b600082601f8301126110e5576110e4611044565b5b81356110f584826020860161108e565b91505092915050565b60006080828403121561111457611113610f38565b5b61111e6080610fae565b9050600061112e84828501610fef565b60008301525060206111428482850161102f565b602083015250604082013567ffffffffffffffff81111561116657611165610fc9565b5b611172848285016110d0565b604083015250606082013567ffffffffffffffff81111561119657611195610fc9565b5b6111a2848285016110d0565b60608301525092915050565b600067ffffffffffffffff8211156111c9576111c8610f4e565b5b602082029050602081019050919050565b600080fd5b60006111f26111ed846111ae565b610fae565b90508083825260208201905060208402830185811115611215576112146111da565b5b835b8181101561125c57803567ffffffffffffffff81111561123a57611239611044565b5b80860161124789826110d0565b85526020850194505050602081019050611217565b5050509392505050565b600082601f83011261127b5761127a611044565b5b813561128b8482602086016111df565b91505092915050565b600080604083850312156112ab576112aa610e73565b5b600083013567ffffffffffffffff8111156112c9576112c8610e78565b5b6112d5858286016110fe565b925050602083013567ffffffffffffffff8111156112f6576112f5610e78565b5b61130285828601611266565b9150509250929050565b600067ffffffffffffffff82111561132757611326610f4e565b5b602082029050602081019050919050565b600061134b6113468461130c565b610fae565b9050808382526020820190506020840283018581111561136e5761136d6111da565b5b835b8181101561139757806113838882610fef565b845260208401935050602081019050611370565b5050509392505050565b600082601f8301126113b6576113b5611044565b5b81356113c6848260208601611338565b91505092915050565b600067ffffffffffffffff8211156113ea576113e9610f4e565b5b602082029050602081019050919050565b600061140e611409846113cf565b610fae565b90508083825260208201905060208402830185811115611431576114306111da565b5b835b8181101561147857803567ffffffffffffffff81111561145657611455611044565b5b80860161146389826110fe565b85526020850194505050602081019050611433565b5050509392505050565b600082601f83011261149757611496611044565b5b81356114a78482602086016113fb565b91505092915050565b600067ffffffffffffffff8211156114cb576114ca610f4e565b5b602082029050602081019050919050565b60006114ef6114ea846114b0565b610fae565b90508083825260208201905060208402830185811115611512576115116111da565b5b835b8181101561155957803567ffffffffffffffff81111561153757611536611044565b5b8086016115448982611266565b85526020850194505050602081019050611514565b5050509392505050565b600082601f83011261157857611577611044565b5b81356115888482602086016114dc565b91505092915050565b6000806000606084860312156115aa576115a9610e73565b5b600084013567ffffffffffffffff8111156115c8576115c7610e78565b5b6115d4868287016113a1565b935050602084013567ffffffffffffffff8111156115f5576115f4610e78565b5b61160186828701611482565b925050604084013567ffffffffffffffff81111561162257611621610e78565b5b61162e86828701611563565b9150509250925092565b60006020828403121561164e5761164d610e73565b5b600082013567ffffffffffffffff81111561166c5761166b610e78565b5b611678848285016113a1565b91505092915050565b6000806040838503121561169857611697610e73565b5b600083013567ffffffffffffffff8111156116b6576116b5610e78565b5b6116c285828601611482565b925050602083013567ffffffffffffffff8111156116e3576116e2610e78565b5b6116ef85828601611563565b9150509250929050565b6000819050919050565b61170c816116f9565b811461171757600080fd5b50565b60008135905061172981611703565b92915050565b60006020828403121561174557611744610e73565b5b60006117538482850161171a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006117878261175c565b9050919050565b6117978161177c565b82525050565b60006020820190506117b2600083018461178e565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6117ed8161177c565b82525050565b60006117ff83836117e4565b60208301905092915050565b6000602082019050919050565b6000611823826117b8565b61182d81856117c3565b9350611838836117d4565b8060005b8381101561186957815161185088826117f3565b975061185b8361180b565b92505060018101905061183c565b5085935050505092915050565b600060208201905081810360008301526118908184611818565b905092915050565b6000819050919050565b60006118bd6118b86118b38461175c565b611898565b61175c565b9050919050565b60006118cf826118a2565b9050919050565b60006118e1826118c4565b9050919050565b6118f1816118d6565b82525050565b600060208201905061190c60008301846118e8565b92915050565b60006020828403121561192857611927610e73565b5b600061193684828501610fef565b91505092915050565b600061194a826118c4565b9050919050565b61195a8161193f565b82525050565b60006020820190506119756000830184611951565b92915050565b60008060006060848603121561199457611993610e73565b5b60006119a286828701610fef565b935050602084013567ffffffffffffffff8111156119c3576119c2610e78565b5b6119cf868287016110fe565b925050604084013567ffffffffffffffff8111156119f0576119ef610e78565b5b6119fc86828701611266565b9150509250925092565b6000611a11826118c4565b9050919050565b611a2181611a06565b82525050565b6000602082019050611a3c6000830184611a18565b92915050565b6000611a4d8261175c565b9050919050565b611a5d81611a42565b8114611a6857600080fd5b50565b600081359050611a7a81611a54565b92915050565b60008060408385031215611a9757611a96610e73565b5b6000611aa585828601611a6b565b9250506020611ab68582860161171a565b9150509250929050565b6000611acb826118c4565b9050919050565b611adb81611ac0565b82525050565b6000602082019050611af66000830184611ad2565b92915050565b600081549050919050565b60008190508160005260206000209050919050565b60008160001c9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b5c611b5783611b1c565b611b29565b9050919050565b6000611b6f8254611b49565b9050919050565b6000600182019050919050565b6000611b8e82611afc565b611b9881856117c3565b9350611ba383611b07565b8060005b83811015611bdb57611bb882611b63565b611bc288826117f3565b9750611bcd83611b76565b925050600181019050611ba7565b5085935050505092915050565b611bf181610fce565b82525050565b611c0081611004565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611c40578082015181840152602081019050611c25565b60008484015250505050565b6000611c5782611c06565b611c618185611c11565b9350611c71818560208601611c22565b611c7a81610f3d565b840191505092915050565b6000608083016000830151611c9d6000860182611be8565b506020830151611cb06020860182611bf7565b5060408301518482036040860152611cc88282611c4c565b91505060608301518482036060860152611ce28282611c4c565b9150508091505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000611d278383611c4c565b905092915050565b6000602082019050919050565b6000611d4782611cef565b611d518185611cfa565b935083602082028501611d6385611d0b565b8060005b85811015611d9f5784840389528151611d808582611d1b565b9450611d8b83611d2f565b925060208a01995050600181019050611d67565b50829750879550505050505092915050565b611dba816116f9565b82525050565b60006080820190508181036000830152611dda8187611b83565b90508181036020830152611dee8186611c85565b90508181036040830152611e028185611d3c565b9050611e116060830184611db1565b95945050505050565b60006040820190508181036000830152611e348185611c85565b9050611e43602083018461178e565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000608083016000830151611e8e6000860182611be8565b506020830151611ea16020860182611bf7565b5060408301518482036040860152611eb98282611c4c565b91505060608301518482036060860152611ed38282611c4c565b9150508091505092915050565b6000611eec8383611e76565b905092915050565b6000602082019050919050565b6000611f0c82611e4a565b611f168185611e55565b935083602082028501611f2885611e66565b8060005b85811015611f645784840389528151611f458582611ee0565b9450611f5083611ef4565b925060208a01995050600181019050611f2c565b50829750879550505050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000611fbe82611cef565b611fc88185611fa2565b935083602082028501611fda85611d0b565b8060005b858110156120165784840389528151611ff78582611d1b565b945061200283611d2f565b925060208a01995050600181019050611fde565b50829750879550505050505092915050565b60006120348383611fb3565b905092915050565b6000602082019050919050565b600061205482611f76565b61205e8185611f81565b93508360208202850161207085611f92565b8060005b858110156120ac578484038952815161208d8582612028565b94506120988361203c565b925060208a01995050600181019050612074565b50829750879550505050505092915050565b600060608201905081810360008301526120d88186611b83565b905081810360208301526120ec8185611f01565b905081810360408301526121008184612049565b9050949350505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006121428383611be8565b60208301905092915050565b6000602082019050919050565b60006121668261210a565b6121708185612115565b935061217b83612126565b8060005b838110156121ac5781516121938882612136565b975061219e8361214e565b92505060018101905061217f565b5085935050505092915050565b600060608201905081810360008301526121d3818661215b565b905081810360208301526121e78185611f01565b90506121f6604083018461178e565b949350505050565b60006020820190508181036000830152612218818461215b565b905092915050565b6000604082019050818103600083015261223a8185611f01565b9050612249602083018461178e565b9392505050565b61225981610fce565b82525050565b60006020820190506122746000830184612250565b92915050565b600060608201905061228f6000830186612250565b81810360208301526122a18185611c85565b90506122b0604083018461178e565b949350505050565b6122c18161177c565b81146122cc57600080fd5b50565b6000815190506122de816122b8565b92915050565b600067ffffffffffffffff8211156122ff576122fe610f4e565b5b602082029050602081019050919050565b600061232361231e846122e4565b610fae565b90508083825260208201905060208402830185811115612346576123456111da565b5b835b8181101561236f578061235b88826122cf565b845260208401935050602081019050612348565b5050509392505050565b600082601f83011261238e5761238d611044565b5b815161239e848260208601612310565b91505092915050565b6123b081610f02565b81146123bb57600080fd5b50565b6000815190506123cd816123a7565b92915050565b600067ffffffffffffffff8211156123ee576123ed610f4e565b5b6123f782610f3d565b9050602081019050919050565b6000612417612412846123d3565b610fae565b90508281526020810184848401111561243357612432611049565b5b61243e848285611c22565b509392505050565b600082601f83011261245b5761245a611044565b5b815161246b848260208601612404565b91505092915050565b600060e0828403121561248a57612489610f38565b5b61249460e0610fae565b905060006124a4848285016122cf565b60008301525060206124b8848285016122cf565b602083015250604082015167ffffffffffffffff8111156124dc576124db610fc9565b5b6124e884828501612379565b60408301525060606124fc848285016123be565b606083015250608082015167ffffffffffffffff8111156125205761251f610fc9565b5b61252c84828501612446565b60808301525060a082015167ffffffffffffffff8111156125505761254f610fc9565b5b61255c84828501612446565b60a08301525060c082015167ffffffffffffffff8111156125805761257f610fc9565b5b61258c84828501612446565b60c08301525092915050565b6000602082840312156125ae576125ad610e73565b5b600082015167ffffffffffffffff8111156125cc576125cb610e78565b5b6125d884828501612474565b9150509291505056fea264697066735822122062e0c1c608eb8678eee8aff4f1c13798eb5d7072de049e69b56c4718f96d542664736f6c63430008150033a26469706673582212203297df6b59eda07dced040083392057a3f4652dc292146436c22b2b9ec0c7f8e64736f6c63430008150033
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620001005760003560e01c80638da5cb5b1162000099578063c851cc32116200006f578063c851cc321462000263578063f0d124ec1462000283578063f2fde38b14620002a3578063f887ea4014620002c35762000100565b80638da5cb5b14620001d5578063c0fbc74814620001f7578063c3c5a547146200022d5762000100565b806355cc4e5711620000db57806355cc4e571462000167578063715018a614620001875780638129fc1c1462000193578063877b9a67146200019f5762000100565b806328c0ddf5146200010557806345592640146200012557806347bc70931462000147575b600080fd5b6200012360048036038101906200011d919062001845565b620002e5565b005b6200012f6200082c565b6040516200013e919062001945565b60405180910390f35b6200016560048036038101906200015f919062001962565b62000839565b005b6200018560048036038101906200017f919062001962565b6200089e565b005b6200019162000903565b005b6200019d6200091b565b005b620001bd6004803603810190620001b7919062001962565b62000a67565b604051620001cc9190620019a5565b60405180910390f35b620001df62000abd565b604051620001ee9190620019d3565b60405180910390f35b6200021560048036038101906200020f919062001962565b62000ae7565b60405162000224919062001c17565b60405180910390f35b6200024b600480360381019062000245919062001962565b62000ea9565b6040516200025a9190620019a5565b60405180910390f35b6200028160048036038101906200027b919062001962565b62000f44565b005b620002a160048036038101906200029b919062001ca4565b62000ff9565b005b620002c16004803603810190620002bb919062001962565b620010b8565b005b620002cd62001142565b604051620002dc919062001e16565b60405180910390f35b33620002f18162000a67565b62000328576040517f55b51ef100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16606660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620003f1576040517fb11640c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003fc8662001168565b62000433576040517fa3f8514f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008551036200046f576040517f40f13f8e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000845103620004ab576040517f379e340600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000825103620004e7576040517fc57edda100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000513867f31c1afd5000000000000000000000000000000000000000000000000000000006200118b565b6200054a576040517f2c1d4deb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008673ffffffffffffffffffffffffffffffffffffffff1663b2494df36040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000598573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190620005c3919062001f20565b905060006040518060e001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001861515815260200188815260200187815260200185815250905080606660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190805190602001906200071692919062001506565b5060608201518160030160006101000a81548160ff02191690831515021790555060808201518160040190816200074e91906200219d565b5060a08201518160050190816200076691906200219d565b5060c08201518160060190816200077e91906200219d565b509050506068889080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2b7df910f1bbb7a5c5b32de79907b6445d28b219a71bcb754b46d8d225d27e8687878a6040516200081a93929190620022d6565b60405180910390a15050505050505050565b6000606880549050905090565b62000843620011b5565b6000606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b620008a8620011b5565b6001606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6200090d620011b5565b6200091960006200123a565b565b60008060019054906101000a900460ff161590508080156200094d5750600160008054906101000a900460ff1660ff16105b806200097e57506200095f3062001300565b1580156200097d5750600160008054906101000a900460ff1660ff16145b5b620009c0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009b79062002397565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015620009fe576001600060016101000a81548160ff0219169083151502179055505b62000a0862001323565b801562000a645760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405162000a5b919062002409565b60405180910390a15b50565b6000606760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62000af162001595565b62000afc8262000ea9565b62000b33576040517f082cec1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060e00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180548060200260200160405190810160405280929190818152602001828054801562000cb057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831162000c65575b505050505081526020016003820160009054906101000a900460ff1615151515815260200160048201805462000ce69062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000d149062001fa0565b801562000d655780601f1062000d395761010080835404028352916020019162000d65565b820191906000526020600020905b81548152906001019060200180831162000d4757829003601f168201915b5050505050815260200160058201805462000d809062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000dae9062001fa0565b801562000dff5780601f1062000dd35761010080835404028352916020019162000dff565b820191906000526020600020905b81548152906001019060200180831162000de157829003601f168201915b5050505050815260200160068201805462000e1a9062001fa0565b80601f016020809104026020016040519081016040528092919081815260200182805462000e489062001fa0565b801562000e995780601f1062000e6d5761010080835404028352916020019162000e99565b820191906000526020600020905b81548152906001019060200180831162000e7b57829003601f168201915b5050505050815250509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000f4e620011b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000fb5576040517f4944068e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b33620010058162000a67565b6200103c576040517f55b51ef100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008787606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620010719062001600565b6200107f93929190620024d0565b604051809103906000f0801580156200109c573d6000803e3d6000fd5b509050620010ae8187878787620002e5565b5050505050505050565b620010c2620011b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362001134576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200112b906200257c565b60405180910390fd5b6200113f816200123a565b50565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000620011988362001381565b8015620011ad5750620011ac8383620013d3565b5b905092915050565b620011bf62001496565b73ffffffffffffffffffffffffffffffffffffffff16620011df62000abd565b73ffffffffffffffffffffffffffffffffffffffff161462001238576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200122f90620025ee565b60405180910390fd5b565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff1662001375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200136c9062002686565b60405180910390fd5b6200137f6200149e565b565b6000620013af827f01ffc9a700000000000000000000000000000000000000000000000000000000620013d3565b8015620013cc5750620013ca8263ffffffff60e01b620013d3565b155b9050919050565b6000806301ffc9a760e01b83604051602401620013f19190620026e5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d915060005190508280156200147d575060208210155b80156200148a5750600081115b94505050505092915050565b600033905090565b600060019054906101000a900460ff16620014f0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620014e79062002686565b60405180910390fd5b62001504620014fe62001496565b6200123a565b565b82805482825590600052602060002090810192821562001582579160200282015b82811115620015815782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062001527565b5b5090506200159191906200160e565b5090565b6040518060e00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081526020016000151581526020016060815260200160608152602001606081525090565b612c6d806200270383390190565b5b80821115620016295760008160009055506001016200160f565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200166e8262001641565b9050919050565b620016808162001661565b81146200168c57600080fd5b50565b600081359050620016a08162001675565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620016fb82620016b0565b810181811067ffffffffffffffff821117156200171d576200171c620016c1565b5b80604052505050565b6000620017326200162d565b9050620017408282620016f0565b919050565b600067ffffffffffffffff821115620017635762001762620016c1565b5b6200176e82620016b0565b9050602081019050919050565b82818337600083830152505050565b6000620017a16200179b8462001745565b62001726565b905082815260208101848484011115620017c057620017bf620016ab565b5b620017cd8482856200177b565b509392505050565b600082601f830112620017ed57620017ec620016a6565b5b8135620017ff8482602086016200178a565b91505092915050565b60008115159050919050565b6200181f8162001808565b81146200182b57600080fd5b50565b6000813590506200183f8162001814565b92915050565b600080600080600060a0868803121562001864576200186362001637565b5b600062001874888289016200168f565b955050602086013567ffffffffffffffff8111156200189857620018976200163c565b5b620018a688828901620017d5565b945050604086013567ffffffffffffffff811115620018ca57620018c96200163c565b5b620018d888828901620017d5565b9350506060620018eb888289016200182e565b925050608086013567ffffffffffffffff8111156200190f576200190e6200163c565b5b6200191d88828901620017d5565b9150509295509295909350565b6000819050919050565b6200193f816200192a565b82525050565b60006020820190506200195c600083018462001934565b92915050565b6000602082840312156200197b576200197a62001637565b5b60006200198b848285016200168f565b91505092915050565b6200199f8162001808565b82525050565b6000602082019050620019bc600083018462001994565b92915050565b620019cd8162001661565b82525050565b6000602082019050620019ea6000830184620019c2565b92915050565b620019fb8162001661565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600062001a3b8383620019f0565b60208301905092915050565b6000602082019050919050565b600062001a618262001a01565b62001a6d818562001a0c565b935062001a7a8362001a1d565b8060005b8381101562001ab157815162001a95888262001a2d565b975062001aa28362001a47565b92505060018101905062001a7e565b5085935050505092915050565b62001ac98162001808565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562001b0b57808201518184015260208101905062001aee565b60008484015250505050565b600062001b248262001acf565b62001b30818562001ada565b935062001b4281856020860162001aeb565b62001b4d81620016b0565b840191505092915050565b600060e08301600083015162001b726000860182620019f0565b50602083015162001b876020860182620019f0565b506040830151848203604086015262001ba1828262001a54565b915050606083015162001bb8606086018262001abe565b506080830151848203608086015262001bd2828262001b17565b91505060a083015184820360a086015262001bee828262001b17565b91505060c083015184820360c086015262001c0a828262001b17565b9150508091505092915050565b6000602082019050818103600083015262001c33818462001b58565b905092915050565b600080fd5b600080fd5b60008083601f84011262001c5e5762001c5d620016a6565b5b8235905067ffffffffffffffff81111562001c7e5762001c7d62001c3b565b5b60208301915083602082028301111562001c9d5762001c9c62001c40565b5b9250929050565b60008060008060008060a0878903121562001cc45762001cc362001637565b5b600087013567ffffffffffffffff81111562001ce55762001ce46200163c565b5b62001cf389828a0162001c45565b9650965050602087013567ffffffffffffffff81111562001d195762001d186200163c565b5b62001d2789828a01620017d5565b945050604087013567ffffffffffffffff81111562001d4b5762001d4a6200163c565b5b62001d5989828a01620017d5565b935050606062001d6c89828a016200182e565b925050608087013567ffffffffffffffff81111562001d905762001d8f6200163c565b5b62001d9e89828a01620017d5565b9150509295509295509295565b6000819050919050565b600062001dd662001dd062001dca8462001641565b62001dab565b62001641565b9050919050565b600062001dea8262001db5565b9050919050565b600062001dfe8262001ddd565b9050919050565b62001e108162001df1565b82525050565b600060208201905062001e2d600083018462001e05565b92915050565b600067ffffffffffffffff82111562001e515762001e50620016c1565b5b602082029050602081019050919050565b60008151905062001e738162001675565b92915050565b600062001e9062001e8a8462001e33565b62001726565b9050808382526020820190506020840283018581111562001eb65762001eb562001c40565b5b835b8181101562001ee3578062001ece888262001e62565b84526020840193505060208101905062001eb8565b5050509392505050565b600082601f83011262001f055762001f04620016a6565b5b815162001f1784826020860162001e79565b91505092915050565b60006020828403121562001f395762001f3862001637565b5b600082015167ffffffffffffffff81111562001f5a5762001f596200163c565b5b62001f688482850162001eed565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062001fb957607f821691505b60208210810362001fcf5762001fce62001f71565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620020397fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001ffa565b62002045868362001ffa565b95508019841693508086168417925050509392505050565b60006200207e6200207862002072846200192a565b62001dab565b6200192a565b9050919050565b6000819050919050565b6200209a836200205d565b620020b2620020a98262002085565b84845462002007565b825550505050565b600090565b620020c9620020ba565b620020d68184846200208f565b505050565b5b81811015620020fe57620020f2600082620020bf565b600181019050620020dc565b5050565b601f8211156200214d57620021178162001fd5565b620021228462001fea565b8101602085101562002132578190505b6200214a620021418562001fea565b830182620020db565b50505b505050565b600082821c905092915050565b6000620021726000198460080262002152565b1980831691505092915050565b60006200218d83836200215f565b9150826002028217905092915050565b620021a88262001acf565b67ffffffffffffffff811115620021c457620021c3620016c1565b5b620021d0825462001fa0565b620021dd82828562002102565b600060209050601f83116001811462002215576000841562002200578287015190505b6200220c85826200217f565b8655506200227c565b601f198416620022258662001fd5565b60005b828110156200224f5784890151825560018201915060208501945060208101905062002228565b868310156200226f57848901516200226b601f8916826200215f565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b6000620022a28262001acf565b620022ae818562002284565b9350620022c081856020860162001aeb565b620022cb81620016b0565b840191505092915050565b60006060820190508181036000830152620022f2818662002295565b9050818103602083015262002308818562002295565b9050620023196040830184620019c2565b949350505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006200237f602e8362002284565b91506200238c8262002321565b604082019050919050565b60006020820190508181036000830152620023b28162002370565b9050919050565b6000819050919050565b600060ff82169050919050565b6000620023f1620023eb620023e584620023b9565b62001dab565b620023c3565b9050919050565b6200240381620023d0565b82525050565b6000602082019050620024206000830184620023f8565b92915050565b600082825260208201905092915050565b6000819050919050565b60006200245260208401846200168f565b905092915050565b6000602082019050919050565b600062002475838562002426565b9350620024828262002437565b8060005b85811015620024c3576200249b828462002441565b620024a7888262001a2d565b9750620024b4836200245a565b92505060018101905062002486565b5085925050509392505050565b60006040820190508181036000830152620024ed81858762002467565b9050620024fe6020830184620019c2565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006200256460268362002284565b9150620025718262002506565b604082019050919050565b60006020820190508181036000830152620025978162002555565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620025d660208362002284565b9150620025e3826200259e565b602082019050919050565b600060208201905081810360008301526200260981620025c7565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006200266e602b8362002284565b91506200267b8262002610565b604082019050919050565b60006020820190508181036000830152620026a1816200265f565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620026df81620026a8565b82525050565b6000602082019050620026fc6000830184620026d4565b9291505056fe60806040523480156200001157600080fd5b5060405162002c6d38038062002c6d8339818101604052810190620000379190620005ae565b818181600190805190602001906200005192919062000312565b50806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bfa665856040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000124919062000614565b600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663edec79526040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f6919062000614565b600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b7dac9766040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c8919062000614565b600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505062000646565b8280548282559060005260206000209081019282156200038e579160200282015b828111156200038d5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000333565b5b5090506200039d9190620003a1565b5090565b5b80821115620003bc576000816000905550600101620003a2565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042482620003d9565b810181811067ffffffffffffffff82111715620004465762000445620003ea565b5b80604052505050565b60006200045b620003c0565b905062000469828262000419565b919050565b600067ffffffffffffffff8211156200048c576200048b620003ea565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004cf82620004a2565b9050919050565b620004e181620004c2565b8114620004ed57600080fd5b50565b6000815190506200050181620004d6565b92915050565b60006200051e62000518846200046e565b6200044f565b905080838252602082019050602084028301858111156200054457620005436200049d565b5b835b818110156200057157806200055c8882620004f0565b84526020840193505060208101905062000546565b5050509392505050565b600082601f830112620005935762000592620003d4565b5b8151620005a584826020860162000507565b91505092915050565b60008060408385031215620005c857620005c7620003ca565b5b600083015167ffffffffffffffff811115620005e957620005e8620003cf565b5b620005f7858286016200057b565b92505060206200060a85828601620004f0565b9150509250929050565b6000602082840312156200062d576200062c620003ca565b5b60006200063d84828501620004f0565b91505092915050565b61261780620006566000396000f3fe6080604052600436106100e85760003560e01c8063b2494df31161008a578063ecdbb4fd11610059578063ecdbb4fd146102d3578063ed6d73f9146102ef578063f3fef3a31461031a578063f887ea4014610343576100e8565b8063b2494df314610229578063b666493414610254578063b75c7dc61461027f578063b95459e4146102a8576100e8565b80634ada8076116100c65780634ada80761461016f578063523ba7ca1461019857806381b2248a146101c15780638388e226146101fe576100e8565b806301ffc9a7146100ed578063074321961461012a5780633cc30e2a14610146575b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190610ed5565b61036e565b6040516101219190610f1d565b60405180910390f35b610144600480360381019061013f9190611294565b6104a8565b005b34801561015257600080fd5b5061016d60048036038101906101689190611591565b6105e8565b005b34801561017b57600080fd5b5061019660048036038101906101919190611638565b610722565b005b3480156101a457600080fd5b506101bf60048036038101906101ba9190611681565b6107bb565b005b3480156101cd57600080fd5b506101e860048036038101906101e3919061172f565b6108f1565b6040516101f5919061179d565b60405180910390f35b34801561020a57600080fd5b50610213610930565b604051610220919061179d565b60405180910390f35b34801561023557600080fd5b5061023e610938565b60405161024b9190611876565b60405180910390f35b34801561026057600080fd5b506102696109c6565b60405161027691906118f7565b60405180910390f35b34801561028b57600080fd5b506102a660048036038101906102a19190611912565b6109ec565b005b3480156102b457600080fd5b506102bd610a85565b6040516102ca9190611960565b60405180910390f35b6102ed60048036038101906102e8919061197b565b610aab565b005b3480156102fb57600080fd5b50610304610bef565b6040516103119190611a27565b60405180910390f35b34801561032657600080fd5b50610341600480360381019061033c9190611a80565b610c15565b005b34801561034f57600080fd5b50610358610c19565b6040516103659190611ae1565b60405180910390f35b60007f204cf909000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061043957507f31c1afd5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104a157507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e253ca60018484346040518563ffffffff1660e01b815260040161050a9493929190611dc0565b600060405180830381600087803b15801561052457600080fd5b505af1158015610538573d6000803e3d6000fd5b5050505061054e82610548610930565b34610c3d565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166362fa3d4583610595610930565b6040518363ffffffff1660e01b81526004016105b2929190611e1a565b600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2baec4a600184846040518463ffffffff1660e01b8152600401610648939291906120be565b600060405180830381600087803b15801561066257600080fd5b505af1158015610676573d6000803e3d6000fd5b50505050610685838383610c42565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636ec4d4cb84846106cd610930565b6040518463ffffffff1660e01b81526004016106eb939291906121b9565b600060405180830381600087803b15801561070557600080fd5b505af1158015610719573d6000803e3d6000fd5b50505050505050565b61072b81610c47565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ada8076826040518263ffffffff1660e01b815260040161078691906121fe565b600060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2baec4a600184846040518463ffffffff1660e01b815260040161081b939291906120be565b600060405180830381600087803b15801561083557600080fd5b505af1158015610849573d6000803e3d6000fd5b505050506108578282610d53565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8e2812d8361089e610930565b6040518363ffffffff1660e01b81526004016108bb929190612220565b600060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050505050565b6001818154811061090157600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b606060018054806020026020016040519081016040528092919081815260200182805480156109bc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610972575b5050505050905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109f581610d57565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b75c7dc6826040518263ffffffff1660e01b8152600401610a50919061225f565b600060405180830381600087803b158015610a6a57600080fd5b505af1158015610a7e573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e253ca60018484346040518563ffffffff1660e01b8152600401610b0d9493929190611dc0565b600060405180830381600087803b158015610b2757600080fd5b505af1158015610b3b573d6000803e3d6000fd5b50505050610b528383610b4c610930565b34610e63565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638ffa736b8484610b9a610930565b6040518463ffffffff1660e01b8152600401610bb89392919061227a565b600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b50505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b505050565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c0fbc748306040518263ffffffff1660e01b8152600401610ca2919061179d565b600060405180830381865afa158015610cbf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ce89190612598565b6020015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d50576040517f71f63e3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c0fbc748306040518263ffffffff1660e01b8152600401610db2919061179d565b600060405180830381865afa158015610dcf573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610df89190612598565b6020015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e60576040517f71f63e3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b50505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610eb281610e7d565b8114610ebd57600080fd5b50565b600081359050610ecf81610ea9565b92915050565b600060208284031215610eeb57610eea610e73565b5b6000610ef984828501610ec0565b91505092915050565b60008115159050919050565b610f1781610f02565b82525050565b6000602082019050610f326000830184610f0e565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610f8682610f3d565b810181811067ffffffffffffffff82111715610fa557610fa4610f4e565b5b80604052505050565b6000610fb8610e69565b9050610fc48282610f7d565b919050565b600080fd5b6000819050919050565b610fe181610fce565b8114610fec57600080fd5b50565b600081359050610ffe81610fd8565b92915050565b600067ffffffffffffffff82169050919050565b61102181611004565b811461102c57600080fd5b50565b60008135905061103e81611018565b92915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561106957611068610f4e565b5b61107282610f3d565b9050602081019050919050565b82818337600083830152505050565b60006110a161109c8461104e565b610fae565b9050828152602081018484840111156110bd576110bc611049565b5b6110c884828561107f565b509392505050565b600082601f8301126110e5576110e4611044565b5b81356110f584826020860161108e565b91505092915050565b60006080828403121561111457611113610f38565b5b61111e6080610fae565b9050600061112e84828501610fef565b60008301525060206111428482850161102f565b602083015250604082013567ffffffffffffffff81111561116657611165610fc9565b5b611172848285016110d0565b604083015250606082013567ffffffffffffffff81111561119657611195610fc9565b5b6111a2848285016110d0565b60608301525092915050565b600067ffffffffffffffff8211156111c9576111c8610f4e565b5b602082029050602081019050919050565b600080fd5b60006111f26111ed846111ae565b610fae565b90508083825260208201905060208402830185811115611215576112146111da565b5b835b8181101561125c57803567ffffffffffffffff81111561123a57611239611044565b5b80860161124789826110d0565b85526020850194505050602081019050611217565b5050509392505050565b600082601f83011261127b5761127a611044565b5b813561128b8482602086016111df565b91505092915050565b600080604083850312156112ab576112aa610e73565b5b600083013567ffffffffffffffff8111156112c9576112c8610e78565b5b6112d5858286016110fe565b925050602083013567ffffffffffffffff8111156112f6576112f5610e78565b5b61130285828601611266565b9150509250929050565b600067ffffffffffffffff82111561132757611326610f4e565b5b602082029050602081019050919050565b600061134b6113468461130c565b610fae565b9050808382526020820190506020840283018581111561136e5761136d6111da565b5b835b8181101561139757806113838882610fef565b845260208401935050602081019050611370565b5050509392505050565b600082601f8301126113b6576113b5611044565b5b81356113c6848260208601611338565b91505092915050565b600067ffffffffffffffff8211156113ea576113e9610f4e565b5b602082029050602081019050919050565b600061140e611409846113cf565b610fae565b90508083825260208201905060208402830185811115611431576114306111da565b5b835b8181101561147857803567ffffffffffffffff81111561145657611455611044565b5b80860161146389826110fe565b85526020850194505050602081019050611433565b5050509392505050565b600082601f83011261149757611496611044565b5b81356114a78482602086016113fb565b91505092915050565b600067ffffffffffffffff8211156114cb576114ca610f4e565b5b602082029050602081019050919050565b60006114ef6114ea846114b0565b610fae565b90508083825260208201905060208402830185811115611512576115116111da565b5b835b8181101561155957803567ffffffffffffffff81111561153757611536611044565b5b8086016115448982611266565b85526020850194505050602081019050611514565b5050509392505050565b600082601f83011261157857611577611044565b5b81356115888482602086016114dc565b91505092915050565b6000806000606084860312156115aa576115a9610e73565b5b600084013567ffffffffffffffff8111156115c8576115c7610e78565b5b6115d4868287016113a1565b935050602084013567ffffffffffffffff8111156115f5576115f4610e78565b5b61160186828701611482565b925050604084013567ffffffffffffffff81111561162257611621610e78565b5b61162e86828701611563565b9150509250925092565b60006020828403121561164e5761164d610e73565b5b600082013567ffffffffffffffff81111561166c5761166b610e78565b5b611678848285016113a1565b91505092915050565b6000806040838503121561169857611697610e73565b5b600083013567ffffffffffffffff8111156116b6576116b5610e78565b5b6116c285828601611482565b925050602083013567ffffffffffffffff8111156116e3576116e2610e78565b5b6116ef85828601611563565b9150509250929050565b6000819050919050565b61170c816116f9565b811461171757600080fd5b50565b60008135905061172981611703565b92915050565b60006020828403121561174557611744610e73565b5b60006117538482850161171a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006117878261175c565b9050919050565b6117978161177c565b82525050565b60006020820190506117b2600083018461178e565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6117ed8161177c565b82525050565b60006117ff83836117e4565b60208301905092915050565b6000602082019050919050565b6000611823826117b8565b61182d81856117c3565b9350611838836117d4565b8060005b8381101561186957815161185088826117f3565b975061185b8361180b565b92505060018101905061183c565b5085935050505092915050565b600060208201905081810360008301526118908184611818565b905092915050565b6000819050919050565b60006118bd6118b86118b38461175c565b611898565b61175c565b9050919050565b60006118cf826118a2565b9050919050565b60006118e1826118c4565b9050919050565b6118f1816118d6565b82525050565b600060208201905061190c60008301846118e8565b92915050565b60006020828403121561192857611927610e73565b5b600061193684828501610fef565b91505092915050565b600061194a826118c4565b9050919050565b61195a8161193f565b82525050565b60006020820190506119756000830184611951565b92915050565b60008060006060848603121561199457611993610e73565b5b60006119a286828701610fef565b935050602084013567ffffffffffffffff8111156119c3576119c2610e78565b5b6119cf868287016110fe565b925050604084013567ffffffffffffffff8111156119f0576119ef610e78565b5b6119fc86828701611266565b9150509250925092565b6000611a11826118c4565b9050919050565b611a2181611a06565b82525050565b6000602082019050611a3c6000830184611a18565b92915050565b6000611a4d8261175c565b9050919050565b611a5d81611a42565b8114611a6857600080fd5b50565b600081359050611a7a81611a54565b92915050565b60008060408385031215611a9757611a96610e73565b5b6000611aa585828601611a6b565b9250506020611ab68582860161171a565b9150509250929050565b6000611acb826118c4565b9050919050565b611adb81611ac0565b82525050565b6000602082019050611af66000830184611ad2565b92915050565b600081549050919050565b60008190508160005260206000209050919050565b60008160001c9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b5c611b5783611b1c565b611b29565b9050919050565b6000611b6f8254611b49565b9050919050565b6000600182019050919050565b6000611b8e82611afc565b611b9881856117c3565b9350611ba383611b07565b8060005b83811015611bdb57611bb882611b63565b611bc288826117f3565b9750611bcd83611b76565b925050600181019050611ba7565b5085935050505092915050565b611bf181610fce565b82525050565b611c0081611004565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611c40578082015181840152602081019050611c25565b60008484015250505050565b6000611c5782611c06565b611c618185611c11565b9350611c71818560208601611c22565b611c7a81610f3d565b840191505092915050565b6000608083016000830151611c9d6000860182611be8565b506020830151611cb06020860182611bf7565b5060408301518482036040860152611cc88282611c4c565b91505060608301518482036060860152611ce28282611c4c565b9150508091505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000611d278383611c4c565b905092915050565b6000602082019050919050565b6000611d4782611cef565b611d518185611cfa565b935083602082028501611d6385611d0b565b8060005b85811015611d9f5784840389528151611d808582611d1b565b9450611d8b83611d2f565b925060208a01995050600181019050611d67565b50829750879550505050505092915050565b611dba816116f9565b82525050565b60006080820190508181036000830152611dda8187611b83565b90508181036020830152611dee8186611c85565b90508181036040830152611e028185611d3c565b9050611e116060830184611db1565b95945050505050565b60006040820190508181036000830152611e348185611c85565b9050611e43602083018461178e565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000608083016000830151611e8e6000860182611be8565b506020830151611ea16020860182611bf7565b5060408301518482036040860152611eb98282611c4c565b91505060608301518482036060860152611ed38282611c4c565b9150508091505092915050565b6000611eec8383611e76565b905092915050565b6000602082019050919050565b6000611f0c82611e4a565b611f168185611e55565b935083602082028501611f2885611e66565b8060005b85811015611f645784840389528151611f458582611ee0565b9450611f5083611ef4565b925060208a01995050600181019050611f2c565b50829750879550505050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000611fbe82611cef565b611fc88185611fa2565b935083602082028501611fda85611d0b565b8060005b858110156120165784840389528151611ff78582611d1b565b945061200283611d2f565b925060208a01995050600181019050611fde565b50829750879550505050505092915050565b60006120348383611fb3565b905092915050565b6000602082019050919050565b600061205482611f76565b61205e8185611f81565b93508360208202850161207085611f92565b8060005b858110156120ac578484038952815161208d8582612028565b94506120988361203c565b925060208a01995050600181019050612074565b50829750879550505050505092915050565b600060608201905081810360008301526120d88186611b83565b905081810360208301526120ec8185611f01565b905081810360408301526121008184612049565b9050949350505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006121428383611be8565b60208301905092915050565b6000602082019050919050565b60006121668261210a565b6121708185612115565b935061217b83612126565b8060005b838110156121ac5781516121938882612136565b975061219e8361214e565b92505060018101905061217f565b5085935050505092915050565b600060608201905081810360008301526121d3818661215b565b905081810360208301526121e78185611f01565b90506121f6604083018461178e565b949350505050565b60006020820190508181036000830152612218818461215b565b905092915050565b6000604082019050818103600083015261223a8185611f01565b9050612249602083018461178e565b9392505050565b61225981610fce565b82525050565b60006020820190506122746000830184612250565b92915050565b600060608201905061228f6000830186612250565b81810360208301526122a18185611c85565b90506122b0604083018461178e565b949350505050565b6122c18161177c565b81146122cc57600080fd5b50565b6000815190506122de816122b8565b92915050565b600067ffffffffffffffff8211156122ff576122fe610f4e565b5b602082029050602081019050919050565b600061232361231e846122e4565b610fae565b90508083825260208201905060208402830185811115612346576123456111da565b5b835b8181101561236f578061235b88826122cf565b845260208401935050602081019050612348565b5050509392505050565b600082601f83011261238e5761238d611044565b5b815161239e848260208601612310565b91505092915050565b6123b081610f02565b81146123bb57600080fd5b50565b6000815190506123cd816123a7565b92915050565b600067ffffffffffffffff8211156123ee576123ed610f4e565b5b6123f782610f3d565b9050602081019050919050565b6000612417612412846123d3565b610fae565b90508281526020810184848401111561243357612432611049565b5b61243e848285611c22565b509392505050565b600082601f83011261245b5761245a611044565b5b815161246b848260208601612404565b91505092915050565b600060e0828403121561248a57612489610f38565b5b61249460e0610fae565b905060006124a4848285016122cf565b60008301525060206124b8848285016122cf565b602083015250604082015167ffffffffffffffff8111156124dc576124db610fc9565b5b6124e884828501612379565b60408301525060606124fc848285016123be565b606083015250608082015167ffffffffffffffff8111156125205761251f610fc9565b5b61252c84828501612446565b60808301525060a082015167ffffffffffffffff8111156125505761254f610fc9565b5b61255c84828501612446565b60a08301525060c082015167ffffffffffffffff8111156125805761257f610fc9565b5b61258c84828501612446565b60c08301525092915050565b6000602082840312156125ae576125ad610e73565b5b600082015167ffffffffffffffff8111156125cc576125cb610e78565b5b6125d884828501612474565b9150509291505056fea264697066735822122062e0c1c608eb8678eee8aff4f1c13798eb5d7072de049e69b56c4718f96d542664736f6c63430008150033a26469706673582212203297df6b59eda07dced040083392057a3f4652dc292146436c22b2b9ec0c7f8e64736f6c63430008150033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.