Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy a POC based on the workaround E&N Provided. #60

Open
GabrielCamba opened this issue Aug 23, 2022 · 1 comment
Open

Deploy a POC based on the workaround E&N Provided. #60

GabrielCamba opened this issue Aug 23, 2022 · 1 comment
Assignees
Labels
Protofire Subgraph Subgraph related task

Comments

@GabrielCamba
Copy link
Contributor

We need to index the settle function call handler for being able to decode the AppData.

I faced some issues trying to index that function. I arrived to an error reported 3 years ago.
The error is because of a multidimensional array that is not currently supported by The Graph. We have a parameter that is tuple[][3] that is not supported.
That error prevents the contract of being indexed, because of an error when graph codegen statement is executed. I read the workaround for that and seems to be replacing that tuple multi array and left only a single dimension of it such as: tuple[]
That works and allow us to keep working on the subgraph and indexing the events.

When back to index the settle function call there's no error but nothing was indexed.
I isolate the issue and redeployed for being able to share the error with E&N people.

Krishnanand V P from E&N replied on slack a workaround for being able to index the first part of the parameters until they provide a final solution they're working on.

What he suggested is to change from tuple[][3] to bytes[3] that will index that function call.

image.png

@GabrielCamba GabrielCamba added Protofire Subgraph Subgraph related task labels Aug 23, 2022
@GabrielCamba GabrielCamba self-assigned this Aug 23, 2022
@GabrielCamba
Copy link
Contributor Author

this morning I deployed that fix here: https://thegraph.com/hosted-service/subgraph/gabrielcamba/gpv2poc?version=pending
So far no calls were counted.

IF it finishes properly and start counting the calls, let's move that basic implementation to the main subgraph to start building on top of that.

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

No branches or pull requests

1 participant