@aptos-labs/ts-sdk 2.0.0-zeta.0 → 2.0.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 (249) hide show
  1. package/dist/common/{accountAddress-B3Y4WI-E.d.ts → accountAddress-D0xKX-UM.d.ts} +11 -47
  2. package/dist/common/chunk-ZMDE3DNL.js +4 -0
  3. package/dist/common/chunk-ZMDE3DNL.js.map +1 -0
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -1
  6. package/dist/common/cli/index.js.map +1 -1
  7. package/dist/common/index.d.ts +9 -121
  8. package/dist/common/index.js +31 -52
  9. package/dist/common/index.js.map +1 -1
  10. package/dist/esm/{Ed25519Account-D2MdV8Av.d.mts → Ed25519Account-D9XrCLfE.d.mts} +2 -2
  11. package/dist/esm/account/AbstractKeylessAccount.d.mts +2 -2
  12. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  13. package/dist/esm/account/AbstractedAccount.d.mts +1 -1
  14. package/dist/esm/account/AbstractedAccount.mjs +1 -1
  15. package/dist/esm/account/Account.d.mts +1 -1
  16. package/dist/esm/account/Account.mjs +1 -1
  17. package/dist/esm/account/AccountUtils.d.mts +2 -2
  18. package/dist/esm/account/AccountUtils.mjs +1 -1
  19. package/dist/esm/account/DerivableAbstractedAccount.d.mts +1 -1
  20. package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
  21. package/dist/esm/account/Ed25519Account.d.mts +1 -1
  22. package/dist/esm/account/Ed25519Account.mjs +1 -1
  23. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  24. package/dist/esm/account/FederatedKeylessAccount.d.mts +2 -3
  25. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  26. package/dist/esm/account/KeylessAccount.d.mts +2 -3
  27. package/dist/esm/account/KeylessAccount.mjs +1 -1
  28. package/dist/esm/account/MultiEd25519Account.d.mts +1 -1
  29. package/dist/esm/account/MultiEd25519Account.mjs +1 -1
  30. package/dist/esm/account/MultiKeyAccount.d.mts +2 -2
  31. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  32. package/dist/esm/account/SingleKeyAccount.d.mts +1 -1
  33. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  34. package/dist/esm/account/index.d.mts +2 -2
  35. package/dist/esm/account/index.mjs +1 -1
  36. package/dist/esm/account/utils.mjs +1 -1
  37. package/dist/esm/api/account/abstraction.mjs +1 -1
  38. package/dist/esm/api/account.d.mts +6 -97
  39. package/dist/esm/api/account.mjs +1 -1
  40. package/dist/esm/api/ans.d.mts +1 -1
  41. package/dist/esm/api/ans.mjs +1 -1
  42. package/dist/esm/api/aptos.d.mts +6 -7
  43. package/dist/esm/api/aptos.mjs +1 -1
  44. package/dist/esm/api/aptosConfig.mjs +1 -1
  45. package/dist/esm/api/coin.mjs +1 -1
  46. package/dist/esm/api/digitalAsset.d.mts +1 -1
  47. package/dist/esm/api/digitalAsset.mjs +1 -1
  48. package/dist/esm/api/event.mjs +1 -1
  49. package/dist/esm/api/faucet.mjs +1 -1
  50. package/dist/esm/api/fungibleAsset.d.mts +1 -1
  51. package/dist/esm/api/fungibleAsset.mjs +1 -1
  52. package/dist/esm/api/general.mjs +1 -1
  53. package/dist/esm/api/index.d.mts +6 -7
  54. package/dist/esm/api/index.mjs +1 -1
  55. package/dist/esm/api/keyless.d.mts +2 -2
  56. package/dist/esm/api/keyless.mjs +1 -1
  57. package/dist/esm/api/object.mjs +1 -1
  58. package/dist/esm/api/staking.mjs +1 -1
  59. package/dist/esm/api/table.mjs +1 -1
  60. package/dist/esm/api/transaction.d.mts +1 -2
  61. package/dist/esm/api/transaction.mjs +1 -1
  62. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  63. package/dist/esm/api/transactionSubmission/management.d.mts +1 -1
  64. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  65. package/dist/esm/api/transactionSubmission/sign.d.mts +1 -1
  66. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  67. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  68. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  69. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  70. package/dist/esm/api/utils.mjs +1 -1
  71. package/dist/esm/bcs/deserializer.mjs +1 -1
  72. package/dist/esm/bcs/index.mjs +1 -1
  73. package/dist/esm/bcs/serializable/movePrimitives.d.mts +1 -1
  74. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  75. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  76. package/dist/esm/{chunk-4F5EECVQ.mjs → chunk-2UBI3AZJ.mjs} +2 -2
  77. package/dist/esm/{chunk-CO67Y6YE.mjs → chunk-4JT5AESZ.mjs} +2 -2
  78. package/dist/esm/chunk-5YLNYSBT.mjs +4 -0
  79. package/dist/esm/chunk-5YLNYSBT.mjs.map +1 -0
  80. package/dist/esm/{chunk-XTOIL6MB.mjs → chunk-DLIBG6H7.mjs} +2 -2
  81. package/dist/esm/{chunk-XTOIL6MB.mjs.map → chunk-DLIBG6H7.mjs.map} +1 -1
  82. package/dist/esm/{chunk-RQX6JOEN.mjs → chunk-EF4FA5I6.mjs} +2 -2
  83. package/dist/esm/{chunk-N4VVDQA5.mjs → chunk-G6HENV5D.mjs} +2 -2
  84. package/dist/esm/{chunk-CQJLK4WE.mjs → chunk-G7WH6GQP.mjs} +2 -2
  85. package/dist/esm/{chunk-UQWF24SS.mjs → chunk-K43K3YG7.mjs} +2 -2
  86. package/dist/esm/{chunk-2DYSBAZ7.mjs → chunk-MA4QUN6P.mjs} +2 -2
  87. package/dist/esm/chunk-ODAAZLPK.mjs +2 -0
  88. package/dist/esm/chunk-ODAAZLPK.mjs.map +1 -0
  89. package/dist/esm/chunk-RIRJNQ7B.mjs +2 -0
  90. package/dist/esm/chunk-RJ7F4JDV.mjs +2 -0
  91. package/dist/esm/{chunk-JCFTAG5Z.mjs.map → chunk-RJ7F4JDV.mjs.map} +1 -1
  92. package/dist/esm/{chunk-V7NWNNBI.mjs → chunk-SE2VS7WM.mjs} +2 -2
  93. package/dist/esm/{chunk-3BUKTQDX.mjs → chunk-TLFZOAAB.mjs} +2 -2
  94. package/dist/esm/{chunk-GPNNEHW4.mjs → chunk-USB3LA6B.mjs} +2 -2
  95. package/dist/esm/{chunk-UL777LTI.mjs → chunk-VHNX2NUR.mjs} +26 -47
  96. package/dist/esm/chunk-VHNX2NUR.mjs.map +1 -0
  97. package/dist/esm/{chunk-SVMCNLFC.mjs → chunk-ZNLOQO4Q.mjs} +2 -2
  98. package/dist/esm/cli/index.mjs +1 -1
  99. package/dist/esm/cli/localNode.mjs +1 -1
  100. package/dist/esm/client/core.mjs +1 -1
  101. package/dist/esm/client/get.mjs +1 -1
  102. package/dist/esm/client/index.mjs +1 -1
  103. package/dist/esm/client/post.mjs +1 -1
  104. package/dist/esm/core/account/index.mjs +1 -1
  105. package/dist/esm/core/account/utils/address.mjs +1 -1
  106. package/dist/esm/core/account/utils/index.mjs +1 -1
  107. package/dist/esm/core/accountAddress.mjs +1 -1
  108. package/dist/esm/core/authenticationKey.mjs +1 -1
  109. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  110. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  111. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  112. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  113. package/dist/esm/core/crypto/federatedKeyless.d.mts +1 -1
  114. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  115. package/dist/esm/core/crypto/index.d.mts +1 -2
  116. package/dist/esm/core/crypto/index.mjs +1 -1
  117. package/dist/esm/core/crypto/keyless.d.mts +1 -1
  118. package/dist/esm/core/crypto/keyless.mjs +1 -1
  119. package/dist/esm/core/crypto/multiEd25519.d.mts +0 -10
  120. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  121. package/dist/esm/core/crypto/multiKey.d.mts +0 -2
  122. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  123. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  124. package/dist/esm/core/crypto/proof.mjs +1 -1
  125. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  126. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  127. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  128. package/dist/esm/core/crypto/signature.mjs +1 -1
  129. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  130. package/dist/esm/core/index.d.mts +1 -2
  131. package/dist/esm/core/index.mjs +1 -1
  132. package/dist/esm/errors/index.mjs +1 -1
  133. package/dist/esm/{federatedKeyless-BelAZrlM.d.mts → federatedKeyless-DAYXjY2Y.d.mts} +2 -2
  134. package/dist/esm/index.d.mts +4 -5
  135. package/dist/esm/index.mjs +1 -1
  136. package/dist/esm/internal/abstraction.mjs +1 -1
  137. package/dist/esm/internal/account.d.mts +14 -43
  138. package/dist/esm/internal/account.mjs +1 -1
  139. package/dist/esm/internal/ans.d.mts +2 -2
  140. package/dist/esm/internal/ans.mjs +1 -1
  141. package/dist/esm/internal/coin.mjs +1 -1
  142. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  143. package/dist/esm/internal/digitalAsset.mjs +1 -1
  144. package/dist/esm/internal/event.mjs +1 -1
  145. package/dist/esm/internal/faucet.mjs +1 -1
  146. package/dist/esm/internal/fungibleAsset.d.mts +1 -1
  147. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  148. package/dist/esm/internal/general.mjs +1 -1
  149. package/dist/esm/internal/keyless.d.mts +2 -11
  150. package/dist/esm/internal/keyless.mjs +1 -1
  151. package/dist/esm/internal/object.mjs +1 -1
  152. package/dist/esm/internal/staking.mjs +1 -1
  153. package/dist/esm/internal/table.mjs +1 -1
  154. package/dist/esm/internal/transaction.mjs +1 -1
  155. package/dist/esm/internal/transactionSubmission.d.mts +1 -1
  156. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  157. package/dist/esm/internal/utils/index.mjs +1 -1
  158. package/dist/esm/internal/utils/utils.mjs +1 -1
  159. package/dist/esm/internal/view.mjs +1 -1
  160. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  161. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  162. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  163. package/dist/esm/transactions/index.mjs +1 -1
  164. package/dist/esm/transactions/instances/index.mjs +1 -1
  165. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  166. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  167. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  168. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  169. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  170. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  171. package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
  172. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  173. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -1
  174. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  175. package/dist/esm/transactions/management/index.d.mts +1 -1
  176. package/dist/esm/transactions/management/index.mjs +1 -1
  177. package/dist/esm/transactions/management/transactionWorker.d.mts +1 -1
  178. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  179. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  180. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  181. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  182. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  183. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  184. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  185. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  186. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  187. package/dist/esm/transactions/types.d.mts +1 -1
  188. package/dist/esm/types/generated/operations.d.mts +10 -37
  189. package/dist/esm/types/generated/queries.d.mts +2 -6
  190. package/dist/esm/types/generated/queries.mjs +1 -1
  191. package/dist/esm/types/generated/types.d.mts +1172 -584
  192. package/dist/esm/types/generated/types.mjs +1 -1
  193. package/dist/esm/types/generated/types.mjs.map +1 -1
  194. package/dist/esm/types/index.d.mts +2 -2
  195. package/dist/esm/types/index.mjs +1 -1
  196. package/dist/esm/types/indexer.d.mts +2 -8
  197. package/dist/esm/types/types.d.mts +3 -25
  198. package/dist/esm/types/types.mjs +1 -1
  199. package/dist/esm/utils/const.d.mts +0 -1
  200. package/dist/esm/utils/const.mjs +1 -1
  201. package/dist/esm/utils/helpers.mjs +1 -1
  202. package/dist/esm/utils/index.mjs +1 -1
  203. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  204. package/package.json +2 -2
  205. package/src/account/FederatedKeylessAccount.ts +1 -7
  206. package/src/account/KeylessAccount.ts +2 -17
  207. package/src/api/account.ts +2 -122
  208. package/src/api/transaction.ts +0 -1
  209. package/src/core/crypto/index.ts +0 -1
  210. package/src/core/crypto/multiEd25519.ts +0 -26
  211. package/src/core/crypto/multiKey.ts +0 -6
  212. package/src/internal/account.ts +53 -523
  213. package/src/internal/keyless.ts +0 -10
  214. package/src/types/codegen.yaml +1 -1
  215. package/src/types/generated/operations.ts +8 -39
  216. package/src/types/generated/queries.ts +0 -53
  217. package/src/types/generated/types.ts +1240 -621
  218. package/src/types/indexer.ts +0 -8
  219. package/src/types/types.ts +3 -40
  220. package/src/utils/const.ts +0 -1
  221. package/dist/common/chunk-BNN2XWNR.js +0 -4
  222. package/dist/common/chunk-BNN2XWNR.js.map +0 -1
  223. package/dist/esm/chunk-3FEFJIVT.mjs +0 -2
  224. package/dist/esm/chunk-3FEFJIVT.mjs.map +0 -1
  225. package/dist/esm/chunk-4YLUM62M.mjs +0 -2
  226. package/dist/esm/chunk-5HXLZHDW.mjs +0 -1
  227. package/dist/esm/chunk-5HXLZHDW.mjs.map +0 -1
  228. package/dist/esm/chunk-GRPSFJ3N.mjs +0 -4
  229. package/dist/esm/chunk-GRPSFJ3N.mjs.map +0 -1
  230. package/dist/esm/chunk-JCFTAG5Z.mjs +0 -2
  231. package/dist/esm/chunk-UL777LTI.mjs.map +0 -1
  232. package/dist/esm/core/crypto/types.d.mts +0 -25
  233. package/dist/esm/core/crypto/types.mjs +0 -2
  234. package/dist/esm/core/crypto/types.mjs.map +0 -1
  235. package/src/core/crypto/types.ts +0 -9
  236. package/src/internal/queries/getAccountAddressesForAuthKey.graphql +0 -8
  237. package/src/internal/queries/getAuthKeysForPublicKey.graphql +0 -11
  238. /package/dist/esm/{chunk-4F5EECVQ.mjs.map → chunk-2UBI3AZJ.mjs.map} +0 -0
  239. /package/dist/esm/{chunk-CO67Y6YE.mjs.map → chunk-4JT5AESZ.mjs.map} +0 -0
  240. /package/dist/esm/{chunk-RQX6JOEN.mjs.map → chunk-EF4FA5I6.mjs.map} +0 -0
  241. /package/dist/esm/{chunk-N4VVDQA5.mjs.map → chunk-G6HENV5D.mjs.map} +0 -0
  242. /package/dist/esm/{chunk-CQJLK4WE.mjs.map → chunk-G7WH6GQP.mjs.map} +0 -0
  243. /package/dist/esm/{chunk-UQWF24SS.mjs.map → chunk-K43K3YG7.mjs.map} +0 -0
  244. /package/dist/esm/{chunk-2DYSBAZ7.mjs.map → chunk-MA4QUN6P.mjs.map} +0 -0
  245. /package/dist/esm/{chunk-4YLUM62M.mjs.map → chunk-RIRJNQ7B.mjs.map} +0 -0
  246. /package/dist/esm/{chunk-V7NWNNBI.mjs.map → chunk-SE2VS7WM.mjs.map} +0 -0
  247. /package/dist/esm/{chunk-3BUKTQDX.mjs.map → chunk-TLFZOAAB.mjs.map} +0 -0
  248. /package/dist/esm/{chunk-GPNNEHW4.mjs.map → chunk-USB3LA6B.mjs.map} +0 -0
  249. /package/dist/esm/{chunk-SVMCNLFC.mjs.map → chunk-ZNLOQO4Q.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
- export { GetANSNameResponse, GetAccountAddressesForAuthKeyResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './indexer.mjs';
2
- export { AccountAuthenticatorVariant, AccountData, AccountSignature, AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, AptosRequest, AptosResponse, AptosSettings, AuthenticationKeyScheme, Block, BlockEndInfo, BlockEpilogueTransactionResponse, BlockMetadataTransactionResponse, Client, ClientConfig, ClientHeadersType, ClientRequest, ClientResponse, CommittedTransactionResponse, CursorPaginationArgs, DecodedTableData, DeletedTableData, DeriveScheme, DirectWriteSet, EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, Event, EventGuid, FaucetConfig, FullNodeConfig, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, HexInput, IndexerConfig, LedgerInfo, LedgerVersionArg, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MultisigPayloadResponse, OrderByArg, PaginationArgs, PendingTransactionResponse, PrivateKeyVariants, RoleType, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, SigningScheme, SigningSchemeInput, StateCheckpointTransactionResponse, TableItemRequest, TokenStandardArg, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayloadResponse, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionSingleSenderSignature, TransactionVariants, TypeTagVariants, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ValidatorTransactionResponse, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, ZkpVariant, anyPublicKeyVariantToString, isBlockEpilogueTransactionResponse, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isSingleSenderSignature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse } from './types.mjs';
1
+ export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './indexer.mjs';
2
+ export { AccountAuthenticatorVariant, AccountData, AccountSignature, AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, AptosRequest, AptosResponse, AptosSettings, AuthenticationKeyScheme, Block, BlockEndInfo, BlockEpilogueTransactionResponse, BlockMetadataTransactionResponse, Client, ClientConfig, ClientHeadersType, ClientRequest, ClientResponse, CommittedTransactionResponse, CursorPaginationArgs, DecodedTableData, DeletedTableData, DeriveScheme, DirectWriteSet, EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, Event, EventGuid, FaucetConfig, FullNodeConfig, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, HexInput, IndexerConfig, LedgerInfo, LedgerVersionArg, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MultisigPayloadResponse, OrderByArg, PaginationArgs, PendingTransactionResponse, PrivateKeyVariants, RoleType, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, SigningScheme, SigningSchemeInput, StateCheckpointTransactionResponse, TableItemRequest, TokenStandardArg, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayloadResponse, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTagVariants, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ValidatorTransactionResponse, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, ZkpVariant, isBlockEpilogueTransactionResponse, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse } from './types.mjs';
3
3
  import './generated/operations.mjs';
4
4
  import './generated/types.mjs';
5
5
  import '../utils/apiEndpoints.mjs';
@@ -1,2 +1,2 @@
1
- import"../chunk-FD6FGKYY.mjs";import{A,B,C,D,E,F,G,H,I,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-3FEFJIVT.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KDMSOCZY.mjs";export{g as AccountAuthenticatorVariant,i as AnyPublicKeyVariant,k as AnySignatureVariant,I as DeriveScheme,n as EphemeralCertificateVariant,l as EphemeralPublicKeyVariant,m as EphemeralSignatureVariant,a as MimeType,E as MoveAbility,D as MoveFunctionVisibility,h as PrivateKeyVariants,F as RoleType,c as ScriptTransactionArgumentVariants,G as SigningScheme,H as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,p as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,o as ZkpVariant,j as anyPublicKeyVariantToString,w as isBlockEpilogueTransactionResponse,t as isBlockMetadataTransactionResponse,x as isEd25519Signature,A as isFeePayerSignature,s as isGenesisTransactionResponse,z as isMultiAgentSignature,B as isMultiEd25519Signature,q as isPendingTransactionResponse,y as isSecp256k1Signature,C as isSingleSenderSignature,u as isStateCheckpointTransactionResponse,r as isUserTransactionResponse,v as isValidatorTransactionResponse};
1
+ import"../chunk-FD6FGKYY.mjs";import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-ODAAZLPK.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KDMSOCZY.mjs";export{g as AccountAuthenticatorVariant,i as AnyPublicKeyVariant,j as AnySignatureVariant,G as DeriveScheme,m as EphemeralCertificateVariant,k as EphemeralPublicKeyVariant,l as EphemeralSignatureVariant,a as MimeType,C as MoveAbility,B as MoveFunctionVisibility,h as PrivateKeyVariants,D as RoleType,c as ScriptTransactionArgumentVariants,E as SigningScheme,F as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,o as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,n as ZkpVariant,v as isBlockEpilogueTransactionResponse,s as isBlockMetadataTransactionResponse,w as isEd25519Signature,z as isFeePayerSignature,r as isGenesisTransactionResponse,y as isMultiAgentSignature,A as isMultiEd25519Signature,p as isPendingTransactionResponse,x as isSecp256k1Signature,t as isStateCheckpointTransactionResponse,q as isUserTransactionResponse,u as isValidatorTransactionResponse};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- import { GetObjectDataQuery, GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetAccountAddressesForAuthKeyQuery, GetChainTopUserTransactionsQuery, GetEventsQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetProcessorStatusQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetTokenActivityQuery, GetCurrentTokenOwnershipQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery, GetNamesQuery } from './generated/operations.mjs';
1
+ import { GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetObjectDataQuery, GetNamesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetCurrentTokenOwnershipQuery, GetTokenActivityQuery, GetEventsQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetChainTopUserTransactionsQuery, GetProcessorStatusQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery } from './generated/operations.mjs';
2
2
  import './generated/types.mjs';
3
3
 
4
4
  /**
@@ -50,12 +50,6 @@ type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwne
50
50
  * @category Types
51
51
  */
52
52
  type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
53
- /**
54
- * The account addresses for an authentication key.
55
- * @group Implementation
56
- * @category Types
57
- */
58
- type GetAccountAddressesForAuthKeyResponse = GetAccountAddressesForAuthKeyQuery["auth_key_account_addresses"];
59
53
  /**
60
54
  * The response structure for retrieving user transactions from the top of the blockchain.
61
55
  * @group Implementation
@@ -183,4 +177,4 @@ type GraphqlQuery = {
183
177
  variables?: {};
184
178
  };
185
179
 
186
- export type { GetANSNameResponse, GetAccountAddressesForAuthKeyResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
180
+ export type { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
@@ -117,7 +117,6 @@ declare enum AnyPublicKeyVariant {
117
117
  Keyless = 3,
118
118
  FederatedKeyless = 4
119
119
  }
120
- declare function anyPublicKeyVariantToString(variant: AnyPublicKeyVariant): string;
121
120
  /**
122
121
  * Variants of signature types used for cryptographic operations.
123
122
  */
@@ -833,7 +832,7 @@ type MoveScriptBytecode = {
833
832
  /**
834
833
  * JSON representations of transaction signatures returned from the node API.
835
834
  */
836
- type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature | TransactionSingleSenderSignature;
835
+ type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
837
836
  /**
838
837
  * Determine if the provided signature is an Ed25519 signature.
839
838
  * This function checks for the presence of the "signature" property
@@ -842,7 +841,7 @@ type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Si
842
841
  * @param signature - The transaction signature to be checked.
843
842
  * @returns A boolean indicating whether the signature is an Ed25519 signature.
844
843
  */
845
- declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionEd25519Signature;
844
+ declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
846
845
  /**
847
846
  * Determine if the provided signature is a valid secp256k1 ECDSA signature.
848
847
  *
@@ -871,13 +870,6 @@ declare function isFeePayerSignature(signature: TransactionSignature): signature
871
870
  * @returns A boolean indicating whether the signature is a multi-ed25519 signature.
872
871
  */
873
872
  declare function isMultiEd25519Signature(signature: TransactionSignature): signature is TransactionMultiEd25519Signature;
874
- /**
875
- * Determine if the provided signature is of type "single_sender".
876
- *
877
- * @param signature - The transaction signature to check.
878
- * @returns A boolean indicating whether the signature is a single-sender signature.
879
- */
880
- declare function isSingleSenderSignature(signature: TransactionSignature): signature is TransactionSingleSenderSignature;
881
873
  /**
882
874
  * The signature for a transaction using the Ed25519 algorithm.
883
875
  */
@@ -894,20 +886,6 @@ type TransactionSecp256k1Signature = {
894
886
  public_key: string;
895
887
  signature: "secp256k1_ecdsa_signature";
896
888
  };
897
- /**
898
- * The structure for a multi-signature transaction using Ed25519.
899
- */
900
- type TransactionSingleSenderSignature = {
901
- type: "single_sender";
902
- public_key: {
903
- value: string;
904
- type: string;
905
- };
906
- signature: {
907
- value: string;
908
- type: string;
909
- };
910
- };
911
889
  /**
912
890
  * The structure for a multi-signature transaction using Ed25519.
913
891
  */
@@ -1319,4 +1297,4 @@ type GenerateAccountWithSingleSignerSecp256k1Key = {
1319
1297
  };
1320
1298
  type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1321
1299
 
1322
- export { AccountAuthenticatorVariant, type AccountData, type AccountSignature, type AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, type AptosRequest, type AptosResponse, type AptosSettings, type AuthenticationKeyScheme, type Block, type BlockEndInfo, type BlockEpilogueTransactionResponse, type BlockMetadataTransactionResponse, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CursorPaginationArgs, type DecodedTableData, type DeletedTableData, DeriveScheme, type DirectWriteSet, type EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, type Event, type EventGuid, type FaucetConfig, type FullNodeConfig, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type HexInput, type IndexerConfig, type LedgerInfo, type LedgerVersionArg, MimeType, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, type MoveOptionType, type MoveResource, type MoveScriptBytecode, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, type MultisigPayloadResponse, type OrderByArg, type PaginationArgs, type PendingTransactionResponse, PrivateKeyVariants, RoleType, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, SigningScheme, SigningSchemeInput, type StateCheckpointTransactionResponse, type TableItemRequest, type TokenStandardArg, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, type TransactionPayloadResponse, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, type TransactionSingleSenderSignature, TransactionVariants, TypeTagVariants, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, ZkpVariant, anyPublicKeyVariantToString, isBlockEpilogueTransactionResponse, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isSingleSenderSignature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse };
1300
+ export { AccountAuthenticatorVariant, type AccountData, type AccountSignature, type AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, type AptosRequest, type AptosResponse, type AptosSettings, type AuthenticationKeyScheme, type Block, type BlockEndInfo, type BlockEpilogueTransactionResponse, type BlockMetadataTransactionResponse, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CursorPaginationArgs, type DecodedTableData, type DeletedTableData, DeriveScheme, type DirectWriteSet, type EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, type Event, type EventGuid, type FaucetConfig, type FullNodeConfig, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type HexInput, type IndexerConfig, type LedgerInfo, type LedgerVersionArg, MimeType, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, type MoveOptionType, type MoveResource, type MoveScriptBytecode, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, type MultisigPayloadResponse, type OrderByArg, type PaginationArgs, type PendingTransactionResponse, PrivateKeyVariants, RoleType, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, SigningScheme, SigningSchemeInput, type StateCheckpointTransactionResponse, type TableItemRequest, type TokenStandardArg, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, type TransactionPayloadResponse, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TypeTagVariants, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, ZkpVariant, isBlockEpilogueTransactionResponse, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse };
@@ -1,2 +1,2 @@
1
- import{A,B,C,D,E,F,G,H,I,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-3FEFJIVT.mjs";import"../chunk-KDMSOCZY.mjs";export{g as AccountAuthenticatorVariant,i as AnyPublicKeyVariant,k as AnySignatureVariant,I as DeriveScheme,n as EphemeralCertificateVariant,l as EphemeralPublicKeyVariant,m as EphemeralSignatureVariant,a as MimeType,E as MoveAbility,D as MoveFunctionVisibility,h as PrivateKeyVariants,F as RoleType,c as ScriptTransactionArgumentVariants,G as SigningScheme,H as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,p as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,o as ZkpVariant,j as anyPublicKeyVariantToString,w as isBlockEpilogueTransactionResponse,t as isBlockMetadataTransactionResponse,x as isEd25519Signature,A as isFeePayerSignature,s as isGenesisTransactionResponse,z as isMultiAgentSignature,B as isMultiEd25519Signature,q as isPendingTransactionResponse,y as isSecp256k1Signature,C as isSingleSenderSignature,u as isStateCheckpointTransactionResponse,r as isUserTransactionResponse,v as isValidatorTransactionResponse};
1
+ import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-ODAAZLPK.mjs";import"../chunk-KDMSOCZY.mjs";export{g as AccountAuthenticatorVariant,i as AnyPublicKeyVariant,j as AnySignatureVariant,G as DeriveScheme,m as EphemeralCertificateVariant,k as EphemeralPublicKeyVariant,l as EphemeralSignatureVariant,a as MimeType,C as MoveAbility,B as MoveFunctionVisibility,h as PrivateKeyVariants,D as RoleType,c as ScriptTransactionArgumentVariants,E as SigningScheme,F as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,o as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,n as ZkpVariant,v as isBlockEpilogueTransactionResponse,s as isBlockMetadataTransactionResponse,w as isEd25519Signature,z as isFeePayerSignature,r as isGenesisTransactionResponse,y as isMultiAgentSignature,A as isMultiEd25519Signature,p as isPendingTransactionResponse,x as isSecp256k1Signature,t as isStateCheckpointTransactionResponse,q as isUserTransactionResponse,u as isValidatorTransactionResponse};
2
2
  //# sourceMappingURL=types.mjs.map
@@ -69,7 +69,6 @@ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
69
69
  * @category Utils
70
70
  */
71
71
  declare enum ProcessorType {
72
- ACCOUNT_RESTORATION_PROCESSOR = "account_restoration_processor",
73
72
  ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
74
73
  DEFAULT = "default_processor",
75
74
  EVENTS_PROCESSOR = "events_processor",
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j}from"../chunk-JCFTAG5Z.mjs";import"../chunk-KDMSOCZY.mjs";export{e as APTOS_COIN,f as APTOS_FA,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,j as FIREBASE_AUTH_ISS_PATTERN,i as ProcessorType,g as RAW_TRANSACTION_SALT,h as RAW_TRANSACTION_WITH_DATA_SALT};
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../chunk-RJ7F4JDV.mjs";import"../chunk-KDMSOCZY.mjs";export{e as APTOS_COIN,f as APTOS_FA,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,j as FIREBASE_AUTH_ISS_PATTERN,i as ProcessorType,g as RAW_TRANSACTION_SALT,h as RAW_TRANSACTION_WITH_DATA_SALT};
2
2
  //# sourceMappingURL=const.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-3FEFJIVT.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{e as base64UrlDecode,f as base64UrlToBytes,g as convertAmountFromHumanReadableToOnChain,h as convertAmountFromOnChainToHumanReadable,d as floorToWholeHour,b as getErrorMessage,k as getFunctionParts,j as isEncodedStruct,l as isValidFunctionInfo,c as nowInSeconds,n as pairedFaMetadataAddress,i as parseEncodedStruct,a as sleep,m as truncateAddress};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-ODAAZLPK.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{e as base64UrlDecode,f as base64UrlToBytes,g as convertAmountFromHumanReadableToOnChain,h as convertAmountFromOnChainToHumanReadable,d as floorToWholeHour,b as getErrorMessage,k as getFunctionParts,j as isEncodedStruct,l as isValidFunctionInfo,c as nowInSeconds,n as pairedFaMetadataAddress,i as parseEncodedStruct,a as sleep,m as truncateAddress};
2
2
  //# sourceMappingURL=helpers.mjs.map
@@ -1,2 +1,2 @@
1
- import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-4YLUM62M.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-N4VVDQA5.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-XTOIL6MB.mjs";import{a as t,b as u,c as v,d as w,e as x,f as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-3FEFJIVT.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-4RXKALLC.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o,h as p,i as q,j as r}from"../chunk-JCFTAG5Z.mjs";import"../chunk-KDMSOCZY.mjs";export{m as APTOS_COIN,n as APTOS_FA,i as AptosApiType,j as DEFAULT_MAX_GAS_AMOUNT,k as DEFAULT_TXN_EXP_SEC_FROM_NOW,l as DEFAULT_TXN_TIMEOUT_SEC,r as FIREBASE_AUTH_ISS_PATTERN,f as Network,g as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,h as NetworkToNetworkName,b as NetworkToNodeAPI,d as NetworkToPepperAPI,e as NetworkToProverAPI,q as ProcessorType,o as RAW_TRANSACTION_SALT,p as RAW_TRANSACTION_WITH_DATA_SALT,x as base64UrlDecode,y as base64UrlToBytes,z as convertAmountFromHumanReadableToOnChain,A as convertAmountFromOnChainToHumanReadable,w as floorToWholeHour,u as getErrorMessage,D as getFunctionParts,C as isEncodedStruct,E as isValidFunctionInfo,s as normalizeBundle,v as nowInSeconds,G as pairedFaMetadataAddress,B as parseEncodedStruct,t as sleep,F as truncateAddress};
1
+ import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-RIRJNQ7B.mjs";import{a as t,b as u,c as v,d as w,e as x,f as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-G6HENV5D.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-ODAAZLPK.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-DLIBG6H7.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-4RXKALLC.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o,h as p,i as q,j as r}from"../chunk-RJ7F4JDV.mjs";import"../chunk-KDMSOCZY.mjs";export{m as APTOS_COIN,n as APTOS_FA,i as AptosApiType,j as DEFAULT_MAX_GAS_AMOUNT,k as DEFAULT_TXN_EXP_SEC_FROM_NOW,l as DEFAULT_TXN_TIMEOUT_SEC,r as FIREBASE_AUTH_ISS_PATTERN,f as Network,g as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,h as NetworkToNetworkName,b as NetworkToNodeAPI,d as NetworkToPepperAPI,e as NetworkToProverAPI,q as ProcessorType,o as RAW_TRANSACTION_SALT,p as RAW_TRANSACTION_WITH_DATA_SALT,x as base64UrlDecode,y as base64UrlToBytes,z as convertAmountFromHumanReadableToOnChain,A as convertAmountFromOnChainToHumanReadable,w as floorToWholeHour,u as getErrorMessage,D as getFunctionParts,C as isEncodedStruct,E as isValidFunctionInfo,s as normalizeBundle,v as nowInSeconds,G as pairedFaMetadataAddress,B as parseEncodedStruct,t as sleep,F as truncateAddress};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-4YLUM62M.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-N4VVDQA5.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-XTOIL6MB.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-3FEFJIVT.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as normalizeBundle};
1
+ import{a}from"../chunk-RIRJNQ7B.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-G6HENV5D.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-ODAAZLPK.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-DLIBG6H7.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as normalizeBundle};
2
2
  //# sourceMappingURL=normalizeBundle.mjs.map
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "_fmt": "prettier 'src/**/*.ts' 'tests/**/*.ts' 'examples/**/*.js' 'examples/**/*.ts' 'eslint.config.cjs'",
40
40
  "fmt": "pnpm _fmt --write",
41
41
  "lint": "eslint '**/*.{cts,mts,ts}'",
42
- "test": "pnpm jest",
42
+ "test": "pnpm jest ./tests/**/*.test.ts --passWithNoTests",
43
43
  "unit-test": "pnpm jest tests/unit",
44
44
  "e2e-test": "pnpm jest tests/e2e",
45
45
  "indexer-codegen": "graphql-codegen --config ./src/types/codegen.yaml && pnpm fmt",
@@ -97,5 +97,5 @@
97
97
  "typedoc-plugin-missing-exports": "^4.0.0",
98
98
  "typescript": "^5.8.2"
99
99
  },
100
- "version": "2.0.0-zeta.0"
100
+ "version": "2.0.0"
101
101
  }
@@ -140,7 +140,6 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
140
140
  uidKey?: string;
141
141
  proofFetchCallback?: ProofFetchCallback;
142
142
  verificationKey?: Groth16VerificationKey;
143
- verificationKeyHash?: Uint8Array;
144
143
  }): FederatedKeylessAccount {
145
144
  const {
146
145
  address,
@@ -152,13 +151,8 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
152
151
  uidKey = "sub",
153
152
  proofFetchCallback,
154
153
  verificationKey,
155
- verificationKeyHash,
156
154
  } = args;
157
155
 
158
- if (verificationKeyHash && verificationKey) {
159
- throw new Error("Cannot provide both verificationKey and verificationKeyHash");
160
- }
161
-
162
156
  const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
163
157
  return new FederatedKeylessAccount({
164
158
  address,
@@ -172,7 +166,7 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
172
166
  jwkAddress: AccountAddress.from(jwkAddress),
173
167
  jwt,
174
168
  proofFetchCallback,
175
- verificationKeyHash: verificationKeyHash ?? (verificationKey ? verificationKey.hash() : undefined),
169
+ verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,
176
170
  });
177
171
  }
178
172
  }
