Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointer registry #1489

Open
wants to merge 203 commits into
base: seiv2
Choose a base branch
from
Open

Pointer registry #1489

wants to merge 203 commits into from

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Mar 28, 2024

Describe your changes and provide context

Testing performed to validate your change

codchen and others added 30 commits March 11, 2024 16:12
* evm wip

* Create EVM module and add types/keeper

* lint

* rebase

* tests

* add tests

* address comments
* evm wip

* Create EVM module and add types/keeper

* add tests

* EVM signature verification

* refactor
* [EVM] Add gas check ante handler

* add tests and remove unnecessary configs/versions
* [EVM] implement balance related methods for state interface

* add tests
)

* Add account state to EVM state interface implementation

* add Snapshot and rollback
* [EVM] Add gas check ante handler

* [EVM] implement balance related methods for state interface

* Add account state to EVM state interface implementation

* add Snapshot and rollback

* wip

* [EVM] add remaining state interface function

* rebase
* Add account state to EVM state interface implementation

* add Snapshot and rollback

* wip

* [EVM] add remaining state interface function

* [EVM] access list

* add unit tests

* improve code coverage

---------

Co-authored-by: Jeremy Wei <[email protected]>
* [EVM] implement message server that processes EVM transactions

* add tests
* [EVM] implement message server that processes EVM transactions

* [EVM] add bank precompile

* upgrade to Go 1.20

* rename coinbase

* tests & linter
* [EVM] implement message server that processes EVM transactions

* rename coinbase

* [EVM] add RPC/WS server helpers

* tests

* fix
* [EVM] implement message server that processes EVM transactions

* rename coinbase

* [EVM] add RPC/WS server helpers

* tests

* wip

* [EVM] add getBlockByHash endpoint

* rebase
[EVM] add endpoint to get block transaction count
* [EVM] add get transaction receipt endpoint

* refactor tests
[EVM] add getTransaction endpoints
[EVM] refactor gas logic
* [EVM] add endpoint to return fee history

* bump to 1.21
* Implement get code, storage, balance endpoints

* revert logging change

* also using bank keeper to check for balances

* appease linter
* simulate api

* add tests

* linter
* [EVM] add subscription utility

* finished new filter

* finished tests for new filter

* finished uninstall filter

* query tendermint for events

* in progress

* got first couple of tests done

* finished tests for get logs

* get filter logs and get filter changes

* refactor

* get filter logs accepts multiple addresses

* use multiple addresses and use cursor map

* remove bad test

* remove prints and todos

* minor fix

* fix lint errors and failing test

* poc to pass filtercriteria into JSON RPC

* made topics 2d array and adjusted regex

* GetLogs tests work

* Finished other functions

* remove unncessary inputs from NewFilterAPI

* add expiration/timeouts for filters

* removed error from UninstallFilter

* minor fix

* appease linter

---------

Co-authored-by: codchen <[email protected]>
* [EVM] return gas info in message handler correctly

* add comments
* integration

* fix tests
* [EVM] add transaction type to associate account

* tests
* [EVM] add transaction type to associate account

* [EVM] convert balance decimal points

* [EVM] add ACL dependencies for EVM transactions

* Revert "[EVM] add ACL dependencies for EVM transactions"

This reverts commit 5376a87.

* address comments
* added new block filter

* wip

* finished tests

* minor fix

* fix lint

* minor fix

* fix test
jewei1997 and others added 28 commits March 13, 2024 10:06
* checkpoint

* add univ2 contracts + deploy_uinv2.sh

* able to deploy uniswapv2

* Unifap -> Uniswap

* univ2 set up

* trying to do swaps

* swaps work

* swaps in both directions work

* increase liquidity in pool

* remove prints

* revert changes to make loadtest work locally

* add legacy to forge cmds

* add print statement

* debug

* add UNIV2 msg type

* turn off ensure tx success

* comment out prints

* print

* print

* cleanup

* cleanup

* print script output

* debug

* forge install + parallelize token mints and approvals

* create intermediary univ2 swapper

* cleanup + remove bindings for univ2 pair and router

* cleanup

* fix

* cleanup

* query wallet balance in script

* appease linter
The problem this commit fix was that the `seid` binary built via Docker didn't contain the correct version when doing `seid version` because `.dockerignore` was specifying that `.git` should not be copied to the Docker context.

However, without copying it, the version cannot be computed anymore since the Makefile is defining version to be `VERSION := $(shell echo $(shell git describe --tags))` and of course if the `.git` is not copied, then this command cannot work.

Removing the `.git` from `.dockerignore` fixes the problem, it brings context transfer from `~78 MB` to `~295 MB` which added `1.1s` to a Docker build (0.4s vs 1.5s) on a Mac M1 Max.
* Bump seidb and add upgrade vresion

* tidy

* changelog
Add v4.1.5-evm-devnet upgrade
update sei-cosmos to v0.2.77-seiv2
* Add utils to replay ETH mainnet txs

* Add utils to replay ETH mainnet txs

* fixes

* continuous
* Set association and account for EVM contracts

* fix test
* EVM Associate Prefix Fix

* Remove debug

* Add Custom message field

* Custom Message

* remove recoverPubKey changes

* Update unit tests

* Update test message

* (Minor) test update
* EVM Precompile Tests

* Remove voting period reduction

* Rename file

* Revert gov change

* Update amount check
tick cosmos version to v0.2.78-seiv2
* loadtest throughput metrics

* fixes

* fix

* using per msg type on all metrics

* fix

* fix metrics keys and labels

* fix

* initialize maps

* add some prints

* fix defer

* fix

* fix

* go back to using normal map

* fix complilation

* fix lint
* Account for withdrawals in replay

* cancun prompt
* using ethreplay code to do a block test, test mocked out rn

* cleanup

* checkpoint

* commit 1 test case

* fixed imports

* a lot of cleanup

* add untracked files

* fix

* setting state using keeper

* getting meaningful results

* using GetContextForDeliverTx

* added coinbase addr as proposer addr

* adjust some block heights

* commit script that can be removed later

* simple tx working now

* verifying storage

* add test name flag

* refactor test ingestor

* removed a bunch of prints

* more cleanup

* more cleanup

* delete simpletx

* fix tony's suggestions

* remove blocktest evm keeper prefixes

* fix linter issues

* remove deadcode
* Oracle Precompile

* Update abi oracle

* Update tests

* Update tests

* Update abi + tests

* integration test query

* Precompile integration tests

* Update type

* Add more loggign

* lint

* Add more checks

* update tests
* fix go-lint

* try with index access
@udpatil udpatil force-pushed the seiv2 branch 2 times, most recently from aa0aca9 to 4eea060 Compare April 19, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants