graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.91k stars 978 forks source link

ens_name_by_hash is deprecated #3484

Closed Pana closed 2 years ago

Pana commented 2 years ago

Do you want to request a feature or report a bug? Not sure is this a bug

What is the current behavior?

When I deploy the ens-graph in the graph-node, I got this error, my graph-ts version is v0.23

Apr 20 14:43:58.738 ERRO Handler skipped due to execution failure, error: ens_name_by_hash is deprecated wasm backtrace: 0: 0x2e77 - !src/ensRegistry/handleNewOwner 1: 0x332f - !src/types/schema/Domain#get:isMigrated , handler: handleNewOwner, block_hash: 0x86f1fcd88122cf33cabd241bacedf3d9f78398967a2993a08f16a163a5e7401b, block_number: 72028970, sgd: 1, subgraph_id: QmdNfQHK68775RFy4aWa8vyeGBo7F262JQsWAbiRiNh7wG, component: SubgraphInstanceManager

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? No error

Pana commented 2 years ago

How can I use ens_name_by_hash method, since it is required in ens-subgraph, I'm trying to deploy ens and ens-subgraph in an EVM compatible chain.

Pana commented 2 years ago

I found this function is not open default, to use it need set the GRAPH_ALLOW_NON_DETERMINISTIC_IPFS env variable to true. Just wondering why this method is deprecated ?

evaporei commented 2 years ago

@Pana this is deprecated because it's a feature that isn't allowed in the network, since it isn't deterministic, just like the IPFS functions, depending on file availability, etc.

Related PRs:

raidichu commented 1 year ago

@Pana this is deprecated because it's a feature that isn't allowed in the network, since it isn't deterministic, just like the IPFS functions, depending on file availability, etc.

Related PRs:

How I Can resolve this problem? Is Deploying a smart contract—the deterministic way is the solution or I need allow something on my EVM