witnet-solidity-bridge
witnet-solidity-bridge copied to clipboard
Deploy WSB v2.0 on Reef Testnet
Former deployment was wiped out from the Testnet a few 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
}
}
`