GithubHelp home page GithubHelp logo

cdt-eth / context Goto Github PK

View Code? Open in Web Editor NEW

This project forked from once-upon/context

0.0 0.0 0.0 433 KB

Context for Ethereum L1 and L2 transactions

Home Page: https://www.npmjs.com/package/@once-upon/evm-context

License: MIT License

JavaScript 0.99% TypeScript 96.17% Handlebars 2.84%

context's Introduction

EVM Context

Screenshot 2023-12-01 at 1 26 47 PM

Context for Ethereum L1 and L2 transactions

If you want your protocol to work well on your own app, use a private indexer.
If you want your protocol to work well across all of web3, contribute to EVM Context.

Ideal contributors:

  • Protocol teams

Ideal users

  • Wallets
  • Web3 browsing tools
  • Web3 analytics tools

Quick start

Generating a new contextualization

npm run create:contextualizer [name of protocol] -- -h [transaction hash]`

This will generate a new file called protocol/[name of protocol].ts and a test file called protocol/[name of protocol].spec.ts.

Writing tests

You should write unit tests for your PR using a real transaction. Do this by running:

npm run grab:transaction [txHash] [nickname for the type of tx]

Finishing your new contextualization

Once that's ready, please open a PR on this repo and request review from pcowgill and jordanmessina

License

See the LICENSE file for license rights and limitations (MIT).

context's People

Contributors

pcowgill avatar ponyjackal avatar jordanmessina avatar cdt-eth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.