[HOLD] Add an example custom kernel defining a custom syscall - #630
Closed
fridrik01 wants to merge 3 commits into
Closed
[HOLD] Add an example custom kernel defining a custom syscall#630fridrik01 wants to merge 3 commits into
fridrik01 wants to merge 3 commits into
Conversation
fridrik01
marked this pull request as ready for review
January 25, 2024 16:22
raulk
reviewed
Jan 25, 2024
mikevoronov
reviewed
Jan 28, 2024
mikevoronov
reviewed
Jan 28, 2024
longfeiWan9
reviewed
Feb 7, 2024
fridrik01
force-pushed
the
custom-kernel
branch
3 times, most recently
from
February 8, 2024 18:11
6e6d902 to
23833c8
Compare
fridrik01
marked this pull request as draft
February 8, 2024 18:12
fridrik01
force-pushed
the
custom-kernel
branch
from
February 9, 2024 14:30
23833c8 to
9849736
Compare
Based on feedback, this commit: - Renames DefaultCustomKernel to CustomKernelImpl which makes it clearer what its doing - Updates the custom kernel to extend the DefaultKernel instead of the FilecoinKernel which should not be needed inside IPC. This simplifies the code a lot.
fridrik01
force-pushed
the
custom-kernel
branch
from
March 13, 2024 15:03
9849736 to
f5eb585
Compare
Contributor
Author
|
This PR can be closed as its for documentation purposes |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DO NOT MERGE
This is PR is part of a pluggable syscall tutorial which we will share later and contains the final source code after following the tutorial.
Context
This PR replaces the current Fendermint FVM kernel with a new custom kernel which implements a new syscall and shows how you can use this syscall from a new custom actor which we load at genesis.
More specifically, this PR:
my_custom_syscallon the new kernelcustomsyscallactor which demonstrates calling the new syscallTest plan
You can test this new kernel/syscall/actor by running one of our integration tests.
First you need to have docker installed, then compile a local docker image with this PR checked out:
After the fendermint docker image has been built, you can run one of the integration tests
View fendermint logs and see the output generated by calling the
customsyscallactor in each epoch:View the docker logs:
You can now run
cargo make teardownto stop the container.