@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.
Files changed (232) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.d.ts +513 -214
  3. package/dist/browser/index.global.js +25 -25
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +513 -214
  6. package/dist/common/index.js +26 -26
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/api/account.mjs +1 -1
  9. package/dist/esm/api/ans.d.mts +9 -9
  10. package/dist/esm/api/ans.mjs +1 -1
  11. package/dist/esm/api/aptos.d.mts +4 -11
  12. package/dist/esm/api/aptos.mjs +1 -1
  13. package/dist/esm/api/coin.d.mts +3 -3
  14. package/dist/esm/api/coin.mjs +1 -1
  15. package/dist/esm/api/digitalAsset.d.mts +300 -76
  16. package/dist/esm/api/digitalAsset.mjs +1 -1
  17. package/dist/esm/api/event.mjs +1 -1
  18. package/dist/esm/api/faucet.mjs +1 -1
  19. package/dist/esm/api/fungibleAsset.d.mts +3 -3
  20. package/dist/esm/api/fungibleAsset.mjs +1 -1
  21. package/dist/esm/api/general.mjs +1 -1
  22. package/dist/esm/api/index.d.mts +0 -2
  23. package/dist/esm/api/index.mjs +1 -1
  24. package/dist/esm/api/staking.mjs +1 -1
  25. package/dist/esm/api/transaction.d.mts +118 -13
  26. package/dist/esm/api/transaction.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/build.d.mts +25 -4
  28. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/helpers.d.mts +4 -0
  30. package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
  31. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  33. package/dist/esm/api/transactionSubmission/simulate.d.mts +23 -2
  34. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  35. package/dist/esm/api/transactionSubmission/submit.d.mts +21 -2
  36. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  37. package/dist/esm/api/utils.mjs +1 -1
  38. package/dist/esm/bcs/index.mjs +1 -1
  39. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  40. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  41. package/dist/esm/{chunk-ZKFDLJ2F.mjs → chunk-2HBIGMDV.mjs} +2 -2
  42. package/dist/esm/{chunk-MNFGMNYS.mjs → chunk-3O4GKLXA.mjs} +2 -2
  43. package/dist/esm/chunk-3O4GKLXA.mjs.map +1 -0
  44. package/dist/esm/{chunk-GMOHGD73.mjs → chunk-4TIQQKXV.mjs} +2 -2
  45. package/dist/esm/{chunk-DBJTMCAG.mjs → chunk-4VG7DV6F.mjs} +2 -2
  46. package/dist/esm/{chunk-XKINEFAA.mjs → chunk-4ZYW3BPF.mjs} +2 -2
  47. package/dist/esm/chunk-4ZYW3BPF.mjs.map +1 -0
  48. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  49. package/dist/esm/chunk-6EMN3BOV.mjs.map +1 -0
  50. package/dist/esm/chunk-6MKBROIC.mjs +2 -0
  51. package/dist/esm/chunk-6MKBROIC.mjs.map +1 -0
  52. package/dist/esm/{chunk-DYJVDOBH.mjs → chunk-AS7RX4RK.mjs} +2 -2
  53. package/dist/esm/chunk-AS7RX4RK.mjs.map +1 -0
  54. package/dist/esm/{chunk-X7QBDRQR.mjs → chunk-BUM2FIHF.mjs} +2 -2
  55. package/dist/esm/chunk-BV6SCEXY.mjs +2 -0
  56. package/dist/esm/chunk-BV6SCEXY.mjs.map +1 -0
  57. package/dist/esm/{chunk-CBAVJ5EN.mjs → chunk-D2XLC3KK.mjs} +2 -2
  58. package/dist/esm/chunk-EMQWD6KP.mjs +2 -0
  59. package/dist/esm/chunk-EMQWD6KP.mjs.map +1 -0
  60. package/dist/esm/chunk-HDNJ4JK4.mjs +2 -0
  61. package/dist/esm/chunk-HDNJ4JK4.mjs.map +1 -0
  62. package/dist/esm/{chunk-BA4TDBYB.mjs → chunk-IEL6J6Z3.mjs} +2 -2
  63. package/dist/esm/{chunk-Q3R3KKKP.mjs → chunk-IPW2YTRD.mjs} +2 -2
  64. package/dist/esm/{chunk-BDTDWLGO.mjs → chunk-KH3M3YPI.mjs} +2 -2
  65. package/dist/esm/chunk-KSWQZKMQ.mjs +2 -0
  66. package/dist/esm/chunk-KSWQZKMQ.mjs.map +1 -0
  67. package/dist/esm/{chunk-ELWWME6B.mjs → chunk-LUCDRB52.mjs} +2 -2
  68. package/dist/esm/chunk-LUCDRB52.mjs.map +1 -0
  69. package/dist/esm/chunk-NZ6RYGJQ.mjs +2 -0
  70. package/dist/esm/chunk-NZ6RYGJQ.mjs.map +1 -0
  71. package/dist/esm/chunk-OU4MEM5F.mjs +2 -0
  72. package/dist/esm/chunk-OU4MEM5F.mjs.map +1 -0
  73. package/dist/esm/{chunk-PLY7MQKE.mjs → chunk-PJMRQLJ5.mjs} +2 -2
  74. package/dist/esm/chunk-PJMRQLJ5.mjs.map +1 -0
  75. package/dist/esm/{chunk-Y5RQOXZH.mjs → chunk-R3SAAJ2N.mjs} +2 -2
  76. package/dist/esm/{chunk-32A35CPU.mjs → chunk-R4APGSSC.mjs} +2 -2
  77. package/dist/esm/chunk-SI6QMT4N.mjs +2 -0
  78. package/dist/esm/chunk-SI6QMT4N.mjs.map +1 -0
  79. package/dist/esm/{chunk-PZ5JKQSP.mjs → chunk-SMN2QQ4Q.mjs} +1 -1
  80. package/dist/esm/chunk-SMN2QQ4Q.mjs.map +1 -0
  81. package/dist/esm/chunk-SODP7NAK.mjs +2 -0
  82. package/dist/esm/{chunk-W4JEP5GW.mjs.map → chunk-SODP7NAK.mjs.map} +1 -1
  83. package/dist/esm/{chunk-5IVRKK5V.mjs → chunk-SR7XLV76.mjs} +2 -2
  84. package/dist/esm/{chunk-LBNMY7EM.mjs → chunk-T3ID6KFN.mjs} +2 -2
  85. package/dist/esm/{chunk-2AMFCGJ3.mjs → chunk-TCSN7PYL.mjs} +2 -2
  86. package/dist/esm/chunk-TCSN7PYL.mjs.map +1 -0
  87. package/dist/esm/chunk-TTDCRLRD.mjs +2 -0
  88. package/dist/esm/chunk-TTDCRLRD.mjs.map +1 -0
  89. package/dist/esm/{chunk-NFGAZSSK.mjs → chunk-UZB7CTLX.mjs} +2 -2
  90. package/dist/esm/chunk-VA4K6DEK.mjs +2 -0
  91. package/dist/esm/chunk-VA4K6DEK.mjs.map +1 -0
  92. package/dist/esm/{chunk-7IY2Y73Q.mjs → chunk-VBUKPN4Q.mjs} +2 -2
  93. package/dist/esm/chunk-VBUKPN4Q.mjs.map +1 -0
  94. package/dist/esm/{chunk-5SRMD5C6.mjs → chunk-YLI6J47P.mjs} +2 -2
  95. package/dist/esm/{chunk-4FDIPWVB.mjs → chunk-YLPG6XMH.mjs} +2 -2
  96. package/dist/esm/{chunk-KR5JAN32.mjs → chunk-ZLYSA7JR.mjs} +2 -2
  97. package/dist/esm/client/core.mjs +1 -1
  98. package/dist/esm/client/get.mjs +1 -1
  99. package/dist/esm/client/index.mjs +1 -1
  100. package/dist/esm/client/post.mjs +1 -1
  101. package/dist/esm/core/account.d.mts +2 -2
  102. package/dist/esm/core/account.mjs +1 -1
  103. package/dist/esm/core/accountAddress.mjs +1 -1
  104. package/dist/esm/core/authenticationKey.mjs +1 -1
  105. package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
  106. package/dist/esm/core/crypto/anySignature.mjs +1 -1
  107. package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
  108. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  109. package/dist/esm/core/crypto/index.mjs +1 -1
  110. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  111. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  112. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  113. package/dist/esm/core/index.mjs +1 -1
  114. package/dist/esm/index.d.mts +1 -3
  115. package/dist/esm/index.mjs +1 -1
  116. package/dist/esm/internal/account.d.mts +1 -1
  117. package/dist/esm/internal/account.mjs +1 -1
  118. package/dist/esm/internal/ans.d.mts +5 -5
  119. package/dist/esm/internal/ans.mjs +1 -1
  120. package/dist/esm/internal/coin.d.mts +2 -2
  121. package/dist/esm/internal/coin.mjs +1 -1
  122. package/dist/esm/internal/digitalAsset.d.mts +144 -27
  123. package/dist/esm/internal/digitalAsset.mjs +1 -1
  124. package/dist/esm/internal/event.mjs +1 -1
  125. package/dist/esm/internal/faucet.mjs +1 -1
  126. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  127. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  128. package/dist/esm/internal/general.mjs +1 -1
  129. package/dist/esm/internal/staking.mjs +1 -1
  130. package/dist/esm/internal/transaction.mjs +1 -1
  131. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  132. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  133. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  134. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  135. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  136. package/dist/esm/transactions/index.d.mts +1 -1
  137. package/dist/esm/transactions/index.mjs +1 -1
  138. package/dist/esm/transactions/instances/index.mjs +1 -1
  139. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  140. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  141. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  142. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  143. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  144. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  145. package/dist/esm/transactions/management/index.mjs +1 -1
  146. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  147. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  148. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  149. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  150. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  151. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  152. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  153. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  154. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  155. package/dist/esm/transactions/types.d.mts +3 -3
  156. package/dist/esm/version.d.mts +1 -1
  157. package/dist/esm/version.mjs +1 -1
  158. package/package.json +4 -2
  159. package/src/api/ans.ts +9 -9
  160. package/src/api/aptos.ts +3 -28
  161. package/src/api/coin.ts +3 -3
  162. package/src/api/digitalAsset.ts +368 -94
  163. package/src/api/fungibleAsset.ts +3 -3
  164. package/src/api/transaction.ts +172 -2
  165. package/src/api/transactionSubmission/build.ts +25 -4
  166. package/src/api/transactionSubmission/helpers.ts +31 -0
  167. package/src/api/transactionSubmission/simulate.ts +26 -20
  168. package/src/api/transactionSubmission/submit.ts +24 -20
  169. package/src/client/core.ts +1 -1
  170. package/src/core/account.ts +2 -2
  171. package/src/internal/ans.ts +5 -5
  172. package/src/internal/coin.ts +2 -2
  173. package/src/internal/digitalAsset.ts +461 -61
  174. package/src/internal/fungibleAsset.ts +2 -2
  175. package/src/internal/transactionSubmission.ts +6 -6
  176. package/src/transactions/management/transactionWorker.ts +2 -9
  177. package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -4
  178. package/src/transactions/types.ts +2 -2
  179. package/src/version.ts +1 -1
  180. package/dist/esm/api/transactionSubmission.d.mts +0 -113
  181. package/dist/esm/api/transactionSubmission.mjs +0 -2
  182. package/dist/esm/chunk-26GRNGPL.mjs +0 -2
  183. package/dist/esm/chunk-26GRNGPL.mjs.map +0 -1
  184. package/dist/esm/chunk-2AMFCGJ3.mjs.map +0 -1
  185. package/dist/esm/chunk-2X3FRUKX.mjs +0 -2
  186. package/dist/esm/chunk-2X3FRUKX.mjs.map +0 -1
  187. package/dist/esm/chunk-4XQ5IV6C.mjs +0 -2
  188. package/dist/esm/chunk-4XQ5IV6C.mjs.map +0 -1
  189. package/dist/esm/chunk-5X46HDCI.mjs +0 -2
  190. package/dist/esm/chunk-5X46HDCI.mjs.map +0 -1
  191. package/dist/esm/chunk-7IY2Y73Q.mjs.map +0 -1
  192. package/dist/esm/chunk-DYJVDOBH.mjs.map +0 -1
  193. package/dist/esm/chunk-ELWWME6B.mjs.map +0 -1
  194. package/dist/esm/chunk-MNFGMNYS.mjs.map +0 -1
  195. package/dist/esm/chunk-NBSXZKMQ.mjs +0 -2
  196. package/dist/esm/chunk-NBSXZKMQ.mjs.map +0 -1
  197. package/dist/esm/chunk-NZ36UN4C.mjs +0 -2
  198. package/dist/esm/chunk-NZ36UN4C.mjs.map +0 -1
  199. package/dist/esm/chunk-PEBXSNMJ.mjs +0 -2
  200. package/dist/esm/chunk-PEBXSNMJ.mjs.map +0 -1
  201. package/dist/esm/chunk-PLY7MQKE.mjs.map +0 -1
  202. package/dist/esm/chunk-PZ5JKQSP.mjs.map +0 -1
  203. package/dist/esm/chunk-TNUGIBLO.mjs +0 -2
  204. package/dist/esm/chunk-TNUGIBLO.mjs.map +0 -1
  205. package/dist/esm/chunk-TTICPGX6.mjs +0 -2
  206. package/dist/esm/chunk-TTICPGX6.mjs.map +0 -1
  207. package/dist/esm/chunk-UES76WF2.mjs +0 -2
  208. package/dist/esm/chunk-UES76WF2.mjs.map +0 -1
  209. package/dist/esm/chunk-W44E6YAW.mjs +0 -2
  210. package/dist/esm/chunk-W44E6YAW.mjs.map +0 -1
  211. package/dist/esm/chunk-W4JEP5GW.mjs +0 -2
  212. package/dist/esm/chunk-WXISFVRU.mjs +0 -2
  213. package/dist/esm/chunk-WXISFVRU.mjs.map +0 -1
  214. package/dist/esm/chunk-XKINEFAA.mjs.map +0 -1
  215. package/src/api/transactionSubmission.ts +0 -121
  216. /package/dist/esm/api/{transactionSubmission.mjs.map → transactionSubmission/helpers.mjs.map} +0 -0
  217. /package/dist/esm/{chunk-ZKFDLJ2F.mjs.map → chunk-2HBIGMDV.mjs.map} +0 -0
  218. /package/dist/esm/{chunk-GMOHGD73.mjs.map → chunk-4TIQQKXV.mjs.map} +0 -0
  219. /package/dist/esm/{chunk-DBJTMCAG.mjs.map → chunk-4VG7DV6F.mjs.map} +0 -0
  220. /package/dist/esm/{chunk-X7QBDRQR.mjs.map → chunk-BUM2FIHF.mjs.map} +0 -0
  221. /package/dist/esm/{chunk-CBAVJ5EN.mjs.map → chunk-D2XLC3KK.mjs.map} +0 -0
  222. /package/dist/esm/{chunk-BA4TDBYB.mjs.map → chunk-IEL6J6Z3.mjs.map} +0 -0
  223. /package/dist/esm/{chunk-Q3R3KKKP.mjs.map → chunk-IPW2YTRD.mjs.map} +0 -0
  224. /package/dist/esm/{chunk-BDTDWLGO.mjs.map → chunk-KH3M3YPI.mjs.map} +0 -0
  225. /package/dist/esm/{chunk-Y5RQOXZH.mjs.map → chunk-R3SAAJ2N.mjs.map} +0 -0
  226. /package/dist/esm/{chunk-32A35CPU.mjs.map → chunk-R4APGSSC.mjs.map} +0 -0
  227. /package/dist/esm/{chunk-5IVRKK5V.mjs.map → chunk-SR7XLV76.mjs.map} +0 -0
  228. /package/dist/esm/{chunk-LBNMY7EM.mjs.map → chunk-T3ID6KFN.mjs.map} +0 -0
  229. /package/dist/esm/{chunk-NFGAZSSK.mjs.map → chunk-UZB7CTLX.mjs.map} +0 -0
  230. /package/dist/esm/{chunk-5SRMD5C6.mjs.map → chunk-YLI6J47P.mjs.map} +0 -0
  231. /package/dist/esm/{chunk-4FDIPWVB.mjs.map → chunk-YLPG6XMH.mjs.map} +0 -0
  232. /package/dist/esm/{chunk-KR5JAN32.mjs.map → chunk-ZLYSA7JR.mjs.map} +0 -0
