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

Add a wasm binding for a query to get new AddOrder events by their transaction ID #1293

Closed
hardingjam opened this issue Feb 13, 2025 · 0 comments · Fixed by #1295
Closed
Assignees
Labels

Comments

@hardingjam
Copy link
Contributor

eg:

query getTransactionAddOrders {
  addOrders(
    where: {transaction_: {id: "0xb5d715bc74b7a7f2aac8cca544c1c95e209ed4113b82269ac3285142324bc6af"}}
  ) {
    order {
      id
    }
  }
}

https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-flare/2024-12-13-9dc7/gn

Since we cannot filter AddOrder types by transacton.id (is this possible to configure)? We can add a function that finds addOrders filtered by tx ID, and returns the first one. This allows us to get the order ID to show a link on newly deployed strats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants