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

Development >> Master #40

Merged
merged 32 commits into from
Oct 16, 2024
Merged

Development >> Master #40

merged 32 commits into from
Oct 16, 2024

Conversation

poplexity
Copy link
Member

No description provided.

poplexity and others added 30 commits June 19, 2024 17:07
…ks for rscdk compiled contracts"

This reverts commit 6977b8b, in particular the endianness of Checksum256.
This is needed to be compatible with the C++ smart contracts compiler, while rscdk (Rust WASM compiler)
needs the commit that here is being reverted.

This means that going on antelope-rs will be compatible with the C++ smart contracts compiler and not with
the Rust compiler.
The test was meant to check the consistency of the Checksum256 encoding with the SNARKtor contracts and the WASM-compiled smart contracts in general. However, given that the `rscdk` compiler treats the encoding of Checksum256 with a different encoding compared to the C++ compiler, the test has been removed.
It could be restored once the `rscdk` issue is fixed.
- Added the conditional configuration of tests
- Split the account deserialization test into 3 smaller tests
- Switched to raw strings to keep JSON formatting and make the content more readable
The deserialization of the `core_liquid_balance` wasn't taking into account that such field could be omitted.
Fix the deserialization of some `get_account` responses

This PR includes some fixes to prevent the crash of antelope-rs during the deserialization of some get_account responses. The affected fields are:

- AccountVoterInfo/last_stake
- AccountResourceLimit/available
- AccountResourceLimit/max
- AccountObject/core_liquid_balance

Some unit tests have been added to cover these edge cases.
Support for encode/decode of Webauthn (WA) type signatures
Response decoding fix for inconsistent types
In order to avoid duplicate runs, the trigger has now been set to activate when a new push within a PR targeting the `development` branch is detected.
[CI] Added `--all-targets` as parameter of `cargo clippy`
* Changes for ship reading

* Adding support for other index types on next_key

* Fix ABI encoding, better handle secondary index table queries

* WIP - Complete GetTableRowsParams to_json functionality

* Switch endian order for Checksum256 index, only works for rscdk compiled contracts

* Some changes to deseralize blocks

* Disable TrxVarient on get block response for now

* Fix mock provider data

* formatter and clippy pass

* Partially revert "Switch endian order for Checksum256 index, only works for rscdk compiled contracts"

This reverts commit 6977b8b, in particular the endianness of Checksum256.
This is needed to be compatible with the C++ smart contracts compiler, while rscdk (Rust WASM compiler)
needs the commit that here is being reverted.

This means that going on antelope-rs will be compatible with the C++ smart contracts compiler and not with
the Rust compiler.

* Removed `secondary_index` test

The test was meant to check the consistency of the Checksum256 encoding with the SNARKtor contracts and the WASM-compiled smart contracts in general. However, given that the `rscdk` compiler treats the encoding of Checksum256 with a different encoding compared to the C++ compiler, the test has been removed.
It could be restored once the `rscdk` issue is fixed.

* Removed commented code

* Add tracing logging instead of println.

* Remove debug flag.

* fmt.

* Rollback default provided implementation.

* Remove prints for the tests.

* Fix compile after merge.

---------

Co-authored-by: Jesse Schulman <[email protected]>
Co-authored-by: Guillermo Rodriguez <[email protected]>
Co-authored-by: Paolo Tagliaferri <[email protected]>
Co-authored-by: lesa-telos <[email protected]>
Copy link
Contributor

@ptagl ptagl left a comment

Choose a reason for hiding this comment

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

It looks good to me, thanks!

In the next iterations we may consider continuing the cleanup effort and removing even more calls to unwrap.

@poplexity poplexity merged commit ccd4422 into master Oct 16, 2024
4 checks passed
@poplexity poplexity deleted the development branch October 21, 2024 19:30
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.

5 participants