Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Smart-contract inspection and instrumentation. #165

Merged
merged 4 commits into from
May 23, 2018

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented May 16, 2018

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.

@pepyakin pepyakin added the A0-please_review Pull request needs code review. label May 18, 2018
@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. labels May 23, 2018
@gavofyork gavofyork merged commit b26259f into master May 23, 2018
@gavofyork gavofyork deleted the ser-contract-gas-metering branch May 23, 2018 11:46
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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants