@algorandfoundation/algokit-utils 6.3.0-beta.1 → 7.0.0-beta.2
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/account/account.d.ts +7 -7
- package/account/account.js +7 -7
- package/account/account.mjs +7 -7
- package/account/get-account.d.ts +2 -2
- package/account/get-account.js +1 -1
- package/account/get-account.mjs +1 -1
- package/account/get-dispenser-account.d.ts +1 -1
- package/account/get-dispenser-account.js +1 -1
- package/account/get-dispenser-account.mjs +1 -1
- package/account/mnemonic-account.d.ts +1 -1
- package/account/mnemonic-account.js +1 -1
- package/account/mnemonic-account.mjs +1 -1
- package/app-deploy.d.ts +18 -1
- package/app-deploy.d.ts.map +1 -1
- package/app-deploy.js +142 -333
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +145 -336
- package/app-deploy.mjs.map +1 -1
- package/app.d.ts +38 -1
- package/app.d.ts.map +1 -1
- package/app.js +113 -370
- package/app.js.map +1 -1
- package/app.mjs +114 -371
- package/app.mjs.map +1 -1
- package/asset.d.ts +5 -5
- package/asset.js +5 -5
- package/asset.mjs +5 -5
- package/debugging/debugging.js +2 -2
- package/debugging/debugging.js.map +1 -1
- package/debugging/debugging.mjs +2 -2
- package/debugging/debugging.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +12 -12
- package/index.mjs +1 -1
- package/localnet/get-kmd-wallet-account.d.ts +1 -1
- package/localnet/get-kmd-wallet-account.js +1 -1
- package/localnet/get-kmd-wallet-account.mjs +1 -1
- package/localnet/get-localnet-dispenser-account.d.ts +1 -1
- package/localnet/get-localnet-dispenser-account.js +1 -1
- package/localnet/get-localnet-dispenser-account.mjs +1 -1
- package/localnet/get-or-create-kmd-wallet-account.d.ts +1 -1
- package/localnet/get-or-create-kmd-wallet-account.js +1 -1
- package/localnet/get-or-create-kmd-wallet-account.mjs +1 -1
- package/localnet/is-localnet.d.ts +1 -1
- package/localnet/is-localnet.js +1 -1
- package/localnet/is-localnet.mjs +1 -1
- package/network-client.d.ts +2 -2
- package/network-client.d.ts.map +1 -1
- package/network-client.js +2 -2
- package/network-client.mjs +2 -2
- package/package.json +1 -1
- package/testing/fixtures/algorand-fixture.js +12 -12
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +12 -12
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/transaction/legacy-bridge.d.ts +31 -5
- package/transaction/legacy-bridge.d.ts.map +1 -1
- package/transaction/legacy-bridge.js +99 -5
- package/transaction/legacy-bridge.js.map +1 -1
- package/transaction/legacy-bridge.mjs +98 -7
- package/transaction/legacy-bridge.mjs.map +1 -1
- package/transfer/transfer-algos.d.ts +1 -1
- package/transfer/transfer-algos.js +1 -1
- package/transfer/transfer-algos.mjs +1 -1
- package/transfer/transfer.d.ts +1 -1
- package/transfer/transfer.js +1 -1
- package/transfer/transfer.mjs +1 -1
- package/types/account-manager.d.ts +1 -1
- package/types/account-manager.d.ts.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +450 -20
- package/types/algorand-client-transaction-creator.d.ts.map +1 -1
- package/types/algorand-client-transaction-creator.js +406 -22
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +406 -22
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +750 -24
- package/types/algorand-client-transaction-sender.d.ts.map +1 -1
- package/types/algorand-client-transaction-sender.js +426 -12
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +426 -12
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +8 -0
- package/types/algorand-client.d.ts.map +1 -1
- package/types/algorand-client.js +14 -1
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +14 -1
- package/types/algorand-client.mjs.map +1 -1
- package/types/app-client.d.ts +13 -1
- package/types/app-client.d.ts.map +1 -1
- package/types/app-client.js +8 -5
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +9 -6
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +121 -0
- package/types/app-deployer.d.ts.map +1 -0
- package/types/app-deployer.js +354 -0
- package/types/app-deployer.js.map +1 -0
- package/types/app-deployer.mjs +352 -0
- package/types/app-deployer.mjs.map +1 -0
- package/types/app-manager.d.ts +235 -0
- package/types/app-manager.d.ts.map +1 -0
- package/types/app-manager.js +336 -0
- package/types/app-manager.js.map +1 -0
- package/types/app-manager.mjs +334 -0
- package/types/app-manager.mjs.map +1 -0
- package/types/app.d.ts +42 -7
- package/types/app.d.ts.map +1 -1
- package/types/app.js +1 -1
- package/types/app.js.map +1 -1
- package/types/app.mjs +1 -1
- package/types/app.mjs.map +1 -1
- package/types/client-manager.d.ts +2 -0
- package/types/client-manager.d.ts.map +1 -1
- package/types/client-manager.js +4 -0
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +4 -0
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +150 -39
- package/types/composer.d.ts.map +1 -1
- package/types/composer.js +218 -62
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +218 -62
- package/types/composer.mjs.map +1 -1
- package/types/expand.d.ts +8 -0
- package/types/expand.d.ts.map +1 -0
- package/types/expand.js +3 -0
- package/types/expand.js.map +1 -0
- package/types/expand.mjs +2 -0
- package/types/expand.mjs.map +1 -0
- package/types/transaction.d.ts +3 -0
- package/types/transaction.d.ts.map +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import algosdk from 'algosdk';
|
|
1
2
|
import { Config } from '../config.mjs';
|
|
3
|
+
import { AppManager } from './app-manager.mjs';
|
|
2
4
|
|
|
3
5
|
/** Orchestrates sending transactions for `AlgorandClient`. */
|
|
4
6
|
class AlgorandClientTransactionSender {
|
|
@@ -7,13 +9,13 @@ class AlgorandClientTransactionSender {
|
|
|
7
9
|
* @param newGroup A lambda that starts a new `AlgoKitComposer` transaction group
|
|
8
10
|
* @param assetManager An `AssetManager` instance
|
|
9
11
|
*/
|
|
10
|
-
constructor(newGroup, assetManager) {
|
|
12
|
+
constructor(newGroup, assetManager, appManager) {
|
|
11
13
|
/**
|
|
12
14
|
* Send a payment transaction to transfer Algo between accounts.
|
|
13
15
|
* @param params The parameters for the payment transaction
|
|
14
16
|
* @example Basic example
|
|
15
17
|
* ```typescript
|
|
16
|
-
* const result = await
|
|
18
|
+
* const result = await algorand.send.payment({
|
|
17
19
|
* sender: 'SENDERADDRESS',
|
|
18
20
|
* receiver: 'RECEIVERADDRESS',
|
|
19
21
|
* amount: (4).algo(),
|
|
@@ -21,7 +23,7 @@ class AlgorandClientTransactionSender {
|
|
|
21
23
|
* ```
|
|
22
24
|
* @example Advanced example
|
|
23
25
|
* ```typescript
|
|
24
|
-
* const result = await
|
|
26
|
+
* const result = await algorand.send.payment({
|
|
25
27
|
* amount: (4).algo(),
|
|
26
28
|
* receiver: 'RECEIVERADDRESS',
|
|
27
29
|
* sender: 'SENDERADDRESS',
|
|
@@ -318,7 +320,7 @@ class AlgorandClientTransactionSender {
|
|
|
318
320
|
*
|
|
319
321
|
* @param params The parameters for the asset opt-out transaction
|
|
320
322
|
*
|
|
321
|
-
* @example Basic example (without creator)
|
|
323
|
+
* @example Basic example (without creator, will be retrieved from algod)
|
|
322
324
|
* ```typescript
|
|
323
325
|
* await algorand.send.assetOptOut({sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
|
|
324
326
|
* ```
|
|
@@ -372,24 +374,412 @@ class AlgorandClientTransactionSender {
|
|
|
372
374
|
preLog: (params, transaction) => `Opting ${params.sender} out of asset with ID ${params.assetId} to creator ${params.creator} via transaction ${transaction.txID()}`,
|
|
373
375
|
})(params);
|
|
374
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* Create a smart contract.
|
|
379
|
+
*
|
|
380
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
381
|
+
*
|
|
382
|
+
* @param params The parameters for the app creation transaction
|
|
383
|
+
* @example Basic example
|
|
384
|
+
* ```typescript
|
|
385
|
+
* const result = await algorand.send.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
386
|
+
* const createdAppId = result.appId
|
|
387
|
+
* ```
|
|
388
|
+
* @example Advanced example
|
|
389
|
+
* ```typescript
|
|
390
|
+
* await algorand.send.appCreate({
|
|
391
|
+
* sender: 'CREATORADDRESS',
|
|
392
|
+
* approvalProgram: "TEALCODE",
|
|
393
|
+
* clearStateProgram: "TEALCODE",
|
|
394
|
+
* schema: {
|
|
395
|
+
* globalInts: 1,
|
|
396
|
+
* globalByteSlices: 2,
|
|
397
|
+
* localInts: 3,
|
|
398
|
+
* localByteSlices: 4
|
|
399
|
+
* },
|
|
400
|
+
* extraProgramPages: 1,
|
|
401
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
402
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
403
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
404
|
+
* appReferences: [123n, 1234n]
|
|
405
|
+
* assetReferences: [12345n]
|
|
406
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
407
|
+
* lease: 'lease',
|
|
408
|
+
* note: 'note',
|
|
409
|
+
* // You wouldn't normally set this field
|
|
410
|
+
* firstValidRound: 1000n,
|
|
411
|
+
* validityWindow: 10,
|
|
412
|
+
* extraFee: (1000).microAlgo(),
|
|
413
|
+
* staticFee: (1000).microAlgo(),
|
|
414
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
415
|
+
* // already specified, but here for completeness
|
|
416
|
+
* maxFee: (3000).microAlgo(),
|
|
417
|
+
* // Signer only needed if you want to provide one,
|
|
418
|
+
* // generally you'd register it with AlgorandClient
|
|
419
|
+
* // against the sender and not need to pass it in
|
|
420
|
+
* signer: transactionSigner,
|
|
421
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
422
|
+
* suppressLog: true,
|
|
423
|
+
*})
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
this.appCreate = this._sendAppCreateCall((c) => c.addAppCreate, {
|
|
427
|
+
postLog: (params, result) => `App created by ${params.sender} with ID ${result.confirmation.applicationIndex} via transaction ${result.txIds.at(-1)}`,
|
|
428
|
+
});
|
|
429
|
+
/**
|
|
430
|
+
* Update a smart contract.
|
|
431
|
+
*
|
|
432
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
433
|
+
*
|
|
434
|
+
* @param params The parameters for the app update transaction
|
|
435
|
+
* @example Basic example
|
|
436
|
+
* ```typescript
|
|
437
|
+
* await algorand.send.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
438
|
+
* ```
|
|
439
|
+
* @example Advanced example
|
|
440
|
+
* ```typescript
|
|
441
|
+
* await algorand.send.appUpdate({
|
|
442
|
+
* sender: 'CREATORADDRESS',
|
|
443
|
+
* approvalProgram: "TEALCODE",
|
|
444
|
+
* clearStateProgram: "TEALCODE",
|
|
445
|
+
* onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
|
|
446
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
447
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
448
|
+
* appReferences: [123n, 1234n]
|
|
449
|
+
* assetReferences: [12345n]
|
|
450
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
451
|
+
* lease: 'lease',
|
|
452
|
+
* note: 'note',
|
|
453
|
+
* // You wouldn't normally set this field
|
|
454
|
+
* firstValidRound: 1000n,
|
|
455
|
+
* validityWindow: 10,
|
|
456
|
+
* extraFee: (1000).microAlgo(),
|
|
457
|
+
* staticFee: (1000).microAlgo(),
|
|
458
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
459
|
+
* // already specified, but here for completeness
|
|
460
|
+
* maxFee: (3000).microAlgo(),
|
|
461
|
+
* // Signer only needed if you want to provide one,
|
|
462
|
+
* // generally you'd register it with AlgorandClient
|
|
463
|
+
* // against the sender and not need to pass it in
|
|
464
|
+
* signer: transactionSigner,
|
|
465
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
466
|
+
* suppressLog: true,
|
|
467
|
+
*})
|
|
468
|
+
* ```
|
|
469
|
+
*/
|
|
470
|
+
this.appUpdate = this._sendAppUpdateCall((c) => c.addAppUpdate);
|
|
471
|
+
/**
|
|
472
|
+
* Delete a smart contract.
|
|
473
|
+
*
|
|
474
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
475
|
+
*
|
|
476
|
+
* @param params The parameters for the app deletion transaction
|
|
477
|
+
* @example Basic example
|
|
478
|
+
* ```typescript
|
|
479
|
+
* await algorand.send.appDelete({ sender: 'CREATORADDRESS' })
|
|
480
|
+
* ```
|
|
481
|
+
* @example Advanced example
|
|
482
|
+
* ```typescript
|
|
483
|
+
* await algorand.send.appDelete({
|
|
484
|
+
* sender: 'CREATORADDRESS',
|
|
485
|
+
* onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
|
|
486
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
487
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
488
|
+
* appReferences: [123n, 1234n]
|
|
489
|
+
* assetReferences: [12345n]
|
|
490
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
491
|
+
* lease: 'lease',
|
|
492
|
+
* note: 'note',
|
|
493
|
+
* // You wouldn't normally set this field
|
|
494
|
+
* firstValidRound: 1000n,
|
|
495
|
+
* validityWindow: 10,
|
|
496
|
+
* extraFee: (1000).microAlgo(),
|
|
497
|
+
* staticFee: (1000).microAlgo(),
|
|
498
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
499
|
+
* // already specified, but here for completeness
|
|
500
|
+
* maxFee: (3000).microAlgo(),
|
|
501
|
+
* // Signer only needed if you want to provide one,
|
|
502
|
+
* // generally you'd register it with AlgorandClient
|
|
503
|
+
* // against the sender and not need to pass it in
|
|
504
|
+
* signer: transactionSigner,
|
|
505
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
506
|
+
* suppressLog: true,
|
|
507
|
+
*})
|
|
508
|
+
* ```
|
|
509
|
+
*/
|
|
510
|
+
this.appDelete = this._sendAppCall((c) => c.addAppDelete);
|
|
375
511
|
/**
|
|
376
512
|
* Call a smart contract.
|
|
377
513
|
*
|
|
378
|
-
* Note: you may prefer to use `
|
|
514
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
515
|
+
*
|
|
516
|
+
* @param params The parameters for the app call transaction
|
|
517
|
+
* @example Basic example
|
|
518
|
+
* ```typescript
|
|
519
|
+
* await algorand.send.appCall({ sender: 'CREATORADDRESS' })
|
|
520
|
+
* ```
|
|
521
|
+
* @example Advanced example
|
|
522
|
+
* ```typescript
|
|
523
|
+
* await algorand.send.appCall({
|
|
524
|
+
* sender: 'CREATORADDRESS',
|
|
525
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
526
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
527
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
528
|
+
* appReferences: [123n, 1234n]
|
|
529
|
+
* assetReferences: [12345n]
|
|
530
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
531
|
+
* lease: 'lease',
|
|
532
|
+
* note: 'note',
|
|
533
|
+
* // You wouldn't normally set this field
|
|
534
|
+
* firstValidRound: 1000n,
|
|
535
|
+
* validityWindow: 10,
|
|
536
|
+
* extraFee: (1000).microAlgo(),
|
|
537
|
+
* staticFee: (1000).microAlgo(),
|
|
538
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
539
|
+
* // already specified, but here for completeness
|
|
540
|
+
* maxFee: (3000).microAlgo(),
|
|
541
|
+
* // Signer only needed if you want to provide one,
|
|
542
|
+
* // generally you'd register it with AlgorandClient
|
|
543
|
+
* // against the sender and not need to pass it in
|
|
544
|
+
* signer: transactionSigner,
|
|
545
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
546
|
+
* suppressLog: true,
|
|
547
|
+
*})
|
|
548
|
+
* ```
|
|
379
549
|
*/
|
|
380
|
-
this.appCall = this.
|
|
550
|
+
this.appCall = this._sendAppCall((c) => c.addAppCall);
|
|
381
551
|
/**
|
|
382
|
-
*
|
|
552
|
+
* Create a smart contract via an ABI method.
|
|
553
|
+
*
|
|
554
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
383
555
|
*
|
|
384
|
-
*
|
|
556
|
+
* @param params The parameters for the app creation transaction
|
|
557
|
+
* @example Basic example
|
|
558
|
+
* ```typescript
|
|
559
|
+
* const method = new ABIMethod({
|
|
560
|
+
* name: 'method',
|
|
561
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
562
|
+
* returns: { type: 'string' },
|
|
563
|
+
* })
|
|
564
|
+
* const result = await algorand.send.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
565
|
+
* const createdAppId = result.appId
|
|
566
|
+
* ```
|
|
567
|
+
* @example Advanced example
|
|
568
|
+
* ```typescript
|
|
569
|
+
* const method = new ABIMethod({
|
|
570
|
+
* name: 'method',
|
|
571
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
572
|
+
* returns: { type: 'string' },
|
|
573
|
+
* })
|
|
574
|
+
* await algorand.send.appCreate({
|
|
575
|
+
* sender: 'CREATORADDRESS',
|
|
576
|
+
* method: method,
|
|
577
|
+
* args: ["arg1_value"],
|
|
578
|
+
* approvalProgram: "TEALCODE",
|
|
579
|
+
* clearStateProgram: "TEALCODE",
|
|
580
|
+
* schema: {
|
|
581
|
+
* globalInts: 1,
|
|
582
|
+
* globalByteSlices: 2,
|
|
583
|
+
* localInts: 3,
|
|
584
|
+
* localByteSlices: 4
|
|
585
|
+
* },
|
|
586
|
+
* extraProgramPages: 1,
|
|
587
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
588
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
589
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
590
|
+
* appReferences: [123n, 1234n]
|
|
591
|
+
* assetReferences: [12345n]
|
|
592
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
593
|
+
* lease: 'lease',
|
|
594
|
+
* note: 'note',
|
|
595
|
+
* // You wouldn't normally set this field
|
|
596
|
+
* firstValidRound: 1000n,
|
|
597
|
+
* validityWindow: 10,
|
|
598
|
+
* extraFee: (1000).microAlgo(),
|
|
599
|
+
* staticFee: (1000).microAlgo(),
|
|
600
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
601
|
+
* // already specified, but here for completeness
|
|
602
|
+
* maxFee: (3000).microAlgo(),
|
|
603
|
+
* // Signer only needed if you want to provide one,
|
|
604
|
+
* // generally you'd register it with AlgorandClient
|
|
605
|
+
* // against the sender and not need to pass it in
|
|
606
|
+
* signer: transactionSigner,
|
|
607
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
608
|
+
* suppressLog: true,
|
|
609
|
+
*})
|
|
610
|
+
* ```
|
|
385
611
|
*/
|
|
386
|
-
this.
|
|
612
|
+
this.appCreateMethodCall = this._sendAppCreateCall((c) => c.addAppCreateMethodCall, {
|
|
613
|
+
postLog: (params, result) => `App created by ${params.sender} with ID ${result.confirmation.applicationIndex} via transaction ${result.txIds.at(-1)}`,
|
|
614
|
+
});
|
|
615
|
+
/**
|
|
616
|
+
* Update a smart contract via an ABI method.
|
|
617
|
+
*
|
|
618
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
619
|
+
*
|
|
620
|
+
* @param params The parameters for the app update transaction
|
|
621
|
+
* @example Basic example
|
|
622
|
+
* ```typescript
|
|
623
|
+
* const method = new ABIMethod({
|
|
624
|
+
* name: 'method',
|
|
625
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
626
|
+
* returns: { type: 'string' },
|
|
627
|
+
* })
|
|
628
|
+
* await algorand.send.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
629
|
+
* ```
|
|
630
|
+
* @example Advanced example
|
|
631
|
+
* ```typescript
|
|
632
|
+
* const method = new ABIMethod({
|
|
633
|
+
* name: 'method',
|
|
634
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
635
|
+
* returns: { type: 'string' },
|
|
636
|
+
* })
|
|
637
|
+
* await algorand.send.appUpdateMethodCall({
|
|
638
|
+
* sender: 'CREATORADDRESS',
|
|
639
|
+
* method: method,
|
|
640
|
+
* args: ["arg1_value"],
|
|
641
|
+
* approvalProgram: "TEALCODE",
|
|
642
|
+
* clearStateProgram: "TEALCODE",
|
|
643
|
+
* onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
|
|
644
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
645
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
646
|
+
* appReferences: [123n, 1234n]
|
|
647
|
+
* assetReferences: [12345n]
|
|
648
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
649
|
+
* lease: 'lease',
|
|
650
|
+
* note: 'note',
|
|
651
|
+
* // You wouldn't normally set this field
|
|
652
|
+
* firstValidRound: 1000n,
|
|
653
|
+
* validityWindow: 10,
|
|
654
|
+
* extraFee: (1000).microAlgo(),
|
|
655
|
+
* staticFee: (1000).microAlgo(),
|
|
656
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
657
|
+
* // already specified, but here for completeness
|
|
658
|
+
* maxFee: (3000).microAlgo(),
|
|
659
|
+
* // Signer only needed if you want to provide one,
|
|
660
|
+
* // generally you'd register it with AlgorandClient
|
|
661
|
+
* // against the sender and not need to pass it in
|
|
662
|
+
* signer: transactionSigner,
|
|
663
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
664
|
+
* suppressLog: true,
|
|
665
|
+
*})
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
668
|
+
this.appUpdateMethodCall = this._sendAppUpdateCall((c) => c.addAppUpdateMethodCall);
|
|
669
|
+
/**
|
|
670
|
+
* Delete a smart contract via an ABI method.
|
|
671
|
+
*
|
|
672
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
673
|
+
*
|
|
674
|
+
* @param params The parameters for the app deletion transaction
|
|
675
|
+
* @example Basic example
|
|
676
|
+
* ```typescript
|
|
677
|
+
* const method = new ABIMethod({
|
|
678
|
+
* name: 'method',
|
|
679
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
680
|
+
* returns: { type: 'string' },
|
|
681
|
+
* })
|
|
682
|
+
* await algorand.send.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
683
|
+
* ```
|
|
684
|
+
* @example Advanced example
|
|
685
|
+
* ```typescript
|
|
686
|
+
* const method = new ABIMethod({
|
|
687
|
+
* name: 'method',
|
|
688
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
689
|
+
* returns: { type: 'string' },
|
|
690
|
+
* })
|
|
691
|
+
* await algorand.send.appDeleteMethodCall({
|
|
692
|
+
* sender: 'CREATORADDRESS',
|
|
693
|
+
* method: method,
|
|
694
|
+
* args: ["arg1_value"],
|
|
695
|
+
* onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
|
|
696
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
697
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
698
|
+
* appReferences: [123n, 1234n]
|
|
699
|
+
* assetReferences: [12345n]
|
|
700
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
701
|
+
* lease: 'lease',
|
|
702
|
+
* note: 'note',
|
|
703
|
+
* // You wouldn't normally set this field
|
|
704
|
+
* firstValidRound: 1000n,
|
|
705
|
+
* validityWindow: 10,
|
|
706
|
+
* extraFee: (1000).microAlgo(),
|
|
707
|
+
* staticFee: (1000).microAlgo(),
|
|
708
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
709
|
+
* // already specified, but here for completeness
|
|
710
|
+
* maxFee: (3000).microAlgo(),
|
|
711
|
+
* // Signer only needed if you want to provide one,
|
|
712
|
+
* // generally you'd register it with AlgorandClient
|
|
713
|
+
* // against the sender and not need to pass it in
|
|
714
|
+
* signer: transactionSigner,
|
|
715
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
716
|
+
* suppressLog: true,
|
|
717
|
+
*})
|
|
718
|
+
* ```
|
|
719
|
+
*/
|
|
720
|
+
this.appDeleteMethodCall = this._sendAppCall((c) => c.addAppDeleteMethodCall);
|
|
721
|
+
/**
|
|
722
|
+
* Call a smart contract via an ABI method.
|
|
723
|
+
*
|
|
724
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
725
|
+
*
|
|
726
|
+
* @param params The parameters for the app call transaction
|
|
727
|
+
* @example Basic example
|
|
728
|
+
* ```typescript
|
|
729
|
+
* const method = new ABIMethod({
|
|
730
|
+
* name: 'method',
|
|
731
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
732
|
+
* returns: { type: 'string' },
|
|
733
|
+
* })
|
|
734
|
+
* await algorand.send.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
735
|
+
* ```
|
|
736
|
+
* @example Advanced example
|
|
737
|
+
* ```typescript
|
|
738
|
+
* const method = new ABIMethod({
|
|
739
|
+
* name: 'method',
|
|
740
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
741
|
+
* returns: { type: 'string' },
|
|
742
|
+
* })
|
|
743
|
+
* await algorand.send.appCallMethodCall({
|
|
744
|
+
* sender: 'CREATORADDRESS',
|
|
745
|
+
* method: method,
|
|
746
|
+
* args: ["arg1_value"],
|
|
747
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
748
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
749
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
750
|
+
* appReferences: [123n, 1234n]
|
|
751
|
+
* assetReferences: [12345n]
|
|
752
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
753
|
+
* lease: 'lease',
|
|
754
|
+
* note: 'note',
|
|
755
|
+
* // You wouldn't normally set this field
|
|
756
|
+
* firstValidRound: 1000n,
|
|
757
|
+
* validityWindow: 10,
|
|
758
|
+
* extraFee: (1000).microAlgo(),
|
|
759
|
+
* staticFee: (1000).microAlgo(),
|
|
760
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
761
|
+
* // already specified, but here for completeness
|
|
762
|
+
* maxFee: (3000).microAlgo(),
|
|
763
|
+
* // Signer only needed if you want to provide one,
|
|
764
|
+
* // generally you'd register it with AlgorandClient
|
|
765
|
+
* // against the sender and not need to pass it in
|
|
766
|
+
* signer: transactionSigner,
|
|
767
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
768
|
+
* suppressLog: true,
|
|
769
|
+
*})
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
772
|
+
this.appCallMethodCall = this._sendAppCall((c) => c.addAppCallMethodCall);
|
|
387
773
|
/** Register an online key. */
|
|
388
774
|
this.onlineKeyRegistration = this._send((c) => c.addOnlineKeyRegistration, {
|
|
389
775
|
preLog: (params, transaction) => `Registering online key for ${params.sender} via transaction ${transaction.txID()}`,
|
|
390
776
|
});
|
|
391
777
|
this._newGroup = newGroup;
|
|
392
778
|
this._assetManager = assetManager;
|
|
779
|
+
this._appManager = appManager;
|
|
780
|
+
}
|
|
781
|
+
newGroup() {
|
|
782
|
+
return this._newGroup();
|
|
393
783
|
}
|
|
394
784
|
_send(c, log) {
|
|
395
785
|
return async (params) => {
|
|
@@ -403,9 +793,9 @@ class AlgorandClientTransactionSender {
|
|
|
403
793
|
const rawResult = await composer.execute(params);
|
|
404
794
|
const result = {
|
|
405
795
|
// Last item covers when a group is created by an app call with ABI transaction parameters
|
|
406
|
-
transaction: rawResult.transactions
|
|
407
|
-
confirmation: rawResult.confirmations
|
|
408
|
-
txId: rawResult.txIds
|
|
796
|
+
transaction: rawResult.transactions.at(-1),
|
|
797
|
+
confirmation: rawResult.confirmations.at(-1),
|
|
798
|
+
txId: rawResult.txIds.at(-1),
|
|
409
799
|
...rawResult,
|
|
410
800
|
};
|
|
411
801
|
if (log?.postLog) {
|
|
@@ -414,6 +804,30 @@ class AlgorandClientTransactionSender {
|
|
|
414
804
|
return result;
|
|
415
805
|
};
|
|
416
806
|
}
|
|
807
|
+
_sendAppCall(c, log) {
|
|
808
|
+
return async (params) => {
|
|
809
|
+
const result = await this._send(c, log)(params);
|
|
810
|
+
return { ...result, return: AppManager.getABIReturn(result.confirmation, 'method' in params ? params.method : undefined) };
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
_sendAppUpdateCall(c, log) {
|
|
814
|
+
return async (params) => {
|
|
815
|
+
const result = await this._sendAppCall(c, log)(params);
|
|
816
|
+
const compiledApproval = typeof params.approvalProgram === 'string' ? this._appManager.getCompilationResult(params.approvalProgram) : undefined;
|
|
817
|
+
const compiledClear = typeof params.clearStateProgram === 'string' ? this._appManager.getCompilationResult(params.clearStateProgram) : undefined;
|
|
818
|
+
return { ...result, compiledApproval, compiledClear };
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
_sendAppCreateCall(c, log) {
|
|
822
|
+
return async (params) => {
|
|
823
|
+
const result = await this._sendAppUpdateCall(c, log)(params);
|
|
824
|
+
return {
|
|
825
|
+
...result,
|
|
826
|
+
appId: BigInt(result.confirmation.applicationIndex),
|
|
827
|
+
appAddress: algosdk.getApplicationAddress(result.confirmation.applicationIndex),
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
}
|
|
417
831
|
}
|
|
418
832
|
|
|
419
833
|
export { AlgorandClientTransactionSender };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algorand-client-transaction-sender.mjs","sources":["../../src/types/algorand-client-transaction-sender.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"algorand-client-transaction-sender.mjs","sources":["../../src/types/algorand-client-transaction-sender.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAqBA;MACa,+BAA+B,CAAA;AAK1C;;;;AAIG;AACH,IAAA,WAAA,CAAY,QAA+B,EAAE,YAA0B,EAAE,UAAsB,EAAA;AA0G/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCG;AACH,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE;YACxC,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAC1B,CAAA,QAAA,EAAW,MAAM,CAAC,MAAM,CAAC,SAAS,CAAA,YAAA,EAAe,MAAM,CAAC,MAAM,CAAA,IAAA,EAAO,MAAM,CAAC,QAAQ,CAAA,iBAAA,EAAoB,WAAW,CAAC,IAAI,EAAE,CAAE,CAAA;AAC/H,SAAA,CAAC,CAAA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CG;AACH,QAAA,IAAA,CAAA,WAAW,GAAG,OAAO,MAAyC,KAAI;AAChE,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE;AACvD,gBAAA,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KACtB,CAAA,aAAA,EAAgB,MAAM,CAAC,SAAS,GAAG,CAAA,CAAA,EAAI,MAAM,CAAC,SAAS,CAAA,CAAE,GAAG,EAAE,CAAA,EAAG,MAAM,CAAC,QAAQ,GAAG,CAAA,EAAA,EAAK,MAAM,CAAC,QAAQ,CAAG,CAAA,CAAA,GA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,QAAQ,IAAI,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;AAC5H,SAAC,CAAA;KACF;IAEO,kBAAkB,CACxB,CAAyD,EACzD,GAGC,EAAA;AAED,QAAA,OAAO,OAAO,MAAM,KAAI;AACtB,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAA;YAEtD,MAAM,gBAAgB,GACpB,OAAO,MAAM,CAAC,eAAe,KAAK,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;YACxH,MAAM,aAAa,GACjB,OAAO,MAAM,CAAC,iBAAiB,KAAK,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;YAE5H,OAAO,EAAE,GAAG,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAA;AACvD,SAAC,CAAA;KACF;IAEO,kBAAkB,CACxB,CAAyD,EACzD,GAGC,EAAA;AAED,QAAA,OAAO,OAAO,MAAM,KAAI;AACtB,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAA;YAE5D,OAAO;AACL,gBAAA,GAAG,MAAM;gBACT,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,gBAAiB,CAAC;gBACpD,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,YAAY,CAAC,gBAAiB,CAAC;aACjF,CAAA;AACH,SAAC,CAAA;KACF;AAyxBF;;;;"}
|
|
@@ -3,6 +3,8 @@ import { MultisigAccount, SigningAccount, TransactionSignerAccount } from './acc
|
|
|
3
3
|
import { AccountManager } from './account-manager';
|
|
4
4
|
import { AlgorandClientTransactionCreator } from './algorand-client-transaction-creator';
|
|
5
5
|
import { AlgorandClientTransactionSender } from './algorand-client-transaction-sender';
|
|
6
|
+
import { AppDeployer } from './app-deployer';
|
|
7
|
+
import { AppManager } from './app-manager';
|
|
6
8
|
import { AssetManager } from './asset-manager';
|
|
7
9
|
import { AlgoSdkClients, ClientManager } from './client-manager';
|
|
8
10
|
import AlgoKitComposer from './composer';
|
|
@@ -15,6 +17,8 @@ import LogicSigAccount = algosdk.LogicSigAccount;
|
|
|
15
17
|
export declare class AlgorandClient {
|
|
16
18
|
private _clientManager;
|
|
17
19
|
private _accountManager;
|
|
20
|
+
private _appManager;
|
|
21
|
+
private _appDeployer;
|
|
18
22
|
private _assetManager;
|
|
19
23
|
private _transactionSender;
|
|
20
24
|
private _transactionCreator;
|
|
@@ -79,6 +83,10 @@ export declare class AlgorandClient {
|
|
|
79
83
|
get account(): AccountManager;
|
|
80
84
|
/** Methods for interacting with assets. */
|
|
81
85
|
get asset(): AssetManager;
|
|
86
|
+
/** Methods for interacting with apps. */
|
|
87
|
+
get app(): AppManager;
|
|
88
|
+
/** Methods for deploying apps and managing app deployment metadata. */
|
|
89
|
+
get appDeployer(): AppDeployer;
|
|
82
90
|
/** Start a new `AlgoKitComposer` transaction group */
|
|
83
91
|
newGroup(): AlgoKitComposer;
|
|
84
92
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algorand-client.d.ts","sourceRoot":"","sources":["../../src/types/algorand-client.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAA;AACxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,YAAY,E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,mBAEjB;IAED,2CAA2C;IAC3C,IAAW,KAAK,iBAEf;IAED,yCAAyC;IACzC,IAAW,GAAG,eAEb;IAED,uEAAuE;IACvE,IAAW,WAAW,gBAErB;IAED,sDAAsD;IAC/C,QAAQ;IAUf;;OAEG;IACH,IAAW,IAAI,oCAEd;IAED;;OAEG;IACH,IAAW,YAAY,qCAEtB;IAID;;;OAGG;WACW,eAAe;IAQ7B;;;OAGG;WACW,OAAO;IAQrB;;;OAGG;WACW,OAAO;IAQrB;;;;OAIG;WACW,WAAW,CAAC,OAAO,EAAE,cAAc;IAIjD;;;;;;;;;;;;;;;;OAgBG;WACW,eAAe;IAI7B;;;;OAIG;WACW,UAAU,CAAC,MAAM,EAAE,UAAU;CAG5C;AAED,eAAe,cAAc,CAAA"}
|
package/types/algorand-client.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var types_accountManager = require('./account-manager.js');
|
|
6
6
|
var types_algorandClientTransactionCreator = require('./algorand-client-transaction-creator.js');
|
|
7
7
|
var types_algorandClientTransactionSender = require('./algorand-client-transaction-sender.js');
|
|
8
|
+
var types_appDeployer = require('./app-deployer.js');
|
|
9
|
+
var types_appManager = require('./app-manager.js');
|
|
8
10
|
var types_assetManager = require('./asset-manager.js');
|
|
9
11
|
var types_clientManager = require('./client-manager.js');
|
|
10
12
|
var types_composer = require('./composer.js');
|
|
@@ -18,9 +20,11 @@ class AlgorandClient {
|
|
|
18
20
|
this._defaultValidityWindow = undefined;
|
|
19
21
|
this._clientManager = new types_clientManager.ClientManager(config);
|
|
20
22
|
this._accountManager = new types_accountManager.AccountManager(this._clientManager);
|
|
23
|
+
this._appManager = new types_appManager.AppManager(this._clientManager.algod);
|
|
21
24
|
this._assetManager = new types_assetManager.AssetManager(this._clientManager.algod, () => this.newGroup());
|
|
22
|
-
this._transactionSender = new types_algorandClientTransactionSender.AlgorandClientTransactionSender(() => this.newGroup(), this._assetManager);
|
|
25
|
+
this._transactionSender = new types_algorandClientTransactionSender.AlgorandClientTransactionSender(() => this.newGroup(), this._assetManager, this._appManager);
|
|
23
26
|
this._transactionCreator = new types_algorandClientTransactionCreator.AlgorandClientTransactionCreator(() => this.newGroup());
|
|
27
|
+
this._appDeployer = new types_appDeployer.AppDeployer(this._appManager, this._transactionSender, this._clientManager.indexerIfPresent);
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Sets the default validity window for transactions.
|
|
@@ -114,6 +118,14 @@ class AlgorandClient {
|
|
|
114
118
|
get asset() {
|
|
115
119
|
return this._assetManager;
|
|
116
120
|
}
|
|
121
|
+
/** Methods for interacting with apps. */
|
|
122
|
+
get app() {
|
|
123
|
+
return this._appManager;
|
|
124
|
+
}
|
|
125
|
+
/** Methods for deploying apps and managing app deployment metadata. */
|
|
126
|
+
get appDeployer() {
|
|
127
|
+
return this._appDeployer;
|
|
128
|
+
}
|
|
117
129
|
/** Start a new `AlgoKitComposer` transaction group */
|
|
118
130
|
newGroup() {
|
|
119
131
|
return new types_composer.default({
|
|
@@ -121,6 +133,7 @@ class AlgorandClient {
|
|
|
121
133
|
getSigner: (addr) => this.account.getSigner(addr),
|
|
122
134
|
getSuggestedParams: () => this.getSuggestedParams(),
|
|
123
135
|
defaultValidityWindow: this._defaultValidityWindow,
|
|
136
|
+
appManager: this._appManager,
|
|
124
137
|
});
|
|
125
138
|
}
|
|
126
139
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algorand-client.js","sources":["../../src/types/algorand-client.ts"],"sourcesContent":[null],"names":["ClientManager","AccountManager","AssetManager","AlgorandClientTransactionSender","AlgorandClientTransactionCreator","AlgoKitComposer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"algorand-client.js","sources":["../../src/types/algorand-client.ts"],"sourcesContent":[null],"names":["ClientManager","AccountManager","AppManager","AssetManager","AlgorandClientTransactionSender","AlgorandClientTransactionCreator","AppDeployer","AlgoKitComposer"],"mappings":";;;;;;;;;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