@algorandfoundation/algokit-utils 10.0.0-alpha.15 → 10.0.0-alpha.17
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/_virtual/rolldown_runtime.js +0 -14
- package/index.d.ts +1 -2
- package/index.js +0 -7
- package/index.mjs +1 -2
- package/indexer-client/index.d.ts +2 -1
- package/indexer-client/index.js +6 -1
- package/indexer-client/index.mjs +2 -1
- package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
- package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
- package/indexer-client/indexer-lookup.js.map +1 -0
- package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
- package/indexer-client/indexer-lookup.mjs.map +1 -0
- package/package.json +1 -1
- package/packages/common/src/json.mjs +2 -2
- package/packages/common/src/json.mjs.map +1 -1
- package/packages/sdk/src/utils/utils.mjs +2 -2
- package/packages/sdk/src/utils/utils.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +46 -46
- package/types/algorand-client-transaction-sender.d.ts +48 -48
- package/types/app-client.d.ts +141 -141
- package/types/app-deployer.js +1 -1
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +1 -1
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +61 -61
- package/_virtual/rolldown_runtime.mjs +0 -18
- package/indexer-lookup.js.map +0 -1
- package/indexer-lookup.mjs.map +0 -1
package/types/app-factory.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ 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?:
|
|
174
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
175
175
|
rekeyTo?: ReadableAddress | undefined;
|
|
176
176
|
note?: string | Uint8Array | undefined;
|
|
177
177
|
lease?: string | Uint8Array | undefined;
|
|
@@ -185,7 +185,7 @@ declare class AppFactory {
|
|
|
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?: ResourceReference[] | undefined;
|
|
190
190
|
rejectVersion?: number | undefined;
|
|
191
191
|
sender?: ReadableAddress | undefined;
|
|
@@ -219,7 +219,7 @@ declare class AppFactory {
|
|
|
219
219
|
};
|
|
220
220
|
approvalProgram: Uint8Array;
|
|
221
221
|
clearStateProgram: Uint8Array;
|
|
222
|
-
signer?:
|
|
222
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
223
223
|
rekeyTo?: ReadableAddress | undefined;
|
|
224
224
|
note?: string | Uint8Array | undefined;
|
|
225
225
|
lease?: string | Uint8Array | undefined;
|
|
@@ -233,7 +233,7 @@ declare class AppFactory {
|
|
|
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?: ResourceReference[] | undefined;
|
|
238
238
|
rejectVersion?: number | undefined;
|
|
239
239
|
sender?: ReadableAddress | undefined;
|
|
@@ -244,12 +244,11 @@ declare class AppFactory {
|
|
|
244
244
|
extraProgramPages?: number | undefined;
|
|
245
245
|
} & {
|
|
246
246
|
sender: Address;
|
|
247
|
-
signer:
|
|
247
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
248
248
|
method: ABIMethod;
|
|
249
|
-
args: (Transaction |
|
|
250
|
-
args?: Uint8Array[] | undefined;
|
|
249
|
+
args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
251
250
|
sender: SendingAddress;
|
|
252
|
-
signer?:
|
|
251
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
253
252
|
rekeyTo?: ReadableAddress | undefined;
|
|
254
253
|
note?: string | Uint8Array | undefined;
|
|
255
254
|
lease?: string | Uint8Array | undefined;
|
|
@@ -260,10 +259,11 @@ declare class AppFactory {
|
|
|
260
259
|
firstValidRound?: bigint | undefined;
|
|
261
260
|
lastValidRound?: bigint | undefined;
|
|
262
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?: ResourceReference[] | undefined;
|
|
268
268
|
rejectVersion?: number | undefined;
|
|
269
269
|
appId?: 0 | undefined;
|
|
@@ -278,7 +278,7 @@ declare class AppFactory {
|
|
|
278
278
|
extraProgramPages?: number | undefined;
|
|
279
279
|
}> | AppMethodCall<{
|
|
280
280
|
sender: SendingAddress;
|
|
281
|
-
signer?:
|
|
281
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
282
282
|
rekeyTo?: ReadableAddress | undefined;
|
|
283
283
|
note?: string | Uint8Array | undefined;
|
|
284
284
|
lease?: string | Uint8Array | undefined;
|
|
@@ -294,17 +294,17 @@ declare class AppFactory {
|
|
|
294
294
|
accountReferences?: ReadableAddress[] | undefined;
|
|
295
295
|
appReferences?: bigint[] | undefined;
|
|
296
296
|
assetReferences?: bigint[] | undefined;
|
|
297
|
-
boxReferences?: (
|
|
297
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
298
298
|
accessReferences?: ResourceReference[] | undefined;
|
|
299
299
|
rejectVersion?: number | undefined;
|
|
300
300
|
approvalProgram: string | Uint8Array;
|
|
301
301
|
clearStateProgram: string | Uint8Array;
|
|
302
|
-
}> | AppMethodCall<AppMethodCallParams> |
|
|
302
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
303
303
|
onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
|
|
304
304
|
}>;
|
|
305
305
|
/** Return params for a deployment update ABI call */
|
|
306
306
|
deployUpdate: (params: {
|
|
307
|
-
signer?:
|
|
307
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
308
308
|
rekeyTo?: ReadableAddress | undefined;
|
|
309
309
|
note?: string | Uint8Array | undefined;
|
|
310
310
|
lease?: string | Uint8Array | undefined;
|
|
@@ -318,14 +318,14 @@ declare class AppFactory {
|
|
|
318
318
|
accountReferences?: ReadableAddress[] | undefined;
|
|
319
319
|
appReferences?: bigint[] | undefined;
|
|
320
320
|
assetReferences?: bigint[] | undefined;
|
|
321
|
-
boxReferences?: (
|
|
321
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
322
322
|
accessReferences?: ResourceReference[] | undefined;
|
|
323
323
|
rejectVersion?: number | undefined;
|
|
324
324
|
sender?: ReadableAddress | undefined;
|
|
325
325
|
method: string;
|
|
326
326
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
327
327
|
}) => {
|
|
328
|
-
signer?:
|
|
328
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
329
329
|
rekeyTo?: ReadableAddress | undefined;
|
|
330
330
|
note?: string | Uint8Array | undefined;
|
|
331
331
|
lease?: string | Uint8Array | undefined;
|
|
@@ -339,7 +339,7 @@ declare class AppFactory {
|
|
|
339
339
|
accountReferences?: ReadableAddress[] | undefined;
|
|
340
340
|
appReferences?: bigint[] | undefined;
|
|
341
341
|
assetReferences?: bigint[] | undefined;
|
|
342
|
-
boxReferences?: (
|
|
342
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
343
343
|
accessReferences?: ResourceReference[] | undefined;
|
|
344
344
|
rejectVersion?: number | undefined;
|
|
345
345
|
sender?: ReadableAddress | undefined;
|
|
@@ -347,12 +347,11 @@ declare class AppFactory {
|
|
|
347
347
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
348
348
|
} & {
|
|
349
349
|
sender: Address;
|
|
350
|
-
signer:
|
|
350
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
351
351
|
method: ABIMethod;
|
|
352
|
-
args: (Transaction |
|
|
353
|
-
args?: Uint8Array[] | undefined;
|
|
352
|
+
args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
354
353
|
sender: SendingAddress;
|
|
355
|
-
signer?:
|
|
354
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
356
355
|
rekeyTo?: ReadableAddress | undefined;
|
|
357
356
|
note?: string | Uint8Array | undefined;
|
|
358
357
|
lease?: string | Uint8Array | undefined;
|
|
@@ -363,10 +362,11 @@ declare class AppFactory {
|
|
|
363
362
|
firstValidRound?: bigint | undefined;
|
|
364
363
|
lastValidRound?: bigint | undefined;
|
|
365
364
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
365
|
+
args?: Uint8Array[] | undefined;
|
|
366
366
|
accountReferences?: ReadableAddress[] | undefined;
|
|
367
367
|
appReferences?: bigint[] | undefined;
|
|
368
368
|
assetReferences?: bigint[] | undefined;
|
|
369
|
-
boxReferences?: (
|
|
369
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
370
370
|
accessReferences?: ResourceReference[] | undefined;
|
|
371
371
|
rejectVersion?: number | undefined;
|
|
372
372
|
appId?: 0 | undefined;
|
|
@@ -381,7 +381,7 @@ declare class AppFactory {
|
|
|
381
381
|
extraProgramPages?: number | undefined;
|
|
382
382
|
}> | AppMethodCall<{
|
|
383
383
|
sender: SendingAddress;
|
|
384
|
-
signer?:
|
|
384
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
385
385
|
rekeyTo?: ReadableAddress | undefined;
|
|
386
386
|
note?: string | Uint8Array | undefined;
|
|
387
387
|
lease?: string | Uint8Array | undefined;
|
|
@@ -397,17 +397,17 @@ declare class AppFactory {
|
|
|
397
397
|
accountReferences?: ReadableAddress[] | undefined;
|
|
398
398
|
appReferences?: bigint[] | undefined;
|
|
399
399
|
assetReferences?: bigint[] | undefined;
|
|
400
|
-
boxReferences?: (
|
|
400
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
401
401
|
accessReferences?: ResourceReference[] | undefined;
|
|
402
402
|
rejectVersion?: number | undefined;
|
|
403
403
|
approvalProgram: string | Uint8Array;
|
|
404
404
|
clearStateProgram: string | Uint8Array;
|
|
405
|
-
}> | AppMethodCall<AppMethodCallParams> |
|
|
405
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
406
406
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
407
407
|
};
|
|
408
408
|
/** Return params for a deployment delete ABI call */
|
|
409
409
|
deployDelete: (params: {
|
|
410
|
-
signer?:
|
|
410
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
411
411
|
rekeyTo?: ReadableAddress | undefined;
|
|
412
412
|
note?: string | Uint8Array | undefined;
|
|
413
413
|
lease?: string | Uint8Array | undefined;
|
|
@@ -421,14 +421,14 @@ declare class AppFactory {
|
|
|
421
421
|
accountReferences?: ReadableAddress[] | undefined;
|
|
422
422
|
appReferences?: bigint[] | undefined;
|
|
423
423
|
assetReferences?: bigint[] | undefined;
|
|
424
|
-
boxReferences?: (
|
|
424
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
425
425
|
accessReferences?: ResourceReference[] | undefined;
|
|
426
426
|
rejectVersion?: number | undefined;
|
|
427
427
|
sender?: ReadableAddress | undefined;
|
|
428
428
|
method: string;
|
|
429
429
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
430
430
|
}) => {
|
|
431
|
-
signer?:
|
|
431
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
432
432
|
rekeyTo?: ReadableAddress | undefined;
|
|
433
433
|
note?: string | Uint8Array | undefined;
|
|
434
434
|
lease?: string | Uint8Array | undefined;
|
|
@@ -442,7 +442,7 @@ declare class AppFactory {
|
|
|
442
442
|
accountReferences?: ReadableAddress[] | undefined;
|
|
443
443
|
appReferences?: bigint[] | undefined;
|
|
444
444
|
assetReferences?: bigint[] | undefined;
|
|
445
|
-
boxReferences?: (
|
|
445
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
446
446
|
accessReferences?: ResourceReference[] | undefined;
|
|
447
447
|
rejectVersion?: number | undefined;
|
|
448
448
|
sender?: ReadableAddress | undefined;
|
|
@@ -450,12 +450,11 @@ declare class AppFactory {
|
|
|
450
450
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
451
451
|
} & {
|
|
452
452
|
sender: Address;
|
|
453
|
-
signer:
|
|
453
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
454
454
|
method: ABIMethod;
|
|
455
|
-
args: (Transaction |
|
|
456
|
-
args?: Uint8Array[] | undefined;
|
|
455
|
+
args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
457
456
|
sender: SendingAddress;
|
|
458
|
-
signer?:
|
|
457
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
459
458
|
rekeyTo?: ReadableAddress | undefined;
|
|
460
459
|
note?: string | Uint8Array | undefined;
|
|
461
460
|
lease?: string | Uint8Array | undefined;
|
|
@@ -466,10 +465,11 @@ declare class AppFactory {
|
|
|
466
465
|
firstValidRound?: bigint | undefined;
|
|
467
466
|
lastValidRound?: bigint | undefined;
|
|
468
467
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
468
|
+
args?: Uint8Array[] | undefined;
|
|
469
469
|
accountReferences?: ReadableAddress[] | undefined;
|
|
470
470
|
appReferences?: bigint[] | undefined;
|
|
471
471
|
assetReferences?: bigint[] | undefined;
|
|
472
|
-
boxReferences?: (
|
|
472
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
473
473
|
accessReferences?: ResourceReference[] | undefined;
|
|
474
474
|
rejectVersion?: number | undefined;
|
|
475
475
|
appId?: 0 | undefined;
|
|
@@ -484,7 +484,7 @@ declare class AppFactory {
|
|
|
484
484
|
extraProgramPages?: number | undefined;
|
|
485
485
|
}> | AppMethodCall<{
|
|
486
486
|
sender: SendingAddress;
|
|
487
|
-
signer?:
|
|
487
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
488
488
|
rekeyTo?: ReadableAddress | undefined;
|
|
489
489
|
note?: string | Uint8Array | undefined;
|
|
490
490
|
lease?: string | Uint8Array | undefined;
|
|
@@ -500,19 +500,18 @@ declare class AppFactory {
|
|
|
500
500
|
accountReferences?: ReadableAddress[] | undefined;
|
|
501
501
|
appReferences?: bigint[] | undefined;
|
|
502
502
|
assetReferences?: bigint[] | undefined;
|
|
503
|
-
boxReferences?: (
|
|
503
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
504
504
|
accessReferences?: ResourceReference[] | undefined;
|
|
505
505
|
rejectVersion?: number | undefined;
|
|
506
506
|
approvalProgram: string | Uint8Array;
|
|
507
507
|
clearStateProgram: string | Uint8Array;
|
|
508
|
-
}> | AppMethodCall<AppMethodCallParams> |
|
|
508
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
509
509
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
510
510
|
};
|
|
511
511
|
bare: {
|
|
512
512
|
/** Return params for a create bare call, including deploy-time TEAL template replacements and compilation if provided */
|
|
513
513
|
create: (params?: {
|
|
514
|
-
|
|
515
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
514
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
516
515
|
rekeyTo?: ReadableAddress | undefined;
|
|
517
516
|
note?: string | Uint8Array | undefined;
|
|
518
517
|
lease?: string | Uint8Array | undefined;
|
|
@@ -522,10 +521,11 @@ declare class AppFactory {
|
|
|
522
521
|
validityWindow?: number | bigint | undefined;
|
|
523
522
|
firstValidRound?: bigint | undefined;
|
|
524
523
|
lastValidRound?: bigint | undefined;
|
|
524
|
+
args?: Uint8Array[] | undefined;
|
|
525
525
|
accountReferences?: ReadableAddress[] | undefined;
|
|
526
526
|
appReferences?: bigint[] | undefined;
|
|
527
527
|
assetReferences?: bigint[] | undefined;
|
|
528
|
-
boxReferences?: (
|
|
528
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
529
529
|
accessReferences?: ResourceReference[] | undefined;
|
|
530
530
|
rejectVersion?: number | undefined;
|
|
531
531
|
sender?: ReadableAddress | undefined;
|
|
@@ -560,8 +560,7 @@ declare class AppFactory {
|
|
|
560
560
|
/** The number of byte slices saved in local state. */
|
|
561
561
|
localByteSlices: number;
|
|
562
562
|
};
|
|
563
|
-
|
|
564
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
563
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
565
564
|
rekeyTo?: ReadableAddress | undefined;
|
|
566
565
|
note?: string | Uint8Array | undefined;
|
|
567
566
|
lease?: string | Uint8Array | undefined;
|
|
@@ -571,10 +570,11 @@ declare class AppFactory {
|
|
|
571
570
|
validityWindow?: number | bigint | undefined;
|
|
572
571
|
firstValidRound?: bigint | undefined;
|
|
573
572
|
lastValidRound?: bigint | undefined;
|
|
573
|
+
args?: Uint8Array[] | undefined;
|
|
574
574
|
accountReferences?: ReadableAddress[] | undefined;
|
|
575
575
|
appReferences?: bigint[] | undefined;
|
|
576
576
|
assetReferences?: bigint[] | undefined;
|
|
577
|
-
boxReferences?: (
|
|
577
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
578
578
|
accessReferences?: ResourceReference[] | undefined;
|
|
579
579
|
rejectVersion?: number | undefined;
|
|
580
580
|
sender?: ReadableAddress | undefined;
|
|
@@ -584,13 +584,12 @@ declare class AppFactory {
|
|
|
584
584
|
extraProgramPages?: number | undefined;
|
|
585
585
|
} & {
|
|
586
586
|
sender: Address;
|
|
587
|
-
signer:
|
|
587
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
588
588
|
onComplete: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication;
|
|
589
589
|
}>;
|
|
590
590
|
/** Return params for a deployment update bare call */
|
|
591
591
|
deployUpdate: (params?: {
|
|
592
|
-
|
|
593
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
592
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
594
593
|
rekeyTo?: ReadableAddress | undefined;
|
|
595
594
|
note?: string | Uint8Array | undefined;
|
|
596
595
|
lease?: string | Uint8Array | undefined;
|
|
@@ -600,16 +599,16 @@ declare class AppFactory {
|
|
|
600
599
|
validityWindow?: number | bigint | undefined;
|
|
601
600
|
firstValidRound?: bigint | undefined;
|
|
602
601
|
lastValidRound?: bigint | undefined;
|
|
602
|
+
args?: Uint8Array[] | undefined;
|
|
603
603
|
accountReferences?: ReadableAddress[] | undefined;
|
|
604
604
|
appReferences?: bigint[] | undefined;
|
|
605
605
|
assetReferences?: bigint[] | undefined;
|
|
606
|
-
boxReferences?: (
|
|
606
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
607
607
|
accessReferences?: ResourceReference[] | undefined;
|
|
608
608
|
rejectVersion?: number | undefined;
|
|
609
609
|
sender?: ReadableAddress | undefined;
|
|
610
610
|
} | undefined) => {
|
|
611
|
-
|
|
612
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
611
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
613
612
|
rekeyTo?: ReadableAddress | undefined;
|
|
614
613
|
note?: string | Uint8Array | undefined;
|
|
615
614
|
lease?: string | Uint8Array | undefined;
|
|
@@ -619,22 +618,22 @@ declare class AppFactory {
|
|
|
619
618
|
validityWindow?: number | bigint | undefined;
|
|
620
619
|
firstValidRound?: bigint | undefined;
|
|
621
620
|
lastValidRound?: bigint | undefined;
|
|
621
|
+
args?: Uint8Array[] | undefined;
|
|
622
622
|
accountReferences?: ReadableAddress[] | undefined;
|
|
623
623
|
appReferences?: bigint[] | undefined;
|
|
624
624
|
assetReferences?: bigint[] | undefined;
|
|
625
|
-
boxReferences?: (
|
|
625
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
626
626
|
accessReferences?: ResourceReference[] | undefined;
|
|
627
627
|
rejectVersion?: number | undefined;
|
|
628
628
|
sender?: ReadableAddress | undefined;
|
|
629
629
|
} & {
|
|
630
630
|
sender: Address;
|
|
631
|
-
signer:
|
|
631
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
632
632
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
633
633
|
};
|
|
634
634
|
/** Return params for a deployment delete bare call */
|
|
635
635
|
deployDelete: (params?: {
|
|
636
|
-
|
|
637
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
636
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
638
637
|
rekeyTo?: ReadableAddress | undefined;
|
|
639
638
|
note?: string | Uint8Array | undefined;
|
|
640
639
|
lease?: string | Uint8Array | undefined;
|
|
@@ -644,16 +643,16 @@ declare class AppFactory {
|
|
|
644
643
|
validityWindow?: number | bigint | undefined;
|
|
645
644
|
firstValidRound?: bigint | undefined;
|
|
646
645
|
lastValidRound?: bigint | undefined;
|
|
646
|
+
args?: Uint8Array[] | undefined;
|
|
647
647
|
accountReferences?: ReadableAddress[] | undefined;
|
|
648
648
|
appReferences?: bigint[] | undefined;
|
|
649
649
|
assetReferences?: bigint[] | undefined;
|
|
650
|
-
boxReferences?: (
|
|
650
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
651
651
|
accessReferences?: ResourceReference[] | undefined;
|
|
652
652
|
rejectVersion?: number | undefined;
|
|
653
653
|
sender?: ReadableAddress | undefined;
|
|
654
654
|
} | undefined) => {
|
|
655
|
-
|
|
656
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
655
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
657
656
|
rekeyTo?: ReadableAddress | undefined;
|
|
658
657
|
note?: string | Uint8Array | undefined;
|
|
659
658
|
lease?: string | Uint8Array | undefined;
|
|
@@ -663,16 +662,17 @@ declare class AppFactory {
|
|
|
663
662
|
validityWindow?: number | bigint | undefined;
|
|
664
663
|
firstValidRound?: bigint | undefined;
|
|
665
664
|
lastValidRound?: bigint | undefined;
|
|
665
|
+
args?: Uint8Array[] | undefined;
|
|
666
666
|
accountReferences?: ReadableAddress[] | undefined;
|
|
667
667
|
appReferences?: bigint[] | undefined;
|
|
668
668
|
assetReferences?: bigint[] | undefined;
|
|
669
|
-
boxReferences?: (
|
|
669
|
+
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
670
670
|
accessReferences?: ResourceReference[] | undefined;
|
|
671
671
|
rejectVersion?: number | undefined;
|
|
672
672
|
sender?: ReadableAddress | undefined;
|
|
673
673
|
} & {
|
|
674
674
|
sender: Address;
|
|
675
|
-
signer:
|
|
675
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
676
676
|
onComplete: OnApplicationComplete.DeleteApplication;
|
|
677
677
|
};
|
|
678
678
|
};
|
|
@@ -803,13 +803,13 @@ declare class AppFactory {
|
|
|
803
803
|
compiledClear?: CompiledTeal | undefined;
|
|
804
804
|
operationPerformed: "create";
|
|
805
805
|
version: string;
|
|
806
|
+
updatable?: boolean | undefined;
|
|
807
|
+
deletable?: boolean | undefined;
|
|
806
808
|
createdRound: bigint;
|
|
807
809
|
updatedRound: bigint;
|
|
808
810
|
createdMetadata: AppDeployMetadata;
|
|
809
811
|
deleted: boolean;
|
|
810
812
|
name: string;
|
|
811
|
-
deletable?: boolean | undefined;
|
|
812
|
-
updatable?: boolean | undefined;
|
|
813
813
|
groupId: string | undefined;
|
|
814
814
|
txIds: string[];
|
|
815
815
|
returns?: ABIReturn[] | undefined;
|
|
@@ -849,13 +849,13 @@ declare class AppFactory {
|
|
|
849
849
|
compiledClear?: CompiledTeal | undefined;
|
|
850
850
|
operationPerformed: "replace";
|
|
851
851
|
version: string;
|
|
852
|
+
updatable?: boolean | undefined;
|
|
853
|
+
deletable?: boolean | undefined;
|
|
852
854
|
createdRound: bigint;
|
|
853
855
|
updatedRound: bigint;
|
|
854
856
|
createdMetadata: AppDeployMetadata;
|
|
855
857
|
deleted: boolean;
|
|
856
858
|
name: string;
|
|
857
|
-
deletable?: boolean | undefined;
|
|
858
|
-
updatable?: boolean | undefined;
|
|
859
859
|
groupId: string | undefined;
|
|
860
860
|
txIds: string[];
|
|
861
861
|
returns?: ABIReturn[] | undefined;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (all, symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __export };
|
package/indexer-lookup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexer-lookup.js","names":["nextToken: string | undefined"],"sources":["../src/indexer-lookup.ts"],"sourcesContent":["import { Address } from '@algorandfoundation/algokit-common'\nimport {\n Application,\n ApplicationsResponse,\n AssetBalancesResponse,\n IndexerClient,\n MiniAssetHolding,\n TransactionsResponse,\n} from '@algorandfoundation/algokit-indexer-client'\nimport { LookupAssetHoldingsOptions } from './types/indexer'\nexport type SearchForTransactionsCriteria = Omit<NonNullable<Parameters<IndexerClient['searchForTransactions']>[0]>, 'limit' | 'next'>\n\nconst DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT = 1000 //MaxAPIResourcesPerAccount: This is the default maximum, though may be provider specific\n\n/**\n * Looks up applications that were created by the given address; will automatically paginate through all data.\n * @param indexer An indexer instance\n * @param address The address of the creator to look up\n * @param getAll Whether or not to include deleted applications. Default true.\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The list of application results\n */\nexport async function lookupAccountCreatedApplicationByAddress(\n indexer: IndexerClient,\n address: string | Address,\n getAll: boolean = true,\n paginationLimit?: number,\n): Promise<Application[]> {\n return await executePaginatedRequest(\n (response: ApplicationsResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n return response.applications\n },\n (nextToken) => {\n return indexer.lookupAccountCreatedApplications(address, {\n includeAll: getAll,\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n ...(nextToken && { next: nextToken }),\n })\n },\n )\n}\n\n/**\n * Looks up asset holdings for the given asset; will automatically paginate through all data.\n * @param indexer An indexer instance\n * @param assetId The ID of the asset to look up holdings for\n * @param options Optional options to control the lookup\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The list of application results\n */\nexport async function lookupAssetHoldings(\n indexer: IndexerClient,\n assetId: number | bigint,\n options?: LookupAssetHoldingsOptions,\n paginationLimit?: number,\n): Promise<MiniAssetHolding[]> {\n return await executePaginatedRequest(\n (response: AssetBalancesResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n return response.balances\n },\n (nextToken) => {\n return indexer.lookupAssetBalances(assetId, {\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n ...(options?.currencyGreaterThan !== undefined && { currencyGreaterThan: options.currencyGreaterThan }),\n ...(options?.currencyLessThan !== undefined && { currencyLessThan: options.currencyLessThan }),\n ...(options?.includeAll !== undefined && { includeAll: options.includeAll }),\n ...(nextToken && { next: nextToken }),\n })\n },\n )\n}\n\n/**\n * Allows transactions to be searched for the given criteria.\n * @param indexer An indexer client\n * @param searchCriteria The criteria to search for\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The search results\n */\nexport async function searchTransactions(\n indexer: IndexerClient,\n searchCriteria: SearchForTransactionsCriteria,\n paginationLimit?: number,\n): Promise<TransactionsResponse> {\n let currentRound = 0n\n const transactions = await executePaginatedRequest(\n (response: TransactionsResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n if (response.currentRound > currentRound) {\n currentRound = response.currentRound\n }\n return response.transactions\n },\n (nextToken) => {\n return indexer.searchForTransactions({\n ...searchCriteria,\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n next: nextToken,\n })\n },\n )\n\n return {\n currentRound,\n nextToken: undefined,\n transactions,\n } satisfies TransactionsResponse\n}\n\n// https://dev.algorand.co/reference/rest-apis/indexer\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport async function executePaginatedRequest<TResult, TRequest extends Promise<any>>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n extractItems: (response: any) => TResult[],\n buildRequest: (nextToken?: string) => TRequest,\n): Promise<TResult[]> {\n const results = []\n\n let nextToken: string | undefined = undefined\n while (true) {\n const request = buildRequest(nextToken)\n const response = await request\n const items = extractItems(response)\n if (items == null || items.length === 0) {\n break\n }\n results.push(...items)\n nextToken = response['nextToken']\n if (!nextToken) {\n break\n }\n }\n\n return results\n}\n"],"mappings":";;;;;;;;;AAYA,MAAM,gDAAgD;;;;;;;;;AAUtD,eAAsB,yCACpB,SACA,SACA,SAAkB,MAClB,iBACwB;AACxB,QAAO,MAAM,yBACV,aAAyD;AACxD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,iCAAiC,SAAS;GACvD,YAAY;GACZ,OAAO,mBAAmB;GAC1B,GAAI,aAAa,EAAE,MAAM,WAAW;GACrC,CAAC;GAEL;;;;;;;;;;AAWH,eAAsB,oBACpB,SACA,SACA,SACA,iBAC6B;AAC7B,QAAO,MAAM,yBACV,aAA0D;AACzD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,oBAAoB,SAAS;GAC1C,OAAO,mBAAmB;GAC1B,GAAI,SAAS,wBAAwB,UAAa,EAAE,qBAAqB,QAAQ,qBAAqB;GACtG,GAAI,SAAS,qBAAqB,UAAa,EAAE,kBAAkB,QAAQ,kBAAkB;GAC7F,GAAI,SAAS,eAAe,UAAa,EAAE,YAAY,QAAQ,YAAY;GAC3E,GAAI,aAAa,EAAE,MAAM,WAAW;GACrC,CAAC;GAEL;;;;;;;;;AAUH,eAAsB,mBACpB,SACA,gBACA,iBAC+B;CAC/B,IAAI,eAAe;CACnB,MAAM,eAAe,MAAM,yBACxB,aAAyD;AACxD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,MAAI,SAAS,eAAe,aAC1B,gBAAe,SAAS;AAE1B,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,sBAAsB;GACnC,GAAG;GACH,OAAO,mBAAmB;GAC1B,MAAM;GACP,CAAC;GAEL;AAED,QAAO;EACL;EACA,WAAW;EACX;EACD;;AAKH,eAAsB,wBAEpB,cACA,cACoB;CACpB,MAAM,UAAU,EAAE;CAElB,IAAIA,YAAgC;AACpC,QAAO,MAAM;EAEX,MAAM,WAAW,MADD,aAAa,UAAU;EAEvC,MAAM,QAAQ,aAAa,SAAS;AACpC,MAAI,SAAS,QAAQ,MAAM,WAAW,EACpC;AAEF,UAAQ,KAAK,GAAG,MAAM;AACtB,cAAY,SAAS;AACrB,MAAI,CAAC,UACH;;AAIJ,QAAO"}
|
package/indexer-lookup.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexer-lookup.mjs","names":["nextToken: string | undefined"],"sources":["../src/indexer-lookup.ts"],"sourcesContent":["import { Address } from '@algorandfoundation/algokit-common'\nimport {\n Application,\n ApplicationsResponse,\n AssetBalancesResponse,\n IndexerClient,\n MiniAssetHolding,\n TransactionsResponse,\n} from '@algorandfoundation/algokit-indexer-client'\nimport { LookupAssetHoldingsOptions } from './types/indexer'\nexport type SearchForTransactionsCriteria = Omit<NonNullable<Parameters<IndexerClient['searchForTransactions']>[0]>, 'limit' | 'next'>\n\nconst DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT = 1000 //MaxAPIResourcesPerAccount: This is the default maximum, though may be provider specific\n\n/**\n * Looks up applications that were created by the given address; will automatically paginate through all data.\n * @param indexer An indexer instance\n * @param address The address of the creator to look up\n * @param getAll Whether or not to include deleted applications. Default true.\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The list of application results\n */\nexport async function lookupAccountCreatedApplicationByAddress(\n indexer: IndexerClient,\n address: string | Address,\n getAll: boolean = true,\n paginationLimit?: number,\n): Promise<Application[]> {\n return await executePaginatedRequest(\n (response: ApplicationsResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n return response.applications\n },\n (nextToken) => {\n return indexer.lookupAccountCreatedApplications(address, {\n includeAll: getAll,\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n ...(nextToken && { next: nextToken }),\n })\n },\n )\n}\n\n/**\n * Looks up asset holdings for the given asset; will automatically paginate through all data.\n * @param indexer An indexer instance\n * @param assetId The ID of the asset to look up holdings for\n * @param options Optional options to control the lookup\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The list of application results\n */\nexport async function lookupAssetHoldings(\n indexer: IndexerClient,\n assetId: number | bigint,\n options?: LookupAssetHoldingsOptions,\n paginationLimit?: number,\n): Promise<MiniAssetHolding[]> {\n return await executePaginatedRequest(\n (response: AssetBalancesResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n return response.balances\n },\n (nextToken) => {\n return indexer.lookupAssetBalances(assetId, {\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n ...(options?.currencyGreaterThan !== undefined && { currencyGreaterThan: options.currencyGreaterThan }),\n ...(options?.currencyLessThan !== undefined && { currencyLessThan: options.currencyLessThan }),\n ...(options?.includeAll !== undefined && { includeAll: options.includeAll }),\n ...(nextToken && { next: nextToken }),\n })\n },\n )\n}\n\n/**\n * Allows transactions to be searched for the given criteria.\n * @param indexer An indexer client\n * @param searchCriteria The criteria to search for\n * @param paginationLimit The number of records to return per paginated request, default 1000\n * @returns The search results\n */\nexport async function searchTransactions(\n indexer: IndexerClient,\n searchCriteria: SearchForTransactionsCriteria,\n paginationLimit?: number,\n): Promise<TransactionsResponse> {\n let currentRound = 0n\n const transactions = await executePaginatedRequest(\n (response: TransactionsResponse | { message: string }) => {\n if ('message' in response) {\n throw { status: 404, ...response }\n }\n if (response.currentRound > currentRound) {\n currentRound = response.currentRound\n }\n return response.transactions\n },\n (nextToken) => {\n return indexer.searchForTransactions({\n ...searchCriteria,\n limit: paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT,\n next: nextToken,\n })\n },\n )\n\n return {\n currentRound,\n nextToken: undefined,\n transactions,\n } satisfies TransactionsResponse\n}\n\n// https://dev.algorand.co/reference/rest-apis/indexer\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport async function executePaginatedRequest<TResult, TRequest extends Promise<any>>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n extractItems: (response: any) => TResult[],\n buildRequest: (nextToken?: string) => TRequest,\n): Promise<TResult[]> {\n const results = []\n\n let nextToken: string | undefined = undefined\n while (true) {\n const request = buildRequest(nextToken)\n const response = await request\n const items = extractItems(response)\n if (items == null || items.length === 0) {\n break\n }\n results.push(...items)\n nextToken = response['nextToken']\n if (!nextToken) {\n break\n }\n }\n\n return results\n}\n"],"mappings":";;;;;;;;;AAYA,MAAM,gDAAgD;;;;;;;;;AAUtD,eAAsB,yCACpB,SACA,SACA,SAAkB,MAClB,iBACwB;AACxB,QAAO,MAAM,yBACV,aAAyD;AACxD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,iCAAiC,SAAS;GACvD,YAAY;GACZ,OAAO,mBAAmB;GAC1B,GAAI,aAAa,EAAE,MAAM,WAAW;GACrC,CAAC;GAEL;;;;;;;;;;AAWH,eAAsB,oBACpB,SACA,SACA,SACA,iBAC6B;AAC7B,QAAO,MAAM,yBACV,aAA0D;AACzD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,oBAAoB,SAAS;GAC1C,OAAO,mBAAmB;GAC1B,GAAI,SAAS,wBAAwB,UAAa,EAAE,qBAAqB,QAAQ,qBAAqB;GACtG,GAAI,SAAS,qBAAqB,UAAa,EAAE,kBAAkB,QAAQ,kBAAkB;GAC7F,GAAI,SAAS,eAAe,UAAa,EAAE,YAAY,QAAQ,YAAY;GAC3E,GAAI,aAAa,EAAE,MAAM,WAAW;GACrC,CAAC;GAEL;;;;;;;;;AAUH,eAAsB,mBACpB,SACA,gBACA,iBAC+B;CAC/B,IAAI,eAAe;CACnB,MAAM,eAAe,MAAM,yBACxB,aAAyD;AACxD,MAAI,aAAa,SACf,OAAM;GAAE,QAAQ;GAAK,GAAG;GAAU;AAEpC,MAAI,SAAS,eAAe,aAC1B,gBAAe,SAAS;AAE1B,SAAO,SAAS;KAEjB,cAAc;AACb,SAAO,QAAQ,sBAAsB;GACnC,GAAG;GACH,OAAO,mBAAmB;GAC1B,MAAM;GACP,CAAC;GAEL;AAED,QAAO;EACL;EACA,WAAW;EACX;EACD;;AAKH,eAAsB,wBAEpB,cACA,cACoB;CACpB,MAAM,UAAU,EAAE;CAElB,IAAIA,YAAgC;AACpC,QAAO,MAAM;EAEX,MAAM,WAAW,MADD,aAAa,UAAU;EAEvC,MAAM,QAAQ,aAAa,SAAS;AACpC,MAAI,SAAS,QAAQ,MAAM,WAAW,EACpC;AAEF,UAAQ,KAAK,GAAG,MAAM;AACtB,cAAY,SAAS;AACrB,MAAI,CAAC,UACH;;AAIJ,QAAO"}
|