Change postgraphile queries to work with v3 schema (#112)

This commit is contained in:
2022-04-28 17:13:32 +05:30
committed by GitHub
parent 654edf4008
commit eca09ad66b
5 changed files with 19 additions and 11 deletions
+1 -2
View File
@@ -92,11 +92,10 @@ export class EthClient {
);
}
async getFullTransaction ({ headerId, txHash }: { headerId: number, txHash: string }): Promise<any> {
async getFullTransaction (txHash: string): Promise<any> {
return this._graphqlClient.query(
ethQueries.getFullTransaction,
{
headerId,
txHash
}
);
+2 -3
View File
@@ -86,7 +86,6 @@ export const getFullBlocks = gql`
query allEthHeaderCids($blockNumber: BigInt, $blockHash: String) {
allEthHeaderCids(condition: { blockNumber: $blockNumber, blockHash: $blockHash }) {
nodes {
id
cid
blockNumber
blockHash
@@ -108,8 +107,8 @@ query allEthHeaderCids($blockNumber: BigInt, $blockHash: String) {
`;
export const getFullTransaction = gql`
query ethTransactionCidByHeaderIdAndTxHash($headerId: Int!, $txHash: String!) {
ethTransactionCidByHeaderIdAndTxHash(headerId: $headerId, txHash: $txHash) {
query ethTransactionCidByTxHash($txHash: String!) {
ethTransactionCidByTxHash(txHash: $txHash) {
cid
txHash
index