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

Add missing derive(serde..) to BcsCodec & JsonCodec #823

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

bkolad
Copy link
Member

@bkolad bkolad commented Sep 8, 2023

Description

This PR adds missing serde derive for BcsCodec & JsonCodec

Testing

Ci passes.

Docs

No doc changes.

@bkolad bkolad marked this pull request as ready for review September 8, 2023 07:46
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #823 (3c877c8) into nightly (9efc47a) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Files Changed Coverage Δ
module-system/sov-state/src/codec/bcs_codec.rs 14.2% <100.0%> (ø)
module-system/sov-state/src/codec/json_codec.rs 100.0% <100.0%> (ø)

... and 1 file with indirect coverage changes

📢 Have feedback on the report? Share it here.

@bkolad bkolad added this pull request to the merge queue Sep 8, 2023
Merged via the queue into nightly with commit 6b93031 Sep 8, 2023
12 checks passed
@bkolad bkolad deleted the blaze/bcs_serde_fix branch September 8, 2023 08:52
neysofu pushed a commit that referenced this pull request Sep 14, 2023
Add risc0-adapter to packages_to_publish.txt

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Allow modules to query token names (#821)

* Add public function for fetching token names

* Add test coverage

* lint

fix keypair/private_key discrepancy for sov-cli (#811)

* fix keypair/private_key discrepancy

* formatting

* changes to use consistent format

* README changes

* linting fixes

* remove checked in rollup_config.toml

* fix token address in git workflow

---------

Co-authored-by: dubbelosix <dub@006.com>

Initializes pending block on begin slot + genesis block (#803)

* Initialize pending_block in begin_slot_hook properly

* add timestamp handling

* simplify unwrap

* simplify basefee calculation, genesis block will be handled in genesis

* Initialize genesis block

* improvements

* fix tests

* add tests

* fix test

* Add expect

* Move to lazy_static global test_config

* simplify

* fix

* one more fix

Add missing derive to BcsCodec (#823)

Bug fix: StateMap::Keys are not consistent across platforms (#804)

* Bug fix: Introduce EncodeLike trait.

This PR removes our StateMap key encoding based on std::Hash, which was
not consistent across platforms. Instead, this PR introduces the
`EncodeLike<Ref, Target>` trait which marks that Ref can be encoded
like Target by the implementing codec.

This PR also removes the SingletonKey type, which required special
handling in codecs. Instead, of using this placeholder, this PR
implements auxiliary methods on the working set for dealing with
singletons

* Remove rollup config changes

* fix test: qualify conversion

* Add missing bounds for fuzzing

* fix docs

* clarify zsts in comment

* allow separate codecs for keys/values

* Split key and value codecs

* Fix fuzzing feature

* Introduce StateCodec trait to allow EncodeLike with SplitCodec

* add doc comments

* Fix fuzz and test targets

* Fix test

* fix docs

Fix Cargo.lock, packages_to_publish.txt

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Update Cargo.lock

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Update Cargo.lock

Signed-off-by: Filippo Costa <filippo@sovlabs.io>
neysofu pushed a commit that referenced this pull request Sep 14, 2023
Add risc0-adapter to packages_to_publish.txt

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Allow modules to query token names (#821)

* Add public function for fetching token names

* Add test coverage

* lint

fix keypair/private_key discrepancy for sov-cli (#811)

* fix keypair/private_key discrepancy

* formatting

* changes to use consistent format

* README changes

* linting fixes

* remove checked in rollup_config.toml

* fix token address in git workflow

---------

Co-authored-by: dubbelosix <dub@006.com>

Initializes pending block on begin slot + genesis block (#803)

* Initialize pending_block in begin_slot_hook properly

* add timestamp handling

* simplify unwrap

* simplify basefee calculation, genesis block will be handled in genesis

* Initialize genesis block

* improvements

* fix tests

* add tests

* fix test

* Add expect

* Move to lazy_static global test_config

* simplify

* fix

* one more fix

Add missing derive to BcsCodec (#823)

Bug fix: StateMap::Keys are not consistent across platforms (#804)

* Bug fix: Introduce EncodeLike trait.

This PR removes our StateMap key encoding based on std::Hash, which was
not consistent across platforms. Instead, this PR introduces the
`EncodeLike<Ref, Target>` trait which marks that Ref can be encoded
like Target by the implementing codec.

This PR also removes the SingletonKey type, which required special
handling in codecs. Instead, of using this placeholder, this PR
implements auxiliary methods on the working set for dealing with
singletons

* Remove rollup config changes

* fix test: qualify conversion

* Add missing bounds for fuzzing

* fix docs

* clarify zsts in comment

* allow separate codecs for keys/values

* Split key and value codecs

* Fix fuzzing feature

* Introduce StateCodec trait to allow EncodeLike with SplitCodec

* add doc comments

* Fix fuzz and test targets

* Fix test

* fix docs

Fix Cargo.lock, packages_to_publish.txt

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Update Cargo.lock

Signed-off-by: Filippo Costa <filippo@sovlabs.io>

Update Cargo.lock

Signed-off-by: Filippo Costa <filippo@sovlabs.io>
preston-evans98 pushed a commit that referenced this pull request Sep 14, 2023
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