Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review and optimize GQL operations #3281

Closed
25 tasks
arboleya opened this issue Oct 8, 2024 · 3 comments
Closed
25 tasks

Review and optimize GQL operations #3281

arboleya opened this issue Oct 8, 2024 · 3 comments
Assignees
Labels
chore Issue is a chore

Comments

@arboleya
Copy link
Member

arboleya commented Oct 8, 2024

During some load tests, we realized a couple of issues (#3279, #3277) that we're fixing and optimizing.

In keeping with this theme, we should continue the effort and review our predefined GQL queries and fragments.

Every field removal is a breaking change and can break things for apps, so we need to be extra careful here.

Taking from the providers/operations.graphql:

  • getVersion
  • getNodeInfo
  • getChain
  • getTransaction
  • getTransactionWithReceipts
  • getTransactions
  • getTransactionsByOwner
  • estimatePredicates
  • getBlock
  • getBlockWithTransactions
  • getBlocks
  • getCoin
  • getCoins
  • getCoinsToSpend
  • getContract
  • getContractBalance
  • getBalance
  • getLatestGasPrice
  • estimateGasPrice
  • getBalances
  • getMessages
  • getMessageProof
  • getMessageStatus
  • getRelayedTransactionStatus
  • getMessageByNonce
Copy link
Contributor

Currently what @green is doing to capture the GQL is setup a proxy to intercept the requests and dump them into the file traffic.dump via the following command:

mitmdump --mode reverse:https://mtls-testnet.fuel.network -w traffic.dump

Copy link
Contributor

List of all operations used internally in provider.ts

dryRun
estimateGasPrice
estimatePredicates
getBalance
getBalances
getBlobs
getBlock
getBlockWithTransactions
getBlocks
getChain
getCoins
getCoinsToSpend
getContract
getContractBalance
getLatestGasPrice
getMessageByNonce
getMessageProof
getMessageStatus
getMessages
getNodeInfo
getRelayedTransactionStatus
getTransaction
getTransactions
getVersion
produceBlocks
submitAndAwaitStatus


List of all operations used external of the provider.ts

getTransactionWithReceipts
statusChange
statusChange
getTransactionWithReceipts
getTransactionsByOwner

@arboleya
Copy link
Member Author

arboleya commented Oct 9, 2024

Closed in favor of individual issues that can be done in isolation.

@arboleya arboleya closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

No branches or pull requests

2 participants