@mysten/sui 2.22.1 → 2.23.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 (139) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/bcs/bcs.d.mts +6 -6
  3. package/dist/bcs/bcs.d.mts.map +1 -1
  4. package/dist/bcs/bcs.mjs +1 -19
  5. package/dist/bcs/bcs.mjs.map +1 -1
  6. package/dist/bcs/index.d.mts +3812 -906
  7. package/dist/bcs/index.d.mts.map +1 -1
  8. package/dist/bcs/index.mjs +2 -1
  9. package/dist/bcs/index.mjs.map +1 -1
  10. package/dist/bcs/transactions.mjs +147 -0
  11. package/dist/bcs/transactions.mjs.map +1 -0
  12. package/dist/client/core-resolver.mjs +2 -1
  13. package/dist/client/core-resolver.mjs.map +1 -1
  14. package/dist/client/core.d.mts +2 -0
  15. package/dist/client/core.d.mts.map +1 -1
  16. package/dist/client/core.mjs.map +1 -1
  17. package/dist/client/query-filters.mjs +119 -0
  18. package/dist/client/query-filters.mjs.map +1 -0
  19. package/dist/client/types.d.mts +166 -1
  20. package/dist/client/types.d.mts.map +1 -1
  21. package/dist/client/utils.d.mts.map +1 -1
  22. package/dist/client/utils.mjs +13 -1
  23. package/dist/client/utils.mjs.map +1 -1
  24. package/dist/cryptography/signature.d.mts +6 -6
  25. package/dist/graphql/client.d.mts +15 -2
  26. package/dist/graphql/client.d.mts.map +1 -1
  27. package/dist/graphql/client.mjs +6 -0
  28. package/dist/graphql/client.mjs.map +1 -1
  29. package/dist/graphql/core.d.mts +5 -1
  30. package/dist/graphql/core.d.mts.map +1 -1
  31. package/dist/graphql/core.mjs +85 -3
  32. package/dist/graphql/core.mjs.map +1 -1
  33. package/dist/graphql/generated/queries.d.mts.map +1 -1
  34. package/dist/graphql/generated/queries.mjs +137 -1
  35. package/dist/graphql/generated/queries.mjs.map +1 -1
  36. package/dist/graphql/generated/tada-env.d.mts +108 -0
  37. package/dist/graphql/index.d.mts +2 -2
  38. package/dist/grpc/client.d.mts +11 -0
  39. package/dist/grpc/client.d.mts.map +1 -1
  40. package/dist/grpc/client.mjs +6 -0
  41. package/dist/grpc/client.mjs.map +1 -1
  42. package/dist/grpc/core.d.mts +5 -1
  43. package/dist/grpc/core.d.mts.map +1 -1
  44. package/dist/grpc/core.mjs +100 -2
  45. package/dist/grpc/core.mjs.map +1 -1
  46. package/dist/grpc/filters.mjs +45 -0
  47. package/dist/grpc/filters.mjs.map +1 -0
  48. package/dist/grpc/proto/sui/rpc/v2/event.d.mts +31 -0
  49. package/dist/grpc/proto/sui/rpc/v2/event.d.mts.map +1 -1
  50. package/dist/grpc/proto/sui/rpc/v2/event.mjs +30 -0
  51. package/dist/grpc/proto/sui/rpc/v2/event.mjs.map +1 -1
  52. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts +7 -0
  53. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts.map +1 -1
  54. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs +8 -0
  55. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs.map +1 -1
  56. package/dist/grpc/proto/sui/rpc/v2/filter.d.mts +423 -0
  57. package/dist/grpc/proto/sui/rpc/v2/filter.d.mts.map +1 -0
  58. package/dist/grpc/proto/sui/rpc/v2/filter.mjs +297 -0
  59. package/dist/grpc/proto/sui/rpc/v2/filter.mjs.map +1 -0
  60. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +62 -6
  61. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts.map +1 -1
  62. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs +37 -0
  63. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs.map +1 -1
  64. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts +293 -1
  65. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts.map +1 -1
  66. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +241 -1
  67. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
  68. package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
  69. package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
  70. package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts +15 -2
  71. package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts.map +1 -1
  72. package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs +11 -0
  73. package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs.map +1 -1
  74. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts +211 -0
  75. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts.map +1 -0
  76. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs +163 -0
  77. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs.map +1 -0
  78. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
  79. package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
  80. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +105 -23
  81. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts.map +1 -1
  82. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs +56 -9
  83. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs.map +1 -1
  84. package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts +148 -8
  85. package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts.map +1 -1
  86. package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs +109 -8
  87. package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs.map +1 -1
  88. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
  89. package/dist/grpc/proto/types.d.mts +5 -3
  90. package/dist/grpc/proto/types.mjs +33 -2
  91. package/dist/grpc/proto/types.mjs.map +1 -1
  92. package/dist/jsonRpc/core.d.mts +10 -0
  93. package/dist/jsonRpc/core.d.mts.map +1 -1
  94. package/dist/jsonRpc/core.mjs +85 -2
  95. package/dist/jsonRpc/core.mjs.map +1 -1
  96. package/dist/transactions/Transaction.d.mts +9 -9
  97. package/dist/transactions/Transaction.d.mts.map +1 -1
  98. package/dist/transactions/intents/CoinWithBalance.mjs +14 -18
  99. package/dist/transactions/intents/CoinWithBalance.mjs.map +1 -1
  100. package/dist/version.mjs +1 -1
  101. package/dist/version.mjs.map +1 -1
  102. package/dist/zklogin/bcs.d.mts +14 -14
  103. package/dist/zklogin/bcs.d.mts.map +1 -1
  104. package/docs/clients/core.md +115 -1
  105. package/docs/clients/grpc.md +68 -0
  106. package/docs/migrations/sui-2.0/json-rpc-migration.md +104 -101
  107. package/package.json +2 -2
  108. package/src/bcs/bcs.ts +0 -27
  109. package/src/bcs/index.ts +7 -5
  110. package/src/bcs/transactions.ts +226 -0
  111. package/src/client/core-resolver.ts +5 -1
  112. package/src/client/core.ts +8 -0
  113. package/src/client/query-filters.ts +195 -0
  114. package/src/client/types.ts +186 -1
  115. package/src/client/utils.ts +13 -0
  116. package/src/graphql/client.ts +25 -1
  117. package/src/graphql/core.ts +143 -3
  118. package/src/graphql/generated/queries.ts +226 -0
  119. package/src/graphql/generated/schema.graphql +75 -0
  120. package/src/graphql/generated/tada-env.ts +133 -0
  121. package/src/graphql/index.ts +1 -0
  122. package/src/graphql/queries/listEvents.graphql +40 -0
  123. package/src/graphql/queries/transactions.graphql +26 -0
  124. package/src/grpc/client.ts +19 -0
  125. package/src/grpc/core.ts +187 -3
  126. package/src/grpc/filters.ts +68 -0
  127. package/src/grpc/proto/sui/rpc/v2/event.ts +49 -0
  128. package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +15 -0
  129. package/src/grpc/proto/sui/rpc/v2/filter.ts +589 -0
  130. package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +111 -0
  131. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +406 -0
  132. package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +22 -2
  133. package/src/grpc/proto/sui/rpc/v2/query_options.ts +255 -0
  134. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +136 -18
  135. package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +187 -7
  136. package/src/grpc/proto/types.ts +2 -0
  137. package/src/jsonRpc/core.ts +136 -2
  138. package/src/transactions/intents/CoinWithBalance.ts +41 -41
  139. package/src/version.ts +1 -1
