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

WIP Neon Core api #904

Closed
wants to merge 13 commits into from
Closed

WIP Neon Core api #904

wants to merge 13 commits into from

Conversation

Denommus
Copy link
Contributor

@Denommus Denommus commented Sep 6, 2023

No description provided.

kristinaNikolaevaa and others added 13 commits August 8, 2023 17:30
* NDEV 1982 neon api tests

* Update docker-compose-ci.yml

* fix host name

* fixed compose file

* Update test_neon_core_api.py
* Move neon_lib::types::trace module into neon_lib::event_listener

* Promote evm_loader::evm::tracing module to directory

* Move neon_lib::event_listener module into evm_loader::evm::tracing

* Inject Tracer as Machine field + remove environmental crate

* cargo clippy --fix + cargo fmt

* Add tracing feature back

* CR

* Move Bytes struct to bytes module

* Rename bytes::Bytes to hexbytes::HexBytes
* Update docker-compose-ci.yml

* fixed pattern

* Update docker-compose-ci.yml
* moved operators account creating to tests

* Update conftest.py

* added more operators

* fix path

* deleted unused files

* Update Dockerfile

* back create-test-account.sh

* Update Dockerfile

* Create neon_token_keypair.json

* fix

* Update Dockerfile
* Made `TracerType` dynamic

* Refactored. Added support for different tracer types. Moved debug tracing functionality from Tracer API.

* Fixed warnings

* Added support of byte-vector buffer in order to reduce cloning

* Reduced cloning of `return_data`

* Removed unused `trace_stack`

* Marked `Buffer::from_account` as `unsafe`

* Small optimization

* Restructured modules, simplified code

* Rewritten `StructLogger` tracer in order to simplify the code

* Rewritten `opcode_call_precompile_impl` to more idiomatic

* Rolled back changes rejected during review

* Updated serde version

* Updated serde version

* Fixed arguments for `emulate-hash` in Neon CLI
Add missing #[cfg(feature = "tracing")]

Use current_thread runtime for neon-cli

Migrate to actix-web

Cargo clippy --fix

Remove axum

Add obsolete routes back

Less block

Try maybe_async

More maybe_async

Add async_trait dependency

Inline OPCODES table

Remove one block

Add more tracing feature

Use maybe-async only in program

Fix clippy warnings

Migrate Tracer to non-Send types

Extract execute_opcode method

Remove block from map_solana_account

Remove block calls from clone_solana_account

Remove block call from solana_account_space

Fix clippy warnings

Remove block calls from storage

Remove block call from generation

Remove block call from code

Remove block calls from code_hash

Remove block call from code_size

Remove block call from balance

Remove block call from nonce

Remove block calls from exists

Remove block call from block_hash

Remove block call from map_solana_account

Remove block call

More #[cfg(not(feature = "tracing"))]

More #[cfg(not(feature = "tracing"))]

Refactor #[cfg(not(feature = "tracing"))] uses

Remove #[cfg(feature = "tracing")] special uses

More #[cfg(not(feature = "tracing"))]

Refactor #[cfg(feature = "tracing")] uses

Rename tracing feature to library

Actix handles signals

Remove #![allow(dead_code)]

Remove double Arc from actix_web::web::Data usage

Remove Clone from State

Remove Arc from State.config

Remove Arc from Context.rpc_client

Make Rpc trait non-Send

Add TODO

Remove Clone from IndexerDb

Remove Arc from IndexerDb.client

Replace Arc with Rc for TransactionExecutor

Remove Clone from ClickHouseDb

Remove Arc from ClickHouseDb.client

Remove Arc from Config.fee_payer

Replace tokio::sync::RwLock with RefCell in TransactionExecutor.signatures

Replace tokio::sync::RwLock with RefCell in TransactionExecutor.stats

Replace tokio::sync::RwLock with RefCell in EmulatorAccountStorage.accounts

Fix clippy warnings

Replace tokio::sync::RwLock with RefCell in EmulatorAccountStorage.solana_accounts

Remove #[allow(clippy::await_holding_refcell_ref)]

More #[cfg(not(feature = "library"))]

More #[cfg(not(feature = "library"))]

Remove Send super trait from VMTracer

Change back Solana program Rust version to 1.64.0

Use #[actix_web::main] instead of #[tokio::main(flavor = "current_thread")]

Add Clone back to types needed by tracer-api
@Denommus Denommus closed this Sep 6, 2023
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.

6 participants