Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Offchain prototype WIP - do not merge #350

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from

Commits on Aug 4, 2021

  1. Squashed commit to move over the "mmontour1306/offchain-prototype" code

    into the omgx monorepo, with some cleanup and whitespace fixes.
    
     Changes to be committed:
    	modified:   l2geth/core/state_processor.go
    	modified:   l2geth/core/state_transition.go
    	modified:   l2geth/core/vm/evm.go
    	modified:   l2geth/eth/api_backend.go
    	modified:   l2geth/internal/ethapi/api.go
    	modified:   l2geth/miner/worker.go
    	modified:   l2geth/params/version.go
    	modified:   l2geth/rollup/sync_service.go
    	modified:   l2geth/rpc/errors.go
    	modified:   l2geth/rpc/handler.go
    	modified:   l2geth/rpc/service.go
    	modified:   ops/docker/Dockerfile.geth
    	new file:   packages/omgx/offchain-prototype/README-moved.md
    	new file:   packages/omgx/offchain-prototype/contracts/HelloTuring.sol
    	new file:   packages/omgx/offchain-prototype/contracts/TuringHelper.sol
    	new file:   packages/omgx/offchain-prototype/hardhat.config.ts
    	new file:   packages/omgx/offchain-prototype/local.env
    	new file:   packages/omgx/offchain-prototype/package.json
    	new file:   packages/omgx/offchain-prototype/test/hello-test.ts
    	new file:   packages/omgx/offchain-prototype/tsconfig.json
    mmontour1306 committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    9ccc057 View commit details
    Browse the repository at this point in the history
  2. Use StaticJsonRpcProvider to reduce the number of chainId lookups.

     Changes to be committed:
    	modified:   packages/batch-submitter/src/exec/run-batch-submitter.ts
    	modified:   packages/message-relayer/src/exec/run.ts
    	modified:   packages/message-relayer/src/exec/withdraw.ts
    	modified:   packages/omgx/message-relayer-fast/src/exec/run.ts
    mmontour1306 committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    7244c29 View commit details
    Browse the repository at this point in the history
  3. Adjust various intervals to reduce log volume during development.

    Development only - not tuned for production.
    
     Changes to be committed:
    	modified:   ops/docker-compose.yml
    	modified:   ops/envs/batches.env
    	modified:   ops/envs/dtl.env
    	modified:   ops/envs/geth.env
    mmontour1306 committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    ebebf4f View commit details
    Browse the repository at this point in the history
  4. Clean up packages.json and change some versions to match what's

    used elsewhere in the monorepo.
    
     Changes to be committed:
    	modified:   packages/omgx/offchain-prototype/package.json
    mmontour1306 committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    c18455e View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Configuration menu
    Copy the full SHA
    6cc6411 View commit details
    Browse the repository at this point in the history
  2. Change the dependencies so that l2geth depends on dtl rather than

    the converse.
    
     Changes to be committed:
    	modified:   ops/docker-compose.yml
    mmontour1306 committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    93c8967 View commit details
    Browse the repository at this point in the history
  3. Add a very simple cache of the last off-chain result, so that

    we don't send multiple off-chain requests during the processing
    of a single transaction.
     Changes to be committed:
    	modified:   l2geth/core/vm/evm.go
    mmontour1306 committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    4287fc1 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2021

  1. Configuration menu
    Copy the full SHA
    e553ea3 View commit details
    Browse the repository at this point in the history
  2. create hardhat_swap folder with example stableSwap smart contract wit…

    …h tests and python code
    Mehul Agarwal committed Aug 6, 2021
    Configuration menu
    Copy the full SHA
    62fe346 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80f5a5f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2021

  1. Configuration menu
    Copy the full SHA
    62d1b27 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into offchain-prototype

     Conflicts:
    	l2geth/miner/worker.go
    mmontour1306 committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    36a8f1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    62a449b View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Generalize the RLP encoding to allow arbitrary abiEncoded payloads. R…

    …egister
    
    multiple methods to be called over JSON-RPC. Update the "hello world" example
    to include an "add 2 numbers" method as well as the string lookups.
    
    	modified:   packages/omgx/offchain-prototype/contracts/HelloTuring.sol
    	modified:   packages/omgx/offchain-prototype/contracts/TuringHelper.sol
    	modified:   packages/omgx/offchain-prototype/test/hello-test.ts
    mmontour1306 committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    8e3c6c4 View commit details
    Browse the repository at this point in the history
  2. Remove the now-broken mock L1 mode.

     Changes to be committed:
    	modified:   contracts/TuringHelper.sol
    	modified:   package.json
    	modified:   test/hello-test.ts
    mmontour1306 committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    899a2b1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8d98f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Merge branch 'develop' into offchain-prototype

     Conflicts:
    	ops/docker-compose.yml
    mmontour1306 committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    f391f1f View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. fix fee-test.ts and add sqrt off-chain for stable-test.ts (#330)

    Co-authored-by: Mehul Agarwal <[email protected]>
    agarwalml and Mehul Agarwal authored Sep 6, 2021
    Configuration menu
    Copy the full SHA
    9328880 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5199db8 View commit details
    Browse the repository at this point in the history
  3. TURING OFFCHAIN COMPUTE: add uniswapv2 fee example (incomplete) - WIP (

    …#315)
    
    * add uniswapv2 fee example (incomplete)
    
    * add offchain in uniswapv2pair
    
    * feat: update fee-test
    
    Co-authored-by: Mehul Agarwal <[email protected]>
    Co-authored-by: souradeep-das <[email protected]>
    Co-authored-by: CAPtheorem <[email protected]>
    4 people authored Sep 6, 2021
    Configuration menu
    Copy the full SHA
    b9c2dfe View commit details
    Browse the repository at this point in the history
  4. TURING OFFCHAIN COMPUTE: Offchain prototype mult classifier (#317)

    * Added multplication to offchain compute
    
    * added classifier
    
    * added classifier test
    
    * addd __pychache__ to gitignore
    
    * Added classifier
    
    * Updated Readme
    
    * nft designing
    
    * resolve merge conflicts
    
    Co-authored-by: CAPtheorem <[email protected]>
    jemeza and CAPtheorem authored Sep 6, 2021
    Configuration menu
    Copy the full SHA
    86ae989 View commit details
    Browse the repository at this point in the history
  5. Update yarn.lock

    CAPtheorem committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    4648aed View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1f0c74b View commit details
    Browse the repository at this point in the history
  7. Update yarn.lock

    CAPtheorem committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    a794a73 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2021

  1. Merge branch 'develop' into offchain-prototype

     Conflicts:
    	yarn.lock
    mmontour1306 committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    43c7a88 View commit details
    Browse the repository at this point in the history
  2. Update TuringHelper to log the offchain response when called in a

    transaction (vs. from eth_call).
    
    Skip a broken cat/dog classifier test case.
    
     Changes to be committed:
    	modified:   contracts/HelloTuring.sol
    	modified:   contracts/TuringHelper.sol
    	modified:   test/hello-test.ts
    mmontour1306 committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    0908121 View commit details
    Browse the repository at this point in the history