@aptos-labs/ts-sdk 3.1.2 → 4.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.
- package/dist/common/{account-Bb5REyaT.d.ts → account-CmEgDBH6.d.ts} +1 -1
- package/dist/common/chunk-6MMUUJHX.js.map +1 -1
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +6 -203
- package/dist/common/index.js +32 -51
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +0 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +0 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-XIQFX5FV.mjs → chunk-2XQKGWHQ.mjs} +2 -2
- package/dist/esm/{chunk-QQEK2GJC.mjs → chunk-3BMZKCLH.mjs} +2 -2
- package/dist/esm/{chunk-EPMBZCYJ.mjs → chunk-4JT5AESZ.mjs} +2 -2
- package/dist/esm/chunk-55Q7BSZT.mjs +6 -0
- package/dist/esm/chunk-55Q7BSZT.mjs.map +1 -0
- package/dist/esm/{chunk-PQS3II2E.mjs → chunk-6JYQ5P36.mjs} +2 -2
- package/dist/esm/chunk-6SLY7UV2.mjs +2 -0
- package/dist/esm/{chunk-4R4AI5RT.mjs.map → chunk-6SLY7UV2.mjs.map} +1 -1
- package/dist/esm/{chunk-6Y6ZO7TS.mjs → chunk-6WDVDEQZ.mjs} +2 -2
- package/dist/esm/{chunk-YFFDF22R.mjs → chunk-7DQDJ2SA.mjs} +2 -2
- package/dist/esm/{chunk-ZMT2M6YT.mjs → chunk-B563XRSZ.mjs} +2 -2
- package/dist/esm/{chunk-NII5Q32W.mjs → chunk-BPWSOC2Y.mjs} +2 -2
- package/dist/esm/chunk-CW35YAMN.mjs +2 -0
- package/dist/esm/{chunk-NJN3EAOM.mjs → chunk-EBMEXURY.mjs} +2 -2
- package/dist/esm/{chunk-FBCXUC7J.mjs → chunk-EF4FA5I6.mjs} +2 -2
- package/dist/esm/{chunk-6PKBXYG3.mjs → chunk-FGFLPH5K.mjs} +2 -2
- package/dist/esm/{chunk-UCBUUH5M.mjs → chunk-FLZPUYXQ.mjs} +2 -2
- package/dist/esm/{chunk-BUUV6B4P.mjs → chunk-HNBVYE3N.mjs} +2 -2
- package/dist/esm/{chunk-AQQEQB35.mjs → chunk-HZVN4JSO.mjs} +2 -2
- package/dist/esm/{chunk-QGFWOGAV.mjs → chunk-K43K3YG7.mjs} +2 -2
- package/dist/esm/{chunk-FWGLACJS.mjs → chunk-MSMFHPDT.mjs} +2 -2
- package/dist/esm/{chunk-WLUXOUZH.mjs → chunk-MT2RJ7H3.mjs} +2 -2
- package/dist/esm/{chunk-PRUQZNAP.mjs → chunk-N6YTF76Q.mjs} +2 -2
- package/dist/esm/{chunk-E6IUB35J.mjs → chunk-NF73V673.mjs} +2 -2
- package/dist/esm/{chunk-C6JRJNK3.mjs → chunk-ORMOQWWH.mjs} +2 -2
- package/dist/esm/{chunk-DW6WLD2B.mjs → chunk-PLI53ZU6.mjs} +2 -2
- package/dist/esm/{chunk-6MWXV62C.mjs → chunk-Q4W3WJ2U.mjs} +2 -2
- package/dist/esm/{chunk-GYVSI3TS.mjs → chunk-RGKRCZ36.mjs} +2 -2
- package/dist/esm/{chunk-IXYGZ57N.mjs → chunk-TOBQ5UE6.mjs} +2 -2
- package/dist/esm/{chunk-RFQFTIOA.mjs → chunk-UQZTHVWC.mjs} +2 -2
- package/dist/esm/{chunk-GRB6YSIT.mjs → chunk-V6C6NWFU.mjs} +2 -2
- package/dist/esm/{chunk-Z6KQX6VX.mjs → chunk-WCMW2L3P.mjs} +2 -2
- package/dist/esm/{chunk-BYINW7I2.mjs → chunk-WSR5EBJM.mjs} +2 -2
- package/dist/esm/chunk-XJJVJOX5.mjs +2 -0
- package/dist/esm/{chunk-OYH2T6V5.mjs → chunk-XKUIMGKU.mjs} +2 -2
- package/dist/esm/{chunk-THUSLDD6.mjs → chunk-XYXBAU4J.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +19 -8
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/api/aptos.ts +10 -9
- package/src/internal/ans.ts +19 -8
- package/src/version.ts +1 -1
- package/dist/esm/api/event.d.mts +0 -193
- package/dist/esm/api/event.mjs +0 -2
- package/dist/esm/api/event.mjs.map +0 -1
- package/dist/esm/chunk-4R4AI5RT.mjs +0 -2
- package/dist/esm/chunk-HPQMAP7O.mjs +0 -2
- package/dist/esm/chunk-I4NMWLUZ.mjs +0 -6
- package/dist/esm/chunk-I4NMWLUZ.mjs.map +0 -1
- package/dist/esm/chunk-OYUW6ZN2.mjs +0 -2
- package/dist/esm/internal/event.d.mts +0 -82
- package/dist/esm/internal/event.mjs +0 -2
- package/dist/esm/internal/event.mjs.map +0 -1
- package/src/api/event.ts +0 -230
- package/src/internal/event.ts +0 -166
- /package/dist/esm/{chunk-XIQFX5FV.mjs.map → chunk-2XQKGWHQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-QQEK2GJC.mjs.map → chunk-3BMZKCLH.mjs.map} +0 -0
- /package/dist/esm/{chunk-EPMBZCYJ.mjs.map → chunk-4JT5AESZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-PQS3II2E.mjs.map → chunk-6JYQ5P36.mjs.map} +0 -0
- /package/dist/esm/{chunk-6Y6ZO7TS.mjs.map → chunk-6WDVDEQZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-YFFDF22R.mjs.map → chunk-7DQDJ2SA.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZMT2M6YT.mjs.map → chunk-B563XRSZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-NII5Q32W.mjs.map → chunk-BPWSOC2Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-HPQMAP7O.mjs.map → chunk-CW35YAMN.mjs.map} +0 -0
- /package/dist/esm/{chunk-NJN3EAOM.mjs.map → chunk-EBMEXURY.mjs.map} +0 -0
- /package/dist/esm/{chunk-FBCXUC7J.mjs.map → chunk-EF4FA5I6.mjs.map} +0 -0
- /package/dist/esm/{chunk-6PKBXYG3.mjs.map → chunk-FGFLPH5K.mjs.map} +0 -0
- /package/dist/esm/{chunk-UCBUUH5M.mjs.map → chunk-FLZPUYXQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-BUUV6B4P.mjs.map → chunk-HNBVYE3N.mjs.map} +0 -0
- /package/dist/esm/{chunk-AQQEQB35.mjs.map → chunk-HZVN4JSO.mjs.map} +0 -0
- /package/dist/esm/{chunk-QGFWOGAV.mjs.map → chunk-K43K3YG7.mjs.map} +0 -0
- /package/dist/esm/{chunk-FWGLACJS.mjs.map → chunk-MSMFHPDT.mjs.map} +0 -0
- /package/dist/esm/{chunk-WLUXOUZH.mjs.map → chunk-MT2RJ7H3.mjs.map} +0 -0
- /package/dist/esm/{chunk-PRUQZNAP.mjs.map → chunk-N6YTF76Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-E6IUB35J.mjs.map → chunk-NF73V673.mjs.map} +0 -0
- /package/dist/esm/{chunk-C6JRJNK3.mjs.map → chunk-ORMOQWWH.mjs.map} +0 -0
- /package/dist/esm/{chunk-DW6WLD2B.mjs.map → chunk-PLI53ZU6.mjs.map} +0 -0
- /package/dist/esm/{chunk-6MWXV62C.mjs.map → chunk-Q4W3WJ2U.mjs.map} +0 -0
- /package/dist/esm/{chunk-GYVSI3TS.mjs.map → chunk-RGKRCZ36.mjs.map} +0 -0
- /package/dist/esm/{chunk-IXYGZ57N.mjs.map → chunk-TOBQ5UE6.mjs.map} +0 -0
- /package/dist/esm/{chunk-RFQFTIOA.mjs.map → chunk-UQZTHVWC.mjs.map} +0 -0
- /package/dist/esm/{chunk-GRB6YSIT.mjs.map → chunk-V6C6NWFU.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z6KQX6VX.mjs.map → chunk-WCMW2L3P.mjs.map} +0 -0
- /package/dist/esm/{chunk-BYINW7I2.mjs.map → chunk-WSR5EBJM.mjs.map} +0 -0
- /package/dist/esm/{chunk-OYUW6ZN2.mjs.map → chunk-XJJVJOX5.mjs.map} +0 -0
- /package/dist/esm/{chunk-OYH2T6V5.mjs.map → chunk-XKUIMGKU.mjs.map} +0 -0
- /package/dist/esm/{chunk-THUSLDD6.mjs.map → chunk-XYXBAU4J.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b3 as InputScriptData, ad as TransactionPayloadScript, b0 as InputEntryFunctionDataWithRemoteABI, ae as TransactionPayloadEntryFunction, b2 as InputMultiSigDataWithRemoteABI, af as TransactionPayloadMultiSig, a_ as InputEntryFunctionDataWithABI, a$ as InputMultiSigDataWithABI, b7 as InputViewFunctionDataWithRemoteABI, ag as EntryFunction, b8 as InputViewFunctionDataWithABI, A as AptosConfig, m as AccountAddressInput, aV as AnyTransactionPayloadInstance, aS as InputGenerateTransactionOptions, a4 as RawTransaction, ak as TransactionInnerPayload, bc as InputGenerateSingleSignerRawTransactionArgs, as as SimpleTransaction, bd as InputGenerateMultiAgentRawTransactionArgs, at as MultiAgentTransaction, bg as InputSimulateTransactionData, C as PublicKey,
|
|
1
|
+
import { b3 as InputScriptData, ad as TransactionPayloadScript, b0 as InputEntryFunctionDataWithRemoteABI, ae as TransactionPayloadEntryFunction, b2 as InputMultiSigDataWithRemoteABI, af as TransactionPayloadMultiSig, a_ as InputEntryFunctionDataWithABI, a$ as InputMultiSigDataWithABI, b7 as InputViewFunctionDataWithRemoteABI, ag as EntryFunction, b8 as InputViewFunctionDataWithABI, A as AptosConfig, m as AccountAddressInput, aV as AnyTransactionPayloadInstance, aS as InputGenerateTransactionOptions, a4 as RawTransaction, ak as TransactionInnerPayload, bc as InputGenerateSingleSignerRawTransactionArgs, as as SimpleTransaction, bd as InputGenerateMultiAgentRawTransactionArgs, at as MultiAgentTransaction, bg as InputSimulateTransactionData, C as PublicKey, X as AccountAuthenticatorEd25519, Z as AccountAuthenticatorSingleKey, _ as AccountAuthenticatorMultiKey, $ as AccountAuthenticatorNoAccountAuthenticator, bm as InputSubmitTransactionData } from '../../account--Q9z_xMN.mjs';
|
|
2
2
|
import '../../types/indexer.mjs';
|
|
3
3
|
import '../../types/generated/operations.mjs';
|
|
4
4
|
import '../../types/generated/types.mjs';
|
|
@@ -149,7 +149,7 @@ declare function generateSignedTransactionForSimulation(args: InputSimulateTrans
|
|
|
149
149
|
* @group Implementation
|
|
150
150
|
* @category Transactions
|
|
151
151
|
*/
|
|
152
|
-
declare function getAuthenticatorForSimulation(publicKey?: PublicKey):
|
|
152
|
+
declare function getAuthenticatorForSimulation(publicKey?: PublicKey): AccountAuthenticatorEd25519 | AccountAuthenticatorSingleKey | AccountAuthenticatorMultiKey | AccountAuthenticatorNoAccountAuthenticator;
|
|
153
153
|
/**
|
|
154
154
|
* Generate a signed transaction ready for submission to the blockchain.
|
|
155
155
|
* This function prepares the transaction by authenticating the sender and any additional signers based on the provided arguments.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Jb as a,Kb as b,Lb as c,Mb as d,Nb as e,Ob as f,Pb as g,Qb as h,Rb as i,Sb as j,Tb as k,Ub as l}from"../../chunk-
|
|
1
|
+
import{Jb as a,Kb as b,Lb as c,Mb as d,Nb as e,Ob as f,Pb as g,Qb as h,Rb as i,Sb as j,Tb as k,Ub as l}from"../../chunk-55Q7BSZT.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-2XQKGWHQ.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-UQZTHVWC.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-4JT5AESZ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-EF4FA5I6.mjs";import"../../chunk-MSMFHPDT.mjs";import"../../chunk-K43K3YG7.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-QREVMGQZ.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-KJH4KKG6.mjs";import"../../chunk-FGFLPH5K.mjs";import"../../chunk-HZVN4JSO.mjs";import"../../chunk-3BMZKCLH.mjs";import"../../chunk-V6C6NWFU.mjs";import"../../chunk-PLI53ZU6.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-XYXBAU4J.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-BPWSOC2Y.mjs";import"../../chunk-6JYQ5P36.mjs";import"../../chunk-NF73V673.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CW35YAMN.mjs";import"../../chunk-6WDVDEQZ.mjs";import"../../chunk-Y7ZQTLH4.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-JCFTAG5Z.mjs";import"../../chunk-7DQDJ2SA.mjs";import"../../chunk-HNBVYE3N.mjs";import"../../chunk-RGKRCZ36.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-Q4W3WJ2U.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-6SLY7UV2.mjs";import"../../chunk-KDMSOCZY.mjs";export{g as buildTransaction,f as convertPayloadToInnerPayload,e as generateRawTransaction,j as generateSignedTransaction,h as generateSignedTransactionForSimulation,a as generateTransactionPayload,b as generateTransactionPayloadWithABI,l as generateUserTransactionHash,c as generateViewFunctionPayload,d as generateViewFunctionPayloadWithABI,i as getAuthenticatorForSimulation,k as hashValues};
|
|
2
2
|
//# sourceMappingURL=transactionBuilder.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as k,R as a,S as b,T as c,U as d,V as e,W as f,X as g,Y as h,Z as i,_ as j,aa as l,ba as m,ca as n,da as o,ea as p,fa as q,ga as r,ha as s}from"../../chunk-
|
|
1
|
+
import{$ as k,R as a,S as b,T as c,U as d,V as e,W as f,X as g,Y as h,Z as i,_ as j,aa as l,ba as m,ca as n,da as o,ea as p,fa as q,ga as r,ha as s}from"../../chunk-55Q7BSZT.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-2XQKGWHQ.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-UQZTHVWC.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-4JT5AESZ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-EF4FA5I6.mjs";import"../../chunk-MSMFHPDT.mjs";import"../../chunk-K43K3YG7.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-QREVMGQZ.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-KJH4KKG6.mjs";import"../../chunk-FGFLPH5K.mjs";import"../../chunk-HZVN4JSO.mjs";import"../../chunk-3BMZKCLH.mjs";import"../../chunk-V6C6NWFU.mjs";import"../../chunk-PLI53ZU6.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-XYXBAU4J.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-BPWSOC2Y.mjs";import"../../chunk-6JYQ5P36.mjs";import"../../chunk-NF73V673.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CW35YAMN.mjs";import"../../chunk-6WDVDEQZ.mjs";import"../../chunk-Y7ZQTLH4.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-JCFTAG5Z.mjs";import"../../chunk-7DQDJ2SA.mjs";import"../../chunk-HNBVYE3N.mjs";import"../../chunk-RGKRCZ36.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-Q4W3WJ2U.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-6SLY7UV2.mjs";import"../../chunk-KDMSOCZY.mjs";export{o as StructTag,a as TypeTag,i as TypeTagAddress,b as TypeTagBool,l as TypeTagGeneric,k as TypeTagReference,j as TypeTagSigner,n as TypeTagStruct,g as TypeTagU128,d as TypeTagU16,h as TypeTagU256,e as TypeTagU32,f as TypeTagU64,c as TypeTagU8,m as TypeTagVector,p as aptosCoinStructTag,s as objectStructTag,r as optionStructTag,q as stringStructTag};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{eb as a,fb as b,gb as c}from"../../chunk-
|
|
1
|
+
import{eb as a,fb as b,gb as c}from"../../chunk-55Q7BSZT.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-2XQKGWHQ.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-UQZTHVWC.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-4JT5AESZ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-EF4FA5I6.mjs";import"../../chunk-MSMFHPDT.mjs";import"../../chunk-K43K3YG7.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-QREVMGQZ.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-KJH4KKG6.mjs";import"../../chunk-FGFLPH5K.mjs";import"../../chunk-HZVN4JSO.mjs";import"../../chunk-3BMZKCLH.mjs";import"../../chunk-V6C6NWFU.mjs";import"../../chunk-PLI53ZU6.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-XYXBAU4J.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-BPWSOC2Y.mjs";import"../../chunk-6JYQ5P36.mjs";import"../../chunk-NF73V673.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CW35YAMN.mjs";import"../../chunk-6WDVDEQZ.mjs";import"../../chunk-Y7ZQTLH4.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-JCFTAG5Z.mjs";import"../../chunk-7DQDJ2SA.mjs";import"../../chunk-HNBVYE3N.mjs";import"../../chunk-RGKRCZ36.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-Q4W3WJ2U.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-6SLY7UV2.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as TypeTagParserError,a as TypeTagParserErrorType,c as parseTypeTag};
|
|
2
2
|
//# sourceMappingURL=parser.mjs.map
|
package/dist/esm/types/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-FD6FGKYY.mjs";import{A,B,C,D,E,F,G,H,I,J,K,L,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-IJE2LVZG.mjs";import"../chunk-
|
|
1
|
+
import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import{A,B,C,D,E,F,G,H,I,J,K,L,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-IJE2LVZG.mjs";import"../chunk-KDMSOCZY.mjs";export{j as AccountAuthenticatorVariant,l as AnyPublicKeyVariant,n as AnySignatureVariant,L as DeriveScheme,q as EphemeralCertificateVariant,o as EphemeralPublicKeyVariant,p as EphemeralSignatureVariant,a as MimeType,H as MoveAbility,G as MoveFunctionVisibility,k as PrivateKeyVariants,I as RoleType,c as ScriptTransactionArgumentVariants,J as SigningScheme,K as SigningSchemeInput,i as TransactionAuthenticatorVariant,f as TransactionExecutableVariants,g as TransactionExtraConfigVariants,e as TransactionInnerPayloadVariants,d as TransactionPayloadVariants,s as TransactionResponseType,h as TransactionVariants,b as TypeTagVariants,r as ZkpVariant,m as anyPublicKeyVariantToString,z as isBlockEpilogueTransactionResponse,w as isBlockMetadataTransactionResponse,A as isEd25519Signature,D as isFeePayerSignature,v as isGenesisTransactionResponse,C as isMultiAgentSignature,E as isMultiEd25519Signature,t as isPendingTransactionResponse,B as isSecp256k1Signature,F as isSingleSenderSignature,x as isStateCheckpointTransactionResponse,u as isUserTransactionResponse,y as isValidatorTransactionResponse};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetObjectDataQuery, GetNamesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetCurrentTokenOwnershipQuery, GetTokenActivityQuery,
|
|
1
|
+
import { GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetObjectDataQuery, GetNamesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetCurrentTokenOwnershipQuery, GetTokenActivityQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetChainTopUserTransactionsQuery, GetProcessorStatusQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery, GetAccountAddressesForAuthKeyQuery, GetEventsQuery } from './generated/operations.mjs';
|
|
2
2
|
import './generated/types.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-
|
|
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-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.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
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-
|
|
1
|
+
import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-CW35YAMN.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{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-Q4W3WJ2U.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-FLZPUYXQ.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.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-
|
|
1
|
+
import{a}from"../chunk-CW35YAMN.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-Q4W3WJ2U.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-FLZPUYXQ.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/dist/esm/version.d.mts
CHANGED
package/dist/esm/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-6SLY7UV2.mjs";import"./chunk-KDMSOCZY.mjs";export{a as VERSION};
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/package.json
CHANGED
package/src/api/aptos.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { Account } from "./account";
|
|
|
5
5
|
import { AptosConfig } from "./aptosConfig";
|
|
6
6
|
import { Coin } from "./coin";
|
|
7
7
|
import { DigitalAsset } from "./digitalAsset";
|
|
8
|
-
import { Event } from "./event";
|
|
9
8
|
import { Faucet } from "./faucet";
|
|
10
9
|
import { FungibleAsset } from "./fungibleAsset";
|
|
11
10
|
import { General } from "./general";
|
|
@@ -53,8 +52,6 @@ export class Aptos {
|
|
|
53
52
|
|
|
54
53
|
readonly digitalAsset: DigitalAsset;
|
|
55
54
|
|
|
56
|
-
readonly event: Event;
|
|
57
|
-
|
|
58
55
|
readonly faucet: Faucet;
|
|
59
56
|
|
|
60
57
|
readonly fungibleAsset: FungibleAsset;
|
|
@@ -99,7 +96,6 @@ export class Aptos {
|
|
|
99
96
|
this.ans = new ANS(this.config);
|
|
100
97
|
this.coin = new Coin(this.config);
|
|
101
98
|
this.digitalAsset = new DigitalAsset(this.config);
|
|
102
|
-
this.event = new Event(this.config);
|
|
103
99
|
this.faucet = new Faucet(this.config);
|
|
104
100
|
this.fungibleAsset = new FungibleAsset(this.config);
|
|
105
101
|
this.general = new General(this.config);
|
|
@@ -146,11 +142,16 @@ function applyMixin(targetClass: any, baseClass: any, baseClassProp: string) {
|
|
|
146
142
|
Object.getOwnPropertyNames(baseClass.prototype).forEach((propertyName) => {
|
|
147
143
|
const propertyDescriptor = Object.getOwnPropertyDescriptor(baseClass.prototype, propertyName);
|
|
148
144
|
if (!propertyDescriptor) return;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
|
|
146
|
+
// Define new method that calls through baseClassProp
|
|
147
|
+
Object.defineProperty(targetClass.prototype, propertyName, {
|
|
148
|
+
value: function (...args: any[]) {
|
|
149
|
+
return (this as any)[baseClassProp][propertyName](...args);
|
|
150
|
+
},
|
|
151
|
+
writable: propertyDescriptor.writable,
|
|
152
|
+
configurable: propertyDescriptor.configurable,
|
|
153
|
+
enumerable: propertyDescriptor.enumerable,
|
|
154
|
+
});
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
157
|
|
package/src/internal/ans.ts
CHANGED
|
@@ -184,6 +184,9 @@ export async function getOwnerAddress(args: {
|
|
|
184
184
|
* @param sender - The account initiating the name registration.
|
|
185
185
|
* @param name - The name to be registered.
|
|
186
186
|
* @param expiration - The expiration policy for the name registration.
|
|
187
|
+
* @param transferable - Whether the name can be transferred to another owner.
|
|
188
|
+
* @param toAddress - The address that will be set as the owner_address of the name.
|
|
189
|
+
* @param targetAddress - The address that this name will resolve to.
|
|
187
190
|
* @group Implementation
|
|
188
191
|
*/
|
|
189
192
|
export interface RegisterNameParameters {
|
|
@@ -209,10 +212,10 @@ export interface RegisterNameParameters {
|
|
|
209
212
|
* @param args.expiration - The expiration details for the registration.
|
|
210
213
|
* @param args.name - The name to be registered, which can be a domain or subdomain.
|
|
211
214
|
* @param args.sender - The account details of the sender initiating the registration.
|
|
212
|
-
* @param args.targetAddress - The target address for the registration.
|
|
213
|
-
* @param args.toAddress - The address
|
|
215
|
+
* @param args.targetAddress - The target address for the registration, which is the address the name will resolve to.
|
|
216
|
+
* @param args.toAddress - The address that will be set as the owner_address in records, defaults to sender if not provided.
|
|
214
217
|
* @param args.options - Additional options for the registration process.
|
|
215
|
-
* @param args.transferable - Indicates whether the registered name is transferable.
|
|
218
|
+
* @param args.transferable - Indicates whether the registered name is transferable to another account.
|
|
216
219
|
*
|
|
217
220
|
* @throws Error if the provided expiration policy is invalid for subdomains.
|
|
218
221
|
* @throws Error if the domain does not exist.
|
|
@@ -414,6 +417,8 @@ export async function setPrimaryName(args: {
|
|
|
414
417
|
|
|
415
418
|
/**
|
|
416
419
|
* Retrieves the target address associated with a given domain name and subdomain name.
|
|
420
|
+
* The target address is different from the owner address - it's the address this name
|
|
421
|
+
* resolves to, which may be different from who owns the name.
|
|
417
422
|
*
|
|
418
423
|
* @param args - The arguments for retrieving the target address.
|
|
419
424
|
* @param args.aptosConfig - The Aptos configuration object.
|
|
@@ -542,7 +547,8 @@ export interface GetAccountNamesArgs extends QueryNamesOptions {
|
|
|
542
547
|
}
|
|
543
548
|
|
|
544
549
|
/**
|
|
545
|
-
* Retrieves the current Aptos names
|
|
550
|
+
* Retrieves all the current Aptos names owned by an account. This uses the
|
|
551
|
+
* owner_address field, not the registered_address field.
|
|
546
552
|
*
|
|
547
553
|
* @param args - The arguments for retrieving account names.
|
|
548
554
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
@@ -595,7 +601,8 @@ export interface GetAccountDomainsArgs extends QueryNamesOptions {
|
|
|
595
601
|
}
|
|
596
602
|
|
|
597
603
|
/**
|
|
598
|
-
* Retrieves the list of top-level domains owned by a specified account
|
|
604
|
+
* Retrieves the list of top-level domains owned by a specified account,
|
|
605
|
+
* using the owner_address field.
|
|
599
606
|
*
|
|
600
607
|
* @param args - The arguments for retrieving account domains.
|
|
601
608
|
* @param args.aptosConfig - The Aptos configuration object.
|
|
@@ -651,8 +658,8 @@ export interface GetAccountSubdomainsArgs extends QueryNamesOptions {
|
|
|
651
658
|
}
|
|
652
659
|
|
|
653
660
|
/**
|
|
654
|
-
* Retrieves a list of subdomains owned by a specified account address
|
|
655
|
-
*
|
|
661
|
+
* Retrieves a list of subdomains owned by a specified account address, determined
|
|
662
|
+
* by the owner_address field.
|
|
656
663
|
*
|
|
657
664
|
* @param args - The arguments for retrieving account subdomains.
|
|
658
665
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
@@ -707,7 +714,11 @@ export interface GetDomainSubdomainsArgs extends QueryNamesOptions {
|
|
|
707
714
|
}
|
|
708
715
|
|
|
709
716
|
/**
|
|
710
|
-
* Retrieve the active subdomains associated with a specified domain
|
|
717
|
+
* Retrieve the active subdomains associated with a specified domain,
|
|
718
|
+
* regardless of who is in possession of the domain.
|
|
719
|
+
*
|
|
720
|
+
* This function queries by domain name only, not by owner, so it will return
|
|
721
|
+
* all subdomains of a domain even if they're owned by different accounts.
|
|
711
722
|
*
|
|
712
723
|
* @param args - The arguments for retrieving subdomains.
|
|
713
724
|
* @param args.aptosConfig - The configuration settings for Aptos.
|
package/src/version.ts
CHANGED
package/dist/esm/api/event.d.mts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { GetEventsResponse } from '../types/indexer.mjs';
|
|
2
|
-
import { A as AptosConfig, d7 as MoveStructId, bM as AnyNumber, bO as PaginationArgs, bR as OrderByArg, m as AccountAddressInput, bS as WhereArg } from '../account--Q9z_xMN.mjs';
|
|
3
|
-
import { EventsBoolExp } from '../types/generated/types.mjs';
|
|
4
|
-
import '../types/generated/operations.mjs';
|
|
5
|
-
import '../utils/apiEndpoints.mjs';
|
|
6
|
-
import '../utils/const.mjs';
|
|
7
|
-
import '../core/common.mjs';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A class to query all `Event` Aptos related queries.
|
|
11
|
-
* @group Event
|
|
12
|
-
*/
|
|
13
|
-
declare class Event {
|
|
14
|
-
readonly config: AptosConfig;
|
|
15
|
-
/**
|
|
16
|
-
* Initializes a new instance of the Aptos client with the provided configuration.
|
|
17
|
-
*
|
|
18
|
-
* @param config - The configuration settings for the Aptos client.
|
|
19
|
-
* @param config.network - The network to connect to (e.g., Testnet, Mainnet).
|
|
20
|
-
* @param config.nodeUrl - The URL of the Aptos node to connect to.
|
|
21
|
-
* @param config.faucetUrl - The URL of the faucet to use for funding accounts.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
26
|
-
*
|
|
27
|
-
* async function runExample() {
|
|
28
|
-
* // Create a new Aptos client with Testnet configuration
|
|
29
|
-
* const config = new AptosConfig({ network: Network.TESTNET }); // Specify your own network if needed
|
|
30
|
-
* const aptos = new Aptos(config);
|
|
31
|
-
*
|
|
32
|
-
* console.log("Aptos client initialized:", aptos);
|
|
33
|
-
* }
|
|
34
|
-
* runExample().catch(console.error);
|
|
35
|
-
* ```
|
|
36
|
-
* @group Event
|
|
37
|
-
*/
|
|
38
|
-
constructor(config: AptosConfig);
|
|
39
|
-
/**
|
|
40
|
-
* Retrieve module events based on a specified event type.
|
|
41
|
-
* This function allows you to query for events that are associated with a particular module event type in the Aptos blockchain.
|
|
42
|
-
*
|
|
43
|
-
* @param args - The arguments for retrieving module events.
|
|
44
|
-
* @param args.eventType - The event type to filter the results.
|
|
45
|
-
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
46
|
-
* @param args.options - Optional pagination and ordering parameters for the event results.
|
|
47
|
-
*
|
|
48
|
-
* @returns Promise<GetEventsResponse> - A promise that resolves to the retrieved events.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
53
|
-
*
|
|
54
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
55
|
-
* const aptos = new Aptos(config);
|
|
56
|
-
*
|
|
57
|
-
* async function runExample() {
|
|
58
|
-
* // Retrieve module events for a specific event type
|
|
59
|
-
* const events = await aptos.getModuleEventsByEventType({
|
|
60
|
-
* eventType: "0x1::transaction_fee::FeeStatement", // specify the event type
|
|
61
|
-
* minimumLedgerVersion: 1, // optional: specify minimum ledger version if needed
|
|
62
|
-
* });
|
|
63
|
-
*
|
|
64
|
-
* console.log(events); // log the retrieved events
|
|
65
|
-
* }
|
|
66
|
-
* runExample().catch(console.error);
|
|
67
|
-
* ```
|
|
68
|
-
* @group Event
|
|
69
|
-
*/
|
|
70
|
-
getModuleEventsByEventType(args: {
|
|
71
|
-
eventType: MoveStructId;
|
|
72
|
-
minimumLedgerVersion?: AnyNumber;
|
|
73
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
|
|
74
|
-
}): Promise<GetEventsResponse>;
|
|
75
|
-
/**
|
|
76
|
-
* Retrieve events associated with a specific account address and creation number.
|
|
77
|
-
*
|
|
78
|
-
* @param args - The parameters for retrieving account events.
|
|
79
|
-
* @param args.accountAddress - The account address to query events for.
|
|
80
|
-
* @param args.creationNumber - The event creation number to filter the events.
|
|
81
|
-
* @param args.minimumLedgerVersion - Optional minimum ledger version to sync up to before querying.
|
|
82
|
-
*
|
|
83
|
-
* @returns Promise<GetEventsResponse>
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
88
|
-
*
|
|
89
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
90
|
-
* const aptos = new Aptos(config);
|
|
91
|
-
*
|
|
92
|
-
* async function runExample() {
|
|
93
|
-
* // Get events for the account at creation number 0
|
|
94
|
-
* const events = await aptos.getAccountEventsByCreationNumber({
|
|
95
|
-
* accountAddress: "0x1", // replace with a real account address
|
|
96
|
-
* creationNumber: 0,
|
|
97
|
-
* });
|
|
98
|
-
*
|
|
99
|
-
* console.log(events);
|
|
100
|
-
* }
|
|
101
|
-
* runExample().catch(console.error);
|
|
102
|
-
* ```
|
|
103
|
-
* @group Event
|
|
104
|
-
*/
|
|
105
|
-
getAccountEventsByCreationNumber(args: {
|
|
106
|
-
accountAddress: AccountAddressInput;
|
|
107
|
-
creationNumber: AnyNumber;
|
|
108
|
-
minimumLedgerVersion?: AnyNumber;
|
|
109
|
-
}): Promise<GetEventsResponse>;
|
|
110
|
-
/**
|
|
111
|
-
* Retrieve events associated with a specific account address and event type.
|
|
112
|
-
*
|
|
113
|
-
* @param args.accountAddress - The account address to query events for.
|
|
114
|
-
* @param args.eventType - The type of event to filter by.
|
|
115
|
-
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
116
|
-
* @param args.options - Optional pagination and ordering parameters for the event query.
|
|
117
|
-
*
|
|
118
|
-
* @returns Promise<GetEventsResponse>
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```typescript
|
|
122
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
123
|
-
*
|
|
124
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
125
|
-
* const aptos = new Aptos(config);
|
|
126
|
-
*
|
|
127
|
-
* async function runExample() {
|
|
128
|
-
* // Get events for a specific account and event type
|
|
129
|
-
* const events = await aptos.getAccountEventsByEventType({
|
|
130
|
-
* accountAddress: "0x1", // replace with a real account address
|
|
131
|
-
* eventType: "0x1::transaction_fee::FeeStatement", // replace with a real event type
|
|
132
|
-
* minimumLedgerVersion: 1, // optional, specify if needed
|
|
133
|
-
* });
|
|
134
|
-
*
|
|
135
|
-
* console.log(events);
|
|
136
|
-
* }
|
|
137
|
-
* runExample().catch(console.error);
|
|
138
|
-
* ```
|
|
139
|
-
* @group Event
|
|
140
|
-
*/
|
|
141
|
-
getAccountEventsByEventType(args: {
|
|
142
|
-
accountAddress: AccountAddressInput;
|
|
143
|
-
eventType: MoveStructId;
|
|
144
|
-
minimumLedgerVersion?: AnyNumber;
|
|
145
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
|
|
146
|
-
}): Promise<GetEventsResponse>;
|
|
147
|
-
/**
|
|
148
|
-
* Retrieve all events from the Aptos blockchain.
|
|
149
|
-
* An optional `where` clause can be provided to filter the results based on specific criteria.
|
|
150
|
-
*
|
|
151
|
-
* @param args Optional parameters for the query.
|
|
152
|
-
* @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
|
|
153
|
-
* @param args.options Optional pagination and filtering options.
|
|
154
|
-
* @param args.options.where Optional condition to filter events.
|
|
155
|
-
* @param args.options.offset Optional pagination offset.
|
|
156
|
-
* @param args.options.limit Optional maximum number of events to return.
|
|
157
|
-
* @param args.options.orderBy Optional ordering of the results.
|
|
158
|
-
*
|
|
159
|
-
* @returns GetEventsQuery response type containing the events.
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* ```typescript
|
|
163
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
164
|
-
*
|
|
165
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
166
|
-
* const aptos = new Aptos(config);
|
|
167
|
-
*
|
|
168
|
-
* async function runExample() {
|
|
169
|
-
* // Retrieve all events
|
|
170
|
-
* const events = await aptos.getEvents();
|
|
171
|
-
*
|
|
172
|
-
* // Retrieve events with filtering by account address
|
|
173
|
-
* const whereCondition = {
|
|
174
|
-
* account_address: { _eq: "0x123" }, // replace with a real account address
|
|
175
|
-
* };
|
|
176
|
-
* const filteredEvents = await aptos.getEvents({
|
|
177
|
-
* options: { where: whereCondition },
|
|
178
|
-
* });
|
|
179
|
-
*
|
|
180
|
-
* console.log(events);
|
|
181
|
-
* console.log(filteredEvents);
|
|
182
|
-
* }
|
|
183
|
-
* runExample().catch(console.error);
|
|
184
|
-
* ```
|
|
185
|
-
* @group Event
|
|
186
|
-
*/
|
|
187
|
-
getEvents(args?: {
|
|
188
|
-
minimumLedgerVersion?: AnyNumber;
|
|
189
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]> & WhereArg<EventsBoolExp>;
|
|
190
|
-
}): Promise<GetEventsResponse>;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export { Event };
|
package/dist/esm/api/event.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ld as a}from"../chunk-I4NMWLUZ.mjs";import"../chunk-G3MHXDYA.mjs";import"../chunk-RFQFTIOA.mjs";import"../chunk-XIQFX5FV.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-A5L76YP7.mjs";import"../chunk-OYH2T6V5.mjs";import"../chunk-PRUQZNAP.mjs";import"../chunk-EPMBZCYJ.mjs";import"../chunk-5HXLZHDW.mjs";import"../chunk-GOXRBEIJ.mjs";import"../chunk-OYUW6ZN2.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-FBCXUC7J.mjs";import"../chunk-FWGLACJS.mjs";import"../chunk-QGFWOGAV.mjs";import"../chunk-DPW6ELCQ.mjs";import"../chunk-C3Q23D22.mjs";import"../chunk-ROT6S6BM.mjs";import"../chunk-BYINW7I2.mjs";import"../chunk-Z6KQX6VX.mjs";import"../chunk-QREVMGQZ.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-KJH4KKG6.mjs";import"../chunk-6PKBXYG3.mjs";import"../chunk-AQQEQB35.mjs";import"../chunk-QQEK2GJC.mjs";import"../chunk-GRB6YSIT.mjs";import"../chunk-DW6WLD2B.mjs";import"../chunk-YOZBVVKL.mjs";import"../chunk-THUSLDD6.mjs";import"../chunk-UL777LTI.mjs";import"../chunk-Y7ZQTLH4.mjs";import"../chunk-7ECCT6PK.mjs";import"../chunk-NII5Q32W.mjs";import"../chunk-PQS3II2E.mjs";import"../chunk-E6IUB35J.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-HPQMAP7O.mjs";import"../chunk-6Y6ZO7TS.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6MWXV62C.mjs";import"../chunk-C6JRJNK3.mjs";import"../chunk-IXYGZ57N.mjs";import"../chunk-WLUXOUZH.mjs";import"../chunk-UCBUUH5M.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-JCFTAG5Z.mjs";import"../chunk-YFFDF22R.mjs";import"../chunk-BUUV6B4P.mjs";import"../chunk-GYVSI3TS.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-NJN3EAOM.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-4R4AI5RT.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Event};
|
|
2
|
-
//# sourceMappingURL=event.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|