@algorandfoundation/algokit-utils 6.2.1 → 6.3.0-beta.1

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 (159) hide show
  1. package/account/account.d.ts +13 -5
  2. package/account/account.d.ts.map +1 -1
  3. package/account/account.js +26 -6
  4. package/account/account.js.map +1 -1
  5. package/account/account.mjs +26 -6
  6. package/account/account.mjs.map +1 -1
  7. package/account/get-account.d.ts +4 -4
  8. package/account/get-account.js +2 -2
  9. package/account/get-account.mjs +2 -2
  10. package/amount.d.ts +28 -6
  11. package/amount.d.ts.map +1 -1
  12. package/amount.js +31 -11
  13. package/amount.js.map +1 -1
  14. package/amount.mjs +30 -12
  15. package/amount.mjs.map +1 -1
  16. package/asset.d.ts +10 -0
  17. package/asset.d.ts.map +1 -1
  18. package/asset.js +71 -198
  19. package/asset.js.map +1 -1
  20. package/asset.mjs +72 -199
  21. package/asset.mjs.map +1 -1
  22. package/dispenser-client.d.ts +1 -1
  23. package/dispenser-client.js +2 -2
  24. package/dispenser-client.js.map +1 -1
  25. package/dispenser-client.mjs +2 -2
  26. package/dispenser-client.mjs.map +1 -1
  27. package/index.d.ts +4 -3
  28. package/index.d.ts.map +1 -1
  29. package/index.js +11 -8
  30. package/index.js.map +1 -1
  31. package/index.mjs +6 -4
  32. package/index.mjs.map +1 -1
  33. package/localnet/get-or-create-kmd-wallet-account.d.ts +1 -1
  34. package/localnet/get-or-create-kmd-wallet-account.js +1 -1
  35. package/localnet/get-or-create-kmd-wallet-account.mjs +1 -1
  36. package/package.json +3 -2
  37. package/testing/_asset.d.ts +2 -4
  38. package/testing/_asset.d.ts.map +1 -1
  39. package/testing/account.js +8 -2
  40. package/testing/account.js.map +1 -1
  41. package/testing/account.mjs +8 -2
  42. package/testing/account.mjs.map +1 -1
  43. package/testing/fixtures/algorand-fixture.d.ts +1 -1
  44. package/testing/fixtures/algorand-fixture.js +7 -2
  45. package/testing/fixtures/algorand-fixture.js.map +1 -1
  46. package/testing/fixtures/algorand-fixture.mjs +7 -2
  47. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  48. package/transaction/legacy-bridge.d.ts +10 -0
  49. package/transaction/legacy-bridge.d.ts.map +1 -0
  50. package/transaction/legacy-bridge.js +35 -0
  51. package/transaction/legacy-bridge.js.map +1 -0
  52. package/transaction/legacy-bridge.mjs +33 -0
  53. package/transaction/legacy-bridge.mjs.map +1 -0
  54. package/transaction/transaction.d.ts +1 -1
  55. package/transaction/transaction.js +5 -5
  56. package/transaction/transaction.js.map +1 -1
  57. package/transaction/transaction.mjs +5 -5
  58. package/transaction/transaction.mjs.map +1 -1
  59. package/transfer/transfer-algos.d.ts +4 -2
  60. package/transfer/transfer-algos.d.ts.map +1 -1
  61. package/transfer/transfer-algos.js +13 -22
  62. package/transfer/transfer-algos.js.map +1 -1
  63. package/transfer/transfer-algos.mjs +14 -23
  64. package/transfer/transfer-algos.mjs.map +1 -1
  65. package/transfer/transfer.d.ts +8 -1
  66. package/transfer/transfer.d.ts.map +1 -1
  67. package/transfer/transfer.js +57 -94
  68. package/transfer/transfer.js.map +1 -1
  69. package/transfer/transfer.mjs +58 -95
  70. package/transfer/transfer.mjs.map +1 -1
  71. package/types/account-manager.d.ts +141 -24
  72. package/types/account-manager.d.ts.map +1 -1
  73. package/types/account-manager.js +217 -44
  74. package/types/account-manager.js.map +1 -1
  75. package/types/account-manager.mjs +216 -43
  76. package/types/account-manager.mjs.map +1 -1
  77. package/types/account.d.ts +122 -7
  78. package/types/account.d.ts.map +1 -1
  79. package/types/account.js.map +1 -1
  80. package/types/account.mjs.map +1 -1
  81. package/types/algorand-client-transaction-creator.d.ts +289 -0
  82. package/types/algorand-client-transaction-creator.d.ts.map +1 -0
  83. package/types/algorand-client-transaction-creator.js +299 -0
  84. package/types/algorand-client-transaction-creator.js.map +1 -0
  85. package/types/algorand-client-transaction-creator.mjs +297 -0
  86. package/types/algorand-client-transaction-creator.mjs.map +1 -0
  87. package/types/algorand-client-transaction-sender.d.ts +433 -0
  88. package/types/algorand-client-transaction-sender.d.ts.map +1 -0
  89. package/types/algorand-client-transaction-sender.js +422 -0
  90. package/types/algorand-client-transaction-sender.js.map +1 -0
  91. package/types/algorand-client-transaction-sender.mjs +420 -0
  92. package/types/algorand-client-transaction-sender.mjs.map +1 -0
  93. package/types/algorand-client.d.ts +28 -78
  94. package/types/algorand-client.d.ts.map +1 -1
  95. package/types/algorand-client.js +33 -122
  96. package/types/algorand-client.js.map +1 -1
  97. package/types/algorand-client.mjs +34 -123
  98. package/types/algorand-client.mjs.map +1 -1
  99. package/types/amount.d.ts +18 -6
  100. package/types/amount.d.ts.map +1 -1
  101. package/types/amount.js +33 -10
  102. package/types/amount.js.map +1 -1
  103. package/types/amount.mjs +33 -10
  104. package/types/amount.mjs.map +1 -1
  105. package/types/app-client.d.ts +3 -3
  106. package/types/app-client.d.ts.map +1 -1
  107. package/types/app-client.js +7 -10
  108. package/types/app-client.js.map +1 -1
  109. package/types/app-client.mjs +8 -11
  110. package/types/app-client.mjs.map +1 -1
  111. package/types/asset-manager.d.ts +205 -0
  112. package/types/asset-manager.d.ts.map +1 -0
  113. package/types/asset-manager.js +180 -0
  114. package/types/asset-manager.js.map +1 -0
  115. package/types/asset-manager.mjs +178 -0
  116. package/types/asset-manager.mjs.map +1 -0
  117. package/types/asset.d.ts +4 -4
  118. package/types/asset.d.ts.map +1 -1
  119. package/types/client-manager.d.ts +40 -2
  120. package/types/client-manager.d.ts.map +1 -1
  121. package/types/client-manager.js +44 -3
  122. package/types/client-manager.js.map +1 -1
  123. package/types/client-manager.mjs +44 -3
  124. package/types/client-manager.mjs.map +1 -1
  125. package/types/composer.d.ts +226 -68
  126. package/types/composer.d.ts.map +1 -1
  127. package/types/composer.js +78 -64
  128. package/types/composer.js.map +1 -1
  129. package/types/composer.mjs +75 -64
  130. package/types/composer.mjs.map +1 -1
  131. package/types/dispenser-client.d.ts +12 -4
  132. package/types/dispenser-client.d.ts.map +1 -1
  133. package/types/dispenser-client.js +9 -9
  134. package/types/dispenser-client.js.map +1 -1
  135. package/types/dispenser-client.mjs +9 -9
  136. package/types/dispenser-client.mjs.map +1 -1
  137. package/types/indexer.d.ts +7 -7
  138. package/types/indexer.d.ts.map +1 -1
  139. package/types/kmd-account-manager.d.ts +3 -3
  140. package/types/kmd-account-manager.js +6 -6
  141. package/types/kmd-account-manager.js.map +1 -1
  142. package/types/kmd-account-manager.mjs +7 -7
  143. package/types/kmd-account-manager.mjs.map +1 -1
  144. package/types/network-client.d.ts +7 -1
  145. package/types/network-client.d.ts.map +1 -1
  146. package/types/network-client.js +10 -0
  147. package/types/network-client.js.map +1 -1
  148. package/types/network-client.mjs +9 -0
  149. package/types/network-client.mjs.map +1 -1
  150. package/types/testing.d.ts +1 -1
  151. package/types/testing.d.ts.map +1 -1
  152. package/types/transfer.d.ts +8 -7
  153. package/types/transfer.d.ts.map +1 -1
  154. package/util.d.ts +13 -0
  155. package/util.d.ts.map +1 -1
  156. package/util.js +25 -0
  157. package/util.js.map +1 -1
  158. package/util.mjs +24 -1
  159. package/util.mjs.map +1 -1
