Skip to content

Commit

Permalink
Cleanup of dynamic field on object. Use dynamic field on owner type i…
Browse files Browse the repository at this point in the history
…nstead to handle wrapped objects too
  • Loading branch information
stefan-mysten committed Oct 15, 2024
1 parent 16bc3fc commit bff0cf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions crates/sui-graphql-client/src/query_types/dynamic_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ use crate::query_types::MoveValue;
use crate::query_types::PageInfo;
use crate::DynamicFieldOutput;

#[derive(cynic::QueryFragment, Debug)]
#[cynic(
schema = "rpc",
graphql_type = "Query",
variables = "DynamicFieldConnectionArgs"
)]
pub struct DynamicFieldsQuery {
#[arguments(address: $address )]
pub object: Option<Object>,
}

#[derive(cynic::QueryFragment, Debug)]
#[cynic(
schema = "rpc",
Expand Down Expand Up @@ -68,17 +57,6 @@ pub struct DynamicFieldArgs {
pub name: DynamicFieldName,
}

#[derive(cynic::QueryFragment, Debug)]
#[cynic(
schema = "rpc",
graphql_type = "Object",
variables = "DynamicFieldConnectionArgs"
)]
pub struct Object {
#[arguments(after: $after, before: $before, first: $first, last: $last)]
pub dynamic_fields: DynamicFieldConnection,
}

#[derive(cynic::QueryVariables, Debug)]
pub struct DynamicFieldsQueryArgs {
pub address: Address,
Expand Down
1 change: 0 additions & 1 deletion crates/sui-graphql-client/src/query_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub use dynamic_fields::DynamicFieldConnectionArgs;
pub use dynamic_fields::DynamicFieldName;
pub use dynamic_fields::DynamicFieldQuery;
pub use dynamic_fields::DynamicFieldsOwnerQuery;
pub use dynamic_fields::DynamicFieldsQuery;
pub use dynamic_fields::DynamicObjectFieldQuery;
pub use epoch::Epoch;
pub use epoch::EpochSummaryArgs;
Expand Down

0 comments on commit bff0cf3

Please sign in to comment.