Skip to content
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

feat(wazero): Add v2 runtime functions #3428

Merged
merged 48 commits into from
Sep 14, 2023

Conversation

dimartiro
Copy link
Contributor

@dimartiro dimartiro commented Aug 8, 2023

Changes

This PR is a continuation of #2664

Changes

  • Implement runtime functions
    • ext_trie_blake2_256_root_version_2
    • ext_trie_blake2_256_ordered_root_version_2
    • ext_trie_blake2_256_verify_proof_version_2
    • ext_default_child_storage_root_version_2
    • ext_storage_root_version_2
  • Add new test cases

Blocked by #3433

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#2418

Primary Reviewer

@timwu20

@dimartiro dimartiro force-pushed the diego/trieV1/runtime-functions branch from f609a18 to 76767e9 Compare August 9, 2023 14:45
@dimartiro dimartiro changed the title feat(trie): Add v2 runtime functions feat(wazero): Add v2 runtime functions Aug 10, 2023
@dimartiro dimartiro changed the base branch from development to diego/trieV1/versioning August 16, 2023 14:48
dimartiro and others added 24 commits August 16, 2023 11:57
… 0.11.0 (#3441)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… to 10.15.0 (#3439)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….2 (#3440)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
testinput := []string{"dimartiro", "was", "here", "??"}
encInput, err := scale.Marshal(testinput)
require.NoError(t, err)
encInput[0] = encInput[0] >> 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you right shift the first index of encInput?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually a very good question, I based this in the one Elizabeth made for v1. I asked Tim about this right shift a few days ago to see if he knows anything. Will investigate it more about it

lib/trie/version.go Outdated Show resolved Hide resolved
lib/trie/version_test.go Outdated Show resolved Hide resolved
lib/runtime/wazero/imports.go Outdated Show resolved Hide resolved
lib/runtime/wazero/imports.go Outdated Show resolved Hide resolved
lib/runtime/wazero/imports.go Outdated Show resolved Hide resolved
@dimartiro dimartiro merged commit 16ea637 into diego/trieV1/versioning Sep 14, 2023
19 checks passed
@dimartiro dimartiro deleted the diego/trieV1/runtime-functions branch September 14, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants