onflow / cadence-tools

Developer tools for Cadence
https://www.onflow.org/
Apache License 2.0
24 stars 20 forks source link

[LS] Add FVM stdlib to Flow Integration #332

Closed jribbink closed 2 months ago

jribbink commented 6 months ago

Closes #331

Description

Adds option to LS to accept additional stdlib values. This option is used by flow integration to provide FVM-native stdlib values (e.g. InternalEVM contract right now... others in future?)


jribbink commented 6 months ago

I wasn't able to add the InternalEVM Contract to the WASM build unfortunately. Various downstream dependencies from the InternalEVM value declaration in flow-go (related to go-ethereum) do not build in WASM due to x/sys dependency, so it wasn't possible to import the FVM stdlib to the WASM build as a result.

I think this probably means that certain refactoring needs to be done in flow-go in order to avoid these dependencies... but not really sure how easy this is.