mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-09 09:14:06 +00:00
Change postgraphile queries to work with v3 schema (#112)
This commit is contained in:
@@ -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
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user