Commit 6afe7bd3 authored by lbeder's avatar lbeder Committed by Mark Tyneway

Style + added predeploys

parent 45225f1f
...@@ -45,9 +45,10 @@ struct AttestationsResult { ...@@ -45,9 +45,10 @@ struct AttestationsResult {
bytes32[] uids; // UIDs of the new attestations. bytes32[] uids; // UIDs of the new attestations.
} }
/** /// @custom:proxied
* @title EAS - Ethereum Attestation Service /// @custom:predeploy 0x4200000000000000000000000000000000000021
*/ /// @title EAS
/// @notice The Ethereum Attestation Service protocol.
contract EAS is IEAS, Semver, EIP712Verifier { contract EAS is IEAS, Semver, EIP712Verifier {
using Address for address payable; using Address for address payable;
......
...@@ -97,9 +97,8 @@ struct MultiDelegatedRevocationRequest { ...@@ -97,9 +97,8 @@ struct MultiDelegatedRevocationRequest {
address revoker; // The revoking account. address revoker; // The revoking account.
} }
/** /// @title IEAS
* @title EAS - Ethereum Attestation Service interface. /// @notice The Ethereum Attestation Service interface.
*/
interface IEAS { interface IEAS {
/** /**
* @dev Emitted when an attestation has been made. * @dev Emitted when an attestation has been made.
......
...@@ -14,9 +14,8 @@ struct SchemaRecord { ...@@ -14,9 +14,8 @@ struct SchemaRecord {
string schema; // Custom specification of the schema (e.g., an ABI). string schema; // Custom specification of the schema (e.g., an ABI).
} }
/** /// @title ISchemaRegistry
* @title The global schema registry interface. /// @notice The interface of global attestation schemas for the Ethereum Attestation Service protocol.
*/
interface ISchemaRegistry { interface ISchemaRegistry {
/** /**
* @dev Emitted when a new schema has been registered * @dev Emitted when a new schema has been registered
......
...@@ -9,9 +9,10 @@ import { ISchemaResolver } from "./resolver/ISchemaResolver.sol"; ...@@ -9,9 +9,10 @@ import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
import { EMPTY_UID, MAX_GAP } from "./Common.sol"; import { EMPTY_UID, MAX_GAP } from "./Common.sol";
import { ISchemaRegistry, SchemaRecord } from "./ISchemaRegistry.sol"; import { ISchemaRegistry, SchemaRecord } from "./ISchemaRegistry.sol";
/** /// @custom:proxied
* @title The global schema registry. /// @custom:predeploy 0x4200000000000000000000000000000000000020
*/ /// @title SchemaRegistry
/// @notice The global attestation schemas for the Ethereum Attestation Service protocol.
contract SchemaRegistry is ISchemaRegistry, Semver { contract SchemaRegistry is ISchemaRegistry, Semver {
error AlreadyExists(); error AlreadyExists();
......
...@@ -16,9 +16,8 @@ import { ...@@ -16,9 +16,8 @@ import {
import { EIP712Signature, InvalidSignature, MAX_GAP, stringToBytes32, bytes32ToString } from "../Common.sol"; import { EIP712Signature, InvalidSignature, MAX_GAP, stringToBytes32, bytes32ToString } from "../Common.sol";
/** /// @title EIP712
* @title EIP712 typed signatures verifier for EAS delegated attestations. /// @notice The EIP712 typed signatures verifier for EAS delegated attestations.
*/
abstract contract EIP712Verifier is EIP712 { abstract contract EIP712Verifier is EIP712 {
// The hash of the data type used to relay calls to the attest function. It's the value of // The hash of the data type used to relay calls to the attest function. It's the value of
// keccak256("Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 nonce)"). // keccak256("Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 nonce)").
......
...@@ -4,9 +4,8 @@ pragma solidity ^0.8.0; ...@@ -4,9 +4,8 @@ pragma solidity ^0.8.0;
import { Attestation } from "../Common.sol"; import { Attestation } from "../Common.sol";
/** /// @title ISchemaResolver
* @title The interface of an optional schema resolver. /// @notice The interface of an optional schema resolver.
*/
interface ISchemaResolver { interface ISchemaResolver {
/** /**
* @dev Returns whether the resolver supports ETH transfers. * @dev Returns whether the resolver supports ETH transfers.
......
...@@ -7,12 +7,10 @@ import { Semver } from "../../universal/Semver.sol"; ...@@ -7,12 +7,10 @@ import { Semver } from "../../universal/Semver.sol";
import { IEAS, Attestation } from "../IEAS.sol"; import { IEAS, Attestation } from "../IEAS.sol";
import { InvalidEAS, uncheckedInc } from "../Common.sol"; import { InvalidEAS, uncheckedInc } from "../Common.sol";
import { ISchemaResolver } from "./ISchemaResolver.sol"; import { ISchemaResolver } from "./ISchemaResolver.sol";
/** /// @title SchemaResolver
* @title A base resolver contract /// @notice The base schema resolver contract.
*/
abstract contract SchemaResolver is ISchemaResolver, Semver { abstract contract SchemaResolver is ISchemaResolver, Semver {
error AccessDenied(); error AccessDenied();
error InsufficientValue(); error InsufficientValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment