-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RFC-145 (former RFC-4) implementation #8641
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
Open
s0me0ne-unkn0wn
wants to merge
166
commits into
master
Choose a base branch
from
s0me0ne/rfc4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
166 commits
Select commit
Hold shift + click to select a range
e9cff60
Initial implementation
s0me0ne-unkn0wn 152226c
`clear_prefix` interface
s0me0ne-unkn0wn 545d882
Add `*_root()` implementations
s0me0ne-unkn0wn 9175fd4
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn d659d45
Implement the rest of `*_clear_prefix`
s0me0ne-unkn0wn 86786ae
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 58662fe
Fix marshalling
s0me0ne-unkn0wn a828976
Okay, let's start
s0me0ne-unkn0wn f10c77b
Fix marshalling once again
s0me0ne-unkn0wn e230cb8
Revert accidental impl deletion
s0me0ne-unkn0wn 7fb49fd
That will be a long night...
s0me0ne-unkn0wn be58f0e
Add a benchmark for abusing the allocator
koute 25266d7
Add a local allocator for use within the runtime
koute be89f24
Enforce local heap alignment
koute 169ac90
Merge remote-tracking branch 'origin/master' into master_local_allocator
koute 16f81de
More wrappers, more fixes
s0me0ne-unkn0wn fdfd995
Correct typo: `kb` -> `mb`
koute bb0b3f1
Merge branch 'master' into master_local_allocator
koute 5b8c0b2
Add proc-macro-based wrappers
s0me0ne-unkn0wn ca91571
Revert most of hashing calls
s0me0ne-unkn0wn 68f945a
Migrate wrappers
s0me0ne-unkn0wn 88286d6
Migrate the rest of wrappers
s0me0ne-unkn0wn c059570
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn d792897
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn 628bd5b
Implement input data passing through runtime buffer
s0me0ne-unkn0wn 3223bcc
`validate_block` implementation
s0me0ne-unkn0wn 7dd095c
Merge commit '25266d7dc43d783ef7bbdfb38ddabf6a5872a95f' into s0me0ne/…
s0me0ne-unkn0wn 6a9d14f
Merge commit 'be89f24c7c5749538cf9037dca3909cc172784e6' into s0me0ne/…
s0me0ne-unkn0wn 8ec4590
Merge commit 'bb0b3f15a0873f3bdf5ea7c324e7f07b409ed9b5' into s0me0ne/…
s0me0ne-unkn0wn f1649b9
Remove host-side allocator
s0me0ne-unkn0wn 0b751a6
Add optimizations to avoid Wasm bloating
s0me0ne-unkn0wn 3affa60
Switch runtime API interface to local heap
s0me0ne-unkn0wn 920acf0
Add dynamic heap allocation; Temporarily disable deprecated host func…
s0me0ne-unkn0wn 3b67b7b
Refactor niput parameters passing
s0me0ne-unkn0wn 1029d71
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn c4489b8
Cleanup
s0me0ne-unkn0wn e6c02fb
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 77d42d3
Merge remote-tracking branch 'origin/s0me0ne/rfc4' into s0me0ne/rfc4-…
s0me0ne-unkn0wn 8419017
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 33a751d
Merge remote-tracking branch 'origin/s0me0ne/rfc4' into s0me0ne/rfc4-…
s0me0ne-unkn0wn e129c52
Revert unrelated changes
s0me0ne-unkn0wn eea1a2b
Remove stale/debug code and comments
s0me0ne-unkn0wn 5bd241f
Unify wrapper comments
s0me0ne-unkn0wn 1b24a2f
Cherry-pick changes from #8866
s0me0ne-unkn0wn 1e3bfb0
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn a4a8607
Move input data out instead of cloning
s0me0ne-unkn0wn dfc9a19
Address discussions
s0me0ne-unkn0wn 5384419
Align docstrings with RFC
s0me0ne-unkn0wn 6fa6e26
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 69fa771
Update from github-actions[bot] running command 'prdoc --bump major -…
github-actions[bot] 9bc4f3f
Fix prfoc
s0me0ne-unkn0wn 7d14869
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn 539d7ae
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 7fc60fc
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn f9957c7
Do not fill buffers if undersized
s0me0ne-unkn0wn d556294
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 80c2ad0
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn b4c5f7c
Merge branch 's0me0ne/rfc4-impl' of github.com:paritytech/polkadot-sd…
s0me0ne-unkn0wn d78cd47
Add cached storage cursor operations
s0me0ne-unkn0wn 278b0ff
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn ae5c554
Use cached cursor in storage ops
s0me0ne-unkn0wn d31a693
Add runtime allocation sanity checker
s0me0ne-unkn0wn 3856d81
Fix deprecations
s0me0ne-unkn0wn 93bcd52
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 64e0055
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn 2580c07
Add some more wrappers
s0me0ne-unkn0wn ce02e18
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn e1392c5
Comply with the memory safery requirements
s0me0ne-unkn0wn 306e2fd
Address `clear_prefix` RFC changes
s0me0ne-unkn0wn 8f0e320
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn cc4ce1b
Merge remote-tracking branch 'origin/s0me0ne/rfc4' into s0me0ne/rfc4-…
s0me0ne-unkn0wn f796efd
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn e551d3b
Merge branch 's0me0ne/rfc4' into s0me0ne/rfc4-impl
s0me0ne-unkn0wn 57323e8
Implement `allow_partial` for storage reads
s0me0ne-unkn0wn 3ab249f
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 66de93e
Make public keys retrieval RFC-complaint
s0me0ne-unkn0wn 8a60cec
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn e3bd825
Remove stale code
s0me0ne-unkn0wn 75d42a0
`zepter`
s0me0ne-unkn0wn 026e3e3
`taplo`
s0me0ne-unkn0wn 0fd031d
Fix Zombienet SDK test harness
s0me0ne-unkn0wn d58af82
Align with the final RFC version
s0me0ne-unkn0wn 0f893b8
Merge branch 'master' into s0me0ne/rfc4
s0me0ne-unkn0wn 58d3926
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn d8cf6c4
Fix passing error values
s0me0ne-unkn0wn 7e52234
Update pr_8641.prdoc
s0me0ne-unkn0wn a9e94c1
Address discussions
s0me0ne-unkn0wn 07113a9
Address discussions
s0me0ne-unkn0wn 946b7ef
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn b823e1b
Get rid of hacky marshalling strategy
s0me0ne-unkn0wn cbc9fd1
Address minor discussions
s0me0ne-unkn0wn 37201cd
Safer slice marshalling
s0me0ne-unkn0wn 5944312
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn c1e9c2d
Remove redundant bound
s0me0ne-unkn0wn ea0abd8
Propagate error from `take_input_data`
s0me0ne-unkn0wn 2354f31
Add explicit marshalling errors
s0me0ne-unkn0wn b9c1d26
RFC-145 (former RFC-4) implementation (#8866)
s0me0ne-unkn0wn 3c9b27f
Do not instantiate host allocator for new runtimes
s0me0ne-unkn0wn 99d0f44
Simplify allocator detection
s0me0ne-unkn0wn 0745bfb
Switch test paras to V2 entry points
s0me0ne-unkn0wn d5b6879
Stub allocator for PolkaVM
s0me0ne-unkn0wn 5938f7d
Fix bugs in HTTP host functions
s0me0ne-unkn0wn 6dded94
Fix various tests
s0me0ne-unkn0wn c235799
Add one more wrapper
s0me0ne-unkn0wn 907e07b
Add explicit new versions instead of changing the old ones
s0me0ne-unkn0wn c84384c
Build try-runtime from source in CI
s0me0ne-unkn0wn 6e729be
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn e70ff56
Fix slice length mismatch bug
s0me0ne-unkn0wn c109beb
Aff RFC-complaint benchmarking host functions
s0me0ne-unkn0wn 126aa14
Overhaul runtime interface tests
s0me0ne-unkn0wn 1c69295
Update Cargo.lock
s0me0ne-unkn0wn dffb4ec
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn be9d819
Fix storage root once again
s0me0ne-unkn0wn bb883f5
Fix more tests
s0me0ne-unkn0wn 080efd3
Fix more tests
s0me0ne-unkn0wn d2b3825
Fix even more tests
s0me0ne-unkn0wn 335b6d3
Fix bench entry point signature
s0me0ne-unkn0wn fe9e9ff
Update from github-actions[bot] running command 'update-ui'
github-actions[bot] d46c09e
Fix pallet tests
s0me0ne-unkn0wn 30691ba
FIX MOAR TESTS
s0me0ne-unkn0wn 23163e9
Fix rustdoc
s0me0ne-unkn0wn b22acf8
Update pr_8641.prdoc
s0me0ne-unkn0wn f512f6b
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn bfe58b7
Fix `try-runtime` CI build
s0me0ne-unkn0wn af914a5
Update pr_8641.prdoc
s0me0ne-unkn0wn 84f5125
Disable Chopsticks tests in CI
s0me0ne-unkn0wn a8ee026
Update build-try-runtime.sh
s0me0ne-unkn0wn 1153b02
Update build-try-runtime.sh
s0me0ne-unkn0wn 0c066bc
Pass correct state version through externalities
s0me0ne-unkn0wn 7c05a85
More root-calculation related fixes
s0me0ne-unkn0wn 8f93425
Fix BEEFY test (V0->V1 root)
s0me0ne-unkn0wn 80cd65f
Update implementation.rs
s0me0ne-unkn0wn 03ca358
Update pr_8641.prdoc
s0me0ne-unkn0wn c95f5ff
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 6ca5a7b
Integrate trie layour versioning deeper
s0me0ne-unkn0wn 6f1d8be
Remove `RuntimeStateVersionExt`, move version into `Externalities`
s0me0ne-unkn0wn 06a19f0
Update pr_8641.prdoc
s0me0ne-unkn0wn ac2ec99
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn ed21166
Update testing.rs
s0me0ne-unkn0wn e0efbaa
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn ece29b4
`fmt`
s0me0ne-unkn0wn 859f5a7
Update pr_8641.prdoc
s0me0ne-unkn0wn 4103c2b
Fix public keys acquisition race
s0me0ne-unkn0wn 46465cb
Make `picoalloc` a workspace dependency
s0me0ne-unkn0wn cb89965
Change `next_key` wrapper API
s0me0ne-unkn0wn 1e34371
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn e615372
`fmt`
s0me0ne-unkn0wn 07c94cd
Fix `no_std` imports
s0me0ne-unkn0wn e8090c4
Rename `read` -> `read_exact`
s0me0ne-unkn0wn dab80e7
Rename `wrapped` -> `raw_api`
s0me0ne-unkn0wn 660b85b
Detailed panic message
s0me0ne-unkn0wn f110f98
Make `next_key` buffers reusable
s0me0ne-unkn0wn eb91d6e
Fix description
s0me0ne-unkn0wn b9b8ce4
Fix not-RFC-complaint `runtime_version`
s0me0ne-unkn0wn 13225fc
Fix more non-RFC-compliant functions
s0me0ne-unkn0wn 2d250a7
Fix macro syntax
s0me0ne-unkn0wn 162c97a
Switch `*_public_keys` to `ReadWrite` strategy.
s0me0ne-unkn0wn a6144dc
Add ERRATA comment
s0me0ne-unkn0wn 7aa146c
Fix assertion
s0me0ne-unkn0wn 1996cf2
Fix syntax
s0me0ne-unkn0wn 0912ba2
Merge branch 'master' into s0me0ne/rfc4
s0me0ne-unkn0wn 997bf44
`fmt`
s0me0ne-unkn0wn 9c2b107
Fix semver
s0me0ne-unkn0wn 24d41b2
Merge remote-tracking branch 'origin/master' into s0me0ne/rfc4
s0me0ne-unkn0wn 7c3e6cc
Repair `try-runtime` build
s0me0ne-unkn0wn dc6e400
Update from github-actions[bot] running command 'update-ui'
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| title: RFC-145 (former RFC-4) host functions implementation | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| This implements the host functions introduced by [RFC-145](https://github.com/polkadot-fellows/RFCs/pull/145). | ||
| crates: | ||
| - name: sp-io | ||
| bump: major | ||
| - name: sp-runtime-interface | ||
| bump: major | ||
| - name: sp-externalities | ||
| bump: major | ||
| - name: polkadot-node-core-pvf-common | ||
| bump: major | ||
| - name: sc-executor-polkavm | ||
| bump: major | ||
| - name: sc-executor-wasmtime | ||
| bump: major | ||
| - name: sp-wasm-interface | ||
| bump: major |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.