Skip to content

Cannot find implementation for functions #1387

Closed Answered by maoueh
fewwwww asked this question in Q&A
Discussion options

You must be logged in to vote

@fewwwww There is no implementations because those are WASM intrinsics, which is essentially the signature of functions that you can use in your AssemblyScript code that are provided by the host environment, so the entity actually executing the WASM compiled from your AssemblyScript source code.

In The Graph case, the host environment is graph-node which is the one responsible for executing your WASM code. You can find most of the intrinsics implementation at https://github.com/graphprotocol/graph-node/blob/master/runtime/wasm/src/host_exports.rs for example the bigInt#plus method implementation is defined at https://github.com/graphprotocol/graph-node/blob/master/runtime/wasm/src/host_ex…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fewwwww
Comment options

@maoueh
Comment options

maoueh Jun 28, 2023
Collaborator

Answer selected by maoueh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants