This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Smart-contract inspection and instrumentation.#165
Merged
Conversation
e4c58fd to
109cdaf
Compare
109cdaf to
4d7ceca
Compare
gavofyork
approved these changes
May 23, 2018
JoshOrndorff
added a commit
to moonbeam-foundation/substrate
that referenced
this pull request
Apr 21, 2021
liuchengxu
pushed a commit
to chainx-org/substrate
that referenced
this pull request
Aug 23, 2021
liuchengxu
pushed a commit
to chainx-org/substrate
that referenced
this pull request
Aug 23, 2021
helin6
pushed a commit
to boolnetwork/substrate
that referenced
this pull request
Jul 25, 2023
* Revert contracts put_code test to pure code (not using the macro) * Test contract instantiate * Fmt * Extract put_code and new_client functions * Generate fresh accounts for contract tests to allow reruns without a chain purge * Fetch and increment nonce to allow concurrent test runs * fmt * Failing contract call test * Fmt and fix compilation * Fix error message for contract call * Fix call test * Update contract execution event comment * Remove redundant feature flags, now on module * Update event data comment * Use fetch_add * Fmt
helin6
pushed a commit
to boolnetwork/substrate
that referenced
this pull request
Jul 25, 2023
* Upgrade to substrate 2.0.0 * WIP implement Subcommand manually (see paritytech#6894 (comment)) * Add pallet-staking/std to the std feature * Sort out the subcommand impl * Sort out the module index (ty @ascjones) Sort out the RefCount type (ty @dvc94ch) Random tweaks to make test-node more similar to the vanilla node-template * obey the fmt * Add changelog and bump versions * Merge paritytech#165 and update CHANGELOG * Update test-node/runtime/src/lib.rs Co-authored-by: Demi Marie Obenour <demiobenour@gmail.com> * Update CHANGELOG.md Co-authored-by: Demi Marie Obenour <demiobenour@gmail.com> Co-authored-by: Demi Marie Obenour <demiobenour@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds parity-wasm and pwasm-utils as dependencies. These deps open a way to inspect and instrument wasm binaries before execution.
Inspection is required for finding out what memory requirements the module has. Inspection is the only possible way since sandbox API doesn't expose such info to keep it's API surface small.
Instrumentation is used for injecting gas and stack height counters.
Note that gas limit is hardcoded and syscalls don't deduct gas for now.