@@ -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, 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,EAAC,gBAAe,iBAAgB,CAAC;AACrC,MAAa,gCAAgC,IAAI,oBAAoB;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGhE;AACH,MAAa,6BAA6B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmF/D;AACH,MAAa,8BAA8B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EhE;AACH,MAAa,6BAA6B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqC5D;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';\nexport type EventFilter = {\n /** Limit to events that occured strictly after the given checkpoint. */\n afterCheckpoint?: number | null | undefined;\n /** Limit to events in the given checkpoint. */\n atCheckpoint?: number | null | undefined;\n /** Limit to event that occured strictly before the given checkpoint. */\n beforeCheckpoint?: number | null | undefined;\n /**\n * Events emitted by a particular module. An event is emitted by a particular module if some function in the module is called by a PTB and emits an event.\n *\n * Modules can be filtered by their package, or package::module. We currently do not support filtering by emitting module and event type at the same time so if both are provided in one filter, the query will error.\n */\n module?: string | null | undefined;\n /** Filter on events by transaction sender address. */\n sender?: string | null | undefined;\n /**\n * This field is used to specify the type of event emitted.\n *\n * Events can be filtered by their type's package, package::module, or their fully qualified type name.\n *\n * Generic types can be queried by either the generic type name, e.g. `0x2::coin::Coin`, or by the full type name, such as `0x2::coin::Coin<0x2::sui::SUI>`.\n */\n type?: string | null | undefined;\n};\n\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\nexport type TransactionFilter = {\n /**\n * Limit to transactions that interacted with the given address.\n * The address could be a sender, sponsor, or recipient of the transaction.\n */\n affectedAddress?: string | null | undefined;\n /**\n * Limit to transactions that interacted with the given object.\n * The object could have been created, read, modified, deleted, wrapped, or unwrapped by the transaction.\n * Objects that were passed as a `Receiving` input are not considered to have been affected by a transaction unless they were actually received.\n */\n affectedObject?: string | null | undefined;\n /** Filter to transactions that occurred strictly after the given checkpoint. */\n afterCheckpoint?: number | null | undefined;\n /** Filter to transactions in the given checkpoint. */\n atCheckpoint?: number | null | undefined;\n /** Filter to transaction that occurred strictly before the given checkpoint. */\n beforeCheckpoint?: number | null | undefined;\n /** Filter transactions by move function called. Calls can be filtered by the `package`, `package::module`, or the `package::module::name` of their function. */\n function?: string | null | undefined;\n /** An input filter selecting for either system or programmable transactions. */\n kind?: TransactionKindInput | null | undefined;\n /** Limit to transactions that were sent by the given address. */\n sentAddress?: string | null | undefined;\n};\n\n/** An input filter selecting for either system or programmable transactions. */\nexport enum TransactionKindInput {\n /** A user submitted transaction block. */\n ProgrammableTx = 'PROGRAMMABLE_TX',\n /**\n * A system transaction can be one of several types of transactions.\n * See [unions/transaction-block-kind] for more details.\n */\n SystemTx = 'SYSTEM_TX'\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 ListEventsQueryVariables = Exact<{\n filter?: EventFilter | null | undefined;\n first?: number | null | undefined;\n after?: string | null | undefined;\n last?: number | null | undefined;\n before?: string | null | undefined;\n}>;\n\n\nexport type ListEventsQuery = { events: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, nodes: Array<{ sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | 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 ListTransactionsQueryVariables = Exact<{\n filter?: TransactionFilter | null | undefined;\n first?: number | null | undefined;\n after?: string | null | undefined;\n last?: number | null | undefined;\n before?: string | null | undefined;\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 ListTransactionsQuery = { transactions: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, nodes: Array<{ 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 ListEventsDocument = new TypedDocumentString(`\n query listEvents($filter: EventFilter, $first: Int, $after: String, $last: Int, $before: String) {\n events(\n filter: $filter\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n nodes {\n sequenceNumber\n transaction {\n digest\n effects {\n checkpoint {\n sequenceNumber\n }\n }\n }\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<ListEventsQuery, ListEventsQueryVariables>;\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 ListTransactionsDocument = new TypedDocumentString(`\n query listTransactions($filter: TransactionFilter, $first: Int, $after: String, $last: Int, $before: String, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {\n transactions(\n filter: $filter\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n nodes {\n ...TRANSACTION_FIELDS\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<ListTransactionsQuery, ListTransactionsQueryVariables>;\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":";;AAoCA,IAAY,8DAAL;;AAEL;;AAEA;;;;AA6IF,IAAY,oEAAL;;AAEL;;AAEA;;;AAiQF,IAAa,sBAAb,cACU,OAEV;CAKE,YAAY,OAAe,UAA4C;AACrE,QAAM,MAAM;AACZ,OAAK,QAAQ;AACb,OAAK,WAAW;;CAGlB,AA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;;;;;;;;;;;;;;;;;;;;;;;MA4CpD;AACN,MAAa,2BAA2B,IAAI,oBAAoB;;;;;;;;MAQ1D;AACN,MAAa,0BAA0B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0D5D;AACH,MAAa,0BAA0B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuD5D;AACH,MAAa,8BAA8B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGhE;AACH,MAAa,6BAA6B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmF/D;AACH,MAAa,8BAA8B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EhE;AACH,MAAa,2BAA2B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0F7D;AACH,MAAa,6BAA6B,IAAI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqC5D;AACN,MAAa,iCAAiC,IAAI,oBAAoB;;;;;;;;;;;MAWhE"}
@@ -222,6 +222,20 @@ declare const introspection: {
222
222
  };
223
223
  readonly args: readonly [];
224
224
  readonly isDeprecated: false;
225
+ }, {
226
+ readonly name: "asTransactionObject";
227
+ readonly type: {
228
+ readonly kind: "UNION";
229
+ readonly name: "TransactionObject";
230
+ };
231
+ readonly args: readonly [{
232
+ readonly name: "transactionDigest";
233
+ readonly type: {
234
+ readonly kind: "SCALAR";
235
+ readonly name: "String";
236
+ };
237
+ }];
238
+ readonly isDeprecated: false;
225
239
  }, {
226
240
  readonly name: "balance";
227
241
  readonly type: {
@@ -1498,6 +1512,20 @@ declare const introspection: {
1498
1512
  };
1499
1513
  readonly args: readonly [];
1500
1514
  readonly isDeprecated: false;
1515
+ }, {
1516
+ readonly name: "asTransactionObject";
1517
+ readonly type: {
1518
+ readonly kind: "UNION";
1519
+ readonly name: "TransactionObject";
1520
+ };
1521
+ readonly args: readonly [{
1522
+ readonly name: "transactionDigest";
1523
+ readonly type: {
1524
+ readonly kind: "SCALAR";
1525
+ readonly name: "String";
1526
+ };
1527
+ }];
1528
+ readonly isDeprecated: false;
1501
1529
  }, {
1502
1530
  readonly name: "balance";
1503
1531
  readonly type: {
@@ -2408,6 +2436,20 @@ declare const introspection: {
2408
2436
  };
2409
2437
  }];
2410
2438
  readonly isDeprecated: false;
2439
+ }, {
2440
+ readonly name: "asTransactionObject";
2441
+ readonly type: {
2442
+ readonly kind: "UNION";
2443
+ readonly name: "TransactionObject";
2444
+ };
2445
+ readonly args: readonly [{
2446
+ readonly name: "transactionDigest";
2447
+ readonly type: {
2448
+ readonly kind: "SCALAR";
2449
+ readonly name: "String";
2450
+ };
2451
+ }];
2452
+ readonly isDeprecated: false;
2411
2453
  }, {
2412
2454
  readonly name: "balance";
2413
2455
  readonly type: {
@@ -4068,6 +4110,20 @@ declare const introspection: {
4068
4110
  };
4069
4111
  }];
4070
4112
  readonly isDeprecated: false;
4113
+ }, {
4114
+ readonly name: "asTransactionObject";
4115
+ readonly type: {
4116
+ readonly kind: "UNION";
4117
+ readonly name: "TransactionObject";
4118
+ };
4119
+ readonly args: readonly [{
4120
+ readonly name: "transactionDigest";
4121
+ readonly type: {
4122
+ readonly kind: "SCALAR";
4123
+ readonly name: "String";
4124
+ };
4125
+ }];
4126
+ readonly isDeprecated: false;
4071
4127
  }, {
4072
4128
  readonly name: "balance";
4073
4129
  readonly type: {
@@ -5853,6 +5909,20 @@ declare const introspection: {
5853
5909
  };
5854
5910
  readonly args: readonly [];
5855
5911
  readonly isDeprecated: false;
5912
+ }, {
5913
+ readonly name: "asTransactionObject";
5914
+ readonly type: {
5915
+ readonly kind: "UNION";
5916
+ readonly name: "TransactionObject";
5917
+ };
5918
+ readonly args: readonly [{
5919
+ readonly name: "transactionDigest";
5920
+ readonly type: {
5921
+ readonly kind: "SCALAR";
5922
+ readonly name: "String";
5923
+ };
5924
+ }];
5925
+ readonly isDeprecated: false;
5856
5926
  }, {
5857
5927
  readonly name: "balance";
5858
5928
  readonly type: {
@@ -6449,6 +6519,20 @@ declare const introspection: {
6449
6519
  };
6450
6520
  }];
6451
6521
  readonly isDeprecated: false;
6522
+ }, {
6523
+ readonly name: "asTransactionObject";
6524
+ readonly type: {
6525
+ readonly kind: "UNION";
6526
+ readonly name: "TransactionObject";
6527
+ };
6528
+ readonly args: readonly [{
6529
+ readonly name: "transactionDigest";
6530
+ readonly type: {
6531
+ readonly kind: "SCALAR";
6532
+ readonly name: "String";
6533
+ };
6534
+ }];
6535
+ readonly isDeprecated: false;
6452
6536
  }, {
6453
6537
  readonly name: "balance";
6454
6538
  readonly type: {
@@ -7774,6 +7858,20 @@ declare const introspection: {
7774
7858
  };
7775
7859
  readonly args: readonly [];
7776
7860
  readonly isDeprecated: false;
7861
+ }, {
7862
+ readonly name: "asTransactionObject";
7863
+ readonly type: {
7864
+ readonly kind: "UNION";
7865
+ readonly name: "TransactionObject";
7866
+ };
7867
+ readonly args: readonly [{
7868
+ readonly name: "transactionDigest";
7869
+ readonly type: {
7870
+ readonly kind: "SCALAR";
7871
+ readonly name: "String";
7872
+ };
7873
+ }];
7874
+ readonly isDeprecated: false;
7777
7875
  }, {
7778
7876
  readonly name: "balance";
7779
7877
  readonly type: {
@@ -11205,6 +11303,16 @@ declare const introspection: {
11205
11303
  readonly name: "PROGRAMMABLE_TX";
11206
11304
  readonly isDeprecated: false;
11207
11305
  }];
11306
+ }, {
11307
+ readonly kind: "UNION";
11308
+ readonly name: "TransactionObject";
11309
+ readonly possibleTypes: readonly [{
11310
+ readonly kind: "OBJECT";
11311
+ readonly name: "ConsensusObjectRead";
11312
+ }, {
11313
+ readonly kind: "OBJECT";
11314
+ readonly name: "ObjectChange";
11315
+ }];
11208
11316
  }, {
11209
11317
  readonly kind: "OBJECT";
11210
11318
  readonly name: "TransferObjectsCommand";
@@ -1,2 +1,2 @@
1
- import { GraphQLDocument, GraphQLQueryOptions, GraphQLQueryResult, GraphQLResponseErrors, SuiGraphQLClient, SuiGraphQLClientOptions, SuiGraphQLRequestError, isSuiGraphQLClient } from "./client.mjs";
2
- export { type GraphQLDocument, type GraphQLQueryOptions, type GraphQLQueryResult, type GraphQLResponseErrors, SuiGraphQLClient, type SuiGraphQLClientOptions, SuiGraphQLRequestError, isSuiGraphQLClient };
1
+ import { GraphQLDocument, GraphQLQueryOptions, GraphQLQueryResult, GraphQLResponseErrors, GraphQLSimulateTransactionOptions, SuiGraphQLClient, SuiGraphQLClientOptions, SuiGraphQLRequestError, isSuiGraphQLClient } from "./client.mjs";
2
+ export { type GraphQLDocument, type GraphQLQueryOptions, type GraphQLQueryResult, type GraphQLResponseErrors, type GraphQLSimulateTransactionOptions, SuiGraphQLClient, type SuiGraphQLClientOptions, SuiGraphQLRequestError, isSuiGraphQLClient };
@@ -79,6 +79,15 @@ interface GrpcSignAndExecuteTransactionOptions<Include extends GrpcTransactionIn
79
79
  }
80
80
  interface GrpcSimulateTransactionOptions<Include extends GrpcSimulateTransactionInclude = {}> extends SuiClientTypes.SimulateTransactionOptions<Include> {
81
81
  include?: Include & GrpcSimulateTransactionInclude;
82
+ /**
83
+ * Overrides whether the server selects gas payment during simulation.
84
+ *
85
+ * When not set, gas selection is enabled only when the transaction's gas payment is explicitly
86
+ * set to an empty list (`[]`), which indicates gas is paid from the sender's address balance.
87
+ * Transactions with gas coins set are simulated as-is, and transactions without a gas payment
88
+ * are simulated with a mocked gas coin.
89
+ */
90
+ doGasSelection?: boolean;
82
91
  }
83
92
  declare class SuiGrpcClient extends BaseClient implements SuiClientTypes.TransportMethods {
84
93
  [SUI_CLIENT_BRAND]: boolean;
@@ -110,6 +119,8 @@ declare class SuiGrpcClient extends BaseClient implements SuiClientTypes.Transpo
110
119
  include?: Include & DynamicFieldInclude;
111
120
  }): Promise<ListDynamicFieldsWithValueResponse<Include>>;
112
121
  getDynamicField(input: SuiClientTypes.GetDynamicFieldOptions): Promise<SuiClientTypes.GetDynamicFieldResponse>;
122
+ listTransactions<Include extends SuiClientTypes.TransactionInclude = {}>(input: SuiClientTypes.ListTransactionsOptions<Include>): Promise<SuiClientTypes.ListTransactionsResponse<Include>>;
123
+ listEvents(input: SuiClientTypes.ListEventsOptions): Promise<SuiClientTypes.ListEventsResponse>;
113
124
  getMoveFunction(input: SuiClientTypes.GetMoveFunctionOptions): Promise<SuiClientTypes.GetMoveFunctionResponse>;
114
125
  resolveTransactionPlugin(): TransactionPlugin;
115
126
  verifyZkLoginSignature(input: SuiClientTypes.VerifyZkLoginSignatureOptions): Promise<SuiClientTypes.ZkLoginVerifyResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.mts","names":[],"sources":["../../src/grpc/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAsBU,uBAAA,SAAgC,cAAA;EACzC,SAAA;AAAA;AAAA,KAGW,oBAAA;EACX,OAAA,EAAS,cAAA,CAAe,OAAA;EACxB,GAAA,GAAM,cAAA,CAAe,UAAA;AAAA;EAGnB,SAAA,EAAW,YAAA;AAAA,IAEX,uBAAA;AAAA,cAGG,gBAAA;AAAA,iBAEU,eAAA,CAAgB,MAAA,YAAkB,MAAA,IAAU,aAAA;AAAA,UAM3C,mBAAA;EAChB,KAAA;AAAA;AAAA,KAGW,0BAAA,iBAA2C,mBAAA,SACtD,cAAA,CAAe,iBAAA;EACd,KAAA,EAAO,OAAA;IAAkB,KAAA;EAAA,IAAgB,cAAA,CAAe,iBAA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AAQ,qBAAA,CAAsB,OAAA;EAIjC,kBAAA,iBAAmC,sBAAA,MAAA,CAClC,KAAA,EAAO,6BAAA,CAA8B,OAAA,IACnC,OAAA,CAAQ,qBAAA,CAAsB,OAAA;EAIjC,mBAAA,iBAAoC,8BAAA,MAAA,CACnC,KAAA,EAAO,8BAAA,CAA+B,OAAA,IACpC,OAAA,CAAQ,6BAAA,CAA8B,OAAA;EAIzC,oBAAA,CAAA,GAAwB,OAAA,CAAQ,cAAA,CAAe,4BAAA;EAIzC,iBAAA,iBAAkC,mBAAA,MAAA,CACvC,KAAA,EAAO,cAAA,CAAe,wBAAA;IAA6B,OAAA,GAAU,OAAA,GAAU,mBAAA;EAAA,IACrE,OAAA,CAAQ,kCAAA,CAAmC,OAAA;EA+C9C,eAAA,CACC,KAAA,EAAO,cAAA,CAAe,sBAAA,GACpB,OAAA,CAAQ,cAAA,CAAe,uBAAA;EAI1B,gBAAA,iBAAiC,cAAA,CAAe,kBAAA,MAAA,CAC/C,KAAA,EAAO,cAAA,CAAe,uBAAA,CAAwB,OAAA,IAC5C,OAAA,CAAQ,cAAA,CAAe,wBAAA,CAAyB,OAAA;EAInD,UAAA,CAAW,KAAA,EAAO,cAAA,CAAe,iBAAA,GAAoB,OAAA,CAAQ,cAAA,CAAe,kBAAA;EAI5E,eAAA,CACC,KAAA,EAAO,cAAA,CAAe,sBAAA,GACpB,OAAA,CAAQ,cAAA,CAAe,uBAAA;EAI1B,wBAAA,CAAA,GAA4B,iBAAA;EAI5B,sBAAA,CACC,KAAA,EAAO,cAAA,CAAe,6BAAA,GACpB,OAAA,CAAQ,cAAA,CAAe,qBAAA;EAI1B,sBAAA,CACC,KAAA,EAAO,cAAA,CAAe,6BAAA,GACpB,OAAA,CAAQ,cAAA,CAAe,8BAAA;AAAA"}
@@ -128,6 +128,12 @@ var SuiGrpcClient = class extends BaseClient {
128
128
  getDynamicField(input) {
129
129
  return this.core.getDynamicField(input);
130
130
  }
131
+ listTransactions(input) {
132
+ return this.core.listTransactions(input);
133
+ }
134
+ listEvents(input) {
135
+ return this.core.listEvents(input);
136
+ }
131
137
  getMoveFunction(input) {
132
138
  return this.core.getMoveFunction(input);
133
139
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.mjs","names":[],"sources":["../../src/grpc/client.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { GrpcWebOptions } from '@protobuf-ts/grpcweb-transport';\nimport { GrpcWebFetchTransport } from '@protobuf-ts/grpcweb-transport';\nimport { TransactionExecutionServiceClient } from './proto/sui/rpc/v2/transaction_execution_service.client.js';\nimport { LedgerServiceClient } from './proto/sui/rpc/v2/ledger_service.client.js';\nimport { MovePackageServiceClient } from './proto/sui/rpc/v2/move_package_service.client.js';\nimport { SignatureVerificationServiceClient } from './proto/sui/rpc/v2/signature_verification_service.client.js';\nimport type { RpcTransport } from '@protobuf-ts/runtime-rpc';\nimport { StateServiceClient } from './proto/sui/rpc/v2/state_service.client.js';\nimport { SubscriptionServiceClient } from './proto/sui/rpc/v2/subscription_service.client.js';\nimport { GrpcCoreClient } from './core.js';\nimport type { SuiClientTypes } from '../client/index.js';\nimport { BaseClient } from '../client/index.js';\nimport { DynamicField_DynamicFieldKind } from './proto/sui/rpc/v2/state_service.js';\nimport { normalizeStructTag } from '../utils/sui-types.js';\nimport { fromBase64, toBase64 } from '@mysten/utils';\nimport { NameServiceClient } from './proto/sui/rpc/v2/name_service.client.js';\nimport { ForkingServiceClient } from './proto/sui/forking/v1alpha/forking_service.client.js';\nimport type { TransactionPlugin } from '../transactions/index.js';\n\ninterface SuiGrpcTransportOptions extends GrpcWebOptions {\n\ttransport?: never;\n}\n\nexport type SuiGrpcClientOptions = {\n\tnetwork: SuiClientTypes.Network;\n\tmvr?: SuiClientTypes.MvrOptions;\n} & (\n\t| {\n\t\t\ttransport: RpcTransport;\n\t }\n\t| SuiGrpcTransportOptions\n);\n\nconst SUI_CLIENT_BRAND = Symbol.for('@mysten/SuiGrpcClient') as never;\n\nexport function isSuiGrpcClient(client: unknown): client is SuiGrpcClient {\n\treturn (\n\t\ttypeof client === 'object' && client !== null && (client as any)[SUI_CLIENT_BRAND] === true\n\t);\n}\n\nexport interface DynamicFieldInclude {\n\tvalue?: boolean;\n}\n\nexport type DynamicFieldEntryWithValue<Include extends DynamicFieldInclude = {}> =\n\tSuiClientTypes.DynamicFieldEntry & {\n\t\tvalue: Include extends { value: true } ? SuiClientTypes.DynamicFieldValue : undefined;\n\t};\n\nexport interface ListDynamicFieldsWithValueResponse<Include extends DynamicFieldInclude = {}> {\n\thasNextPage: boolean;\n\tcursor: string | null;\n\tdynamicFields: DynamicFieldEntryWithValue<Include>[];\n}\n\nexport interface GrpcTransactionInclude extends SuiClientTypes.TransactionInclude {\n\t/** Include the parsed protobuf JSON value for the gRPC transaction response. */\n\tprotoJson?: boolean;\n}\n\nexport interface GrpcSimulateTransactionInclude extends SuiClientTypes.SimulateTransactionInclude {\n\t/** Include the parsed protobuf JSON value for the gRPC simulation response. */\n\tprotoJson?: boolean;\n}\n\nexport type GrpcTransactionProtoJson = ReturnType<\n\ttypeof import('./proto/sui/rpc/v2/executed_transaction.js').ExecutedTransaction.toJson\n>;\n\nexport type GrpcSimulateTransactionProtoJson = ReturnType<\n\ttypeof import('./proto/sui/rpc/v2/transaction_execution_service.js').SimulateTransactionResponse.toJson\n>;\n\ntype ProtoJson<Include extends { protoJson?: boolean }, Json> = Include['protoJson'] extends true\n\t? Json\n\t: undefined;\n\nexport type GrpcTransactionResult<Include extends GrpcTransactionInclude = {}> =\n\tSuiClientTypes.TransactionResult<Include> & {\n\t\tprotoJson: ProtoJson<Include, GrpcTransactionProtoJson>;\n\t};\n\nexport type GrpcSimulateTransactionResult<Include extends GrpcSimulateTransactionInclude = {}> =\n\tSuiClientTypes.SimulateTransactionResult<Include> & {\n\t\tprotoJson: ProtoJson<Include, GrpcSimulateTransactionProtoJson>;\n\t};\n\nexport interface GrpcGetTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.GetTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcWaitForTransactionByDigest<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.WaitForTransactionByDigest<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcWaitForTransactionByResult<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.WaitForTransactionByResult<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport type GrpcWaitForTransactionOptions<Include extends GrpcTransactionInclude = {}> =\n\t| GrpcWaitForTransactionByDigest<Include>\n\t| GrpcWaitForTransactionByResult<Include>;\n\nexport interface GrpcExecuteTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.ExecuteTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcSignAndExecuteTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.SignAndExecuteTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcSimulateTransactionOptions<\n\tInclude extends GrpcSimulateTransactionInclude = {},\n> extends SuiClientTypes.SimulateTransactionOptions<Include> {\n\tinclude?: Include & GrpcSimulateTransactionInclude;\n}\n\nexport class SuiGrpcClient extends BaseClient implements SuiClientTypes.TransportMethods {\n\tcore: GrpcCoreClient;\n\tget mvr(): SuiClientTypes.MvrMethods {\n\t\treturn this.core.mvr;\n\t}\n\ttransactionExecutionService: TransactionExecutionServiceClient;\n\tledgerService: LedgerServiceClient;\n\tstateService: StateServiceClient;\n\tsubscriptionService: SubscriptionServiceClient;\n\tmovePackageService: MovePackageServiceClient;\n\tsignatureVerificationService: SignatureVerificationServiceClient;\n\tnameService: NameServiceClient;\n\tforkingService: ForkingServiceClient;\n\n\tget [SUI_CLIENT_BRAND]() {\n\t\treturn true;\n\t}\n\n\tconstructor(options: SuiGrpcClientOptions) {\n\t\tsuper({ network: options.network });\n\t\tconst transport =\n\t\t\toptions.transport ??\n\t\t\tnew GrpcWebFetchTransport({ baseUrl: options.baseUrl, fetchInit: options.fetchInit });\n\t\tthis.transactionExecutionService = new TransactionExecutionServiceClient(transport);\n\t\tthis.ledgerService = new LedgerServiceClient(transport);\n\t\tthis.stateService = new StateServiceClient(transport);\n\t\tthis.subscriptionService = new SubscriptionServiceClient(transport);\n\t\tthis.movePackageService = new MovePackageServiceClient(transport);\n\t\tthis.signatureVerificationService = new SignatureVerificationServiceClient(transport);\n\t\tthis.nameService = new NameServiceClient(transport);\n\t\tthis.forkingService = new ForkingServiceClient(transport);\n\n\t\tthis.core = new GrpcCoreClient({\n\t\t\tclient: this,\n\t\t\tbase: this,\n\t\t\tnetwork: options.network,\n\t\t\tmvr: options.mvr,\n\t\t});\n\t}\n\n\tgetObjects<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.GetObjectsOptions<Include>,\n\t): Promise<SuiClientTypes.GetObjectsResponse<Include>> {\n\t\treturn this.core.getObjects(input);\n\t}\n\n\tgetObject<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.GetObjectOptions<Include>,\n\t): Promise<SuiClientTypes.GetObjectResponse<Include>> {\n\t\treturn this.core.getObject(input);\n\t}\n\n\tlistCoins(input: SuiClientTypes.ListCoinsOptions): Promise<SuiClientTypes.ListCoinsResponse> {\n\t\treturn this.core.listCoins(input);\n\t}\n\n\tlistOwnedObjects<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.ListOwnedObjectsOptions<Include>,\n\t): Promise<SuiClientTypes.ListOwnedObjectsResponse<Include>> {\n\t\treturn this.core.listOwnedObjects(input);\n\t}\n\n\tgetBalance(input: SuiClientTypes.GetBalanceOptions): Promise<SuiClientTypes.GetBalanceResponse> {\n\t\treturn this.core.getBalance(input);\n\t}\n\n\tlistBalances(\n\t\tinput: SuiClientTypes.ListBalancesOptions,\n\t): Promise<SuiClientTypes.ListBalancesResponse> {\n\t\treturn this.core.listBalances(input);\n\t}\n\n\tgetCoinMetadata(\n\t\tinput: SuiClientTypes.GetCoinMetadataOptions,\n\t): Promise<SuiClientTypes.GetCoinMetadataResponse> {\n\t\treturn this.core.getCoinMetadata(input);\n\t}\n\n\tgetTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcGetTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.getTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\texecuteTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcExecuteTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.executeTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\tsignAndExecuteTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcSignAndExecuteTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.signAndExecuteTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\twaitForTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcWaitForTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.waitForTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\tsimulateTransaction<Include extends GrpcSimulateTransactionInclude = {}>(\n\t\tinput: GrpcSimulateTransactionOptions<Include>,\n\t): Promise<GrpcSimulateTransactionResult<Include>> {\n\t\treturn this.core.simulateTransaction(input) as Promise<GrpcSimulateTransactionResult<Include>>;\n\t}\n\n\tgetReferenceGasPrice(): Promise<SuiClientTypes.GetReferenceGasPriceResponse> {\n\t\treturn this.core.getReferenceGasPrice();\n\t}\n\n\tasync listDynamicFields<Include extends DynamicFieldInclude = {}>(\n\t\tinput: SuiClientTypes.ListDynamicFieldsOptions & { include?: Include & DynamicFieldInclude },\n\t): Promise<ListDynamicFieldsWithValueResponse<Include>> {\n\t\tconst includeValue = input.include?.value ?? false;\n\t\tconst paths = ['field_id', 'name', 'value_type', 'kind', 'child_id'];\n\t\tif (includeValue) {\n\t\t\tpaths.push('value');\n\t\t}\n\n\t\tconst response = await this.stateService.listDynamicFields(\n\t\t\t{\n\t\t\t\tparent: input.parentId,\n\t\t\t\tpageToken: input.cursor ? fromBase64(input.cursor) : undefined,\n\t\t\t\tpageSize: input.limit,\n\t\t\t\treadMask: {\n\t\t\t\t\tpaths,\n\t\t\t\t},\n\t\t\t},\n\t\t\t{ abort: input.signal },\n\t\t);\n\n\t\treturn {\n\t\t\tdynamicFields: response.response.dynamicFields.map(\n\t\t\t\t(field): DynamicFieldEntryWithValue<Include> => {\n\t\t\t\t\tconst isDynamicObject = field.kind === DynamicField_DynamicFieldKind.OBJECT;\n\t\t\t\t\tconst fieldType = isDynamicObject\n\t\t\t\t\t\t? `0x2::dynamic_field::Field<0x2::dynamic_object_field::Wrapper<${field.name?.name!}>,0x2::object::ID>`\n\t\t\t\t\t\t: `0x2::dynamic_field::Field<${field.name?.name!},${field.valueType!}>`;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t$kind: isDynamicObject ? 'DynamicObject' : 'DynamicField',\n\t\t\t\t\t\tfieldId: field.fieldId!,\n\t\t\t\t\t\tname: {\n\t\t\t\t\t\t\ttype: field.name?.name!,\n\t\t\t\t\t\t\tbcs: field.name?.value!,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tvalueType: field.valueType!,\n\t\t\t\t\t\ttype: normalizeStructTag(fieldType),\n\t\t\t\t\t\tchildId: field.childId,\n\t\t\t\t\t\tvalue: (includeValue\n\t\t\t\t\t\t\t? { type: field.valueType!, bcs: field.value?.value ?? new Uint8Array() }\n\t\t\t\t\t\t\t: undefined) as DynamicFieldEntryWithValue<Include>['value'],\n\t\t\t\t\t} as DynamicFieldEntryWithValue<Include>;\n\t\t\t\t},\n\t\t\t),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tgetDynamicField(\n\t\tinput: SuiClientTypes.GetDynamicFieldOptions,\n\t): Promise<SuiClientTypes.GetDynamicFieldResponse> {\n\t\treturn this.core.getDynamicField(input);\n\t}\n\n\tgetMoveFunction(\n\t\tinput: SuiClientTypes.GetMoveFunctionOptions,\n\t): Promise<SuiClientTypes.GetMoveFunctionResponse> {\n\t\treturn this.core.getMoveFunction(input);\n\t}\n\n\tresolveTransactionPlugin(): TransactionPlugin {\n\t\treturn this.core.resolveTransactionPlugin();\n\t}\n\n\tverifyZkLoginSignature(\n\t\tinput: SuiClientTypes.VerifyZkLoginSignatureOptions,\n\t): Promise<SuiClientTypes.ZkLoginVerifyResponse> {\n\t\treturn this.core.verifyZkLoginSignature(input);\n\t}\n\n\tdefaultNameServiceName(\n\t\tinput: SuiClientTypes.DefaultNameServiceNameOptions,\n\t): Promise<SuiClientTypes.DefaultNameServiceNameResponse> {\n\t\treturn this.core.defaultNameServiceName(input);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,MAAM,mBAAmB,OAAO,IAAI,wBAAwB;AAE5D,SAAgB,gBAAgB,QAA0C;AACzE,QACC,OAAO,WAAW,YAAY,WAAW,QAAS,OAAe,sBAAsB;;AA2FzF,IAAa,gBAAb,cAAmC,WAAsD;CAExF,IAAI,MAAiC;AACpC,SAAO,KAAK,KAAK;;CAWlB,KAAK,oBAAoB;AACxB,SAAO;;CAGR,YAAY,SAA+B;AAC1C,QAAM,EAAE,SAAS,QAAQ,SAAS,CAAC;EACnC,MAAM,YACL,QAAQ,aACR,IAAI,sBAAsB;GAAE,SAAS,QAAQ;GAAS,WAAW,QAAQ;GAAW,CAAC;AACtF,OAAK,8BAA8B,IAAI,kCAAkC,UAAU;AACnF,OAAK,gBAAgB,IAAI,oBAAoB,U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E,MAAI,aACH,OAAM,KAAK,QAAQ;EAGpB,MAAM,WAAW,MAAM,KAAK,aAAa,kBACxC;GACC,QAAQ,MAAM;GACd,WAAW,MAAM,SAAS,WAAW,MAAM,OAAO,GAAG;GACrD,UAAU,MAAM;GAChB,UAAU,EACT,OACA;GACD,EACD,EAAE,OAAO,MAAM,QAAQ,CACvB;AAED,SAAO;GACN,eAAe,SAAS,SAAS,cAAc,KAC7C,UAA+C;IAC/C,MAAM,kBAAkB,MAAM,SAAS,8BAA8B;IACrE,MAAM,YAAY,kBACf,gEAAgE,MAAM,MAAM,KAAM,sBAClF,6BAA6B,MAAM,MAAM,KAAM,GAAG,MAAM,UAAW;AACtE,WAAO;KACN,OAAO,kBAAkB,kBAAkB;KAC3C,SAAS,MAAM;KACf,MAAM;MACL,MAAM,MAAM,MAAM;MAClB,KAAK,MAAM,MAAM;MACjB;KACD,WAAW,MAAM;KACjB,MAAM,mBAAmB,UAAU;KACnC,SAAS,MAAM;KACf,OAAQ,eACL;MAAE,MAAM,MAAM;MAAY,KAAK,MAAM,OAAO,SAAS,IAAI,YAAY;MAAE,GACvE;KACH;KAEF;GACD,QAAQ,SAAS,SAAS,gBAAgB,SAAS,SAAS,SAAS,cAAc,GAAG;GACtF,aAAa,SAAS,SAAS,kBAAkB;GACjD;;CAGF,gBACC,OACkD;AAClD,SAAO,KAAK,KAAK,gBAAgB,MAAM;;CAGxC,gBACC,OACkD;AAClD,SAAO,KAAK,KAAK,gBAAgB,MAAM;;CAGxC,2BAA8C;AAC7C,SAAO,KAAK,KAAK,0BAA0B;;CAG5C,uBACC,OACgD;AAChD,SAAO,KAAK,KAAK,uBAAuB,MAAM;;CAG/C,uBACC,OACyD;AACzD,SAAO,KAAK,KAAK,uBAAuB,MAAM"}
1
+ {"version":3,"file":"client.mjs","names":[],"sources":["../../src/grpc/client.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { GrpcWebOptions } from '@protobuf-ts/grpcweb-transport';\nimport { GrpcWebFetchTransport } from '@protobuf-ts/grpcweb-transport';\nimport { TransactionExecutionServiceClient } from './proto/sui/rpc/v2/transaction_execution_service.client.js';\nimport { LedgerServiceClient } from './proto/sui/rpc/v2/ledger_service.client.js';\nimport { MovePackageServiceClient } from './proto/sui/rpc/v2/move_package_service.client.js';\nimport { SignatureVerificationServiceClient } from './proto/sui/rpc/v2/signature_verification_service.client.js';\nimport type { RpcTransport } from '@protobuf-ts/runtime-rpc';\nimport { StateServiceClient } from './proto/sui/rpc/v2/state_service.client.js';\nimport { SubscriptionServiceClient } from './proto/sui/rpc/v2/subscription_service.client.js';\nimport { GrpcCoreClient } from './core.js';\nimport type { SuiClientTypes } from '../client/index.js';\nimport { BaseClient } from '../client/index.js';\nimport { DynamicField_DynamicFieldKind } from './proto/sui/rpc/v2/state_service.js';\nimport { normalizeStructTag } from '../utils/sui-types.js';\nimport { fromBase64, toBase64 } from '@mysten/utils';\nimport { NameServiceClient } from './proto/sui/rpc/v2/name_service.client.js';\nimport { ForkingServiceClient } from './proto/sui/forking/v1alpha/forking_service.client.js';\nimport type { TransactionPlugin } from '../transactions/index.js';\n\ninterface SuiGrpcTransportOptions extends GrpcWebOptions {\n\ttransport?: never;\n}\n\nexport type SuiGrpcClientOptions = {\n\tnetwork: SuiClientTypes.Network;\n\tmvr?: SuiClientTypes.MvrOptions;\n} & (\n\t| {\n\t\t\ttransport: RpcTransport;\n\t }\n\t| SuiGrpcTransportOptions\n);\n\nconst SUI_CLIENT_BRAND = Symbol.for('@mysten/SuiGrpcClient') as never;\n\nexport function isSuiGrpcClient(client: unknown): client is SuiGrpcClient {\n\treturn (\n\t\ttypeof client === 'object' && client !== null && (client as any)[SUI_CLIENT_BRAND] === true\n\t);\n}\n\nexport interface DynamicFieldInclude {\n\tvalue?: boolean;\n}\n\nexport type DynamicFieldEntryWithValue<Include extends DynamicFieldInclude = {}> =\n\tSuiClientTypes.DynamicFieldEntry & {\n\t\tvalue: Include extends { value: true } ? SuiClientTypes.DynamicFieldValue : undefined;\n\t};\n\nexport interface ListDynamicFieldsWithValueResponse<Include extends DynamicFieldInclude = {}> {\n\thasNextPage: boolean;\n\tcursor: string | null;\n\tdynamicFields: DynamicFieldEntryWithValue<Include>[];\n}\n\nexport interface GrpcTransactionInclude extends SuiClientTypes.TransactionInclude {\n\t/** Include the parsed protobuf JSON value for the gRPC transaction response. */\n\tprotoJson?: boolean;\n}\n\nexport interface GrpcSimulateTransactionInclude extends SuiClientTypes.SimulateTransactionInclude {\n\t/** Include the parsed protobuf JSON value for the gRPC simulation response. */\n\tprotoJson?: boolean;\n}\n\nexport type GrpcTransactionProtoJson = ReturnType<\n\ttypeof import('./proto/sui/rpc/v2/executed_transaction.js').ExecutedTransaction.toJson\n>;\n\nexport type GrpcSimulateTransactionProtoJson = ReturnType<\n\ttypeof import('./proto/sui/rpc/v2/transaction_execution_service.js').SimulateTransactionResponse.toJson\n>;\n\ntype ProtoJson<Include extends { protoJson?: boolean }, Json> = Include['protoJson'] extends true\n\t? Json\n\t: undefined;\n\nexport type GrpcTransactionResult<Include extends GrpcTransactionInclude = {}> =\n\tSuiClientTypes.TransactionResult<Include> & {\n\t\tprotoJson: ProtoJson<Include, GrpcTransactionProtoJson>;\n\t};\n\nexport type GrpcSimulateTransactionResult<Include extends GrpcSimulateTransactionInclude = {}> =\n\tSuiClientTypes.SimulateTransactionResult<Include> & {\n\t\tprotoJson: ProtoJson<Include, GrpcSimulateTransactionProtoJson>;\n\t};\n\nexport interface GrpcGetTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.GetTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcWaitForTransactionByDigest<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.WaitForTransactionByDigest<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcWaitForTransactionByResult<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.WaitForTransactionByResult<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport type GrpcWaitForTransactionOptions<Include extends GrpcTransactionInclude = {}> =\n\t| GrpcWaitForTransactionByDigest<Include>\n\t| GrpcWaitForTransactionByResult<Include>;\n\nexport interface GrpcExecuteTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.ExecuteTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcSignAndExecuteTransactionOptions<\n\tInclude extends GrpcTransactionInclude = {},\n> extends SuiClientTypes.SignAndExecuteTransactionOptions<Include> {\n\tinclude?: Include & GrpcTransactionInclude;\n}\n\nexport interface GrpcSimulateTransactionOptions<\n\tInclude extends GrpcSimulateTransactionInclude = {},\n> extends SuiClientTypes.SimulateTransactionOptions<Include> {\n\tinclude?: Include & GrpcSimulateTransactionInclude;\n\t/**\n\t * Overrides whether the server selects gas payment during simulation.\n\t *\n\t * When not set, gas selection is enabled only when the transaction's gas payment is explicitly\n\t * set to an empty list (`[]`), which indicates gas is paid from the sender's address balance.\n\t * Transactions with gas coins set are simulated as-is, and transactions without a gas payment\n\t * are simulated with a mocked gas coin.\n\t */\n\tdoGasSelection?: boolean;\n}\n\nexport class SuiGrpcClient extends BaseClient implements SuiClientTypes.TransportMethods {\n\tcore: GrpcCoreClient;\n\tget mvr(): SuiClientTypes.MvrMethods {\n\t\treturn this.core.mvr;\n\t}\n\ttransactionExecutionService: TransactionExecutionServiceClient;\n\tledgerService: LedgerServiceClient;\n\tstateService: StateServiceClient;\n\tsubscriptionService: SubscriptionServiceClient;\n\tmovePackageService: MovePackageServiceClient;\n\tsignatureVerificationService: SignatureVerificationServiceClient;\n\tnameService: NameServiceClient;\n\tforkingService: ForkingServiceClient;\n\n\tget [SUI_CLIENT_BRAND]() {\n\t\treturn true;\n\t}\n\n\tconstructor(options: SuiGrpcClientOptions) {\n\t\tsuper({ network: options.network });\n\t\tconst transport =\n\t\t\toptions.transport ??\n\t\t\tnew GrpcWebFetchTransport({ baseUrl: options.baseUrl, fetchInit: options.fetchInit });\n\t\tthis.transactionExecutionService = new TransactionExecutionServiceClient(transport);\n\t\tthis.ledgerService = new LedgerServiceClient(transport);\n\t\tthis.stateService = new StateServiceClient(transport);\n\t\tthis.subscriptionService = new SubscriptionServiceClient(transport);\n\t\tthis.movePackageService = new MovePackageServiceClient(transport);\n\t\tthis.signatureVerificationService = new SignatureVerificationServiceClient(transport);\n\t\tthis.nameService = new NameServiceClient(transport);\n\t\tthis.forkingService = new ForkingServiceClient(transport);\n\n\t\tthis.core = new GrpcCoreClient({\n\t\t\tclient: this,\n\t\t\tbase: this,\n\t\t\tnetwork: options.network,\n\t\t\tmvr: options.mvr,\n\t\t});\n\t}\n\n\tgetObjects<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.GetObjectsOptions<Include>,\n\t): Promise<SuiClientTypes.GetObjectsResponse<Include>> {\n\t\treturn this.core.getObjects(input);\n\t}\n\n\tgetObject<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.GetObjectOptions<Include>,\n\t): Promise<SuiClientTypes.GetObjectResponse<Include>> {\n\t\treturn this.core.getObject(input);\n\t}\n\n\tlistCoins(input: SuiClientTypes.ListCoinsOptions): Promise<SuiClientTypes.ListCoinsResponse> {\n\t\treturn this.core.listCoins(input);\n\t}\n\n\tlistOwnedObjects<Include extends SuiClientTypes.ObjectInclude = {}>(\n\t\tinput: SuiClientTypes.ListOwnedObjectsOptions<Include>,\n\t): Promise<SuiClientTypes.ListOwnedObjectsResponse<Include>> {\n\t\treturn this.core.listOwnedObjects(input);\n\t}\n\n\tgetBalance(input: SuiClientTypes.GetBalanceOptions): Promise<SuiClientTypes.GetBalanceResponse> {\n\t\treturn this.core.getBalance(input);\n\t}\n\n\tlistBalances(\n\t\tinput: SuiClientTypes.ListBalancesOptions,\n\t): Promise<SuiClientTypes.ListBalancesResponse> {\n\t\treturn this.core.listBalances(input);\n\t}\n\n\tgetCoinMetadata(\n\t\tinput: SuiClientTypes.GetCoinMetadataOptions,\n\t): Promise<SuiClientTypes.GetCoinMetadataResponse> {\n\t\treturn this.core.getCoinMetadata(input);\n\t}\n\n\tgetTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcGetTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.getTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\texecuteTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcExecuteTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.executeTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\tsignAndExecuteTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcSignAndExecuteTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.signAndExecuteTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\twaitForTransaction<Include extends GrpcTransactionInclude = {}>(\n\t\tinput: GrpcWaitForTransactionOptions<Include>,\n\t): Promise<GrpcTransactionResult<Include>> {\n\t\treturn this.core.waitForTransaction(input) as Promise<GrpcTransactionResult<Include>>;\n\t}\n\n\tsimulateTransaction<Include extends GrpcSimulateTransactionInclude = {}>(\n\t\tinput: GrpcSimulateTransactionOptions<Include>,\n\t): Promise<GrpcSimulateTransactionResult<Include>> {\n\t\treturn this.core.simulateTransaction(input) as Promise<GrpcSimulateTransactionResult<Include>>;\n\t}\n\n\tgetReferenceGasPrice(): Promise<SuiClientTypes.GetReferenceGasPriceResponse> {\n\t\treturn this.core.getReferenceGasPrice();\n\t}\n\n\tasync listDynamicFields<Include extends DynamicFieldInclude = {}>(\n\t\tinput: SuiClientTypes.ListDynamicFieldsOptions & { include?: Include & DynamicFieldInclude },\n\t): Promise<ListDynamicFieldsWithValueResponse<Include>> {\n\t\tconst includeValue = input.include?.value ?? false;\n\t\tconst paths = ['field_id', 'name', 'value_type', 'kind', 'child_id'];\n\t\tif (includeValue) {\n\t\t\tpaths.push('value');\n\t\t}\n\n\t\tconst response = await this.stateService.listDynamicFields(\n\t\t\t{\n\t\t\t\tparent: input.parentId,\n\t\t\t\tpageToken: input.cursor ? fromBase64(input.cursor) : undefined,\n\t\t\t\tpageSize: input.limit,\n\t\t\t\treadMask: {\n\t\t\t\t\tpaths,\n\t\t\t\t},\n\t\t\t},\n\t\t\t{ abort: input.signal },\n\t\t);\n\n\t\treturn {\n\t\t\tdynamicFields: response.response.dynamicFields.map(\n\t\t\t\t(field): DynamicFieldEntryWithValue<Include> => {\n\t\t\t\t\tconst isDynamicObject = field.kind === DynamicField_DynamicFieldKind.OBJECT;\n\t\t\t\t\tconst fieldType = isDynamicObject\n\t\t\t\t\t\t? `0x2::dynamic_field::Field<0x2::dynamic_object_field::Wrapper<${field.name?.name!}>,0x2::object::ID>`\n\t\t\t\t\t\t: `0x2::dynamic_field::Field<${field.name?.name!},${field.valueType!}>`;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t$kind: isDynamicObject ? 'DynamicObject' : 'DynamicField',\n\t\t\t\t\t\tfieldId: field.fieldId!,\n\t\t\t\t\t\tname: {\n\t\t\t\t\t\t\ttype: field.name?.name!,\n\t\t\t\t\t\t\tbcs: field.name?.value!,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tvalueType: field.valueType!,\n\t\t\t\t\t\ttype: normalizeStructTag(fieldType),\n\t\t\t\t\t\tchildId: field.childId,\n\t\t\t\t\t\tvalue: (includeValue\n\t\t\t\t\t\t\t? { type: field.valueType!, bcs: field.value?.value ?? new Uint8Array() }\n\t\t\t\t\t\t\t: undefined) as DynamicFieldEntryWithValue<Include>['value'],\n\t\t\t\t\t} as DynamicFieldEntryWithValue<Include>;\n\t\t\t\t},\n\t\t\t),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tgetDynamicField(\n\t\tinput: SuiClientTypes.GetDynamicFieldOptions,\n\t): Promise<SuiClientTypes.GetDynamicFieldResponse> {\n\t\treturn this.core.getDynamicField(input);\n\t}\n\n\tlistTransactions<Include extends SuiClientTypes.TransactionInclude = {}>(\n\t\tinput: SuiClientTypes.ListTransactionsOptions<Include>,\n\t): Promise<SuiClientTypes.ListTransactionsResponse<Include>> {\n\t\treturn this.core.listTransactions(input);\n\t}\n\n\tlistEvents(input: SuiClientTypes.ListEventsOptions): Promise<SuiClientTypes.ListEventsResponse> {\n\t\treturn this.core.listEvents(input);\n\t}\n\n\tgetMoveFunction(\n\t\tinput: SuiClientTypes.GetMoveFunctionOptions,\n\t): Promise<SuiClientTypes.GetMoveFunctionResponse> {\n\t\treturn this.core.getMoveFunction(input);\n\t}\n\n\tresolveTransactionPlugin(): TransactionPlugin {\n\t\treturn this.core.resolveTransactionPlugin();\n\t}\n\n\tverifyZkLoginSignature(\n\t\tinput: SuiClientTypes.VerifyZkLoginSignatureOptions,\n\t): Promise<SuiClientTypes.ZkLoginVerifyResponse> {\n\t\treturn this.core.verifyZkLoginSignature(input);\n\t}\n\n\tdefaultNameServiceName(\n\t\tinput: SuiClientTypes.DefaultNameServiceNameOptions,\n\t): Promise<SuiClientTypes.DefaultNameServiceNameResponse> {\n\t\treturn this.core.defaultNameServiceName(input);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,MAAM,mBAAmB,OAAO,IAAI,wBAAwB;AAE5D,SAAgB,gBAAgB,QAA0C;AACzE,QACC,OAAO,WAAW,YAAY,WAAW,QAAS,OAAe,sBAAsB;;AAoGzF,IAAa,gBAAb,cAAmC,WAAsD;CAExF,IAAI,MAAiC;AACpC,SAAO,KAAK,KAAK;;CAWlB,KAAK,oBAAoB;AACxB,SAAO;;CAGR,YAAY,SAA+B;AAC1C,QAAM,EAAE,SAA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AM;;CAGxC,2BAA8C;AAC7C,SAAO,KAAK,KAAK,0BAA0B;;CAG5C,uBACC,OACgD;AAChD,SAAO,KAAK,KAAK,uBAAuB,MAAM;;CAG/C,uBACC,OACyD;AACzD,SAAO,KAAK,KAAK,uBAAuB,MAAM"}
@@ -27,11 +27,15 @@ declare class GrpcCoreClient extends CoreClient {
27
27
  listBalances(options: SuiClientTypes.ListBalancesOptions): Promise<SuiClientTypes.ListBalancesResponse>;
28
28
  getTransaction<Include extends SuiClientTypes.TransactionInclude = {}>(options: SuiClientTypes.GetTransactionOptions<Include>): Promise<SuiClientTypes.TransactionResult<Include>>;
29
29
  executeTransaction<Include extends SuiClientTypes.TransactionInclude = {}>(options: SuiClientTypes.ExecuteTransactionOptions<Include>): Promise<SuiClientTypes.TransactionResult<Include>>;
30
- simulateTransaction<Include extends SuiClientTypes.SimulateTransactionInclude = {}>(options: SuiClientTypes.SimulateTransactionOptions<Include>): Promise<SuiClientTypes.SimulateTransactionResult<Include>>;
30
+ simulateTransaction<Include extends SuiClientTypes.SimulateTransactionInclude = {}>(options: SuiClientTypes.SimulateTransactionOptions<Include> & {
31
+ doGasSelection?: boolean;
32
+ }): Promise<SuiClientTypes.SimulateTransactionResult<Include>>;
31
33
  getReferenceGasPrice(options?: SuiClientTypes.GetReferenceGasPriceOptions): Promise<SuiClientTypes.GetReferenceGasPriceResponse>;
32
34
  getProtocolConfig(options?: SuiClientTypes.GetProtocolConfigOptions): Promise<SuiClientTypes.GetProtocolConfigResponse>;
33
35
  getCurrentSystemState(options?: SuiClientTypes.GetCurrentSystemStateOptions): Promise<SuiClientTypes.GetCurrentSystemStateResponse>;
34
36
  listDynamicFields(options: SuiClientTypes.ListDynamicFieldsOptions): Promise<SuiClientTypes.ListDynamicFieldsResponse>;
37
+ listTransactions<Include extends SuiClientTypes.TransactionInclude = {}>(options: SuiClientTypes.ListTransactionsOptions<Include>): Promise<SuiClientTypes.ListTransactionsResponse<Include>>;
38
+ listEvents(options: SuiClientTypes.ListEventsOptions): Promise<SuiClientTypes.ListEventsResponse>;
35
39
  verifyZkLoginSignature(options: SuiClientTypes.VerifyZkLoginSignatureOptions): Promise<SuiClientTypes.ZkLoginVerifyResponse>;
36
40
  defaultNameServiceName(options: SuiClientTypes.DefaultNameServiceNameOptions): Promise<SuiClientTypes.DefaultNameServiceNameResponse>;
37
41
  getMoveFunction(options: SuiClientTypes.GetMoveFunctionOptions): Promise<SuiClientTypes.GetMoveFunctionResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.mts","names":[],"sources":["../../src/grpc/core.ts"],"mappings":";;;;;;;;;;;;UAqDiB,qBAAA,SAA8B,iBAAA;EAC9C,MAAA,EAAQ,aAAA;AAAA;AAAA,cAGI,cAAA,SAAuB,UAAA;EAAA;;IAErB,MAAA;IAAA,GAAW;EAAA,GAAW,qBAAA;EAK9B,UAAA,iBAA2B,cAAA,CAAe,aAAA,MAAA,CAC/C,OAAA,EAAS,cAAA,CAAe,iBAAA,CAAkB,OAAA,IACxC,OAAA,CAAQ,cAAA,CAAe,kBAAA,CAAmB,OAAA;EAqFvC,gBAAA,iBAAiC,cAAA,CAAe,aAAA,MAAA,CACrD,OAAA,EAAS,cAAA,CAAe,uBAAA,CAAwB,OAAA,IAC9C,OAAA,CAAQ,cAAA,CAAe,wBAAA,CAAyB,OAAA;EA8D7C,SAAA,CACL,OAAA,EAAS,cAAA,CAAe,gBAAA,GACtB,OAAA,CAAQ,cAAA,CAAe,iBAAA;EAiCpB,UAAA,CACL,OAAA,EAAS,cAAA,CAAe,iBAAA,GACtB,OAAA,CAAQ,cAAA,CAAe,kBAAA;EAoBpB,eAAA,CACL,OAAA,EAAS,cAAA,CAAe,sBAAA,GACtB,OAAA,CAAQ,cAAA,CAAe,uBAAA;EAqCpB,YAAA,CACL,OAAA,EAAS,cAAA,CAAe,mBAAA,GACtB,OAAA,CAAQ,cAAA,CAAe,oBAAA;EAqBpB,cAAA,iBAA+B,cAAA,CAAe,kBAAA,MAAA,C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