threefoldtech / tfchain_graphql

Graphql for TFchain
Apache License 2.0
2 stars 3 forks source link

Processor skip contract created/updated events after runtime 147 upgrade #151

Closed sameh-farouk closed 5 months ago

sameh-farouk commented 6 months ago

It appears that the hashes of the contract events have been altered and no longer correspond to any of the known hashes.

https://github.com/threefoldtech/tfchain_graphql/blob/4990fb7de825087dbdb736d14f7fe0a1904c0638/src/mappings/contracts.ts#L20-L42

https://github.com/threefoldtech/tfchain_graphql/blob/4990fb7de825087dbdb736d14f7fe0a1904c0638/src/mappings/contracts.ts#L138-L157

If none of the known hashes match, the event is skipped. For instance:

https://github.com/threefoldtech/tfchain_graphql/blob/4990fb7de825087dbdb736d14f7fe0a1904c0638/src/types/events.ts#L101-L105

Possibly related to https://github.com/threefoldtech/tfchain/issues/939

sameh-farouk commented 6 months ago

Update: Blocked on deploying tfchain runtime 148. Need it to generate the contract type hash.

sameh-farouk commented 5 months ago

Update: PR ready for review

sameh-farouk commented 5 months ago

Verified Screenshot_20240128_150417 Screenshot_20240128_150316

Verified