diff --git a/crates/sui-package-dump/src/query.rs b/crates/sui-package-dump/src/query.rs index 6a881483ffafe6..a0d2c0ae391d58 100644 --- a/crates/sui-package-dump/src/query.rs +++ b/crates/sui-package-dump/src/query.rs @@ -48,8 +48,10 @@ pub(crate) mod packages { Query::build(Vars { first, after, - after_checkpoint, - before_checkpoint, + filter: Some(MovePackageCheckpointFilter { + after_checkpoint, + before_checkpoint, + }), }) } @@ -57,6 +59,11 @@ pub(crate) mod packages { pub(crate) struct Vars { pub(crate) first: i32, pub(crate) after: Option, + pub(crate) filter: Option, + } + + #[derive(cynic::InputObject, Debug)] + pub(crate) struct MovePackageCheckpointFilter { pub(crate) after_checkpoint: Option, pub(crate) before_checkpoint: Option, } @@ -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, }