@@ -143,23 +143,8 @@ export class KeylessAccount extends AbstractKeylessAccount {
143
143
  uidKey?: string;
144
144
  proofFetchCallback?: ProofFetchCallback;
145
145
  verificationKey?: Groth16VerificationKey;
146
- verificationKeyHash?: Uint8Array;
147
146
  }): KeylessAccount {
148
- const {
149
- address,
150
- proof,
151
- jwt,
152
- ephemeralKeyPair,
153
- pepper,
154
- uidKey = "sub",
155
- proofFetchCallback,
156
- verificationKey,
157
- verificationKeyHash,
158
- } = args;
159
-
160
- if (verificationKeyHash && verificationKey) {
161
- throw new Error("Cannot provide both verificationKey and verificationKeyHash");
162
- }
147
+ const { address, proof, jwt, ephemeralKeyPair, pepper, uidKey = "sub", proofFetchCallback, verificationKey } = args;
163
148
 
164
149
  const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
165
150
  return new KeylessAccount({
@@ -173,7 +158,7 @@ export class KeylessAccount extends AbstractKeylessAccount {
173
158
  pepper,
174
159
  jwt,
175
160
  proofFetchCallback,
176
- verificationKeyHash: verificationKeyHash ?? (verificationKey ? verificationKey.hash() : undefined),
161
+ verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,
177
162
  });
178
163
  }
179
164
  }
@@ -2,13 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { Account as AccountModule } from "../account";
5
- import {
6
- AccountAddress,
7
- AccountAddressInput,
8
- createObjectAddress,
9
- BaseAccountPublicKey,
10
- PrivateKeyInput,
11
- } from "../core";
5
+ import { AccountAddress, PrivateKey, AccountAddressInput, createObjectAddress } from "../core";
12
6
  import {
13
7
  AccountData,
14
8
  AnyNumber,
@@ -37,7 +31,6 @@ import {
37
31
  getAccountOwnedObjects,
38
32
  getAccountOwnedTokens,
39
33
  getAccountOwnedTokensFromCollectionAddress,
40
- getAccountsForPublicKey,
41
34
  getAccountTokensCount,
42
35
  getAccountTransactionsCount,
43
36
  getInfo,
@@ -49,7 +42,6 @@ import {
49
42
  getResourcesPage,
50
43
  getTransactions,
51
44
  lookupOriginalAccountAddress,
52
- deriveOwnedAccountsFromSigner,
53
45
  } from "../internal/account";
54
46
  import { APTOS_COIN, APTOS_FA, ProcessorType } from "../utils/const";
55
47
  import { AptosConfig } from "./aptosConfig";
@@ -985,119 +977,7 @@ export class Account {
985
977
  * @group Account
986
978
  * @deprecated Note that more inspection is needed by the user to determine which account exists on-chain
987
979
  */
988
- async deriveAccountFromPrivateKey(args: {
989
- privateKey: PrivateKeyInput;
990
- minimumLedgerVersion?: AnyNumber;
991
- options?: {
992
- throwIfNoAccountFound?: boolean;
993
- };
994
- }): Promise<AccountModule> {
995
- await waitForIndexerOnVersion({
996
- config: this.config,
997
- minimumLedgerVersion: args.minimumLedgerVersion,
998
- processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
999
- });
980
+ async deriveAccountFromPrivateKey(args: { privateKey: PrivateKey }): Promise<AccountModule> {
1000
981
  return deriveAccountFromPrivateKey({ aptosConfig: this.config, ...args });
1001
982
  }
1002
-
1003
- /**
1004
- * Derives all accounts owned by a signer. This function takes a signer (either an Account or PrivateKey)
1005
- * and returns all accounts that can be derived from it, ordered by the most recently used account first.
1006
- *
1007
- * Note, this function will not return accounts that require more than one signer to be used.
1008
- *
1009
- * @param args - The arguments for deriving owned accounts
1010
- * @param args.signer - The signer to derive accounts from (Account or PrivateKey)
1011
- * @param args.minimumLedgerVersion - The minimum ledger version to wait for before querying
1012
- * @param args.options.includeUnverified - Whether to include unverified accounts in the results. Unverified accounts
1013
- * are accounts that can be authenticated with the signer, but there is no history of the signer using the account.
1014
- * Default is false.
1015
- * @param args.options.noMultiKey - If true, do not include multi-key accounts in the results. Default is false.
1016
- * @returns Promise resolving to an array of derived Account objects
1017
- *
1018
- * @example
1019
- * ```typescript
1020
- * import { Aptos, AptosConfig, Network, Ed25519Account } from "@aptos-labs/ts-sdk";
1021
- *
1022
- * const config = new AptosConfig({ network: Network.TESTNET });
1023
- * const aptos = new Aptos(config);
1024
- *
1025
- * async function getOwnedAccounts() {
1026
- * const signer = Ed25519Account.generate();
1027
- * const accounts = await aptos.deriveOwnedAccountsFromSigner({
1028
- * signer
1029
- * });
1030
- * const account = accounts[0];
1031
- * console.log(account);
1032
- * }
1033
- * ```
1034
- * @group Account
1035
- */
1036
- async deriveOwnedAccountsFromSigner(args: {
1037
- signer: AccountModule | PrivateKeyInput;
1038
- minimumLedgerVersion?: AnyNumber;
1039
- options?: { includeUnverified?: boolean; noMultiKey?: boolean };
1040
- }): Promise<AccountModule[]> {
1041
- await waitForIndexerOnVersion({
1042
- config: this.config,
1043
- minimumLedgerVersion: args.minimumLedgerVersion,
1044
- processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
1045
- });
1046
- return deriveOwnedAccountsFromSigner({ aptosConfig: this.config, ...args });
1047
- }
1048
-
1049
- /**
1050
- * Gets all account info (address, account public key, last transaction version) that have are associated with a public key.
1051
- *
1052
- * For a given public key, it will query all multikeys that the public key is part of. Then for the provided public key and
1053
- * any multikeys found in the previous step, it will query for any accounts that have an auth key that matches any of the
1054
- * public keys.
1055
- *
1056
- * @param args - The arguments for getting accounts for a public key
1057
- * @param args.publicKey - The public key to look up accounts for
1058
- * @param args.minimumLedgerVersion - The minimum ledger version to wait for before querying
1059
- * @param args.options.includeUnverified - Whether to include unverified accounts in the results. Unverified accounts
1060
- * are accounts that can be authenticated with the signer, but there is no history of the signer using the account. Default
1061
- * is false.
1062
- * @param args.options.noMultiKey - Whether to exclude multi-key accounts in the results. Default is false.
1063
- * @returns Promise resolving to an array of account addresses and their associated public keys
1064
- *
1065
- * @example
1066
- * ```typescript
1067
- * import { Aptos, AptosConfig, Network, Ed25519PrivateKey } from "@aptos-labs/ts-sdk";
1068
- *
1069
- * const config = new AptosConfig({ network: Network.TESTNET });
1070
- * const aptos = new Aptos(config);
1071
- *
1072
- * async function getAccounts() {
1073
- * const privateKey = Ed25519PrivateKey.generate();
1074
- * const publicKey = privateKey.publicKey();
1075
- * const accounts = await aptos.getAccountsForPublicKey({
1076
- * publicKey
1077
- * });
1078
- * console.log(accounts);
1079
- * }
1080
- * ```
1081
- * @group Account
1082
- */
1083
- async getAccountsForPublicKey(args: {
1084
- publicKey: BaseAccountPublicKey;
1085
- minimumLedgerVersion?: AnyNumber;
1086
- options?: { includeUnverified?: boolean; noMultiKey?: boolean };
1087
- }): Promise<
1088
- {
1089
- accountAddress: AccountAddress;
1090
- publicKey: BaseAccountPublicKey;
1091
- }[]
1092
- > {
1093
- await waitForIndexerOnVersion({
1094
- config: this.config,
1095
- minimumLedgerVersion: args.minimumLedgerVersion,
1096
- processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
1097
- });
1098
- return getAccountsForPublicKey({
1099
- aptosConfig: this.config,
1100
- ...args,
1101
- });
1102
- }
1103
983
  }
@@ -522,7 +522,6 @@ export class Transaction {
522
522
  async rotateAuthKey(
523
523
  args: {
524
524
  fromAccount: Account;
525
- options?: InputGenerateTransactionOptions;
526
525
  } & (
527
526
  | { toAccount: Account; dangerouslySkipVerification?: never }
528
527
  | { toNewPrivateKey: Ed25519PrivateKey; dangerouslySkipVerification?: never }
@@ -15,4 +15,3 @@ export * from "./publicKey";
15
15
  export * from "./secp256k1";
16
16
  export * from "./signature";
17
17
  export * from "./singleKey";
18
- export * from "./types";
@@ -92,10 +92,6 @@ export class MultiEd25519PublicKey extends AbstractMultiKey {
92
92
  this.threshold = threshold;
93
93
  }
94
94
 
95
- getSignaturesRequired(): number {
96
- return this.threshold;
97
- }
98
-
99
95
  // region AccountPublicKey
100
96
 
101
97
  /**
@@ -221,28 +217,6 @@ export class MultiEd25519PublicKey extends AbstractMultiKey {
221
217
  return new MultiEd25519PublicKey({ publicKeys: keys, threshold });
222
218
  }
223
219
 
224
- /**
225
- * Deserializes a MultiEd25519Signature from the provided deserializer.
226
- * This function helps in reconstructing a MultiEd25519Signature object from its serialized byte representation.
227
- *
228
- * @param deserializer - The deserializer instance used to read the serialized data.
229
- * @group Implementation
230
- * @category Serialization
231
- */
232
- static deserializeWithoutLength(deserializer: Deserializer): MultiEd25519PublicKey {
233
- const length = deserializer.remaining();
234
- const bytes = deserializer.deserializeFixedBytes(length);
235
- const threshold = bytes[bytes.length - 1];
236
-
237
- const keys: Ed25519PublicKey[] = [];
238
-
239
- for (let i = 0; i < bytes.length - 1; i += Ed25519PublicKey.LENGTH) {
240
- const begin = i;
241
- keys.push(new Ed25519PublicKey(bytes.subarray(begin, begin + Ed25519PublicKey.LENGTH)));
242
- }
243
- return new MultiEd25519PublicKey({ publicKeys: keys, threshold });
244
- }
245
-
246
220
  // endregion
247
221
 
248
222
  /**
@@ -95,8 +95,6 @@ export abstract class AbstractMultiKey extends AccountPublicKey {
95
95
  }
96
96
  throw new Error(`Public key ${publicKey} not found in multi key set ${this.publicKeys}`);
97
97
  }
98
-
99
- abstract getSignaturesRequired(): number;
100
98
  }
101
99
 
102
100
  /**
@@ -164,10 +162,6 @@ export class MultiKey extends AbstractMultiKey {
164
162
  this.signaturesRequired = signaturesRequired;
165
163
  }
166
164
 
167
- getSignaturesRequired(): number {
168
- return this.signaturesRequired;
169
- }
170
-
171
165
  // endregion
172
166
 
173
167
  // region AccountPublicKey