Skip to content

Conversation

intelliot
Copy link
Contributor

@intelliot intelliot commented May 28, 2025

example of how to run test:

craft test --project xrpl_std_update_data_test --host-function-test update_data/basic_data_update

This builds on:

pwang200 and others added 30 commits May 8, 2025 09:45
* added sfield constants
* added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. 
* added Locator string
* refactored main and vm
* some basic tests done, more tests are needed
* Add trace host function
* Update build to support WASM panic handler
* Add supporting layer for errors
* Update `xrpl_std_example` to emit text and numeric data
* Add helper build scripts
…dd-trace

# Conflicts:
#	projects/xrpl_std_example/src/lib.rs
#	wasm-host/src/host_functions.rs
#	wasm-host/src/main.rs
#	wasm-host/src/vm.rs
#	xrpl-std/src/lib.rs
* added sfield constants
* added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples.
* added Locator string
* refactored main and vm
* some basic tests done, more tests are needed
* added sfield constants
* added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples.
* added Locator string
* refactored main and vm
* some basic tests done, more tests are needed
@intelliot
Copy link
Contributor Author

You can now build the host_functions_test like this:

craft build --project host_functions_test --release --opt-level z

e.g. run test with:

craft test --project host_functions_test --test-case host_functions_test
@intelliot intelliot requested a review from sappenin May 30, 2025 06:09
@intelliot
Copy link
Contributor Author

This is getting big. I'd like to merge it into df/struct-types and then we can, in turn, merge that into devnet3

I recommend using Merge commits so that we don't have to rebase commits which are present in multiple branches.

intelliot and others added 11 commits May 29, 2025 23:46
Resolved merge conflicts

MockData uses SField_To_Name for field name retrieval
Resolved conflicts

Updated package.json to use xrpl version 4.3.0-smartescrow.3 and ripple-binary-codec version 2.4.0-smartescrow.2
When running tests, look for the following to see that the tests actually passed:

  WASM TRACE: SUCCESS: All host function tests passed!

also, look to see:

  Result:     true

Here is an example test command:

  craft test --project host_functions_test --test-case success
Fix merge conflicts in `df/struct-types`
…work

Resolve merge conflicts

Consolidate decode function implementations
@sappenin
Copy link
Collaborator

sappenin commented Jun 2, 2025

Any objection to getting df/add-struct-types merged first, and then retarget this to devnet3 (or devnet4)? There are a lot of changes here, and there are already a lot of changes in the struct branch.

@intelliot
Copy link
Contributor Author

Any objection to getting df/add-struct-types merged first, and then retarget this to devnet3 (or devnet4)?

No objection. Go for it!

Base automatically changed from df/struct-types to main June 4, 2025 18:34
@sappenin
Copy link
Collaborator

sappenin commented Jun 4, 2025

#37 has been merged. Looks like this branch needs to be updated/rebased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants