@mysten/sui 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bcs/bcs.d.mts +6 -6
  3. package/dist/bcs/index.d.mts +20 -20
  4. package/dist/client/address-balance-transaction-expiration.mjs +22 -0
  5. package/dist/client/address-balance-transaction-expiration.mjs.map +1 -0
  6. package/dist/cryptography/signature.d.mts +6 -6
  7. package/dist/graphql/core.d.mts.map +1 -1
  8. package/dist/graphql/core.mjs +11 -1
  9. package/dist/graphql/core.mjs.map +1 -1
  10. package/dist/graphql/generated/queries.mjs +3 -0
  11. package/dist/graphql/generated/queries.mjs.map +1 -1
  12. package/dist/grpc/core.d.mts.map +1 -1
  13. package/dist/grpc/core.mjs +13 -2
  14. package/dist/grpc/core.mjs.map +1 -1
  15. package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
  16. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
  17. package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
  18. package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
  19. package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
  20. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
  21. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
  22. package/dist/transactions/Transaction.d.mts +9 -9
  23. package/dist/version.mjs +1 -1
  24. package/dist/version.mjs.map +1 -1
  25. package/dist/zklogin/address.mjs +2 -2
  26. package/dist/zklogin/address.mjs.map +1 -1
  27. package/dist/zklogin/bcs.d.mts +14 -14
  28. package/dist/zklogin/bcs.d.mts.map +1 -1
  29. package/dist/zklogin/poseidon.mjs +5 -2
  30. package/dist/zklogin/poseidon.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client/address-balance-transaction-expiration.ts +53 -0
  33. package/src/graphql/core.ts +13 -3
  34. package/src/graphql/generated/queries.ts +4 -1
  35. package/src/graphql/queries/transactions.graphql +3 -0
  36. package/src/grpc/core.ts +14 -3
  37. package/src/version.ts +1 -1
  38. package/src/zklogin/address.ts +2 -2
  39. package/src/zklogin/poseidon.ts +6 -4
@@ -1 +1 @@
1
- {"version":3,"file":"queries.mjs","names":[],"sources":["../../../src/graphql/generated/queries.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n/* eslint-disable */\n\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport { OpenMoveTypeSignature } from '../types.js';\nimport { DocumentTypeDecoration } from '@graphql-typed-document-node/core';\n/** The execution status of this transaction: success or failure. */\nexport enum ExecutionStatus {\n /** The transaction could not be executed. */\n Failure = 'FAILURE',\n /** The transaction was successfully executed. */\n Success = 'SUCCESS'\n}\n\n/** Abilities are keywords in Sui Move that define how types behave at the compiler level. */\nexport enum MoveAbility {\n /** Enables values to be copied. */\n Copy = 'COPY',\n /** Enables values to be popped/dropped. */\n Drop = 'DROP',\n /** Enables values to be held directly in global storage. */\n Key = 'KEY',\n /** Enables values to be held inside a struct in global storage. */\n Store = 'STORE'\n}\n\n/**\n * The visibility modifier describes which modules can access this module member.\n *\n * By default, a module member can be called only within the same module.\n */\nexport enum MoveVisibility {\n /** A friend member can be accessed in the module it is defined in and any other module in its package that is explicitly specified in its friend list. */\n Friend = 'FRIEND',\n /** A private member can be accessed in the module it is defined in. */\n Private = 'PRIVATE',\n /** A public member can be accessed by any module. */\n Public = 'PUBLIC'\n}\n\n/**\n * A filter over the live object set, the filter can be one of:\n *\n * - A filter on type (all live objects whose type matches that filter).\n * - Fetching all objects owned by an address or object, optionally filtered by type.\n * - Fetching all shared or immutable objects, filtered by type.\n */\nexport type ObjectFilter = {\n /**\n * Specifies the address of the owning address or object.\n *\n * This field is required if `ownerKind` is \"ADDRESS\" or \"OBJECT\". If provided without `ownerKind`, `ownerKind` defaults to \"ADDRESS\".\n */\n owner?: string | null | undefined;\n /**\n * Filter on whether the object is address-owned, object-owned, shared, or immutable.\n *\n * - If this field is set to \"ADDRESS\" or \"OBJECT\", then an owner filter must also be provided.\n * - If this field is set to \"SHARED\" or \"IMMUTABLE\", then a type filter must also be provided.\n */\n ownerKind?: OwnerKind | null | undefined;\n /**\n * Filter on the object's type.\n *\n * The filter can be one of:\n *\n * - A package address: `0x2`,\n * - A module: `0x2::coin`,\n * - A fully-qualified name: `0x2::coin::Coin`,\n * - A type instantiation: `0x2::coin::Coin<0x2::sui::SUI>`.\n */\n type?: string | null | undefined;\n};\n\n/**\n * Identifies a specific version of an object.\n *\n * The `address` field must be specified, as well as at most one of `version`, `rootVersion`, or `atCheckpoint`. If none are provided, the object is fetched at the current checkpoint.\n *\n * Specifying a `version` or a `rootVersion` disables nested queries for paginating owned objects or dynamic fields (these queries are only supported at checkpoint boundaries).\n *\n * See `Query.object` for more details.\n */\nexport type ObjectKey = {\n /** The object's ID. */\n address: string;\n /** If specified, tries to fetch the latest version as of this checkpoint. Fails if the checkpoint is later than the RPC's latest checkpoint. */\n atCheckpoint?: number | null | undefined;\n /**\n * If specified, tries to fetch the latest version of the object at or before this version. Nested dynamic field accesses will also be subject to this bound.\n *\n * This can be used to fetch a child or ancestor object bounded by its root object's version. For any wrapped or child (object-owned) object, its root object can be defined recursively as:\n *\n * - The root object of the object it is wrapped in, if it is wrapped.\n * - The root object of its owner, if it is owned by another object.\n * - The object itself, if it is not object-owned or wrapped.\n */\n rootVersion?: number | null | undefined;\n /** If specified, tries to fetch the object at this exact version. */\n version?: number | null | undefined;\n};\n\n/** Filter on who owns an object. */\nexport enum OwnerKind {\n /** Object is owned by an address. */\n Address = 'ADDRESS',\n /** Object is frozen. */\n Immutable = 'IMMUTABLE',\n /** Object is a child of another object (e.g. a dynamic field or dynamic object field). */\n Object = 'OBJECT',\n /** Object is shared among multiple owners. */\n Shared = 'SHARED'\n}\n\n/** An enum that specifies the intent scope to be used to parse the bytes for signature verification. */\nexport enum ZkLoginIntentScope {\n /** Indicates that the bytes are to be parsed as a personal message. */\n PersonalMessage = 'PERSONAL_MESSAGE',\n /** Indicates that the bytes are to be parsed as transaction data bytes. */\n TransactionData = 'TRANSACTION_DATA'\n}\n\nexport type GetAllBalancesQueryVariables = Exact<{\n owner: string;\n limit?: number | null | undefined;\n cursor?: string | null | undefined;\n}>;\n\n\nexport type GetAllBalancesQuery = { address: { balances: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ totalBalance: string | null, addressBalance: string | null, coinType: { repr: string } | null }> } | null } | null };\n\nexport type GetBalanceQueryVariables = Exact<{\n owner: string;\n coinType?: string | null | undefined;\n}>;\n\n\nexport type GetBalanceQuery = { address: { balance: { totalBalance: string | null, addressBalance: string | null, coinType: { repr: string } | null } | null } | null };\n\nexport type GetChainIdentifierQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetChainIdentifierQuery = { checkpoint: { digest: string | null } | null };\n\nexport type GetCoinMetadataQueryVariables = Exact<{\n coinType: string;\n}>;\n\n\nexport type GetCoinMetadataQuery = { coinMetadata: { address: string, decimals: number | null, name: string | null, symbol: string | null, description: string | null, iconUrl: string | null } | null };\n\nexport type GetCoinsQueryVariables = Exact<{\n owner: string;\n first?: number | null | undefined;\n cursor?: string | null | undefined;\n type?: string | null | undefined;\n}>;\n\n\nexport type GetCoinsQuery = { address: { address: string, objects: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, version: number | null, digest: string | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, contents: { json: unknown, type: { repr: string } | null } | null }> } | null } | null };\n\nexport type GetCurrentSystemStateQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetCurrentSystemStateQuery = { epoch: { epochId: number, referenceGasPrice: string | null, startTimestamp: string | null, protocolConfigs: { protocolVersion: number } | null, systemState: { json: unknown } | null } | null };\n\nexport type GetDynamicFieldsQueryVariables = Exact<{\n parentId: string;\n first?: number | null | undefined;\n cursor?: string | null | undefined;\n includeValue?: boolean | null | undefined;\n}>;\n\n\nexport type GetDynamicFieldsQuery = { address: { dynamicFields: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ name: { bcs: string | null, type: { repr: string } | null } | null, value:\n | { __typename: 'MoveObject', address: string, contents: { bcs?: string | null, type: { repr: string } | null } | null }\n | { __typename: 'MoveValue', bcs?: string | null, type: { repr: string } | null }\n | null }> } | null } | null };\n\nexport type GetMoveFunctionQueryVariables = Exact<{\n package: string;\n module: string;\n function: string;\n}>;\n\n\nexport type GetMoveFunctionQuery = { package: { module: { function: { name: string, visibility: MoveVisibility | null, isEntry: boolean | null, typeParameters: Array<{ constraints: Array<MoveAbility> }> | null, parameters: Array<{ signature: OpenMoveTypeSignature }> | null, return: Array<{ signature: OpenMoveTypeSignature }> | null } | null } | null } | null };\n\nexport type GetProtocolConfigQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetProtocolConfigQuery = { epoch: { protocolConfigs: { protocolVersion: number, featureFlags: Array<{ key: string, value: boolean }>, configs: Array<{ key: string, value: string | null }> } | null } | null };\n\nexport type GetReferenceGasPriceQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetReferenceGasPriceQuery = { epoch: { referenceGasPrice: string | null } | null };\n\nexport type DefaultSuinsNameQueryVariables = Exact<{\n address: string;\n}>;\n\n\nexport type DefaultSuinsNameQuery = { address: { defaultNameRecord: { domain: string } | null } | null };\n\nexport type GetOwnedObjectsQueryVariables = Exact<{\n owner: string;\n limit?: number | null | undefined;\n cursor?: string | null | undefined;\n filter?: ObjectFilter | null | undefined;\n includeContent?: boolean | null | undefined;\n includePreviousTransaction?: boolean | null | undefined;\n includeObjectBcs?: boolean | null | undefined;\n includeJson?: boolean | null | undefined;\n includeDisplay?: boolean | null | undefined;\n}>;\n\n\nexport type GetOwnedObjectsQuery = { address: { objects: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, digest: string | null, version: number | null, objectBcs?: string | null, contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null }> } | null } | null };\n\nexport type MultiGetObjectsQueryVariables = Exact<{\n objectKeys: Array<ObjectKey> | ObjectKey;\n includeContent?: boolean | null | undefined;\n includePreviousTransaction?: boolean | null | undefined;\n includeObjectBcs?: boolean | null | undefined;\n includeJson?: boolean | null | undefined;\n includeDisplay?: boolean | null | undefined;\n}>;\n\n\nexport type MultiGetObjectsQuery = { multiGetObjects: Array<{ address: string, digest: string | null, version: number | null, objectBcs?: string | null, asMoveObject: { contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null } | null, asMovePackage: { __typename: 'MovePackage' } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null } | null> };\n\nexport type Object_FieldsFragment = { address: string, digest: string | null, version: number | null, objectBcs?: string | null, asMoveObject: { contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null } | null, asMovePackage: { __typename: 'MovePackage' } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null };\n\nexport type Move_Object_FieldsFragment = { address: string, digest: string | null, version: number | null, objectBcs?: string | null, contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null };\n\ntype Object_Owner_Fields_AddressOwner_Fragment = { __typename: 'AddressOwner', address: { address: string } | null };\n\ntype Object_Owner_Fields_ConsensusAddressOwner_Fragment = { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null };\n\ntype Object_Owner_Fields_Immutable_Fragment = { __typename: 'Immutable' };\n\ntype Object_Owner_Fields_ObjectOwner_Fragment = { __typename: 'ObjectOwner', address: { address: string } | null };\n\ntype Object_Owner_Fields_Shared_Fragment = { __typename: 'Shared', initialSharedVersion: number | null };\n\nexport type Object_Owner_FieldsFragment =\n | Object_Owner_Fields_AddressOwner_Fragment\n | Object_Owner_Fields_ConsensusAddressOwner_Fragment\n | Object_Owner_Fields_Immutable_Fragment\n | Object_Owner_Fields_ObjectOwner_Fragment\n | Object_Owner_Fields_Shared_Fragment\n;\n\nexport type SimulateTransactionQueryVariables = Exact<{\n transaction: unknown;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeCommandResults?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n doGasSelection?: boolean | null | undefined;\n checksEnabled?: boolean | null | undefined;\n}>;\n\n\nexport type SimulateTransactionQuery = { simulateTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null, outputs?: Array<{ returnValues: Array<{ value: { bcs: string | null } | null }> | null, mutatedReferences: Array<{ value: { bcs: string | null } | null }> | null }> | null } };\n\nexport type ExecuteTransactionMutationVariables = Exact<{\n transactionDataBcs: string;\n signatures: Array<string> | string;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n}>;\n\n\nexport type ExecuteTransactionMutation = { executeTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null } };\n\nexport type GetTransactionBlockQueryVariables = Exact<{\n digest: string;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n}>;\n\n\nexport type GetTransactionBlockQuery = { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null };\n\nexport type Transaction_FieldsFragment = { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null };\n\nexport type ResolveTransactionQueryVariables = Exact<{\n transaction: unknown;\n doGasSelection?: boolean | null | undefined;\n checksEnabled?: boolean | null | undefined;\n}>;\n\n\nexport type ResolveTransactionQuery = { simulateTransaction: { effects: { transaction: { transactionBcs: string | null, effects: { status: ExecutionStatus | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null } | null } | null } | null } };\n\nexport type VerifyZkLoginSignatureQueryVariables = Exact<{\n bytes: string;\n signature: string;\n intentScope: ZkLoginIntentScope;\n author: string;\n}>;\n\n\nexport type VerifyZkLoginSignatureQuery = { verifyZkLoginSignature: { success: boolean | null } | null };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const Object_Owner_FieldsFragmentDoc = new TypedDocumentString(`\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}\n `, {\"fragmentName\":\"OBJECT_OWNER_FIELDS\"}) as unknown as TypedDocumentString<Object_Owner_FieldsFragment, unknown>;\nexport const Object_FieldsFragmentDoc = new TypedDocumentString(`\n fragment OBJECT_FIELDS on Object {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n asMoveObject {\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n }\n asMovePackage {\n __typename\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`, {\"fragmentName\":\"OBJECT_FIELDS\"}) as unknown as TypedDocumentString<Object_FieldsFragment, unknown>;\nexport const Move_Object_FieldsFragmentDoc = new TypedDocumentString(`\n fragment MOVE_OBJECT_FIELDS on MoveObject {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`, {\"fragmentName\":\"MOVE_OBJECT_FIELDS\"}) as unknown as TypedDocumentString<Move_Object_FieldsFragment, unknown>;\nexport const Transaction_FieldsFragmentDoc = new TypedDocumentString(`\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}\n `, {\"fragmentName\":\"TRANSACTION_FIELDS\"}) as unknown as TypedDocumentString<Transaction_FieldsFragment, unknown>;\nexport const GetAllBalancesDocument = new TypedDocumentString(`\n query getAllBalances($owner: SuiAddress!, $limit: Int, $cursor: String) {\n address(address: $owner) {\n balances(first: $limit, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n coinType {\n repr\n }\n totalBalance\n addressBalance\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetAllBalancesQuery, GetAllBalancesQueryVariables>;\nexport const GetBalanceDocument = new TypedDocumentString(`\n query getBalance($owner: SuiAddress!, $coinType: String = \"0x2::sui::SUI\") {\n address(address: $owner) {\n balance(coinType: $coinType) {\n coinType {\n repr\n }\n totalBalance\n addressBalance\n }\n }\n}\n `) as unknown as TypedDocumentString<GetBalanceQuery, GetBalanceQueryVariables>;\nexport const GetChainIdentifierDocument = new TypedDocumentString(`\n query getChainIdentifier {\n checkpoint(sequenceNumber: 0) {\n digest\n }\n}\n `) as unknown as TypedDocumentString<GetChainIdentifierQuery, GetChainIdentifierQueryVariables>;\nexport const GetCoinMetadataDocument = new TypedDocumentString(`\n query getCoinMetadata($coinType: String!) {\n coinMetadata(coinType: $coinType) {\n address\n decimals\n name\n symbol\n description\n iconUrl\n }\n}\n `) as unknown as TypedDocumentString<GetCoinMetadataQuery, GetCoinMetadataQueryVariables>;\nexport const GetCoinsDocument = new TypedDocumentString(`\n query getCoins($owner: SuiAddress!, $first: Int, $cursor: String, $type: String = \"0x2::coin::Coin<0x2::sui::SUI>\") {\n address(address: $owner) {\n address\n objects(first: $first, after: $cursor, filter: {type: $type}) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n contents {\n json\n type {\n repr\n }\n }\n address\n version\n digest\n }\n }\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<GetCoinsQuery, GetCoinsQueryVariables>;\nexport const GetCurrentSystemStateDocument = new TypedDocumentString(`\n query getCurrentSystemState {\n epoch {\n epochId\n referenceGasPrice\n startTimestamp\n protocolConfigs {\n protocolVersion\n }\n systemState {\n json\n }\n }\n}\n `) as unknown as TypedDocumentString<GetCurrentSystemStateQuery, GetCurrentSystemStateQueryVariables>;\nexport const GetDynamicFieldsDocument = new TypedDocumentString(`\n query getDynamicFields($parentId: SuiAddress!, $first: Int, $cursor: String, $includeValue: Boolean = false) {\n address(address: $parentId) {\n dynamicFields(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n name {\n bcs\n type {\n repr\n }\n }\n value {\n __typename\n ... on MoveValue {\n bcs @include(if: $includeValue)\n type {\n repr\n }\n }\n ... on MoveObject {\n address\n contents {\n bcs @include(if: $includeValue)\n type {\n repr\n }\n }\n }\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetDynamicFieldsQuery, GetDynamicFieldsQueryVariables>;\nexport const GetMoveFunctionDocument = new TypedDocumentString(`\n query getMoveFunction($package: SuiAddress!, $module: String!, $function: String!) {\n package(address: $package) {\n module(name: $module) {\n function(name: $function) {\n name\n visibility\n isEntry\n typeParameters {\n constraints\n }\n parameters {\n signature\n }\n return {\n signature\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetMoveFunctionQuery, GetMoveFunctionQueryVariables>;\nexport const GetProtocolConfigDocument = new TypedDocumentString(`\n query getProtocolConfig {\n epoch {\n protocolConfigs {\n protocolVersion\n featureFlags {\n key\n value\n }\n configs {\n key\n value\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetProtocolConfigQuery, GetProtocolConfigQueryVariables>;\nexport const GetReferenceGasPriceDocument = new TypedDocumentString(`\n query getReferenceGasPrice {\n epoch {\n referenceGasPrice\n }\n}\n `) as unknown as TypedDocumentString<GetReferenceGasPriceQuery, GetReferenceGasPriceQueryVariables>;\nexport const DefaultSuinsNameDocument = new TypedDocumentString(`\n query defaultSuinsName($address: SuiAddress!) {\n address(address: $address) {\n defaultNameRecord {\n domain\n }\n }\n}\n `) as unknown as TypedDocumentString<DefaultSuinsNameQuery, DefaultSuinsNameQueryVariables>;\nexport const GetOwnedObjectsDocument = new TypedDocumentString(`\n query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {\n address(address: $owner) {\n objects(first: $limit, after: $cursor, filter: $filter) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...MOVE_OBJECT_FIELDS\n }\n }\n }\n}\n fragment MOVE_OBJECT_FIELDS on MoveObject {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\nfragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<GetOwnedObjectsQuery, GetOwnedObjectsQueryVariables>;\nexport const MultiGetObjectsDocument = new TypedDocumentString(`\n query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {\n multiGetObjects(keys: $objectKeys) {\n ...OBJECT_FIELDS\n }\n}\n fragment OBJECT_FIELDS on Object {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n asMoveObject {\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n }\n asMovePackage {\n __typename\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\nfragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<MultiGetObjectsQuery, MultiGetObjectsQueryVariables>;\nexport const SimulateTransactionDocument = new TypedDocumentString(`\n query simulateTransaction($transaction: JSON!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeCommandResults: Boolean = false, $includeBcs: Boolean = false, $doGasSelection: Boolean = false, $checksEnabled: Boolean = true) {\n simulateTransaction(\n transaction: $transaction\n doGasSelection: $doGasSelection\n checksEnabled: $checksEnabled\n ) {\n effects {\n transaction {\n ...TRANSACTION_FIELDS\n }\n }\n outputs @include(if: $includeCommandResults) {\n returnValues {\n value {\n bcs\n }\n }\n mutatedReferences {\n value {\n bcs\n }\n }\n }\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<SimulateTransactionQuery, SimulateTransactionQueryVariables>;\nexport const ExecuteTransactionDocument = new TypedDocumentString(`\n mutation executeTransaction($transactionDataBcs: Base64!, $signatures: [Base64!]!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {\n executeTransaction(\n transactionDataBcs: $transactionDataBcs\n signatures: $signatures\n ) {\n effects {\n transaction {\n ...TRANSACTION_FIELDS\n }\n }\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<ExecuteTransactionMutation, ExecuteTransactionMutationVariables>;\nexport const GetTransactionBlockDocument = new TypedDocumentString(`\n query getTransactionBlock($digest: String!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {\n transaction(digest: $digest) {\n ...TRANSACTION_FIELDS\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<GetTransactionBlockQuery, GetTransactionBlockQueryVariables>;\nexport const ResolveTransactionDocument = new TypedDocumentString(`\n query resolveTransaction($transaction: JSON!, $doGasSelection: Boolean = true, $checksEnabled: Boolean = true) {\n simulateTransaction(\n transaction: $transaction\n doGasSelection: $doGasSelection\n checksEnabled: $checksEnabled\n ) {\n effects {\n transaction {\n transactionBcs\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<ResolveTransactionQuery, ResolveTransactionQueryVariables>;\nexport const VerifyZkLoginSignatureDocument = new TypedDocumentString(`\n query verifyZkLoginSignature($bytes: Base64!, $signature: Base64!, $intentScope: ZkLoginIntentScope!, $author: SuiAddress!) {\n verifyZkLoginSignature(\n bytes: $bytes\n signature: $signature\n intentScope: $intentScope\n author: $author\n ) {\n success\n }\n}\n `) as unknown as TypedDocumentString<VerifyZkLoginSignatureQuery, VerifyZkLoginSignatureQueryVariables>;"],"mappings":";;AAWA,IAAY,8DAAL;;AAEL;;AAEA;;;;AAwGF,IAAY,oEAAL;;AAEL;;AAEA;;;AAqOF,IAAa,sBAAb,cACU,OAEV;CAKE,YAAY,OAAe,UAA4C;AACrE,QAAM,MAAM;AACZ,OAAK,QAAQ;AACb,OAAK,WAAW;;CAGlB,AAAS,WAAiE;AACxE,SAAO,KAAK;;;AAGhB,MAAa,iCAAiC,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;OAuB/D,EAAC,gBAAe,uBAAsB,CAAC;AAC9C,MAAa,2BAA2B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD5D,EAAC,gBAAe,iBAAgB,CAAC;AACrC,MAAa,gCAAgC,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CjE,EAAC,gBAAe,sBAAqB,CAAC;AAC1C,MAAa,gCAAgC,IAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmF/D;AACH,MAAa,8BAA8B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EhE;AACH,MAAa,6BAA6B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkC5D;AACN,MAAa,iCAAiC,IAAI,oBAAoB;;;;;;;;;;;MAWhE"}
1
+ {"version":3,"file":"queries.mjs","names":[],"sources":["../../../src/graphql/generated/queries.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n/* eslint-disable */\n\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport { OpenMoveTypeSignature } from '../types.js';\nimport { DocumentTypeDecoration } from '@graphql-typed-document-node/core';\n/** The execution status of this transaction: success or failure. */\nexport enum ExecutionStatus {\n /** The transaction could not be executed. */\n Failure = 'FAILURE',\n /** The transaction was successfully executed. */\n Success = 'SUCCESS'\n}\n\n/** Abilities are keywords in Sui Move that define how types behave at the compiler level. */\nexport enum MoveAbility {\n /** Enables values to be copied. */\n Copy = 'COPY',\n /** Enables values to be popped/dropped. */\n Drop = 'DROP',\n /** Enables values to be held directly in global storage. */\n Key = 'KEY',\n /** Enables values to be held inside a struct in global storage. */\n Store = 'STORE'\n}\n\n/**\n * The visibility modifier describes which modules can access this module member.\n *\n * By default, a module member can be called only within the same module.\n */\nexport enum MoveVisibility {\n /** A friend member can be accessed in the module it is defined in and any other module in its package that is explicitly specified in its friend list. */\n Friend = 'FRIEND',\n /** A private member can be accessed in the module it is defined in. */\n Private = 'PRIVATE',\n /** A public member can be accessed by any module. */\n Public = 'PUBLIC'\n}\n\n/**\n * A filter over the live object set, the filter can be one of:\n *\n * - A filter on type (all live objects whose type matches that filter).\n * - Fetching all objects owned by an address or object, optionally filtered by type.\n * - Fetching all shared or immutable objects, filtered by type.\n */\nexport type ObjectFilter = {\n /**\n * Specifies the address of the owning address or object.\n *\n * This field is required if `ownerKind` is \"ADDRESS\" or \"OBJECT\". If provided without `ownerKind`, `ownerKind` defaults to \"ADDRESS\".\n */\n owner?: string | null | undefined;\n /**\n * Filter on whether the object is address-owned, object-owned, shared, or immutable.\n *\n * - If this field is set to \"ADDRESS\" or \"OBJECT\", then an owner filter must also be provided.\n * - If this field is set to \"SHARED\" or \"IMMUTABLE\", then a type filter must also be provided.\n */\n ownerKind?: OwnerKind | null | undefined;\n /**\n * Filter on the object's type.\n *\n * The filter can be one of:\n *\n * - A package address: `0x2`,\n * - A module: `0x2::coin`,\n * - A fully-qualified name: `0x2::coin::Coin`,\n * - A type instantiation: `0x2::coin::Coin<0x2::sui::SUI>`.\n */\n type?: string | null | undefined;\n};\n\n/**\n * Identifies a specific version of an object.\n *\n * The `address` field must be specified, as well as at most one of `version`, `rootVersion`, or `atCheckpoint`. If none are provided, the object is fetched at the current checkpoint.\n *\n * Specifying a `version` or a `rootVersion` disables nested queries for paginating owned objects or dynamic fields (these queries are only supported at checkpoint boundaries).\n *\n * See `Query.object` for more details.\n */\nexport type ObjectKey = {\n /** The object's ID. */\n address: string;\n /** If specified, tries to fetch the latest version as of this checkpoint. Fails if the checkpoint is later than the RPC's latest checkpoint. */\n atCheckpoint?: number | null | undefined;\n /**\n * If specified, tries to fetch the latest version of the object at or before this version. Nested dynamic field accesses will also be subject to this bound.\n *\n * This can be used to fetch a child or ancestor object bounded by its root object's version. For any wrapped or child (object-owned) object, its root object can be defined recursively as:\n *\n * - The root object of the object it is wrapped in, if it is wrapped.\n * - The root object of its owner, if it is owned by another object.\n * - The object itself, if it is not object-owned or wrapped.\n */\n rootVersion?: number | null | undefined;\n /** If specified, tries to fetch the object at this exact version. */\n version?: number | null | undefined;\n};\n\n/** Filter on who owns an object. */\nexport enum OwnerKind {\n /** Object is owned by an address. */\n Address = 'ADDRESS',\n /** Object is frozen. */\n Immutable = 'IMMUTABLE',\n /** Object is a child of another object (e.g. a dynamic field or dynamic object field). */\n Object = 'OBJECT',\n /** Object is shared among multiple owners. */\n Shared = 'SHARED'\n}\n\n/** An enum that specifies the intent scope to be used to parse the bytes for signature verification. */\nexport enum ZkLoginIntentScope {\n /** Indicates that the bytes are to be parsed as a personal message. */\n PersonalMessage = 'PERSONAL_MESSAGE',\n /** Indicates that the bytes are to be parsed as transaction data bytes. */\n TransactionData = 'TRANSACTION_DATA'\n}\n\nexport type GetAllBalancesQueryVariables = Exact<{\n owner: string;\n limit?: number | null | undefined;\n cursor?: string | null | undefined;\n}>;\n\n\nexport type GetAllBalancesQuery = { address: { balances: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ totalBalance: string | null, addressBalance: string | null, coinType: { repr: string } | null }> } | null } | null };\n\nexport type GetBalanceQueryVariables = Exact<{\n owner: string;\n coinType?: string | null | undefined;\n}>;\n\n\nexport type GetBalanceQuery = { address: { balance: { totalBalance: string | null, addressBalance: string | null, coinType: { repr: string } | null } | null } | null };\n\nexport type GetChainIdentifierQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetChainIdentifierQuery = { checkpoint: { digest: string | null } | null };\n\nexport type GetCoinMetadataQueryVariables = Exact<{\n coinType: string;\n}>;\n\n\nexport type GetCoinMetadataQuery = { coinMetadata: { address: string, decimals: number | null, name: string | null, symbol: string | null, description: string | null, iconUrl: string | null } | null };\n\nexport type GetCoinsQueryVariables = Exact<{\n owner: string;\n first?: number | null | undefined;\n cursor?: string | null | undefined;\n type?: string | null | undefined;\n}>;\n\n\nexport type GetCoinsQuery = { address: { address: string, objects: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, version: number | null, digest: string | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, contents: { json: unknown, type: { repr: string } | null } | null }> } | null } | null };\n\nexport type GetCurrentSystemStateQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetCurrentSystemStateQuery = { epoch: { epochId: number, referenceGasPrice: string | null, startTimestamp: string | null, protocolConfigs: { protocolVersion: number } | null, systemState: { json: unknown } | null } | null };\n\nexport type GetDynamicFieldsQueryVariables = Exact<{\n parentId: string;\n first?: number | null | undefined;\n cursor?: string | null | undefined;\n includeValue?: boolean | null | undefined;\n}>;\n\n\nexport type GetDynamicFieldsQuery = { address: { dynamicFields: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ name: { bcs: string | null, type: { repr: string } | null } | null, value:\n | { __typename: 'MoveObject', address: string, contents: { bcs?: string | null, type: { repr: string } | null } | null }\n | { __typename: 'MoveValue', bcs?: string | null, type: { repr: string } | null }\n | null }> } | null } | null };\n\nexport type GetMoveFunctionQueryVariables = Exact<{\n package: string;\n module: string;\n function: string;\n}>;\n\n\nexport type GetMoveFunctionQuery = { package: { module: { function: { name: string, visibility: MoveVisibility | null, isEntry: boolean | null, typeParameters: Array<{ constraints: Array<MoveAbility> }> | null, parameters: Array<{ signature: OpenMoveTypeSignature }> | null, return: Array<{ signature: OpenMoveTypeSignature }> | null } | null } | null } | null };\n\nexport type GetProtocolConfigQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetProtocolConfigQuery = { epoch: { protocolConfigs: { protocolVersion: number, featureFlags: Array<{ key: string, value: boolean }>, configs: Array<{ key: string, value: string | null }> } | null } | null };\n\nexport type GetReferenceGasPriceQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type GetReferenceGasPriceQuery = { epoch: { referenceGasPrice: string | null } | null };\n\nexport type DefaultSuinsNameQueryVariables = Exact<{\n address: string;\n}>;\n\n\nexport type DefaultSuinsNameQuery = { address: { defaultNameRecord: { domain: string } | null } | null };\n\nexport type GetOwnedObjectsQueryVariables = Exact<{\n owner: string;\n limit?: number | null | undefined;\n cursor?: string | null | undefined;\n filter?: ObjectFilter | null | undefined;\n includeContent?: boolean | null | undefined;\n includePreviousTransaction?: boolean | null | undefined;\n includeObjectBcs?: boolean | null | undefined;\n includeJson?: boolean | null | undefined;\n includeDisplay?: boolean | null | undefined;\n}>;\n\n\nexport type GetOwnedObjectsQuery = { address: { objects: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, digest: string | null, version: number | null, objectBcs?: string | null, contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null }> } | null } | null };\n\nexport type MultiGetObjectsQueryVariables = Exact<{\n objectKeys: Array<ObjectKey> | ObjectKey;\n includeContent?: boolean | null | undefined;\n includePreviousTransaction?: boolean | null | undefined;\n includeObjectBcs?: boolean | null | undefined;\n includeJson?: boolean | null | undefined;\n includeDisplay?: boolean | null | undefined;\n}>;\n\n\nexport type MultiGetObjectsQuery = { multiGetObjects: Array<{ address: string, digest: string | null, version: number | null, objectBcs?: string | null, asMoveObject: { contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null } | null, asMovePackage: { __typename: 'MovePackage' } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null } | null> };\n\nexport type Object_FieldsFragment = { address: string, digest: string | null, version: number | null, objectBcs?: string | null, asMoveObject: { contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null } | null, asMovePackage: { __typename: 'MovePackage' } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null };\n\nexport type Move_Object_FieldsFragment = { address: string, digest: string | null, version: number | null, objectBcs?: string | null, contents: { bcs?: string | null, json?: unknown, display?: { output: unknown, errors: unknown } | null, type: { repr: string } | null } | null, owner:\n | { __typename: 'AddressOwner', address: { address: string } | null }\n | { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null }\n | { __typename: 'Immutable' }\n | { __typename: 'ObjectOwner', address: { address: string } | null }\n | { __typename: 'Shared', initialSharedVersion: number | null }\n | null, previousTransaction?: { digest: string } | null };\n\ntype Object_Owner_Fields_AddressOwner_Fragment = { __typename: 'AddressOwner', address: { address: string } | null };\n\ntype Object_Owner_Fields_ConsensusAddressOwner_Fragment = { __typename: 'ConsensusAddressOwner', startVersion: number | null, address: { address: string } | null };\n\ntype Object_Owner_Fields_Immutable_Fragment = { __typename: 'Immutable' };\n\ntype Object_Owner_Fields_ObjectOwner_Fragment = { __typename: 'ObjectOwner', address: { address: string } | null };\n\ntype Object_Owner_Fields_Shared_Fragment = { __typename: 'Shared', initialSharedVersion: number | null };\n\nexport type Object_Owner_FieldsFragment =\n | Object_Owner_Fields_AddressOwner_Fragment\n | Object_Owner_Fields_ConsensusAddressOwner_Fragment\n | Object_Owner_Fields_Immutable_Fragment\n | Object_Owner_Fields_ObjectOwner_Fragment\n | Object_Owner_Fields_Shared_Fragment\n;\n\nexport type SimulateTransactionQueryVariables = Exact<{\n transaction: unknown;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeCommandResults?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n doGasSelection?: boolean | null | undefined;\n checksEnabled?: boolean | null | undefined;\n}>;\n\n\nexport type SimulateTransactionQuery = { simulateTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null, outputs?: Array<{ returnValues: Array<{ value: { bcs: string | null } | null }> | null, mutatedReferences: Array<{ value: { bcs: string | null } | null }> | null }> | null } };\n\nexport type ExecuteTransactionMutationVariables = Exact<{\n transactionDataBcs: string;\n signatures: Array<string> | string;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n}>;\n\n\nexport type ExecuteTransactionMutation = { executeTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null } };\n\nexport type GetTransactionBlockQueryVariables = Exact<{\n digest: string;\n includeTransaction?: boolean | null | undefined;\n includeEffects?: boolean | null | undefined;\n includeEvents?: boolean | null | undefined;\n includeBalanceChanges?: boolean | null | undefined;\n includeObjectTypes?: boolean | null | undefined;\n includeBcs?: boolean | null | undefined;\n}>;\n\n\nexport type GetTransactionBlockQuery = { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null };\n\nexport type Transaction_FieldsFragment = { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null };\n\nexport type ResolveTransactionQueryVariables = Exact<{\n transaction: unknown;\n doGasSelection?: boolean | null | undefined;\n checksEnabled?: boolean | null | undefined;\n}>;\n\n\nexport type ResolveTransactionQuery = { simulateTransaction: { effects: { transaction: { transactionBcs: string | null, effects: { status: ExecutionStatus | null, epoch: { epochId: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null } | null } | null } | null } };\n\nexport type VerifyZkLoginSignatureQueryVariables = Exact<{\n bytes: string;\n signature: string;\n intentScope: ZkLoginIntentScope;\n author: string;\n}>;\n\n\nexport type VerifyZkLoginSignatureQuery = { verifyZkLoginSignature: { success: boolean | null } | null };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const Object_Owner_FieldsFragmentDoc = new TypedDocumentString(`\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}\n `, {\"fragmentName\":\"OBJECT_OWNER_FIELDS\"}) as unknown as TypedDocumentString<Object_Owner_FieldsFragment, unknown>;\nexport const Object_FieldsFragmentDoc = new TypedDocumentString(`\n fragment OBJECT_FIELDS on Object {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n asMoveObject {\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n }\n asMovePackage {\n __typename\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`, {\"fragmentName\":\"OBJECT_FIELDS\"}) as unknown as TypedDocumentString<Object_FieldsFragment, unknown>;\nexport const Move_Object_FieldsFragmentDoc = new TypedDocumentString(`\n fragment MOVE_OBJECT_FIELDS on MoveObject {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`, {\"fragmentName\":\"MOVE_OBJECT_FIELDS\"}) as unknown as TypedDocumentString<Move_Object_FieldsFragment, unknown>;\nexport const Transaction_FieldsFragmentDoc = new TypedDocumentString(`\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}\n `, {\"fragmentName\":\"TRANSACTION_FIELDS\"}) as unknown as TypedDocumentString<Transaction_FieldsFragment, unknown>;\nexport const GetAllBalancesDocument = new TypedDocumentString(`\n query getAllBalances($owner: SuiAddress!, $limit: Int, $cursor: String) {\n address(address: $owner) {\n balances(first: $limit, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n coinType {\n repr\n }\n totalBalance\n addressBalance\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetAllBalancesQuery, GetAllBalancesQueryVariables>;\nexport const GetBalanceDocument = new TypedDocumentString(`\n query getBalance($owner: SuiAddress!, $coinType: String = \"0x2::sui::SUI\") {\n address(address: $owner) {\n balance(coinType: $coinType) {\n coinType {\n repr\n }\n totalBalance\n addressBalance\n }\n }\n}\n `) as unknown as TypedDocumentString<GetBalanceQuery, GetBalanceQueryVariables>;\nexport const GetChainIdentifierDocument = new TypedDocumentString(`\n query getChainIdentifier {\n checkpoint(sequenceNumber: 0) {\n digest\n }\n}\n `) as unknown as TypedDocumentString<GetChainIdentifierQuery, GetChainIdentifierQueryVariables>;\nexport const GetCoinMetadataDocument = new TypedDocumentString(`\n query getCoinMetadata($coinType: String!) {\n coinMetadata(coinType: $coinType) {\n address\n decimals\n name\n symbol\n description\n iconUrl\n }\n}\n `) as unknown as TypedDocumentString<GetCoinMetadataQuery, GetCoinMetadataQueryVariables>;\nexport const GetCoinsDocument = new TypedDocumentString(`\n query getCoins($owner: SuiAddress!, $first: Int, $cursor: String, $type: String = \"0x2::coin::Coin<0x2::sui::SUI>\") {\n address(address: $owner) {\n address\n objects(first: $first, after: $cursor, filter: {type: $type}) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n contents {\n json\n type {\n repr\n }\n }\n address\n version\n digest\n }\n }\n }\n}\n fragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<GetCoinsQuery, GetCoinsQueryVariables>;\nexport const GetCurrentSystemStateDocument = new TypedDocumentString(`\n query getCurrentSystemState {\n epoch {\n epochId\n referenceGasPrice\n startTimestamp\n protocolConfigs {\n protocolVersion\n }\n systemState {\n json\n }\n }\n}\n `) as unknown as TypedDocumentString<GetCurrentSystemStateQuery, GetCurrentSystemStateQueryVariables>;\nexport const GetDynamicFieldsDocument = new TypedDocumentString(`\n query getDynamicFields($parentId: SuiAddress!, $first: Int, $cursor: String, $includeValue: Boolean = false) {\n address(address: $parentId) {\n dynamicFields(first: $first, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n name {\n bcs\n type {\n repr\n }\n }\n value {\n __typename\n ... on MoveValue {\n bcs @include(if: $includeValue)\n type {\n repr\n }\n }\n ... on MoveObject {\n address\n contents {\n bcs @include(if: $includeValue)\n type {\n repr\n }\n }\n }\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetDynamicFieldsQuery, GetDynamicFieldsQueryVariables>;\nexport const GetMoveFunctionDocument = new TypedDocumentString(`\n query getMoveFunction($package: SuiAddress!, $module: String!, $function: String!) {\n package(address: $package) {\n module(name: $module) {\n function(name: $function) {\n name\n visibility\n isEntry\n typeParameters {\n constraints\n }\n parameters {\n signature\n }\n return {\n signature\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetMoveFunctionQuery, GetMoveFunctionQueryVariables>;\nexport const GetProtocolConfigDocument = new TypedDocumentString(`\n query getProtocolConfig {\n epoch {\n protocolConfigs {\n protocolVersion\n featureFlags {\n key\n value\n }\n configs {\n key\n value\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<GetProtocolConfigQuery, GetProtocolConfigQueryVariables>;\nexport const GetReferenceGasPriceDocument = new TypedDocumentString(`\n query getReferenceGasPrice {\n epoch {\n referenceGasPrice\n }\n}\n `) as unknown as TypedDocumentString<GetReferenceGasPriceQuery, GetReferenceGasPriceQueryVariables>;\nexport const DefaultSuinsNameDocument = new TypedDocumentString(`\n query defaultSuinsName($address: SuiAddress!) {\n address(address: $address) {\n defaultNameRecord {\n domain\n }\n }\n}\n `) as unknown as TypedDocumentString<DefaultSuinsNameQuery, DefaultSuinsNameQueryVariables>;\nexport const GetOwnedObjectsDocument = new TypedDocumentString(`\n query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {\n address(address: $owner) {\n objects(first: $limit, after: $cursor, filter: $filter) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...MOVE_OBJECT_FIELDS\n }\n }\n }\n}\n fragment MOVE_OBJECT_FIELDS on MoveObject {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\nfragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<GetOwnedObjectsQuery, GetOwnedObjectsQueryVariables>;\nexport const MultiGetObjectsDocument = new TypedDocumentString(`\n query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {\n multiGetObjects(keys: $objectKeys) {\n ...OBJECT_FIELDS\n }\n}\n fragment OBJECT_FIELDS on Object {\n address\n digest\n version\n objectBcs @include(if: $includeObjectBcs)\n asMoveObject {\n contents {\n bcs @include(if: $includeContent)\n json @include(if: $includeJson)\n display @include(if: $includeDisplay) {\n output\n errors\n }\n type {\n repr\n }\n }\n }\n asMovePackage {\n __typename\n }\n owner {\n ...OBJECT_OWNER_FIELDS\n }\n previousTransaction @include(if: $includePreviousTransaction) {\n digest\n }\n}\nfragment OBJECT_OWNER_FIELDS on Owner {\n __typename\n ... on AddressOwner {\n address {\n address\n }\n }\n ... on ObjectOwner {\n address {\n address\n }\n }\n ... on Shared {\n initialSharedVersion\n }\n ... on ConsensusAddressOwner {\n startVersion\n address {\n address\n }\n }\n}`) as unknown as TypedDocumentString<MultiGetObjectsQuery, MultiGetObjectsQueryVariables>;\nexport const SimulateTransactionDocument = new TypedDocumentString(`\n query simulateTransaction($transaction: JSON!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeCommandResults: Boolean = false, $includeBcs: Boolean = false, $doGasSelection: Boolean = false, $checksEnabled: Boolean = true) {\n simulateTransaction(\n transaction: $transaction\n doGasSelection: $doGasSelection\n checksEnabled: $checksEnabled\n ) {\n effects {\n transaction {\n ...TRANSACTION_FIELDS\n }\n }\n outputs @include(if: $includeCommandResults) {\n returnValues {\n value {\n bcs\n }\n }\n mutatedReferences {\n value {\n bcs\n }\n }\n }\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<SimulateTransactionQuery, SimulateTransactionQueryVariables>;\nexport const ExecuteTransactionDocument = new TypedDocumentString(`\n mutation executeTransaction($transactionDataBcs: Base64!, $signatures: [Base64!]!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {\n executeTransaction(\n transactionDataBcs: $transactionDataBcs\n signatures: $signatures\n ) {\n effects {\n transaction {\n ...TRANSACTION_FIELDS\n }\n }\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<ExecuteTransactionMutation, ExecuteTransactionMutationVariables>;\nexport const GetTransactionBlockDocument = new TypedDocumentString(`\n query getTransactionBlock($digest: String!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {\n transaction(digest: $digest) {\n ...TRANSACTION_FIELDS\n }\n}\n fragment TRANSACTION_FIELDS on Transaction {\n digest\n transactionJson @include(if: $includeTransaction)\n transactionBcs @include(if: $includeBcs)\n signatures {\n signatureBytes\n }\n effects {\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n epoch {\n epochId\n }\n effectsBcs @include(if: $includeEffects)\n effectsJson @include(if: $includeObjectTypes)\n objectChanges(first: 50) @include(if: $includeObjectTypes) {\n nodes {\n address\n outputState {\n asMoveObject {\n contents {\n type {\n repr\n }\n }\n }\n }\n }\n }\n balanceChangesJson @include(if: $includeBalanceChanges)\n events(first: 50) @include(if: $includeEvents) {\n pageInfo {\n hasNextPage\n }\n nodes {\n transactionModule {\n package {\n address\n }\n name\n }\n sender {\n address\n }\n contents {\n type {\n repr\n }\n bcs\n json\n }\n }\n }\n }\n}`) as unknown as TypedDocumentString<GetTransactionBlockQuery, GetTransactionBlockQueryVariables>;\nexport const ResolveTransactionDocument = new TypedDocumentString(`\n query resolveTransaction($transaction: JSON!, $doGasSelection: Boolean = true, $checksEnabled: Boolean = true) {\n simulateTransaction(\n transaction: $transaction\n doGasSelection: $doGasSelection\n checksEnabled: $checksEnabled\n ) {\n effects {\n transaction {\n transactionBcs\n effects {\n epoch {\n epochId\n }\n status\n executionError {\n message\n abortCode\n identifier\n constant\n sourceLineNumber\n instructionOffset\n module {\n name\n package {\n address\n }\n }\n function {\n name\n }\n }\n }\n }\n }\n }\n}\n `) as unknown as TypedDocumentString<ResolveTransactionQuery, ResolveTransactionQueryVariables>;\nexport const VerifyZkLoginSignatureDocument = new TypedDocumentString(`\n query verifyZkLoginSignature($bytes: Base64!, $signature: Base64!, $intentScope: ZkLoginIntentScope!, $author: SuiAddress!) {\n verifyZkLoginSignature(\n bytes: $bytes\n signature: $signature\n intentScope: $intentScope\n author: $author\n ) {\n success\n }\n}\n `) as unknown as TypedDocumentString<VerifyZkLoginSignatureQuery, VerifyZkLoginSignatureQueryVariables>;"],"mappings":";;AAWA,IAAY,8DAAL;;AAEL;;AAEA;;;;AAwGF,IAAY,oEAAL;;AAEL;;AAEA;;;AAqOF,IAAa,sBAAb,cACU,OAEV;CAKE,YAAY,OAAe,UAA4C;AACrE,QAAM,MAAM;AACZ,OAAK,QAAQ;AACb,OAAK,WAAW;;CAGlB,AAAS,WAAiE;AACxE,SAAO,KAAK;;;AAGhB,MAAa,iCAAiC,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;OAuB/D,EAAC,gBAAe,uBAAsB,CAAC;AAC9C,MAAa,2BAA2B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD5D,E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AAA,CAAQ,cAAA,CAAe,8BAAA;EAiBpB,eAAA,CACL,OAAA,EAAS,cAAA,CAAe,sBAAA,GACtB,OAAA,CAAQ,cAAA,CAAe,uBAAA;EA4DpB,kBAAA,CACL,OAAA,GAAU,cAAA,CAAe,yBAAA,GACvB,OAAA,CAAQ,cAAA,CAAe,0BAAA;EAmB1B,wBAAA,CAAA,IAGE,eAAA,EAAiB,sBAAA,EACjB,OAAA,EAAS,uBAAA,EACT,IAAA,QAAY,OAAA,WAAa,OAAA;AAAA;AAAA,iBA+gBZ,4BAAA,iBACC,cAAA,CAAe,kBAAA,MAAA,CAE/B,WAAA,EAAa,mBAAA,EACb,OAAA;EACC,OAAA,GAAU,OAAA,GAAU,cAAA,CAAe,kBAAA;AAAA,IAElC,cAAA,CAAe,iBAAA,CAAkB,OAAA;AAAA,iBA4FpB,oCAAA,iBACC,cAAA,CAAe,0BAAA,MAAA,CAE/B,QAAA,EAAU,2BAAA,EACV,OAAA;EACC,OAAA,GAAU,OAAA,GAAU,cAAA,CAAe,0BAAA;AAAA,IAElC,cAAA,CAAe,yBAAA,CAA0B,OAAA"}
@@ -9,6 +9,7 @@ import { Value } from "./proto/google/protobuf/struct.mjs";
9
9
  import { Ability, FunctionDescriptor_Visibility, OpenSignatureBody_Type, OpenSignature_Reference } from "./proto/sui/rpc/v2/move_package.mjs";
10
10
  import { Owner_OwnerKind } from "./proto/sui/rpc/v2/owner.mjs";
11
11
  import { applyGrpcResolvedTransaction, grpcTransactionToTransactionData, transactionDataToGrpcTransaction, transactionToGrpcTransaction } from "../client/transaction-resolver.mjs";
12
+ import { setAddressBalanceTransactionExpirationFromSimulatedEpoch } from "../client/address-balance-transaction-expiration.mjs";
12
13
  import { CommandArgumentError_CommandArgumentErrorKind } from "./proto/sui/rpc/v2/execution_status.mjs";
13
14
  import { ChangedObject_IdOperation, ChangedObject_InputObjectState, ChangedObject_OutputObjectState, UnchangedConsensusObject_UnchangedConsensusObjectKind } from "./proto/sui/rpc/v2/effects.mjs";
14
15
  import { ExecutedTransaction } from "./proto/sui/rpc/v2/executed_transaction.mjs";
@@ -375,18 +376,20 @@ var GrpcCoreClient = class extends CoreClient {
375
376
  const snapshot = transactionData.snapshot();
376
377
  if (!snapshot.sender) snapshot.sender = "0x0000000000000000000000000000000000000000000000000000000000000000";
377
378
  const grpcTransaction = transactionDataToGrpcTransaction(snapshot);
379
+ const doGasSelection = !options.onlyTransactionKind && (snapshot.gasData.budget == null || snapshot.gasData.payment == null);
378
380
  let response;
379
381
  try {
380
382
  response = (await client.transactionExecutionService.simulateTransaction({
381
383
  transaction: grpcTransaction,
382
- doGasSelection: !options.onlyTransactionKind && (snapshot.gasData.budget == null || snapshot.gasData.payment == null),
384
+ doGasSelection,
383
385
  checks: options.onlyTransactionKind ? SimulateTransactionRequest_TransactionChecks.DISABLED : SimulateTransactionRequest_TransactionChecks.ENABLED,
384
386
  readMask: { paths: [
385
387
  "transaction.transaction.sender",
386
388
  "transaction.transaction.gas_payment",
387
389
  "transaction.transaction.expiration",
388
390
  "transaction.transaction.kind",
389
- "transaction.effects.status"
391
+ "transaction.effects.status",
392
+ "transaction.effects.epoch"
390
393
  ] }
391
394
  })).response;
392
395
  } catch (error) {
@@ -399,6 +402,14 @@ var GrpcCoreClient = class extends CoreClient {
399
402
  }
400
403
  if (!response.transaction?.transaction) throw new Error("simulateTransaction did not return resolved transaction data");
401
404
  applyGrpcResolvedTransaction(transactionData, response.transaction.transaction, options);
405
+ await setAddressBalanceTransactionExpirationFromSimulatedEpoch({
406
+ transactionData,
407
+ client,
408
+ epoch: response.transaction.effects?.epoch,
409
+ originalTransactionData: snapshot,
410
+ isTransactionKindOnly: !!options.onlyTransactionKind,
411
+ doGasSelection
412
+ });
402
413
  return await next();
403
414
  };
404
415
  }