@aptos-labs/ts-sdk 1.0.0 → 1.1.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/README.md +3 -3
- package/dist/browser/index.d.ts +513 -214
- package/dist/browser/index.global.js +25 -25
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +513 -214
- package/dist/common/index.js +26 -26
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +9 -9
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +4 -11
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.d.mts +3 -3
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +300 -76
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +3 -3
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +0 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +118 -13
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +25 -4
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +4 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +23 -2
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +21 -2
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-ZKFDLJ2F.mjs → chunk-2HBIGMDV.mjs} +2 -2
- package/dist/esm/{chunk-MNFGMNYS.mjs → chunk-3O4GKLXA.mjs} +2 -2
- package/dist/esm/chunk-3O4GKLXA.mjs.map +1 -0
- package/dist/esm/{chunk-GMOHGD73.mjs → chunk-4TIQQKXV.mjs} +2 -2
- package/dist/esm/{chunk-DBJTMCAG.mjs → chunk-4VG7DV6F.mjs} +2 -2
- package/dist/esm/{chunk-XKINEFAA.mjs → chunk-4ZYW3BPF.mjs} +2 -2
- package/dist/esm/chunk-4ZYW3BPF.mjs.map +1 -0
- package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
- package/dist/esm/chunk-6EMN3BOV.mjs.map +1 -0
- package/dist/esm/chunk-6MKBROIC.mjs +2 -0
- package/dist/esm/chunk-6MKBROIC.mjs.map +1 -0
- package/dist/esm/{chunk-DYJVDOBH.mjs → chunk-AS7RX4RK.mjs} +2 -2
- package/dist/esm/chunk-AS7RX4RK.mjs.map +1 -0
- package/dist/esm/{chunk-X7QBDRQR.mjs → chunk-BUM2FIHF.mjs} +2 -2
- package/dist/esm/chunk-BV6SCEXY.mjs +2 -0
- package/dist/esm/chunk-BV6SCEXY.mjs.map +1 -0
- package/dist/esm/{chunk-CBAVJ5EN.mjs → chunk-D2XLC3KK.mjs} +2 -2
- package/dist/esm/chunk-EMQWD6KP.mjs +2 -0
- package/dist/esm/chunk-EMQWD6KP.mjs.map +1 -0
- package/dist/esm/chunk-HDNJ4JK4.mjs +2 -0
- package/dist/esm/chunk-HDNJ4JK4.mjs.map +1 -0
- package/dist/esm/{chunk-BA4TDBYB.mjs → chunk-IEL6J6Z3.mjs} +2 -2
- package/dist/esm/{chunk-Q3R3KKKP.mjs → chunk-IPW2YTRD.mjs} +2 -2
- package/dist/esm/{chunk-BDTDWLGO.mjs → chunk-KH3M3YPI.mjs} +2 -2
- package/dist/esm/chunk-KSWQZKMQ.mjs +2 -0
- package/dist/esm/chunk-KSWQZKMQ.mjs.map +1 -0
- package/dist/esm/{chunk-ELWWME6B.mjs → chunk-LUCDRB52.mjs} +2 -2
- package/dist/esm/chunk-LUCDRB52.mjs.map +1 -0
- package/dist/esm/chunk-NZ6RYGJQ.mjs +2 -0
- package/dist/esm/chunk-NZ6RYGJQ.mjs.map +1 -0
- package/dist/esm/chunk-OU4MEM5F.mjs +2 -0
- package/dist/esm/chunk-OU4MEM5F.mjs.map +1 -0
- package/dist/esm/{chunk-PLY7MQKE.mjs → chunk-PJMRQLJ5.mjs} +2 -2
- package/dist/esm/chunk-PJMRQLJ5.mjs.map +1 -0
- package/dist/esm/{chunk-Y5RQOXZH.mjs → chunk-R3SAAJ2N.mjs} +2 -2
- package/dist/esm/{chunk-32A35CPU.mjs → chunk-R4APGSSC.mjs} +2 -2
- package/dist/esm/chunk-SI6QMT4N.mjs +2 -0
- package/dist/esm/chunk-SI6QMT4N.mjs.map +1 -0
- package/dist/esm/{chunk-PZ5JKQSP.mjs → chunk-SMN2QQ4Q.mjs} +1 -1
- package/dist/esm/chunk-SMN2QQ4Q.mjs.map +1 -0
- package/dist/esm/chunk-SODP7NAK.mjs +2 -0
- package/dist/esm/{chunk-W4JEP5GW.mjs.map → chunk-SODP7NAK.mjs.map} +1 -1
- package/dist/esm/{chunk-5IVRKK5V.mjs → chunk-SR7XLV76.mjs} +2 -2
- package/dist/esm/{chunk-LBNMY7EM.mjs → chunk-T3ID6KFN.mjs} +2 -2
- package/dist/esm/{chunk-2AMFCGJ3.mjs → chunk-TCSN7PYL.mjs} +2 -2
- package/dist/esm/chunk-TCSN7PYL.mjs.map +1 -0
- package/dist/esm/chunk-TTDCRLRD.mjs +2 -0
- package/dist/esm/chunk-TTDCRLRD.mjs.map +1 -0
- package/dist/esm/{chunk-NFGAZSSK.mjs → chunk-UZB7CTLX.mjs} +2 -2
- package/dist/esm/chunk-VA4K6DEK.mjs +2 -0
- package/dist/esm/chunk-VA4K6DEK.mjs.map +1 -0
- package/dist/esm/{chunk-7IY2Y73Q.mjs → chunk-VBUKPN4Q.mjs} +2 -2
- package/dist/esm/chunk-VBUKPN4Q.mjs.map +1 -0
- package/dist/esm/{chunk-5SRMD5C6.mjs → chunk-YLI6J47P.mjs} +2 -2
- package/dist/esm/{chunk-4FDIPWVB.mjs → chunk-YLPG6XMH.mjs} +2 -2
- package/dist/esm/{chunk-KR5JAN32.mjs → chunk-ZLYSA7JR.mjs} +2 -2
- 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.d.mts +2 -2
- package/dist/esm/core/account.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
- package/dist/esm/core/crypto/anySignature.mjs +1 -1
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.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/secp256k1.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +1 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +5 -5
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +2 -2
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +144 -27
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +2 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +6 -6
- package/dist/esm/internal/transactionSubmission.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.d.mts +1 -1
- package/dist/esm/transactions/index.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/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/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.d.mts +2 -2
- 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/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/transactions/types.d.mts +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -2
- package/src/api/ans.ts +9 -9
- package/src/api/aptos.ts +3 -28
- package/src/api/coin.ts +3 -3
- package/src/api/digitalAsset.ts +368 -94
- package/src/api/fungibleAsset.ts +3 -3
- package/src/api/transaction.ts +172 -2
- package/src/api/transactionSubmission/build.ts +25 -4
- package/src/api/transactionSubmission/helpers.ts +31 -0
- package/src/api/transactionSubmission/simulate.ts +26 -20
- package/src/api/transactionSubmission/submit.ts +24 -20
- package/src/client/core.ts +1 -1
- package/src/core/account.ts +2 -2
- package/src/internal/ans.ts +5 -5
- package/src/internal/coin.ts +2 -2
- package/src/internal/digitalAsset.ts +461 -61
- package/src/internal/fungibleAsset.ts +2 -2
- package/src/internal/transactionSubmission.ts +6 -6
- package/src/transactions/management/transactionWorker.ts +2 -9
- package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -4
- package/src/transactions/types.ts +2 -2
- package/src/version.ts +1 -1
- package/dist/esm/api/transactionSubmission.d.mts +0 -113
- package/dist/esm/api/transactionSubmission.mjs +0 -2
- package/dist/esm/chunk-26GRNGPL.mjs +0 -2
- package/dist/esm/chunk-26GRNGPL.mjs.map +0 -1
- package/dist/esm/chunk-2AMFCGJ3.mjs.map +0 -1
- package/dist/esm/chunk-2X3FRUKX.mjs +0 -2
- package/dist/esm/chunk-2X3FRUKX.mjs.map +0 -1
- package/dist/esm/chunk-4XQ5IV6C.mjs +0 -2
- package/dist/esm/chunk-4XQ5IV6C.mjs.map +0 -1
- package/dist/esm/chunk-5X46HDCI.mjs +0 -2
- package/dist/esm/chunk-5X46HDCI.mjs.map +0 -1
- package/dist/esm/chunk-7IY2Y73Q.mjs.map +0 -1
- package/dist/esm/chunk-DYJVDOBH.mjs.map +0 -1
- package/dist/esm/chunk-ELWWME6B.mjs.map +0 -1
- package/dist/esm/chunk-MNFGMNYS.mjs.map +0 -1
- package/dist/esm/chunk-NBSXZKMQ.mjs +0 -2
- package/dist/esm/chunk-NBSXZKMQ.mjs.map +0 -1
- package/dist/esm/chunk-NZ36UN4C.mjs +0 -2
- package/dist/esm/chunk-NZ36UN4C.mjs.map +0 -1
- package/dist/esm/chunk-PEBXSNMJ.mjs +0 -2
- package/dist/esm/chunk-PEBXSNMJ.mjs.map +0 -1
- package/dist/esm/chunk-PLY7MQKE.mjs.map +0 -1
- package/dist/esm/chunk-PZ5JKQSP.mjs.map +0 -1
- package/dist/esm/chunk-TNUGIBLO.mjs +0 -2
- package/dist/esm/chunk-TNUGIBLO.mjs.map +0 -1
- package/dist/esm/chunk-TTICPGX6.mjs +0 -2
- package/dist/esm/chunk-TTICPGX6.mjs.map +0 -1
- package/dist/esm/chunk-UES76WF2.mjs +0 -2
- package/dist/esm/chunk-UES76WF2.mjs.map +0 -1
- package/dist/esm/chunk-W44E6YAW.mjs +0 -2
- package/dist/esm/chunk-W44E6YAW.mjs.map +0 -1
- package/dist/esm/chunk-W4JEP5GW.mjs +0 -2
- package/dist/esm/chunk-WXISFVRU.mjs +0 -2
- package/dist/esm/chunk-WXISFVRU.mjs.map +0 -1
- package/dist/esm/chunk-XKINEFAA.mjs.map +0 -1
- package/src/api/transactionSubmission.ts +0 -121
- /package/dist/esm/api/{transactionSubmission.mjs.map → transactionSubmission/helpers.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZKFDLJ2F.mjs.map → chunk-2HBIGMDV.mjs.map} +0 -0
- /package/dist/esm/{chunk-GMOHGD73.mjs.map → chunk-4TIQQKXV.mjs.map} +0 -0
- /package/dist/esm/{chunk-DBJTMCAG.mjs.map → chunk-4VG7DV6F.mjs.map} +0 -0
- /package/dist/esm/{chunk-X7QBDRQR.mjs.map → chunk-BUM2FIHF.mjs.map} +0 -0
- /package/dist/esm/{chunk-CBAVJ5EN.mjs.map → chunk-D2XLC3KK.mjs.map} +0 -0
- /package/dist/esm/{chunk-BA4TDBYB.mjs.map → chunk-IEL6J6Z3.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q3R3KKKP.mjs.map → chunk-IPW2YTRD.mjs.map} +0 -0
- /package/dist/esm/{chunk-BDTDWLGO.mjs.map → chunk-KH3M3YPI.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y5RQOXZH.mjs.map → chunk-R3SAAJ2N.mjs.map} +0 -0
- /package/dist/esm/{chunk-32A35CPU.mjs.map → chunk-R4APGSSC.mjs.map} +0 -0
- /package/dist/esm/{chunk-5IVRKK5V.mjs.map → chunk-SR7XLV76.mjs.map} +0 -0
- /package/dist/esm/{chunk-LBNMY7EM.mjs.map → chunk-T3ID6KFN.mjs.map} +0 -0
- /package/dist/esm/{chunk-NFGAZSSK.mjs.map → chunk-UZB7CTLX.mjs.map} +0 -0
- /package/dist/esm/{chunk-5SRMD5C6.mjs.map → chunk-YLI6J47P.mjs.map} +0 -0
- /package/dist/esm/{chunk-4FDIPWVB.mjs.map → chunk-YLPG6XMH.mjs.map} +0 -0
- /package/dist/esm/{chunk-KR5JAN32.mjs.map → chunk-ZLYSA7JR.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -2885,8 +2885,8 @@ declare class Account$1 {
|
|
|
2885
2885
|
*
|
|
2886
2886
|
* @param args.privateKey PrivateKey - private key of the account
|
|
2887
2887
|
* @param args.address AccountAddress - address of the account
|
|
2888
|
-
* @param args.legacy optional. If set to
|
|
2889
|
-
* Defaults to deriving an authentication key with
|
|
2888
|
+
* @param args.legacy optional. If set to false, the keypair authentication keys will be derived with a unified scheme.
|
|
2889
|
+
* Defaults to deriving an authentication key with the legacy scheme.
|
|
2890
2890
|
*
|
|
2891
2891
|
* This method is private because it should only be called by the factory static methods.
|
|
2892
2892
|
* @returns Account
|
|
@@ -4730,7 +4730,7 @@ type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionAr
|
|
|
4730
4730
|
*
|
|
4731
4731
|
* @param rawTransaction a bcs serialized raw transaction
|
|
4732
4732
|
*/
|
|
4733
|
-
interface
|
|
4733
|
+
interface SimpleTransaction {
|
|
4734
4734
|
rawTransaction: RawTransaction;
|
|
4735
4735
|
feePayerAddress?: AccountAddress;
|
|
4736
4736
|
secondarySignerAddresses?: undefined;
|
|
@@ -4749,7 +4749,7 @@ interface MultiAgentTransaction {
|
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Unified type that holds all the return interfaces when generating different transaction types
|
|
4751
4751
|
*/
|
|
4752
|
-
type AnyRawTransaction =
|
|
4752
|
+
type AnyRawTransaction = SimpleTransaction | MultiAgentTransaction;
|
|
4753
4753
|
type InputSimulateTransactionData = {
|
|
4754
4754
|
/**
|
|
4755
4755
|
* The transaction to simulate, probably generated by `generateTransaction()`
|
|
@@ -4822,7 +4822,7 @@ declare class Coin {
|
|
|
4822
4822
|
* @param args.amount The amount to transfer
|
|
4823
4823
|
* @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
|
|
4824
4824
|
*
|
|
4825
|
-
* @returns
|
|
4825
|
+
* @returns SimpleTransaction
|
|
4826
4826
|
*/
|
|
4827
4827
|
transferCoinTransaction(args: {
|
|
4828
4828
|
sender: Account$1;
|
|
@@ -4830,7 +4830,7 @@ declare class Coin {
|
|
|
4830
4830
|
amount: AnyNumber;
|
|
4831
4831
|
coinType?: MoveStructId;
|
|
4832
4832
|
options?: InputGenerateTransactionOptions;
|
|
4833
|
-
}): Promise<
|
|
4833
|
+
}): Promise<SimpleTransaction>;
|
|
4834
4834
|
}
|
|
4835
4835
|
|
|
4836
4836
|
/**
|
|
@@ -4840,6 +4840,19 @@ declare class Coin {
|
|
|
4840
4840
|
* digitalAsset namespace and without having a dependency cycle error.
|
|
4841
4841
|
*/
|
|
4842
4842
|
|
|
4843
|
+
declare const PropertyTypeMap: {
|
|
4844
|
+
BOOLEAN: string;
|
|
4845
|
+
U8: string;
|
|
4846
|
+
U16: string;
|
|
4847
|
+
U32: string;
|
|
4848
|
+
U64: string;
|
|
4849
|
+
U128: string;
|
|
4850
|
+
U256: string;
|
|
4851
|
+
ADDRESS: string;
|
|
4852
|
+
STRING: string;
|
|
4853
|
+
};
|
|
4854
|
+
type PropertyType = keyof typeof PropertyTypeMap;
|
|
4855
|
+
type PropertyValue = boolean | number | bigint | string | AccountAddress | Array<PropertyValue>;
|
|
4843
4856
|
interface CreateCollectionOptions {
|
|
4844
4857
|
maxSupply?: AnyNumber;
|
|
4845
4858
|
mutableDescription?: boolean;
|
|
@@ -4861,38 +4874,6 @@ interface CreateCollectionOptions {
|
|
|
4861
4874
|
declare class DigitalAsset {
|
|
4862
4875
|
readonly config: AptosConfig;
|
|
4863
4876
|
constructor(config: AptosConfig);
|
|
4864
|
-
/**
|
|
4865
|
-
* Creates a new collection within the specified account
|
|
4866
|
-
*
|
|
4867
|
-
* @param args.creator the account of the collection's creator
|
|
4868
|
-
* @param args.description the description of the collection
|
|
4869
|
-
* @param args.name the name of the collection
|
|
4870
|
-
* @param args.uri the URI to additional info about the collection
|
|
4871
|
-
*
|
|
4872
|
-
* The parameters below are optional.
|
|
4873
|
-
* @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
|
|
4874
|
-
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
4875
|
-
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
4876
|
-
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
4877
|
-
* @param args.mutableTokenDescription controls mutability of the token's description - defaults true
|
|
4878
|
-
* @param args.mutableTokenName controls mutability of the token's name - defaults true
|
|
4879
|
-
* @param args.mutableTokenProperties controls mutability of token's properties - defaults true
|
|
4880
|
-
* @param args.mutableTokenUri controls mutability of the token's URI - defaults true
|
|
4881
|
-
* @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
|
|
4882
|
-
* @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
|
|
4883
|
-
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
|
|
4884
|
-
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
|
|
4885
|
-
* defaults 1
|
|
4886
|
-
*
|
|
4887
|
-
* @returns A SingleSignerTransaction that when submitted will create the collection.
|
|
4888
|
-
*/
|
|
4889
|
-
createCollectionTransaction(args: {
|
|
4890
|
-
creator: Account$1;
|
|
4891
|
-
description: string;
|
|
4892
|
-
name: string;
|
|
4893
|
-
uri: string;
|
|
4894
|
-
options?: InputGenerateTransactionOptions;
|
|
4895
|
-
} & CreateCollectionOptions): Promise<SingleSignerTransaction>;
|
|
4896
4877
|
/**
|
|
4897
4878
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
4898
4879
|
*
|
|
@@ -4930,90 +4911,346 @@ declare class DigitalAsset {
|
|
|
4930
4911
|
options?: TokenStandardArg;
|
|
4931
4912
|
}): Promise<string>;
|
|
4932
4913
|
/**
|
|
4933
|
-
*
|
|
4934
|
-
*
|
|
4935
|
-
* @param args.creator the creator of the collection
|
|
4936
|
-
* @param args.collection the name of the collection the token belongs to
|
|
4937
|
-
* @param args.description the description of the token
|
|
4938
|
-
* @param args.name the name of the token
|
|
4939
|
-
* @param args.uri the URI to additional info about the token
|
|
4940
|
-
*
|
|
4941
|
-
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
4942
|
-
*/
|
|
4943
|
-
mintTokenTransaction(args: {
|
|
4944
|
-
creator: Account$1;
|
|
4945
|
-
collection: string;
|
|
4946
|
-
description: string;
|
|
4947
|
-
name: string;
|
|
4948
|
-
uri: string;
|
|
4949
|
-
options?: InputGenerateTransactionOptions;
|
|
4950
|
-
}): Promise<SingleSignerTransaction>;
|
|
4951
|
-
/**
|
|
4952
|
-
* Gets token data given the address of a token.
|
|
4914
|
+
* Gets digital asset data given the address of a digital asset.
|
|
4953
4915
|
*
|
|
4954
|
-
* @param args.tokenAddress The address of the
|
|
4916
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4955
4917
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4956
|
-
* @returns GetTokenDataResponse containing relevant data to the
|
|
4918
|
+
* @returns GetTokenDataResponse containing relevant data to the digital asset.
|
|
4957
4919
|
*/
|
|
4958
|
-
|
|
4959
|
-
|
|
4920
|
+
getDigitalAssetData(args: {
|
|
4921
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4960
4922
|
minimumLedgerVersion?: AnyNumber;
|
|
4961
4923
|
}): Promise<GetTokenDataResponse>;
|
|
4962
4924
|
/**
|
|
4963
|
-
* Gets
|
|
4925
|
+
* Gets digital asset ownership data given the address of a digital asset.
|
|
4964
4926
|
*
|
|
4965
|
-
* @param args.tokenAddress The address of the
|
|
4927
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4966
4928
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4967
|
-
*
|
|
4929
|
+
*
|
|
4930
|
+
* @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
|
|
4968
4931
|
*/
|
|
4969
|
-
|
|
4970
|
-
|
|
4932
|
+
getCurrentDigitalAssetOwnership(args: {
|
|
4933
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4971
4934
|
minimumLedgerVersion?: AnyNumber;
|
|
4972
4935
|
}): Promise<GetCurrentTokenOwnershipResponse>;
|
|
4973
4936
|
/**
|
|
4974
|
-
* Gets the
|
|
4937
|
+
* Gets the digital assets that the given address owns.
|
|
4975
4938
|
*
|
|
4976
4939
|
* @param args.ownerAddress The address of the owner
|
|
4977
4940
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4978
|
-
*
|
|
4941
|
+
*
|
|
4942
|
+
* @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
|
|
4979
4943
|
*/
|
|
4980
|
-
|
|
4944
|
+
getOwnedDigitalAssets(args: {
|
|
4981
4945
|
ownerAddress: AccountAddressInput;
|
|
4982
4946
|
minimumLedgerVersion?: AnyNumber;
|
|
4983
4947
|
options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
|
|
4984
4948
|
}): Promise<GetOwnedTokensResponse>;
|
|
4985
4949
|
/**
|
|
4986
|
-
* Gets the activity data given the address of a
|
|
4950
|
+
* Gets the activity data given the address of a digital asset.
|
|
4987
4951
|
*
|
|
4988
|
-
* @param args.tokenAddress The address of the
|
|
4952
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4989
4953
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4990
|
-
*
|
|
4954
|
+
*
|
|
4955
|
+
* @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
|
|
4991
4956
|
*/
|
|
4992
|
-
|
|
4993
|
-
|
|
4957
|
+
getDigitalAssetActivity(args: {
|
|
4958
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4994
4959
|
minimumLedgerVersion?: AnyNumber;
|
|
4995
4960
|
options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
|
|
4996
4961
|
}): Promise<GetTokenActivityResponse>;
|
|
4997
4962
|
/**
|
|
4998
|
-
*
|
|
4963
|
+
* Creates a new collection within the specified account
|
|
4964
|
+
*
|
|
4965
|
+
* @param args.creator the account of the collection's creator
|
|
4966
|
+
* @param args.description the description of the collection
|
|
4967
|
+
* @param args.name the name of the collection
|
|
4968
|
+
* @param args.uri the URI to additional info about the collection
|
|
4969
|
+
*
|
|
4970
|
+
* The parameters below are optional.
|
|
4971
|
+
* @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
|
|
4972
|
+
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
4973
|
+
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
4974
|
+
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
4975
|
+
* @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
|
|
4976
|
+
* @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
|
|
4977
|
+
* @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
|
|
4978
|
+
* @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
|
|
4979
|
+
* @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
|
|
4980
|
+
* @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
|
|
4981
|
+
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
|
|
4982
|
+
* a digital asset is transferred - defaults 0
|
|
4983
|
+
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
|
|
4984
|
+
* when a digital asset is transferred - defaults 1
|
|
4985
|
+
*
|
|
4986
|
+
* @returns A SimpleTransaction that when submitted will create the collection.
|
|
4987
|
+
*/
|
|
4988
|
+
createCollectionTransaction(args: {
|
|
4989
|
+
creator: Account$1;
|
|
4990
|
+
description: string;
|
|
4991
|
+
name: string;
|
|
4992
|
+
uri: string;
|
|
4993
|
+
options?: InputGenerateTransactionOptions;
|
|
4994
|
+
} & CreateCollectionOptions): Promise<SimpleTransaction>;
|
|
4995
|
+
/**
|
|
4996
|
+
* Create a transaction to mint a digital asset into the creators account within an existing collection.
|
|
4997
|
+
*
|
|
4998
|
+
* @param args.creator the creator of the collection
|
|
4999
|
+
* @param args.collection the name of the collection the digital asset belongs to
|
|
5000
|
+
* @param args.description the description of the digital asset
|
|
5001
|
+
* @param args.name the name of the digital asset
|
|
5002
|
+
* @param args.uri the URI to additional info about the digital asset
|
|
5003
|
+
*
|
|
5004
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5005
|
+
*/
|
|
5006
|
+
mintDigitalAssetTransaction(args: {
|
|
5007
|
+
creator: Account$1;
|
|
5008
|
+
collection: string;
|
|
5009
|
+
description: string;
|
|
5010
|
+
name: string;
|
|
5011
|
+
uri: string;
|
|
5012
|
+
propertyKeys?: Array<string>;
|
|
5013
|
+
propertyTypes?: Array<PropertyType>;
|
|
5014
|
+
propertyValues?: Array<PropertyValue>;
|
|
5015
|
+
options?: InputGenerateTransactionOptions;
|
|
5016
|
+
}): Promise<SimpleTransaction>;
|
|
5017
|
+
/**
|
|
5018
|
+
* Transfer a digital asset (non fungible digital asset) ownership.
|
|
4999
5019
|
*
|
|
5000
5020
|
* We can transfer a digital asset only when the digital asset is not frozen
|
|
5001
|
-
* (i.e. owner transfer is not disabled such as for soul bound
|
|
5021
|
+
* (i.e. owner transfer is not disabled such as for soul bound digital assets)
|
|
5002
5022
|
*
|
|
5003
5023
|
* @param args.sender The sender account of the current digital asset owner
|
|
5004
5024
|
* @param args.digitalAssetAddress The digital asset address
|
|
5005
5025
|
* @param args.recipient The recipient account address
|
|
5006
5026
|
* @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
|
|
5007
5027
|
*
|
|
5008
|
-
* @returns A
|
|
5028
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5009
5029
|
*/
|
|
5010
|
-
|
|
5030
|
+
transferDigitalAssetTransaction(args: {
|
|
5011
5031
|
sender: Account$1;
|
|
5012
5032
|
digitalAssetAddress: AccountAddressInput;
|
|
5013
5033
|
recipient: AccountAddress;
|
|
5014
5034
|
digitalAssetType?: MoveStructId;
|
|
5015
5035
|
options?: InputGenerateTransactionOptions;
|
|
5016
|
-
}): Promise<
|
|
5036
|
+
}): Promise<SimpleTransaction>;
|
|
5037
|
+
/**
|
|
5038
|
+
* Mint a soul bound digital asset into a recipient's account
|
|
5039
|
+
*
|
|
5040
|
+
* @param args.account The account that mints the digital asset
|
|
5041
|
+
* @param args.collection The collection name that the digital asset belongs to
|
|
5042
|
+
* @param args.description The digital asset description
|
|
5043
|
+
* @param args.name The digital asset name
|
|
5044
|
+
* @param args.uri The digital asset URL
|
|
5045
|
+
* @param args.recipient The account address where the digital asset will be created
|
|
5046
|
+
* @param args.propertyKeys The property keys for storing on-chain properties
|
|
5047
|
+
* @param args.propertyTypes The type of property values
|
|
5048
|
+
* @param args.propertyValues The property values to be stored on-chain
|
|
5049
|
+
*
|
|
5050
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5051
|
+
*/
|
|
5052
|
+
mintSoulBoundTransaction(args: {
|
|
5053
|
+
account: Account$1;
|
|
5054
|
+
collection: string;
|
|
5055
|
+
description: string;
|
|
5056
|
+
name: string;
|
|
5057
|
+
uri: string;
|
|
5058
|
+
recipient: AccountAddress;
|
|
5059
|
+
propertyKeys?: Array<string>;
|
|
5060
|
+
propertyTypes?: Array<PropertyType>;
|
|
5061
|
+
propertyValues?: Array<PropertyValue>;
|
|
5062
|
+
options?: InputGenerateTransactionOptions;
|
|
5063
|
+
}): Promise<SimpleTransaction>;
|
|
5064
|
+
/**
|
|
5065
|
+
* Burn a digital asset by its creator
|
|
5066
|
+
*
|
|
5067
|
+
* @param args.creator The creator account
|
|
5068
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5069
|
+
*
|
|
5070
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5071
|
+
*/
|
|
5072
|
+
burnDigitalAssetTransaction(args: {
|
|
5073
|
+
creator: Account$1;
|
|
5074
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5075
|
+
digitalAssetType?: MoveStructId;
|
|
5076
|
+
options?: InputGenerateTransactionOptions;
|
|
5077
|
+
}): Promise<SimpleTransaction>;
|
|
5078
|
+
/**
|
|
5079
|
+
* Freeze digital asset transfer ability
|
|
5080
|
+
*
|
|
5081
|
+
* @param args.creator The creator account
|
|
5082
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5083
|
+
*
|
|
5084
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5085
|
+
*/
|
|
5086
|
+
freezeDigitalAssetTransaferTransaction(args: {
|
|
5087
|
+
creator: Account$1;
|
|
5088
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5089
|
+
digitalAssetType?: MoveStructId;
|
|
5090
|
+
options?: InputGenerateTransactionOptions;
|
|
5091
|
+
}): Promise<SimpleTransaction>;
|
|
5092
|
+
/**
|
|
5093
|
+
* Unfreeze digital asset transfer ability
|
|
5094
|
+
*
|
|
5095
|
+
* @param args.creator The creator account
|
|
5096
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5097
|
+
*
|
|
5098
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5099
|
+
*/
|
|
5100
|
+
unfreezeDigitalAssetTransaferTransaction(args: {
|
|
5101
|
+
creator: Account$1;
|
|
5102
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5103
|
+
digitalAssetType?: MoveStructId;
|
|
5104
|
+
options?: InputGenerateTransactionOptions;
|
|
5105
|
+
}): Promise<SimpleTransaction>;
|
|
5106
|
+
/**
|
|
5107
|
+
* Set the digital asset description
|
|
5108
|
+
*
|
|
5109
|
+
* @param args.creator The creator account
|
|
5110
|
+
* @param args.description The digital asset description
|
|
5111
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5112
|
+
*
|
|
5113
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5114
|
+
*/
|
|
5115
|
+
setDigitalAssetDescriptionTransaction(args: {
|
|
5116
|
+
creator: Account$1;
|
|
5117
|
+
description: string;
|
|
5118
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5119
|
+
digitalAssetType?: MoveStructId;
|
|
5120
|
+
options?: InputGenerateTransactionOptions;
|
|
5121
|
+
}): Promise<SimpleTransaction>;
|
|
5122
|
+
/**
|
|
5123
|
+
* Set the digital asset name
|
|
5124
|
+
*
|
|
5125
|
+
* @param args.creator The creator account
|
|
5126
|
+
* @param args.name The digital asset name
|
|
5127
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5128
|
+
*
|
|
5129
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5130
|
+
*/
|
|
5131
|
+
setDigitalAssetNameTransaction(args: {
|
|
5132
|
+
creator: Account$1;
|
|
5133
|
+
name: string;
|
|
5134
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5135
|
+
digitalAssetType?: MoveStructId;
|
|
5136
|
+
options?: InputGenerateTransactionOptions;
|
|
5137
|
+
}): Promise<SimpleTransaction>;
|
|
5138
|
+
/**
|
|
5139
|
+
* Set the digital asset name
|
|
5140
|
+
*
|
|
5141
|
+
* @param args.creator The creator account
|
|
5142
|
+
* @param args.uri The digital asset uri
|
|
5143
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5144
|
+
*
|
|
5145
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5146
|
+
*/
|
|
5147
|
+
setDigitalAssetURITransaction(args: {
|
|
5148
|
+
creator: Account$1;
|
|
5149
|
+
uri: string;
|
|
5150
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5151
|
+
digitalAssetType?: MoveStructId;
|
|
5152
|
+
options?: InputGenerateTransactionOptions;
|
|
5153
|
+
}): Promise<SimpleTransaction>;
|
|
5154
|
+
/**
|
|
5155
|
+
* Add a digital asset property
|
|
5156
|
+
*
|
|
5157
|
+
* @param args.account The account that mints the digital asset
|
|
5158
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5159
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5160
|
+
* @param args.propertyType The type of property value
|
|
5161
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5162
|
+
*
|
|
5163
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5164
|
+
*/
|
|
5165
|
+
addDigitalAssetPropertyTransaction(args: {
|
|
5166
|
+
creator: Account$1;
|
|
5167
|
+
propertyKey: string;
|
|
5168
|
+
propertyType: PropertyType;
|
|
5169
|
+
propertyValue: PropertyValue;
|
|
5170
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5171
|
+
digitalAssetType?: MoveStructId;
|
|
5172
|
+
options?: InputGenerateTransactionOptions;
|
|
5173
|
+
}): Promise<SimpleTransaction>;
|
|
5174
|
+
/**
|
|
5175
|
+
* Remove a digital asset property
|
|
5176
|
+
*
|
|
5177
|
+
* @param args.account The account that mints the digital asset
|
|
5178
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5179
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5180
|
+
* @param args.propertyType The type of property value
|
|
5181
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5182
|
+
*
|
|
5183
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5184
|
+
*/
|
|
5185
|
+
removeDigitalAssetPropertyTransaction(args: {
|
|
5186
|
+
creator: Account$1;
|
|
5187
|
+
propertyKey: string;
|
|
5188
|
+
propertyType: PropertyType;
|
|
5189
|
+
propertyValue: PropertyValue;
|
|
5190
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5191
|
+
digitalAssetType?: MoveStructId;
|
|
5192
|
+
options?: InputGenerateTransactionOptions;
|
|
5193
|
+
}): Promise<SimpleTransaction>;
|
|
5194
|
+
/**
|
|
5195
|
+
* Update a digital asset property
|
|
5196
|
+
*
|
|
5197
|
+
* @param args.account The account that mints the digital asset
|
|
5198
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5199
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5200
|
+
* @param args.propertyType The type of property value
|
|
5201
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5202
|
+
*
|
|
5203
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5204
|
+
*/
|
|
5205
|
+
updateDigitalAssetPropertyTransaction(args: {
|
|
5206
|
+
creator: Account$1;
|
|
5207
|
+
propertyKey: string;
|
|
5208
|
+
propertyType: PropertyType;
|
|
5209
|
+
propertyValue: PropertyValue;
|
|
5210
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5211
|
+
digitalAssetType?: MoveStructId;
|
|
5212
|
+
options?: InputGenerateTransactionOptions;
|
|
5213
|
+
}): Promise<SimpleTransaction>;
|
|
5214
|
+
/**
|
|
5215
|
+
* Add a typed digital asset property
|
|
5216
|
+
*
|
|
5217
|
+
* @param args.account The account that mints the digital asset
|
|
5218
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5219
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5220
|
+
* @param args.propertyType The type of property value
|
|
5221
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5222
|
+
*
|
|
5223
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5224
|
+
*/
|
|
5225
|
+
addDigitalAssetTypedPropertyTransaction(args: {
|
|
5226
|
+
creator: Account$1;
|
|
5227
|
+
propertyKey: string;
|
|
5228
|
+
propertyType: PropertyType;
|
|
5229
|
+
propertyValue: PropertyValue;
|
|
5230
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5231
|
+
digitalAssetType?: MoveStructId;
|
|
5232
|
+
options?: InputGenerateTransactionOptions;
|
|
5233
|
+
}): Promise<SimpleTransaction>;
|
|
5234
|
+
/**
|
|
5235
|
+
* Update a typed digital asset property
|
|
5236
|
+
*
|
|
5237
|
+
* @param args.account The account that mints the digital asset
|
|
5238
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5239
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5240
|
+
* @param args.propertyType The type of property value
|
|
5241
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5242
|
+
*
|
|
5243
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5244
|
+
*/
|
|
5245
|
+
updateDigitalAssetTypedPropertyTransaction(args: {
|
|
5246
|
+
creator: Account$1;
|
|
5247
|
+
propertyKey: string;
|
|
5248
|
+
propertyType: PropertyType;
|
|
5249
|
+
propertyValue: PropertyValue;
|
|
5250
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5251
|
+
digitalAssetType?: MoveStructId;
|
|
5252
|
+
options?: InputGenerateTransactionOptions;
|
|
5253
|
+
}): Promise<SimpleTransaction>;
|
|
5017
5254
|
}
|
|
5018
5255
|
|
|
5019
5256
|
/**
|
|
@@ -5159,7 +5396,7 @@ declare function generateRawTransaction(args: {
|
|
|
5159
5396
|
* When we call our `generateTransaction` function with the relevant type properties,
|
|
5160
5397
|
* Typescript can infer the return type based on the appropriate function overload.
|
|
5161
5398
|
*/
|
|
5162
|
-
declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<
|
|
5399
|
+
declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SimpleTransaction>;
|
|
5163
5400
|
declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<MultiAgentTransaction>;
|
|
5164
5401
|
/**
|
|
5165
5402
|
* Simulate a transaction before signing and submit to chain
|
|
@@ -5339,7 +5576,7 @@ declare class FungibleAsset {
|
|
|
5339
5576
|
* @param recipient The recipient account address
|
|
5340
5577
|
* @param amount Number of assets to transfer
|
|
5341
5578
|
*
|
|
5342
|
-
* @returns A
|
|
5579
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain.
|
|
5343
5580
|
*/
|
|
5344
5581
|
transferFungibleAsset(args: {
|
|
5345
5582
|
sender: Account$1;
|
|
@@ -5347,7 +5584,7 @@ declare class FungibleAsset {
|
|
|
5347
5584
|
recipient: AccountAddress;
|
|
5348
5585
|
amount: AnyNumber;
|
|
5349
5586
|
options?: InputGenerateTransactionOptions;
|
|
5350
|
-
}): Promise<
|
|
5587
|
+
}): Promise<SimpleTransaction>;
|
|
5351
5588
|
}
|
|
5352
5589
|
|
|
5353
5590
|
/**
|
|
@@ -5608,14 +5845,14 @@ declare class ANS {
|
|
|
5608
5845
|
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
5609
5846
|
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
5610
5847
|
*
|
|
5611
|
-
* @returns
|
|
5848
|
+
* @returns SimpleTransaction
|
|
5612
5849
|
*/
|
|
5613
5850
|
setTargetAddress(args: {
|
|
5614
5851
|
sender: Account$1;
|
|
5615
5852
|
name: string;
|
|
5616
5853
|
address: AccountAddressInput;
|
|
5617
5854
|
options?: InputGenerateTransactionOptions;
|
|
5618
|
-
}): Promise<
|
|
5855
|
+
}): Promise<SimpleTransaction>;
|
|
5619
5856
|
/**
|
|
5620
5857
|
* Retrieve the primary name for an account. An account can have
|
|
5621
5858
|
* multiple names that target it, but only a single name that is primary. An
|
|
@@ -5647,13 +5884,13 @@ declare class ANS {
|
|
|
5647
5884
|
* @param args.sender - The sender account
|
|
5648
5885
|
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
5649
5886
|
*
|
|
5650
|
-
* @returns
|
|
5887
|
+
* @returns SimpleTransaction
|
|
5651
5888
|
*/
|
|
5652
5889
|
setPrimaryName(args: {
|
|
5653
5890
|
sender: Account$1;
|
|
5654
5891
|
name?: string;
|
|
5655
5892
|
options?: InputGenerateTransactionOptions;
|
|
5656
|
-
}): Promise<
|
|
5893
|
+
}): Promise<SimpleTransaction>;
|
|
5657
5894
|
/**
|
|
5658
5895
|
* Registers a new name
|
|
5659
5896
|
*
|
|
@@ -5687,9 +5924,9 @@ declare class ANS {
|
|
|
5687
5924
|
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
5688
5925
|
* the transaction will be sent to the router.
|
|
5689
5926
|
*
|
|
5690
|
-
* @returns
|
|
5927
|
+
* @returns SimpleTransaction
|
|
5691
5928
|
*/
|
|
5692
|
-
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<
|
|
5929
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SimpleTransaction>;
|
|
5693
5930
|
/**
|
|
5694
5931
|
* Renews a domain name
|
|
5695
5932
|
*
|
|
@@ -5705,14 +5942,14 @@ declare class ANS {
|
|
|
5705
5942
|
* Subdomains cannot be renewed.
|
|
5706
5943
|
* @param args.years - The number of years to renew the name. Currently only one year is permitted.
|
|
5707
5944
|
*
|
|
5708
|
-
* @returns
|
|
5945
|
+
* @returns SimpleTransaction
|
|
5709
5946
|
*/
|
|
5710
5947
|
renewDomain(args: {
|
|
5711
5948
|
sender: Account$1;
|
|
5712
5949
|
name: string;
|
|
5713
5950
|
years?: 1;
|
|
5714
5951
|
options?: InputGenerateTransactionOptions;
|
|
5715
|
-
}): Promise<
|
|
5952
|
+
}): Promise<SimpleTransaction>;
|
|
5716
5953
|
/**
|
|
5717
5954
|
* Fetches a single name from the indexer
|
|
5718
5955
|
* @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
|
|
@@ -5820,8 +6057,133 @@ declare class Staking {
|
|
|
5820
6057
|
}): Promise<GetDelegatedStakingActivitiesResponse>;
|
|
5821
6058
|
}
|
|
5822
6059
|
|
|
6060
|
+
/**
|
|
6061
|
+
* A class to handle all `Build` transaction operations
|
|
6062
|
+
*/
|
|
6063
|
+
declare class Build {
|
|
6064
|
+
readonly config: AptosConfig;
|
|
6065
|
+
constructor(config: AptosConfig);
|
|
6066
|
+
/**
|
|
6067
|
+
* Build a simple transaction
|
|
6068
|
+
*
|
|
6069
|
+
* @param args.sender The sender account address
|
|
6070
|
+
* @param args.data The transaction data
|
|
6071
|
+
* @param args.options optional. Optional transaction configurations
|
|
6072
|
+
* @param args.withFeePayer optional. Whether there is a fee payer for the transaction
|
|
6073
|
+
*
|
|
6074
|
+
* @returns SimpleTransaction
|
|
6075
|
+
*/
|
|
6076
|
+
simple(args: {
|
|
6077
|
+
sender: AccountAddressInput;
|
|
6078
|
+
data: InputGenerateTransactionPayloadData;
|
|
6079
|
+
options?: InputGenerateTransactionOptions;
|
|
6080
|
+
withFeePayer?: boolean;
|
|
6081
|
+
}): Promise<SimpleTransaction>;
|
|
6082
|
+
/**
|
|
6083
|
+
* Build a multi agent transaction
|
|
6084
|
+
*
|
|
6085
|
+
* @param args.sender The sender account address
|
|
6086
|
+
* @param args.data The transaction data
|
|
6087
|
+
* @param args.secondarySignerAddresses An array of the secondary signers account addresses
|
|
6088
|
+
* @param args.options optional. Optional transaction configurations
|
|
6089
|
+
* @param args.withFeePayer optional. Whether there is a fee payer for the transaction
|
|
6090
|
+
*
|
|
6091
|
+
* @returns MultiAgentTransaction
|
|
6092
|
+
*/
|
|
6093
|
+
multiAgent(args: {
|
|
6094
|
+
sender: AccountAddressInput;
|
|
6095
|
+
data: InputGenerateTransactionPayloadData;
|
|
6096
|
+
secondarySignerAddresses: AccountAddressInput[];
|
|
6097
|
+
options?: InputGenerateTransactionOptions;
|
|
6098
|
+
withFeePayer?: boolean;
|
|
6099
|
+
}): Promise<MultiAgentTransaction>;
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6102
|
+
/**
|
|
6103
|
+
* A class to handle all `Simulate` transaction operations
|
|
6104
|
+
*/
|
|
6105
|
+
declare class Simulate {
|
|
6106
|
+
readonly config: AptosConfig;
|
|
6107
|
+
constructor(config: AptosConfig);
|
|
6108
|
+
/**
|
|
6109
|
+
* Simulate a simple transaction
|
|
6110
|
+
*
|
|
6111
|
+
* @param args.signerPublicKey The signer public key
|
|
6112
|
+
* @param args.transaction An instance of a raw transaction
|
|
6113
|
+
* @param args.options optional. Optional transaction configurations
|
|
6114
|
+
* @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
|
|
6115
|
+
*
|
|
6116
|
+
* @returns Array<UserTransactionResponse>
|
|
6117
|
+
*/
|
|
6118
|
+
simple(args: {
|
|
6119
|
+
signerPublicKey: PublicKey;
|
|
6120
|
+
transaction: AnyRawTransaction;
|
|
6121
|
+
feePayerPublicKey?: PublicKey;
|
|
6122
|
+
options?: InputSimulateTransactionOptions;
|
|
6123
|
+
}): Promise<Array<UserTransactionResponse>>;
|
|
6124
|
+
/**
|
|
6125
|
+
* Simulate a multi agent transaction
|
|
6126
|
+
*
|
|
6127
|
+
* @param args.signerPublicKey The signer public key
|
|
6128
|
+
* @param args.transaction An instance of a raw transaction
|
|
6129
|
+
* @param args.secondarySignersPublicKeys An array of the secondary signers public keys
|
|
6130
|
+
* @param args.options optional. Optional transaction configurations
|
|
6131
|
+
* @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
|
|
6132
|
+
*
|
|
6133
|
+
* @returns Array<UserTransactionResponse>
|
|
6134
|
+
*/
|
|
6135
|
+
multiAgent(args: {
|
|
6136
|
+
signerPublicKey: PublicKey;
|
|
6137
|
+
transaction: AnyRawTransaction;
|
|
6138
|
+
secondarySignersPublicKeys: Array<PublicKey>;
|
|
6139
|
+
feePayerPublicKey?: PublicKey;
|
|
6140
|
+
options?: InputSimulateTransactionOptions;
|
|
6141
|
+
}): Promise<Array<UserTransactionResponse>>;
|
|
6142
|
+
}
|
|
6143
|
+
|
|
6144
|
+
/**
|
|
6145
|
+
* A class to handle all `Submit` transaction operations
|
|
6146
|
+
*/
|
|
6147
|
+
declare class Submit {
|
|
6148
|
+
readonly config: AptosConfig;
|
|
6149
|
+
constructor(config: AptosConfig);
|
|
6150
|
+
/**
|
|
6151
|
+
* Submit a simple transaction
|
|
6152
|
+
*
|
|
6153
|
+
* @param args.transaction An instance of a raw transaction
|
|
6154
|
+
* @param args.senderAuthenticator optional. The sender account authenticator
|
|
6155
|
+
* @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
|
|
6156
|
+
*
|
|
6157
|
+
* @returns PendingTransactionResponse
|
|
6158
|
+
*/
|
|
6159
|
+
simple(args: {
|
|
6160
|
+
transaction: AnyRawTransaction;
|
|
6161
|
+
senderAuthenticator: AccountAuthenticator;
|
|
6162
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
6163
|
+
}): Promise<PendingTransactionResponse>;
|
|
6164
|
+
/**
|
|
6165
|
+
* Submit a multi agent transaction
|
|
6166
|
+
*
|
|
6167
|
+
* @param args.transaction An instance of a raw transaction
|
|
6168
|
+
* @param args.senderAuthenticator optional. The sender account authenticator
|
|
6169
|
+
* @param args.additionalSignersAuthenticators An array of the secondary signers account authenticators
|
|
6170
|
+
* @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
|
|
6171
|
+
*
|
|
6172
|
+
* @returns PendingTransactionResponse
|
|
6173
|
+
*/
|
|
6174
|
+
multiAgent(args: {
|
|
6175
|
+
transaction: AnyRawTransaction;
|
|
6176
|
+
senderAuthenticator: AccountAuthenticator;
|
|
6177
|
+
additionalSignersAuthenticators: Array<AccountAuthenticator>;
|
|
6178
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
6179
|
+
}): Promise<PendingTransactionResponse>;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
5823
6182
|
declare class Transaction {
|
|
5824
6183
|
readonly config: AptosConfig;
|
|
6184
|
+
readonly build: Build;
|
|
6185
|
+
readonly simulate: Simulate;
|
|
6186
|
+
readonly submit: Submit;
|
|
5825
6187
|
constructor(config: AptosConfig);
|
|
5826
6188
|
/**
|
|
5827
6189
|
* Queries on-chain transactions. This function will not return pending
|
|
@@ -5920,11 +6282,63 @@ declare class Transaction {
|
|
|
5920
6282
|
getSigningMessage(args: {
|
|
5921
6283
|
transaction: AnyRawTransaction;
|
|
5922
6284
|
}): Uint8Array;
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
6285
|
+
/**
|
|
6286
|
+
* Generates a transaction to publish a move package to chain.
|
|
6287
|
+
*
|
|
6288
|
+
* To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
|
|
6289
|
+
* `aptos move compile --save-metadata ...`,
|
|
6290
|
+
* For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
|
|
6291
|
+
*
|
|
6292
|
+
* @param args.account The publisher account
|
|
6293
|
+
* @param args.metadataBytes The package metadata bytes
|
|
6294
|
+
* @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
|
|
6295
|
+
*
|
|
6296
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
6297
|
+
*/
|
|
6298
|
+
publishPackageTransaction(args: {
|
|
6299
|
+
account: AccountAddressInput;
|
|
6300
|
+
metadataBytes: HexInput;
|
|
6301
|
+
moduleBytecode: Array<HexInput>;
|
|
6302
|
+
options?: InputGenerateTransactionOptions;
|
|
6303
|
+
}): Promise<SimpleTransaction>;
|
|
6304
|
+
/**
|
|
6305
|
+
* Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
|
|
6306
|
+
* the account.
|
|
6307
|
+
* Note: Only legacy Ed25519 scheme is supported for now.
|
|
6308
|
+
* More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
|
|
6309
|
+
* @param args.fromAccount The account to rotate the auth key for
|
|
6310
|
+
* @param args.toNewPrivateKey The new private key to rotate to
|
|
6311
|
+
*
|
|
6312
|
+
* @returns PendingTransactionResponse
|
|
6313
|
+
*/
|
|
6314
|
+
rotateAuthKey(args: {
|
|
6315
|
+
fromAccount: Account$1;
|
|
6316
|
+
toNewPrivateKey: PrivateKey;
|
|
6317
|
+
}): Promise<TransactionResponse>;
|
|
6318
|
+
/**
|
|
6319
|
+
* Sign a transaction that can later be submitted to chain
|
|
6320
|
+
*
|
|
6321
|
+
* @param args.signer The signer account
|
|
6322
|
+
* @param args.transaction A raw transaction to sign on
|
|
6323
|
+
*
|
|
6324
|
+
* @returns AccountAuthenticator
|
|
6325
|
+
*/
|
|
6326
|
+
sign(args: {
|
|
6327
|
+
signer: Account$1;
|
|
6328
|
+
transaction: AnyRawTransaction;
|
|
6329
|
+
}): AccountAuthenticator;
|
|
6330
|
+
/**
|
|
6331
|
+
* Sign a transaction as a fee payer that can later be submitted to chain
|
|
6332
|
+
*
|
|
6333
|
+
* @param args.signer The fee payer signer account
|
|
6334
|
+
* @param args.transaction A raw transaction to sign on
|
|
6335
|
+
*
|
|
6336
|
+
* @returns AccountAuthenticator
|
|
6337
|
+
*/
|
|
6338
|
+
signAsFeePayer(args: {
|
|
6339
|
+
signer: Account$1;
|
|
6340
|
+
transaction: AnyRawTransaction;
|
|
6341
|
+
}): AccountAuthenticator;
|
|
5928
6342
|
/**
|
|
5929
6343
|
* Batch transactions for a single account.
|
|
5930
6344
|
*
|
|
@@ -5965,116 +6379,6 @@ declare class TransactionSubmission {
|
|
|
5965
6379
|
signer: Account$1;
|
|
5966
6380
|
transaction: AnyRawTransaction;
|
|
5967
6381
|
}): Promise<PendingTransactionResponse>;
|
|
5968
|
-
/**
|
|
5969
|
-
* Generates a transaction to publish a move package to chain.
|
|
5970
|
-
*
|
|
5971
|
-
* To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
|
|
5972
|
-
* `aptos move compile --save-metadata ...`,
|
|
5973
|
-
* For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
|
|
5974
|
-
*
|
|
5975
|
-
* @param args.account The publisher account
|
|
5976
|
-
* @param args.metadataBytes The package metadata bytes
|
|
5977
|
-
* @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
|
|
5978
|
-
*
|
|
5979
|
-
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
5980
|
-
*/
|
|
5981
|
-
publishPackageTransaction(args: {
|
|
5982
|
-
account: AccountAddressInput;
|
|
5983
|
-
metadataBytes: HexInput;
|
|
5984
|
-
moduleBytecode: Array<HexInput>;
|
|
5985
|
-
options?: InputGenerateTransactionOptions;
|
|
5986
|
-
}): Promise<SingleSignerTransaction>;
|
|
5987
|
-
/**
|
|
5988
|
-
* Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
|
|
5989
|
-
* the account.
|
|
5990
|
-
* Note: Only legacy Ed25519 scheme is supported for now.
|
|
5991
|
-
* More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
|
|
5992
|
-
* @param args.fromAccount The account to rotate the auth key for
|
|
5993
|
-
* @param args.toNewPrivateKey The new private key to rotate to
|
|
5994
|
-
*
|
|
5995
|
-
* @returns PendingTransactionResponse
|
|
5996
|
-
*/
|
|
5997
|
-
rotateAuthKey(args: {
|
|
5998
|
-
fromAccount: Account$1;
|
|
5999
|
-
toNewPrivateKey: PrivateKey;
|
|
6000
|
-
}): Promise<TransactionResponse>;
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6003
|
-
/**
|
|
6004
|
-
* A class to handle all `Build` transaction operations
|
|
6005
|
-
*/
|
|
6006
|
-
declare class Build {
|
|
6007
|
-
readonly config: AptosConfig;
|
|
6008
|
-
constructor(config: AptosConfig);
|
|
6009
|
-
transaction(args: {
|
|
6010
|
-
sender: AccountAddressInput;
|
|
6011
|
-
data: InputGenerateTransactionPayloadData;
|
|
6012
|
-
options?: InputGenerateTransactionOptions;
|
|
6013
|
-
withFeePayer?: boolean;
|
|
6014
|
-
}): Promise<SingleSignerTransaction>;
|
|
6015
|
-
multiAgentTransaction(args: {
|
|
6016
|
-
sender: AccountAddressInput;
|
|
6017
|
-
data: InputGenerateTransactionPayloadData;
|
|
6018
|
-
secondarySignerAddresses: AccountAddressInput[];
|
|
6019
|
-
options?: InputGenerateTransactionOptions;
|
|
6020
|
-
withFeePayer?: boolean;
|
|
6021
|
-
}): Promise<MultiAgentTransaction>;
|
|
6022
|
-
}
|
|
6023
|
-
|
|
6024
|
-
/**
|
|
6025
|
-
* A class to handle all `Sign` transaction operations
|
|
6026
|
-
*/
|
|
6027
|
-
declare class Sign {
|
|
6028
|
-
readonly config: AptosConfig;
|
|
6029
|
-
constructor(config: AptosConfig);
|
|
6030
|
-
transaction(args: {
|
|
6031
|
-
signer: Account$1;
|
|
6032
|
-
transaction: AnyRawTransaction;
|
|
6033
|
-
}): AccountAuthenticator;
|
|
6034
|
-
transactionAsFeePayer(args: {
|
|
6035
|
-
signer: Account$1;
|
|
6036
|
-
transaction: AnyRawTransaction;
|
|
6037
|
-
}): AccountAuthenticator;
|
|
6038
|
-
}
|
|
6039
|
-
|
|
6040
|
-
/**
|
|
6041
|
-
* A class to handle all `Simulate` transaction operations
|
|
6042
|
-
*/
|
|
6043
|
-
declare class Simulate {
|
|
6044
|
-
readonly config: AptosConfig;
|
|
6045
|
-
constructor(config: AptosConfig);
|
|
6046
|
-
transaction(args: {
|
|
6047
|
-
signerPublicKey: PublicKey;
|
|
6048
|
-
transaction: AnyRawTransaction;
|
|
6049
|
-
feePayerPublicKey?: PublicKey;
|
|
6050
|
-
options?: InputSimulateTransactionOptions;
|
|
6051
|
-
}): Promise<Array<UserTransactionResponse>>;
|
|
6052
|
-
multiAgentTransaction(args: {
|
|
6053
|
-
signerPublicKey: PublicKey;
|
|
6054
|
-
transaction: AnyRawTransaction;
|
|
6055
|
-
secondarySignersPublicKeys: Array<PublicKey>;
|
|
6056
|
-
feePayerPublicKey?: PublicKey;
|
|
6057
|
-
options?: InputSimulateTransactionOptions;
|
|
6058
|
-
}): Promise<Array<UserTransactionResponse>>;
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
|
-
/**
|
|
6062
|
-
* A class to handle all `Submit` transaction operations
|
|
6063
|
-
*/
|
|
6064
|
-
declare class Submit {
|
|
6065
|
-
readonly config: AptosConfig;
|
|
6066
|
-
constructor(config: AptosConfig);
|
|
6067
|
-
transaction(args: {
|
|
6068
|
-
transaction: AnyRawTransaction;
|
|
6069
|
-
senderAuthenticator: AccountAuthenticator;
|
|
6070
|
-
feePayerAuthenticator?: AccountAuthenticator;
|
|
6071
|
-
}): Promise<PendingTransactionResponse>;
|
|
6072
|
-
multiAgentTransaction(args: {
|
|
6073
|
-
transaction: AnyRawTransaction;
|
|
6074
|
-
senderAuthenticator: AccountAuthenticator;
|
|
6075
|
-
additionalSignersAuthenticators: Array<AccountAuthenticator>;
|
|
6076
|
-
feePayerAuthenticator?: AccountAuthenticator;
|
|
6077
|
-
}): Promise<PendingTransactionResponse>;
|
|
6078
6382
|
}
|
|
6079
6383
|
|
|
6080
6384
|
/**
|
|
@@ -6096,14 +6400,9 @@ declare class Aptos {
|
|
|
6096
6400
|
readonly general: General;
|
|
6097
6401
|
readonly staking: Staking;
|
|
6098
6402
|
readonly transaction: Transaction;
|
|
6099
|
-
readonly transactionSubmission: TransactionSubmission;
|
|
6100
|
-
readonly build: Build;
|
|
6101
|
-
readonly sign: Sign;
|
|
6102
|
-
readonly simulate: Simulate;
|
|
6103
|
-
readonly submit: Submit;
|
|
6104
6403
|
constructor(settings?: AptosConfig);
|
|
6105
6404
|
}
|
|
6106
|
-
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction
|
|
6405
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction {
|
|
6107
6406
|
}
|
|
6108
6407
|
|
|
6109
6408
|
/**
|
|
@@ -6463,7 +6762,7 @@ declare class TransactionWorker {
|
|
|
6463
6762
|
* @param sequenceNumber a sequence number the transaction will be generated with
|
|
6464
6763
|
* @returns
|
|
6465
6764
|
*/
|
|
6466
|
-
generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<
|
|
6765
|
+
generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<SimpleTransaction | undefined>;
|
|
6467
6766
|
/**
|
|
6468
6767
|
* Starts transaction submission and transaction processing.
|
|
6469
6768
|
*/
|
|
@@ -6478,4 +6777,4 @@ declare class TransactionWorker {
|
|
|
6478
6777
|
stop(): void;
|
|
6479
6778
|
}
|
|
6480
6779
|
|
|
6481
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountSequenceNumber, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByArg, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes,
|
|
6780
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountSequenceNumber, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByArg, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SimpleTransaction, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TransactionWorker, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
|