Source Code
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 106,495 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Attest By Delega... | 12640662 | 378 days ago | IN | 0 ETH | 0.00002068 | ||||
| Attest By Delega... | 12574644 | 381 days ago | IN | 0 ETH | 0.0000419 | ||||
| Attest By Delega... | 12450387 | 386 days ago | IN | 0 ETH | 0.0000357 | ||||
| Attest By Delega... | 12123133 | 399 days ago | IN | 0 ETH | 0.00002305 | ||||
| Attest By Delega... | 12118586 | 399 days ago | IN | 0 ETH | 0.00002059 | ||||
| Attest By Delega... | 12109559 | 400 days ago | IN | 0 ETH | 0.00002235 | ||||
| Attest By Delega... | 12055829 | 402 days ago | IN | 0 ETH | 0.00002678 | ||||
| Attest By Delega... | 11882871 | 408 days ago | IN | 0 ETH | 0.00002353 | ||||
| Attest By Delega... | 11882871 | 408 days ago | IN | 0 ETH | 0.0000246 | ||||
| Attest By Delega... | 11882868 | 408 days ago | IN | 0 ETH | 0.00002439 | ||||
| Attest By Delega... | 11882868 | 408 days ago | IN | 0 ETH | 0.00002413 | ||||
| Attest By Delega... | 11882852 | 408 days ago | IN | 0 ETH | 0.00002123 | ||||
| Attest By Delega... | 11882852 | 408 days ago | IN | 0 ETH | 0.00002475 | ||||
| Attest By Delega... | 11882850 | 408 days ago | IN | 0 ETH | 0.00002468 | ||||
| Attest By Delega... | 11882849 | 408 days ago | IN | 0 ETH | 0.00002072 | ||||
| Attest By Delega... | 11882846 | 408 days ago | IN | 0 ETH | 0.00002703 | ||||
| Attest By Delega... | 11882845 | 408 days ago | IN | 0 ETH | 0.00002461 | ||||
| Attest By Delega... | 11801313 | 411 days ago | IN | 0 ETH | 0.0000053 | ||||
| Attest By Delega... | 11801313 | 411 days ago | IN | 0 ETH | 0.00000534 | ||||
| Attest By Delega... | 11800089 | 411 days ago | IN | 0 ETH | 0.00003284 | ||||
| Attest By Delega... | 11777168 | 412 days ago | IN | 0 ETH | 0.00003302 | ||||
| Attest By Delega... | 11695029 | 415 days ago | IN | 0 ETH | 0.00001192 | ||||
| Attest By Delega... | 11695029 | 415 days ago | IN | 0 ETH | 0.00001192 | ||||
| Attest By Delega... | 11695029 | 415 days ago | IN | 0 ETH | 0.00001192 | ||||
| Attest By Delega... | 11585276 | 419 days ago | IN | 0 ETH | 0.00002072 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 12640662 | 378 days ago | 0 ETH | |||||
| 12640662 | 378 days ago | 0 ETH | |||||
| 12574644 | 381 days ago | 0 ETH | |||||
| 12574644 | 381 days ago | 0 ETH | |||||
| 12450387 | 386 days ago | 0 ETH | |||||
| 12450387 | 386 days ago | 0 ETH | |||||
| 12123133 | 399 days ago | 0 ETH | |||||
| 12123133 | 399 days ago | 0 ETH | |||||
| 12118586 | 399 days ago | 0 ETH | |||||
| 12118586 | 399 days ago | 0 ETH | |||||
| 12109559 | 400 days ago | 0 ETH | |||||
| 12109559 | 400 days ago | 0 ETH | |||||
| 12055829 | 402 days ago | 0 ETH | |||||
| 12055829 | 402 days ago | 0 ETH | |||||
| 11800089 | 411 days ago | 0 ETH | |||||
| 11800089 | 411 days ago | 0 ETH | |||||
| 11777168 | 412 days ago | 0 ETH | |||||
| 11777168 | 412 days ago | 0 ETH | |||||
| 11454788 | 424 days ago | 0 ETH | |||||
| 11454788 | 424 days ago | 0 ETH | |||||
| 11421265 | 425 days ago | 0 ETH | |||||
| 11421265 | 425 days ago | 0 ETH | |||||
| 11274367 | 431 days ago | 0 ETH | |||||
| 11274367 | 431 days ago | 0 ETH | |||||
| 11221712 | 433 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AttesterProxy
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {
EIP712Proxy,
AttestationRequest,
RevocationRequest,
DelegatedProxyAttestationRequest
} from "eas-contracts/contracts/eip712/proxy/EIP712Proxy.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {AccessDenied} from "eas-contracts/contracts/Common.sol";
import {IEAS, Attestation} from "eas-contracts/contracts/IEAS.sol";
/// @title AttesterProxy
/// @notice An EIP712 proxy that allows only specific addresses to attest.
/// Based on PermissionedEIP712Proxy in the EAS repo.
contract AttesterProxy is EIP712Proxy, Ownable {
// The global EAS contract.
IEAS private immutable _eas;
// Authorized badge attester accounts.
mapping(address => bool) public isAttester;
/// @dev Creates a new PermissionedEIP712Proxy instance.
/// @param eas The address of the global EAS contract.
constructor(IEAS eas) EIP712Proxy(eas, "AttesterProxy") Ownable(msg.sender) {
_eas = eas;
}
/// @notice Enables or disables a given attester.
/// @param attester The attester address.
/// @param enable True if enable, false if disable.
function toggleAttester(address attester, bool enable) external onlyOwner {
isAttester[attester] = enable;
}
/// @inheritdoc EIP712Proxy
function attestByDelegation(DelegatedProxyAttestationRequest calldata delegatedRequest)
public
payable
override
returns (bytes32)
{
// Ensure that only the owner is allowed to delegate attestations.
_verifyAttester(delegatedRequest.attester);
// Ensure that only the recipient can submit delegated attestation transactions.
if (msg.sender != delegatedRequest.data.recipient) {
revert AccessDenied();
}
return super.attestByDelegation(delegatedRequest);
}
/// @notice Create attestation through the proxy.
/// @param request The arguments of the attestation request.
/// @return The UID of the new attestation.
function attest(AttestationRequest calldata request) external returns (bytes32) {
_verifyAttester(msg.sender);
return _eas.attest(request);
}
/// @notice Revoke attestation through the proxy.
/// @param request The arguments of the revocation request.
function revoke(RevocationRequest calldata request) external {
_verifyAttester(msg.sender);
_eas.revoke(request);
}
/// @dev Ensures that only the allowed attester can attest.
/// @param attester The attester to verify.
function _verifyAttester(address attester) private view {
if (!isAttester[attester]) {
revert AccessDenied();
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { ISchemaRegistry } from "./ISchemaRegistry.sol";
import { ISemver } from "./ISemver.sol";
import { Attestation, Signature } from "./Common.sol";
/// @notice A struct representing the arguments of the attestation request.
struct AttestationRequestData {
address recipient; // The recipient of the attestation.
uint64 expirationTime; // The time when the attestation expires (Unix timestamp).
bool revocable; // Whether the attestation is revocable.
bytes32 refUID; // The UID of the related attestation.
bytes data; // Custom attestation data.
uint256 value; // An explicit ETH amount to send to the resolver. This is important to prevent accidental user errors.
}
/// @notice A struct representing the full arguments of the attestation request.
struct AttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData data; // The arguments of the attestation request.
}
/// @notice A struct representing the full arguments of the full delegated attestation request.
struct DelegatedAttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData data; // The arguments of the attestation request.
Signature signature; // The ECDSA signature data.
address attester; // The attesting account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the full arguments of the multi attestation request.
struct MultiAttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData[] data; // The arguments of the attestation request.
}
/// @notice A struct representing the full arguments of the delegated multi attestation request.
struct MultiDelegatedAttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData[] data; // The arguments of the attestation requests.
Signature[] signatures; // The ECDSA signatures data. Please note that the signatures are assumed to be signed with increasing nonces.
address attester; // The attesting account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the arguments of the revocation request.
struct RevocationRequestData {
bytes32 uid; // The UID of the attestation to revoke.
uint256 value; // An explicit ETH amount to send to the resolver. This is important to prevent accidental user errors.
}
/// @notice A struct representing the full arguments of the revocation request.
struct RevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData data; // The arguments of the revocation request.
}
/// @notice A struct representing the arguments of the full delegated revocation request.
struct DelegatedRevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData data; // The arguments of the revocation request.
Signature signature; // The ECDSA signature data.
address revoker; // The revoking account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the full arguments of the multi revocation request.
struct MultiRevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData[] data; // The arguments of the revocation request.
}
/// @notice A struct representing the full arguments of the delegated multi revocation request.
struct MultiDelegatedRevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData[] data; // The arguments of the revocation requests.
Signature[] signatures; // The ECDSA signatures data. Please note that the signatures are assumed to be signed with increasing nonces.
address revoker; // The revoking account.
uint64 deadline; // The deadline of the signature/request.
}
/// @title IEAS
/// @notice EAS - Ethereum Attestation Service interface.
interface IEAS is ISemver {
/// @notice Emitted when an attestation has been made.
/// @param recipient The recipient of the attestation.
/// @param attester The attesting account.
/// @param uid The UID of the new attestation.
/// @param schemaUID The UID of the schema.
event Attested(address indexed recipient, address indexed attester, bytes32 uid, bytes32 indexed schemaUID);
/// @notice Emitted when an attestation has been revoked.
/// @param recipient The recipient of the attestation.
/// @param attester The attesting account.
/// @param schemaUID The UID of the schema.
/// @param uid The UID the revoked attestation.
event Revoked(address indexed recipient, address indexed attester, bytes32 uid, bytes32 indexed schemaUID);
/// @notice Emitted when a data has been timestamped.
/// @param data The data.
/// @param timestamp The timestamp.
event Timestamped(bytes32 indexed data, uint64 indexed timestamp);
/// @notice Emitted when a data has been revoked.
/// @param revoker The address of the revoker.
/// @param data The data.
/// @param timestamp The timestamp.
event RevokedOffchain(address indexed revoker, bytes32 indexed data, uint64 indexed timestamp);
/// @notice Returns the address of the global schema registry.
/// @return The address of the global schema registry.
function getSchemaRegistry() external view returns (ISchemaRegistry);
/// @notice Attests to a specific schema.
/// @param request The arguments of the attestation request.
/// @return The UID of the new attestation.
///
/// Example:
/// attest({
/// schema: "0facc36681cbe2456019c1b0d1e7bedd6d1d40f6f324bf3dd3a4cef2999200a0",
/// data: {
/// recipient: "0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf",
/// expirationTime: 0,
/// revocable: true,
/// refUID: "0x0000000000000000000000000000000000000000000000000000000000000000",
/// data: "0xF00D",
/// value: 0
/// }
/// })
function attest(AttestationRequest calldata request) external payable returns (bytes32);
/// @notice Attests to a specific schema via the provided ECDSA signature.
/// @param delegatedRequest The arguments of the delegated attestation request.
/// @return The UID of the new attestation.
///
/// Example:
/// attestByDelegation({
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: {
/// recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
/// expirationTime: 1673891048,
/// revocable: true,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x1234',
/// value: 0
/// },
/// signature: {
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// attester: '0xc5E8740aD971409492b1A63Db8d83025e0Fc427e',
/// deadline: 1673891048
/// })
function attestByDelegation(
DelegatedAttestationRequest calldata delegatedRequest
) external payable returns (bytes32);
/// @notice Attests to multiple schemas.
/// @param multiRequests The arguments of the multi attestation requests. The requests should be grouped by distinct
/// schema ids to benefit from the best batching optimization.
/// @return The UIDs of the new attestations.
///
/// Example:
/// multiAttest([{
/// schema: '0x33e9094830a5cba5554d1954310e4fbed2ef5f859ec1404619adea4207f391fd',
/// data: [{
/// recipient: '0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf',
/// expirationTime: 1673891048,
/// revocable: true,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x1234',
/// value: 1000
/// },
/// {
/// recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
/// expirationTime: 0,
/// revocable: false,
/// refUID: '0x480df4a039efc31b11bfdf491b383ca138b6bde160988222a2a3509c02cee174',
/// data: '0x00',
/// value: 0
/// }],
/// },
/// {
/// schema: '0x5ac273ce41e3c8bfa383efe7c03e54c5f0bff29c9f11ef6ffa930fc84ca32425',
/// data: [{
/// recipient: '0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf',
/// expirationTime: 0,
/// revocable: true,
/// refUID: '0x75bf2ed8dca25a8190c50c52db136664de25b2449535839008ccfdab469b214f',
/// data: '0x12345678',
/// value: 0
/// },
/// }])
function multiAttest(MultiAttestationRequest[] calldata multiRequests) external payable returns (bytes32[] memory);
/// @notice Attests to multiple schemas using via provided ECDSA signatures.
/// @param multiDelegatedRequests The arguments of the delegated multi attestation requests. The requests should be
/// grouped by distinct schema ids to benefit from the best batching optimization.
/// @return The UIDs of the new attestations.
///
/// Example:
/// multiAttestByDelegation([{
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: [{
/// recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
/// expirationTime: 1673891048,
/// revocable: true,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x1234',
/// value: 0
/// },
/// {
/// recipient: '0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf',
/// expirationTime: 0,
/// revocable: false,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x00',
/// value: 0
/// }],
/// signatures: [{
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// {
/// v: 28,
/// r: '0x487s...67bb',
/// s: '0x12ad...2366'
/// }],
/// attester: '0x1D86495b2A7B524D747d2839b3C645Bed32e8CF4',
/// deadline: 1673891048
/// }])
function multiAttestByDelegation(
MultiDelegatedAttestationRequest[] calldata multiDelegatedRequests
) external payable returns (bytes32[] memory);
/// @notice Revokes an existing attestation to a specific schema.
/// @param request The arguments of the revocation request.
///
/// Example:
/// revoke({
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: {
/// uid: '0x101032e487642ee04ee17049f99a70590c735b8614079fc9275f9dd57c00966d',
/// value: 0
/// }
/// })
function revoke(RevocationRequest calldata request) external payable;
/// @notice Revokes an existing attestation to a specific schema via the provided ECDSA signature.
/// @param delegatedRequest The arguments of the delegated revocation request.
///
/// Example:
/// revokeByDelegation({
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: {
/// uid: '0xcbbc12102578c642a0f7b34fe7111e41afa25683b6cd7b5a14caf90fa14d24ba',
/// value: 0
/// },
/// signature: {
/// v: 27,
/// r: '0xb593...7142',
/// s: '0x0f5b...2cce'
/// },
/// revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992',
/// deadline: 1673891048
/// })
function revokeByDelegation(DelegatedRevocationRequest calldata delegatedRequest) external payable;
/// @notice Revokes existing attestations to multiple schemas.
/// @param multiRequests The arguments of the multi revocation requests. The requests should be grouped by distinct
/// schema ids to benefit from the best batching optimization.
///
/// Example:
/// multiRevoke([{
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: [{
/// uid: '0x211296a1ca0d7f9f2cfebf0daaa575bea9b20e968d81aef4e743d699c6ac4b25',
/// value: 1000
/// },
/// {
/// uid: '0xe160ac1bd3606a287b4d53d5d1d6da5895f65b4b4bab6d93aaf5046e48167ade',
/// value: 0
/// }],
/// },
/// {
/// schema: '0x5ac273ce41e3c8bfa383efe7c03e54c5f0bff29c9f11ef6ffa930fc84ca32425',
/// data: [{
/// uid: '0x053d42abce1fd7c8fcddfae21845ad34dae287b2c326220b03ba241bc5a8f019',
/// value: 0
/// },
/// }])
function multiRevoke(MultiRevocationRequest[] calldata multiRequests) external payable;
/// @notice Revokes existing attestations to multiple schemas via provided ECDSA signatures.
/// @param multiDelegatedRequests The arguments of the delegated multi revocation attestation requests. The requests
/// should be grouped by distinct schema ids to benefit from the best batching optimization.
///
/// Example:
/// multiRevokeByDelegation([{
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: [{
/// uid: '0x211296a1ca0d7f9f2cfebf0daaa575bea9b20e968d81aef4e743d699c6ac4b25',
/// value: 1000
/// },
/// {
/// uid: '0xe160ac1bd3606a287b4d53d5d1d6da5895f65b4b4bab6d93aaf5046e48167ade',
/// value: 0
/// }],
/// signatures: [{
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// {
/// v: 28,
/// r: '0x487s...67bb',
/// s: '0x12ad...2366'
/// }],
/// revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992',
/// deadline: 1673891048
/// }])
function multiRevokeByDelegation(
MultiDelegatedRevocationRequest[] calldata multiDelegatedRequests
) external payable;
/// @notice Timestamps the specified bytes32 data.
/// @param data The data to timestamp.
/// @return The timestamp the data was timestamped with.
function timestamp(bytes32 data) external returns (uint64);
/// @notice Timestamps the specified multiple bytes32 data.
/// @param data The data to timestamp.
/// @return The timestamp the data was timestamped with.
function multiTimestamp(bytes32[] calldata data) external returns (uint64);
/// @notice Revokes the specified bytes32 data.
/// @param data The data to timestamp.
/// @return The timestamp the data was revoked with.
function revokeOffchain(bytes32 data) external returns (uint64);
/// @notice Revokes the specified multiple bytes32 data.
/// @param data The data to timestamp.
/// @return The timestamp the data was revoked with.
function multiRevokeOffchain(bytes32[] calldata data) external returns (uint64);
/// @notice Returns an existing attestation by UID.
/// @param uid The UID of the attestation to retrieve.
/// @return The attestation data members.
function getAttestation(bytes32 uid) external view returns (Attestation memory);
/// @notice Checks whether an attestation exists.
/// @param uid The UID of the attestation to retrieve.
/// @return Whether an attestation exists.
function isAttestationValid(bytes32 uid) external view returns (bool);
/// @notice Returns the timestamp that the specified data was timestamped with.
/// @param data The data to query.
/// @return The timestamp the data was timestamped with.
function getTimestamp(bytes32 data) external view returns (uint64);
/// @notice Returns the timestamp that the specified data was timestamped with.
/// @param data The data to query.
/// @return The timestamp the data was timestamped with.
function getRevokeOffchain(address revoker, bytes32 data) external view returns (uint64);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// A representation of an empty/uninitialized UID.
bytes32 constant EMPTY_UID = 0;
// A zero expiration represents an non-expiring attestation.
uint64 constant NO_EXPIRATION_TIME = 0;
error AccessDenied();
error DeadlineExpired();
error InvalidEAS();
error InvalidLength();
error InvalidSignature();
error NotFound();
/// @notice A struct representing ECDSA signature data.
struct Signature {
uint8 v; // The recovery ID.
bytes32 r; // The x-coordinate of the nonce R.
bytes32 s; // The signature data.
}
/// @notice A struct representing a single attestation.
struct Attestation {
bytes32 uid; // A unique identifier of the attestation.
bytes32 schema; // The unique identifier of the schema.
uint64 time; // The time when the attestation was created (Unix timestamp).
uint64 expirationTime; // The time when the attestation expires (Unix timestamp).
uint64 revocationTime; // The time when the attestation was revoked (Unix timestamp).
bytes32 refUID; // The UID of the related attestation.
address recipient; // The recipient of the attestation.
address attester; // The attester/sender of the attestation.
bool revocable; // Whether the attestation is revocable.
bytes data; // Custom attestation data.
}
/// @notice A helper function to work with unchecked iterators in loops.
function uncheckedInc(uint256 i) pure returns (uint256 j) {
unchecked {
j = i + 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
// prettier-ignore
import {
AccessDenied,
DeadlineExpired,
Signature,
InvalidEAS,
InvalidLength,
InvalidSignature,
NotFound,
NO_EXPIRATION_TIME,
uncheckedInc
} from "../../Common.sol";
// prettier-ignore
import {
AttestationRequest,
AttestationRequestData,
IEAS,
MultiAttestationRequest,
MultiRevocationRequest,
RevocationRequest,
RevocationRequestData
} from "../../IEAS.sol";
import { Semver } from "../../Semver.sol";
/// @notice A struct representing the full arguments of the full delegated attestation request.
struct DelegatedProxyAttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData data; // The arguments of the attestation request.
Signature signature; // The EIP712 signature data.
address attester; // The attesting account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the full arguments of the delegated multi attestation request.
struct MultiDelegatedProxyAttestationRequest {
bytes32 schema; // The unique identifier of the schema.
AttestationRequestData[] data; // The arguments of the attestation requests.
Signature[] signatures; // The EIP712 signatures data. Please note that the signatures are assumed to be signed with increasing nonces.
address attester; // The attesting account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the arguments of the full delegated revocation request.
struct DelegatedProxyRevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData data; // The arguments of the revocation request.
Signature signature; // The EIP712 signature data.
address revoker; // The revoking account.
uint64 deadline; // The deadline of the signature/request.
}
/// @notice A struct representing the full arguments of the delegated multi revocation request.
struct MultiDelegatedProxyRevocationRequest {
bytes32 schema; // The unique identifier of the schema.
RevocationRequestData[] data; // The arguments of the revocation requests.
Signature[] signatures; // The EIP712 signatures data. Please note that the signatures are assumed to be signed with increasing nonces.
address revoker; // The revoking account.
uint64 deadline; // The deadline of the signature/request.
}
/// @title EIP712Proxy
/// @notice This utility contract an be used to aggregate delegated attestations without requiring a specific order via
/// nonces. The contract doesn't request nonces and implements replay protection by storing ***immalleable***
/// signatures.
contract EIP712Proxy is Semver, EIP712 {
error UsedSignature();
// The hash of the data type used to relay calls to the attest function. It's the value of
// keccak256("Attest(address attester,bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 value,uint64 deadline)").
bytes32 private constant ATTEST_PROXY_TYPEHASH = 0xea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af1;
// The hash of the data type used to relay calls to the revoke function. It's the value of
// keccak256("Revoke(address revoker,bytes32 schema,bytes32 uid,uint256 value,uint64 deadline)").
bytes32 private constant REVOKE_PROXY_TYPEHASH = 0x78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d;
// The global EAS contract.
IEAS private immutable _eas;
// The user readable name of the signing domain.
string private _name;
// The global mapping between proxy attestations and their attesters, so that we can verify that only the original
// attester is able to revert attestations by proxy.
mapping(bytes32 uid => address attester) private _attesters;
// Replay protection signatures.
mapping(bytes signature => bool used) private _signatures;
/// @dev Creates a new EIP1271Verifier instance.
/// @param eas The address of the global EAS contract.
/// @param name The user readable name of the signing domain.
constructor(IEAS eas, string memory name) Semver(1, 3, 0) EIP712(name, "1.3.0") {
if (address(eas) == address(0)) {
revert InvalidEAS();
}
_eas = eas;
_name = name;
}
/// @notice Returns the EAS.
function getEAS() external view returns (IEAS) {
return _eas;
}
/// @notice Returns the domain separator used in the encoding of the signatures for attest, and revoke.
function getDomainSeparator() external view returns (bytes32) {
return _domainSeparatorV4();
}
/// Returns the EIP712 type hash for the attest function.
function getAttestTypeHash() external pure returns (bytes32) {
return ATTEST_PROXY_TYPEHASH;
}
/// Returns the EIP712 type hash for the revoke function.
function getRevokeTypeHash() external pure returns (bytes32) {
return REVOKE_PROXY_TYPEHASH;
}
/// Returns the EIP712 name.
function getName() external view returns (string memory) {
return _name;
}
/// Returns the attester for a given uid.
function getAttester(bytes32 uid) external view returns (address) {
return _attesters[uid];
}
/// @notice Attests to a specific schema via the provided EIP712 signature.
/// @param delegatedRequest The arguments of the delegated attestation request.
/// @return The UID of the new attestation.
///
/// Example:
/// attestByDelegation({
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: {
/// recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
/// expirationTime: 1673891048,
/// revocable: true,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x1234',
/// value: 0
/// },
/// signature: {
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// attester: '0xc5E8740aD971409492b1A63Db8d83025e0Fc427e',
/// deadline: 1673891048
/// })
function attestByDelegation(
DelegatedProxyAttestationRequest calldata delegatedRequest
) public payable virtual returns (bytes32) {
_verifyAttest(delegatedRequest);
bytes32 uid = _eas.attest{ value: msg.value }(
AttestationRequest({ schema: delegatedRequest.schema, data: delegatedRequest.data })
);
_attesters[uid] = delegatedRequest.attester;
return uid;
}
/// @notice Attests to multiple schemas using via provided EIP712 signatures.
/// @param multiDelegatedRequests The arguments of the delegated multi attestation requests. The requests should be
/// grouped by distinct schema ids to benefit from the best batching optimization.
/// @return The UIDs of the new attestations.
///
/// Example:
/// multiAttestByDelegation([{
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: [{
/// recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
/// expirationTime: 1673891048,
/// revocable: true,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x1234',
/// value: 0
/// },
/// {
/// recipient: '0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf',
/// expirationTime: 0,
/// revocable: false,
/// refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
/// data: '0x00',
/// value: 0
/// }],
/// signatures: [{
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// {
/// v: 28,
/// r: '0x487s...67bb',
/// s: '0x12ad...2366'
/// }],
/// attester: '0x1D86495b2A7B524D747d2839b3C645Bed32e8CF4',
/// deadline: 1673891048
/// }])
function multiAttestByDelegation(
MultiDelegatedProxyAttestationRequest[] calldata multiDelegatedRequests
) public payable virtual returns (bytes32[] memory) {
uint256 length = multiDelegatedRequests.length;
MultiAttestationRequest[] memory multiRequests = new MultiAttestationRequest[](length);
for (uint256 i = 0; i < length; i = uncheckedInc(i)) {
MultiDelegatedProxyAttestationRequest calldata multiDelegatedRequest = multiDelegatedRequests[i];
AttestationRequestData[] calldata data = multiDelegatedRequest.data;
// Ensure that no inputs are missing.
uint256 dataLength = data.length;
if (dataLength == 0 || dataLength != multiDelegatedRequest.signatures.length) {
revert InvalidLength();
}
// Verify EIP712 signatures. Please note that the signatures are assumed to be signed with increasing nonces.
for (uint256 j = 0; j < dataLength; j = uncheckedInc(j)) {
_verifyAttest(
DelegatedProxyAttestationRequest({
schema: multiDelegatedRequest.schema,
data: data[j],
signature: multiDelegatedRequest.signatures[j],
attester: multiDelegatedRequest.attester,
deadline: multiDelegatedRequest.deadline
})
);
}
multiRequests[i] = MultiAttestationRequest({ schema: multiDelegatedRequest.schema, data: data });
}
bytes32[] memory uids = _eas.multiAttest{ value: msg.value }(multiRequests);
// Store all attesters, according to the order of the attestation requests.
uint256 uidCounter = 0;
for (uint256 i = 0; i < length; i = uncheckedInc(i)) {
MultiDelegatedProxyAttestationRequest calldata multiDelegatedRequest = multiDelegatedRequests[i];
AttestationRequestData[] calldata data = multiDelegatedRequest.data;
uint256 dataLength = data.length;
for (uint256 j = 0; j < dataLength; j = uncheckedInc(j)) {
_attesters[uids[uidCounter]] = multiDelegatedRequest.attester;
unchecked {
++uidCounter;
}
}
}
return uids;
}
/// @notice Revokes an existing attestation to a specific schema via the provided EIP712 signature.
/// @param delegatedRequest The arguments of the delegated revocation request.
///
/// Example:
/// revokeByDelegation({
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: {
/// uid: '0xcbbc12102578c642a0f7b34fe7111e41afa25683b6cd7b5a14caf90fa14d24ba',
/// value: 0
/// },
/// signature: {
/// v: 27,
/// r: '0xb593...7142',
/// s: '0x0f5b...2cce'
/// },
/// revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992',
/// deadline: 1673891048
/// })
function revokeByDelegation(DelegatedProxyRevocationRequest calldata delegatedRequest) public payable virtual {
_verifyRevoke(delegatedRequest);
return
_eas.revoke{ value: msg.value }(
RevocationRequest({ schema: delegatedRequest.schema, data: delegatedRequest.data })
);
}
/// @notice Revokes existing attestations to multiple schemas via provided EIP712 signatures.
/// @param multiDelegatedRequests The arguments of the delegated multi revocation attestation requests. The requests
/// should be grouped by distinct schema ids to benefit from the best batching optimization.
///
/// Example:
/// multiRevokeByDelegation([{
/// schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc',
/// data: [{
/// uid: '0x211296a1ca0d7f9f2cfebf0daaa575bea9b20e968d81aef4e743d699c6ac4b25',
/// value: 1000
/// },
/// {
/// uid: '0xe160ac1bd3606a287b4d53d5d1d6da5895f65b4b4bab6d93aaf5046e48167ade',
/// value: 0
/// }],
/// signatures: [{
/// v: 28,
/// r: '0x148c...b25b',
/// s: '0x5a72...be22'
/// },
/// {
/// v: 28,
/// r: '0x487s...67bb',
/// s: '0x12ad...2366'
/// }],
/// revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992',
/// deadline: 1673891048
/// }])
function multiRevokeByDelegation(
MultiDelegatedProxyRevocationRequest[] calldata multiDelegatedRequests
) public payable virtual {
uint256 length = multiDelegatedRequests.length;
MultiRevocationRequest[] memory multiRequests = new MultiRevocationRequest[](length);
for (uint256 i = 0; i < length; i = uncheckedInc(i)) {
MultiDelegatedProxyRevocationRequest memory multiDelegatedRequest = multiDelegatedRequests[i];
RevocationRequestData[] memory data = multiDelegatedRequest.data;
// Ensure that no inputs are missing.
uint256 dataLength = data.length;
if (dataLength == 0 || dataLength != multiDelegatedRequest.signatures.length) {
revert InvalidLength();
}
// Verify EIP712 signatures. Please note that the signatures are assumed to be signed with increasing nonces.
for (uint256 j = 0; j < dataLength; j = uncheckedInc(j)) {
RevocationRequestData memory requestData = data[j];
_verifyRevoke(
DelegatedProxyRevocationRequest({
schema: multiDelegatedRequest.schema,
data: requestData,
signature: multiDelegatedRequest.signatures[j],
revoker: multiDelegatedRequest.revoker,
deadline: multiDelegatedRequest.deadline
})
);
}
multiRequests[i] = MultiRevocationRequest({ schema: multiDelegatedRequest.schema, data: data });
}
_eas.multiRevoke{ value: msg.value }(multiRequests);
}
/// @dev Verifies delegated attestation request.
/// @param request The arguments of the delegated attestation request.
function _verifyAttest(DelegatedProxyAttestationRequest memory request) internal {
if (request.deadline != NO_EXPIRATION_TIME && request.deadline < _time()) {
revert DeadlineExpired();
}
AttestationRequestData memory data = request.data;
Signature memory signature = request.signature;
_verifyUnusedSignature(signature);
bytes32 digest = _hashTypedDataV4(
keccak256(
abi.encode(
ATTEST_PROXY_TYPEHASH,
request.attester,
request.schema,
data.recipient,
data.expirationTime,
data.revocable,
data.refUID,
keccak256(data.data),
data.value,
request.deadline
)
)
);
if (ECDSA.recover(digest, signature.v, signature.r, signature.s) != request.attester) {
revert InvalidSignature();
}
}
/// @dev Verifies delegated revocation request.
/// @param request The arguments of the delegated revocation request.
function _verifyRevoke(DelegatedProxyRevocationRequest memory request) internal {
if (request.deadline != NO_EXPIRATION_TIME && request.deadline < _time()) {
revert DeadlineExpired();
}
RevocationRequestData memory data = request.data;
// Allow only original attesters to revoke their attestations.
address attester = _attesters[data.uid];
if (attester == address(0)) {
revert NotFound();
}
if (attester != msg.sender) {
revert AccessDenied();
}
Signature memory signature = request.signature;
_verifyUnusedSignature(signature);
bytes32 digest = _hashTypedDataV4(
keccak256(
abi.encode(
REVOKE_PROXY_TYPEHASH,
request.revoker,
request.schema,
data.uid,
data.value,
request.deadline
)
)
);
if (ECDSA.recover(digest, signature.v, signature.r, signature.s) != request.revoker) {
revert InvalidSignature();
}
}
/// @dev Ensures that the provided EIP712 signature wasn't already used.
/// @param signature The EIP712 signature data.
function _verifyUnusedSignature(Signature memory signature) internal {
bytes memory packedSignature = abi.encodePacked(signature.v, signature.r, signature.s);
if (_signatures[packedSignature]) {
revert UsedSignature();
}
_signatures[packedSignature] = true;
}
/// @dev Returns the current's block timestamp. This method is overridden during tests and used to simulate the
/// current block time.
function _time() internal view virtual returns (uint64) {
return uint64(block.timestamp);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { ISemver } from "./ISemver.sol";
/// @title Semver
/// @notice A simple contract for managing contract versions.
contract Semver is ISemver {
// Contract's major version number.
uint256 private immutable _major;
// Contract's minor version number.
uint256 private immutable _minor;
// Contract's patch version number.
uint256 private immutable _patch;
/// @dev Create a new Semver instance.
/// @param major Major version number.
/// @param minor Minor version number.
/// @param patch Patch version number.
constructor(uint256 major, uint256 minor, uint256 patch) {
_major = major;
_minor = minor;
_patch = patch;
}
/// @notice Returns the full semver contract version.
/// @return Semver contract version as a string.
function version() external view returns (string memory) {
return
string(
abi.encodePacked(Strings.toString(_major), ".", Strings.toString(_minor), ".", Strings.toString(_patch))
);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.20;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError, bytes32) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.20;
import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*
* @custom:oz-upgrades-unsafe-allow state-variable-immutable
*/
abstract contract EIP712 is IERC5267 {
using ShortStrings for *;
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
ShortString private immutable _name;
ShortString private immutable _version;
string private _nameFallback;
string private _versionFallback;
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
_name = name.toShortStringWithFallback(_nameFallback);
_version = version.toShortStringWithFallback(_versionFallback);
_hashedName = keccak256(bytes(name));
_hashedVersion = keccak256(bytes(version));
_cachedChainId = block.chainid;
_cachedDomainSeparator = _buildDomainSeparator();
_cachedThis = address(this);
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
return _cachedDomainSeparator;
} else {
return _buildDomainSeparator();
}
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
}
/**
* @dev See {IERC-5267}.
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: By default this function reads _name which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Name() internal view returns (string memory) {
return _name.toStringWithFallback(_nameFallback);
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: By default this function reads _version which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Version() internal view returns (string memory) {
return _version.toStringWithFallback(_versionFallback);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title ISemver
/// @notice A semver interface.
interface ISemver {
/// @notice Returns the full semver contract version.
/// @return Semver contract version as a string.
function version() external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { ISemver } from "./ISemver.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
/// @notice A struct representing a record for a submitted schema.
struct SchemaRecord {
bytes32 uid; // The unique identifier of the schema.
ISchemaResolver resolver; // Optional schema resolver.
bool revocable; // Whether the schema allows revocations explicitly.
string schema; // Custom specification of the schema (e.g., an ABI).
}
/// @title ISchemaRegistry
/// @notice The interface of global attestation schemas for the Ethereum Attestation Service protocol.
interface ISchemaRegistry is ISemver {
/// @notice Emitted when a new schema has been registered
/// @param uid The schema UID.
/// @param registerer The address of the account used to register the schema.
/// @param schema The schema data.
event Registered(bytes32 indexed uid, address indexed registerer, SchemaRecord schema);
/// @notice Submits and reserves a new schema
/// @param schema The schema data schema.
/// @param resolver An optional schema resolver.
/// @param revocable Whether the schema allows revocations explicitly.
/// @return The UID of the new schema.
function register(string calldata schema, ISchemaResolver resolver, bool revocable) external returns (bytes32);
/// @notice Returns an existing schema by UID
/// @param uid The UID of the schema to retrieve.
/// @return The schema data members.
function getSchema(bytes32 uid) external view returns (SchemaRecord memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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 Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { ISemver } from "../ISemver.sol";
import { Attestation } from "../Common.sol";
/// @title ISchemaResolver
/// @notice The interface of an optional schema resolver.
interface ISchemaResolver is ISemver {
/// @notice Checks if the resolver can be sent ETH.
/// @return Whether the resolver supports ETH transfers.
function isPayable() external pure returns (bool);
/// @notice Processes an attestation and verifies whether it's valid.
/// @param attestation The new attestation.
/// @return Whether the attestation is valid.
function attest(Attestation calldata attestation) external payable returns (bool);
/// @notice Processes multiple attestations and verifies whether they are valid.
/// @param attestations The new attestations.
/// @param values Explicit ETH amounts which were sent with each attestation.
/// @return Whether all the attestations are valid.
function multiAttest(
Attestation[] calldata attestations,
uint256[] calldata values
) external payable returns (bool);
/// @notice Processes an attestation revocation and verifies if it can be revoked.
/// @param attestation The existing attestation to be revoked.
/// @return Whether the attestation can be revoked.
function revoke(Attestation calldata attestation) external payable returns (bool);
/// @notice Processes revocation of multiple attestation and verifies they can be revoked.
/// @param attestations The existing attestations to be revoked.
/// @param values Explicit ETH amounts which were sent with each revocation.
/// @return Whether the attestations can be revoked.
function multiRevoke(
Attestation[] calldata attestations,
uint256[] calldata values
) external payable returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
* ShortString private immutable _name;
* string private _nameFallback;
*
* constructor(string memory contractName) {
* _name = contractName.toShortStringWithFallback(_nameFallback);
* }
*
* function name() external view returns (string memory) {
* return _name.toStringWithFallback(_nameFallback);
* }
* }
* ```
*/
library ShortStrings {
// Used as an identifier for strings longer than 31 bytes.
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
/**
* @dev Encode a string of at most 31 chars into a `ShortString`.
*
* This will trigger a `StringTooLong` error is the input string is too long.
*/
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory bstr = bytes(str);
if (bstr.length > 31) {
revert StringTooLong(str);
}
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
}
/**
* @dev Decode a `ShortString` back to a "normal" string.
*/
function toString(ShortString sstr) internal pure returns (string memory) {
uint256 len = byteLength(sstr);
// using `new string(len)` would work locally but is not memory safe.
string memory str = new string(32);
/// @solidity memory-safe-assembly
assembly {
mstore(str, len)
mstore(add(str, 0x20), sstr)
}
return str;
}
/**
* @dev Return the length of a `ShortString`.
*/
function byteLength(ShortString sstr) internal pure returns (uint256) {
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
if (result > 31) {
revert InvalidShortString();
}
return result;
}
/**
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
*/
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
if (bytes(value).length < 32) {
return toShortString(value);
} else {
StorageSlot.getStringSlot(store).value = value;
return ShortString.wrap(FALLBACK_SENTINEL);
}
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return toString(value);
} else {
return store;
}
}
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
*/
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return byteLength(value);
} else {
return bytes(store).length;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)
pragma solidity ^0.8.20;
import {Strings} from "../Strings.sol";
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @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(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
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
}
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IEAS","name":"eas","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessDenied","type":"error"},{"inputs":[],"name":"DeadlineExpired","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[],"name":"InvalidEAS","type":"error"},{"inputs":[],"name":"InvalidLength","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"UsedSignature","type":"error"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData","name":"data","type":"tuple"}],"internalType":"struct AttestationRequest","name":"request","type":"tuple"}],"name":"attest","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData","name":"data","type":"tuple"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature","name":"signature","type":"tuple"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct DelegatedProxyAttestationRequest","name":"delegatedRequest","type":"tuple"}],"name":"attestByDelegation","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAttestTypeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"uid","type":"bytes32"}],"name":"getAttester","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEAS","outputs":[{"internalType":"contract IEAS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRevokeTypeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAttester","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData[]","name":"data","type":"tuple[]"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature[]","name":"signatures","type":"tuple[]"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct MultiDelegatedProxyAttestationRequest[]","name":"multiDelegatedRequests","type":"tuple[]"}],"name":"multiAttestByDelegation","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData[]","name":"data","type":"tuple[]"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature[]","name":"signatures","type":"tuple[]"},{"internalType":"address","name":"revoker","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct MultiDelegatedProxyRevocationRequest[]","name":"multiDelegatedRequests","type":"tuple[]"}],"name":"multiRevokeByDelegation","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData","name":"data","type":"tuple"}],"internalType":"struct RevocationRequest","name":"request","type":"tuple"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData","name":"data","type":"tuple"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature","name":"signature","type":"tuple"},{"internalType":"address","name":"revoker","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct DelegatedProxyRevocationRequest","name":"delegatedRequest","type":"tuple"}],"name":"revokeByDelegation","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"enable","type":"bool"}],"name":"toggleAttester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
610200604052348015610010575f80fd5b50604051614c23380380614c238339818101604052810190610032919061051c565b33816040518060400160405280600d81526020017f417474657374657250726f787900000000000000000000000000000000000000815250806040518060400160405280600581526020017f312e332e30000000000000000000000000000000000000000000000000000000815250600160035f82608081815250508160a081815250508060c081815250505050506100d45f836102d460201b90919060201c565b61018081815250506100f06001826102d460201b90919060201c565b6101a08181525050818051906020012061014081815250508080519060200120610160818152505046610100818152505061012f61032160201b60201c565b60e081815250503073ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff168152505050505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036101d2576040517f83780ffe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166101c08173ffffffffffffffffffffffffffffffffffffffff168152505080600290816102169190610781565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610289575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610280919061085f565b60405180910390fd5b6102988161037c60201b60201c565b508073ffffffffffffffffffffffffffffffffffffffff166101e08173ffffffffffffffffffffffffffffffffffffffff168152505050610a09565b5f6020835110156102f5576102ee8361043f60201b60201c565b905061031b565b82610305836104a460201b60201c565b5f0190816103139190610781565b5060ff5f1b90505b92915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6101405161016051463060405160200161036195949392919061089f565b60405160208183030381529060405280519060200120905090565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80829050601f8151111561048b57826040517f305a27a90000000000000000000000000000000000000000000000000000000081526004016104829190610956565b60405180910390fd5b805181610497906109a3565b5f1c175f1b915050919050565b5f819050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104da826104b1565b9050919050565b5f6104eb826104d0565b9050919050565b6104fb816104e1565b8114610505575f80fd5b50565b5f81519050610516816104f2565b92915050565b5f60208284031215610531576105306104ad565b5b5f61053e84828501610508565b91505092915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806105c257607f821691505b6020821081036105d5576105d461057e565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026106377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826105fc565b61064186836105fc565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61068561068061067b84610659565b610662565b610659565b9050919050565b5f819050919050565b61069e8361066b565b6106b26106aa8261068c565b848454610608565b825550505050565b5f90565b6106c66106ba565b6106d1818484610695565b505050565b5b818110156106f4576106e95f826106be565b6001810190506106d7565b5050565b601f8211156107395761070a816105db565b610713846105ed565b81016020851015610722578190505b61073661072e856105ed565b8301826106d6565b50505b505050565b5f82821c905092915050565b5f6107595f198460080261073e565b1980831691505092915050565b5f610771838361074a565b9150826002028217905092915050565b61078a82610547565b67ffffffffffffffff8111156107a3576107a2610551565b5b6107ad82546105ab565b6107b88282856106f8565b5f60209050601f8311600181146107e9575f84156107d7578287015190505b6107e18582610766565b865550610848565b601f1984166107f7866105db565b5f5b8281101561081e578489015182556001820191506020850194506020810190506107f9565b8683101561083b5784890151610837601f89168261074a565b8355505b6001600288020188555050505b505050505050565b610859816104d0565b82525050565b5f6020820190506108725f830184610850565b92915050565b5f819050919050565b61088a81610878565b82525050565b61089981610659565b82525050565b5f60a0820190506108b25f830188610881565b6108bf6020830187610881565b6108cc6040830186610881565b6108d96060830185610890565b6108e66080830184610850565b9695505050505050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61092882610547565b61093281856108f0565b9350610942818560208601610900565b61094b8161090e565b840191505092915050565b5f6020820190508181035f83015261096e818461091e565b905092915050565b5f81519050919050565b5f819050602082019050919050565b5f61099a8251610878565b80915050919050565b5f6109ad82610976565b826109b784610980565b90506109c28161098f565b92506020821015610a02576109fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff836020036008026105fc565b831692505b5050919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e051614174610aaf5f395f81816108cf015261102d01525f8181610635015281816109fc01528181610d5301528181610f1a015261150801525f61180c01525f6117d101525f611e0401525f611de301525f6119eb01525f611a4101525f611a6a01525f6109af01525f61098601525f61095d01526141745ff3fe608060405260043610610113575f3560e01c8063715018a61161009f578063b6ebe53911610063578063b6ebe53914610353578063b83010d31461038f578063ed24911d146103b9578063f17325e7146103e3578063f2fde38b1461041f57610113565b8063715018a61461029757806384b0196e146102ad5780638da5cb5b146102dd5780639541152514610307578063a6d4dbc71461033757610113565b806317d7de7c116100e657806317d7de7c146101c15780633c042715146101eb578063469262671461021b57806354fd4d501461024357806365c40b9c1461026d57610113565b80630eabf660146101175780630ee489481461013357806310d736d51461015b57806312b11a1714610197575b5f80fd5b610131600480360381019061012c9190612247565b610447565b005b34801561013e575f80fd5b5061015960048036038101906101549190612321565b6106c1565b005b348015610166575f80fd5b50610181600480360381019061017c9190612392565b610721565b60405161018e91906123cc565b60405180910390f35b3480156101a2575f80fd5b506101ab61075a565b6040516101b891906123f4565b60405180910390f35b3480156101cc575f80fd5b506101d5610783565b6040516101e2919061247d565b60405180910390f35b610205600480360381019061020091906124bf565b610813565b60405161021291906123f4565b60405180910390f35b348015610226575f80fd5b50610241600480360381019061023c9190612524565b6108c4565b005b34801561024e575f80fd5b50610257610956565b604051610264919061247d565b60405180910390f35b348015610278575f80fd5b506102816109f9565b60405161028e91906125aa565b60405180910390f35b3480156102a2575f80fd5b506102ab610a20565b005b3480156102b8575f80fd5b506102c1610a33565b6040516102d497969594939291906126cc565b60405180910390f35b3480156102e8575f80fd5b506102f1610ad8565b6040516102fe91906123cc565b60405180910390f35b610321600480360381019061031c91906127a3565b610b00565b60405161032e91906128a5565b60405180910390f35b610351600480360381019061034c91906128e4565b610eff565b005b34801561035e575f80fd5b5061037960048036038101906103749190612910565b610fcd565b604051610386919061294a565b60405180910390f35b34801561039a575f80fd5b506103a3610fea565b6040516103b091906123f4565b60405180910390f35b3480156103c4575f80fd5b506103cd611013565b6040516103da91906123f4565b60405180910390f35b3480156103ee575f80fd5b5061040960048036038101906104049190612981565b611021565b60405161041691906123f4565b60405180910390f35b34801561042a575f80fd5b5061044560048036038101906104409190612910565b6110cb565b005b5f8282905090505f8167ffffffffffffffff811115610469576104686129c8565b5b6040519080825280602002602001820160405280156104a257816020015b61048f61219d565b8152602001906001900390816104875790505b5090505f5b82811015610632575f8585838181106104c3576104c26129f5565b5b90506020028101906104d59190612a2e565b6104de90612e34565b90505f816020015190505f815190505f81148061050057508260400151518114155b15610537576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b818110156105e8575f838281518110610555576105546129f5565b5b602002602001015190506105d76040518060a00160405280875f0151815260200183815260200187604001518581518110610593576105926129f5565b5b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff1681525061114f565b506105e1816113dc565b9050610539565b506040518060400160405280845f0151815260200183815250858581518110610614576106136129f5565b5b602002602001018190525050505061062b816113dc565b90506104a7565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634cb7e9e534836040518363ffffffff1660e01b815260040161068d9190613010565b5f604051808303818588803b1580156106a4575f80fd5b505af11580156106b6573d5f803e3d5ffd5b505050505050505050565b6106c96113e8565b8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60035f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f7fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15f1b905090565b6060600280546107929061305d565b80601f01602080910402602001604051908101604052809291908181526020018280546107be9061305d565b80156108095780601f106107e057610100808354040283529160200191610809565b820191905f5260205f20905b8154815290600101906020018083116107ec57829003601f168201915b5050505050905090565b5f61082f8260a001602081019061082a9190612910565b61146f565b81806020019061083f919061308d565b5f0160208101906108509190612910565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108b4576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108bd826114f2565b9050919050565b6108cd3361146f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166346926267826040518263ffffffff1660e01b81526004016109269190613164565b5f604051808303815f87803b15801561093d575f80fd5b505af115801561094f573d5f803e3d5ffd5b5050505050565b60606109817f000000000000000000000000000000000000000000000000000000000000000061163c565b6109aa7f000000000000000000000000000000000000000000000000000000000000000061163c565b6109d37f000000000000000000000000000000000000000000000000000000000000000061163c565b6040516020016109e593929190613201565b604051602081830303815290604052905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b610a286113e8565b610a315f611706565b565b5f6060805f805f6060610a446117c9565b610a4c611803565b46305f801b5f67ffffffffffffffff811115610a6b57610a6a6129c8565b5b604051908082528060200260200182016040528015610a995781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60605f8383905090505f8167ffffffffffffffff811115610b2457610b236129c8565b5b604051908082528060200260200182016040528015610b5d57816020015b610b4a6121b9565b815260200190600190039081610b425790505b5090505f5b82811015610d4f5736868683818110610b7e57610b7d6129f5565b5b9050602002810190610b909190613247565b9050365f828060200190610ba4919061326e565b915091505f8282905090505f811480610bce5750838060400190610bc891906132d0565b90508114155b15610c05576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610cf857610ce86040518060a00160405280875f01358152602001868685818110610c3957610c386129f5565b5b9050602002810190610c4b919061308d565b610c549061349b565b8152602001878060400190610c6991906132d0565b85818110610c7a57610c796129f5565b5b905060600201803603810190610c9091906134ad565b8152602001876060016020810190610ca89190612910565b73ffffffffffffffffffffffffffffffffffffffff168152602001876080016020810190610cd691906134d8565b67ffffffffffffffff1681525061183e565b610cf1816113dc565b9050610c07565b506040518060400160405280855f01358152602001848490610d1a91906135b4565b815250868681518110610d3057610d2f6129f5565b5b602002602001018190525050505050610d48816113dc565b9050610b62565b505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b8152600401610dab919061387d565b5f6040518083038185885af1158015610dc6573d5f803e3d5ffd5b50505050506040513d5f823e3d601f19601f82011682018060405250810190610def9190613971565b90505f805b84811015610ef15736888883818110610e1057610e0f6129f5565b5b9050602002810190610e229190613247565b9050365f828060200190610e36919061326e565b915091505f8282905090505f5b81811015610edc57846060016020810190610e5e9190612910565b60035f8a8a81518110610e7457610e736129f5565b5b602002602001015181526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550866001019650610ed5816113dc565b9050610e43565b5050505050610eea816113dc565b9050610df4565b508194505050505092915050565b610f1881803603810190610f139190613a42565b61114f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166346926267346040518060400160405280855f0135815260200185602001803603810190610f7d9190613a6e565b8152506040518363ffffffff1660e01b8152600401610f9c9190613ac6565b5f604051808303818588803b158015610fb3575f80fd5b505af1158015610fc5573d5f803e3d5ffd5b505050505050565b6006602052805f5260405f205f915054906101000a900460ff1681565b5f7f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d5f1b905090565b5f61101c6119e8565b905090565b5f61102b3361146f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f17325e7836040518263ffffffff1660e01b81526004016110849190613ce4565b6020604051808303815f875af11580156110a0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c49190613d04565b9050919050565b6110d36113e8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611143575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161113a91906123cc565b60405180910390fd5b61114c81611706565b50565b5f67ffffffffffffffff16816080015167ffffffffffffffff1614158015611195575061117a611a9e565b67ffffffffffffffff16816080015167ffffffffffffffff16105b156111cc576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816020015190505f60035f835f015181526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611270576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112d5576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f836040015190506112e681611aa5565b5f6113547f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d5f1b8660600151875f0151875f015188602001518a6080015160405160200161133996959493929190613d3e565b60405160208183030381529060405280519060200120611b73565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661138882845f015185602001518660400151611b8c565b73ffffffffffffffffffffffffffffffffffffffff16146113d5576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b5f600182019050919050565b6113f0611bba565b73ffffffffffffffffffffffffffffffffffffffff1661140e610ad8565b73ffffffffffffffffffffffffffffffffffffffff161461146d57611431611bba565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161146491906123cc565b60405180910390fd5b565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166114ef576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f6115058261150090613e42565b61183e565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f17325e7346040518060400160405280875f01358152602001878060200190611567919061308d565b6115709061349b565b8152506040518363ffffffff1660e01b815260040161158f9190613e8e565b60206040518083038185885af11580156115ab573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906115d09190613d04565b90508260a00160208101906115e59190612910565b60035f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080915050919050565b60605f600161164a84611bc1565b0190505f8167ffffffffffffffff811115611668576116676129c8565b5b6040519080825280601f01601f19166020018201604052801561169a5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156116fb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816116f0576116ef613eae565b5b0494505f85036116a7575b819350505050919050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606117fe5f7f0000000000000000000000000000000000000000000000000000000000000000611d1290919063ffffffff16565b905090565b606061183960017f0000000000000000000000000000000000000000000000000000000000000000611d1290919063ffffffff16565b905090565b5f67ffffffffffffffff16816080015167ffffffffffffffff16141580156118845750611869611a9e565b67ffffffffffffffff16816080015167ffffffffffffffff16105b156118bb576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816020015190505f826040015190506118d481611aa5565b5f6119617fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15f1b8560600151865f0151865f01518760200151886040015189606001518a60800151805190602001208b60a001518d608001516040516020016119469a99989796959493929190613edb565b60405160208183030381529060405280519060200120611b73565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661199582845f015185602001518660400151611b8c565b73ffffffffffffffffffffffffffffffffffffffff16146119e2576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015611a6357507f000000000000000000000000000000000000000000000000000000000000000046145b15611a90577f00000000000000000000000000000000000000000000000000000000000000009050611a9b565b611a98611dbf565b90505b90565b5f42905090565b5f815f015182602001518360400151604051602001611ac693929190613fc9565b6040516020818303038152906040529050600481604051611ae7919061403f565b90815260200160405180910390205f9054906101000a900460ff1615611b39576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600482604051611b4b919061403f565b90815260200160405180910390205f6101000a81548160ff0219169083151502179055505050565b5f611b85611b7f6119e8565b83611e54565b9050919050565b5f805f80611b9c88888888611e94565b925092509250611bac8282611f7b565b829350505050949350505050565b5f33905090565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c1d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611c1357611c12613eae565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611c5a576d04ee2d6d415b85acef81000000008381611c5057611c4f613eae565b5b0492506020810190505b662386f26fc100008310611c8957662386f26fc100008381611c7f57611c7e613eae565b5b0492506010810190505b6305f5e1008310611cb2576305f5e1008381611ca857611ca7613eae565b5b0492506008810190505b6127108310611cd7576127108381611ccd57611ccc613eae565b5b0492506004810190505b60648310611cfa5760648381611cf057611cef613eae565b5b0492506002810190505b600a8310611d09576001810190505b80915050919050565b606060ff5f1b8314611d2e57611d27836120dd565b9050611db9565b818054611d3a9061305d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d669061305d565b8015611db15780601f10611d8857610100808354040283529160200191611db1565b820191905f5260205f20905b815481529060010190602001808311611d9457829003601f168201915b505050505090505b92915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000004630604051602001611e39959493929190614055565b60405160208183030381529060405280519060200120905090565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c1115611ed0575f600385925092509250611f71565b5f6001888888886040515f8152602001604052604051611ef394939291906140b5565b6020604051602081039080840390855afa158015611f13573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f64575f60015f801b93509350935050611f71565b805f805f1b935093509350505b9450945094915050565b5f6003811115611f8e57611f8d6140f8565b5b826003811115611fa157611fa06140f8565b5b03156120d95760016003811115611fbb57611fba6140f8565b5b826003811115611fce57611fcd6140f8565b5b03612005576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115612019576120186140f8565b5b82600381111561202c5761202b6140f8565b5b0361207057805f1c6040517ffce698f70000000000000000000000000000000000000000000000000000000081526004016120679190614125565b60405180910390fd5b600380811115612083576120826140f8565b5b826003811115612096576120956140f8565b5b036120d857806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016120cf91906123f4565b60405180910390fd5b5b5050565b60605f6120e98361214f565b90505f602067ffffffffffffffff811115612107576121066129c8565b5b6040519080825280601f01601f1916602001820160405280156121395781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b5f8060ff835f1c169050601f811115612194576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60405180604001604052805f8019168152602001606081525090565b60405180604001604052805f8019168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612207576122066121e6565b5b8235905067ffffffffffffffff811115612224576122236121ea565b5b6020830191508360208202830111156122405761223f6121ee565b5b9250929050565b5f806020838503121561225d5761225c6121de565b5b5f83013567ffffffffffffffff81111561227a576122796121e2565b5b612286858286016121f2565b92509250509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6122bb82612292565b9050919050565b6122cb816122b1565b81146122d5575f80fd5b50565b5f813590506122e6816122c2565b92915050565b5f8115159050919050565b612300816122ec565b811461230a575f80fd5b50565b5f8135905061231b816122f7565b92915050565b5f8060408385031215612337576123366121de565b5b5f612344858286016122d8565b92505060206123558582860161230d565b9150509250929050565b5f819050919050565b6123718161235f565b811461237b575f80fd5b50565b5f8135905061238c81612368565b92915050565b5f602082840312156123a7576123a66121de565b5b5f6123b48482850161237e565b91505092915050565b6123c6816122b1565b82525050565b5f6020820190506123df5f8301846123bd565b92915050565b6123ee8161235f565b82525050565b5f6020820190506124075f8301846123e5565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61244f8261240d565b6124598185612417565b9350612469818560208601612427565b61247281612435565b840191505092915050565b5f6020820190508181035f8301526124958184612445565b905092915050565b5f80fd5b5f60e082840312156124b6576124b561249d565b5b81905092915050565b5f602082840312156124d4576124d36121de565b5b5f82013567ffffffffffffffff8111156124f1576124f06121e2565b5b6124fd848285016124a1565b91505092915050565b5f6060828403121561251b5761251a61249d565b5b81905092915050565b5f60608284031215612539576125386121de565b5b5f61254684828501612506565b91505092915050565b5f819050919050565b5f61257261256d61256884612292565b61254f565b612292565b9050919050565b5f61258382612558565b9050919050565b5f61259482612579565b9050919050565b6125a48161258a565b82525050565b5f6020820190506125bd5f83018461259b565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6125f7816125c3565b82525050565b5f819050919050565b61260f816125fd565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612647816125fd565b82525050565b5f612658838361263e565b60208301905092915050565b5f602082019050919050565b5f61267a82612615565b612684818561261f565b935061268f8361262f565b805f5b838110156126bf5781516126a6888261264d565b97506126b183612664565b925050600181019050612692565b5085935050505092915050565b5f60e0820190506126df5f83018a6125ee565b81810360208301526126f18189612445565b905081810360408301526127058188612445565b90506127146060830187612606565b61272160808301866123bd565b61272e60a08301856123e5565b81810360c08301526127408184612670565b905098975050505050505050565b5f8083601f840112612763576127626121e6565b5b8235905067ffffffffffffffff8111156127805761277f6121ea565b5b60208301915083602082028301111561279c5761279b6121ee565b5b9250929050565b5f80602083850312156127b9576127b86121de565b5b5f83013567ffffffffffffffff8111156127d6576127d56121e2565b5b6127e28582860161274e565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6128208161235f565b82525050565b5f6128318383612817565b60208301905092915050565b5f602082019050919050565b5f612853826127ee565b61285d81856127f8565b935061286883612808565b805f5b8381101561289857815161287f8882612826565b975061288a8361283d565b92505060018101905061286b565b5085935050505092915050565b5f6020820190508181035f8301526128bd8184612849565b905092915050565b5f61010082840312156128db576128da61249d565b5b81905092915050565b5f61010082840312156128fa576128f96121de565b5b5f612907848285016128c5565b91505092915050565b5f60208284031215612925576129246121de565b5b5f612932848285016122d8565b91505092915050565b612944816122ec565b82525050565b5f60208201905061295d5f83018461293b565b92915050565b5f604082840312156129785761297761249d565b5b81905092915050565b5f60208284031215612996576129956121de565b5b5f82013567ffffffffffffffff8111156129b3576129b26121e2565b5b6129bf84828501612963565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8235600160a003833603038112612a4957612a48612a22565b5b80830191505092915050565b5f80fd5b612a6282612435565b810181811067ffffffffffffffff82111715612a8157612a806129c8565b5b80604052505050565b5f612a936121d5565b9050612a9f8282612a59565b919050565b5f80fd5b5f67ffffffffffffffff821115612ac257612ac16129c8565b5b602082029050602081019050919050565b612adc816125fd565b8114612ae6575f80fd5b50565b5f81359050612af781612ad3565b92915050565b5f60408284031215612b1257612b11612a55565b5b612b1c6040612a8a565b90505f612b2b8482850161237e565b5f830152506020612b3e84828501612ae9565b60208301525092915050565b5f612b5c612b5784612aa8565b612a8a565b90508083825260208201905060408402830185811115612b7f57612b7e6121ee565b5b835b81811015612ba85780612b948882612afd565b845260208401935050604081019050612b81565b5050509392505050565b5f82601f830112612bc657612bc56121e6565b5b8135612bd6848260208601612b4a565b91505092915050565b5f67ffffffffffffffff821115612bf957612bf86129c8565b5b602082029050602081019050919050565b5f60ff82169050919050565b612c1f81612c0a565b8114612c29575f80fd5b50565b5f81359050612c3a81612c16565b92915050565b5f60608284031215612c5557612c54612a55565b5b612c5f6060612a8a565b90505f612c6e84828501612c2c565b5f830152506020612c818482850161237e565b6020830152506040612c958482850161237e565b60408301525092915050565b5f612cb3612cae84612bdf565b612a8a565b90508083825260208201905060608402830185811115612cd657612cd56121ee565b5b835b81811015612cff5780612ceb8882612c40565b845260208401935050606081019050612cd8565b5050509392505050565b5f82601f830112612d1d57612d1c6121e6565b5b8135612d2d848260208601612ca1565b91505092915050565b5f67ffffffffffffffff82169050919050565b612d5281612d36565b8114612d5c575f80fd5b50565b5f81359050612d6d81612d49565b92915050565b5f60a08284031215612d8857612d87612a55565b5b612d9260a0612a8a565b90505f612da18482850161237e565b5f83015250602082013567ffffffffffffffff811115612dc457612dc3612aa4565b5b612dd084828501612bb2565b602083015250604082013567ffffffffffffffff811115612df457612df3612aa4565b5b612e0084828501612d09565b6040830152506060612e14848285016122d8565b6060830152506080612e2884828501612d5f565b60808301525092915050565b5f612e3f3683612d73565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b604082015f820151612eac5f850182612817565b506020820151612ebf602085018261263e565b50505050565b5f612ed08383612e98565b60408301905092915050565b5f602082019050919050565b5f612ef282612e6f565b612efc8185612e79565b9350612f0783612e89565b805f5b83811015612f37578151612f1e8882612ec5565b9750612f2983612edc565b925050600181019050612f0a565b5085935050505092915050565b5f604083015f830151612f595f860182612817565b5060208301518482036020860152612f718282612ee8565b9150508091505092915050565b5f612f898383612f44565b905092915050565b5f602082019050919050565b5f612fa782612e46565b612fb18185612e50565b935083602082028501612fc385612e60565b805f5b85811015612ffe5784840389528151612fdf8582612f7e565b9450612fea83612f91565b925060208a01995050600181019050612fc6565b50829750879550505050505092915050565b5f6020820190508181035f8301526130288184612f9d565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061307457607f821691505b60208210810361308757613086613030565b5b50919050565b5f8235600160c0038336030381126130a8576130a7612a22565b5b80830191505092915050565b5f6130c2602084018461237e565b905092915050565b5f82905092915050565b5f6130e26020840184612ae9565b905092915050565b604082016130fa5f8301836130b4565b6131065f850182612817565b5061311460208301836130d4565b613121602085018261263e565b50505050565b606082016131375f8301836130b4565b6131435f850182612817565b5061315160208301836130ca565b61315e60208501826130ea565b50505050565b5f6060820190506131775f830184613127565b92915050565b5f81905092915050565b5f6131918261240d565b61319b818561317d565b93506131ab818560208601612427565b80840191505092915050565b7f2e000000000000000000000000000000000000000000000000000000000000005f82015250565b5f6131eb60018361317d565b91506131f6826131b7565b600182019050919050565b5f61320c8286613187565b9150613217826131df565b91506132238285613187565b915061322e826131df565b915061323a8284613187565b9150819050949350505050565b5f8235600160a00383360303811261326257613261612a22565b5b80830191505092915050565b5f808335600160200384360303811261328a57613289612a22565b5b80840192508235915067ffffffffffffffff8211156132ac576132ab612a26565b5b6020830192506020820236038313156132c8576132c7612a2a565b5b509250929050565b5f80833560016020038436030381126132ec576132eb612a22565b5b80840192508235915067ffffffffffffffff82111561330e5761330d612a26565b5b60208301925060608202360383131561332a57613329612a2a565b5b509250929050565b5f80fd5b5f67ffffffffffffffff8211156133505761334f6129c8565b5b61335982612435565b9050602081019050919050565b828183375f83830152505050565b5f61338661338184613336565b612a8a565b9050828152602081018484840111156133a2576133a1613332565b5b6133ad848285613366565b509392505050565b5f82601f8301126133c9576133c86121e6565b5b81356133d9848260208601613374565b91505092915050565b5f60c082840312156133f7576133f6612a55565b5b61340160c0612a8a565b90505f613410848285016122d8565b5f83015250602061342384828501612d5f565b60208301525060406134378482850161230d565b604083015250606061344b8482850161237e565b606083015250608082013567ffffffffffffffff81111561346f5761346e612aa4565b5b61347b848285016133b5565b60808301525060a061348f84828501612ae9565b60a08301525092915050565b5f6134a636836133e2565b9050919050565b5f606082840312156134c2576134c16121de565b5b5f6134cf84828501612c40565b91505092915050565b5f602082840312156134ed576134ec6121de565b5b5f6134fa84828501612d5f565b91505092915050565b5f67ffffffffffffffff82111561351d5761351c6129c8565b5b602082029050602081019050919050565b5f61354061353b84613503565b612a8a565b90508083825260208201905060208402830185811115613563576135626121ee565b5b835b818110156135aa57803567ffffffffffffffff811115613588576135876121e6565b5b80860161359589826133e2565b85526020850194505050602081019050613565565b5050509392505050565b5f6135c036848461352e565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613623816122b1565b82525050565b61363281612d36565b82525050565b613641816122ec565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f61366b82613647565b6136758185613651565b9350613685818560208601612427565b61368e81612435565b840191505092915050565b5f60c083015f8301516136ae5f86018261361a565b5060208301516136c16020860182613629565b5060408301516136d46040860182613638565b5060608301516136e76060860182612817565b50608083015184820360808601526136ff8282613661565b91505060a083015161371460a086018261263e565b508091505092915050565b5f61372a8383613699565b905092915050565b5f602082019050919050565b5f613748826135f1565b61375281856135fb565b9350836020820285016137648561360b565b805f5b8581101561379f5784840389528151613780858261371f565b945061378b83613732565b925060208a01995050600181019050613767565b50829750879550505050505092915050565b5f604083015f8301516137c65f860182612817565b50602083015184820360208601526137de828261373e565b9150508091505092915050565b5f6137f683836137b1565b905092915050565b5f602082019050919050565b5f613814826135c8565b61381e81856135d2565b935083602082028501613830856135e2565b805f5b8581101561386b578484038952815161384c85826137eb565b9450613857836137fe565b925060208a01995050600181019050613833565b50829750879550505050505092915050565b5f6020820190508181035f830152613895818461380a565b905092915050565b5f67ffffffffffffffff8211156138b7576138b66129c8565b5b602082029050602081019050919050565b5f815190506138d681612368565b92915050565b5f6138ee6138e98461389d565b612a8a565b90508083825260208201905060208402830185811115613911576139106121ee565b5b835b8181101561393a578061392688826138c8565b845260208401935050602081019050613913565b5050509392505050565b5f82601f830112613958576139576121e6565b5b81516139688482602086016138dc565b91505092915050565b5f60208284031215613986576139856121de565b5b5f82015167ffffffffffffffff8111156139a3576139a26121e2565b5b6139af84828501613944565b91505092915050565b5f61010082840312156139ce576139cd612a55565b5b6139d860a0612a8a565b90505f6139e78482850161237e565b5f8301525060206139fa84828501612afd565b6020830152506060613a0e84828501612c40565b60408301525060c0613a22848285016122d8565b60608301525060e0613a3684828501612d5f565b60808301525092915050565b5f6101008284031215613a5857613a576121de565b5b5f613a65848285016139b8565b91505092915050565b5f60408284031215613a8357613a826121de565b5b5f613a9084828501612afd565b91505092915050565b606082015f820151613aad5f850182612817565b506020820151613ac06020850182612e98565b50505050565b5f606082019050613ad95f830184613a99565b92915050565b5f80fd5b5f8235600160c003833603038112613afe57613afd613adf565b5b82810191505092915050565b5f613b1860208401846122d8565b905092915050565b5f613b2e6020840184612d5f565b905092915050565b5f613b44602084018461230d565b905092915050565b5f80fd5b5f80fd5b5f8083356001602003843603038112613b7057613b6f613adf565b5b83810192508235915060208301925067ffffffffffffffff821115613b9857613b97613b4c565b5b600182023603831315613bae57613bad613b50565b5b509250929050565b5f613bc18385613651565b9350613bce838584613366565b613bd783612435565b840190509392505050565b5f60c08301613bf35f840184613b0a565b613bff5f86018261361a565b50613c0d6020840184613b20565b613c1a6020860182613629565b50613c286040840184613b36565b613c356040860182613638565b50613c4360608401846130b4565b613c506060860182612817565b50613c5e6080840184613b54565b8583036080870152613c71838284613bb6565b92505050613c8260a08401846130d4565b613c8f60a086018261263e565b508091505092915050565b5f60408301613cab5f8401846130b4565b613cb75f860182612817565b50613cc56020840184613ae3565b8482036020860152613cd78282613be2565b9150508091505092915050565b5f6020820190508181035f830152613cfc8184613c9a565b905092915050565b5f60208284031215613d1957613d186121de565b5b5f613d26848285016138c8565b91505092915050565b613d3881612d36565b82525050565b5f60c082019050613d515f8301896123e5565b613d5e60208301886123bd565b613d6b60408301876123e5565b613d7860608301866123e5565b613d856080830185612606565b613d9260a0830184613d2f565b979650505050505050565b5f60e08284031215613db257613db1612a55565b5b613dbc60a0612a8a565b90505f613dcb8482850161237e565b5f83015250602082013567ffffffffffffffff811115613dee57613ded612aa4565b5b613dfa848285016133e2565b6020830152506040613e0e84828501612c40565b60408301525060a0613e22848285016122d8565b60608301525060c0613e3684828501612d5f565b60808301525092915050565b5f613e4d3683613d9d565b9050919050565b5f604083015f830151613e695f860182612817565b5060208301518482036020860152613e818282613699565b9150508091505092915050565b5f6020820190508181035f830152613ea68184613e54565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61014082019050613eef5f83018d6123e5565b613efc602083018c6123bd565b613f09604083018b6123e5565b613f16606083018a6123bd565b613f236080830189613d2f565b613f3060a083018861293b565b613f3d60c08301876123e5565b613f4a60e08301866123e5565b613f58610100830185612606565b613f66610120830184613d2f565b9b9a5050505050505050505050565b5f8160f81b9050919050565b5f613f8b82613f75565b9050919050565b613fa3613f9e82612c0a565b613f81565b82525050565b5f819050919050565b613fc3613fbe8261235f565b613fa9565b82525050565b5f613fd48286613f92565b600182019150613fe48285613fb2565b602082019150613ff48284613fb2565b602082019150819050949350505050565b5f81905092915050565b5f61401982613647565b6140238185614005565b9350614033818560208601612427565b80840191505092915050565b5f61404a828461400f565b915081905092915050565b5f60a0820190506140685f8301886123e5565b61407560208301876123e5565b61408260408301866123e5565b61408f6060830185612606565b61409c60808301846123bd565b9695505050505050565b6140af81612c0a565b82525050565b5f6080820190506140c85f8301876123e5565b6140d560208301866140a6565b6140e260408301856123e5565b6140ef60608301846123e5565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f6020820190506141385f830184612606565b9291505056fea26469706673582212200cf6bcb5ca437b1b10ef927d56844844e3798e906daf64aa882cf706593595bc64736f6c634300081a0033000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b0
Deployed Bytecode
0x608060405260043610610113575f3560e01c8063715018a61161009f578063b6ebe53911610063578063b6ebe53914610353578063b83010d31461038f578063ed24911d146103b9578063f17325e7146103e3578063f2fde38b1461041f57610113565b8063715018a61461029757806384b0196e146102ad5780638da5cb5b146102dd5780639541152514610307578063a6d4dbc71461033757610113565b806317d7de7c116100e657806317d7de7c146101c15780633c042715146101eb578063469262671461021b57806354fd4d501461024357806365c40b9c1461026d57610113565b80630eabf660146101175780630ee489481461013357806310d736d51461015b57806312b11a1714610197575b5f80fd5b610131600480360381019061012c9190612247565b610447565b005b34801561013e575f80fd5b5061015960048036038101906101549190612321565b6106c1565b005b348015610166575f80fd5b50610181600480360381019061017c9190612392565b610721565b60405161018e91906123cc565b60405180910390f35b3480156101a2575f80fd5b506101ab61075a565b6040516101b891906123f4565b60405180910390f35b3480156101cc575f80fd5b506101d5610783565b6040516101e2919061247d565b60405180910390f35b610205600480360381019061020091906124bf565b610813565b60405161021291906123f4565b60405180910390f35b348015610226575f80fd5b50610241600480360381019061023c9190612524565b6108c4565b005b34801561024e575f80fd5b50610257610956565b604051610264919061247d565b60405180910390f35b348015610278575f80fd5b506102816109f9565b60405161028e91906125aa565b60405180910390f35b3480156102a2575f80fd5b506102ab610a20565b005b3480156102b8575f80fd5b506102c1610a33565b6040516102d497969594939291906126cc565b60405180910390f35b3480156102e8575f80fd5b506102f1610ad8565b6040516102fe91906123cc565b60405180910390f35b610321600480360381019061031c91906127a3565b610b00565b60405161032e91906128a5565b60405180910390f35b610351600480360381019061034c91906128e4565b610eff565b005b34801561035e575f80fd5b5061037960048036038101906103749190612910565b610fcd565b604051610386919061294a565b60405180910390f35b34801561039a575f80fd5b506103a3610fea565b6040516103b091906123f4565b60405180910390f35b3480156103c4575f80fd5b506103cd611013565b6040516103da91906123f4565b60405180910390f35b3480156103ee575f80fd5b5061040960048036038101906104049190612981565b611021565b60405161041691906123f4565b60405180910390f35b34801561042a575f80fd5b5061044560048036038101906104409190612910565b6110cb565b005b5f8282905090505f8167ffffffffffffffff811115610469576104686129c8565b5b6040519080825280602002602001820160405280156104a257816020015b61048f61219d565b8152602001906001900390816104875790505b5090505f5b82811015610632575f8585838181106104c3576104c26129f5565b5b90506020028101906104d59190612a2e565b6104de90612e34565b90505f816020015190505f815190505f81148061050057508260400151518114155b15610537576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b818110156105e8575f838281518110610555576105546129f5565b5b602002602001015190506105d76040518060a00160405280875f0151815260200183815260200187604001518581518110610593576105926129f5565b5b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff1681525061114f565b506105e1816113dc565b9050610539565b506040518060400160405280845f0151815260200183815250858581518110610614576106136129f5565b5b602002602001018190525050505061062b816113dc565b90506104a7565b507f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff16634cb7e9e534836040518363ffffffff1660e01b815260040161068d9190613010565b5f604051808303818588803b1580156106a4575f80fd5b505af11580156106b6573d5f803e3d5ffd5b505050505050505050565b6106c96113e8565b8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60035f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f7fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15f1b905090565b6060600280546107929061305d565b80601f01602080910402602001604051908101604052809291908181526020018280546107be9061305d565b80156108095780601f106107e057610100808354040283529160200191610809565b820191905f5260205f20905b8154815290600101906020018083116107ec57829003601f168201915b5050505050905090565b5f61082f8260a001602081019061082a9190612910565b61146f565b81806020019061083f919061308d565b5f0160208101906108509190612910565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108b4576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108bd826114f2565b9050919050565b6108cd3361146f565b7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff166346926267826040518263ffffffff1660e01b81526004016109269190613164565b5f604051808303815f87803b15801561093d575f80fd5b505af115801561094f573d5f803e3d5ffd5b5050505050565b60606109817f000000000000000000000000000000000000000000000000000000000000000161163c565b6109aa7f000000000000000000000000000000000000000000000000000000000000000361163c565b6109d37f000000000000000000000000000000000000000000000000000000000000000061163c565b6040516020016109e593929190613201565b604051602081830303815290604052905090565b5f7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b0905090565b610a286113e8565b610a315f611706565b565b5f6060805f805f6060610a446117c9565b610a4c611803565b46305f801b5f67ffffffffffffffff811115610a6b57610a6a6129c8565b5b604051908082528060200260200182016040528015610a995781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60605f8383905090505f8167ffffffffffffffff811115610b2457610b236129c8565b5b604051908082528060200260200182016040528015610b5d57816020015b610b4a6121b9565b815260200190600190039081610b425790505b5090505f5b82811015610d4f5736868683818110610b7e57610b7d6129f5565b5b9050602002810190610b909190613247565b9050365f828060200190610ba4919061326e565b915091505f8282905090505f811480610bce5750838060400190610bc891906132d0565b90508114155b15610c05576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610cf857610ce86040518060a00160405280875f01358152602001868685818110610c3957610c386129f5565b5b9050602002810190610c4b919061308d565b610c549061349b565b8152602001878060400190610c6991906132d0565b85818110610c7a57610c796129f5565b5b905060600201803603810190610c9091906134ad565b8152602001876060016020810190610ca89190612910565b73ffffffffffffffffffffffffffffffffffffffff168152602001876080016020810190610cd691906134d8565b67ffffffffffffffff1681525061183e565b610cf1816113dc565b9050610c07565b506040518060400160405280855f01358152602001848490610d1a91906135b4565b815250868681518110610d3057610d2f6129f5565b5b602002602001018190525050505050610d48816113dc565b9050610b62565b505f7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b8152600401610dab919061387d565b5f6040518083038185885af1158015610dc6573d5f803e3d5ffd5b50505050506040513d5f823e3d601f19601f82011682018060405250810190610def9190613971565b90505f805b84811015610ef15736888883818110610e1057610e0f6129f5565b5b9050602002810190610e229190613247565b9050365f828060200190610e36919061326e565b915091505f8282905090505f5b81811015610edc57846060016020810190610e5e9190612910565b60035f8a8a81518110610e7457610e736129f5565b5b602002602001015181526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550866001019650610ed5816113dc565b9050610e43565b5050505050610eea816113dc565b9050610df4565b508194505050505092915050565b610f1881803603810190610f139190613a42565b61114f565b7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff166346926267346040518060400160405280855f0135815260200185602001803603810190610f7d9190613a6e565b8152506040518363ffffffff1660e01b8152600401610f9c9190613ac6565b5f604051808303818588803b158015610fb3575f80fd5b505af1158015610fc5573d5f803e3d5ffd5b505050505050565b6006602052805f5260405f205f915054906101000a900460ff1681565b5f7f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d5f1b905090565b5f61101c6119e8565b905090565b5f61102b3361146f565b7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff1663f17325e7836040518263ffffffff1660e01b81526004016110849190613ce4565b6020604051808303815f875af11580156110a0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c49190613d04565b9050919050565b6110d36113e8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611143575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161113a91906123cc565b60405180910390fd5b61114c81611706565b50565b5f67ffffffffffffffff16816080015167ffffffffffffffff1614158015611195575061117a611a9e565b67ffffffffffffffff16816080015167ffffffffffffffff16105b156111cc576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816020015190505f60035f835f015181526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611270576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112d5576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f836040015190506112e681611aa5565b5f6113547f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d5f1b8660600151875f0151875f015188602001518a6080015160405160200161133996959493929190613d3e565b60405160208183030381529060405280519060200120611b73565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661138882845f015185602001518660400151611b8c565b73ffffffffffffffffffffffffffffffffffffffff16146113d5576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b5f600182019050919050565b6113f0611bba565b73ffffffffffffffffffffffffffffffffffffffff1661140e610ad8565b73ffffffffffffffffffffffffffffffffffffffff161461146d57611431611bba565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161146491906123cc565b60405180910390fd5b565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166114ef576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f6115058261150090613e42565b61183e565b5f7f000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b073ffffffffffffffffffffffffffffffffffffffff1663f17325e7346040518060400160405280875f01358152602001878060200190611567919061308d565b6115709061349b565b8152506040518363ffffffff1660e01b815260040161158f9190613e8e565b60206040518083038185885af11580156115ab573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906115d09190613d04565b90508260a00160208101906115e59190612910565b60035f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080915050919050565b60605f600161164a84611bc1565b0190505f8167ffffffffffffffff811115611668576116676129c8565b5b6040519080825280601f01601f19166020018201604052801561169a5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156116fb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816116f0576116ef613eae565b5b0494505f85036116a7575b819350505050919050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606117fe5f7f417474657374657250726f78790000000000000000000000000000000000000d611d1290919063ffffffff16565b905090565b606061183960017f312e332e30000000000000000000000000000000000000000000000000000005611d1290919063ffffffff16565b905090565b5f67ffffffffffffffff16816080015167ffffffffffffffff16141580156118845750611869611a9e565b67ffffffffffffffff16816080015167ffffffffffffffff16105b156118bb576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816020015190505f826040015190506118d481611aa5565b5f6119617fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15f1b8560600151865f0151865f01518760200151886040015189606001518a60800151805190602001208b60a001518d608001516040516020016119469a99989796959493929190613edb565b60405160208183030381529060405280519060200120611b73565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661199582845f015185602001518660400151611b8c565b73ffffffffffffffffffffffffffffffffffffffff16146119e2576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b5f7f0000000000000000000000006a2b88275de6bff1992fb25371dfc0073349b22b73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015611a6357507f000000000000000000000000000000000000000000000000000000000008275046145b15611a90577fb7d194c8f5d61b67aaa724db95b91fc8d120883e25bfc7833fb7a4a88bf89ff79050611a9b565b611a98611dbf565b90505b90565b5f42905090565b5f815f015182602001518360400151604051602001611ac693929190613fc9565b6040516020818303038152906040529050600481604051611ae7919061403f565b90815260200160405180910390205f9054906101000a900460ff1615611b39576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600482604051611b4b919061403f565b90815260200160405180910390205f6101000a81548160ff0219169083151502179055505050565b5f611b85611b7f6119e8565b83611e54565b9050919050565b5f805f80611b9c88888888611e94565b925092509250611bac8282611f7b565b829350505050949350505050565b5f33905090565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c1d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611c1357611c12613eae565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611c5a576d04ee2d6d415b85acef81000000008381611c5057611c4f613eae565b5b0492506020810190505b662386f26fc100008310611c8957662386f26fc100008381611c7f57611c7e613eae565b5b0492506010810190505b6305f5e1008310611cb2576305f5e1008381611ca857611ca7613eae565b5b0492506008810190505b6127108310611cd7576127108381611ccd57611ccc613eae565b5b0492506004810190505b60648310611cfa5760648381611cf057611cef613eae565b5b0492506002810190505b600a8310611d09576001810190505b80915050919050565b606060ff5f1b8314611d2e57611d27836120dd565b9050611db9565b818054611d3a9061305d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d669061305d565b8015611db15780601f10611d8857610100808354040283529160200191611db1565b820191905f5260205f20905b815481529060010190602001808311611d9457829003601f168201915b505050505090505b92915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f97bb23b7039fbf807a19c2f6dd506213960f67136e67b18f347fb9a2b29314687f6a08c3e203132c561752255a4d52ffae85bb9c5d33cb3291520dea1b843563894630604051602001611e39959493929190614055565b60405160208183030381529060405280519060200120905090565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c1115611ed0575f600385925092509250611f71565b5f6001888888886040515f8152602001604052604051611ef394939291906140b5565b6020604051602081039080840390855afa158015611f13573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f64575f60015f801b93509350935050611f71565b805f805f1b935093509350505b9450945094915050565b5f6003811115611f8e57611f8d6140f8565b5b826003811115611fa157611fa06140f8565b5b03156120d95760016003811115611fbb57611fba6140f8565b5b826003811115611fce57611fcd6140f8565b5b03612005576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115612019576120186140f8565b5b82600381111561202c5761202b6140f8565b5b0361207057805f1c6040517ffce698f70000000000000000000000000000000000000000000000000000000081526004016120679190614125565b60405180910390fd5b600380811115612083576120826140f8565b5b826003811115612096576120956140f8565b5b036120d857806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016120cf91906123f4565b60405180910390fd5b5b5050565b60605f6120e98361214f565b90505f602067ffffffffffffffff811115612107576121066129c8565b5b6040519080825280601f01601f1916602001820160405280156121395781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b5f8060ff835f1c169050601f811115612194576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60405180604001604052805f8019168152602001606081525090565b60405180604001604052805f8019168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612207576122066121e6565b5b8235905067ffffffffffffffff811115612224576122236121ea565b5b6020830191508360208202830111156122405761223f6121ee565b5b9250929050565b5f806020838503121561225d5761225c6121de565b5b5f83013567ffffffffffffffff81111561227a576122796121e2565b5b612286858286016121f2565b92509250509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6122bb82612292565b9050919050565b6122cb816122b1565b81146122d5575f80fd5b50565b5f813590506122e6816122c2565b92915050565b5f8115159050919050565b612300816122ec565b811461230a575f80fd5b50565b5f8135905061231b816122f7565b92915050565b5f8060408385031215612337576123366121de565b5b5f612344858286016122d8565b92505060206123558582860161230d565b9150509250929050565b5f819050919050565b6123718161235f565b811461237b575f80fd5b50565b5f8135905061238c81612368565b92915050565b5f602082840312156123a7576123a66121de565b5b5f6123b48482850161237e565b91505092915050565b6123c6816122b1565b82525050565b5f6020820190506123df5f8301846123bd565b92915050565b6123ee8161235f565b82525050565b5f6020820190506124075f8301846123e5565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61244f8261240d565b6124598185612417565b9350612469818560208601612427565b61247281612435565b840191505092915050565b5f6020820190508181035f8301526124958184612445565b905092915050565b5f80fd5b5f60e082840312156124b6576124b561249d565b5b81905092915050565b5f602082840312156124d4576124d36121de565b5b5f82013567ffffffffffffffff8111156124f1576124f06121e2565b5b6124fd848285016124a1565b91505092915050565b5f6060828403121561251b5761251a61249d565b5b81905092915050565b5f60608284031215612539576125386121de565b5b5f61254684828501612506565b91505092915050565b5f819050919050565b5f61257261256d61256884612292565b61254f565b612292565b9050919050565b5f61258382612558565b9050919050565b5f61259482612579565b9050919050565b6125a48161258a565b82525050565b5f6020820190506125bd5f83018461259b565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6125f7816125c3565b82525050565b5f819050919050565b61260f816125fd565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612647816125fd565b82525050565b5f612658838361263e565b60208301905092915050565b5f602082019050919050565b5f61267a82612615565b612684818561261f565b935061268f8361262f565b805f5b838110156126bf5781516126a6888261264d565b97506126b183612664565b925050600181019050612692565b5085935050505092915050565b5f60e0820190506126df5f83018a6125ee565b81810360208301526126f18189612445565b905081810360408301526127058188612445565b90506127146060830187612606565b61272160808301866123bd565b61272e60a08301856123e5565b81810360c08301526127408184612670565b905098975050505050505050565b5f8083601f840112612763576127626121e6565b5b8235905067ffffffffffffffff8111156127805761277f6121ea565b5b60208301915083602082028301111561279c5761279b6121ee565b5b9250929050565b5f80602083850312156127b9576127b86121de565b5b5f83013567ffffffffffffffff8111156127d6576127d56121e2565b5b6127e28582860161274e565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6128208161235f565b82525050565b5f6128318383612817565b60208301905092915050565b5f602082019050919050565b5f612853826127ee565b61285d81856127f8565b935061286883612808565b805f5b8381101561289857815161287f8882612826565b975061288a8361283d565b92505060018101905061286b565b5085935050505092915050565b5f6020820190508181035f8301526128bd8184612849565b905092915050565b5f61010082840312156128db576128da61249d565b5b81905092915050565b5f61010082840312156128fa576128f96121de565b5b5f612907848285016128c5565b91505092915050565b5f60208284031215612925576129246121de565b5b5f612932848285016122d8565b91505092915050565b612944816122ec565b82525050565b5f60208201905061295d5f83018461293b565b92915050565b5f604082840312156129785761297761249d565b5b81905092915050565b5f60208284031215612996576129956121de565b5b5f82013567ffffffffffffffff8111156129b3576129b26121e2565b5b6129bf84828501612963565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8235600160a003833603038112612a4957612a48612a22565b5b80830191505092915050565b5f80fd5b612a6282612435565b810181811067ffffffffffffffff82111715612a8157612a806129c8565b5b80604052505050565b5f612a936121d5565b9050612a9f8282612a59565b919050565b5f80fd5b5f67ffffffffffffffff821115612ac257612ac16129c8565b5b602082029050602081019050919050565b612adc816125fd565b8114612ae6575f80fd5b50565b5f81359050612af781612ad3565b92915050565b5f60408284031215612b1257612b11612a55565b5b612b1c6040612a8a565b90505f612b2b8482850161237e565b5f830152506020612b3e84828501612ae9565b60208301525092915050565b5f612b5c612b5784612aa8565b612a8a565b90508083825260208201905060408402830185811115612b7f57612b7e6121ee565b5b835b81811015612ba85780612b948882612afd565b845260208401935050604081019050612b81565b5050509392505050565b5f82601f830112612bc657612bc56121e6565b5b8135612bd6848260208601612b4a565b91505092915050565b5f67ffffffffffffffff821115612bf957612bf86129c8565b5b602082029050602081019050919050565b5f60ff82169050919050565b612c1f81612c0a565b8114612c29575f80fd5b50565b5f81359050612c3a81612c16565b92915050565b5f60608284031215612c5557612c54612a55565b5b612c5f6060612a8a565b90505f612c6e84828501612c2c565b5f830152506020612c818482850161237e565b6020830152506040612c958482850161237e565b60408301525092915050565b5f612cb3612cae84612bdf565b612a8a565b90508083825260208201905060608402830185811115612cd657612cd56121ee565b5b835b81811015612cff5780612ceb8882612c40565b845260208401935050606081019050612cd8565b5050509392505050565b5f82601f830112612d1d57612d1c6121e6565b5b8135612d2d848260208601612ca1565b91505092915050565b5f67ffffffffffffffff82169050919050565b612d5281612d36565b8114612d5c575f80fd5b50565b5f81359050612d6d81612d49565b92915050565b5f60a08284031215612d8857612d87612a55565b5b612d9260a0612a8a565b90505f612da18482850161237e565b5f83015250602082013567ffffffffffffffff811115612dc457612dc3612aa4565b5b612dd084828501612bb2565b602083015250604082013567ffffffffffffffff811115612df457612df3612aa4565b5b612e0084828501612d09565b6040830152506060612e14848285016122d8565b6060830152506080612e2884828501612d5f565b60808301525092915050565b5f612e3f3683612d73565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b604082015f820151612eac5f850182612817565b506020820151612ebf602085018261263e565b50505050565b5f612ed08383612e98565b60408301905092915050565b5f602082019050919050565b5f612ef282612e6f565b612efc8185612e79565b9350612f0783612e89565b805f5b83811015612f37578151612f1e8882612ec5565b9750612f2983612edc565b925050600181019050612f0a565b5085935050505092915050565b5f604083015f830151612f595f860182612817565b5060208301518482036020860152612f718282612ee8565b9150508091505092915050565b5f612f898383612f44565b905092915050565b5f602082019050919050565b5f612fa782612e46565b612fb18185612e50565b935083602082028501612fc385612e60565b805f5b85811015612ffe5784840389528151612fdf8582612f7e565b9450612fea83612f91565b925060208a01995050600181019050612fc6565b50829750879550505050505092915050565b5f6020820190508181035f8301526130288184612f9d565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061307457607f821691505b60208210810361308757613086613030565b5b50919050565b5f8235600160c0038336030381126130a8576130a7612a22565b5b80830191505092915050565b5f6130c2602084018461237e565b905092915050565b5f82905092915050565b5f6130e26020840184612ae9565b905092915050565b604082016130fa5f8301836130b4565b6131065f850182612817565b5061311460208301836130d4565b613121602085018261263e565b50505050565b606082016131375f8301836130b4565b6131435f850182612817565b5061315160208301836130ca565b61315e60208501826130ea565b50505050565b5f6060820190506131775f830184613127565b92915050565b5f81905092915050565b5f6131918261240d565b61319b818561317d565b93506131ab818560208601612427565b80840191505092915050565b7f2e000000000000000000000000000000000000000000000000000000000000005f82015250565b5f6131eb60018361317d565b91506131f6826131b7565b600182019050919050565b5f61320c8286613187565b9150613217826131df565b91506132238285613187565b915061322e826131df565b915061323a8284613187565b9150819050949350505050565b5f8235600160a00383360303811261326257613261612a22565b5b80830191505092915050565b5f808335600160200384360303811261328a57613289612a22565b5b80840192508235915067ffffffffffffffff8211156132ac576132ab612a26565b5b6020830192506020820236038313156132c8576132c7612a2a565b5b509250929050565b5f80833560016020038436030381126132ec576132eb612a22565b5b80840192508235915067ffffffffffffffff82111561330e5761330d612a26565b5b60208301925060608202360383131561332a57613329612a2a565b5b509250929050565b5f80fd5b5f67ffffffffffffffff8211156133505761334f6129c8565b5b61335982612435565b9050602081019050919050565b828183375f83830152505050565b5f61338661338184613336565b612a8a565b9050828152602081018484840111156133a2576133a1613332565b5b6133ad848285613366565b509392505050565b5f82601f8301126133c9576133c86121e6565b5b81356133d9848260208601613374565b91505092915050565b5f60c082840312156133f7576133f6612a55565b5b61340160c0612a8a565b90505f613410848285016122d8565b5f83015250602061342384828501612d5f565b60208301525060406134378482850161230d565b604083015250606061344b8482850161237e565b606083015250608082013567ffffffffffffffff81111561346f5761346e612aa4565b5b61347b848285016133b5565b60808301525060a061348f84828501612ae9565b60a08301525092915050565b5f6134a636836133e2565b9050919050565b5f606082840312156134c2576134c16121de565b5b5f6134cf84828501612c40565b91505092915050565b5f602082840312156134ed576134ec6121de565b5b5f6134fa84828501612d5f565b91505092915050565b5f67ffffffffffffffff82111561351d5761351c6129c8565b5b602082029050602081019050919050565b5f61354061353b84613503565b612a8a565b90508083825260208201905060208402830185811115613563576135626121ee565b5b835b818110156135aa57803567ffffffffffffffff811115613588576135876121e6565b5b80860161359589826133e2565b85526020850194505050602081019050613565565b5050509392505050565b5f6135c036848461352e565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613623816122b1565b82525050565b61363281612d36565b82525050565b613641816122ec565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f61366b82613647565b6136758185613651565b9350613685818560208601612427565b61368e81612435565b840191505092915050565b5f60c083015f8301516136ae5f86018261361a565b5060208301516136c16020860182613629565b5060408301516136d46040860182613638565b5060608301516136e76060860182612817565b50608083015184820360808601526136ff8282613661565b91505060a083015161371460a086018261263e565b508091505092915050565b5f61372a8383613699565b905092915050565b5f602082019050919050565b5f613748826135f1565b61375281856135fb565b9350836020820285016137648561360b565b805f5b8581101561379f5784840389528151613780858261371f565b945061378b83613732565b925060208a01995050600181019050613767565b50829750879550505050505092915050565b5f604083015f8301516137c65f860182612817565b50602083015184820360208601526137de828261373e565b9150508091505092915050565b5f6137f683836137b1565b905092915050565b5f602082019050919050565b5f613814826135c8565b61381e81856135d2565b935083602082028501613830856135e2565b805f5b8581101561386b578484038952815161384c85826137eb565b9450613857836137fe565b925060208a01995050600181019050613833565b50829750879550505050505092915050565b5f6020820190508181035f830152613895818461380a565b905092915050565b5f67ffffffffffffffff8211156138b7576138b66129c8565b5b602082029050602081019050919050565b5f815190506138d681612368565b92915050565b5f6138ee6138e98461389d565b612a8a565b90508083825260208201905060208402830185811115613911576139106121ee565b5b835b8181101561393a578061392688826138c8565b845260208401935050602081019050613913565b5050509392505050565b5f82601f830112613958576139576121e6565b5b81516139688482602086016138dc565b91505092915050565b5f60208284031215613986576139856121de565b5b5f82015167ffffffffffffffff8111156139a3576139a26121e2565b5b6139af84828501613944565b91505092915050565b5f61010082840312156139ce576139cd612a55565b5b6139d860a0612a8a565b90505f6139e78482850161237e565b5f8301525060206139fa84828501612afd565b6020830152506060613a0e84828501612c40565b60408301525060c0613a22848285016122d8565b60608301525060e0613a3684828501612d5f565b60808301525092915050565b5f6101008284031215613a5857613a576121de565b5b5f613a65848285016139b8565b91505092915050565b5f60408284031215613a8357613a826121de565b5b5f613a9084828501612afd565b91505092915050565b606082015f820151613aad5f850182612817565b506020820151613ac06020850182612e98565b50505050565b5f606082019050613ad95f830184613a99565b92915050565b5f80fd5b5f8235600160c003833603038112613afe57613afd613adf565b5b82810191505092915050565b5f613b1860208401846122d8565b905092915050565b5f613b2e6020840184612d5f565b905092915050565b5f613b44602084018461230d565b905092915050565b5f80fd5b5f80fd5b5f8083356001602003843603038112613b7057613b6f613adf565b5b83810192508235915060208301925067ffffffffffffffff821115613b9857613b97613b4c565b5b600182023603831315613bae57613bad613b50565b5b509250929050565b5f613bc18385613651565b9350613bce838584613366565b613bd783612435565b840190509392505050565b5f60c08301613bf35f840184613b0a565b613bff5f86018261361a565b50613c0d6020840184613b20565b613c1a6020860182613629565b50613c286040840184613b36565b613c356040860182613638565b50613c4360608401846130b4565b613c506060860182612817565b50613c5e6080840184613b54565b8583036080870152613c71838284613bb6565b92505050613c8260a08401846130d4565b613c8f60a086018261263e565b508091505092915050565b5f60408301613cab5f8401846130b4565b613cb75f860182612817565b50613cc56020840184613ae3565b8482036020860152613cd78282613be2565b9150508091505092915050565b5f6020820190508181035f830152613cfc8184613c9a565b905092915050565b5f60208284031215613d1957613d186121de565b5b5f613d26848285016138c8565b91505092915050565b613d3881612d36565b82525050565b5f60c082019050613d515f8301896123e5565b613d5e60208301886123bd565b613d6b60408301876123e5565b613d7860608301866123e5565b613d856080830185612606565b613d9260a0830184613d2f565b979650505050505050565b5f60e08284031215613db257613db1612a55565b5b613dbc60a0612a8a565b90505f613dcb8482850161237e565b5f83015250602082013567ffffffffffffffff811115613dee57613ded612aa4565b5b613dfa848285016133e2565b6020830152506040613e0e84828501612c40565b60408301525060a0613e22848285016122d8565b60608301525060c0613e3684828501612d5f565b60808301525092915050565b5f613e4d3683613d9d565b9050919050565b5f604083015f830151613e695f860182612817565b5060208301518482036020860152613e818282613699565b9150508091505092915050565b5f6020820190508181035f830152613ea68184613e54565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61014082019050613eef5f83018d6123e5565b613efc602083018c6123bd565b613f09604083018b6123e5565b613f16606083018a6123bd565b613f236080830189613d2f565b613f3060a083018861293b565b613f3d60c08301876123e5565b613f4a60e08301866123e5565b613f58610100830185612606565b613f66610120830184613d2f565b9b9a5050505050505050505050565b5f8160f81b9050919050565b5f613f8b82613f75565b9050919050565b613fa3613f9e82612c0a565b613f81565b82525050565b5f819050919050565b613fc3613fbe8261235f565b613fa9565b82525050565b5f613fd48286613f92565b600182019150613fe48285613fb2565b602082019150613ff48284613fb2565b602082019150819050949350505050565b5f81905092915050565b5f61401982613647565b6140238185614005565b9350614033818560208601612427565b80840191505092915050565b5f61404a828461400f565b915081905092915050565b5f60a0820190506140685f8301886123e5565b61407560208301876123e5565b61408260408301866123e5565b61408f6060830185612606565b61409c60808301846123bd565b9695505050505050565b6140af81612c0a565b82525050565b5f6080820190506140c85f8301876123e5565b6140d560208301866140a6565b6140e260408301856123e5565b6140ef60608301846123e5565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f6020820190506141385f830184612606565b9291505056fea26469706673582212200cf6bcb5ca437b1b10ef927d56844844e3798e906daf64aa882cf706593595bc64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b0
-----Decoded View---------------
Arg [0] : eas (address): 0xC47300428b6AD2c7D03BB76D05A176058b47E6B0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c47300428b6ad2c7d03bb76d05a176058b47e6b0
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.