Skip to content

Commit

Permalink
fixup: sui-package-dump filter
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Aug 16, 2024
1 parent 9038875 commit c52db3a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions crates/sui-package-dump/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,22 @@ pub(crate) mod packages {
Query::build(Vars {
first,
after,
after_checkpoint,
before_checkpoint,
filter: Some(MovePackageCheckpointFilter {
after_checkpoint,
before_checkpoint,
}),
})
}

#[derive(cynic::QueryVariables, Debug)]
pub(crate) struct Vars {
pub(crate) first: i32,
pub(crate) after: Option<String>,
pub(crate) filter: Option<MovePackageCheckpointFilter>,
}

#[derive(cynic::InputObject, Debug)]
pub(crate) struct MovePackageCheckpointFilter {
pub(crate) after_checkpoint: Option<UInt53>,
pub(crate) before_checkpoint: Option<UInt53>,
}
Expand All @@ -68,8 +75,7 @@ pub(crate) mod packages {
#[arguments(
first: $first,
after: $after,
afterCheckpoint: $after_checkpoint,
beforeCheckpoint: $before_checkpoint
filter: $filter,
)]
pub(crate) packages: MovePackageConnection,
}
Expand Down

0 comments on commit c52db3a

Please sign in to comment.