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

[bridge indexer] query transactions #18400

Merged
merged 3 commits into from
Jun 27, 2024
Merged

[bridge indexer] query transactions #18400

merged 3 commits into from
Jun 27, 2024

Conversation

longbowlu
Copy link
Collaborator

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 10:50pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 10:50pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 10:50pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 10:50pm

@@ -11,6 +11,13 @@ pub struct ProgressStore {
pub checkpoint: i64,
}

#[derive(Queryable, Selectable, Insertable, Identifiable, Debug)]
#[diesel(table_name = sui_progress_store, primary_key(txn_digest))]
pub struct SuiProgressStore {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I understand the reason for this table. Or maybe whether we should have one table that tracks progress for different tasks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's for tracking query cursor as you know. The cursor is an TransactionDigest so better to be stored as bytes. We can tweak the existing table progress_store to consolidate, but i don't know if we want to do it now (cuz it may break currently running indexer if we are not careful enough)

indexer_meterics,
ingestion_metrics,
);
if let Some(sui_rpc_url) = config.sui_rpc_url.clone() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to talk about how we plug in a data reader. Let's make sure to talk at our daily later

@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from f3d0fb8 to 59d6a5e Compare June 25, 2024 22:57
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 59d6a5e to 4a660f3 Compare June 25, 2024 23:01
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 4a660f3 to bf53aa0 Compare June 25, 2024 23:06
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from c62a9a9 to 7b6674b Compare June 26, 2024 04:15
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 7b6674b to 6d4d000 Compare June 26, 2024 04:29
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 6d4d000 to 4a458f4 Compare June 26, 2024 04:37
@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 4a458f4 to 06d4c24 Compare June 26, 2024 05:15
@longbowlu longbowlu marked this pull request as ready for review June 26, 2024 06:26
@longbowlu longbowlu requested a review from dariorussi June 26, 2024 06:26
Copy link
Contributor

@dariorussi dariorussi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup and I am fine to go in with this.
I'm also going to play with it locally

@longbowlu longbowlu force-pushed the bridge-indexer-query-tx branch from 06d4c24 to 6839973 Compare June 26, 2024 22:49
@longbowlu longbowlu merged commit a37c421 into main Jun 27, 2024
47 checks passed
@longbowlu longbowlu deleted the bridge-indexer-query-tx branch June 27, 2024 00:03
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request Jul 29, 2024
## Description 

Describe the changes or additions included in this PR.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants