@aptos-labs/ts-sdk 1.7.0 → 1.8.0

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 (198) hide show
  1. package/dist/browser/index.d.ts +115 -6
  2. package/dist/browser/index.global.js +15 -13
  3. package/dist/browser/index.global.js.map +1 -1
  4. package/dist/common/index.d.ts +115 -6
  5. package/dist/common/index.js +12 -10
  6. package/dist/common/index.js.map +1 -1
  7. package/dist/esm/api/account.mjs +1 -1
  8. package/dist/esm/api/ans.mjs +1 -1
  9. package/dist/esm/api/aptos.mjs +1 -1
  10. package/dist/esm/api/coin.mjs +1 -1
  11. package/dist/esm/api/digitalAsset.mjs +1 -1
  12. package/dist/esm/api/event.d.mts +14 -1
  13. package/dist/esm/api/event.mjs +1 -1
  14. package/dist/esm/api/faucet.mjs +1 -1
  15. package/dist/esm/api/fungibleAsset.mjs +1 -1
  16. package/dist/esm/api/general.mjs +1 -1
  17. package/dist/esm/api/index.mjs +1 -1
  18. package/dist/esm/api/staking.mjs +1 -1
  19. package/dist/esm/api/transaction.mjs +1 -1
  20. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  21. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  22. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  23. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  24. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  25. package/dist/esm/api/utils.mjs +1 -1
  26. package/dist/esm/bcs/index.mjs +1 -1
  27. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  28. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  29. package/dist/esm/{chunk-6Y3VBRMN.mjs → chunk-2DNPRIS5.mjs} +2 -2
  30. package/dist/esm/{chunk-Z6XNTGNK.mjs → chunk-2H5Z5EHH.mjs} +2 -2
  31. package/dist/esm/{chunk-5WXR2O3T.mjs → chunk-2WFMD6C6.mjs} +2 -2
  32. package/dist/esm/{chunk-7JTOGYO7.mjs → chunk-4M46AWXX.mjs} +2 -2
  33. package/dist/esm/{chunk-RNO5ZG3C.mjs → chunk-4OI7MPFH.mjs} +2 -2
  34. package/dist/esm/{chunk-C7ZX475J.mjs → chunk-6SRENFWH.mjs} +2 -2
  35. package/dist/esm/{chunk-MKERJNYN.mjs → chunk-AFPJ2XXN.mjs} +2 -2
  36. package/dist/esm/chunk-CVEJHRAU.mjs +2 -0
  37. package/dist/esm/chunk-CVEJHRAU.mjs.map +1 -0
  38. package/dist/esm/{chunk-6UNBJAV6.mjs → chunk-ENDUXRTK.mjs} +2 -2
  39. package/dist/esm/chunk-ENDUXRTK.mjs.map +1 -0
  40. package/dist/esm/{chunk-YGMT4GQ5.mjs → chunk-ENKMOALS.mjs} +2 -2
  41. package/dist/esm/{chunk-GVHOHNHT.mjs → chunk-EUHPML5E.mjs} +2 -2
  42. package/dist/esm/{chunk-J6RCCKOA.mjs → chunk-FRLPX47J.mjs} +2 -2
  43. package/dist/esm/{chunk-XQIWF5HY.mjs → chunk-GD4ULEBC.mjs} +2 -2
  44. package/dist/esm/{chunk-WC2WSKYZ.mjs → chunk-GD5TZLBF.mjs} +2 -2
  45. package/dist/esm/{chunk-IKCBGNRD.mjs → chunk-JJ6Y35DF.mjs} +2 -2
  46. package/dist/esm/{chunk-3NOQE6U3.mjs → chunk-JQVT2K7G.mjs} +2 -2
  47. package/dist/esm/{chunk-JLL7BCD4.mjs → chunk-KJGQ4ILY.mjs} +2 -2
  48. package/dist/esm/{chunk-D2GNCG27.mjs → chunk-LATJGGVX.mjs} +2 -2
  49. package/dist/esm/{chunk-SZYATFM7.mjs → chunk-LHJSG5NE.mjs} +2 -2
  50. package/dist/esm/{chunk-Q7JKS6WV.mjs → chunk-M3WNE7MU.mjs} +2 -2
  51. package/dist/esm/chunk-MEPX7Z2Z.mjs +2 -0
  52. package/dist/esm/{chunk-3UYBNX3P.mjs.map → chunk-MEPX7Z2Z.mjs.map} +1 -1
  53. package/dist/esm/{chunk-5L6SRCJP.mjs → chunk-PIXE7MN5.mjs} +2 -2
  54. package/dist/esm/{chunk-DRF6AMEZ.mjs → chunk-PMWH5IGI.mjs} +2 -2
  55. package/dist/esm/chunk-Q3HAJVCM.mjs +2 -0
  56. package/dist/esm/chunk-Q3HAJVCM.mjs.map +1 -0
  57. package/dist/esm/{chunk-XOBXX273.mjs → chunk-Q5HK3U64.mjs} +2 -2
  58. package/dist/esm/{chunk-T5IFXLOP.mjs → chunk-QGIJNA37.mjs} +2 -2
  59. package/dist/esm/{chunk-OWZLBIDD.mjs → chunk-QRQAR6XO.mjs} +2 -2
  60. package/dist/esm/{chunk-WQI2RH2S.mjs → chunk-R56OJ4XC.mjs} +2 -2
  61. package/dist/esm/{chunk-INV6U3KS.mjs → chunk-S3FBGS3W.mjs} +2 -2
  62. package/dist/esm/{chunk-BQSE5HHW.mjs → chunk-S4SEFF4K.mjs} +3 -1
  63. package/dist/esm/chunk-S4SEFF4K.mjs.map +1 -0
  64. package/dist/esm/chunk-S64WKSMI.mjs +2 -0
  65. package/dist/esm/chunk-S64WKSMI.mjs.map +1 -0
  66. package/dist/esm/{chunk-RIL4SHXC.mjs → chunk-SPOHAEHR.mjs} +2 -2
  67. package/dist/esm/{chunk-A2QH4A6D.mjs → chunk-SRZTA6QH.mjs} +2 -2
  68. package/dist/esm/{chunk-OVSV4Y32.mjs → chunk-SXIFL5DQ.mjs} +2 -2
  69. package/dist/esm/{chunk-OVSV4Y32.mjs.map → chunk-SXIFL5DQ.mjs.map} +1 -1
  70. package/dist/esm/{chunk-ESX5X52V.mjs → chunk-V2FPYAK7.mjs} +2 -2
  71. package/dist/esm/{chunk-ZFPA45OK.mjs → chunk-VKZCIGKY.mjs} +2 -2
  72. package/dist/esm/{chunk-YE3DZD6T.mjs → chunk-VPQ46CAO.mjs} +2 -2
  73. package/dist/esm/{chunk-WK36MJRI.mjs → chunk-W4UDMBMU.mjs} +2 -2
  74. package/dist/esm/{chunk-TVURQPLA.mjs → chunk-XBVORX5O.mjs} +2 -2
  75. package/dist/esm/{chunk-UJAX75ON.mjs → chunk-XZYPAQCU.mjs} +2 -2
  76. package/dist/esm/{chunk-CX5ULWJQ.mjs → chunk-Y4AKS4CY.mjs} +2 -2
  77. package/dist/esm/{chunk-4SAUEZTN.mjs → chunk-YL2EDK5M.mjs} +2 -2
  78. package/dist/esm/client/core.mjs +1 -1
  79. package/dist/esm/client/get.mjs +1 -1
  80. package/dist/esm/client/index.mjs +1 -1
  81. package/dist/esm/client/post.mjs +1 -1
  82. package/dist/esm/core/account.mjs +1 -1
  83. package/dist/esm/core/accountAddress.mjs +1 -1
  84. package/dist/esm/core/authenticationKey.mjs +1 -1
  85. package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
  86. package/dist/esm/core/crypto/anySignature.mjs +1 -1
  87. package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
  88. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  89. package/dist/esm/core/crypto/index.mjs +1 -1
  90. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  91. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  92. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  93. package/dist/esm/core/index.mjs +1 -1
  94. package/dist/esm/index.d.mts +1 -1
  95. package/dist/esm/index.mjs +1 -1
  96. package/dist/esm/internal/account.d.mts +1 -1
  97. package/dist/esm/internal/account.mjs +1 -1
  98. package/dist/esm/internal/ans.d.mts +1 -1
  99. package/dist/esm/internal/ans.mjs +1 -1
  100. package/dist/esm/internal/coin.d.mts +3 -3
  101. package/dist/esm/internal/coin.mjs +1 -1
  102. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  103. package/dist/esm/internal/digitalAsset.mjs +1 -1
  104. package/dist/esm/internal/event.d.mts +8 -3
  105. package/dist/esm/internal/event.mjs +1 -1
  106. package/dist/esm/internal/faucet.d.mts +3 -3
  107. package/dist/esm/internal/faucet.mjs +1 -1
  108. package/dist/esm/internal/fungibleAsset.d.mts +1 -1
  109. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  110. package/dist/esm/internal/general.mjs +1 -1
  111. package/dist/esm/internal/staking.d.mts +2 -2
  112. package/dist/esm/internal/staking.mjs +1 -1
  113. package/dist/esm/internal/transaction.mjs +1 -1
  114. package/dist/esm/internal/transactionSubmission.d.mts +3 -3
  115. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  116. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  117. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  118. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  119. package/dist/esm/transactions/index.mjs +1 -1
  120. package/dist/esm/transactions/instances/index.mjs +1 -1
  121. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  122. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  123. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  124. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  125. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  126. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  127. package/dist/esm/transactions/management/index.mjs +1 -1
  128. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  129. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  130. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  131. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  132. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  133. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  134. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  135. package/dist/esm/types/generated/operations.d.mts +6 -0
  136. package/dist/esm/types/generated/queries.d.mts +6 -6
  137. package/dist/esm/types/generated/queries.mjs +1 -1
  138. package/dist/esm/types/generated/types.d.mts +594 -56
  139. package/dist/esm/types/generated/types.mjs +1 -1
  140. package/dist/esm/types/generated/types.mjs.map +1 -1
  141. package/dist/esm/types/index.d.mts +35 -6
  142. package/dist/esm/types/index.mjs +1 -1
  143. package/dist/esm/version.d.mts +1 -1
  144. package/dist/esm/version.mjs +1 -1
  145. package/package.json +16 -16
  146. package/src/api/event.ts +27 -1
  147. package/src/internal/event.ts +33 -1
  148. package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +1 -0
  149. package/src/internal/queries/getTokenData.graphql +1 -0
  150. package/src/types/generated/operations.ts +6 -0
  151. package/src/types/generated/queries.ts +2 -0
  152. package/src/types/generated/types.ts +662 -55
  153. package/src/types/index.ts +40 -4
  154. package/src/version.ts +1 -1
  155. package/dist/esm/chunk-3UYBNX3P.mjs +0 -2
  156. package/dist/esm/chunk-6UNBJAV6.mjs.map +0 -1
  157. package/dist/esm/chunk-AA3GRJNL.mjs +0 -2
  158. package/dist/esm/chunk-AA3GRJNL.mjs.map +0 -1
  159. package/dist/esm/chunk-ALFESCPU.mjs +0 -2
  160. package/dist/esm/chunk-ALFESCPU.mjs.map +0 -1
  161. package/dist/esm/chunk-BQSE5HHW.mjs.map +0 -1
  162. package/dist/esm/chunk-ZIZ7PVK2.mjs +0 -2
  163. package/dist/esm/chunk-ZIZ7PVK2.mjs.map +0 -1
  164. /package/dist/esm/{chunk-6Y3VBRMN.mjs.map → chunk-2DNPRIS5.mjs.map} +0 -0
  165. /package/dist/esm/{chunk-Z6XNTGNK.mjs.map → chunk-2H5Z5EHH.mjs.map} +0 -0
  166. /package/dist/esm/{chunk-5WXR2O3T.mjs.map → chunk-2WFMD6C6.mjs.map} +0 -0
  167. /package/dist/esm/{chunk-7JTOGYO7.mjs.map → chunk-4M46AWXX.mjs.map} +0 -0
  168. /package/dist/esm/{chunk-RNO5ZG3C.mjs.map → chunk-4OI7MPFH.mjs.map} +0 -0
  169. /package/dist/esm/{chunk-C7ZX475J.mjs.map → chunk-6SRENFWH.mjs.map} +0 -0
  170. /package/dist/esm/{chunk-MKERJNYN.mjs.map → chunk-AFPJ2XXN.mjs.map} +0 -0
  171. /package/dist/esm/{chunk-YGMT4GQ5.mjs.map → chunk-ENKMOALS.mjs.map} +0 -0
  172. /package/dist/esm/{chunk-GVHOHNHT.mjs.map → chunk-EUHPML5E.mjs.map} +0 -0
  173. /package/dist/esm/{chunk-J6RCCKOA.mjs.map → chunk-FRLPX47J.mjs.map} +0 -0
  174. /package/dist/esm/{chunk-XQIWF5HY.mjs.map → chunk-GD4ULEBC.mjs.map} +0 -0
  175. /package/dist/esm/{chunk-WC2WSKYZ.mjs.map → chunk-GD5TZLBF.mjs.map} +0 -0
  176. /package/dist/esm/{chunk-IKCBGNRD.mjs.map → chunk-JJ6Y35DF.mjs.map} +0 -0
  177. /package/dist/esm/{chunk-3NOQE6U3.mjs.map → chunk-JQVT2K7G.mjs.map} +0 -0
  178. /package/dist/esm/{chunk-JLL7BCD4.mjs.map → chunk-KJGQ4ILY.mjs.map} +0 -0
  179. /package/dist/esm/{chunk-D2GNCG27.mjs.map → chunk-LATJGGVX.mjs.map} +0 -0
  180. /package/dist/esm/{chunk-SZYATFM7.mjs.map → chunk-LHJSG5NE.mjs.map} +0 -0
  181. /package/dist/esm/{chunk-Q7JKS6WV.mjs.map → chunk-M3WNE7MU.mjs.map} +0 -0
  182. /package/dist/esm/{chunk-5L6SRCJP.mjs.map → chunk-PIXE7MN5.mjs.map} +0 -0
  183. /package/dist/esm/{chunk-DRF6AMEZ.mjs.map → chunk-PMWH5IGI.mjs.map} +0 -0
  184. /package/dist/esm/{chunk-XOBXX273.mjs.map → chunk-Q5HK3U64.mjs.map} +0 -0
  185. /package/dist/esm/{chunk-T5IFXLOP.mjs.map → chunk-QGIJNA37.mjs.map} +0 -0
  186. /package/dist/esm/{chunk-OWZLBIDD.mjs.map → chunk-QRQAR6XO.mjs.map} +0 -0
  187. /package/dist/esm/{chunk-WQI2RH2S.mjs.map → chunk-R56OJ4XC.mjs.map} +0 -0
  188. /package/dist/esm/{chunk-INV6U3KS.mjs.map → chunk-S3FBGS3W.mjs.map} +0 -0
  189. /package/dist/esm/{chunk-RIL4SHXC.mjs.map → chunk-SPOHAEHR.mjs.map} +0 -0
  190. /package/dist/esm/{chunk-A2QH4A6D.mjs.map → chunk-SRZTA6QH.mjs.map} +0 -0
  191. /package/dist/esm/{chunk-ESX5X52V.mjs.map → chunk-V2FPYAK7.mjs.map} +0 -0
  192. /package/dist/esm/{chunk-ZFPA45OK.mjs.map → chunk-VKZCIGKY.mjs.map} +0 -0
  193. /package/dist/esm/{chunk-YE3DZD6T.mjs.map → chunk-VPQ46CAO.mjs.map} +0 -0
  194. /package/dist/esm/{chunk-WK36MJRI.mjs.map → chunk-W4UDMBMU.mjs.map} +0 -0
  195. /package/dist/esm/{chunk-TVURQPLA.mjs.map → chunk-XBVORX5O.mjs.map} +0 -0
  196. /package/dist/esm/{chunk-UJAX75ON.mjs.map → chunk-XZYPAQCU.mjs.map} +0 -0
  197. /package/dist/esm/{chunk-CX5ULWJQ.mjs.map → chunk-Y4AKS4CY.mjs.map} +0 -0
  198. /package/dist/esm/{chunk-4SAUEZTN.mjs.map → chunk-YL2EDK5M.mjs.map} +0 -0
@@ -158,6 +158,29 @@ type BigintComparisonExp = {
158
158
  _neq?: InputMaybe<Scalars["bigint"]["input"]>;
159
159
  _nin?: InputMaybe<Array<Scalars["bigint"]["input"]>>;
160
160
  };
161
+ type CurrentAptosNamesAggregateBoolExp = {
162
+ bool_and?: InputMaybe<CurrentAptosNamesAggregateBoolExpBoolAnd>;
163
+ bool_or?: InputMaybe<CurrentAptosNamesAggregateBoolExpBoolOr>;
164
+ count?: InputMaybe<CurrentAptosNamesAggregateBoolExpCount>;
165
+ };
166
+ type CurrentAptosNamesAggregateBoolExpBoolAnd = {
167
+ arguments: CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns;
168
+ distinct?: InputMaybe<Scalars["Boolean"]["input"]>;
169
+ filter?: InputMaybe<CurrentAptosNamesBoolExp>;
170
+ predicate: BooleanComparisonExp;
171
+ };
172
+ type CurrentAptosNamesAggregateBoolExpBoolOr = {
173
+ arguments: CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns;
174
+ distinct?: InputMaybe<Scalars["Boolean"]["input"]>;
175
+ filter?: InputMaybe<CurrentAptosNamesBoolExp>;
176
+ predicate: BooleanComparisonExp;
177
+ };
178
+ type CurrentAptosNamesAggregateBoolExpCount = {
179
+ arguments?: InputMaybe<Array<CurrentAptosNamesSelectColumn>>;
180
+ distinct?: InputMaybe<Scalars["Boolean"]["input"]>;
181
+ filter?: InputMaybe<CurrentAptosNamesBoolExp>;
182
+ predicate: IntComparisonExp;
183
+ };
161
184
  /** Boolean expression to filter rows from the table "current_aptos_names". All fields are combined with a logical 'AND'. */
162
185
  type CurrentAptosNamesBoolExp = {
163
186
  _and?: InputMaybe<Array<CurrentAptosNamesBoolExp>>;
@@ -176,6 +199,45 @@ type CurrentAptosNamesBoolExp = {
176
199
  token_name?: InputMaybe<StringComparisonExp>;
177
200
  token_standard?: InputMaybe<StringComparisonExp>;
178
201
  };
202
+ /** select columns of table "current_aptos_names" */
203
+ declare enum CurrentAptosNamesSelectColumn {
204
+ /** column name */
205
+ Domain = "domain",
206
+ /** column name */
207
+ DomainWithSuffix = "domain_with_suffix",
208
+ /** column name */
209
+ ExpirationTimestamp = "expiration_timestamp",
210
+ /** column name */
211
+ IsActive = "is_active",
212
+ /** column name */
213
+ IsPrimary = "is_primary",
214
+ /** column name */
215
+ LastTransactionVersion = "last_transaction_version",
216
+ /** column name */
217
+ OwnerAddress = "owner_address",
218
+ /** column name */
219
+ RegisteredAddress = "registered_address",
220
+ /** column name */
221
+ Subdomain = "subdomain",
222
+ /** column name */
223
+ TokenName = "token_name",
224
+ /** column name */
225
+ TokenStandard = "token_standard"
226
+ }
227
+ /** select "current_aptos_names_aggregate_bool_exp_bool_and_arguments_columns" columns of table "current_aptos_names" */
228
+ declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns {
229
+ /** column name */
230
+ IsActive = "is_active",
231
+ /** column name */
232
+ IsPrimary = "is_primary"
233
+ }
234
+ /** select "current_aptos_names_aggregate_bool_exp_bool_or_arguments_columns" columns of table "current_aptos_names" */
235
+ declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns {
236
+ /** column name */
237
+ IsActive = "is_active",
238
+ /** column name */
239
+ IsPrimary = "is_primary"
240
+ }
179
241
  /** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */
180
242
  type CurrentFungibleAssetBalancesBoolExp = {
181
243
  _and?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
@@ -224,6 +286,7 @@ type FungibleAssetActivitiesBoolExp = {
224
286
  metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
225
287
  owner_address?: InputMaybe<StringComparisonExp>;
226
288
  owner_aptos_names?: InputMaybe<CurrentAptosNamesBoolExp>;
289
+ owner_aptos_names_aggregate?: InputMaybe<CurrentAptosNamesAggregateBoolExp>;
227
290
  storage_id?: InputMaybe<StringComparisonExp>;
228
291
  storage_refund_amount?: InputMaybe<NumericComparisonExp>;
229
292
  token_standard?: InputMaybe<StringComparisonExp>;
@@ -394,6 +457,7 @@ type GetAccountOwnedTokensQuery = {
394
457
  token_properties: any;
395
458
  token_standard: string;
396
459
  token_uri: string;
460
+ decimals: any;
397
461
  current_collection?: {
398
462
  collection_id: string;
399
463
  collection_name: string;
@@ -441,6 +505,7 @@ type GetAccountOwnedTokensFromCollectionQuery = {
441
505
  token_properties: any;
442
506
  token_standard: string;
443
507
  token_uri: string;
508
+ decimals: any;
444
509
  current_collection?: {
445
510
  collection_id: string;
446
511
  collection_name: string;
@@ -626,6 +691,7 @@ type GetCurrentTokenOwnershipQuery = {
626
691
  token_properties: any;
627
692
  token_standard: string;
628
693
  token_uri: string;
694
+ decimals: any;
629
695
  current_collection?: {
630
696
  collection_id: string;
631
697
  collection_name: string;
@@ -660,6 +726,7 @@ type GetTokenDataQuery = {
660
726
  token_properties: any;
661
727
  token_standard: string;
662
728
  token_uri: string;
729
+ decimals: any;
663
730
  current_collection?: {
664
731
  collection_id: string;
665
732
  collection_name: string;
@@ -986,15 +1053,17 @@ declare enum TransactionResponseType {
986
1053
  User = "user_transaction",
987
1054
  Genesis = "genesis_transaction",
988
1055
  BlockMetadata = "block_metadata_transaction",
989
- StateCheckpoint = "state_checkpoint_transaction"
1056
+ StateCheckpoint = "state_checkpoint_transaction",
1057
+ Validator = "validator_transaction"
990
1058
  }
991
1059
  type TransactionResponse = PendingTransactionResponse | CommittedTransactionResponse;
992
- type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse;
1060
+ type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse | ValidatorTransactionResponse;
993
1061
  declare function isPendingTransactionResponse(response: TransactionResponse): response is PendingTransactionResponse;
994
1062
  declare function isUserTransactionResponse(response: TransactionResponse): response is UserTransactionResponse;
995
1063
  declare function isGenesisTransactionResponse(response: TransactionResponse): response is GenesisTransactionResponse;
996
1064
  declare function isBlockMetadataTransactionResponse(response: TransactionResponse): response is BlockMetadataTransactionResponse;
997
1065
  declare function isStateCheckpointTransactionResponse(response: TransactionResponse): response is StateCheckpointTransactionResponse;
1066
+ declare function isValidatorTransactionResponse(response: TransactionResponse): response is ValidatorTransactionResponse;
998
1067
  type PendingTransactionResponse = {
999
1068
  type: TransactionResponseType.Pending;
1000
1069
  hash: string;
@@ -1012,7 +1081,7 @@ type UserTransactionResponse = {
1012
1081
  hash: string;
1013
1082
  state_change_hash: string;
1014
1083
  event_root_hash: string;
1015
- state_checkpoint_hash?: string;
1084
+ state_checkpoint_hash: string | null;
1016
1085
  gas_used: string;
1017
1086
  /**
1018
1087
  * Whether the transaction was successful
@@ -1073,7 +1142,7 @@ type BlockMetadataTransactionResponse = {
1073
1142
  hash: string;
1074
1143
  state_change_hash: string;
1075
1144
  event_root_hash: string;
1076
- state_checkpoint_hash?: string;
1145
+ state_checkpoint_hash: string | null;
1077
1146
  gas_used: string;
1078
1147
  /**
1079
1148
  * Whether the transaction was successful
@@ -1112,7 +1181,30 @@ type StateCheckpointTransactionResponse = {
1112
1181
  hash: string;
1113
1182
  state_change_hash: string;
1114
1183
  event_root_hash: string;
1115
- state_checkpoint_hash?: string;
1184
+ state_checkpoint_hash: string | null;
1185
+ gas_used: string;
1186
+ /**
1187
+ * Whether the transaction was successful
1188
+ */
1189
+ success: boolean;
1190
+ /**
1191
+ * The VM status of the transaction, can tell useful information in a failure
1192
+ */
1193
+ vm_status: string;
1194
+ accumulator_root_hash: string;
1195
+ /**
1196
+ * Final state of resources changed by the transaction
1197
+ */
1198
+ changes: Array<WriteSetChange>;
1199
+ timestamp: string;
1200
+ };
1201
+ type ValidatorTransactionResponse = {
1202
+ type: TransactionResponseType.Validator;
1203
+ version: string;
1204
+ hash: string;
1205
+ state_change_hash: string;
1206
+ event_root_hash: string;
1207
+ state_checkpoint_hash: string | null;
1116
1208
  gas_used: string;
1117
1209
  /**
1118
1210
  * Whether the transaction was successful
@@ -1127,6 +1219,10 @@ type StateCheckpointTransactionResponse = {
1127
1219
  * Final state of resources changed by the transaction
1128
1220
  */
1129
1221
  changes: Array<WriteSetChange>;
1222
+ /**
1223
+ * The events emitted by the validator transaction
1224
+ */
1225
+ events: Array<Event$1>;
1130
1226
  timestamp: string;
1131
1227
  };
1132
1228
  /**
@@ -5282,6 +5378,19 @@ declare class DigitalAsset {
5282
5378
  declare class Event {
5283
5379
  readonly config: AptosConfig;
5284
5380
  constructor(config: AptosConfig);
5381
+ /**
5382
+ * Get module events by event type
5383
+ *
5384
+ * @param args.eventType - The event type
5385
+ * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5386
+ *
5387
+ * @returns Promise<GetEventsResponse>
5388
+ */
5389
+ getModuleEventsByEventType(args: {
5390
+ eventType: MoveStructId;
5391
+ minimumLedgerVersion?: AnyNumber;
5392
+ options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
5393
+ }): Promise<GetEventsResponse>;
5285
5394
  /**
5286
5395
  * Get events by creation number and an account address
5287
5396
  *
@@ -6885,4 +6994,4 @@ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: Post
6885
6994
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6886
6995
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6887
6996
 
6888
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, FeePayerRawTransaction, FixedBytes, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewRequestData, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, type MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, type SimpleTransaction, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ViewRequest, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
6997
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, FeePayerRawTransaction, FixedBytes, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewRequestData, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, type MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, type SimpleTransaction, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type ViewRequest, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };