Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 52 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 114652076 | 529 days ago | IN | 0 ETH | 0.000086245376 | ||||
Set Authorized A... | 112831614 | 571 days ago | IN | 0 ETH | 0.000055567538 | ||||
Set Authorized A... | 112831600 | 571 days ago | IN | 0 ETH | 0.000055053967 | ||||
Set Authorized A... | 112831592 | 571 days ago | IN | 0 ETH | 0.000055967817 | ||||
Set Authorized A... | 112831585 | 571 days ago | IN | 0 ETH | 0.000055820041 | ||||
Set Authorized A... | 112831575 | 571 days ago | IN | 0 ETH | 0.000057352816 | ||||
Set Authorized A... | 112831567 | 571 days ago | IN | 0 ETH | 0.000057372641 | ||||
Set Authorized A... | 112831557 | 571 days ago | IN | 0 ETH | 0.000055753316 | ||||
Set Authorized A... | 112831549 | 571 days ago | IN | 0 ETH | 0.000055217126 | ||||
Set Authorized A... | 112831540 | 571 days ago | IN | 0 ETH | 0.000053711263 | ||||
Set Authorized A... | 112831533 | 571 days ago | IN | 0 ETH | 0.000053719516 | ||||
Set Authorized A... | 112831525 | 571 days ago | IN | 0 ETH | 0.00005528939 | ||||
Set Authorized A... | 112831515 | 571 days ago | IN | 0 ETH | 0.000050038822 | ||||
Set Authorized A... | 112831506 | 571 days ago | IN | 0 ETH | 0.000050029024 | ||||
Set Authorized A... | 112831497 | 571 days ago | IN | 0 ETH | 0.000049384225 | ||||
Set Authorized A... | 112831489 | 571 days ago | IN | 0 ETH | 0.000050480536 | ||||
Set Authorized A... | 112831478 | 571 days ago | IN | 0 ETH | 0.000051729427 | ||||
Set Authorized A... | 112831470 | 571 days ago | IN | 0 ETH | 0.000051720489 | ||||
Set Authorized A... | 112831461 | 571 days ago | IN | 0 ETH | 0.000050740946 | ||||
Set Authorized A... | 112831449 | 571 days ago | IN | 0 ETH | 0.000050216492 | ||||
Set Authorized A... | 112831440 | 571 days ago | IN | 0 ETH | 0.000050211571 | ||||
Set Authorized A... | 112831431 | 571 days ago | IN | 0 ETH | 0.000051772882 | ||||
Set Authorized A... | 112831422 | 571 days ago | IN | 0 ETH | 0.000052037967 | ||||
Set Authorized A... | 112831411 | 571 days ago | IN | 0 ETH | 0.000051230828 | ||||
Set Authorized A... | 112831404 | 571 days ago | IN | 0 ETH | 0.00005236449 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
114652076 | 529 days ago | 5.5143 ETH | ||||
113460359 | 557 days ago | 0.0003 ETH | ||||
113460353 | 557 days ago | 0.0003 ETH | ||||
113460328 | 557 days ago | 0.0003 ETH | ||||
113460288 | 557 days ago | 0.0003 ETH | ||||
113460263 | 557 days ago | 0.0003 ETH | ||||
113460217 | 557 days ago | 0.0003 ETH | ||||
113460215 | 557 days ago | 0.0003 ETH | ||||
113460211 | 557 days ago | 0.0003 ETH | ||||
113460188 | 557 days ago | 0.0003 ETH | ||||
113460164 | 557 days ago | 0.0003 ETH | ||||
113460142 | 557 days ago | 0.0003 ETH | ||||
113460141 | 557 days ago | 0.0003 ETH | ||||
113460118 | 557 days ago | 0.0003 ETH | ||||
113460044 | 557 days ago | 0.0003 ETH | ||||
113460039 | 557 days ago | 0.0003 ETH | ||||
113460006 | 557 days ago | 0.0003 ETH | ||||
113459995 | 557 days ago | 0.0003 ETH | ||||
113459955 | 557 days ago | 0.0003 ETH | ||||
113459907 | 557 days ago | 0.0003 ETH | ||||
113459819 | 557 days ago | 0.0003 ETH | ||||
113459814 | 557 days ago | 0.0003 ETH | ||||
113459811 | 557 days ago | 0.0003 ETH | ||||
113459804 | 557 days ago | 0.0003 ETH | ||||
113459797 | 557 days ago | 0.0003 ETH |
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.21; import { SchemaResolver } from "@ethereum-attestation-service/eas-contracts/contracts/resolver/SchemaResolver.sol"; import { IEAS, Attestation } from "@ethereum-attestation-service/eas-contracts/contracts/IEAS.sol"; import { Ownable } from "openzeppelin/access/Ownable.sol"; /** * @title Clique's EASResolver * @author Clique * @notice Resolver used for all schemas created by Clique */ contract EASResolver is SchemaResolver, Ownable { uint256 public attestationFee; mapping(address attester => bool authorizedAdmins) public authorizedAdmins; mapping(address attester => bool authorizedAttesters) public authorizedAttesters; error UnauthorizedAttestor(); error InvalidAttestationFee(); error WithdrawAddressCannotBeZero(); error WithdrawFail(); /** * * @param eas The eas registry contract address * @param _attestationFee The initial attestation fee */ constructor(IEAS eas, uint256 _attestationFee) SchemaResolver(eas) { attestationFee = _attestationFee; authorizedAttesters[msg.sender] = true; } /** * @notice Withdraws the contract's balance to the specified address * @param receiver The address to withdraw to */ function withdraw(address payable receiver) external onlyOwner { if (receiver == address(0)) revert WithdrawAddressCannotBeZero(); (bool s, ) = payable(receiver).call{ value: address(this).balance }(""); if (!s) revert WithdrawFail(); } /** * @notice Sets the authorization status of an attester * @param attester The address to be set as authorized or unauthorized * @param authorized The authorization status */ function setAuthorizedAttester(address attester, bool authorized) external onlyOwner { authorizedAttesters[attester] = authorized; } /** * @notice Sets the authorization status of an admin * @param admin The address to be set as authorized or unauthorized * @param authorized The authorization status */ function setAuthorizedAdmins(address admin, bool authorized) external onlyOwner { authorizedAdmins[admin] = authorized; } /** * @notice Sets the attestation fee * @param _attestationFee The new attestation fee */ function setAttestationFee(uint256 _attestationFee) external onlyOwner { attestationFee = _attestationFee; } /** * @dev Required function for resolvers to receive ETH value */ function isPayable() public pure override returns (bool) { return true; } /** * @notice Hook run everytime an attestation is to be attested * @param attestation The attestation to be attested * @param value The value sent with the attestation */ function onAttest(Attestation calldata attestation, uint256 value) internal view override returns (bool) { if (authorizedAdmins[attestation.attester]) return true; if (!authorizedAttesters[attestation.attester]) revert UnauthorizedAttestor(); if (value < attestationFee) revert InvalidAttestationFee(); return true; } /** * @notice Hook run everytime an attestation is to be revoked */ function onRevoke(Attestation calldata /*attestation*/, uint256 /*value*/) internal pure override returns (bool) { return false; } }
// 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.0; import { ISchemaRegistry } from "./ISchemaRegistry.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 { /// @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 { 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 { /// @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; import { Attestation } from "../Common.sol"; /// @title ISchemaResolver /// @notice The interface of an optional schema resolver. interface ISchemaResolver { /// @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 { IEAS, Attestation } from "../IEAS.sol"; import { AccessDenied, InvalidEAS, InvalidLength, uncheckedInc } from "../Common.sol"; import { Semver } from "../Semver.sol"; import { ISchemaResolver } from "./ISchemaResolver.sol"; /// @title SchemaResolver /// @notice The base schema resolver contract. abstract contract SchemaResolver is ISchemaResolver, Semver { error InsufficientValue(); error NotPayable(); // The global EAS contract. IEAS internal immutable _eas; /// @dev Creates a new resolver. /// @param eas The address of the global EAS contract. constructor(IEAS eas) Semver(1, 2, 0) { if (address(eas) == address(0)) { revert InvalidEAS(); } _eas = eas; } /// @dev Ensures that only the EAS contract can make this call. modifier onlyEAS() { _onlyEAS(); _; } /// @inheritdoc ISchemaResolver function isPayable() public pure virtual returns (bool) { return false; } /// @dev ETH callback. receive() external payable virtual { if (!isPayable()) { revert NotPayable(); } } /// @inheritdoc ISchemaResolver function attest(Attestation calldata attestation) external payable onlyEAS returns (bool) { return onAttest(attestation, msg.value); } /// @inheritdoc ISchemaResolver function multiAttest( Attestation[] calldata attestations, uint256[] calldata values ) external payable onlyEAS returns (bool) { uint256 length = attestations.length; if (length != values.length) { revert InvalidLength(); } // We are keeping track of the remaining ETH amount that can be sent to resolvers and will keep deducting // from it to verify that there isn't any attempt to send too much ETH to resolvers. Please note that unless // some ETH was stuck in the contract by accident (which shouldn't happen in normal conditions), it won't be // possible to send too much ETH anyway. uint256 remainingValue = msg.value; for (uint256 i = 0; i < length; i = uncheckedInc(i)) { // Ensure that the attester/revoker doesn't try to spend more than available. uint256 value = values[i]; if (value > remainingValue) { revert InsufficientValue(); } // Forward the attestation to the underlying resolver and return false in case it isn't approved. if (!onAttest(attestations[i], value)) { return false; } unchecked { // Subtract the ETH amount, that was provided to this attestation, from the global remaining ETH amount. remainingValue -= value; } } return true; } /// @inheritdoc ISchemaResolver function revoke(Attestation calldata attestation) external payable onlyEAS returns (bool) { return onRevoke(attestation, msg.value); } /// @inheritdoc ISchemaResolver function multiRevoke( Attestation[] calldata attestations, uint256[] calldata values ) external payable onlyEAS returns (bool) { uint256 length = attestations.length; if (length != values.length) { revert InvalidLength(); } // We are keeping track of the remaining ETH amount that can be sent to resolvers and will keep deducting // from it to verify that there isn't any attempt to send too much ETH to resolvers. Please note that unless // some ETH was stuck in the contract by accident (which shouldn't happen in normal conditions), it won't be // possible to send too much ETH anyway. uint256 remainingValue = msg.value; for (uint256 i = 0; i < length; i = uncheckedInc(i)) { // Ensure that the attester/revoker doesn't try to spend more than available. uint256 value = values[i]; if (value > remainingValue) { revert InsufficientValue(); } // Forward the revocation to the underlying resolver and return false in case it isn't approved. if (!onRevoke(attestations[i], value)) { return false; } unchecked { // Subtract the ETH amount, that was provided to this attestation, from the global remaining ETH amount. remainingValue -= value; } } return true; } /// @notice A resolver callback that should be implemented by child contracts. /// @param attestation The new attestation. /// @param value An explicit ETH amount that was sent to the resolver. Please note that this value is verified in /// both attest() and multiAttest() callbacks EAS-only callbacks and that in case of multi attestations, it'll /// usually hold that msg.value != value, since msg.value aggregated the sent ETH amounts for all the /// attestations in the batch. /// @return Whether the attestation is valid. function onAttest(Attestation calldata attestation, uint256 value) internal virtual returns (bool); /// @notice Processes an attestation revocation and verifies if it can be revoked. /// @param attestation The existing attestation to be revoked. /// @param value An explicit ETH amount that was sent to the resolver. Please note that this value is verified in /// both revoke() and multiRevoke() callbacks EAS-only callbacks and that in case of multi attestations, it'll /// usually hold that msg.value != value, since msg.value aggregated the sent ETH amounts for all the /// attestations in the batch. /// @return Whether the attestation can be revoked. function onRevoke(Attestation calldata attestation, uint256 value) internal virtual returns (bool); /// @dev Ensures that only the EAS contract can make this call. function _onlyEAS() private view { if (msg.sender != address(_eas)) { revert AccessDenied(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import { Strings } from "@openzeppelin/contracts/utils/Strings.sol"; /// @title Semver /// @notice A simple contract for managing contract versions. contract Semver { // 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) (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/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)); } }
// 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 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; } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IEAS","name":"eas","type":"address"},{"internalType":"uint256","name":"_attestationFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessDenied","type":"error"},{"inputs":[],"name":"InsufficientValue","type":"error"},{"inputs":[],"name":"InvalidAttestationFee","type":"error"},{"inputs":[],"name":"InvalidEAS","type":"error"},{"inputs":[],"name":"InvalidLength","type":"error"},{"inputs":[],"name":"NotPayable","type":"error"},{"inputs":[],"name":"UnauthorizedAttestor","type":"error"},{"inputs":[],"name":"WithdrawAddressCannotBeZero","type":"error"},{"inputs":[],"name":"WithdrawFail","type":"error"},{"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":"uid","type":"bytes32"},{"internalType":"bytes32","name":"schema","type":"bytes32"},{"internalType":"uint64","name":"time","type":"uint64"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"uint64","name":"revocationTime","type":"uint64"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Attestation","name":"attestation","type":"tuple"}],"name":"attest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"attestationFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"attester","type":"address"}],"name":"authorizedAdmins","outputs":[{"internalType":"bool","name":"authorizedAdmins","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"attester","type":"address"}],"name":"authorizedAttesters","outputs":[{"internalType":"bool","name":"authorizedAttesters","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPayable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"bytes32","name":"schema","type":"bytes32"},{"internalType":"uint64","name":"time","type":"uint64"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"uint64","name":"revocationTime","type":"uint64"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Attestation[]","name":"attestations","type":"tuple[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"multiAttest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"bytes32","name":"schema","type":"bytes32"},{"internalType":"uint64","name":"time","type":"uint64"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"uint64","name":"revocationTime","type":"uint64"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Attestation[]","name":"attestations","type":"tuple[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"multiRevoke","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uid","type":"bytes32"},{"internalType":"bytes32","name":"schema","type":"bytes32"},{"internalType":"uint64","name":"time","type":"uint64"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"uint64","name":"revocationTime","type":"uint64"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Attestation","name":"attestation","type":"tuple"}],"name":"revoke","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_attestationFee","type":"uint256"}],"name":"setAttestationFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"bool","name":"authorized","type":"bool"}],"name":"setAuthorizedAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"authorized","type":"bool"}],"name":"setAuthorizedAttester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162001aa338038062001aa3833981810160405281019062000038919062000302565b8160016002600082608081815250508160a081815250508060c08181525050505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000c1576040517f83780ffe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff168152505050620001166200010a6200017d60201b60201c565b6200018560201b60201c565b806001819055506001600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505062000349565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200027b826200024e565b9050919050565b60006200028f826200026e565b9050919050565b620002a18162000282565b8114620002ad57600080fd5b50565b600081519050620002c18162000296565b92915050565b6000819050919050565b620002dc81620002c7565b8114620002e857600080fd5b50565b600081519050620002fc81620002d1565b92915050565b600080604083850312156200031c576200031b62000249565b5b60006200032c85828601620002b0565b92505060206200033f85828601620002eb565b9150509250929050565b60805160a05160c05160e051611720620003836000396000610c27015260006105870152600061055e0152600061053501526117206000f3fe6080604052600436106100f75760003560e01c8063c10460d81161008a578063dd66519411610059578063dd66519414610359578063e49617e114610382578063e60c3505146103b2578063f2fde38b146103e25761013c565b8063c10460d81461028b578063c82df1d1146102c8578063ce46e046146102f1578063d1b0a19e1461031c5761013c565b806388e5b2d9116100c657806388e5b2d9146101d75780638b1c96b7146102075780638da5cb5b1461023057806391db0b7e1461025b5761013c565b806303e0435a1461014157806351cff8d91461016c57806354fd4d5014610195578063715018a6146101c05761013c565b3661013c5761010461040b565b61013a576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014d57600080fd5b50610156610414565b6040516101639190610f80565b60405180910390f35b34801561017857600080fd5b50610193600480360381019061018e9190611003565b61041a565b005b3480156101a157600080fd5b506101aa61052e565b6040516101b791906110c0565b60405180910390f35b3480156101cc57600080fd5b506101d56105d1565b005b6101f160048036038101906101ec919061119d565b6105e5565b6040516101fe9190611239565b60405180910390f35b34801561021357600080fd5b5061022e600480360381019061022991906112be565b610700565b005b34801561023c57600080fd5b50610245610763565b604051610252919061130d565b60405180910390f35b6102756004803603810190610270919061119d565b61078c565b6040516102829190611239565b60405180910390f35b34801561029757600080fd5b506102b260048036038101906102ad9190611328565b6108a7565b6040516102bf9190611239565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190611381565b6108c7565b005b3480156102fd57600080fd5b5061030661040b565b6040516103139190611239565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e9190611328565b6108d9565b6040516103509190611239565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b91906112be565b6108f9565b005b61039c600480360381019061039791906113d3565b61095c565b6040516103a99190611239565b60405180910390f35b6103cc60048036038101906103c791906113d3565b610977565b6040516103d99190611239565b60405180910390f35b3480156103ee57600080fd5b5061040960048036038101906104049190611328565b610992565b005b60006001905090565b60015481565b610422610a15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610488576040517f36f8dd0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516104ae9061144d565b60006040518083038185875af1925050503d80600081146104eb576040519150601f19603f3d011682016040523d82523d6000602084013e6104f0565b606091505b505090508061052a576040517ec0f29900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b60606105597f0000000000000000000000000000000000000000000000000000000000000000610a93565b6105827f0000000000000000000000000000000000000000000000000000000000000000610a93565b6105ab7f0000000000000000000000000000000000000000000000000000000000000000610a93565b6040516020016105bd939291906114ea565b604051602081830303815290604052905090565b6105d9610a15565b6105e36000610b61565b565b60006105ef610c25565b6000858590509050838390508114610633576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034905060005b828110156106f057600086868381811061065857610657611531565b5b9050602002013590508281111561069b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106c98989848181106106b1576106b0611531565b5b90506020028101906106c39190611565565b82610cac565b6106da5760009450505050506106f8565b8083039250506106e981610cb4565b905061063b565b506001925050505b949350505050565b610708610a15565b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610796610c25565b60008585905090508383905081146107da576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034905060005b828110156108975760008686838181106107ff576107fe611531565b5b90506020020135905082811115610842576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61087089898481811061085857610857611531565b5b905060200281019061086a9190611565565b82610cc1565b61088157600094505050505061089f565b80830392505061089081610cb4565b90506107e2565b506001925050505b949350505050565b60026020528060005260406000206000915054906101000a900460ff1681565b6108cf610a15565b8060018190555050565b60036020528060005260406000206000915054906101000a900460ff1681565b610901610a15565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000610966610c25565b6109708234610cac565b9050919050565b6000610981610c25565b61098b8234610cc1565b9050919050565b61099a610a15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0090611600565b60405180910390fd5b610a1281610b61565b50565b610a1d610e0c565b73ffffffffffffffffffffffffffffffffffffffff16610a3b610763565b73ffffffffffffffffffffffffffffffffffffffff1614610a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a889061166c565b60405180910390fd5b565b606060006001610aa284610e14565b01905060008167ffffffffffffffff811115610ac157610ac061168c565b5b6040519080825280601f01601f191660200182016040528015610af35781602001600182028036833780820191505090505b509050600082602001820190505b600115610b56578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610b4a57610b496116bb565b5b04945060008503610b01575b819350505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610caa576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600092915050565b6000600182019050919050565b6000600260008460e0016020810190610cda9190611328565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610d305760019050610e06565b600360008460e0016020810190610d479190611328565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dc5576040517f4daaa11000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600154821015610e01576040517f30c00ff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600190505b92915050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e6857610e676116bb565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610eaf576d04ee2d6d415b85acef81000000008381610ea557610ea46116bb565b5b0492506020810190505b662386f26fc100008310610ede57662386f26fc100008381610ed457610ed36116bb565b5b0492506010810190505b6305f5e1008310610f07576305f5e1008381610efd57610efc6116bb565b5b0492506008810190505b6127108310610f2c576127108381610f2257610f216116bb565b5b0492506004810190505b60648310610f4f5760648381610f4557610f446116bb565b5b0492506002810190505b600a8310610f5e576001810190505b80915050919050565b6000819050919050565b610f7a81610f67565b82525050565b6000602082019050610f956000830184610f71565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610fd082610fa5565b9050919050565b610fe081610fc5565b8114610feb57600080fd5b50565b600081359050610ffd81610fd7565b92915050565b60006020828403121561101957611018610f9b565b5b600061102784828501610fee565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561106a57808201518184015260208101905061104f565b60008484015250505050565b6000601f19601f8301169050919050565b600061109282611030565b61109c818561103b565b93506110ac81856020860161104c565b6110b581611076565b840191505092915050565b600060208201905081810360008301526110da8184611087565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611107576111066110e2565b5b8235905067ffffffffffffffff811115611124576111236110e7565b5b6020830191508360208202830111156111405761113f6110ec565b5b9250929050565b60008083601f84011261115d5761115c6110e2565b5b8235905067ffffffffffffffff81111561117a576111796110e7565b5b602083019150836020820283011115611196576111956110ec565b5b9250929050565b600080600080604085870312156111b7576111b6610f9b565b5b600085013567ffffffffffffffff8111156111d5576111d4610fa0565b5b6111e1878288016110f1565b9450945050602085013567ffffffffffffffff81111561120457611203610fa0565b5b61121087828801611147565b925092505092959194509250565b60008115159050919050565b6112338161121e565b82525050565b600060208201905061124e600083018461122a565b92915050565b600061125f82610fa5565b9050919050565b61126f81611254565b811461127a57600080fd5b50565b60008135905061128c81611266565b92915050565b61129b8161121e565b81146112a657600080fd5b50565b6000813590506112b881611292565b92915050565b600080604083850312156112d5576112d4610f9b565b5b60006112e38582860161127d565b92505060206112f4858286016112a9565b9150509250929050565b61130781611254565b82525050565b600060208201905061132260008301846112fe565b92915050565b60006020828403121561133e5761133d610f9b565b5b600061134c8482850161127d565b91505092915050565b61135e81610f67565b811461136957600080fd5b50565b60008135905061137b81611355565b92915050565b60006020828403121561139757611396610f9b565b5b60006113a58482850161136c565b91505092915050565b600080fd5b600061014082840312156113ca576113c96113ae565b5b81905092915050565b6000602082840312156113e9576113e8610f9b565b5b600082013567ffffffffffffffff81111561140757611406610fa0565b5b611413848285016113b3565b91505092915050565b600081905092915050565b50565b600061143760008361141c565b915061144282611427565b600082019050919050565b60006114588261142a565b9150819050919050565b600081905092915050565b600061147882611030565b6114828185611462565b935061149281856020860161104c565b80840191505092915050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b60006114d4600183611462565b91506114df8261149e565b600182019050919050565b60006114f6828661146d565b9150611501826114c7565b915061150d828561146d565b9150611518826114c7565b9150611524828461146d565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000823560016101400383360303811261158257611581611560565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115ea60268361103b565b91506115f58261158e565b604082019050919050565b60006020820190508181036000830152611619816115dd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061165660208361103b565b915061166182611620565b602082019050919050565b6000602082019050818103600083015261168581611649565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea2646970667358221220a90f9549b2c171248f4edd55431d96e562cb9659e709f69d57217dde5d4b8adc64736f6c6343000815003300000000000000000000000042000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000e35fa931a000
Deployed Bytecode
0x6080604052600436106100f75760003560e01c8063c10460d81161008a578063dd66519411610059578063dd66519414610359578063e49617e114610382578063e60c3505146103b2578063f2fde38b146103e25761013c565b8063c10460d81461028b578063c82df1d1146102c8578063ce46e046146102f1578063d1b0a19e1461031c5761013c565b806388e5b2d9116100c657806388e5b2d9146101d75780638b1c96b7146102075780638da5cb5b1461023057806391db0b7e1461025b5761013c565b806303e0435a1461014157806351cff8d91461016c57806354fd4d5014610195578063715018a6146101c05761013c565b3661013c5761010461040b565b61013a576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014d57600080fd5b50610156610414565b6040516101639190610f80565b60405180910390f35b34801561017857600080fd5b50610193600480360381019061018e9190611003565b61041a565b005b3480156101a157600080fd5b506101aa61052e565b6040516101b791906110c0565b60405180910390f35b3480156101cc57600080fd5b506101d56105d1565b005b6101f160048036038101906101ec919061119d565b6105e5565b6040516101fe9190611239565b60405180910390f35b34801561021357600080fd5b5061022e600480360381019061022991906112be565b610700565b005b34801561023c57600080fd5b50610245610763565b604051610252919061130d565b60405180910390f35b6102756004803603810190610270919061119d565b61078c565b6040516102829190611239565b60405180910390f35b34801561029757600080fd5b506102b260048036038101906102ad9190611328565b6108a7565b6040516102bf9190611239565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190611381565b6108c7565b005b3480156102fd57600080fd5b5061030661040b565b6040516103139190611239565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e9190611328565b6108d9565b6040516103509190611239565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b91906112be565b6108f9565b005b61039c600480360381019061039791906113d3565b61095c565b6040516103a99190611239565b60405180910390f35b6103cc60048036038101906103c791906113d3565b610977565b6040516103d99190611239565b60405180910390f35b3480156103ee57600080fd5b5061040960048036038101906104049190611328565b610992565b005b60006001905090565b60015481565b610422610a15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610488576040517f36f8dd0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516104ae9061144d565b60006040518083038185875af1925050503d80600081146104eb576040519150601f19603f3d011682016040523d82523d6000602084013e6104f0565b606091505b505090508061052a576040517ec0f29900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b60606105597f0000000000000000000000000000000000000000000000000000000000000001610a93565b6105827f0000000000000000000000000000000000000000000000000000000000000002610a93565b6105ab7f0000000000000000000000000000000000000000000000000000000000000000610a93565b6040516020016105bd939291906114ea565b604051602081830303815290604052905090565b6105d9610a15565b6105e36000610b61565b565b60006105ef610c25565b6000858590509050838390508114610633576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034905060005b828110156106f057600086868381811061065857610657611531565b5b9050602002013590508281111561069b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106c98989848181106106b1576106b0611531565b5b90506020028101906106c39190611565565b82610cac565b6106da5760009450505050506106f8565b8083039250506106e981610cb4565b905061063b565b506001925050505b949350505050565b610708610a15565b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610796610c25565b60008585905090508383905081146107da576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034905060005b828110156108975760008686838181106107ff576107fe611531565b5b90506020020135905082811115610842576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61087089898481811061085857610857611531565b5b905060200281019061086a9190611565565b82610cc1565b61088157600094505050505061089f565b80830392505061089081610cb4565b90506107e2565b506001925050505b949350505050565b60026020528060005260406000206000915054906101000a900460ff1681565b6108cf610a15565b8060018190555050565b60036020528060005260406000206000915054906101000a900460ff1681565b610901610a15565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000610966610c25565b6109708234610cac565b9050919050565b6000610981610c25565b61098b8234610cc1565b9050919050565b61099a610a15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0090611600565b60405180910390fd5b610a1281610b61565b50565b610a1d610e0c565b73ffffffffffffffffffffffffffffffffffffffff16610a3b610763565b73ffffffffffffffffffffffffffffffffffffffff1614610a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a889061166c565b60405180910390fd5b565b606060006001610aa284610e14565b01905060008167ffffffffffffffff811115610ac157610ac061168c565b5b6040519080825280601f01601f191660200182016040528015610af35781602001600182028036833780820191505090505b509050600082602001820190505b600115610b56578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610b4a57610b496116bb565b5b04945060008503610b01575b819350505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f000000000000000000000000420000000000000000000000000000000000002173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610caa576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600092915050565b6000600182019050919050565b6000600260008460e0016020810190610cda9190611328565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610d305760019050610e06565b600360008460e0016020810190610d479190611328565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dc5576040517f4daaa11000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600154821015610e01576040517f30c00ff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600190505b92915050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e6857610e676116bb565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610eaf576d04ee2d6d415b85acef81000000008381610ea557610ea46116bb565b5b0492506020810190505b662386f26fc100008310610ede57662386f26fc100008381610ed457610ed36116bb565b5b0492506010810190505b6305f5e1008310610f07576305f5e1008381610efd57610efc6116bb565b5b0492506008810190505b6127108310610f2c576127108381610f2257610f216116bb565b5b0492506004810190505b60648310610f4f5760648381610f4557610f446116bb565b5b0492506002810190505b600a8310610f5e576001810190505b80915050919050565b6000819050919050565b610f7a81610f67565b82525050565b6000602082019050610f956000830184610f71565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610fd082610fa5565b9050919050565b610fe081610fc5565b8114610feb57600080fd5b50565b600081359050610ffd81610fd7565b92915050565b60006020828403121561101957611018610f9b565b5b600061102784828501610fee565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561106a57808201518184015260208101905061104f565b60008484015250505050565b6000601f19601f8301169050919050565b600061109282611030565b61109c818561103b565b93506110ac81856020860161104c565b6110b581611076565b840191505092915050565b600060208201905081810360008301526110da8184611087565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611107576111066110e2565b5b8235905067ffffffffffffffff811115611124576111236110e7565b5b6020830191508360208202830111156111405761113f6110ec565b5b9250929050565b60008083601f84011261115d5761115c6110e2565b5b8235905067ffffffffffffffff81111561117a576111796110e7565b5b602083019150836020820283011115611196576111956110ec565b5b9250929050565b600080600080604085870312156111b7576111b6610f9b565b5b600085013567ffffffffffffffff8111156111d5576111d4610fa0565b5b6111e1878288016110f1565b9450945050602085013567ffffffffffffffff81111561120457611203610fa0565b5b61121087828801611147565b925092505092959194509250565b60008115159050919050565b6112338161121e565b82525050565b600060208201905061124e600083018461122a565b92915050565b600061125f82610fa5565b9050919050565b61126f81611254565b811461127a57600080fd5b50565b60008135905061128c81611266565b92915050565b61129b8161121e565b81146112a657600080fd5b50565b6000813590506112b881611292565b92915050565b600080604083850312156112d5576112d4610f9b565b5b60006112e38582860161127d565b92505060206112f4858286016112a9565b9150509250929050565b61130781611254565b82525050565b600060208201905061132260008301846112fe565b92915050565b60006020828403121561133e5761133d610f9b565b5b600061134c8482850161127d565b91505092915050565b61135e81610f67565b811461136957600080fd5b50565b60008135905061137b81611355565b92915050565b60006020828403121561139757611396610f9b565b5b60006113a58482850161136c565b91505092915050565b600080fd5b600061014082840312156113ca576113c96113ae565b5b81905092915050565b6000602082840312156113e9576113e8610f9b565b5b600082013567ffffffffffffffff81111561140757611406610fa0565b5b611413848285016113b3565b91505092915050565b600081905092915050565b50565b600061143760008361141c565b915061144282611427565b600082019050919050565b60006114588261142a565b9150819050919050565b600081905092915050565b600061147882611030565b6114828185611462565b935061149281856020860161104c565b80840191505092915050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b60006114d4600183611462565b91506114df8261149e565b600182019050919050565b60006114f6828661146d565b9150611501826114c7565b915061150d828561146d565b9150611518826114c7565b9150611524828461146d565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000823560016101400383360303811261158257611581611560565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115ea60268361103b565b91506115f58261158e565b604082019050919050565b60006020820190508181036000830152611619816115dd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061165660208361103b565b915061166182611620565b602082019050919050565b6000602082019050818103600083015261168581611649565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea2646970667358221220a90f9549b2c171248f4edd55431d96e562cb9659e709f69d57217dde5d4b8adc64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000042000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000e35fa931a000
-----Decoded View---------------
Arg [0] : eas (address): 0x4200000000000000000000000000000000000021
Arg [1] : _attestationFee (uint256): 250000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000021
Arg [1] : 0000000000000000000000000000000000000000000000000000e35fa931a000
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.