From e852e037e3f6a3390b2f2a93f007e2e232678cfc Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:11:21 -0800 Subject: [PATCH] Update GraphQL schema to v1.39.0 --- .../sui-graphql-client-build/schema.graphql | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/crates/sui-graphql-client-build/schema.graphql b/crates/sui-graphql-client-build/schema.graphql index 92330bc77..bdeadd932 100644 --- a/crates/sui-graphql-client-build/schema.graphql +++ b/crates/sui-graphql-client-build/schema.graphql @@ -174,6 +174,11 @@ enum AddressTransactionBlockRelationship { AFFECTED } +""" +An Authenticator represents the access control rules for a ConsensusV2 object. +""" +union Authenticator = Address + """ System transaction for creating the on-chain state used by zkLogin. """ @@ -448,6 +453,10 @@ type Checkpoint { By default, the scanning range consists of all transactions in this checkpoint. """ transactionBlocks(first: Int, after: String, last: Int, before: String, filter: TransactionBlockFilter, scanLimit: Int): TransactionBlockConnection! + """ + The Base64 serialized BCS bytes of CheckpointSummary for this checkpoint. + """ + bcs: Base64 } type CheckpointConnection { @@ -848,6 +857,16 @@ type ConsensusCommitPrologueTransaction { consensusCommitDigest: String } +""" +A ConsensusV2 object is an object that is automatically versioned by the consensus protocol +and allows different authentication modes based on the chosen authenticator. +(Initially, only single-owner authentication is supported.) +""" +type ConsensusV2 { + startVersion: UInt53! + authenticator: Authenticator +} + """ ISO-8601 Date and Time: RFC3339 in UTC with format: YYYY-MM-DDTHH:MM:SS.mmmZ. Note that the milliseconds part is optional, and it may be omitted if its value is 0. """ @@ -2905,7 +2924,7 @@ enum ObjectKind { """ The object's owner type: Immutable, Shared, Parent, or Address. """ -union ObjectOwner = Immutable | Shared | Parent | AddressOwner +union ObjectOwner = Immutable | Shared | Parent | AddressOwner | ConsensusV2 input ObjectRef { """ @@ -3382,7 +3401,8 @@ type Query { """ typeByName(name: String!): MoveType! """ - The coin metadata associated with the given coin type. + The coin metadata associated with the given coin type. Note that if the latest version of + the coin's metadata is wrapped or deleted, it will not be found. """ coinMetadata(coinType: String!): CoinMetadata """