Skip to content

Commit

Permalink
Feature/draft gather infos aurelien (#327)
Browse files Browse the repository at this point in the history
* Update proto files

* Add fetch from runtime

* Add abi trace parameter type + add execution trace for all ABI functions

* Fix fetching execution traces after wasm execution

* Cargo clippy pass

* Add execution traces for some wasmv1 abi calls (transfer coins, call, local call, local execution)

* Add serde json ser for AbiTraceType

* Now use Vec<AbiTraceValue> in AbiTrace

* Remove some comments

* update proto files

* wasmv1 send message arg fix

* assembly_script_function_exists && assembly_script_send_message param fixes

* Add AbiTrace.flatten_filter func

* Fix transfer coins param as u64 (was i64)

* Add from address

* Update proto

---------

Co-authored-by: sydhds <sd@massa.net>
  • Loading branch information
AurelienFT and sydhds committed Feb 22, 2024
1 parent 845dc73 commit 3210281
Show file tree
Hide file tree
Showing 12 changed files with 1,170 additions and 270 deletions.
25 changes: 18 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chrono = { version = "=0.4", features = ["clock"], default-features = false }
displaydoc = "0.2"
function_name = "0.3"
loupe = "0.1"
massa-proto-rs = { git = "https://github.com/massalabs/massa-proto-rs.git", rev = "84678fb77cf6d06d85d55e2c20502908ff292e61"}
massa-proto-rs = { git = "https://github.com/massalabs/massa-proto-rs.git", rev = "25638b3b7d387afbca81afcb02bae1af03697f18"}
more-asserts = "0.3"
num_enum = "0.7"
parking_lot = "0.12"
Expand All @@ -20,7 +20,7 @@ prost-types = "=0.12"
rand = "=0.8"
# for gas_calibration middleware
regex = "1"
serde = "=1.0"
serde = { version = "=1.0", features = ["derive"] }
serde_json = "=1.0"
serial_test = "2"
sha2 = "=0.10.8"
Expand All @@ -32,6 +32,7 @@ wasmer-compiler-cranelift = "=4.2.4"
wasmer-compiler-singlepass = "=4.2.4"
wasmer-middlewares = "=4.2.4"
wasmer-types = "=4.2.4"
rust_decimal = { version = "1.32", default-features = false, optional = true }

[dev-dependencies]
bs58 = { version = "=0.5.0", features = ["check"] }
Expand All @@ -46,3 +47,4 @@ gas_calibration = []
testing = []
dumper = []
build-wasm = []
execution-trace = ["rust_decimal"]

0 comments on commit 3210281

Please sign in to comment.