More Info
Private Name Tags
ContractCreator
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Attest By Delega... | 131226127 | 84 days ago | IN | 0.00025 ETH | 0.000000281351 | ||||
Attest By Delega... | 131226100 | 84 days ago | IN | 0.00025 ETH | 0.000000194451 | ||||
Attest By Delega... | 126995353 | 182 days ago | IN | 0.0025 ETH | 0.000000578943 | ||||
Transfer Ownersh... | 126795628 | 187 days ago | IN | 0 ETH | 0.000000797317 | ||||
Transfer Ownersh... | 126257598 | 199 days ago | IN | 0 ETH | 0.0000000515 | ||||
Attest By Delega... | 123512467 | 263 days ago | IN | 0.0025 ETH | 0.000001393389 | ||||
Attest By Delega... | 122615874 | 284 days ago | IN | 0.0025 ETH | 0.000001608326 | ||||
Attest By Delega... | 122605643 | 284 days ago | IN | 0.0025 ETH | 0.000001413565 | ||||
Attest By Delega... | 122529149 | 286 days ago | IN | 0.0025 ETH | 0.00001162051 | ||||
Attest By Delega... | 122439074 | 288 days ago | IN | 0.0025 ETH | 0.000070487929 | ||||
Attest By Delega... | 122439006 | 288 days ago | IN | 0.0025 ETH | 0.000081360113 | ||||
Attest By Delega... | 122344192 | 290 days ago | IN | 0.0025 ETH | 0.000054481049 | ||||
Attest By Delega... | 122307343 | 291 days ago | IN | 0.0025 ETH | 0.000080933713 | ||||
Attest By Delega... | 122290112 | 291 days ago | IN | 0.0025 ETH | 0.00006628033 | ||||
Attest By Delega... | 118660879 | 375 days ago | IN | 0.0025 ETH | 0.000063405711 | ||||
Attest By Delega... | 118364817 | 382 days ago | IN | 0.0025 ETH | 0.00001882022 | ||||
Attest By Delega... | 118363729 | 382 days ago | IN | 0.005 ETH | 0.000026372192 | ||||
Attest By Delega... | 118310192 | 383 days ago | IN | 0.0025 ETH | 0.000085095962 | ||||
Attest By Delega... | 118087576 | 389 days ago | IN | 0.0025 ETH | 0.000100940398 | ||||
Attest By Delega... | 115283935 | 454 days ago | IN | 0.0025 ETH | 0.000097553827 | ||||
Attest By Delega... | 113084717 | 504 days ago | IN | 0.0025 ETH | 0.000429260717 |
Latest 19 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
131226127 | 84 days ago | 0.00025 ETH | ||||
131226100 | 84 days ago | 0.00025 ETH | ||||
126995353 | 182 days ago | 0.0025 ETH | ||||
123512467 | 263 days ago | 0.0025 ETH | ||||
122615874 | 284 days ago | 0.0025 ETH | ||||
122605643 | 284 days ago | 0.0025 ETH | ||||
122529149 | 286 days ago | 0.0025 ETH | ||||
122439074 | 288 days ago | 0.0025 ETH | ||||
122439006 | 288 days ago | 0.0025 ETH | ||||
122344192 | 290 days ago | 0.0025 ETH | ||||
122307343 | 291 days ago | 0.0025 ETH | ||||
122290112 | 291 days ago | 0.0025 ETH | ||||
118660879 | 375 days ago | 0.0025 ETH | ||||
118364817 | 382 days ago | 0.0025 ETH | ||||
118363729 | 382 days ago | 0.005 ETH | ||||
118310192 | 383 days ago | 0.0025 ETH | ||||
118087576 | 389 days ago | 0.0025 ETH | ||||
115283935 | 454 days ago | 0.0025 ETH | ||||
113084717 | 504 days ago | 0.0025 ETH |
Loading...
Loading
Contract Name:
PermissionedEIP712Proxy
Compiler Version
v0.8.19+commit.7dd6d404
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.19; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; // prettier-ignore import { EIP712Proxy, DelegatedProxyAttestationRequest, DelegatedProxyRevocationRequest, MultiDelegatedProxyAttestationRequest, MultiDelegatedProxyRevocationRequest } from "@ethereum-attestation-service/eas-contracts/contracts/eip712/proxy/EIP712Proxy.sol"; import { IEAS } from "@ethereum-attestation-service/eas-contracts/contracts/IEAS.sol"; import { AccessDenied, uncheckedInc } from "@ethereum-attestation-service/eas-contracts/contracts/Common.sol"; /// @title PermissionedEIP712Proxy /// @notice The EIP712 proxy that allows only a specific address to attest. contract PermissionedEIP712Proxy is EIP712Proxy, Ownable { /// @dev Creates a new PermissionedEIP712Proxy 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) EIP712Proxy(eas, name) {} /// @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); return super.attestByDelegation(delegatedRequest); } /// @inheritdoc EIP712Proxy function multiAttestByDelegation( MultiDelegatedProxyAttestationRequest[] calldata multiDelegatedRequests ) public payable override returns (bytes32[] memory) { uint256 length = multiDelegatedRequests.length; for (uint256 i = 0; i < length; i = uncheckedInc(i)) { // Ensure that only the owner is allowed to delegate attestations. _verifyAttester(multiDelegatedRequests[i].attester); } return super.multiAttestByDelegation(multiDelegatedRequests); } /// @inheritdoc EIP712Proxy function revokeByDelegation(DelegatedProxyRevocationRequest calldata delegatedRequest) public payable override { // Ensure that only the owner is allowed to delegate revocations. _verifyAttester(delegatedRequest.revoker); super.revokeByDelegation(delegatedRequest); } /// @inheritdoc EIP712Proxy function multiRevokeByDelegation( MultiDelegatedProxyRevocationRequest[] calldata multiDelegatedRequests ) public payable override { uint256 length = multiDelegatedRequests.length; for (uint256 i = 0; i < length; i = uncheckedInc(i)) { // Ensure that only the owner is allowed to delegate revocations. _verifyAttester(multiDelegatedRequests[i].revoker); } super.multiRevokeByDelegation(multiDelegatedRequests); } /// @dev Ensures that only the allowed attester can attest. /// @param attester The attester to verify. function _verifyAttester(address attester) private view { if (attester != owner()) { revert AccessDenied(); } } }
// 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 pragma solidity 0.8.19; 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, DelegatedAttestationRequest, DelegatedRevocationRequest, IEAS, MultiAttestationRequest, MultiDelegatedAttestationRequest, MultiDelegatedRevocationRequest, 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.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 the revoked 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; 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 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 { 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 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 _path; /// @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; _path = 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(_path)) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { 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); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); 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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); 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. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // 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); } // 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); } return (signer, RecoverError.NoError); } /** * @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) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; import "./ECDSA.sol"; import "../ShortStrings.sol"; import "../../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 specified in the EIP is very generic, and such a generic 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 their contracts 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. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ 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 ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 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; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) 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. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); 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 (rounding == Rounding.Up && 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 down. * * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @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 v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; import "./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 v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library 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 } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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 keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IEAS","name":"eas","type":"address"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessDenied","type":"error"},{"inputs":[],"name":"DeadlineExpired","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":"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"},{"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":[{"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"},{"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":"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
6101e06040523480156200001257600080fd5b5060405162004b0438038062004b04833981810160405281019062000038919062000624565b8181806040518060400160405280600581526020017f312e332e3000000000000000000000000000000000000000000000000000000081525060016003600082608081815250508160a081815250508060c08181525050505050620000a86000836200021d60201b90919060201c565b6101808181525050620000c66001826200021d60201b90919060201c565b6101a081815250508180519060200120610140818152505080805190602001206101608181525050466101008181525050620001076200027560201b60201c565b60e081815250503073ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff16815250505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620001ac576040517f83780ffe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166101c08173ffffffffffffffffffffffffffffffffffffffff16815250508060029081620001f29190620008d5565b5050506200021562000209620002d360201b60201c565b620002db60201b60201c565b505062000b6e565b600060208351101562000243576200023b83620003a160201b60201c565b90506200026f565b8262000255836200040e60201b60201c565b6000019081620002669190620008d5565b5060ff60001b90505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61014051610160514630604051602001620002b8959493929190620009f9565b60405160208183030381529060405280519060200120905090565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080829050601f81511115620003f157826040517f305a27a9000000000000000000000000000000000000000000000000000000008152600401620003e8919062000aa8565b60405180910390fd5b805181620003ff9062000afe565b60001c1760001b915050919050565b6000819050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000459826200042c565b9050919050565b60006200046d826200044c565b9050919050565b6200047f8162000460565b81146200048b57600080fd5b50565b6000815190506200049f8162000474565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004fa82620004af565b810181811067ffffffffffffffff821117156200051c576200051b620004c0565b5b80604052505050565b60006200053162000418565b90506200053f8282620004ef565b919050565b600067ffffffffffffffff821115620005625762000561620004c0565b5b6200056d82620004af565b9050602081019050919050565b60005b838110156200059a5780820151818401526020810190506200057d565b60008484015250505050565b6000620005bd620005b78462000544565b62000525565b905082815260208101848484011115620005dc57620005db620004aa565b5b620005e98482856200057a565b509392505050565b600082601f830112620006095762000608620004a5565b5b81516200061b848260208601620005a6565b91505092915050565b600080604083850312156200063e576200063d62000422565b5b60006200064e858286016200048e565b925050602083015167ffffffffffffffff81111562000672576200067162000427565b5b6200068085828601620005f1565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006dd57607f821691505b602082108103620006f357620006f262000695565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200075d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200071e565b6200076986836200071e565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007b6620007b0620007aa8462000781565b6200078b565b62000781565b9050919050565b6000819050919050565b620007d28362000795565b620007ea620007e182620007bd565b8484546200072b565b825550505050565b600090565b62000801620007f2565b6200080e818484620007c7565b505050565b5b8181101562000836576200082a600082620007f7565b60018101905062000814565b5050565b601f82111562000885576200084f81620006f9565b6200085a846200070e565b810160208510156200086a578190505b6200088262000879856200070e565b83018262000813565b50505b505050565b600082821c905092915050565b6000620008aa600019846008026200088a565b1980831691505092915050565b6000620008c5838362000897565b9150826002028217905092915050565b620008e0826200068a565b67ffffffffffffffff811115620008fc57620008fb620004c0565b5b620009088254620006c4565b620009158282856200083a565b600060209050601f8311600181146200094d576000841562000938578287015190505b620009448582620008b7565b865550620009b4565b601f1984166200095d86620006f9565b60005b82811015620009875784890151825560018201915060208501945060208101905062000960565b86831015620009a75784890151620009a3601f89168262000897565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b620009d181620009bc565b82525050565b620009e28162000781565b82525050565b620009f3816200044c565b82525050565b600060a08201905062000a106000830188620009c6565b62000a1f6020830187620009c6565b62000a2e6040830186620009c6565b62000a3d6060830185620009d7565b62000a4c6080830184620009e8565b9695505050505050565b600082825260208201905092915050565b600062000a74826200068a565b62000a80818562000a56565b935062000a928185602086016200057a565b62000a9d81620004af565b840191505092915050565b6000602082019050818103600083015262000ac4818462000a67565b905092915050565b600081519050919050565b6000819050602082019050919050565b600062000af58251620009bc565b80915050919050565b600062000b0b8262000acc565b8262000b178462000ad7565b905062000b248162000ae7565b9250602082101562000b675762000b627fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff836020036008026200071e565b831692505b5050919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c051613ef362000c11600039600081816105a001528181610ad501528181610b7d015281816111d601526113a80152600061061f015260006105eb01526000611b7901526000611b5801526000611464015260006114ba015260006114e30152600061055201526000610529015260006105000152613ef36000f3fe6080604052600436106100e85760003560e01c8063715018a61161008a578063a6d4dbc711610059578063a6d4dbc7146102c5578063b83010d3146102e1578063ed24911d1461030c578063f2fde38b14610337576100e8565b8063715018a61461022257806384b0196e146102395780638da5cb5b1461026a5780639541152514610295576100e8565b806317d7de7c116100c657806317d7de7c146101715780633c0427151461019c57806354fd4d50146101cc57806365c40b9c146101f7576100e8565b80630eabf660146100ed57806310d736d51461010957806312b11a1714610146575b600080fd5b61010760048036038101906101029190612074565b610360565b005b34801561011557600080fd5b50610130600480360381019061012b91906120f7565b6103d2565b60405161013d9190612165565b60405180910390f35b34801561015257600080fd5b5061015b61040f565b604051610168919061218f565b60405180910390f35b34801561017d57600080fd5b5061018661043a565b604051610193919061223a565b60405180910390f35b6101b660048036038101906101b19190612280565b6104cc565b6040516101c3919061218f565b60405180910390f35b3480156101d857600080fd5b506101e16104f9565b6040516101ee919061223a565b60405180910390f35b34801561020357600080fd5b5061020c61059c565b6040516102199190612328565b60405180910390f35b34801561022e57600080fd5b506102376105c4565b005b34801561024557600080fd5b5061024e6105d8565b6040516102619796959493929190612455565b60405180910390f35b34801561027657600080fd5b5061027f6106da565b60405161028c9190612165565b60405180910390f35b6102af60048036038101906102aa919061252f565b610704565b6040516102bc919061263a565b60405180910390f35b6102df60048036038101906102da919061267c565b61077c565b005b3480156102ed57600080fd5b506102f66107a3565b604051610303919061218f565b60405180910390f35b34801561031857600080fd5b506103216107ce565b60405161032e919061218f565b60405180910390f35b34801561034357600080fd5b5061035e600480360381019061035991906126d6565b6107dd565b005b600082829050905060005b818110156103c2576103b284848381811061038957610388612703565b5b905060200281019061039b9190612741565b60600160208101906103ad91906126d6565b610860565b6103bb816108cf565b905061036b565b506103cd83836108dc565b505050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60007fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b905090565b60606002805461044990612798565b80601f016020809104026020016040519081016040528092919081815260200182805461047590612798565b80156104c25780601f10610497576101008083540402835291602001916104c2565b820191906000526020600020905b8154815290600101906020018083116104a557829003601f168201915b5050505050905090565b60006104e98260a00160208101906104e491906126d6565b610860565b6104f282610b65565b9050919050565b60606105247f0000000000000000000000000000000000000000000000000000000000000000610cb7565b61054d7f0000000000000000000000000000000000000000000000000000000000000000610cb7565b6105767f0000000000000000000000000000000000000000000000000000000000000000610cb7565b60405160200161058893929190612851565b604051602081830303815290604052905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6105cc610d85565b6105d66000610e03565b565b60006060806000806000606061061860007f0000000000000000000000000000000000000000000000000000000000000000610ec990919063ffffffff16565b61064c60017f0000000000000000000000000000000000000000000000000000000000000000610ec990919063ffffffff16565b46306000801b600067ffffffffffffffff81111561066d5761066c612898565b5b60405190808252806020026020018201604052801561069b5781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600083839050905060005b818110156107685761075885858381811061072f5761072e612703565b5b905060200281019061074191906128c7565b606001602081019061075391906126d6565b610860565b610761816108cf565b9050610711565b506107738484610f79565b91505092915050565b6107978160c001602081019061079291906126d6565b610860565b6107a08161138d565b50565b60007f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d60001b905090565b60006107d8611460565b905090565b6107e5610d85565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90612961565b60405180910390fd5b61085d81610e03565b50565b6108686106da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6000600182019050919050565b600082829050905060008167ffffffffffffffff811115610900576108ff612898565b5b60405190808252806020026020018201604052801561093957816020015b610926611fc1565b81526020019060019003908161091e5790505b50905060005b82811015610ad257600085858381811061095c5761095b612703565b5b905060200281019061096e9190612741565b61097790612d7a565b9050600081602001519050600081519050600081148061099c57508260400151518114155b156109d3576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610a875760008382815181106109f3576109f2612703565b5b60200260200101519050610a766040518060a001604052808760000151815260200183815260200187604001518581518110610a3257610a31612703565b5b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff16815250611517565b50610a80816108cf565b90506109d6565b5060405180604001604052808460000151815260200183815250858581518110610ab457610ab3612703565b5b6020026020010181905250505050610acb816108cf565b905061093f565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634cb7e9e534836040518363ffffffff1660e01b8152600401610b2d9190612f6a565b6000604051808303818588803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050505050505050565b6000610b7982610b74906131dd565b6117b2565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f17325e734604051806040016040528087600001358152602001878060200190610bdd91906131f0565b610be690613218565b8152506040518363ffffffff1660e01b8152600401610c059190613373565b60206040518083038185885af1158015610c23573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c4891906133aa565b90508260a0016020810190610c5d91906126d6565b6003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080915050919050565b606060006001610cc684611964565b01905060008167ffffffffffffffff811115610ce557610ce4612898565b5b6040519080825280601f01601f191660200182016040528015610d175781602001600182028036833780820191505090505b509050600082602001820190505b600115610d7a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610d6e57610d6d6133d7565b5b04945060008503610d25575b819350505050919050565b610d8d611ab7565b73ffffffffffffffffffffffffffffffffffffffff16610dab6106da565b73ffffffffffffffffffffffffffffffffffffffff1614610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890613452565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060ff60001b8314610ee657610edf83611abf565b9050610f73565b818054610ef290612798565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1e90612798565b8015610f6b5780601f10610f4057610100808354040283529160200191610f6b565b820191906000526020600020905b815481529060010190602001808311610f4e57829003601f168201915b505050505090505b92915050565b6060600083839050905060008167ffffffffffffffff811115610f9f57610f9e612898565b5b604051908082528060200260200182016040528015610fd857816020015b610fc5611fde565b815260200190600190039081610fbd5790505b50905060005b828110156111d15736868683818110610ffa57610ff9612703565b5b905060200281019061100c91906128c7565b90503660008280602001906110219190613472565b915091506000828290509050600081148061104d575083806040019061104791906134d5565b90508114155b15611084576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611179576111696040518060a00160405280876000013581526020018686858181106110ba576110b9612703565b5b90506020028101906110cc91906131f0565b6110d590613218565b81526020018780604001906110ea91906134d5565b858181106110fb576110fa612703565b5b9050606002018036038101906111119190613538565b815260200187606001602081019061112991906126d6565b73ffffffffffffffffffffffffffffffffffffffff1681526020018760800160208101906111579190613565565b67ffffffffffffffff168152506117b2565b611172816108cf565b9050611087565b5060405180604001604052808560000135815260200184849061119c9190613645565b8152508686815181106111b2576111b1612703565b5b6020026020010181905250505050506111ca816108cf565b9050610fde565b5060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b815260040161122e919061381b565b60006040518083038185885af115801561124c573d6000803e3d6000fd5b50505050506040513d6000823e3d601f19601f820116820180604052508101906112769190613900565b90506000805b8481101561137f573688888381811061129857611297612703565b5b90506020028101906112aa91906128c7565b90503660008280602001906112bf9190613472565b91509150600082829050905060005b8181101561136a578460600160208101906112e991906126d6565b600360008a8a81518110611300576112ff612703565b5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550866001019650611363816108cf565b90506112ce565b5050505050611378816108cf565b905061127c565b508194505050505092915050565b6113a6818036038101906113a191906139d6565b611517565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166346926267346040518060400160405280856000013581526020018560200180360381019061140c9190613a04565b8152506040518363ffffffff1660e01b815260040161142b9190613a60565b6000604051808303818588803b15801561144457600080fd5b505af1158015611458573d6000803e3d6000fd5b505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156114dc57507f000000000000000000000000000000000000000000000000000000000000000046145b15611509577f00000000000000000000000000000000000000000000000000000000000000009050611514565b611511611b33565b90505b90565b600067ffffffffffffffff16816080015167ffffffffffffffff161415801561155e5750611543611bc9565b67ffffffffffffffff16816080015167ffffffffffffffff16105b15611595576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816020015190506000600360008360000151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611640576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116a5576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000836040015190506116b781611bd1565b60006117297f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d60001b86606001518760000151876000015188602001518a6080015160405160200161170e96959493929190613a8a565b60405160208183030381529060405280519060200120611ca3565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661175e82846000015185602001518660400151611cbd565b73ffffffffffffffffffffffffffffffffffffffff16146117ab576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b600067ffffffffffffffff16816080015167ffffffffffffffff16141580156117f957506117de611bc9565b67ffffffffffffffff16816080015167ffffffffffffffff16105b15611830576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160200151905060008260400151905061184b81611bd1565b60006118dc7fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b8560600151866000015186600001518760200151886040015189606001518a60800151805190602001208b60a001518d608001516040516020016118c19a99989796959493929190613afa565b60405160208183030381529060405280519060200120611ca3565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661191182846000015185602001518660400151611cbd565b73ffffffffffffffffffffffffffffffffffffffff161461195e576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106119c2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816119b8576119b76133d7565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106119ff576d04ee2d6d415b85acef810000000083816119f5576119f46133d7565b5b0492506020810190505b662386f26fc100008310611a2e57662386f26fc100008381611a2457611a236133d7565b5b0492506010810190505b6305f5e1008310611a57576305f5e1008381611a4d57611a4c6133d7565b5b0492506008810190505b6127108310611a7c576127108381611a7257611a716133d7565b5b0492506004810190505b60648310611a9f5760648381611a9557611a946133d7565b5b0492506002810190505b600a8310611aae576001810190505b80915050919050565b600033905090565b60606000611acc83611ce8565b90506000602067ffffffffffffffff811115611aeb57611aea612898565b5b6040519080825280601f01601f191660200182016040528015611b1d5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000004630604051602001611bae959493929190613b96565b60405160208183030381529060405280519060200120905090565b600042905090565b6000816000015182602001518360400151604051602001611bf493929190613c40565b6040516020818303038152906040529050600481604051611c159190613cb9565b908152602001604051809103902060009054906101000a900460ff1615611c68576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600482604051611c7a9190613cb9565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b6000611cb6611cb0611460565b83611d38565b9050919050565b6000806000611cce87878787611d79565b91509150611cdb81611e5b565b8192505050949350505050565b60008060ff8360001c169050601f811115611d2f576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611db4576000600391509150611e52565b600060018787878760405160008152602001604052604051611dd99493929190613cdf565b6020604051602081039080840390855afa158015611dfb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e4957600060019250925050611e52565b80600092509250505b94509492505050565b60006004811115611e6f57611e6e613d24565b5b816004811115611e8257611e81613d24565b5b0315611fbe5760016004811115611e9c57611e9b613d24565b5b816004811115611eaf57611eae613d24565b5b03611eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee690613d9f565b60405180910390fd5b60026004811115611f0357611f02613d24565b5b816004811115611f1657611f15613d24565b5b03611f56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4d90613e0b565b60405180910390fd5b60036004811115611f6a57611f69613d24565b5b816004811115611f7d57611f7c613d24565b5b03611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490613e9d565b60405180910390fd5b5b50565b604051806040016040528060008019168152602001606081525090565b604051806040016040528060008019168152602001606081525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126120345761203361200f565b5b8235905067ffffffffffffffff81111561205157612050612014565b5b60208301915083602082028301111561206d5761206c612019565b5b9250929050565b6000806020838503121561208b5761208a612005565b5b600083013567ffffffffffffffff8111156120a9576120a861200a565b5b6120b58582860161201e565b92509250509250929050565b6000819050919050565b6120d4816120c1565b81146120df57600080fd5b50565b6000813590506120f1816120cb565b92915050565b60006020828403121561210d5761210c612005565b5b600061211b848285016120e2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061214f82612124565b9050919050565b61215f81612144565b82525050565b600060208201905061217a6000830184612156565b92915050565b612189816120c1565b82525050565b60006020820190506121a46000830184612180565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156121e45780820151818401526020810190506121c9565b60008484015250505050565b6000601f19601f8301169050919050565b600061220c826121aa565b61221681856121b5565b93506122268185602086016121c6565b61222f816121f0565b840191505092915050565b600060208201905081810360008301526122548184612201565b905092915050565b600080fd5b600060e082840312156122775761227661225c565b5b81905092915050565b60006020828403121561229657612295612005565b5b600082013567ffffffffffffffff8111156122b4576122b361200a565b5b6122c084828501612261565b91505092915050565b6000819050919050565b60006122ee6122e96122e484612124565b6122c9565b612124565b9050919050565b6000612300826122d3565b9050919050565b6000612312826122f5565b9050919050565b61232281612307565b82525050565b600060208201905061233d6000830184612319565b92915050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b61237881612343565b82525050565b6000819050919050565b6123918161237e565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6123cc8161237e565b82525050565b60006123de83836123c3565b60208301905092915050565b6000602082019050919050565b600061240282612397565b61240c81856123a2565b9350612417836123b3565b8060005b8381101561244857815161242f88826123d2565b975061243a836123ea565b92505060018101905061241b565b5085935050505092915050565b600060e08201905061246a600083018a61236f565b818103602083015261247c8189612201565b905081810360408301526124908188612201565b905061249f6060830187612388565b6124ac6080830186612156565b6124b960a0830185612180565b81810360c08301526124cb81846123f7565b905098975050505050505050565b60008083601f8401126124ef576124ee61200f565b5b8235905067ffffffffffffffff81111561250c5761250b612014565b5b60208301915083602082028301111561252857612527612019565b5b9250929050565b6000806020838503121561254657612545612005565b5b600083013567ffffffffffffffff8111156125645761256361200a565b5b612570858286016124d9565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125b1816120c1565b82525050565b60006125c383836125a8565b60208301905092915050565b6000602082019050919050565b60006125e78261257c565b6125f18185612587565b93506125fc83612598565b8060005b8381101561262d57815161261488826125b7565b975061261f836125cf565b925050600181019050612600565b5085935050505092915050565b6000602082019050818103600083015261265481846125dc565b905092915050565b600061010082840312156126735761267261225c565b5b81905092915050565b6000610100828403121561269357612692612005565b5b60006126a18482850161265c565b91505092915050565b6126b381612144565b81146126be57600080fd5b50565b6000813590506126d0816126aa565b92915050565b6000602082840312156126ec576126eb612005565b5b60006126fa848285016126c1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160a00383360303811261275d5761275c612732565b5b80830191505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806127b057607f821691505b6020821081036127c3576127c2612769565b5b50919050565b600081905092915050565b60006127df826121aa565b6127e981856127c9565b93506127f98185602086016121c6565b80840191505092915050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b600061283b6001836127c9565b915061284682612805565b600182019050919050565b600061285d82866127d4565b91506128688261282e565b915061287482856127d4565b915061287f8261282e565b915061288b82846127d4565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008235600160a0038336030381126128e3576128e2612732565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061294b6026836121b5565b9150612956826128ef565b604082019050919050565b6000602082019050818103600083015261297a8161293e565b9050919050565b600080fd5b61298f826121f0565b810181811067ffffffffffffffff821117156129ae576129ad612898565b5b80604052505050565b60006129c1611ffb565b90506129cd8282612986565b919050565b600080fd5b600067ffffffffffffffff8211156129f2576129f1612898565b5b602082029050602081019050919050565b612a0c8161237e565b8114612a1757600080fd5b50565b600081359050612a2981612a03565b92915050565b600060408284031215612a4557612a44612981565b5b612a4f60406129b7565b90506000612a5f848285016120e2565b6000830152506020612a7384828501612a1a565b60208301525092915050565b6000612a92612a8d846129d7565b6129b7565b90508083825260208201905060408402830185811115612ab557612ab4612019565b5b835b81811015612ade5780612aca8882612a2f565b845260208401935050604081019050612ab7565b5050509392505050565b600082601f830112612afd57612afc61200f565b5b8135612b0d848260208601612a7f565b91505092915050565b600067ffffffffffffffff821115612b3157612b30612898565b5b602082029050602081019050919050565b600060ff82169050919050565b612b5881612b42565b8114612b6357600080fd5b50565b600081359050612b7581612b4f565b92915050565b600060608284031215612b9157612b90612981565b5b612b9b60606129b7565b90506000612bab84828501612b66565b6000830152506020612bbf848285016120e2565b6020830152506040612bd3848285016120e2565b60408301525092915050565b6000612bf2612bed84612b16565b6129b7565b90508083825260208201905060608402830185811115612c1557612c14612019565b5b835b81811015612c3e5780612c2a8882612b7b565b845260208401935050606081019050612c17565b5050509392505050565b600082601f830112612c5d57612c5c61200f565b5b8135612c6d848260208601612bdf565b91505092915050565b600067ffffffffffffffff82169050919050565b612c9381612c76565b8114612c9e57600080fd5b50565b600081359050612cb081612c8a565b92915050565b600060a08284031215612ccc57612ccb612981565b5b612cd660a06129b7565b90506000612ce6848285016120e2565b600083015250602082013567ffffffffffffffff811115612d0a57612d096129d2565b5b612d1684828501612ae8565b602083015250604082013567ffffffffffffffff811115612d3a57612d396129d2565b5b612d4684828501612c48565b6040830152506060612d5a848285016126c1565b6060830152506080612d6e84828501612ca1565b60808301525092915050565b6000612d863683612cb6565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b604082016000820151612dfb60008501826125a8565b506020820151612e0e60208501826123c3565b50505050565b6000612e208383612de5565b60408301905092915050565b6000602082019050919050565b6000612e4482612db9565b612e4e8185612dc4565b9350612e5983612dd5565b8060005b83811015612e8a578151612e718882612e14565b9750612e7c83612e2c565b925050600181019050612e5d565b5085935050505092915050565b6000604083016000830151612eaf60008601826125a8565b5060208301518482036020860152612ec78282612e39565b9150508091505092915050565b6000612ee08383612e97565b905092915050565b6000602082019050919050565b6000612f0082612d8d565b612f0a8185612d98565b935083602082028501612f1c85612da9565b8060005b85811015612f585784840389528151612f398582612ed4565b9450612f4483612ee8565b925060208a01995050600181019050612f20565b50829750879550505050505092915050565b60006020820190508181036000830152612f848184612ef5565b905092915050565b60008115159050919050565b612fa181612f8c565b8114612fac57600080fd5b50565b600081359050612fbe81612f98565b92915050565b600080fd5b600067ffffffffffffffff821115612fe457612fe3612898565b5b612fed826121f0565b9050602081019050919050565b82818337600083830152505050565b600061301c61301784612fc9565b6129b7565b90508281526020810184848401111561303857613037612fc4565b5b613043848285612ffa565b509392505050565b600082601f8301126130605761305f61200f565b5b8135613070848260208601613009565b91505092915050565b600060c0828403121561308f5761308e612981565b5b61309960c06129b7565b905060006130a9848285016126c1565b60008301525060206130bd84828501612ca1565b60208301525060406130d184828501612faf565b60408301525060606130e5848285016120e2565b606083015250608082013567ffffffffffffffff811115613109576131086129d2565b5b6131158482850161304b565b60808301525060a061312984828501612a1a565b60a08301525092915050565b600060e0828403121561314b5761314a612981565b5b61315560a06129b7565b90506000613165848285016120e2565b600083015250602082013567ffffffffffffffff811115613189576131886129d2565b5b61319584828501613079565b60208301525060406131a984828501612b7b565b60408301525060a06131bd848285016126c1565b60608301525060c06131d184828501612ca1565b60808301525092915050565b60006131e93683613135565b9050919050565b60008235600160c00383360303811261320c5761320b612732565b5b80830191505092915050565b60006132243683613079565b9050919050565b61323481612144565b82525050565b61324381612c76565b82525050565b61325281612f8c565b82525050565b600081519050919050565b600082825260208201905092915050565b600061327f82613258565b6132898185613263565b93506132998185602086016121c6565b6132a2816121f0565b840191505092915050565b600060c0830160008301516132c5600086018261322b565b5060208301516132d8602086018261323a565b5060408301516132eb6040860182613249565b5060608301516132fe60608601826125a8565b50608083015184820360808601526133168282613274565b91505060a083015161332b60a08601826123c3565b508091505092915050565b600060408301600083015161334e60008601826125a8565b506020830151848203602086015261336682826132ad565b9150508091505092915050565b6000602082019050818103600083015261338d8184613336565b905092915050565b6000815190506133a4816120cb565b92915050565b6000602082840312156133c0576133bf612005565b5b60006133ce84828501613395565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061343c6020836121b5565b915061344782613406565b602082019050919050565b6000602082019050818103600083015261346b8161342f565b9050919050565b6000808335600160200384360303811261348f5761348e612732565b5b80840192508235915067ffffffffffffffff8211156134b1576134b0612737565b5b6020830192506020820236038313156134cd576134cc61273c565b5b509250929050565b600080833560016020038436030381126134f2576134f1612732565b5b80840192508235915067ffffffffffffffff82111561351457613513612737565b5b6020830192506060820236038313156135305761352f61273c565b5b509250929050565b60006060828403121561354e5761354d612005565b5b600061355c84828501612b7b565b91505092915050565b60006020828403121561357b5761357a612005565b5b600061358984828501612ca1565b91505092915050565b600067ffffffffffffffff8211156135ad576135ac612898565b5b602082029050602081019050919050565b60006135d16135cc84613592565b6129b7565b905080838252602082019050602084028301858111156135f4576135f3612019565b5b835b8181101561363b57803567ffffffffffffffff8111156136195761361861200f565b5b8086016136268982613079565b855260208501945050506020810190506135f6565b5050509392505050565b60006136523684846135be565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006136be83836132ad565b905092915050565b6000602082019050919050565b60006136de82613686565b6136e88185613691565b9350836020820285016136fa856136a2565b8060005b85811015613736578484038952815161371785826136b2565b9450613722836136c6565b925060208a019950506001810190506136fe565b50829750879550505050505092915050565b600060408301600083015161376060008601826125a8565b506020830151848203602086015261377882826136d3565b9150508091505092915050565b60006137918383613748565b905092915050565b6000602082019050919050565b60006137b18261365a565b6137bb8185613665565b9350836020820285016137cd85613676565b8060005b8581101561380957848403895281516137ea8582613785565b94506137f583613799565b925060208a019950506001810190506137d1565b50829750879550505050505092915050565b6000602082019050818103600083015261383581846137a6565b905092915050565b600067ffffffffffffffff82111561385857613857612898565b5b602082029050602081019050919050565b600061387c6138778461383d565b6129b7565b9050808382526020820190506020840283018581111561389f5761389e612019565b5b835b818110156138c857806138b48882613395565b8452602084019350506020810190506138a1565b5050509392505050565b600082601f8301126138e7576138e661200f565b5b81516138f7848260208601613869565b91505092915050565b60006020828403121561391657613915612005565b5b600082015167ffffffffffffffff8111156139345761393361200a565b5b613940848285016138d2565b91505092915050565b600061010082840312156139605761395f612981565b5b61396a60a06129b7565b9050600061397a848285016120e2565b600083015250602061398e84828501612a2f565b60208301525060606139a284828501612b7b565b60408301525060c06139b6848285016126c1565b60608301525060e06139ca84828501612ca1565b60808301525092915050565b600061010082840312156139ed576139ec612005565b5b60006139fb84828501613949565b91505092915050565b600060408284031215613a1a57613a19612005565b5b6000613a2884828501612a2f565b91505092915050565b606082016000820151613a4760008501826125a8565b506020820151613a5a6020850182612de5565b50505050565b6000606082019050613a756000830184613a31565b92915050565b613a8481612c76565b82525050565b600060c082019050613a9f6000830189612180565b613aac6020830188612156565b613ab96040830187612180565b613ac66060830186612180565b613ad36080830185612388565b613ae060a0830184613a7b565b979650505050505050565b613af481612f8c565b82525050565b600061014082019050613b10600083018d612180565b613b1d602083018c612156565b613b2a604083018b612180565b613b37606083018a612156565b613b446080830189613a7b565b613b5160a0830188613aeb565b613b5e60c0830187612180565b613b6b60e0830186612180565b613b79610100830185612388565b613b87610120830184613a7b565b9b9a5050505050505050505050565b600060a082019050613bab6000830188612180565b613bb86020830187612180565b613bc56040830186612180565b613bd26060830185612388565b613bdf6080830184612156565b9695505050505050565b60008160f81b9050919050565b6000613c0182613be9565b9050919050565b613c19613c1482612b42565b613bf6565b82525050565b6000819050919050565b613c3a613c35826120c1565b613c1f565b82525050565b6000613c4c8286613c08565b600182019150613c5c8285613c29565b602082019150613c6c8284613c29565b602082019150819050949350505050565b600081905092915050565b6000613c9382613258565b613c9d8185613c7d565b9350613cad8185602086016121c6565b80840191505092915050565b6000613cc58284613c88565b915081905092915050565b613cd981612b42565b82525050565b6000608082019050613cf46000830187612180565b613d016020830186613cd0565b613d0e6040830185612180565b613d1b6060830184612180565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000613d896018836121b5565b9150613d9482613d53565b602082019050919050565b60006020820190508181036000830152613db881613d7c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613df5601f836121b5565b9150613e0082613dbf565b602082019050919050565b60006020820190508181036000830152613e2481613de8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e876022836121b5565b9150613e9282613e2b565b604082019050919050565b60006020820190508181036000830152613eb681613e7a565b905091905056fea26469706673582212200463e0b8364f392a437e99d8b13e6ff0ec79b3ca9a70f5ae518ba35647e4bfea64736f6c63430008130033000000000000000000000000420000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000013446576666f6c696f45495037313250726f787900000000000000000000000000
Deployed Bytecode
0x6080604052600436106100e85760003560e01c8063715018a61161008a578063a6d4dbc711610059578063a6d4dbc7146102c5578063b83010d3146102e1578063ed24911d1461030c578063f2fde38b14610337576100e8565b8063715018a61461022257806384b0196e146102395780638da5cb5b1461026a5780639541152514610295576100e8565b806317d7de7c116100c657806317d7de7c146101715780633c0427151461019c57806354fd4d50146101cc57806365c40b9c146101f7576100e8565b80630eabf660146100ed57806310d736d51461010957806312b11a1714610146575b600080fd5b61010760048036038101906101029190612074565b610360565b005b34801561011557600080fd5b50610130600480360381019061012b91906120f7565b6103d2565b60405161013d9190612165565b60405180910390f35b34801561015257600080fd5b5061015b61040f565b604051610168919061218f565b60405180910390f35b34801561017d57600080fd5b5061018661043a565b604051610193919061223a565b60405180910390f35b6101b660048036038101906101b19190612280565b6104cc565b6040516101c3919061218f565b60405180910390f35b3480156101d857600080fd5b506101e16104f9565b6040516101ee919061223a565b60405180910390f35b34801561020357600080fd5b5061020c61059c565b6040516102199190612328565b60405180910390f35b34801561022e57600080fd5b506102376105c4565b005b34801561024557600080fd5b5061024e6105d8565b6040516102619796959493929190612455565b60405180910390f35b34801561027657600080fd5b5061027f6106da565b60405161028c9190612165565b60405180910390f35b6102af60048036038101906102aa919061252f565b610704565b6040516102bc919061263a565b60405180910390f35b6102df60048036038101906102da919061267c565b61077c565b005b3480156102ed57600080fd5b506102f66107a3565b604051610303919061218f565b60405180910390f35b34801561031857600080fd5b506103216107ce565b60405161032e919061218f565b60405180910390f35b34801561034357600080fd5b5061035e600480360381019061035991906126d6565b6107dd565b005b600082829050905060005b818110156103c2576103b284848381811061038957610388612703565b5b905060200281019061039b9190612741565b60600160208101906103ad91906126d6565b610860565b6103bb816108cf565b905061036b565b506103cd83836108dc565b505050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60007fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b905090565b60606002805461044990612798565b80601f016020809104026020016040519081016040528092919081815260200182805461047590612798565b80156104c25780601f10610497576101008083540402835291602001916104c2565b820191906000526020600020905b8154815290600101906020018083116104a557829003601f168201915b5050505050905090565b60006104e98260a00160208101906104e491906126d6565b610860565b6104f282610b65565b9050919050565b60606105247f0000000000000000000000000000000000000000000000000000000000000001610cb7565b61054d7f0000000000000000000000000000000000000000000000000000000000000003610cb7565b6105767f0000000000000000000000000000000000000000000000000000000000000000610cb7565b60405160200161058893929190612851565b604051602081830303815290604052905090565b60007f0000000000000000000000004200000000000000000000000000000000000021905090565b6105cc610d85565b6105d66000610e03565b565b60006060806000806000606061061860007f446576666f6c696f45495037313250726f787900000000000000000000000013610ec990919063ffffffff16565b61064c60017f312e332e30000000000000000000000000000000000000000000000000000005610ec990919063ffffffff16565b46306000801b600067ffffffffffffffff81111561066d5761066c612898565b5b60405190808252806020026020018201604052801561069b5781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600083839050905060005b818110156107685761075885858381811061072f5761072e612703565b5b905060200281019061074191906128c7565b606001602081019061075391906126d6565b610860565b610761816108cf565b9050610711565b506107738484610f79565b91505092915050565b6107978160c001602081019061079291906126d6565b610860565b6107a08161138d565b50565b60007f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d60001b905090565b60006107d8611460565b905090565b6107e5610d85565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90612961565b60405180910390fd5b61085d81610e03565b50565b6108686106da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6000600182019050919050565b600082829050905060008167ffffffffffffffff811115610900576108ff612898565b5b60405190808252806020026020018201604052801561093957816020015b610926611fc1565b81526020019060019003908161091e5790505b50905060005b82811015610ad257600085858381811061095c5761095b612703565b5b905060200281019061096e9190612741565b61097790612d7a565b9050600081602001519050600081519050600081148061099c57508260400151518114155b156109d3576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610a875760008382815181106109f3576109f2612703565b5b60200260200101519050610a766040518060a001604052808760000151815260200183815260200187604001518581518110610a3257610a31612703565b5b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff16815250611517565b50610a80816108cf565b90506109d6565b5060405180604001604052808460000151815260200183815250858581518110610ab457610ab3612703565b5b6020026020010181905250505050610acb816108cf565b905061093f565b507f000000000000000000000000420000000000000000000000000000000000002173ffffffffffffffffffffffffffffffffffffffff16634cb7e9e534836040518363ffffffff1660e01b8152600401610b2d9190612f6a565b6000604051808303818588803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050505050505050565b6000610b7982610b74906131dd565b6117b2565b60007f000000000000000000000000420000000000000000000000000000000000002173ffffffffffffffffffffffffffffffffffffffff1663f17325e734604051806040016040528087600001358152602001878060200190610bdd91906131f0565b610be690613218565b8152506040518363ffffffff1660e01b8152600401610c059190613373565b60206040518083038185885af1158015610c23573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c4891906133aa565b90508260a0016020810190610c5d91906126d6565b6003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080915050919050565b606060006001610cc684611964565b01905060008167ffffffffffffffff811115610ce557610ce4612898565b5b6040519080825280601f01601f191660200182016040528015610d175781602001600182028036833780820191505090505b509050600082602001820190505b600115610d7a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610d6e57610d6d6133d7565b5b04945060008503610d25575b819350505050919050565b610d8d611ab7565b73ffffffffffffffffffffffffffffffffffffffff16610dab6106da565b73ffffffffffffffffffffffffffffffffffffffff1614610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890613452565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060ff60001b8314610ee657610edf83611abf565b9050610f73565b818054610ef290612798565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1e90612798565b8015610f6b5780601f10610f4057610100808354040283529160200191610f6b565b820191906000526020600020905b815481529060010190602001808311610f4e57829003601f168201915b505050505090505b92915050565b6060600083839050905060008167ffffffffffffffff811115610f9f57610f9e612898565b5b604051908082528060200260200182016040528015610fd857816020015b610fc5611fde565b815260200190600190039081610fbd5790505b50905060005b828110156111d15736868683818110610ffa57610ff9612703565b5b905060200281019061100c91906128c7565b90503660008280602001906110219190613472565b915091506000828290509050600081148061104d575083806040019061104791906134d5565b90508114155b15611084576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611179576111696040518060a00160405280876000013581526020018686858181106110ba576110b9612703565b5b90506020028101906110cc91906131f0565b6110d590613218565b81526020018780604001906110ea91906134d5565b858181106110fb576110fa612703565b5b9050606002018036038101906111119190613538565b815260200187606001602081019061112991906126d6565b73ffffffffffffffffffffffffffffffffffffffff1681526020018760800160208101906111579190613565565b67ffffffffffffffff168152506117b2565b611172816108cf565b9050611087565b5060405180604001604052808560000135815260200184849061119c9190613645565b8152508686815181106111b2576111b1612703565b5b6020026020010181905250505050506111ca816108cf565b9050610fde565b5060007f000000000000000000000000420000000000000000000000000000000000002173ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b815260040161122e919061381b565b60006040518083038185885af115801561124c573d6000803e3d6000fd5b50505050506040513d6000823e3d601f19601f820116820180604052508101906112769190613900565b90506000805b8481101561137f573688888381811061129857611297612703565b5b90506020028101906112aa91906128c7565b90503660008280602001906112bf9190613472565b91509150600082829050905060005b8181101561136a578460600160208101906112e991906126d6565b600360008a8a81518110611300576112ff612703565b5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550866001019650611363816108cf565b90506112ce565b5050505050611378816108cf565b905061127c565b508194505050505092915050565b6113a6818036038101906113a191906139d6565b611517565b7f000000000000000000000000420000000000000000000000000000000000002173ffffffffffffffffffffffffffffffffffffffff166346926267346040518060400160405280856000013581526020018560200180360381019061140c9190613a04565b8152506040518363ffffffff1660e01b815260040161142b9190613a60565b6000604051808303818588803b15801561144457600080fd5b505af1158015611458573d6000803e3d6000fd5b505050505050565b60007f00000000000000000000000043691f6a2c0ef873955a350aef5812e4cd5a751973ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156114dc57507f000000000000000000000000000000000000000000000000000000000000000a46145b15611509577fc77f6adcd9f57f0930749ec70fe2563cfc05e49f3f2d97763c1ae58350e6668f9050611514565b611511611b33565b90505b90565b600067ffffffffffffffff16816080015167ffffffffffffffff161415801561155e5750611543611bc9565b67ffffffffffffffff16816080015167ffffffffffffffff16105b15611595576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816020015190506000600360008360000151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611640576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116a5576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000836040015190506116b781611bd1565b60006117297f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d60001b86606001518760000151876000015188602001518a6080015160405160200161170e96959493929190613a8a565b60405160208183030381529060405280519060200120611ca3565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661175e82846000015185602001518660400151611cbd565b73ffffffffffffffffffffffffffffffffffffffff16146117ab576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b600067ffffffffffffffff16816080015167ffffffffffffffff16141580156117f957506117de611bc9565b67ffffffffffffffff16816080015167ffffffffffffffff16105b15611830576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160200151905060008260400151905061184b81611bd1565b60006118dc7fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b8560600151866000015186600001518760200151886040015189606001518a60800151805190602001208b60a001518d608001516040516020016118c19a99989796959493929190613afa565b60405160208183030381529060405280519060200120611ca3565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661191182846000015185602001518660400151611cbd565b73ffffffffffffffffffffffffffffffffffffffff161461195e576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106119c2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816119b8576119b76133d7565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106119ff576d04ee2d6d415b85acef810000000083816119f5576119f46133d7565b5b0492506020810190505b662386f26fc100008310611a2e57662386f26fc100008381611a2457611a236133d7565b5b0492506010810190505b6305f5e1008310611a57576305f5e1008381611a4d57611a4c6133d7565b5b0492506008810190505b6127108310611a7c576127108381611a7257611a716133d7565b5b0492506004810190505b60648310611a9f5760648381611a9557611a946133d7565b5b0492506002810190505b600a8310611aae576001810190505b80915050919050565b600033905090565b60606000611acc83611ce8565b90506000602067ffffffffffffffff811115611aeb57611aea612898565b5b6040519080825280601f01601f191660200182016040528015611b1d5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fced3acc5d6a8bbd89d957394116200fcac0197928964ed229321a1b8e8e6264b7f6a08c3e203132c561752255a4d52ffae85bb9c5d33cb3291520dea1b843563894630604051602001611bae959493929190613b96565b60405160208183030381529060405280519060200120905090565b600042905090565b6000816000015182602001518360400151604051602001611bf493929190613c40565b6040516020818303038152906040529050600481604051611c159190613cb9565b908152602001604051809103902060009054906101000a900460ff1615611c68576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600482604051611c7a9190613cb9565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b6000611cb6611cb0611460565b83611d38565b9050919050565b6000806000611cce87878787611d79565b91509150611cdb81611e5b565b8192505050949350505050565b60008060ff8360001c169050601f811115611d2f576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611db4576000600391509150611e52565b600060018787878760405160008152602001604052604051611dd99493929190613cdf565b6020604051602081039080840390855afa158015611dfb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e4957600060019250925050611e52565b80600092509250505b94509492505050565b60006004811115611e6f57611e6e613d24565b5b816004811115611e8257611e81613d24565b5b0315611fbe5760016004811115611e9c57611e9b613d24565b5b816004811115611eaf57611eae613d24565b5b03611eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee690613d9f565b60405180910390fd5b60026004811115611f0357611f02613d24565b5b816004811115611f1657611f15613d24565b5b03611f56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4d90613e0b565b60405180910390fd5b60036004811115611f6a57611f69613d24565b5b816004811115611f7d57611f7c613d24565b5b03611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490613e9d565b60405180910390fd5b5b50565b604051806040016040528060008019168152602001606081525090565b604051806040016040528060008019168152602001606081525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126120345761203361200f565b5b8235905067ffffffffffffffff81111561205157612050612014565b5b60208301915083602082028301111561206d5761206c612019565b5b9250929050565b6000806020838503121561208b5761208a612005565b5b600083013567ffffffffffffffff8111156120a9576120a861200a565b5b6120b58582860161201e565b92509250509250929050565b6000819050919050565b6120d4816120c1565b81146120df57600080fd5b50565b6000813590506120f1816120cb565b92915050565b60006020828403121561210d5761210c612005565b5b600061211b848285016120e2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061214f82612124565b9050919050565b61215f81612144565b82525050565b600060208201905061217a6000830184612156565b92915050565b612189816120c1565b82525050565b60006020820190506121a46000830184612180565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156121e45780820151818401526020810190506121c9565b60008484015250505050565b6000601f19601f8301169050919050565b600061220c826121aa565b61221681856121b5565b93506122268185602086016121c6565b61222f816121f0565b840191505092915050565b600060208201905081810360008301526122548184612201565b905092915050565b600080fd5b600060e082840312156122775761227661225c565b5b81905092915050565b60006020828403121561229657612295612005565b5b600082013567ffffffffffffffff8111156122b4576122b361200a565b5b6122c084828501612261565b91505092915050565b6000819050919050565b60006122ee6122e96122e484612124565b6122c9565b612124565b9050919050565b6000612300826122d3565b9050919050565b6000612312826122f5565b9050919050565b61232281612307565b82525050565b600060208201905061233d6000830184612319565b92915050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b61237881612343565b82525050565b6000819050919050565b6123918161237e565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6123cc8161237e565b82525050565b60006123de83836123c3565b60208301905092915050565b6000602082019050919050565b600061240282612397565b61240c81856123a2565b9350612417836123b3565b8060005b8381101561244857815161242f88826123d2565b975061243a836123ea565b92505060018101905061241b565b5085935050505092915050565b600060e08201905061246a600083018a61236f565b818103602083015261247c8189612201565b905081810360408301526124908188612201565b905061249f6060830187612388565b6124ac6080830186612156565b6124b960a0830185612180565b81810360c08301526124cb81846123f7565b905098975050505050505050565b60008083601f8401126124ef576124ee61200f565b5b8235905067ffffffffffffffff81111561250c5761250b612014565b5b60208301915083602082028301111561252857612527612019565b5b9250929050565b6000806020838503121561254657612545612005565b5b600083013567ffffffffffffffff8111156125645761256361200a565b5b612570858286016124d9565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125b1816120c1565b82525050565b60006125c383836125a8565b60208301905092915050565b6000602082019050919050565b60006125e78261257c565b6125f18185612587565b93506125fc83612598565b8060005b8381101561262d57815161261488826125b7565b975061261f836125cf565b925050600181019050612600565b5085935050505092915050565b6000602082019050818103600083015261265481846125dc565b905092915050565b600061010082840312156126735761267261225c565b5b81905092915050565b6000610100828403121561269357612692612005565b5b60006126a18482850161265c565b91505092915050565b6126b381612144565b81146126be57600080fd5b50565b6000813590506126d0816126aa565b92915050565b6000602082840312156126ec576126eb612005565b5b60006126fa848285016126c1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160a00383360303811261275d5761275c612732565b5b80830191505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806127b057607f821691505b6020821081036127c3576127c2612769565b5b50919050565b600081905092915050565b60006127df826121aa565b6127e981856127c9565b93506127f98185602086016121c6565b80840191505092915050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b600061283b6001836127c9565b915061284682612805565b600182019050919050565b600061285d82866127d4565b91506128688261282e565b915061287482856127d4565b915061287f8261282e565b915061288b82846127d4565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008235600160a0038336030381126128e3576128e2612732565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061294b6026836121b5565b9150612956826128ef565b604082019050919050565b6000602082019050818103600083015261297a8161293e565b9050919050565b600080fd5b61298f826121f0565b810181811067ffffffffffffffff821117156129ae576129ad612898565b5b80604052505050565b60006129c1611ffb565b90506129cd8282612986565b919050565b600080fd5b600067ffffffffffffffff8211156129f2576129f1612898565b5b602082029050602081019050919050565b612a0c8161237e565b8114612a1757600080fd5b50565b600081359050612a2981612a03565b92915050565b600060408284031215612a4557612a44612981565b5b612a4f60406129b7565b90506000612a5f848285016120e2565b6000830152506020612a7384828501612a1a565b60208301525092915050565b6000612a92612a8d846129d7565b6129b7565b90508083825260208201905060408402830185811115612ab557612ab4612019565b5b835b81811015612ade5780612aca8882612a2f565b845260208401935050604081019050612ab7565b5050509392505050565b600082601f830112612afd57612afc61200f565b5b8135612b0d848260208601612a7f565b91505092915050565b600067ffffffffffffffff821115612b3157612b30612898565b5b602082029050602081019050919050565b600060ff82169050919050565b612b5881612b42565b8114612b6357600080fd5b50565b600081359050612b7581612b4f565b92915050565b600060608284031215612b9157612b90612981565b5b612b9b60606129b7565b90506000612bab84828501612b66565b6000830152506020612bbf848285016120e2565b6020830152506040612bd3848285016120e2565b60408301525092915050565b6000612bf2612bed84612b16565b6129b7565b90508083825260208201905060608402830185811115612c1557612c14612019565b5b835b81811015612c3e5780612c2a8882612b7b565b845260208401935050606081019050612c17565b5050509392505050565b600082601f830112612c5d57612c5c61200f565b5b8135612c6d848260208601612bdf565b91505092915050565b600067ffffffffffffffff82169050919050565b612c9381612c76565b8114612c9e57600080fd5b50565b600081359050612cb081612c8a565b92915050565b600060a08284031215612ccc57612ccb612981565b5b612cd660a06129b7565b90506000612ce6848285016120e2565b600083015250602082013567ffffffffffffffff811115612d0a57612d096129d2565b5b612d1684828501612ae8565b602083015250604082013567ffffffffffffffff811115612d3a57612d396129d2565b5b612d4684828501612c48565b6040830152506060612d5a848285016126c1565b6060830152506080612d6e84828501612ca1565b60808301525092915050565b6000612d863683612cb6565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b604082016000820151612dfb60008501826125a8565b506020820151612e0e60208501826123c3565b50505050565b6000612e208383612de5565b60408301905092915050565b6000602082019050919050565b6000612e4482612db9565b612e4e8185612dc4565b9350612e5983612dd5565b8060005b83811015612e8a578151612e718882612e14565b9750612e7c83612e2c565b925050600181019050612e5d565b5085935050505092915050565b6000604083016000830151612eaf60008601826125a8565b5060208301518482036020860152612ec78282612e39565b9150508091505092915050565b6000612ee08383612e97565b905092915050565b6000602082019050919050565b6000612f0082612d8d565b612f0a8185612d98565b935083602082028501612f1c85612da9565b8060005b85811015612f585784840389528151612f398582612ed4565b9450612f4483612ee8565b925060208a01995050600181019050612f20565b50829750879550505050505092915050565b60006020820190508181036000830152612f848184612ef5565b905092915050565b60008115159050919050565b612fa181612f8c565b8114612fac57600080fd5b50565b600081359050612fbe81612f98565b92915050565b600080fd5b600067ffffffffffffffff821115612fe457612fe3612898565b5b612fed826121f0565b9050602081019050919050565b82818337600083830152505050565b600061301c61301784612fc9565b6129b7565b90508281526020810184848401111561303857613037612fc4565b5b613043848285612ffa565b509392505050565b600082601f8301126130605761305f61200f565b5b8135613070848260208601613009565b91505092915050565b600060c0828403121561308f5761308e612981565b5b61309960c06129b7565b905060006130a9848285016126c1565b60008301525060206130bd84828501612ca1565b60208301525060406130d184828501612faf565b60408301525060606130e5848285016120e2565b606083015250608082013567ffffffffffffffff811115613109576131086129d2565b5b6131158482850161304b565b60808301525060a061312984828501612a1a565b60a08301525092915050565b600060e0828403121561314b5761314a612981565b5b61315560a06129b7565b90506000613165848285016120e2565b600083015250602082013567ffffffffffffffff811115613189576131886129d2565b5b61319584828501613079565b60208301525060406131a984828501612b7b565b60408301525060a06131bd848285016126c1565b60608301525060c06131d184828501612ca1565b60808301525092915050565b60006131e93683613135565b9050919050565b60008235600160c00383360303811261320c5761320b612732565b5b80830191505092915050565b60006132243683613079565b9050919050565b61323481612144565b82525050565b61324381612c76565b82525050565b61325281612f8c565b82525050565b600081519050919050565b600082825260208201905092915050565b600061327f82613258565b6132898185613263565b93506132998185602086016121c6565b6132a2816121f0565b840191505092915050565b600060c0830160008301516132c5600086018261322b565b5060208301516132d8602086018261323a565b5060408301516132eb6040860182613249565b5060608301516132fe60608601826125a8565b50608083015184820360808601526133168282613274565b91505060a083015161332b60a08601826123c3565b508091505092915050565b600060408301600083015161334e60008601826125a8565b506020830151848203602086015261336682826132ad565b9150508091505092915050565b6000602082019050818103600083015261338d8184613336565b905092915050565b6000815190506133a4816120cb565b92915050565b6000602082840312156133c0576133bf612005565b5b60006133ce84828501613395565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061343c6020836121b5565b915061344782613406565b602082019050919050565b6000602082019050818103600083015261346b8161342f565b9050919050565b6000808335600160200384360303811261348f5761348e612732565b5b80840192508235915067ffffffffffffffff8211156134b1576134b0612737565b5b6020830192506020820236038313156134cd576134cc61273c565b5b509250929050565b600080833560016020038436030381126134f2576134f1612732565b5b80840192508235915067ffffffffffffffff82111561351457613513612737565b5b6020830192506060820236038313156135305761352f61273c565b5b509250929050565b60006060828403121561354e5761354d612005565b5b600061355c84828501612b7b565b91505092915050565b60006020828403121561357b5761357a612005565b5b600061358984828501612ca1565b91505092915050565b600067ffffffffffffffff8211156135ad576135ac612898565b5b602082029050602081019050919050565b60006135d16135cc84613592565b6129b7565b905080838252602082019050602084028301858111156135f4576135f3612019565b5b835b8181101561363b57803567ffffffffffffffff8111156136195761361861200f565b5b8086016136268982613079565b855260208501945050506020810190506135f6565b5050509392505050565b60006136523684846135be565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006136be83836132ad565b905092915050565b6000602082019050919050565b60006136de82613686565b6136e88185613691565b9350836020820285016136fa856136a2565b8060005b85811015613736578484038952815161371785826136b2565b9450613722836136c6565b925060208a019950506001810190506136fe565b50829750879550505050505092915050565b600060408301600083015161376060008601826125a8565b506020830151848203602086015261377882826136d3565b9150508091505092915050565b60006137918383613748565b905092915050565b6000602082019050919050565b60006137b18261365a565b6137bb8185613665565b9350836020820285016137cd85613676565b8060005b8581101561380957848403895281516137ea8582613785565b94506137f583613799565b925060208a019950506001810190506137d1565b50829750879550505050505092915050565b6000602082019050818103600083015261383581846137a6565b905092915050565b600067ffffffffffffffff82111561385857613857612898565b5b602082029050602081019050919050565b600061387c6138778461383d565b6129b7565b9050808382526020820190506020840283018581111561389f5761389e612019565b5b835b818110156138c857806138b48882613395565b8452602084019350506020810190506138a1565b5050509392505050565b600082601f8301126138e7576138e661200f565b5b81516138f7848260208601613869565b91505092915050565b60006020828403121561391657613915612005565b5b600082015167ffffffffffffffff8111156139345761393361200a565b5b613940848285016138d2565b91505092915050565b600061010082840312156139605761395f612981565b5b61396a60a06129b7565b9050600061397a848285016120e2565b600083015250602061398e84828501612a2f565b60208301525060606139a284828501612b7b565b60408301525060c06139b6848285016126c1565b60608301525060e06139ca84828501612ca1565b60808301525092915050565b600061010082840312156139ed576139ec612005565b5b60006139fb84828501613949565b91505092915050565b600060408284031215613a1a57613a19612005565b5b6000613a2884828501612a2f565b91505092915050565b606082016000820151613a4760008501826125a8565b506020820151613a5a6020850182612de5565b50505050565b6000606082019050613a756000830184613a31565b92915050565b613a8481612c76565b82525050565b600060c082019050613a9f6000830189612180565b613aac6020830188612156565b613ab96040830187612180565b613ac66060830186612180565b613ad36080830185612388565b613ae060a0830184613a7b565b979650505050505050565b613af481612f8c565b82525050565b600061014082019050613b10600083018d612180565b613b1d602083018c612156565b613b2a604083018b612180565b613b37606083018a612156565b613b446080830189613a7b565b613b5160a0830188613aeb565b613b5e60c0830187612180565b613b6b60e0830186612180565b613b79610100830185612388565b613b87610120830184613a7b565b9b9a5050505050505050505050565b600060a082019050613bab6000830188612180565b613bb86020830187612180565b613bc56040830186612180565b613bd26060830185612388565b613bdf6080830184612156565b9695505050505050565b60008160f81b9050919050565b6000613c0182613be9565b9050919050565b613c19613c1482612b42565b613bf6565b82525050565b6000819050919050565b613c3a613c35826120c1565b613c1f565b82525050565b6000613c4c8286613c08565b600182019150613c5c8285613c29565b602082019150613c6c8284613c29565b602082019150819050949350505050565b600081905092915050565b6000613c9382613258565b613c9d8185613c7d565b9350613cad8185602086016121c6565b80840191505092915050565b6000613cc58284613c88565b915081905092915050565b613cd981612b42565b82525050565b6000608082019050613cf46000830187612180565b613d016020830186613cd0565b613d0e6040830185612180565b613d1b6060830184612180565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000613d896018836121b5565b9150613d9482613d53565b602082019050919050565b60006020820190508181036000830152613db881613d7c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613df5601f836121b5565b9150613e0082613dbf565b602082019050919050565b60006020820190508181036000830152613e2481613de8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e876022836121b5565b9150613e9282613e2b565b604082019050919050565b60006020820190508181036000830152613eb681613e7a565b905091905056fea26469706673582212200463e0b8364f392a437e99d8b13e6ff0ec79b3ca9a70f5ae518ba35647e4bfea64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000420000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000013446576666f6c696f45495037313250726f787900000000000000000000000000
-----Decoded View---------------
Arg [0] : eas (address): 0x4200000000000000000000000000000000000021
Arg [1] : name (string): DevfolioEIP712Proxy
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000021
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [3] : 446576666f6c696f45495037313250726f787900000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.