witnet / witnet-solidity-bridge

Witnet Bridge for EVM-compatible blockchains
MIT License
60 stars 24 forks source link

Deploy WSB v2.0 on Reef Testnet #420

Open guidiaz opened 5 months ago

guidiaz commented 5 months ago

Former deployment was wiped out from the Testnet a few months ago.

guidiaz commented 5 months ago

Unfortunately, interception of eth_getTransactionReceipt on the gateway is returning null, although txs seem to get mined.

This issue wont be feasible until a further assessment on whether reef's graphql schema has changed, or what other reasons may provoking eth_getTransactionReceipt keeps returning null.

Current graphql queries in eth_getTransactionReceipt:

      {
        extrinsics (
          offset: 0,
          limit: 1,
          where: { hash_eq: "${txHash}" }
        ) {
          args
          index
          signedData
          status
          timestamp
          block {
            hash
            height
            finalized
          }
          events (
            offset: 0,
            limit: 1,
            where: {
              AND: [
                { section_eq: "EVM" },
                { OR: [
                  { method_eq: "Executed" },
                  { method_eq: "Created" },
                ]}
              ]
            }
          ) {
            data
            index
            method
          }
        }
      }
if (extrinsic && extrinsic.block.finalized) {
      const logsQuery = gql`
        {
          evmEvents (
            offset: 0, 
            limit: 50, 
            where: { 
              AND: [ 
                { block: { hash_eq: "${extrinsic?.block?.hash}" }}, 
                { extrinsicIndex_eq: ${extrinsic?.index}}
              ]
            }
          ) {
            eventIndex
            dataRaw
          }
        }
      `