Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
6afe7bd3
Commit
6afe7bd3
authored
Jul 15, 2023
by
lbeder
Committed by
Mark Tyneway
Jul 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style + added predeploys
parent
45225f1f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
22 deletions
+18
-22
EAS.sol
packages/contracts-bedrock/contracts/EAS/EAS.sol
+4
-3
IEAS.sol
packages/contracts-bedrock/contracts/EAS/IEAS.sol
+2
-3
ISchemaRegistry.sol
packages/contracts-bedrock/contracts/EAS/ISchemaRegistry.sol
+2
-3
SchemaRegistry.sol
packages/contracts-bedrock/contracts/EAS/SchemaRegistry.sol
+4
-3
EIP712Verifier.sol
...contracts-bedrock/contracts/EAS/eip712/EIP712Verifier.sol
+2
-3
ISchemaResolver.sol
...tracts-bedrock/contracts/EAS/resolver/ISchemaResolver.sol
+2
-3
SchemaResolver.sol
...ntracts-bedrock/contracts/EAS/resolver/SchemaResolver.sol
+2
-4
No files found.
packages/contracts-bedrock/contracts/EAS/EAS.sol
View file @
6afe7bd3
...
@@ -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;
...
...
packages/contracts-bedrock/contracts/EAS/IEAS.sol
View file @
6afe7bd3
...
@@ -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.
...
...
packages/contracts-bedrock/contracts/EAS/ISchemaRegistry.sol
View file @
6afe7bd3
...
@@ -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
...
...
packages/contracts-bedrock/contracts/EAS/SchemaRegistry.sol
View file @
6afe7bd3
...
@@ -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();
...
...
packages/contracts-bedrock/contracts/EAS/eip712/EIP712Verifier.sol
View file @
6afe7bd3
...
@@ -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)").
...
...
packages/contracts-bedrock/contracts/EAS/resolver/ISchemaResolver.sol
View file @
6afe7bd3
...
@@ -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.
...
...
packages/contracts-bedrock/contracts/EAS/resolver/SchemaResolver.sol
View file @
6afe7bd3
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment