npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ethereum-attestation-service/eas-contracts

v1.8.0

Published

Ethereum Attestation Service

Downloads

16,000

Readme

Ethereum Attestation Service

Docs NPM Package Test License

Introduction

The Ethereum Attestation Service is a free and open protocol for on-chain attestations on EVM compatible blockchains. It is a generalized service that allows anyone to register a schema for their particular use case, and then make attestations following their schema.

Schemas can be registered using the SchemaRegistry.sol contract, and attestations are made using the EAS.sol contract.

In addition, we provide a resolver contract for advanced use cases, such as on-chain verification of attestation data, and also attaching payments to attestations (which makes a new suite of powerful web3 applications possible).

We also provide an SDK for developers.

On-chain attestations will enable a powerful new range of web3 applications, including:

  • Identity
  • Trust Scores
  • Goodness Scores
  • Credit Scores
  • Clout
  • Land Registries
  • Social Networks
  • Portable Trust Layers
  • Retroactive Public Goods Funding
  • KYC Services
  • Uncollateralized Lending / Borrowing
  • Voting
  • Oracles (who can be atomically paid for making attestations inside the protocol)
  • Likes/Dislikes
  • Content Filtering
  • And many more!

Deployments

Please note that you can also import and use the addresses directly in your code using the @ethereum-attestation-service/eas-contracts/deployments deployment artifacts corresponding to your desired network.

Mainnets

Ethereum

Version 0.26:

Optimism

Version 1.0.1:

Version 1.2.0:

Base

Version 1.0.1:

Version 1.2.0:

Arbitrum One

Version 0.26:

Arbitrum Nova

Version 1.3.0:

Polygon

Version 1.3.0:

Scroll

Version 1.3.0:

zkSync

Version 1.3.0:

Celo

Version 1.3.0:

Blast

Version 1.3.0:

Linea

Version 1.2.0:

Testnets

Sepolia

Version 0.26:

Version 1.2.0:

Optimism Sepolia

Version 1.0.2:

Version 1.3.0:

Optimism Goerli

Version 1.0.1:

Version 1.2.0:

Base Sepolia

Version 1.2.0:

Version 1.3.0:

Base Goerli

Version 1.0.1:

Version 1.2.0:

Arbitrum Goerli

Version 1.1.0:

Polygon Amoy

Version 1.3.0:

Scroll Sepolia

Version 1.3.0:

Linea Goerli

Version 1.2.0:

Installation

pnpm add @ethereum-attestation-service/eas-contracts

Testing

Testing the protocol is possible via multiple approaches:

Unit Tests

You can run the full test suite via:

pnpm test

Test Coverage

Latest Test Coverage Report (2023-10-31)

  • 100% Statements 350/350
  • 100% Branches 172/172
  • 100% Functions 120/120
  • 100% Lines 491/491
----------------------------------|----------|----------|----------|----------|----------------|
File                              |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------------------------------|----------|----------|----------|----------|----------------|
 contracts/                       |      100 |      100 |      100 |      100 |                |
  Common.sol                      |      100 |      100 |      100 |      100 |                |
  EAS.sol                         |      100 |      100 |      100 |      100 |                |
  IEAS.sol                        |      100 |      100 |      100 |      100 |                |
  ISchemaRegistry.sol             |      100 |      100 |      100 |      100 |                |
  Indexer.sol                     |      100 |      100 |      100 |      100 |                |
  SchemaRegistry.sol              |      100 |      100 |      100 |      100 |                |
  Semver.sol                      |      100 |      100 |      100 |      100 |                |
 contracts/eip1271/               |      100 |      100 |      100 |      100 |                |
  EIP1271Verifier.sol             |      100 |      100 |      100 |      100 |                |
 contracts/eip712/proxy/          |      100 |      100 |      100 |      100 |                |
  EIP712Proxy.sol                 |      100 |      100 |      100 |      100 |                |
 contracts/eip712/proxy/examples/ |      100 |      100 |      100 |      100 |                |
  PermissionedEIP712Proxy.sol     |      100 |      100 |      100 |      100 |                |
 contracts/resolver/              |      100 |      100 |      100 |      100 |                |
  ISchemaResolver.sol             |      100 |      100 |      100 |      100 |                |
  SchemaResolver.sol              |      100 |      100 |      100 |      100 |                |
 contracts/resolver/examples/     |      100 |      100 |      100 |      100 |                |
  AttestationResolver.sol         |      100 |      100 |      100 |      100 |                |
  AttesterResolver.sol            |      100 |      100 |      100 |      100 |                |
  DataResolver.sol                |      100 |      100 |      100 |      100 |                |
  ExpirationTimeResolver.sol      |      100 |      100 |      100 |      100 |                |
  PayingResolver.sol              |      100 |      100 |      100 |      100 |                |
  RecipientResolver.sol           |      100 |      100 |      100 |      100 |                |
  RevocationResolver.sol          |      100 |      100 |      100 |      100 |                |
  TokenResolver.sol               |      100 |      100 |      100 |      100 |                |
  ValueResolver.sol               |      100 |      100 |      100 |      100 |                |
----------------------------------|----------|----------|----------|----------|----------------|
All files                         |      100 |      100 |      100 |      100 |                |
----------------------------------|----------|----------|----------|----------|----------------|

Instructions

In order to audit the test coverage of the full test suite, run:

pnpm test:coverage

Profiling

You can profile the gas costs of all of the user-focused flows via:

pnpm test:profile

License

EAS is open source and distributed under the MIT License (see LICENSE).