@@ -0,0 +1,433 @@
1
+ import algosdk from 'algosdk';
2
+ import { AssetManager } from './asset-manager';
3
+ import AlgoKitComposer, { AssetCreateParams, AssetOptOutParams, ExecuteParams } from './composer';
4
+ import { ConfirmedTransactionResult, SendAtomicTransactionComposerResults } from './transaction';
5
+ /** Result from sending a single transaction. */
6
+ export type SendSingleTransactionResult = SendAtomicTransactionComposerResults & ConfirmedTransactionResult;
7
+ /** Orchestrates sending transactions for `AlgorandClient`. */
8
+ export declare class AlgorandClientTransactionSender {
9
+ private _newGroup;
10
+ private _assetManager;
11
+ /**
12
+ * Creates a new `AlgorandClientSender`
13
+ * @param newGroup A lambda that starts a new `AlgoKitComposer` transaction group
14
+ * @param assetManager An `AssetManager` instance
15
+ */
16
+ constructor(newGroup: () => AlgoKitComposer, assetManager: AssetManager);
17
+ private _send;
18
+ /**
19
+ * Send a payment transaction to transfer Algo between accounts.
20
+ * @param params The parameters for the payment transaction
21
+ * @example Basic example
22
+ * ```typescript
23
+ * const result = await algorandClient.send.payment({
24
+ * sender: 'SENDERADDRESS',
25
+ * receiver: 'RECEIVERADDRESS',
26
+ * amount: (4).algo(),
27
+ * })
28
+ * ```
29
+ * @example Advanced example
30
+ * ```typescript
31
+ * const result = await algorandClient.send.payment({
32
+ * amount: (4).algo(),
33
+ * receiver: 'RECEIVERADDRESS',
34
+ * sender: 'SENDERADDRESS',
35
+ * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',
36
+ * lease: 'lease',
37
+ * note: 'note',
38
+ * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
39
+ * rekeyTo: 'REKEYTOADDRESS',
40
+ * // You wouldn't normally set this field
41
+ * firstValidRound: 1000n,
42
+ * validityWindow: 10,
43
+ * extraFee: (1000).microAlgo(),
44
+ * staticFee: (1000).microAlgo(),
45
+ * // Max fee doesn't make sense with extraFee AND staticFee
46
+ * // already specified, but here for completeness
47
+ * maxFee: (3000).microAlgo(),
48
+ * // Signer only needed if you want to provide one,
49
+ * // generally you'd register it with AlgorandClient
50
+ * // against the sender and not need to pass it in
51
+ * signer: transactionSigner,
52
+ * maxRoundsToWaitForConfirmation: 5,
53
+ * suppressLog: true,
54
+ * })
55
+ * ```
56
+ *
57
+ * @returns The result of the transaction and the transaction that was sent
58
+ */
59
+ payment: (params: import("./composer").CommonTransactionParams & {
60
+ receiver: string;
61
+ amount: import("./amount").AlgoAmount;
62
+ closeRemainderTo?: string | undefined;
63
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
64
+ /**
65
+ * Create a new Algorand Standard Asset.
66
+ *
67
+ * The account that sends this transaction will automatically be
68
+ * opted in to the asset and will hold all units after creation.
69
+ *
70
+ * @param params The parameters for the asset creation transaction
71
+ *
72
+ * @example Basic example
73
+ * ```typescript
74
+ * await algorand.send.assetCreate({sender: "CREATORADDRESS", total: 100n})
75
+ * ```
76
+ * @example Advanced example
77
+ * ```typescript
78
+ * await algorand.send.assetCreate({
79
+ * sender: 'CREATORADDRESS',
80
+ * total: 100n,
81
+ * decimals: 2,
82
+ * assetName: 'asset',
83
+ * unitName: 'unit',
84
+ * url: 'url',
85
+ * metadataHash: 'metadataHash',
86
+ * defaultFrozen: false,
87
+ * manager: 'MANAGERADDRESS',
88
+ * reserve: 'RESERVEADDRESS',
89
+ * freeze: 'FREEZEADDRESS',
90
+ * clawback: 'CLAWBACKADDRESS',
91
+ * lease: 'lease',
92
+ * note: 'note',
93
+ * // You wouldn't normally set this field
94
+ * firstValidRound: 1000n,
95
+ * validityWindow: 10,
96
+ * extraFee: (1000).microAlgo(),
97
+ * staticFee: (1000).microAlgo(),
98
+ * // Max fee doesn't make sense with extraFee AND staticFee
99
+ * // already specified, but here for completeness
100
+ * maxFee: (3000).microAlgo(),
101
+ * // Signer only needed if you want to provide one,
102
+ * // generally you'd register it with AlgorandClient
103
+ * // against the sender and not need to pass it in
104
+ * signer: transactionSigner,
105
+ * maxRoundsToWaitForConfirmation: 5,
106
+ * suppressLog: true,
107
+ * })
108
+ * ```
109
+ * @returns The result of the transaction and the transaction that was sent
110
+ */
111
+ assetCreate: (params: AssetCreateParams & ExecuteParams) => Promise<{
112
+ assetId: bigint;
113
+ groupId: string;
114
+ txIds: string[];
115
+ returns?: import("./app").ABIReturn[] | undefined;
116
+ confirmations: algosdk.modelsv2.PendingTransactionResponse[];
117
+ transactions: algosdk.Transaction[];
118
+ confirmation: algosdk.modelsv2.PendingTransactionResponse;
119
+ transaction: algosdk.Transaction;
120
+ }>;
121
+ /**
122
+ * Configure an existing Algorand Standard Asset.
123
+ *
124
+ * **Note:** The manager, reserve, freeze, and clawback addresses
125
+ * are immutably empty if they are not set. If manager is not set then
126
+ * all fields are immutable from that point forward.
127
+ *
128
+ * @param params The parameters for the asset config transaction
129
+ *
130
+ * @example Basic example
131
+ * ```typescript
132
+ * await algorand.send.assetConfig({sender: "MANAGERADDRESS", assetId: 123456n, manager: "MANAGERADDRESS" })
133
+ * ```
134
+ * @example Advanced example
135
+ * ```typescript
136
+ * await algorand.send.assetConfig({
137
+ * sender: 'MANAGERADDRESS',
138
+ * assetId: 123456n,
139
+ * manager: 'MANAGERADDRESS',
140
+ * reserve: 'RESERVEADDRESS',
141
+ * freeze: 'FREEZEADDRESS',
142
+ * clawback: 'CLAWBACKADDRESS',
143
+ * lease: 'lease',
144
+ * note: 'note',
145
+ * // You wouldn't normally set this field
146
+ * firstValidRound: 1000n,
147
+ * validityWindow: 10,
148
+ * extraFee: (1000).microAlgo(),
149
+ * staticFee: (1000).microAlgo(),
150
+ * // Max fee doesn't make sense with extraFee AND staticFee
151
+ * // already specified, but here for completeness
152
+ * maxFee: (3000).microAlgo(),
153
+ * // Signer only needed if you want to provide one,
154
+ * // generally you'd register it with AlgorandClient
155
+ * // against the sender and not need to pass it in
156
+ * signer: transactionSigner,
157
+ * maxRoundsToWaitForConfirmation: 5,
158
+ * suppressLog: true,
159
+ * })
160
+ * ```
161
+ * @returns The result of the transaction and the transaction that was sent
162
+ */
163
+ assetConfig: (params: import("./composer").CommonTransactionParams & {
164
+ assetId: bigint;
165
+ manager: string | undefined;
166
+ reserve?: string | undefined;
167
+ freeze?: string | undefined;
168
+ clawback?: string | undefined;
169
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
170
+ /**
171
+ * Freeze or unfreeze an Algorand Standard Asset for an account.
172
+ *
173
+ * @param params The parameters for the asset freeze transaction
174
+ *
175
+ * @example Basic example
176
+ * ```typescript
177
+ * await algorand.send.assetFreeze({sender: "MANAGERADDRESS", assetId: 123456n, account: "ACCOUNTADDRESS", frozen: true })
178
+ * ```
179
+ * @example Advanced example
180
+ * ```typescript
181
+ * await algorand.send.assetFreeze({
182
+ * sender: 'MANAGERADDRESS',
183
+ * assetId: 123456n,
184
+ * account: 'ACCOUNTADDRESS',
185
+ * frozen: true,
186
+ * lease: 'lease',
187
+ * note: 'note',
188
+ * // You wouldn't normally set this field
189
+ * firstValidRound: 1000n,
190
+ * validityWindow: 10,
191
+ * extraFee: (1000).microAlgo(),
192
+ * staticFee: (1000).microAlgo(),
193
+ * // Max fee doesn't make sense with extraFee AND staticFee
194
+ * // already specified, but here for completeness
195
+ * maxFee: (3000).microAlgo(),
196
+ * // Signer only needed if you want to provide one,
197
+ * // generally you'd register it with AlgorandClient
198
+ * // against the sender and not need to pass it in
199
+ * signer: transactionSigner,
200
+ * maxRoundsToWaitForConfirmation: 5,
201
+ * suppressLog: true,
202
+ * })
203
+ * ```
204
+ * @returns The result of the transaction and the transaction that was sent
205
+ */
206
+ assetFreeze: (params: import("./composer").CommonTransactionParams & {
207
+ assetId: bigint;
208
+ account: string;
209
+ frozen: boolean;
210
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
211
+ /**
212
+ * Destroys an Algorand Standard Asset.
213
+ *
214
+ * Created assets can be destroyed only by the asset manager account.
215
+ * All of the assets must be owned by the creator of the asset before
216
+ * the asset can be deleted.
217
+ *
218
+ * @param params The parameters for the asset destroy transaction
219
+ *
220
+ * @example Basic example
221
+ * ```typescript
222
+ * await algorand.send.assetDestroy({sender: "MANAGERADDRESS", assetId: 123456n })
223
+ * ```
224
+ * @example Advanced example
225
+ * ```typescript
226
+ * await algorand.send.assetDestroy({
227
+ * sender: 'MANAGERADDRESS',
228
+ * assetId: 123456n,
229
+ * lease: 'lease',
230
+ * note: 'note',
231
+ * // You wouldn't normally set this field
232
+ * firstValidRound: 1000n,
233
+ * validityWindow: 10,
234
+ * extraFee: (1000).microAlgo(),
235
+ * staticFee: (1000).microAlgo(),
236
+ * // Max fee doesn't make sense with extraFee AND staticFee
237
+ * // already specified, but here for completeness
238
+ * maxFee: (3000).microAlgo(),
239
+ * // Signer only needed if you want to provide one,
240
+ * // generally you'd register it with AlgorandClient
241
+ * // against the sender and not need to pass it in
242
+ * signer: transactionSigner,
243
+ * maxRoundsToWaitForConfirmation: 5,
244
+ * suppressLog: true,
245
+ * })
246
+ * ```
247
+ * @returns The result of the transaction and the transaction that was sent
248
+ */
249
+ assetDestroy: (params: import("./composer").CommonTransactionParams & {
250
+ assetId: bigint;
251
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
252
+ /**
253
+ * Transfer an Algorand Standard Asset.
254
+ *
255
+ * @param params The parameters for the asset transfer transaction
256
+ *
257
+ * @example Basic example
258
+ * ```typescript
259
+ * await algorand.send.assetTransfer({sender: "HOLDERADDRESS", assetId: 123456n, amount: 1n, receiver: "RECEIVERADDRESS" })
260
+ * ```
261
+ * @example Advanced example (with clawback)
262
+ * ```typescript
263
+ * await algorand.send.assetTransfer({
264
+ * sender: 'CLAWBACKADDRESS',
265
+ * assetId: 123456n,
266
+ * amount: 1n,
267
+ * receiver: 'RECEIVERADDRESS',
268
+ * clawbackTarget: 'HOLDERADDRESS',
269
+ * // This field needs to be used with caution
270
+ * closeAssetTo: 'ADDRESSTOCLOSETO'
271
+ * lease: 'lease',
272
+ * note: 'note',
273
+ * // You wouldn't normally set this field
274
+ * firstValidRound: 1000n,
275
+ * validityWindow: 10,
276
+ * extraFee: (1000).microAlgo(),
277
+ * staticFee: (1000).microAlgo(),
278
+ * // Max fee doesn't make sense with extraFee AND staticFee
279
+ * // already specified, but here for completeness
280
+ * maxFee: (3000).microAlgo(),
281
+ * // Signer only needed if you want to provide one,
282
+ * // generally you'd register it with AlgorandClient
283
+ * // against the sender and not need to pass it in
284
+ * signer: transactionSigner,
285
+ * maxRoundsToWaitForConfirmation: 5,
286
+ * suppressLog: true,
287
+ * })
288
+ * ```
289
+ * @returns The result of the transaction and the transaction that was sent
290
+ */
291
+ assetTransfer: (params: import("./composer").CommonTransactionParams & {
292
+ assetId: bigint;
293
+ amount: bigint;
294
+ receiver: string;
295
+ clawbackTarget?: string | undefined;
296
+ closeAssetTo?: string | undefined;
297
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
298
+ /**
299
+ * Opt an account into an Algorand Standard Asset.
300
+ *
301
+ * @param params The parameters for the asset opt-in transaction
302
+ *
303
+ * @example Basic example
304
+ * ```typescript
305
+ * await algorand.send.assetOptIn({sender: "SENDERADDRESS", assetId: 123456n })
306
+ * ```
307
+ * @example Advanced example
308
+ * ```typescript
309
+ * await algorand.send.assetOptIn({
310
+ * sender: 'SENDERADDRESS',
311
+ * assetId: 123456n,
312
+ * lease: 'lease',
313
+ * note: 'note',
314
+ * // You wouldn't normally set this field
315
+ * firstValidRound: 1000n,
316
+ * validityWindow: 10,
317
+ * extraFee: (1000).microAlgo(),
318
+ * staticFee: (1000).microAlgo(),
319
+ * // Max fee doesn't make sense with extraFee AND staticFee
320
+ * // already specified, but here for completeness
321
+ * maxFee: (3000).microAlgo(),
322
+ * // Signer only needed if you want to provide one,
323
+ * // generally you'd register it with AlgorandClient
324
+ * // against the sender and not need to pass it in
325
+ * signer: transactionSigner,
326
+ * maxRoundsToWaitForConfirmation: 5,
327
+ * suppressLog: true,
328
+ * })
329
+ * ```
330
+ * @returns The result of the transaction and the transaction that was sent
331
+ */
332
+ assetOptIn: (params: import("./composer").CommonTransactionParams & {
333
+ assetId: bigint;
334
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
335
+ /**
336
+ * Opt an account out of an Algorand Standard Asset.
337
+ *
338
+ * *Note:* If the account has a balance of the asset,
339
+ * it will not be able to opt-out unless `ensureZeroBalance`
340
+ * is set to `false` (but then the account will lose the assets).
341
+ *
342
+ * @param params The parameters for the asset opt-out transaction
343
+ *
344
+ * @example Basic example (without creator)
345
+ * ```typescript
346
+ * await algorand.send.assetOptOut({sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
347
+ * ```
348
+ * @example Basic example (with creator)
349
+ * ```typescript
350
+ * await algorand.send.assetOptOut({sender: "SENDERADDRESS", creator: "CREATORADDRESS", assetId: 123456n, ensureZeroBalance: true })
351
+ * ```
352
+ * @example Advanced example
353
+ * ```typescript
354
+ * await algorand.send.assetOptOut({
355
+ * sender: 'SENDERADDRESS',
356
+ * assetId: 123456n,
357
+ * creator: 'CREATORADDRESS',
358
+ * ensureZeroBalance: true,
359
+ * lease: 'lease',
360
+ * note: 'note',
361
+ * // You wouldn't normally set this field
362
+ * firstValidRound: 1000n,
363
+ * validityWindow: 10,
364
+ * extraFee: (1000).microAlgo(),
365
+ * staticFee: (1000).microAlgo(),
366
+ * // Max fee doesn't make sense with extraFee AND staticFee
367
+ * // already specified, but here for completeness
368
+ * maxFee: (3000).microAlgo(),
369
+ * // Signer only needed if you want to provide one,
370
+ * // generally you'd register it with AlgorandClient
371
+ * // against the sender and not need to pass it in
372
+ * signer: transactionSigner,
373
+ * maxRoundsToWaitForConfirmation: 5,
374
+ * suppressLog: true,
375
+ * })
376
+ * ```
377
+ * @returns The result of the transaction and the transaction that was sent
378
+ */
379
+ assetOptOut: (params: Omit<AssetOptOutParams, 'creator'> & {
380
+ /** Optional asset creator account address; if not specified it will be retrieved from algod */
381
+ creator?: string;
382
+ /** Whether or not to check if the account has a zero balance first or not.
383
+ *
384
+ * If this is set to `true` and the account has an asset balance it will throw an error.
385
+ *
386
+ * If this is set to `false` and the account has an asset balance it will lose those assets to the asset creator.
387
+ */
388
+ ensureZeroBalance: boolean;
389
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
390
+ /**
391
+ * Call a smart contract.
392
+ *
393
+ * Note: you may prefer to use `algorandClient.client` to get an app client for more advanced functionality.
394
+ */
395
+ appCall: (params: import("./composer").CommonTransactionParams & {
396
+ onComplete?: algosdk.OnApplicationComplete | undefined;
397
+ appId?: bigint | undefined;
398
+ approvalProgram?: Uint8Array | undefined;
399
+ clearProgram?: Uint8Array | undefined;
400
+ schema?: {
401
+ globalUints: number;
402
+ globalByteSlices: number;
403
+ localUints: number;
404
+ localByteSlices: number;
405
+ } | undefined;
406
+ args?: Uint8Array[] | undefined;
407
+ accountReferences?: string[] | undefined;
408
+ appReferences?: bigint[] | undefined;
409
+ assetReferences?: bigint[] | undefined;
410
+ extraPages?: number | undefined;
411
+ boxReferences?: algosdk.BoxReference[] | undefined;
412
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
413
+ /**
414
+ * Call a smart contract ABI method.
415
+ *
416
+ * Note: you may prefer to use `algorandClient.client` to get an app client for more advanced functionality.
417
+ */
418
+ methodCall: (params: import("./composer").CommonTransactionParams & Omit<import("./composer").AppCallParams, "args"> & {
419
+ appId: bigint;
420
+ method: algosdk.ABIMethod;
421
+ args?: (algosdk.TransactionWithSigner | algosdk.Transaction | algosdk.ABIValue | Promise<algosdk.Transaction> | import("./composer").MethodCallParams)[] | undefined;
422
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
423
+ /** Register an online key. */
424
+ onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
425
+ voteKey: Uint8Array;
426
+ selectionKey: Uint8Array;
427
+ voteFirst: bigint;
428
+ voteLast: bigint;
429
+ voteKeyDilution: bigint;
430
+ stateProofKey?: Uint8Array | undefined;
431
+ } & ExecuteParams) => Promise<SendSingleTransactionResult>;
432
+ }
433
+ //# sourceMappingURL=algorand-client-transaction-sender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algorand-client-transaction-sender.d.ts","sourceRoot":"","sources":["../../src/types/algorand-client-transaction-sender.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AACjG,OAAO,EAAE,0BAA0B,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAA;AAIhG,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,oCAAoC,GAAG,0BAA0B,CAAA;AAE3G,8DAA8D;AAC9D,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,aAAa,CAAc;IAEnC;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,eAAe,EAAE,YAAY,EAAE,YAAY;IAKvE,OAAO,CAAC,KAAK;IAmCb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,OAAO;;;;0BAtE2B,QAAQ,2BAA2B,CAAC,CAyEpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,WAAW,WAAkB,iBAAiB,GAAG,aAAa;;;;;;;;;OAM7D;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,WAAW;;;;;;0BA1KuB,QAAQ,2BAA2B,CAAC,CA4KpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,WAAW;;;;0BAjNuB,QAAQ,2BAA2B,CAAC,CAmNpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,YAAY;;0BA1PsB,QAAQ,2BAA2B,CAAC,CA4PpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,aAAa;;;;;;0BApSqB,QAAQ,2BAA2B,CAAC,CAuSpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,UAAU;;0BA1UwB,QAAQ,2BAA2B,CAAC,CA4UpE;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,WAAW,WACD,KAAK,iBAAiB,EAAE,SAAS,CAAC,GAAG;QAC3C,+FAA+F;QAC/F,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB;;;;;WAKG;QACH,iBAAiB,EAAE,OAAO,CAAA;KAC3B,GAAG,aAAa,0CAqBlB;IACD;;;;OAIG;IACH,OAAO;;;;;;;;;;;;;;;;;0BA/Z2B,QAAQ,2BAA2B,CAAC,CA+Z7B;IACzC;;;;OAIG;IACH,UAAU;;;;0BArawB,QAAQ,2BAA2B,CAAC,CAqavB;IAC/C,8BAA8B;IAC9B,qBAAqB;;;;;;;0BAvaa,QAAQ,2BAA2B,CAAC,CAyapE;CACH"}