You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A wrapper struct for being able to query data from the GraphQL node.
31
+
internalstructGraphQLClient{
32
+
/// Given the Apollo client and a query that conforms to the GraphQLQuery type, fetch data from that endpoint and return the conformed object representing the data.
33
+
/// - Parameters:
34
+
/// - client: The Apollo client used for sending the query out.
35
+
/// - query: The query itself containing information such as user inputs parameters, the endpoint itself, and various other metadata for making the GraphQL client functional.
36
+
/// - Returns: A GraphQLResult object of either T.Data type, or throws an error.
// TODO: Implement function when write becomes available
410
412
/// Return the transaction response object.
411
413
/// - Parameters:
412
414
/// - digest: A `String` representing the digest of the queried transaction.
@@ -454,6 +456,7 @@ public struct GraphQLSuiProvider {
454
456
}
455
457
}
456
458
459
+
// TODO: Implement function when write becomes available
457
460
/// Returns an ordered list of transaction responses The method will throw an error if the input contains any duplicate or the input size exceeds `QUERY_MAX_RESULT_LIMIT`.
458
461
/// - Parameters:
459
462
/// - digests: An array of `String` representing the digests of the transaction blocks to be retrieved.
@@ -499,6 +502,7 @@ public struct GraphQLSuiProvider {
// TODO: Implement function when write becomes available
502
506
/// Return the object information for a specified version.
503
507
///
504
508
/// There is no software-level guarantee/SLA that objects with past versions can be retrieved by this API, even if the object and version exists/existed. The result may vary across nodes depending on their pruning policies.
@@ -618,6 +622,7 @@ public struct GraphQLSuiProvider {
618
622
)
619
623
}
620
624
625
+
// TODO: Implement function when write becomes available
621
626
/// Return the committee information for the asked `epoch`.
622
627
/// - Parameter epoch: he epoch of interest. If None, default to the latest epoch.
623
628
/// - Returns: A `CommitteeInfo` object containing the information of the committee for the specified epoch.
@@ -628,6 +633,7 @@ public struct GraphQLSuiProvider {
628
633
throwSuiError.notImplemented
629
634
}
630
635
636
+
// TODO: Implement function when write becomes available
631
637
/// Return the dynamic field object information for a specified object.
632
638
/// - Parameters:
633
639
/// - parentId: The ID of the queried parent object.
@@ -641,6 +647,7 @@ public struct GraphQLSuiProvider {
641
647
throwSuiError.notImplemented
642
648
}
643
649
650
+
// TODO: Implement function when write becomes available
644
651
/// Return the dynamic field object information for a specified object.
645
652
/// - Parameters:
646
653
/// - parentId: The ID of the queried parent object.
@@ -674,6 +681,7 @@ public struct GraphQLSuiProvider {
674
681
throwSuiError.notImplemented
675
682
}
676
683
684
+
// TODO: Implement function when write becomes available
677
685
/// Return the latest SUI system state object on-chain.
678
686
/// - Returns: A `JSON` object containing the information of the latest Sui system state.
679
687
/// - Throws: `SuiError.rpcError` if there are errors in the JSON RPC response.
@@ -739,6 +747,7 @@ public struct GraphQLSuiProvider {
0 commit comments