@algorandfoundation/algokit-utils 10.0.0-alpha.1 → 10.0.0-alpha.3
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 +27 -5
- package/algo25/index.d.ts +2 -0
- package/algo25/index.js +9 -0
- package/algo25/index.mjs +3 -0
- package/package.json +1 -1
- package/packages/algo25/src/english.js.map +1 -1
- package/packages/algo25/src/english.mjs.map +1 -1
- package/packages/algo25/src/index.d.ts +40 -0
- package/packages/algo25/src/index.js +44 -0
- package/packages/algo25/src/index.js.map +1 -1
- package/packages/algo25/src/index.mjs +39 -1
- package/packages/algo25/src/index.mjs.map +1 -1
- package/types/account-manager.js +1 -1
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +1 -1
- package/types/account-manager.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +82 -82
- package/types/algorand-client-transaction-sender.d.ts +84 -84
- package/types/app-client.d.ts +259 -259
- package/types/app-factory.d.ts +87 -87
- package/types/composer.d.ts +1 -0
- package/types/composer.js +11 -0
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +11 -0
- package/types/composer.mjs.map +1 -1
package/types/app-factory.d.ts
CHANGED
|
@@ -171,21 +171,21 @@ declare class AppFactory {
|
|
|
171
171
|
get params(): {
|
|
172
172
|
/** Return params for a create ABI call, including deploy-time TEAL template replacements and compilation if provided */
|
|
173
173
|
create: (params: {
|
|
174
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
175
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
174
176
|
note?: string | Uint8Array | undefined;
|
|
175
|
-
maxFee?: AlgoAmount | undefined;
|
|
176
177
|
lease?: string | Uint8Array | undefined;
|
|
177
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
178
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
179
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
180
178
|
staticFee?: AlgoAmount | undefined;
|
|
181
179
|
extraFee?: AlgoAmount | undefined;
|
|
180
|
+
maxFee?: AlgoAmount | undefined;
|
|
182
181
|
validityWindow?: number | bigint | undefined;
|
|
183
182
|
firstValidRound?: bigint | undefined;
|
|
184
183
|
lastValidRound?: bigint | undefined;
|
|
184
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
185
185
|
accountReferences?: ReadableAddress[] | undefined;
|
|
186
186
|
appReferences?: bigint[] | undefined;
|
|
187
187
|
assetReferences?: bigint[] | undefined;
|
|
188
|
-
boxReferences?: (
|
|
188
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
189
189
|
accessReferences?: AccessReference[] | undefined;
|
|
190
190
|
rejectVersion?: number | undefined;
|
|
191
191
|
sender?: ReadableAddress | undefined;
|
|
@@ -219,21 +219,21 @@ declare class AppFactory {
|
|
|
219
219
|
};
|
|
220
220
|
approvalProgram: Uint8Array;
|
|
221
221
|
clearStateProgram: Uint8Array;
|
|
222
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
223
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
222
224
|
note?: string | Uint8Array | undefined;
|
|
223
|
-
maxFee?: AlgoAmount | undefined;
|
|
224
225
|
lease?: string | Uint8Array | undefined;
|
|
225
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
226
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
227
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
228
226
|
staticFee?: AlgoAmount | undefined;
|
|
229
227
|
extraFee?: AlgoAmount | undefined;
|
|
228
|
+
maxFee?: AlgoAmount | undefined;
|
|
230
229
|
validityWindow?: number | bigint | undefined;
|
|
231
230
|
firstValidRound?: bigint | undefined;
|
|
232
231
|
lastValidRound?: bigint | undefined;
|
|
232
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
233
233
|
accountReferences?: ReadableAddress[] | undefined;
|
|
234
234
|
appReferences?: bigint[] | undefined;
|
|
235
235
|
assetReferences?: bigint[] | undefined;
|
|
236
|
-
boxReferences?: (
|
|
236
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
237
237
|
accessReferences?: AccessReference[] | undefined;
|
|
238
238
|
rejectVersion?: number | undefined;
|
|
239
239
|
sender?: ReadableAddress | undefined;
|
|
@@ -246,24 +246,24 @@ declare class AppFactory {
|
|
|
246
246
|
sender: Address;
|
|
247
247
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
248
248
|
method: ABIMethod;
|
|
249
|
-
args: (
|
|
250
|
-
|
|
251
|
-
note?: string | Uint8Array | undefined;
|
|
252
|
-
maxFee?: AlgoAmount | undefined;
|
|
249
|
+
args: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
250
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
253
251
|
sender: SendingAddress;
|
|
254
|
-
lease?: string | Uint8Array | undefined;
|
|
255
252
|
rekeyTo?: ReadableAddress | undefined;
|
|
256
|
-
|
|
257
|
-
|
|
253
|
+
note?: string | Uint8Array | undefined;
|
|
254
|
+
lease?: string | Uint8Array | undefined;
|
|
258
255
|
staticFee?: AlgoAmount | undefined;
|
|
259
256
|
extraFee?: AlgoAmount | undefined;
|
|
257
|
+
maxFee?: AlgoAmount | undefined;
|
|
260
258
|
validityWindow?: number | bigint | undefined;
|
|
261
259
|
firstValidRound?: bigint | undefined;
|
|
262
260
|
lastValidRound?: bigint | undefined;
|
|
261
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
262
|
+
args?: Uint8Array[] | undefined;
|
|
263
263
|
accountReferences?: ReadableAddress[] | undefined;
|
|
264
264
|
appReferences?: bigint[] | undefined;
|
|
265
265
|
assetReferences?: bigint[] | undefined;
|
|
266
|
-
boxReferences?: (
|
|
266
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
267
267
|
accessReferences?: AccessReference[] | undefined;
|
|
268
268
|
rejectVersion?: number | undefined;
|
|
269
269
|
approvalProgram: string | Uint8Array;
|
|
@@ -293,7 +293,7 @@ declare class AppFactory {
|
|
|
293
293
|
accountReferences?: ReadableAddress[] | undefined;
|
|
294
294
|
appReferences?: bigint[] | undefined;
|
|
295
295
|
assetReferences?: bigint[] | undefined;
|
|
296
|
-
boxReferences?: (
|
|
296
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
297
297
|
accessReferences?: AccessReference[] | undefined;
|
|
298
298
|
rejectVersion?: number | undefined;
|
|
299
299
|
approvalProgram: string | Uint8Array;
|
|
@@ -303,42 +303,42 @@ declare class AppFactory {
|
|
|
303
303
|
}>;
|
|
304
304
|
/** Return params for a deployment update ABI call */
|
|
305
305
|
deployUpdate: (params: {
|
|
306
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
307
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
306
308
|
note?: string | Uint8Array | undefined;
|
|
307
|
-
maxFee?: AlgoAmount | undefined;
|
|
308
309
|
lease?: string | Uint8Array | undefined;
|
|
309
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
310
|
-
onComplete?: OnApplicationComplete | undefined;
|
|
311
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
312
310
|
staticFee?: AlgoAmount | undefined;
|
|
313
311
|
extraFee?: AlgoAmount | undefined;
|
|
312
|
+
maxFee?: AlgoAmount | undefined;
|
|
314
313
|
validityWindow?: number | bigint | undefined;
|
|
315
314
|
firstValidRound?: bigint | undefined;
|
|
316
315
|
lastValidRound?: bigint | undefined;
|
|
316
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
317
317
|
accountReferences?: ReadableAddress[] | undefined;
|
|
318
318
|
appReferences?: bigint[] | undefined;
|
|
319
319
|
assetReferences?: bigint[] | undefined;
|
|
320
|
-
boxReferences?: (
|
|
320
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
321
321
|
accessReferences?: AccessReference[] | undefined;
|
|
322
322
|
rejectVersion?: number | undefined;
|
|
323
323
|
sender?: ReadableAddress | undefined;
|
|
324
324
|
method: string;
|
|
325
325
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
326
326
|
}) => {
|
|
327
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
328
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
327
329
|
note?: string | Uint8Array | undefined;
|
|
328
|
-
maxFee?: AlgoAmount | undefined;
|
|
329
330
|
lease?: string | Uint8Array | undefined;
|
|
330
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
331
|
-
onComplete?: OnApplicationComplete | undefined;
|
|
332
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
333
331
|
staticFee?: AlgoAmount | undefined;
|
|
334
332
|
extraFee?: AlgoAmount | undefined;
|
|
333
|
+
maxFee?: AlgoAmount | undefined;
|
|
335
334
|
validityWindow?: number | bigint | undefined;
|
|
336
335
|
firstValidRound?: bigint | undefined;
|
|
337
336
|
lastValidRound?: bigint | undefined;
|
|
337
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
338
338
|
accountReferences?: ReadableAddress[] | undefined;
|
|
339
339
|
appReferences?: bigint[] | undefined;
|
|
340
340
|
assetReferences?: bigint[] | undefined;
|
|
341
|
-
boxReferences?: (
|
|
341
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
342
342
|
accessReferences?: AccessReference[] | undefined;
|
|
343
343
|
rejectVersion?: number | undefined;
|
|
344
344
|
sender?: ReadableAddress | undefined;
|
|
@@ -348,24 +348,24 @@ declare class AppFactory {
|
|
|
348
348
|
sender: Address;
|
|
349
349
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
350
350
|
method: ABIMethod;
|
|
351
|
-
args: (
|
|
352
|
-
|
|
353
|
-
note?: string | Uint8Array | undefined;
|
|
354
|
-
maxFee?: AlgoAmount | undefined;
|
|
351
|
+
args: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
352
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
355
353
|
sender: SendingAddress;
|
|
356
|
-
lease?: string | Uint8Array | undefined;
|
|
357
354
|
rekeyTo?: ReadableAddress | undefined;
|
|
358
|
-
|
|
359
|
-
|
|
355
|
+
note?: string | Uint8Array | undefined;
|
|
356
|
+
lease?: string | Uint8Array | undefined;
|
|
360
357
|
staticFee?: AlgoAmount | undefined;
|
|
361
358
|
extraFee?: AlgoAmount | undefined;
|
|
359
|
+
maxFee?: AlgoAmount | undefined;
|
|
362
360
|
validityWindow?: number | bigint | undefined;
|
|
363
361
|
firstValidRound?: bigint | undefined;
|
|
364
362
|
lastValidRound?: bigint | undefined;
|
|
363
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
364
|
+
args?: Uint8Array[] | undefined;
|
|
365
365
|
accountReferences?: ReadableAddress[] | undefined;
|
|
366
366
|
appReferences?: bigint[] | undefined;
|
|
367
367
|
assetReferences?: bigint[] | undefined;
|
|
368
|
-
boxReferences?: (
|
|
368
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
369
369
|
accessReferences?: AccessReference[] | undefined;
|
|
370
370
|
rejectVersion?: number | undefined;
|
|
371
371
|
approvalProgram: string | Uint8Array;
|
|
@@ -395,7 +395,7 @@ declare class AppFactory {
|
|
|
395
395
|
accountReferences?: ReadableAddress[] | undefined;
|
|
396
396
|
appReferences?: bigint[] | undefined;
|
|
397
397
|
assetReferences?: bigint[] | undefined;
|
|
398
|
-
boxReferences?: (
|
|
398
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
399
399
|
accessReferences?: AccessReference[] | undefined;
|
|
400
400
|
rejectVersion?: number | undefined;
|
|
401
401
|
approvalProgram: string | Uint8Array;
|
|
@@ -405,42 +405,42 @@ declare class AppFactory {
|
|
|
405
405
|
};
|
|
406
406
|
/** Return params for a deployment delete ABI call */
|
|
407
407
|
deployDelete: (params: {
|
|
408
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
409
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
408
410
|
note?: string | Uint8Array | undefined;
|
|
409
|
-
maxFee?: AlgoAmount | undefined;
|
|
410
411
|
lease?: string | Uint8Array | undefined;
|
|
411
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
412
|
-
onComplete?: OnApplicationComplete | undefined;
|
|
413
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
414
412
|
staticFee?: AlgoAmount | undefined;
|
|
415
413
|
extraFee?: AlgoAmount | undefined;
|
|
414
|
+
maxFee?: AlgoAmount | undefined;
|
|
416
415
|
validityWindow?: number | bigint | undefined;
|
|
417
416
|
firstValidRound?: bigint | undefined;
|
|
418
417
|
lastValidRound?: bigint | undefined;
|
|
418
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
419
419
|
accountReferences?: ReadableAddress[] | undefined;
|
|
420
420
|
appReferences?: bigint[] | undefined;
|
|
421
421
|
assetReferences?: bigint[] | undefined;
|
|
422
|
-
boxReferences?: (
|
|
422
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
423
423
|
accessReferences?: AccessReference[] | undefined;
|
|
424
424
|
rejectVersion?: number | undefined;
|
|
425
425
|
sender?: ReadableAddress | undefined;
|
|
426
426
|
method: string;
|
|
427
427
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
428
428
|
}) => {
|
|
429
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
430
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
429
431
|
note?: string | Uint8Array | undefined;
|
|
430
|
-
maxFee?: AlgoAmount | undefined;
|
|
431
432
|
lease?: string | Uint8Array | undefined;
|
|
432
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
433
|
-
onComplete?: OnApplicationComplete | undefined;
|
|
434
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
435
433
|
staticFee?: AlgoAmount | undefined;
|
|
436
434
|
extraFee?: AlgoAmount | undefined;
|
|
435
|
+
maxFee?: AlgoAmount | undefined;
|
|
437
436
|
validityWindow?: number | bigint | undefined;
|
|
438
437
|
firstValidRound?: bigint | undefined;
|
|
439
438
|
lastValidRound?: bigint | undefined;
|
|
439
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
440
440
|
accountReferences?: ReadableAddress[] | undefined;
|
|
441
441
|
appReferences?: bigint[] | undefined;
|
|
442
442
|
assetReferences?: bigint[] | undefined;
|
|
443
|
-
boxReferences?: (
|
|
443
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
444
444
|
accessReferences?: AccessReference[] | undefined;
|
|
445
445
|
rejectVersion?: number | undefined;
|
|
446
446
|
sender?: ReadableAddress | undefined;
|
|
@@ -450,24 +450,24 @@ declare class AppFactory {
|
|
|
450
450
|
sender: Address;
|
|
451
451
|
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
452
452
|
method: ABIMethod;
|
|
453
|
-
args: (
|
|
454
|
-
|
|
455
|
-
note?: string | Uint8Array | undefined;
|
|
456
|
-
maxFee?: AlgoAmount | undefined;
|
|
453
|
+
args: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
454
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
457
455
|
sender: SendingAddress;
|
|
458
|
-
lease?: string | Uint8Array | undefined;
|
|
459
456
|
rekeyTo?: ReadableAddress | undefined;
|
|
460
|
-
|
|
461
|
-
|
|
457
|
+
note?: string | Uint8Array | undefined;
|
|
458
|
+
lease?: string | Uint8Array | undefined;
|
|
462
459
|
staticFee?: AlgoAmount | undefined;
|
|
463
460
|
extraFee?: AlgoAmount | undefined;
|
|
461
|
+
maxFee?: AlgoAmount | undefined;
|
|
464
462
|
validityWindow?: number | bigint | undefined;
|
|
465
463
|
firstValidRound?: bigint | undefined;
|
|
466
464
|
lastValidRound?: bigint | undefined;
|
|
465
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
466
|
+
args?: Uint8Array[] | undefined;
|
|
467
467
|
accountReferences?: ReadableAddress[] | undefined;
|
|
468
468
|
appReferences?: bigint[] | undefined;
|
|
469
469
|
assetReferences?: bigint[] | undefined;
|
|
470
|
-
boxReferences?: (
|
|
470
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
471
471
|
accessReferences?: AccessReference[] | undefined;
|
|
472
472
|
rejectVersion?: number | undefined;
|
|
473
473
|
approvalProgram: string | Uint8Array;
|
|
@@ -497,7 +497,7 @@ declare class AppFactory {
|
|
|
497
497
|
accountReferences?: ReadableAddress[] | undefined;
|
|
498
498
|
appReferences?: bigint[] | undefined;
|
|
499
499
|
assetReferences?: bigint[] | undefined;
|
|
500
|
-
boxReferences?: (
|
|
500
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
501
501
|
accessReferences?: AccessReference[] | undefined;
|
|
502
502
|
rejectVersion?: number | undefined;
|
|
503
503
|
approvalProgram: string | Uint8Array;
|
|
@@ -508,21 +508,21 @@ declare class AppFactory {
|
|
|
508
508
|
bare: {
|
|
509
509
|
/** Return params for a create bare call, including deploy-time TEAL template replacements and compilation if provided */
|
|
510
510
|
create: (params?: {
|
|
511
|
-
|
|
511
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
512
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
512
513
|
note?: string | Uint8Array | undefined;
|
|
513
|
-
maxFee?: AlgoAmount | undefined;
|
|
514
514
|
lease?: string | Uint8Array | undefined;
|
|
515
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
516
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
517
515
|
staticFee?: AlgoAmount | undefined;
|
|
518
516
|
extraFee?: AlgoAmount | undefined;
|
|
517
|
+
maxFee?: AlgoAmount | undefined;
|
|
519
518
|
validityWindow?: number | bigint | undefined;
|
|
520
519
|
firstValidRound?: bigint | undefined;
|
|
521
520
|
lastValidRound?: bigint | undefined;
|
|
521
|
+
args?: Uint8Array[] | undefined;
|
|
522
522
|
accountReferences?: ReadableAddress[] | undefined;
|
|
523
523
|
appReferences?: bigint[] | undefined;
|
|
524
524
|
assetReferences?: bigint[] | undefined;
|
|
525
|
-
boxReferences?: (
|
|
525
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
526
526
|
accessReferences?: AccessReference[] | undefined;
|
|
527
527
|
rejectVersion?: number | undefined;
|
|
528
528
|
sender?: ReadableAddress | undefined;
|
|
@@ -557,21 +557,21 @@ declare class AppFactory {
|
|
|
557
557
|
/** The number of byte slices saved in local state. */
|
|
558
558
|
localByteSlices: number;
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
561
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
561
562
|
note?: string | Uint8Array | undefined;
|
|
562
|
-
maxFee?: AlgoAmount | undefined;
|
|
563
563
|
lease?: string | Uint8Array | undefined;
|
|
564
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
565
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
566
564
|
staticFee?: AlgoAmount | undefined;
|
|
567
565
|
extraFee?: AlgoAmount | undefined;
|
|
566
|
+
maxFee?: AlgoAmount | undefined;
|
|
568
567
|
validityWindow?: number | bigint | undefined;
|
|
569
568
|
firstValidRound?: bigint | undefined;
|
|
570
569
|
lastValidRound?: bigint | undefined;
|
|
570
|
+
args?: Uint8Array[] | undefined;
|
|
571
571
|
accountReferences?: ReadableAddress[] | undefined;
|
|
572
572
|
appReferences?: bigint[] | undefined;
|
|
573
573
|
assetReferences?: bigint[] | undefined;
|
|
574
|
-
boxReferences?: (
|
|
574
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
575
575
|
accessReferences?: AccessReference[] | undefined;
|
|
576
576
|
rejectVersion?: number | undefined;
|
|
577
577
|
sender?: ReadableAddress | undefined;
|
|
@@ -586,40 +586,40 @@ declare class AppFactory {
|
|
|
586
586
|
}>;
|
|
587
587
|
/** Return params for a deployment update bare call */
|
|
588
588
|
deployUpdate: (params?: {
|
|
589
|
-
|
|
589
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
590
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
590
591
|
note?: string | Uint8Array | undefined;
|
|
591
|
-
maxFee?: AlgoAmount | undefined;
|
|
592
592
|
lease?: string | Uint8Array | undefined;
|
|
593
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
594
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
595
593
|
staticFee?: AlgoAmount | undefined;
|
|
596
594
|
extraFee?: AlgoAmount | undefined;
|
|
595
|
+
maxFee?: AlgoAmount | undefined;
|
|
597
596
|
validityWindow?: number | bigint | undefined;
|
|
598
597
|
firstValidRound?: bigint | undefined;
|
|
599
598
|
lastValidRound?: bigint | undefined;
|
|
599
|
+
args?: Uint8Array[] | undefined;
|
|
600
600
|
accountReferences?: ReadableAddress[] | undefined;
|
|
601
601
|
appReferences?: bigint[] | undefined;
|
|
602
602
|
assetReferences?: bigint[] | undefined;
|
|
603
|
-
boxReferences?: (
|
|
603
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
604
604
|
accessReferences?: AccessReference[] | undefined;
|
|
605
605
|
rejectVersion?: number | undefined;
|
|
606
606
|
sender?: ReadableAddress | undefined;
|
|
607
607
|
} | undefined) => {
|
|
608
|
-
|
|
608
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
609
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
609
610
|
note?: string | Uint8Array | undefined;
|
|
610
|
-
maxFee?: AlgoAmount | undefined;
|
|
611
611
|
lease?: string | Uint8Array | undefined;
|
|
612
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
613
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
614
612
|
staticFee?: AlgoAmount | undefined;
|
|
615
613
|
extraFee?: AlgoAmount | undefined;
|
|
614
|
+
maxFee?: AlgoAmount | undefined;
|
|
616
615
|
validityWindow?: number | bigint | undefined;
|
|
617
616
|
firstValidRound?: bigint | undefined;
|
|
618
617
|
lastValidRound?: bigint | undefined;
|
|
618
|
+
args?: Uint8Array[] | undefined;
|
|
619
619
|
accountReferences?: ReadableAddress[] | undefined;
|
|
620
620
|
appReferences?: bigint[] | undefined;
|
|
621
621
|
assetReferences?: bigint[] | undefined;
|
|
622
|
-
boxReferences?: (
|
|
622
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
623
623
|
accessReferences?: AccessReference[] | undefined;
|
|
624
624
|
rejectVersion?: number | undefined;
|
|
625
625
|
sender?: ReadableAddress | undefined;
|
|
@@ -630,40 +630,40 @@ declare class AppFactory {
|
|
|
630
630
|
};
|
|
631
631
|
/** Return params for a deployment delete bare call */
|
|
632
632
|
deployDelete: (params?: {
|
|
633
|
-
|
|
633
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
634
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
634
635
|
note?: string | Uint8Array | undefined;
|
|
635
|
-
maxFee?: AlgoAmount | undefined;
|
|
636
636
|
lease?: string | Uint8Array | undefined;
|
|
637
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
638
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
639
637
|
staticFee?: AlgoAmount | undefined;
|
|
640
638
|
extraFee?: AlgoAmount | undefined;
|
|
639
|
+
maxFee?: AlgoAmount | undefined;
|
|
641
640
|
validityWindow?: number | bigint | undefined;
|
|
642
641
|
firstValidRound?: bigint | undefined;
|
|
643
642
|
lastValidRound?: bigint | undefined;
|
|
643
|
+
args?: Uint8Array[] | undefined;
|
|
644
644
|
accountReferences?: ReadableAddress[] | undefined;
|
|
645
645
|
appReferences?: bigint[] | undefined;
|
|
646
646
|
assetReferences?: bigint[] | undefined;
|
|
647
|
-
boxReferences?: (
|
|
647
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
648
648
|
accessReferences?: AccessReference[] | undefined;
|
|
649
649
|
rejectVersion?: number | undefined;
|
|
650
650
|
sender?: ReadableAddress | undefined;
|
|
651
651
|
} | undefined) => {
|
|
652
|
-
|
|
652
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
653
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
653
654
|
note?: string | Uint8Array | undefined;
|
|
654
|
-
maxFee?: AlgoAmount | undefined;
|
|
655
655
|
lease?: string | Uint8Array | undefined;
|
|
656
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
657
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
658
656
|
staticFee?: AlgoAmount | undefined;
|
|
659
657
|
extraFee?: AlgoAmount | undefined;
|
|
658
|
+
maxFee?: AlgoAmount | undefined;
|
|
660
659
|
validityWindow?: number | bigint | undefined;
|
|
661
660
|
firstValidRound?: bigint | undefined;
|
|
662
661
|
lastValidRound?: bigint | undefined;
|
|
662
|
+
args?: Uint8Array[] | undefined;
|
|
663
663
|
accountReferences?: ReadableAddress[] | undefined;
|
|
664
664
|
appReferences?: bigint[] | undefined;
|
|
665
665
|
assetReferences?: bigint[] | undefined;
|
|
666
|
-
boxReferences?: (
|
|
666
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
667
667
|
accessReferences?: AccessReference[] | undefined;
|
|
668
668
|
rejectVersion?: number | undefined;
|
|
669
669
|
sender?: ReadableAddress | undefined;
|
package/types/composer.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ declare class TransactionComposer {
|
|
|
102
102
|
private signedTransactions?;
|
|
103
103
|
private rawBuildTransactions?;
|
|
104
104
|
private transformError;
|
|
105
|
+
private validateReferenceParams;
|
|
105
106
|
/**
|
|
106
107
|
* Create a `TransactionComposer`.
|
|
107
108
|
* @param params The configuration for this composer
|
package/types/composer.js
CHANGED
|
@@ -64,6 +64,9 @@ var TransactionComposer = class TransactionComposer {
|
|
|
64
64
|
}
|
|
65
65
|
return transformedError;
|
|
66
66
|
}
|
|
67
|
+
validateReferenceParams(params) {
|
|
68
|
+
if (params.accessReferences && params.accessReferences.length > 0 && (params.appReferences && params.appReferences.length > 0 || params.assetReferences && params.assetReferences.length > 0 || params.boxReferences && params.boxReferences.length > 0)) throw new Error("Cannot specify both `accessReferences` and reference arrays (`appReferences`, `assetReferences`, `boxReferences`).");
|
|
69
|
+
}
|
|
67
70
|
/**
|
|
68
71
|
* Create a `TransactionComposer`.
|
|
69
72
|
* @param params The configuration for this composer
|
|
@@ -579,6 +582,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
579
582
|
* ```
|
|
580
583
|
*/
|
|
581
584
|
addAppCreate(params) {
|
|
585
|
+
this.validateReferenceParams(params);
|
|
582
586
|
this.push({
|
|
583
587
|
data: params,
|
|
584
588
|
type: "appCall"
|
|
@@ -622,6 +626,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
622
626
|
* ```
|
|
623
627
|
*/
|
|
624
628
|
addAppUpdate(params) {
|
|
629
|
+
this.validateReferenceParams(params);
|
|
625
630
|
this.push({
|
|
626
631
|
data: {
|
|
627
632
|
...params,
|
|
@@ -666,6 +671,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
666
671
|
* ```
|
|
667
672
|
*/
|
|
668
673
|
addAppDelete(params) {
|
|
674
|
+
this.validateReferenceParams(params);
|
|
669
675
|
this.push({
|
|
670
676
|
data: {
|
|
671
677
|
...params,
|
|
@@ -712,6 +718,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
712
718
|
* ```
|
|
713
719
|
*/
|
|
714
720
|
addAppCall(params) {
|
|
721
|
+
this.validateReferenceParams(params);
|
|
715
722
|
this.push({
|
|
716
723
|
data: params,
|
|
717
724
|
type: "appCall"
|
|
@@ -774,6 +781,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
774
781
|
* ```
|
|
775
782
|
*/
|
|
776
783
|
addAppCreateMethodCall(params) {
|
|
784
|
+
this.validateReferenceParams(params);
|
|
777
785
|
const txnArgs = require_method_call.extractComposerTransactionsFromAppMethodCallParams(params);
|
|
778
786
|
this.push(...txnArgs, {
|
|
779
787
|
data: {
|
|
@@ -833,6 +841,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
833
841
|
* ```
|
|
834
842
|
*/
|
|
835
843
|
addAppUpdateMethodCall(params) {
|
|
844
|
+
this.validateReferenceParams(params);
|
|
836
845
|
const txnArgs = require_method_call.extractComposerTransactionsFromAppMethodCallParams(params);
|
|
837
846
|
this.push(...txnArgs, {
|
|
838
847
|
data: {
|
|
@@ -891,6 +900,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
891
900
|
* ```
|
|
892
901
|
*/
|
|
893
902
|
addAppDeleteMethodCall(params) {
|
|
903
|
+
this.validateReferenceParams(params);
|
|
894
904
|
const txnArgs = require_method_call.extractComposerTransactionsFromAppMethodCallParams(params);
|
|
895
905
|
this.push(...txnArgs, {
|
|
896
906
|
data: {
|
|
@@ -949,6 +959,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
949
959
|
* ```
|
|
950
960
|
*/
|
|
951
961
|
addAppCallMethodCall(params) {
|
|
962
|
+
this.validateReferenceParams(params);
|
|
952
963
|
const txnArgs = require_method_call.extractComposerTransactionsFromAppMethodCallParams(params);
|
|
953
964
|
this.push(...txnArgs, {
|
|
954
965
|
data: {
|