Git Product home page Git Product logo

evmgateway's People

Contributors

adraffy avatar alexni245 avatar arachnid avatar clowestab avatar lucemans avatar makoto avatar tateb avatar wottpal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evmgateway's Issues

TypeError: Cannot read properties of undefined (reading 'JsonRpcSigner')

building op-verifier...
An unexpected error occurred:

TypeError: Cannot read properties of undefined (reading 'JsonRpcSigner')
    at Object.<anonymous> (/Users/chomtana/Desktop/projects/optidomains/evmgateway/node_modules/zksync-web3/build/src/signer.js:78:74)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Object.require.extensions.<computed> [as .js] (/Users/chomtana/Desktop/projects/optidomains/evmgateway/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/chomtana/Desktop/projects/optidomains/evmgateway/node_modules/zksync-web3/build/src/utils.js:20:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)

Build fails since `[email protected]`

After fighting a bit to get this repo to work, we figured out that with recent bun versions it simply doesn't build (and also doesn't install dependencies because bun run build is a prepare pre-script).

➜  evmgateway git:(main) ✗ bun install                       
bun install v1.0.17 (5e60861c)
  ⚙️  @ensdomains/op-gateway [1/5] $ echo 'building l1-gateway...' && bun run clean && bun run build:cjs && bun run build:esm && bun run build:types
building l1-gateway...
$ rm -fr _cjs _esm _types
$ tsc --project tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && echo > ./_cjs/package.json '{"type":"commonjs"}'
src/index.ts(1,28): error TS2307: Cannot find module '@ensdomains/evm-gateway' or its corresponding type declarations.
src/L1ProofService.ts(8,52): error TS2307: Cannot find module '@ensdomains/evm-gateway' or its corresponding type declarations.
src/server.ts(3,28): error TS2307: Cannot find module '@ensdomains/evm-gateway' or its corresponding type declarations.
src/worker.ts(2,29): error TS2307: Cannot find module '@ensdomains/evm-gateway' or its corresponding type declarations.
src/worker.ts(12,38): error TS2307: Cannot find module '@ensdomains/evm-gateway' or its corresponding type declarations.

error: prepare script from "@ensdomains/l1-gateway" exited with code 2 (SIGINT)

We also identified that this is related to the parallelization of lifecycle scripts since v1.0.17. There's an easy fix to it which I'll open a PR for shortly. 🫡

Existing deployments and gateways

Hello there, intrigued by this project/pattern!

I was wondering if there is any general purpose implementation deployed on L1 and Optimism with companion gateway that would allow to read from any existing and new Optimism contract from L1 without having to deploy EVMGateways logic or run a gateway. If this exists can you share a short example on how to query from an L1?

Will any authority (eg ENS or Optimism) run gateways for the mass?

l1-verifier tests not passing

I'm just having a play with the gateway code.

The l1-verifier repo has a test script testL1Verifier.ts.

Running the tests with npx hardhat test results in failures across the board.

Looking at the code it seems obvious why - the tests are expecting primitive type values whereas the fetch method of EVMFetcher reverts with the 3668 OffchainLookup error.

These tests seem to be testing the wrong thing..?

These repos are not well documented at this point. Could clarity please be provided.

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.