Skip to content

Extract SCSpecStructV0 from WASM segments #373

Description

@codeZe-us

The decode engine currently lacks the ability to parse SCSpecStructV0 types directly from compiled Soroban WASM contract bytes. We need to implement extraction logic to parse custom struct definitions embedded within WASM contract environment segments.

Issues/what to fix

  • Implement extraction of the SCSpecStructV0 environment spec entries from WASM custom sections.
  • Map the extracted byte streams into the corresponding stellar-xdr types.
  • Ensure the extraction process gracefully handles missing or malformed WASM segments without crashing.

Files location

crates/core/src/spec/decoder.rs, crates/core/src/spec/wasm.rs (if applicable)

Expected result

The system can successfully read a WASM blob and return a list of SCSpecStructV0 definitions embedded within it, enabling custom struct type resolution.

Contributor telegram group

https://t.me/+sII7WPhll2liMGNk

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions