Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- BridgeERC20
- Optimization enabled
- false
- Compiler version
- v0.8.21+commit.d9974bed
- EVM Version
- byzantium
- Verified at
- 2023-09-18T03:09:50.183926Z
Contract source code
// File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967Upgradeable { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); } // File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // 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); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @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; } } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ */ abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { AddressUpgradeable.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), 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; } // File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeTo(address newImplementation) public virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @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; } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from the caller's account to `to`. * 'to' should be a reserved address and this function will perform a bridge transfer. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function bridgeTransfer(address to, uint256 amount, string memory memo) external payable returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { _checkBlockDirectTransferToReservedAddr(to); address owner = _msgSender(); _transfer(owner, to, amount, ""); return true; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` must be reserved address. * - the caller must have a balance of at least `amount`. */ function bridgeTransfer(address to, uint256 amount, string memory memo) public virtual override payable returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount, memo); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { _checkBlockDirectTransferToReservedAddr(to); address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount, ""); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount, string memory memo) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount, memo); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount, memo); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount, ""); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount, ""); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount, ""); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount, ""); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount, string memory memo) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount, string memory memo) internal virtual {} /** * @dev Hook that is called first in transfer() and transferFrom() * * The function should revert if bridge transfers from those functions are not allowed, */ function _checkBlockDirectTransferToReservedAddr(address to) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[45] private __gap; } // File: contracts/BridgeERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.18; contract BridgeERC20 is Initializable, ERC20Upgradeable, UUPSUpgradeable { string eos_token_contract; string public linkedEOSAccountName; address public linkedEOSAddress; address public evmAddress; uint8 public precision; uint256 public egressFee; function initialize(uint8 _precision, uint256 _egressFee, string memory _name, string memory _symbol, string memory _eos_token_contract ) initializer public { __ERC20_init(_name, _symbol); __UUPSUpgradeable_init(); evmAddress = 0xbBBBbBbbbBBBBbbbbbbBBbBB5530EA015b900000; linkedEOSAddress = 0xbbBbbbBbbBBbBBbBBBbbbBbB5530eA015740a800; linkedEOSAccountName = "eosio.erc2o"; precision = _precision; egressFee = _egressFee; eos_token_contract = _eos_token_contract; } function setFee(uint256 _egressFee) public { require(msg.sender == linkedEOSAddress, "Bridge: only linked EOS address can set fee"); egressFee = _egressFee; } function eosTokenContract() public view returns (string memory) { return eos_token_contract; } function _authorizeUpgrade(address) internal virtual override { if (msg.sender != linkedEOSAddress) { revert(); } } function _isReservedAddress(address addr) internal pure returns (bool) { return ((uint160(addr) & uint160(0xFffFfFffffFfFFffffFFFffF0000000000000000)) == uint160(0xBBbbBbBbbBbbBbbbBbbbBBbb0000000000000000)); } function _beforeTokenTransfer(address from, address to, uint256 amount, string memory) internal virtual override { // ignore mint and burn if (from == address(0) || to == address(0)) return; if (from == linkedEOSAddress) { require(msg.sender == linkedEOSAddress, "Bridge: only linked EOS address can mint"); _mint(from, amount); } } function _afterTokenTransfer(address from, address to, uint256 amount, string memory memo) internal virtual override { // ignore mint and burn if (from == address(0) || to == address(0)) return; if (_isReservedAddress(to)) { require(msg.value == egressFee, "incorrect egress bridge fee"); // Call bridgeMessage of EVM Runtime // sha("bridgeTransferV0(address,uint256,string)") = 0x653332e5 bytes memory receiver_msg = abi.encodeWithSignature("bridgeTransferV0(address,uint256,string)", to, amount, memo); (bool success, ) = evmAddress.call{value: msg.value}(abi.encodeWithSignature("bridgeMsgV0(string,bool,bytes)", linkedEOSAccountName, true, receiver_msg )); if(!success) { revert(); } _burn(to, amount); } } function _checkBlockDirectTransferToReservedAddr(address to) internal virtual override { if (_isReservedAddress(to)) { revert(); } } function decimals() public view virtual override returns (uint8) { return precision; } }
Contract ABI
[{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"bridgeTransfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"egressFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"eosTokenContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"evmAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"uint8","name":"_precision","internalType":"uint8"},{"type":"uint256","name":"_egressFee","internalType":"uint256"},{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"_eos_token_contract","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"linkedEOSAccountName","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"linkedEOSAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"precision","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"proxiableUUID","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFee","inputs":[{"type":"uint256","name":"_egressFee","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"upgradeTo","inputs":[{"type":"address","name":"newImplementation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"upgradeToAndCall","inputs":[{"type":"address","name":"newImplementation","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"event","name":"AdminChanged","inputs":[{"type":"address","name":"previousAdmin","indexed":false},{"type":"address","name":"newAdmin","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"BeaconUpgraded","inputs":[{"type":"address","name":"beacon","indexed":true}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"type":"address","name":"implementation","indexed":true}],"anonymous":false}]
Contract Creation Code
0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561004357600080fd5b50608051613d4561007b600039600081816106ce0152818161075c0152818161088d0152818161091b01526109cb0152613d456000f3fe60806040526004361061015d576000357c0100000000000000000000000000000000000000000000000000000000900480636a0366bf116100d3578063a457c2d71161008c578063a457c2d714610477578063a9059cbb146104b4578063d3b5dc3b146104f1578063d66d4ac31461051c578063da5df40a14610545578063dd62ed3e146105705761015d565b80636a0366bf1461035e578063703ad5e91461038957806370a08231146103b457806373761828146103f15780639311d6121461042157806395d89b411461044c5761015d565b80633659cfe6116101255780633659cfe61461025d57806339509351146102865780634f1ef286146102c357806352d1902d146102df57806368fd118c1461030a57806369fe0e2d146103355761015d565b806306fdde0314610162578063095ea7b31461018d57806318160ddd146101ca57806323b872dd146101f5578063313ce56714610232575b600080fd5b34801561016e57600080fd5b506101776105ad565b60405161018491906124c7565b60405180910390f35b34801561019957600080fd5b506101b460048036038101906101af9190612591565b61063f565b6040516101c191906125ec565b60405180910390f35b3480156101d657600080fd5b506101df610662565b6040516101ec9190612616565b60405180910390f35b34801561020157600080fd5b5061021c60048036038101906102179190612631565b61066c565b60405161022991906125ec565b60405180910390f35b34801561023e57600080fd5b506102476106b5565b60405161025491906126a0565b60405180910390f35b34801561026957600080fd5b50610284600480360381019061027f91906126bb565b6106cc565b005b34801561029257600080fd5b506102ad60048036038101906102a89190612591565b610854565b6040516102ba91906125ec565b60405180910390f35b6102dd60048036038101906102d8919061281d565b61088b565b005b3480156102eb57600080fd5b506102f46109c7565b6040516103019190612892565b60405180910390f35b34801561031657600080fd5b5061031f610a80565b60405161032c91906128bc565b60405180910390f35b34801561034157600080fd5b5061035c600480360381019061035791906128d7565b610aa6565b005b34801561036a57600080fd5b50610373610b40565b6040516103809190612616565b60405180910390f35b34801561039557600080fd5b5061039e610b46565b6040516103ab91906124c7565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d691906126bb565b610bd8565b6040516103e89190612616565b60405180910390f35b61040b600480360381019061040691906129a5565b610c21565b60405161041891906125ec565b60405180910390f35b34801561042d57600080fd5b50610436610c46565b60405161044391906128bc565b60405180910390f35b34801561045857600080fd5b50610461610c6c565b60405161046e91906124c7565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190612591565b610cfe565b6040516104ab91906125ec565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190612591565b610d75565b6040516104e891906125ec565b60405180910390f35b3480156104fd57600080fd5b50610506610db2565b60405161051391906126a0565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190612a40565b610dc5565b005b34801561055157600080fd5b5061055a611033565b60405161056791906124c7565b60405180910390f35b34801561057c57600080fd5b5061059760048036038101906105929190612b0f565b6110c1565b6040516105a49190612616565b60405180910390f35b6060603680546105bc90612b7e565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890612b7e565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b5050505050905090565b60008061064a611148565b9050610657818585611150565b600191505092915050565b6000603554905090565b600061067783611319565b6000610681611148565b905061068e85828561132f565b6106a9858585604051806020016040528060008152506113bb565b60019150509392505050565b600060cc60149054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361075a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075190612c21565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610799611637565b73ffffffffffffffffffffffffffffffffffffffff16146107ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e690612cb3565b60405180910390fd5b6107f88161168e565b61085181600067ffffffffffffffff811115610817576108166126f2565b5b6040519080825280601f01601f1916602001820160405280156108495781602001600182028036833780820191505090505b5060006116eb565b50565b60008061085f611148565b905061088081858561087185896110c1565b61087b9190612d02565b611150565b600191505092915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603610919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091090612c21565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610958611637565b73ffffffffffffffffffffffffffffffffffffffff16146109ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a590612cb3565b60405180910390fd5b6109b78261168e565b6109c3828260016116eb565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e90612da8565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2d90612e3a565b60405180910390fd5b8060cd8190555050565b60cd5481565b606060c98054610b5590612b7e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8190612b7e565b8015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050905090565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600080610c2c611148565b9050610c3a818686866113bb565b60019150509392505050565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060378054610c7b90612b7e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790612b7e565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b5050505050905090565b600080610d09611148565b90506000610d1782866110c1565b905083811015610d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5390612ecc565b60405180910390fd5b610d698286868403611150565b60019250505092915050565b6000610d8083611319565b6000610d8a611148565b9050610da7818585604051806020016040528060008152506113bb565b600191505092915050565b60cc60149054906101000a900460ff1681565b60008060019054906101000a900460ff16159050808015610df65750600160008054906101000a900460ff1660ff16105b80610e235750610e0530611875565b158015610e225750600160008054906101000a900460ff1660ff16145b5b610e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5990612f5e565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610e9f576001600060016101000a81548160ff0219169083151502179055505b610ea98484611898565b610eb16118f5565b73bbbbbbbbbbbbbbbbbbbbbbbb5530ea015b90000060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073bbbbbbbbbbbbbbbbbbbbbbbb5530ea015740a80060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060400160405280600b81526020017f656f73696f2e657263326f00000000000000000000000000000000000000000081525060ca9081610f9f9190613130565b508560cc60146101000a81548160ff021916908360ff1602179055508460cd819055508160c99081610fd19190613130565b50801561102b5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611022919061323d565b60405180910390a15b505050505050565b60ca805461104090612b7e565b80601f016020809104026020016040519081016040528092919081815260200182805461106c90612b7e565b80156110b95780601f1061108e576101008083540402835291602001916110b9565b820191906000526020600020905b81548152906001019060200180831161109c57829003601f168201915b505050505081565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b6906132ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361122e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112259061335c565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161130c9190612616565b60405180910390a3505050565b61132281611946565b1561132c57600080fd5b50565b600061133b84846110c1565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146113b557818110156113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e906133c8565b60405180910390fd5b6113b48484848403611150565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114219061345a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611499576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611490906134ec565b60405180910390fd5b6114a5848484846119a8565b6000603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561152c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115239061357e565b60405180910390fd5b828103603360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161161c9190612616565b60405180910390a361163085858585611b0a565b5050505050565b60006116657f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102611d9e565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116e857600080fd5b50565b6117177f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143600102611da8565b60000160009054906101000a900460ff161561173b5761173683611db2565b611870565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa9250505080156117bf57506040513d601f19601f820116820180604052508101906117bc91906135ca565b60015b6117fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f590613669565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6001028114611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a906136fb565b60405180910390fd5b5061186f838383611e6b565b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061378d565b60405180910390fd5b6118f18282611e97565b5050565b600060019054906101000a900460ff16611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193b9061378d565b60405180910390fd5b565b600073bbbbbbbbbbbbbbbbbbbbbbbb000000000000000073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffff0000000000000000831673ffffffffffffffffffffffffffffffffffffffff16149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a0f5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b611b045760cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b035760cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aef9061381f565b60405180910390fd5b611b028483611f0a565b5b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b715750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b611d9857611b7e83611946565b15611d975760cd543414611bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbe9061388b565b60405180910390fd5b6000838383604051602401611bde939291906138ab565b6040516020818303038152906040527f653332e5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460ca600185604051602401611cb0939291906139c2565b6040516020818303038152906040527ff781185b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611d3a9190613a43565b60006040518083038185875af1925050503d8060008114611d77576040519150601f19603f3d011682016040523d82523d6000602084013e611d7c565b606091505b5050905080611d8a57600080fd5b611d948585612081565b50505b5b50505050565b6000819050919050565b6000819050919050565b611dbb81611875565b611dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df190613acc565b60405180910390fd5b80611e277f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102611d9e565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e7483612270565b600082511180611e815750805b15611e9257611e9083836122bf565b505b505050565b600060019054906101000a900460ff16611ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edd9061378d565b60405180910390fd5b8160369081611ef59190613130565b508060379081611f059190613130565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090613b38565b60405180910390fd5b611f9560008383604051806020016040528060008152506119a8565b8060356000828254611fa79190612d02565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516120599190612616565b60405180910390a361207d6000838360405180602001604052806000815250611b0a565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e790613bca565b60405180910390fd5b61210c82600083604051806020016040528060008152506119a8565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a90613c5c565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122479190612616565b60405180910390a361226b8360008460405180602001604052806000815250611b0a565b505050565b61227981611db2565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60606122e48383604051806060016040528060278152602001613ce9602791396122ec565b905092915050565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516123169190613a43565b600060405180830381855af49150503d8060008114612351576040519150601f19603f3d011682016040523d82523d6000602084013e612356565b606091505b509150915061236786838387612372565b925050509392505050565b606083156123d45760008351036123cc5761238c85611875565b6123cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c290613cc8565b60405180910390fd5b5b8290506123df565b6123de83836123e7565b5b949350505050565b6000825111156123fa5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e91906124c7565b60405180910390fd5b600081519050919050565b600082825260208201905092915050565b60005b83811015612471578082015181840152602081019050612456565b60008484015250505050565b6000601f19601f8301169050919050565b600061249982612437565b6124a38185612442565b93506124b3818560208601612453565b6124bc8161247d565b840191505092915050565b600060208201905081810360008301526124e1818461248e565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612528826124fd565b9050919050565b6125388161251d565b811461254357600080fd5b50565b6000813590506125558161252f565b92915050565b6000819050919050565b61256e8161255b565b811461257957600080fd5b50565b60008135905061258b81612565565b92915050565b600080604083850312156125a8576125a76124f3565b5b60006125b685828601612546565b92505060206125c78582860161257c565b9150509250929050565b60008115159050919050565b6125e6816125d1565b82525050565b600060208201905061260160008301846125dd565b92915050565b6126108161255b565b82525050565b600060208201905061262b6000830184612607565b92915050565b60008060006060848603121561264a576126496124f3565b5b600061265886828701612546565b935050602061266986828701612546565b925050604061267a8682870161257c565b9150509250925092565b600060ff82169050919050565b61269a81612684565b82525050565b60006020820190506126b56000830184612691565b92915050565b6000602082840312156126d1576126d06124f3565b5b60006126df84828501612546565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61272a8261247d565b810181811067ffffffffffffffff82111715612749576127486126f2565b5b80604052505050565b600061275c6124e9565b90506127688282612721565b919050565b600067ffffffffffffffff821115612788576127876126f2565b5b6127918261247d565b9050602081019050919050565b82818337600083830152505050565b60006127c06127bb8461276d565b612752565b9050828152602081018484840111156127dc576127db6126ed565b5b6127e784828561279e565b509392505050565b600082601f830112612804576128036126e8565b5b81356128148482602086016127ad565b91505092915050565b60008060408385031215612834576128336124f3565b5b600061284285828601612546565b925050602083013567ffffffffffffffff811115612863576128626124f8565b5b61286f858286016127ef565b9150509250929050565b6000819050919050565b61288c81612879565b82525050565b60006020820190506128a76000830184612883565b92915050565b6128b68161251d565b82525050565b60006020820190506128d160008301846128ad565b92915050565b6000602082840312156128ed576128ec6124f3565b5b60006128fb8482850161257c565b91505092915050565b600067ffffffffffffffff82111561291f5761291e6126f2565b5b6129288261247d565b9050602081019050919050565b600061294861294384612904565b612752565b905082815260208101848484011115612964576129636126ed565b5b61296f84828561279e565b509392505050565b600082601f83011261298c5761298b6126e8565b5b813561299c848260208601612935565b91505092915050565b6000806000606084860312156129be576129bd6124f3565b5b60006129cc86828701612546565b93505060206129dd8682870161257c565b925050604084013567ffffffffffffffff8111156129fe576129fd6124f8565b5b612a0a86828701612977565b9150509250925092565b612a1d81612684565b8114612a2857600080fd5b50565b600081359050612a3a81612a14565b92915050565b600080600080600060a08688031215612a5c57612a5b6124f3565b5b6000612a6a88828901612a2b565b9550506020612a7b8882890161257c565b945050604086013567ffffffffffffffff811115612a9c57612a9b6124f8565b5b612aa888828901612977565b935050606086013567ffffffffffffffff811115612ac957612ac86124f8565b5b612ad588828901612977565b925050608086013567ffffffffffffffff811115612af657612af56124f8565b5b612b0288828901612977565b9150509295509295909350565b60008060408385031215612b2657612b256124f3565b5b6000612b3485828601612546565b9250506020612b4585828601612546565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b9657607f821691505b602082108103612ba957612ba8612b4f565b5b50919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000612c0b602c83612442565b9150612c1682612baf565b604082019050919050565b60006020820190508181036000830152612c3a81612bfe565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000612c9d602c83612442565b9150612ca882612c41565b604082019050919050565b60006020820190508181036000830152612ccc81612c90565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d0d8261255b565b9150612d188361255b565b9250828201905080821115612d3057612d2f612cd3565b5b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000612d92603883612442565b9150612d9d82612d36565b604082019050919050565b60006020820190508181036000830152612dc181612d85565b9050919050565b7f4272696467653a206f6e6c79206c696e6b656420454f5320616464726573732060008201527f63616e2073657420666565000000000000000000000000000000000000000000602082015250565b6000612e24602b83612442565b9150612e2f82612dc8565b604082019050919050565b60006020820190508181036000830152612e5381612e17565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612eb6602583612442565b9150612ec182612e5a565b604082019050919050565b60006020820190508181036000830152612ee581612ea9565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000612f48602e83612442565b9150612f5382612eec565b604082019050919050565b60006020820190508181036000830152612f7781612f3b565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b60008160020a8302905092915050565b600060088302612fe37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fa3565b612fed8683612fa3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061302a6130256130208461255b565b613005565b61255b565b9050919050565b6000819050919050565b6130448361300f565b61305861305082613031565b848454612fb3565b825550505050565b600090565b61306d613060565b61307881848461303b565b505050565b5b8181101561309c57613091600082613065565b60018101905061307e565b5050565b601f8211156130e1576130b281612f7e565b6130bb84612f93565b810160208510156130ca578190505b6130de6130d685612f93565b83018261307d565b50505b505050565b60008160020a8304905092915050565b6000613107600019846008026130e6565b1980831691505092915050565b600061312083836130f6565b9150826002028217905092915050565b61313982612437565b67ffffffffffffffff811115613152576131516126f2565b5b61315c8254612b7e565b6131678282856130a0565b600060209050601f83116001811461319a5760008415613188578287015190505b6131928582613114565b8655506131fa565b601f1984166131a886612f7e565b60005b828110156131d0578489015182556001820191506020850194506020810190506131ab565b868310156131ed57848901516131e9601f8916826130f6565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b600061322761322261321d84613202565b613005565b612684565b9050919050565b6132378161320c565b82525050565b6000602082019050613252600083018461322e565b92915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006132b4602483612442565b91506132bf82613258565b604082019050919050565b600060208201905081810360008301526132e3816132a7565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613346602283612442565b9150613351826132ea565b604082019050919050565b6000602082019050818103600083015261337581613339565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006133b2601d83612442565b91506133bd8261337c565b602082019050919050565b600060208201905081810360008301526133e1816133a5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613444602583612442565b915061344f826133e8565b604082019050919050565b6000602082019050818103600083015261347381613437565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006134d6602383612442565b91506134e18261347a565b604082019050919050565b60006020820190508181036000830152613505816134c9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613568602683612442565b91506135738261350c565b604082019050919050565b600060208201905081810360008301526135978161355b565b9050919050565b6135a781612879565b81146135b257600080fd5b50565b6000815190506135c48161359e565b92915050565b6000602082840312156135e0576135df6124f3565b5b60006135ee848285016135b5565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000613653602e83612442565b915061365e826135f7565b604082019050919050565b6000602082019050818103600083015261368281613646565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006136e5602983612442565b91506136f082613689565b604082019050919050565b60006020820190508181036000830152613714816136d8565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000613777602b83612442565b91506137828261371b565b604082019050919050565b600060208201905081810360008301526137a68161376a565b9050919050565b7f4272696467653a206f6e6c79206c696e6b656420454f5320616464726573732060008201527f63616e206d696e74000000000000000000000000000000000000000000000000602082015250565b6000613809602883612442565b9150613814826137ad565b604082019050919050565b60006020820190508181036000830152613838816137fc565b9050919050565b7f696e636f72726563742065677265737320627269646765206665650000000000600082015250565b6000613875601b83612442565b91506138808261383f565b602082019050919050565b600060208201905081810360008301526138a481613868565b9050919050565b60006060820190506138c060008301866128ad565b6138cd6020830185612607565b81810360408301526138df818461248e565b9050949350505050565b600081546138f681612b7e565b6139008186612442565b9450600182166000811461391b576001811461393157613964565b60ff198316865281151560200286019350613964565b61393a85612f7e565b60005b8381101561395c5781548189015260018201915060208101905061393d565b808801955050505b50505092915050565b600081519050919050565b600082825260208201905092915050565b60006139948261396d565b61399e8185613978565b93506139ae818560208601612453565b6139b78161247d565b840191505092915050565b600060608201905081810360008301526139dc81866138e9565b90506139eb60208301856125dd565b81810360408301526139fd8184613989565b9050949350505050565b600081905092915050565b6000613a1d8261396d565b613a278185613a07565b9350613a37818560208601612453565b80840191505092915050565b6000613a4f8284613a12565b915081905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000613ab6602d83612442565b9150613ac182613a5a565b604082019050919050565b60006020820190508181036000830152613ae581613aa9565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000613b22601f83612442565b9150613b2d82613aec565b602082019050919050565b60006020820190508181036000830152613b5181613b15565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bb4602183612442565b9150613bbf82613b58565b604082019050919050565b60006020820190508181036000830152613be381613ba7565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c46602283612442565b9150613c5182613bea565b604082019050919050565b60006020820190508181036000830152613c7581613c39565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613cb2601d83612442565b9150613cbd82613c7c565b602082019050919050565b60006020820190508181036000830152613ce181613ca5565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200605b72e4752b5a1a85c255053e69c66e2870dfebe661a5d95174055f2a1705764736f6c63430008150033
Deployed ByteCode
0x60806040526004361061015d576000357c0100000000000000000000000000000000000000000000000000000000900480636a0366bf116100d3578063a457c2d71161008c578063a457c2d714610477578063a9059cbb146104b4578063d3b5dc3b146104f1578063d66d4ac31461051c578063da5df40a14610545578063dd62ed3e146105705761015d565b80636a0366bf1461035e578063703ad5e91461038957806370a08231146103b457806373761828146103f15780639311d6121461042157806395d89b411461044c5761015d565b80633659cfe6116101255780633659cfe61461025d57806339509351146102865780634f1ef286146102c357806352d1902d146102df57806368fd118c1461030a57806369fe0e2d146103355761015d565b806306fdde0314610162578063095ea7b31461018d57806318160ddd146101ca57806323b872dd146101f5578063313ce56714610232575b600080fd5b34801561016e57600080fd5b506101776105ad565b60405161018491906124c7565b60405180910390f35b34801561019957600080fd5b506101b460048036038101906101af9190612591565b61063f565b6040516101c191906125ec565b60405180910390f35b3480156101d657600080fd5b506101df610662565b6040516101ec9190612616565b60405180910390f35b34801561020157600080fd5b5061021c60048036038101906102179190612631565b61066c565b60405161022991906125ec565b60405180910390f35b34801561023e57600080fd5b506102476106b5565b60405161025491906126a0565b60405180910390f35b34801561026957600080fd5b50610284600480360381019061027f91906126bb565b6106cc565b005b34801561029257600080fd5b506102ad60048036038101906102a89190612591565b610854565b6040516102ba91906125ec565b60405180910390f35b6102dd60048036038101906102d8919061281d565b61088b565b005b3480156102eb57600080fd5b506102f46109c7565b6040516103019190612892565b60405180910390f35b34801561031657600080fd5b5061031f610a80565b60405161032c91906128bc565b60405180910390f35b34801561034157600080fd5b5061035c600480360381019061035791906128d7565b610aa6565b005b34801561036a57600080fd5b50610373610b40565b6040516103809190612616565b60405180910390f35b34801561039557600080fd5b5061039e610b46565b6040516103ab91906124c7565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d691906126bb565b610bd8565b6040516103e89190612616565b60405180910390f35b61040b600480360381019061040691906129a5565b610c21565b60405161041891906125ec565b60405180910390f35b34801561042d57600080fd5b50610436610c46565b60405161044391906128bc565b60405180910390f35b34801561045857600080fd5b50610461610c6c565b60405161046e91906124c7565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190612591565b610cfe565b6040516104ab91906125ec565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190612591565b610d75565b6040516104e891906125ec565b60405180910390f35b3480156104fd57600080fd5b50610506610db2565b60405161051391906126a0565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190612a40565b610dc5565b005b34801561055157600080fd5b5061055a611033565b60405161056791906124c7565b60405180910390f35b34801561057c57600080fd5b5061059760048036038101906105929190612b0f565b6110c1565b6040516105a49190612616565b60405180910390f35b6060603680546105bc90612b7e565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890612b7e565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b5050505050905090565b60008061064a611148565b9050610657818585611150565b600191505092915050565b6000603554905090565b600061067783611319565b6000610681611148565b905061068e85828561132f565b6106a9858585604051806020016040528060008152506113bb565b60019150509392505050565b600060cc60149054906101000a900460ff16905090565b7f0000000000000000000000009cfbca2c181425bd8651ab1587e03c788b08123273ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361075a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075190612c21565b60405180910390fd5b7f0000000000000000000000009cfbca2c181425bd8651ab1587e03c788b08123273ffffffffffffffffffffffffffffffffffffffff16610799611637565b73ffffffffffffffffffffffffffffffffffffffff16146107ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e690612cb3565b60405180910390fd5b6107f88161168e565b61085181600067ffffffffffffffff811115610817576108166126f2565b5b6040519080825280601f01601f1916602001820160405280156108495781602001600182028036833780820191505090505b5060006116eb565b50565b60008061085f611148565b905061088081858561087185896110c1565b61087b9190612d02565b611150565b600191505092915050565b7f0000000000000000000000009cfbca2c181425bd8651ab1587e03c788b08123273ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603610919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091090612c21565b60405180910390fd5b7f0000000000000000000000009cfbca2c181425bd8651ab1587e03c788b08123273ffffffffffffffffffffffffffffffffffffffff16610958611637565b73ffffffffffffffffffffffffffffffffffffffff16146109ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a590612cb3565b60405180910390fd5b6109b78261168e565b6109c3828260016116eb565b5050565b60007f0000000000000000000000009cfbca2c181425bd8651ab1587e03c788b08123273ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e90612da8565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2d90612e3a565b60405180910390fd5b8060cd8190555050565b60cd5481565b606060c98054610b5590612b7e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8190612b7e565b8015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050905090565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600080610c2c611148565b9050610c3a818686866113bb565b60019150509392505050565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060378054610c7b90612b7e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790612b7e565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b5050505050905090565b600080610d09611148565b90506000610d1782866110c1565b905083811015610d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5390612ecc565b60405180910390fd5b610d698286868403611150565b60019250505092915050565b6000610d8083611319565b6000610d8a611148565b9050610da7818585604051806020016040528060008152506113bb565b600191505092915050565b60cc60149054906101000a900460ff1681565b60008060019054906101000a900460ff16159050808015610df65750600160008054906101000a900460ff1660ff16105b80610e235750610e0530611875565b158015610e225750600160008054906101000a900460ff1660ff16145b5b610e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5990612f5e565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610e9f576001600060016101000a81548160ff0219169083151502179055505b610ea98484611898565b610eb16118f5565b73bbbbbbbbbbbbbbbbbbbbbbbb5530ea015b90000060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073bbbbbbbbbbbbbbbbbbbbbbbb5530ea015740a80060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060400160405280600b81526020017f656f73696f2e657263326f00000000000000000000000000000000000000000081525060ca9081610f9f9190613130565b508560cc60146101000a81548160ff021916908360ff1602179055508460cd819055508160c99081610fd19190613130565b50801561102b5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611022919061323d565b60405180910390a15b505050505050565b60ca805461104090612b7e565b80601f016020809104026020016040519081016040528092919081815260200182805461106c90612b7e565b80156110b95780601f1061108e576101008083540402835291602001916110b9565b820191906000526020600020905b81548152906001019060200180831161109c57829003601f168201915b505050505081565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b6906132ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361122e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112259061335c565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161130c9190612616565b60405180910390a3505050565b61132281611946565b1561132c57600080fd5b50565b600061133b84846110c1565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146113b557818110156113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e906133c8565b60405180910390fd5b6113b48484848403611150565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114219061345a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611499576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611490906134ec565b60405180910390fd5b6114a5848484846119a8565b6000603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561152c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115239061357e565b60405180910390fd5b828103603360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161161c9190612616565b60405180910390a361163085858585611b0a565b5050505050565b60006116657f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102611d9e565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116e857600080fd5b50565b6117177f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143600102611da8565b60000160009054906101000a900460ff161561173b5761173683611db2565b611870565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa9250505080156117bf57506040513d601f19601f820116820180604052508101906117bc91906135ca565b60015b6117fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f590613669565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6001028114611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a906136fb565b60405180910390fd5b5061186f838383611e6b565b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061378d565b60405180910390fd5b6118f18282611e97565b5050565b600060019054906101000a900460ff16611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193b9061378d565b60405180910390fd5b565b600073bbbbbbbbbbbbbbbbbbbbbbbb000000000000000073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffff0000000000000000831673ffffffffffffffffffffffffffffffffffffffff16149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a0f5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b611b045760cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b035760cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aef9061381f565b60405180910390fd5b611b028483611f0a565b5b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b715750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b611d9857611b7e83611946565b15611d975760cd543414611bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbe9061388b565b60405180910390fd5b6000838383604051602401611bde939291906138ab565b6040516020818303038152906040527f653332e5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460ca600185604051602401611cb0939291906139c2565b6040516020818303038152906040527ff781185b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611d3a9190613a43565b60006040518083038185875af1925050503d8060008114611d77576040519150601f19603f3d011682016040523d82523d6000602084013e611d7c565b606091505b5050905080611d8a57600080fd5b611d948585612081565b50505b5b50505050565b6000819050919050565b6000819050919050565b611dbb81611875565b611dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df190613acc565b60405180910390fd5b80611e277f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600102611d9e565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e7483612270565b600082511180611e815750805b15611e9257611e9083836122bf565b505b505050565b600060019054906101000a900460ff16611ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edd9061378d565b60405180910390fd5b8160369081611ef59190613130565b508060379081611f059190613130565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090613b38565b60405180910390fd5b611f9560008383604051806020016040528060008152506119a8565b8060356000828254611fa79190612d02565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516120599190612616565b60405180910390a361207d6000838360405180602001604052806000815250611b0a565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e790613bca565b60405180910390fd5b61210c82600083604051806020016040528060008152506119a8565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a90613c5c565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122479190612616565b60405180910390a361226b8360008460405180602001604052806000815250611b0a565b505050565b61227981611db2565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60606122e48383604051806060016040528060278152602001613ce9602791396122ec565b905092915050565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516123169190613a43565b600060405180830381855af49150503d8060008114612351576040519150601f19603f3d011682016040523d82523d6000602084013e612356565b606091505b509150915061236786838387612372565b925050509392505050565b606083156123d45760008351036123cc5761238c85611875565b6123cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c290613cc8565b60405180910390fd5b5b8290506123df565b6123de83836123e7565b5b949350505050565b6000825111156123fa5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e91906124c7565b60405180910390fd5b600081519050919050565b600082825260208201905092915050565b60005b83811015612471578082015181840152602081019050612456565b60008484015250505050565b6000601f19601f8301169050919050565b600061249982612437565b6124a38185612442565b93506124b3818560208601612453565b6124bc8161247d565b840191505092915050565b600060208201905081810360008301526124e1818461248e565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612528826124fd565b9050919050565b6125388161251d565b811461254357600080fd5b50565b6000813590506125558161252f565b92915050565b6000819050919050565b61256e8161255b565b811461257957600080fd5b50565b60008135905061258b81612565565b92915050565b600080604083850312156125a8576125a76124f3565b5b60006125b685828601612546565b92505060206125c78582860161257c565b9150509250929050565b60008115159050919050565b6125e6816125d1565b82525050565b600060208201905061260160008301846125dd565b92915050565b6126108161255b565b82525050565b600060208201905061262b6000830184612607565b92915050565b60008060006060848603121561264a576126496124f3565b5b600061265886828701612546565b935050602061266986828701612546565b925050604061267a8682870161257c565b9150509250925092565b600060ff82169050919050565b61269a81612684565b82525050565b60006020820190506126b56000830184612691565b92915050565b6000602082840312156126d1576126d06124f3565b5b60006126df84828501612546565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61272a8261247d565b810181811067ffffffffffffffff82111715612749576127486126f2565b5b80604052505050565b600061275c6124e9565b90506127688282612721565b919050565b600067ffffffffffffffff821115612788576127876126f2565b5b6127918261247d565b9050602081019050919050565b82818337600083830152505050565b60006127c06127bb8461276d565b612752565b9050828152602081018484840111156127dc576127db6126ed565b5b6127e784828561279e565b509392505050565b600082601f830112612804576128036126e8565b5b81356128148482602086016127ad565b91505092915050565b60008060408385031215612834576128336124f3565b5b600061284285828601612546565b925050602083013567ffffffffffffffff811115612863576128626124f8565b5b61286f858286016127ef565b9150509250929050565b6000819050919050565b61288c81612879565b82525050565b60006020820190506128a76000830184612883565b92915050565b6128b68161251d565b82525050565b60006020820190506128d160008301846128ad565b92915050565b6000602082840312156128ed576128ec6124f3565b5b60006128fb8482850161257c565b91505092915050565b600067ffffffffffffffff82111561291f5761291e6126f2565b5b6129288261247d565b9050602081019050919050565b600061294861294384612904565b612752565b905082815260208101848484011115612964576129636126ed565b5b61296f84828561279e565b509392505050565b600082601f83011261298c5761298b6126e8565b5b813561299c848260208601612935565b91505092915050565b6000806000606084860312156129be576129bd6124f3565b5b60006129cc86828701612546565b93505060206129dd8682870161257c565b925050604084013567ffffffffffffffff8111156129fe576129fd6124f8565b5b612a0a86828701612977565b9150509250925092565b612a1d81612684565b8114612a2857600080fd5b50565b600081359050612a3a81612a14565b92915050565b600080600080600060a08688031215612a5c57612a5b6124f3565b5b6000612a6a88828901612a2b565b9550506020612a7b8882890161257c565b945050604086013567ffffffffffffffff811115612a9c57612a9b6124f8565b5b612aa888828901612977565b935050606086013567ffffffffffffffff811115612ac957612ac86124f8565b5b612ad588828901612977565b925050608086013567ffffffffffffffff811115612af657612af56124f8565b5b612b0288828901612977565b9150509295509295909350565b60008060408385031215612b2657612b256124f3565b5b6000612b3485828601612546565b9250506020612b4585828601612546565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b9657607f821691505b602082108103612ba957612ba8612b4f565b5b50919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000612c0b602c83612442565b9150612c1682612baf565b604082019050919050565b60006020820190508181036000830152612c3a81612bfe565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000612c9d602c83612442565b9150612ca882612c41565b604082019050919050565b60006020820190508181036000830152612ccc81612c90565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d0d8261255b565b9150612d188361255b565b9250828201905080821115612d3057612d2f612cd3565b5b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000612d92603883612442565b9150612d9d82612d36565b604082019050919050565b60006020820190508181036000830152612dc181612d85565b9050919050565b7f4272696467653a206f6e6c79206c696e6b656420454f5320616464726573732060008201527f63616e2073657420666565000000000000000000000000000000000000000000602082015250565b6000612e24602b83612442565b9150612e2f82612dc8565b604082019050919050565b60006020820190508181036000830152612e5381612e17565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612eb6602583612442565b9150612ec182612e5a565b604082019050919050565b60006020820190508181036000830152612ee581612ea9565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000612f48602e83612442565b9150612f5382612eec565b604082019050919050565b60006020820190508181036000830152612f7781612f3b565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b60008160020a8302905092915050565b600060088302612fe37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fa3565b612fed8683612fa3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061302a6130256130208461255b565b613005565b61255b565b9050919050565b6000819050919050565b6130448361300f565b61305861305082613031565b848454612fb3565b825550505050565b600090565b61306d613060565b61307881848461303b565b505050565b5b8181101561309c57613091600082613065565b60018101905061307e565b5050565b601f8211156130e1576130b281612f7e565b6130bb84612f93565b810160208510156130ca578190505b6130de6130d685612f93565b83018261307d565b50505b505050565b60008160020a8304905092915050565b6000613107600019846008026130e6565b1980831691505092915050565b600061312083836130f6565b9150826002028217905092915050565b61313982612437565b67ffffffffffffffff811115613152576131516126f2565b5b61315c8254612b7e565b6131678282856130a0565b600060209050601f83116001811461319a5760008415613188578287015190505b6131928582613114565b8655506131fa565b601f1984166131a886612f7e565b60005b828110156131d0578489015182556001820191506020850194506020810190506131ab565b868310156131ed57848901516131e9601f8916826130f6565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b600061322761322261321d84613202565b613005565b612684565b9050919050565b6132378161320c565b82525050565b6000602082019050613252600083018461322e565b92915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006132b4602483612442565b91506132bf82613258565b604082019050919050565b600060208201905081810360008301526132e3816132a7565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613346602283612442565b9150613351826132ea565b604082019050919050565b6000602082019050818103600083015261337581613339565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006133b2601d83612442565b91506133bd8261337c565b602082019050919050565b600060208201905081810360008301526133e1816133a5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613444602583612442565b915061344f826133e8565b604082019050919050565b6000602082019050818103600083015261347381613437565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006134d6602383612442565b91506134e18261347a565b604082019050919050565b60006020820190508181036000830152613505816134c9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613568602683612442565b91506135738261350c565b604082019050919050565b600060208201905081810360008301526135978161355b565b9050919050565b6135a781612879565b81146135b257600080fd5b50565b6000815190506135c48161359e565b92915050565b6000602082840312156135e0576135df6124f3565b5b60006135ee848285016135b5565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000613653602e83612442565b915061365e826135f7565b604082019050919050565b6000602082019050818103600083015261368281613646565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006136e5602983612442565b91506136f082613689565b604082019050919050565b60006020820190508181036000830152613714816136d8565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000613777602b83612442565b91506137828261371b565b604082019050919050565b600060208201905081810360008301526137a68161376a565b9050919050565b7f4272696467653a206f6e6c79206c696e6b656420454f5320616464726573732060008201527f63616e206d696e74000000000000000000000000000000000000000000000000602082015250565b6000613809602883612442565b9150613814826137ad565b604082019050919050565b60006020820190508181036000830152613838816137fc565b9050919050565b7f696e636f72726563742065677265737320627269646765206665650000000000600082015250565b6000613875601b83612442565b91506138808261383f565b602082019050919050565b600060208201905081810360008301526138a481613868565b9050919050565b60006060820190506138c060008301866128ad565b6138cd6020830185612607565b81810360408301526138df818461248e565b9050949350505050565b600081546138f681612b7e565b6139008186612442565b9450600182166000811461391b576001811461393157613964565b60ff198316865281151560200286019350613964565b61393a85612f7e565b60005b8381101561395c5781548189015260018201915060208101905061393d565b808801955050505b50505092915050565b600081519050919050565b600082825260208201905092915050565b60006139948261396d565b61399e8185613978565b93506139ae818560208601612453565b6139b78161247d565b840191505092915050565b600060608201905081810360008301526139dc81866138e9565b90506139eb60208301856125dd565b81810360408301526139fd8184613989565b9050949350505050565b600081905092915050565b6000613a1d8261396d565b613a278185613a07565b9350613a37818560208601612453565b80840191505092915050565b6000613a4f8284613a12565b915081905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000613ab6602d83612442565b9150613ac182613a5a565b604082019050919050565b60006020820190508181036000830152613ae581613aa9565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000613b22601f83612442565b9150613b2d82613aec565b602082019050919050565b60006020820190508181036000830152613b5181613b15565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bb4602183612442565b9150613bbf82613b58565b604082019050919050565b60006020820190508181036000830152613be381613ba7565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c46602283612442565b9150613c5182613bea565b604082019050919050565b60006020820190508181036000830152613c7581613c39565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613cb2601d83612442565b9150613cbd82613c7c565b602082019050919050565b60006020820190508181036000830152613ce181613ca5565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200605b72e4752b5a1a85c255053e69c66e2870dfebe661a5d95174055f2a1705764736f6c63430008150033