package/src/api/aptos.ts CHANGED
@@ -12,11 +12,6 @@ import { General } from "./general";
12
12
  import { ANS } from "./ans";
13
13
  import { Staking } from "./staking";
14
14
  import { Transaction } from "./transaction";
15
- import { TransactionSubmission } from "./transactionSubmission";
16
- import { Build } from "./transactionSubmission/build";
17
- import { Sign } from "./transactionSubmission/sign";
18
- import { Simulate } from "./transactionSubmission/simulate";
19
- import { Submit } from "./transactionSubmission/submit";
20
15
 
21
16
  /**
22
17
  * This class is the main entry point into Aptos's
@@ -48,16 +43,6 @@ export class Aptos {
48
43
 
49
44
  readonly transaction: Transaction;
50
45
 
51
- readonly transactionSubmission: TransactionSubmission;
52
-
53
- readonly build: Build;
54
-
55
- readonly sign: Sign;
56
-
57
- readonly simulate: Simulate;
58
-
59
- readonly submit: Submit;
60
-
61
46
  constructor(settings?: AptosConfig) {
62
47
  this.config = new AptosConfig(settings);
63
48
  this.account = new Account(this.config);
@@ -70,16 +55,13 @@ export class Aptos {
70
55
  this.general = new General(this.config);
71
56
  this.staking = new Staking(this.config);
72
57
  this.transaction = new Transaction(this.config);
73
- this.transactionSubmission = new TransactionSubmission(this.config);
74
- this.build = new Build(this.config);
75
- this.sign = new Sign(this.config);
76
- this.simulate = new Simulate(this.config);
77
- this.submit = new Submit(this.config);
78
58
  }
79
59
  }
80
60
 
61
+ // extends Aptos interface so all the methods and properties from the other classes will be recognized by typescript.
81
62
  export interface Aptos
82
63
  extends Account,
64
+ ANS,
83
65
  Coin,
84
66
  DigitalAsset,
85
67
  Event,
@@ -87,9 +69,7 @@ export interface Aptos
87
69
  FungibleAsset,
88
70
  General,
89
71
  Staking,
90
- Transaction,
91
- ANS,
92
- TransactionSubmission {}
72
+ Transaction {}
93
73
 
94
74
  /**
95
75
  In TypeScript, we can’t inherit or extend from more than one class,
@@ -122,8 +102,3 @@ applyMixin(Aptos, FungibleAsset, "fungibleAsset");
122
102
  applyMixin(Aptos, General, "general");
123
103
  applyMixin(Aptos, Staking, "staking");
124
104
  applyMixin(Aptos, Transaction, "transaction");
125
- applyMixin(Aptos, TransactionSubmission, "transactionSubmission");
126
- applyMixin(Aptos, Build, "build");
127
- applyMixin(Aptos, Sign, "sign");
128
- applyMixin(Aptos, Simulate, "simulate");
129
- applyMixin(Aptos, Submit, "submit");
package/src/api/coin.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { Account, AccountAddressInput } from "../core";
5
5
  import { transferCoinTransaction } from "../internal/coin";
6
- import { SingleSignerTransaction, InputGenerateTransactionOptions } from "../transactions/types";
6
+ import { SimpleTransaction, InputGenerateTransactionOptions } from "../transactions/types";
7
7
  import { AnyNumber, MoveStructId } from "../types";
8
8
  import { AptosConfig } from "./aptosConfig";
9
9
 
@@ -21,7 +21,7 @@ export class Coin {
21
21
  * @param args.amount The amount to transfer
22
22
  * @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
23
23
  *
24
- * @returns SingleSignerTransaction
24
+ * @returns SimpleTransaction
25
25
  */
26
26
  async transferCoinTransaction(args: {
27
27
  sender: Account;
@@ -29,7 +29,7 @@ export class Coin {
29
29
  amount: AnyNumber;
30
30
  coinType?: MoveStructId;
31
31
  options?: InputGenerateTransactionOptions;
32
- }): Promise<SingleSignerTransaction> {
32
+ }): Promise<SimpleTransaction> {
33
33
  return transferCoinTransaction({ aptosConfig: this.config, ...args });
34
34
  }
35
35
  }
@@ -15,18 +15,32 @@ import {
15
15
  TokenStandardArg,
16
16
  } from "../types";
17
17
  import { Account, AccountAddress, AccountAddressInput } from "../core";
18
- import { InputGenerateTransactionOptions, SingleSignerTransaction } from "../transactions/types";
18
+ import { InputGenerateTransactionOptions, SimpleTransaction } from "../transactions/types";
19
19
  import {
20
+ addDigitalAssetPropertyTransaction,
21
+ addDigitalAssetTypedPropertyTransaction,
22
+ burnDigitalAssetTransaction,
20
23
  CreateCollectionOptions,
21
24
  createCollectionTransaction,
25
+ freezeDigitalAssetTransaferTransaction,
22
26
  getCollectionData,
23
27
  getCollectionId,
24
- getCurrentTokenOwnership,
25
- getOwnedTokens,
26
- getTokenActivity,
27
- getTokenData,
28
- mintTokenTransaction,
29
- transferDigitalAsset,
28
+ getCurrentDigitalAssetOwnership,
29
+ getDigitalAssetActivity,
30
+ getDigitalAssetData,
31
+ getOwnedDigitalAssets,
32
+ mintDigitalAssetTransaction,
33
+ mintSoulBoundTransaction,
34
+ PropertyType,
35
+ PropertyValue,
36
+ removeDigitalAssetPropertyTransaction,
37
+ setDigitalAssetDescriptionTransaction,
38
+ setDigitalAssetNameTransaction,
39
+ setDigitalAssetURITransaction,
40
+ transferDigitalAssetTransaction,
41
+ unfreezeDigitalAssetTransaferTransaction,
42
+ updateDigitalAssetPropertyTransaction,
43
+ updateDigitalAssetTypedPropertyTransaction,
30
44
  } from "../internal/digitalAsset";
31
45
  import { ProcessorType } from "../utils/const";
32
46
  import { AptosConfig } from "./aptosConfig";
@@ -38,43 +52,6 @@ import { waitForIndexerOnVersion } from "./utils";
38
52
  export class DigitalAsset {
39
53
  constructor(readonly config: AptosConfig) {}
40
54
 
41
- /**
42
- * Creates a new collection within the specified account
43
- *
44
- * @param args.creator the account of the collection's creator
45
- * @param args.description the description of the collection
46
- * @param args.name the name of the collection
47
- * @param args.uri the URI to additional info about the collection
48
- *
49
- * The parameters below are optional.
50
- * @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
51
- * @param args.mutableDescription controls mutability of the collection's description - defaults true
52
- * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
53
- * @param args.mutableUri controls mutability of the collection's URI - defaults true
54
- * @param args.mutableTokenDescription controls mutability of the token's description - defaults true
55
- * @param args.mutableTokenName controls mutability of the token's name - defaults true
56
- * @param args.mutableTokenProperties controls mutability of token's properties - defaults true
57
- * @param args.mutableTokenUri controls mutability of the token's URI - defaults true
58
- * @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
59
- * @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
60
- * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
61
- * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
62
- * defaults 1
63
- *
64
- * @returns A SingleSignerTransaction that when submitted will create the collection.
65
- */
66
- async createCollectionTransaction(
67
- args: {
68
- creator: Account;
69
- description: string;
70
- name: string;
71
- uri: string;
72
- options?: InputGenerateTransactionOptions;
73
- } & CreateCollectionOptions,
74
- ): Promise<SingleSignerTransaction> {
75
- return createCollectionTransaction({ aptosConfig: this.config, ...args });
76
- }
77
-
78
55
  /**
79
56
  * Queries data of a specific collection by the collection creator address and the collection name.
80
57
  *
@@ -128,36 +105,14 @@ export class DigitalAsset {
128
105
  }
129
106
 
130
107
  /**
131
- * Create a transaction to mint a token into the creators account within an existing collection.
108
+ * Gets digital asset data given the address of a digital asset.
132
109
  *
133
- * @param args.creator the creator of the collection
134
- * @param args.collection the name of the collection the token belongs to
135
- * @param args.description the description of the token
136
- * @param args.name the name of the token
137
- * @param args.uri the URI to additional info about the token
138
- *
139
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
140
- */
141
- async mintTokenTransaction(args: {
142
- creator: Account;
143
- collection: string;
144
- description: string;
145
- name: string;
146
- uri: string;
147
- options?: InputGenerateTransactionOptions;
148
- }): Promise<SingleSignerTransaction> {
149
- return mintTokenTransaction({ aptosConfig: this.config, ...args });
150
- }
151
-
152
- /**
153
- * Gets token data given the address of a token.
154
- *
155
- * @param args.tokenAddress The address of the token
110
+ * @param args.tokenAddress The address of the digital asset
156
111
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
157
- * @returns GetTokenDataResponse containing relevant data to the token.
112
+ * @returns GetTokenDataResponse containing relevant data to the digital asset.
158
113
  */
159
- async getTokenData(args: {
160
- tokenAddress: AccountAddressInput;
114
+ async getDigitalAssetData(args: {
115
+ digitalAssetAddress: AccountAddressInput;
161
116
  minimumLedgerVersion?: AnyNumber;
162
117
  }): Promise<GetTokenDataResponse> {
163
118
  await waitForIndexerOnVersion({
@@ -166,18 +121,19 @@ export class DigitalAsset {
166
121
  // TODO(greg): Should take in a consistent input for token queries
167
122
  processorTypes: getTokenProcessorTypes(undefined),
168
123
  });
169
- return getTokenData({ aptosConfig: this.config, ...args });
124
+ return getDigitalAssetData({ aptosConfig: this.config, ...args });
170
125
  }
171
126
 
172
127
  /**
173
- * Gets token ownership data given the address of a token.
128
+ * Gets digital asset ownership data given the address of a digital asset.
174
129
  *
175
- * @param args.tokenAddress The address of the token
130
+ * @param args.tokenAddress The address of the digital asset
176
131
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
177
- * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
132
+ *
133
+ * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
178
134
  */
179
- async getCurrentTokenOwnership(args: {
180
- tokenAddress: AccountAddressInput;
135
+ async getCurrentDigitalAssetOwnership(args: {
136
+ digitalAssetAddress: AccountAddressInput;
181
137
  minimumLedgerVersion?: AnyNumber;
182
138
  }): Promise<GetCurrentTokenOwnershipResponse> {
183
139
  await waitForIndexerOnVersion({
@@ -186,17 +142,18 @@ export class DigitalAsset {
186
142
  // TODO(greg): Should take in a consistent input for token queries
187
143
  processorTypes: getTokenProcessorTypes(undefined),
188
144
  });
189
- return getCurrentTokenOwnership({ aptosConfig: this.config, ...args });
145
+ return getCurrentDigitalAssetOwnership({ aptosConfig: this.config, ...args });
190
146
  }
191
147
 
192
148
  /**
193
- * Gets the tokens that the given address owns.
149
+ * Gets the digital assets that the given address owns.
194
150
  *
195
151
  * @param args.ownerAddress The address of the owner
196
152
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
197
- * @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
153
+ *
154
+ * @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
198
155
  */
199
- async getOwnedTokens(args: {
156
+ async getOwnedDigitalAssets(args: {
200
157
  ownerAddress: AccountAddressInput;
201
158
  minimumLedgerVersion?: AnyNumber;
202
159
  options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
@@ -207,18 +164,19 @@ export class DigitalAsset {
207
164
  // TODO(greg): Should take in a consistent input for token queries
208
165
  processorTypes: getTokenProcessorTypes(undefined),
209
166
  });
210
- return getOwnedTokens({ aptosConfig: this.config, ...args });
167
+ return getOwnedDigitalAssets({ aptosConfig: this.config, ...args });
211
168
  }
212
169
 
213
170
  /**
214
- * Gets the activity data given the address of a token.
171
+ * Gets the activity data given the address of a digital asset.
215
172
  *
216
- * @param args.tokenAddress The address of the token
173
+ * @param args.tokenAddress The address of the digital asset
217
174
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
218
- * @returns GetTokenActivityResponse containing relevant activity data to the token.
175
+ *
176
+ * @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
219
177
  */
220
- async getTokenActivity(args: {
221
- tokenAddress: AccountAddressInput;
178
+ async getDigitalAssetActivity(args: {
179
+ digitalAssetAddress: AccountAddressInput;
222
180
  minimumLedgerVersion?: AnyNumber;
223
181
  options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
224
182
  }): Promise<GetTokenActivityResponse> {
@@ -228,30 +186,346 @@ export class DigitalAsset {
228
186
  // TODO(greg): Should take in a consistent input for token queries
229
187
  processorTypes: getTokenProcessorTypes(undefined),
230
188
  });
231
- return getTokenActivity({ aptosConfig: this.config, ...args });
189
+ return getDigitalAssetActivity({ aptosConfig: this.config, ...args });
232
190
  }
233
191
 
234
192
  /**
235
- * Transfer a digital asset (non fungible token) ownership.
193
+ * Creates a new collection within the specified account
194
+ *
195
+ * @param args.creator the account of the collection's creator
196
+ * @param args.description the description of the collection
197
+ * @param args.name the name of the collection
198
+ * @param args.uri the URI to additional info about the collection
199
+ *
200
+ * The parameters below are optional.
201
+ * @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
202
+ * @param args.mutableDescription controls mutability of the collection's description - defaults true
203
+ * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
204
+ * @param args.mutableUri controls mutability of the collection's URI - defaults true
205
+ * @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
206
+ * @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
207
+ * @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
208
+ * @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
209
+ * @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
210
+ * @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
211
+ * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
212
+ * a digital asset is transferred - defaults 0
213
+ * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
214
+ * when a digital asset is transferred - defaults 1
215
+ *
216
+ * @returns A SimpleTransaction that when submitted will create the collection.
217
+ */
218
+ async createCollectionTransaction(
219
+ args: {
220
+ creator: Account;
221
+ description: string;
222
+ name: string;
223
+ uri: string;
224
+ options?: InputGenerateTransactionOptions;
225
+ } & CreateCollectionOptions,
226
+ ): Promise<SimpleTransaction> {
227
+ return createCollectionTransaction({ aptosConfig: this.config, ...args });
228
+ }
229
+
230
+ /**
231
+ * Create a transaction to mint a digital asset into the creators account within an existing collection.
232
+ *
233
+ * @param args.creator the creator of the collection
234
+ * @param args.collection the name of the collection the digital asset belongs to
235
+ * @param args.description the description of the digital asset
236
+ * @param args.name the name of the digital asset
237
+ * @param args.uri the URI to additional info about the digital asset
238
+ *
239
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
240
+ */
241
+ async mintDigitalAssetTransaction(args: {
242
+ creator: Account;
243
+ collection: string;
244
+ description: string;
245
+ name: string;
246
+ uri: string;
247
+ propertyKeys?: Array<string>;
248
+ propertyTypes?: Array<PropertyType>;
249
+ propertyValues?: Array<PropertyValue>;
250
+ options?: InputGenerateTransactionOptions;
251
+ }): Promise<SimpleTransaction> {
252
+ return mintDigitalAssetTransaction({ aptosConfig: this.config, ...args });
253
+ }
254
+
255
+ /**
256
+ * Transfer a digital asset (non fungible digital asset) ownership.
236
257
  *
237
258
  * We can transfer a digital asset only when the digital asset is not frozen
238
- * (i.e. owner transfer is not disabled such as for soul bound tokens)
259
+ * (i.e. owner transfer is not disabled such as for soul bound digital assets)
239
260
  *
240
261
  * @param args.sender The sender account of the current digital asset owner
241
262
  * @param args.digitalAssetAddress The digital asset address
242
263
  * @param args.recipient The recipient account address
243
264
  * @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
244
265
  *
245
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
266
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
246
267
  */
247
- async transferDigitalAsset(args: {
268
+ async transferDigitalAssetTransaction(args: {
248
269
  sender: Account;
249
270
  digitalAssetAddress: AccountAddressInput;
250
271
  recipient: AccountAddress;
251
272
  digitalAssetType?: MoveStructId;
252
273
  options?: InputGenerateTransactionOptions;
253
- }): Promise<SingleSignerTransaction> {
254
- return transferDigitalAsset({ aptosConfig: this.config, ...args });
274
+ }): Promise<SimpleTransaction> {
275
+ return transferDigitalAssetTransaction({ aptosConfig: this.config, ...args });
276
+ }
277
+
278
+ /**
279
+ * Mint a soul bound digital asset into a recipient's account
280
+ *
281
+ * @param args.account The account that mints the digital asset
282
+ * @param args.collection The collection name that the digital asset belongs to
283
+ * @param args.description The digital asset description
284
+ * @param args.name The digital asset name
285
+ * @param args.uri The digital asset URL
286
+ * @param args.recipient The account address where the digital asset will be created
287
+ * @param args.propertyKeys The property keys for storing on-chain properties
288
+ * @param args.propertyTypes The type of property values
289
+ * @param args.propertyValues The property values to be stored on-chain
290
+ *
291
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
292
+ */
293
+ async mintSoulBoundTransaction(args: {
294
+ account: Account;
295
+ collection: string;
296
+ description: string;
297
+ name: string;
298
+ uri: string;
299
+ recipient: AccountAddress;
300
+ propertyKeys?: Array<string>;
301
+ propertyTypes?: Array<PropertyType>;
302
+ propertyValues?: Array<PropertyValue>;
303
+ options?: InputGenerateTransactionOptions;
304
+ }): Promise<SimpleTransaction> {
305
+ return mintSoulBoundTransaction({ aptosConfig: this.config, ...args });
306
+ }
307
+
308
+ /**
309
+ * Burn a digital asset by its creator
310
+ *
311
+ * @param args.creator The creator account
312
+ * @param args.digitalAssetAddress The digital asset address
313
+ *
314
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
315
+ */
316
+ async burnDigitalAssetTransaction(args: {
317
+ creator: Account;
318
+ digitalAssetAddress: AccountAddressInput;
319
+ digitalAssetType?: MoveStructId;
320
+ options?: InputGenerateTransactionOptions;
321
+ }) {
322
+ return burnDigitalAssetTransaction({ aptosConfig: this.config, ...args });
323
+ }
324
+
325
+ /**
326
+ * Freeze digital asset transfer ability
327
+ *
328
+ * @param args.creator The creator account
329
+ * @param args.digitalAssetAddress The digital asset address
330
+ *
331
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
332
+ */
333
+ async freezeDigitalAssetTransaferTransaction(args: {
334
+ creator: Account;
335
+ digitalAssetAddress: AccountAddressInput;
336
+ digitalAssetType?: MoveStructId;
337
+ options?: InputGenerateTransactionOptions;
338
+ }) {
339
+ return freezeDigitalAssetTransaferTransaction({ aptosConfig: this.config, ...args });
340
+ }
341
+
342
+ /**
343
+ * Unfreeze digital asset transfer ability
344
+ *
345
+ * @param args.creator The creator account
346
+ * @param args.digitalAssetAddress The digital asset address
347
+ *
348
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
349
+ */
350
+ async unfreezeDigitalAssetTransaferTransaction(args: {
351
+ creator: Account;
352
+ digitalAssetAddress: AccountAddressInput;
353
+ digitalAssetType?: MoveStructId;
354
+ options?: InputGenerateTransactionOptions;
355
+ }) {
356
+ return unfreezeDigitalAssetTransaferTransaction({ aptosConfig: this.config, ...args });
357
+ }
358
+
359
+ /**
360
+ * Set the digital asset description
361
+ *
362
+ * @param args.creator The creator account
363
+ * @param args.description The digital asset description
364
+ * @param args.digitalAssetAddress The digital asset address
365
+ *
366
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
367
+ */
368
+ async setDigitalAssetDescriptionTransaction(args: {
369
+ creator: Account;
370
+ description: string;
371
+ digitalAssetAddress: AccountAddressInput;
372
+ digitalAssetType?: MoveStructId;
373
+ options?: InputGenerateTransactionOptions;
374
+ }) {
375
+ return setDigitalAssetDescriptionTransaction({ aptosConfig: this.config, ...args });
376
+ }
377
+
378
+ /**
379
+ * Set the digital asset name
380
+ *
381
+ * @param args.creator The creator account
382
+ * @param args.name The digital asset name
383
+ * @param args.digitalAssetAddress The digital asset address
384
+ *
385
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
386
+ */
387
+ async setDigitalAssetNameTransaction(args: {
388
+ creator: Account;
389
+ name: string;
390
+ digitalAssetAddress: AccountAddressInput;
391
+ digitalAssetType?: MoveStructId;
392
+ options?: InputGenerateTransactionOptions;
393
+ }) {
394
+ return setDigitalAssetNameTransaction({ aptosConfig: this.config, ...args });
395
+ }
396
+
397
+ /**
398
+ * Set the digital asset name
399
+ *
400
+ * @param args.creator The creator account
401
+ * @param args.uri The digital asset uri
402
+ * @param args.digitalAssetAddress The digital asset address
403
+ *
404
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
405
+ */
406
+ async setDigitalAssetURITransaction(args: {
407
+ creator: Account;
408
+ uri: string;
409
+ digitalAssetAddress: AccountAddressInput;
410
+ digitalAssetType?: MoveStructId;
411
+ options?: InputGenerateTransactionOptions;
412
+ }) {
413
+ return setDigitalAssetURITransaction({ aptosConfig: this.config, ...args });
414
+ }
415
+
416
+ /**
417
+ * Add a digital asset property
418
+ *
419
+ * @param args.account The account that mints the digital asset
420
+ * @param args.digitalAssetAddress The digital asset address
421
+ * @param args.propertyKey The property key for storing on-chain properties
422
+ * @param args.propertyType The type of property value
423
+ * @param args.propertyValue The property value to be stored on-chain
424
+ *
425
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
426
+ */
427
+ async addDigitalAssetPropertyTransaction(args: {
428
+ creator: Account;
429
+ propertyKey: string;
430
+ propertyType: PropertyType;
431
+ propertyValue: PropertyValue;
432
+ digitalAssetAddress: AccountAddressInput;
433
+ digitalAssetType?: MoveStructId;
434
+ options?: InputGenerateTransactionOptions;
435
+ }) {
436
+ return addDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
437
+ }
438
+
439
+ /**
440
+ * Remove a digital asset property
441
+ *
442
+ * @param args.account The account that mints the digital asset
443
+ * @param args.digitalAssetAddress The digital asset address
444
+ * @param args.propertyKey The property key for storing on-chain properties
445
+ * @param args.propertyType The type of property value
446
+ * @param args.propertyValue The property value to be stored on-chain
447
+ *
448
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
449
+ */
450
+ async removeDigitalAssetPropertyTransaction(args: {
451
+ creator: Account;
452
+ propertyKey: string;
453
+ propertyType: PropertyType;
454
+ propertyValue: PropertyValue;
455
+ digitalAssetAddress: AccountAddressInput;
456
+ digitalAssetType?: MoveStructId;
457
+ options?: InputGenerateTransactionOptions;
458
+ }) {
459
+ return removeDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
460
+ }
461
+
462
+ /**
463
+ * Update a digital asset property
464
+ *
465
+ * @param args.account The account that mints the digital asset
466
+ * @param args.digitalAssetAddress The digital asset address
467
+ * @param args.propertyKey The property key for storing on-chain properties
468
+ * @param args.propertyType The type of property value
469
+ * @param args.propertyValue The property value to be stored on-chain
470
+ *
471
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
472
+ */
473
+ async updateDigitalAssetPropertyTransaction(args: {
474
+ creator: Account;
475
+ propertyKey: string;
476
+ propertyType: PropertyType;
477
+ propertyValue: PropertyValue;
478
+ digitalAssetAddress: AccountAddressInput;
479
+ digitalAssetType?: MoveStructId;
480
+ options?: InputGenerateTransactionOptions;
481
+ }) {
482
+ return updateDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
483
+ }
484
+
485
+ /**
486
+ * Add a typed digital asset property
487
+ *
488
+ * @param args.account The account that mints the digital asset
489
+ * @param args.digitalAssetAddress The digital asset address
490
+ * @param args.propertyKey The property key for storing on-chain properties
491
+ * @param args.propertyType The type of property value
492
+ * @param args.propertyValue The property value to be stored on-chain
493
+ *
494
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
495
+ */
496
+ async addDigitalAssetTypedPropertyTransaction(args: {
497
+ creator: Account;
498
+ propertyKey: string;
499
+ propertyType: PropertyType;
500
+ propertyValue: PropertyValue;
501
+ digitalAssetAddress: AccountAddressInput;
502
+ digitalAssetType?: MoveStructId;
503
+ options?: InputGenerateTransactionOptions;
504
+ }) {
505
+ return addDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
506
+ }
507
+
508
+ /**
509
+ * Update a typed digital asset property
510
+ *
511
+ * @param args.account The account that mints the digital asset
512
+ * @param args.digitalAssetAddress The digital asset address
513
+ * @param args.propertyKey The property key for storing on-chain properties
514
+ * @param args.propertyType The type of property value
515
+ * @param args.propertyValue The property value to be stored on-chain
516
+ *
517
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
518
+ */
519
+ async updateDigitalAssetTypedPropertyTransaction(args: {
520
+ creator: Account;
521
+ propertyKey: string;
522
+ propertyType: PropertyType;
523
+ propertyValue: PropertyValue;
524
+ digitalAssetAddress: AccountAddressInput;
525
+ digitalAssetType?: MoveStructId;
526
+ options?: InputGenerateTransactionOptions;
527
+ }) {
528
+ return updateDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
255
529
  }
256
530
  }
257
531
 
@@ -24,7 +24,7 @@ import { ProcessorType } from "../utils/const";
24
24
  import { AptosConfig } from "./aptosConfig";
25
25
  import { waitForIndexerOnVersion } from "./utils";
26
26
  import { Account, AccountAddress } from "../core";
27
- import { InputGenerateTransactionOptions, SingleSignerTransaction } from "../transactions";
27
+ import { InputGenerateTransactionOptions, SimpleTransaction } from "../transactions";
28
28
 
29
29
  /**
30
30
  * A class to query all `FungibleAsset` related queries on Aptos.
@@ -134,7 +134,7 @@ export class FungibleAsset {
134
134
  * @param recipient The recipient account address
135
135
  * @param amount Number of assets to transfer
136
136
  *
137
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain.
137
+ * @returns A SimpleTransaction that can be simulated or submitted to chain.
138
138
  */
139
139
  async transferFungibleAsset(args: {
140
140
  sender: Account;
@@ -142,7 +142,7 @@ export class FungibleAsset {
142
142
  recipient: AccountAddress;
143
143
  amount: AnyNumber;
144
144
  options?: InputGenerateTransactionOptions;
145
- }): Promise<SingleSignerTransaction> {
145
+ }): Promise<SimpleTransaction> {
146
146
  return transferFungibleAsset({ aptosConfig: this.config, ...args });
147
147
  }
148
148
  }