@algorandfoundation/algokit-utils 9.2.1-beta.2 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.d.ts +1 -1
- package/package.json +2 -2
- package/transaction/resolve-signed-transactions.js +28 -0
- package/transaction/resolve-signed-transactions.js.map +1 -0
- package/transaction/resolve-signed-transactions.mjs +26 -0
- package/transaction/resolve-signed-transactions.mjs.map +1 -0
- package/transaction/transaction.js +13 -6
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +13 -6
- package/transaction/transaction.mjs.map +1 -1
- package/types/account-manager.d.ts +1 -1
- package/types/algorand-client-transaction-creator.d.ts +1 -1
- package/types/algorand-client-transaction-sender.d.ts +8 -8
- package/types/app-client.d.ts +9 -9
- package/types/app-factory.d.ts +24 -24
- package/types/composer.js +2 -1
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +2 -1
- package/types/composer.mjs.map +1 -1
package/types/app-factory.d.ts
CHANGED
|
@@ -188,11 +188,11 @@ declare class AppFactory {
|
|
|
188
188
|
extraProgramPages?: number | undefined;
|
|
189
189
|
} & {
|
|
190
190
|
sender: algosdk.Address;
|
|
191
|
-
signer: algosdk.TransactionSigner |
|
|
191
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
192
192
|
method: Arc56Method;
|
|
193
|
-
args: (algosdk.
|
|
194
|
-
sender: string | Address;
|
|
193
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
195
194
|
signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
|
|
195
|
+
sender: string | Address;
|
|
196
196
|
rekeyTo?: (string | Address) | undefined;
|
|
197
197
|
note?: (Uint8Array | string) | undefined;
|
|
198
198
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -268,11 +268,11 @@ declare class AppFactory {
|
|
|
268
268
|
args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
269
269
|
} & {
|
|
270
270
|
sender: algosdk.Address;
|
|
271
|
-
signer: algosdk.TransactionSigner |
|
|
271
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
272
272
|
method: Arc56Method;
|
|
273
|
-
args: (algosdk.
|
|
274
|
-
sender: string | Address;
|
|
273
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
275
274
|
signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
|
|
275
|
+
sender: string | Address;
|
|
276
276
|
rekeyTo?: (string | Address) | undefined;
|
|
277
277
|
note?: (Uint8Array | string) | undefined;
|
|
278
278
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -348,11 +348,11 @@ declare class AppFactory {
|
|
|
348
348
|
args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
349
349
|
} & {
|
|
350
350
|
sender: algosdk.Address;
|
|
351
|
-
signer: algosdk.TransactionSigner |
|
|
351
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
352
352
|
method: Arc56Method;
|
|
353
|
-
args: (algosdk.
|
|
354
|
-
sender: string | Address;
|
|
353
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
355
354
|
signer?: (algosdk.TransactionSigner | TransactionSignerAccount) | undefined;
|
|
355
|
+
sender: string | Address;
|
|
356
356
|
rekeyTo?: (string | Address) | undefined;
|
|
357
357
|
note?: (Uint8Array | string) | undefined;
|
|
358
358
|
lease?: (Uint8Array | string) | undefined;
|
|
@@ -442,7 +442,7 @@ declare class AppFactory {
|
|
|
442
442
|
extraProgramPages?: number;
|
|
443
443
|
} & {
|
|
444
444
|
sender: algosdk.Address;
|
|
445
|
-
signer: algosdk.TransactionSigner |
|
|
445
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
446
446
|
onComplete: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
447
447
|
}>; /** Return params for a deployment update bare call */
|
|
448
448
|
deployUpdate: (params?: AppClientBareCallParams) => {
|
|
@@ -466,7 +466,7 @@ declare class AppFactory {
|
|
|
466
466
|
sender?: (Address | string) | undefined;
|
|
467
467
|
} & {
|
|
468
468
|
sender: algosdk.Address;
|
|
469
|
-
signer: algosdk.TransactionSigner |
|
|
469
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
470
470
|
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
471
471
|
}; /** Return params for a deployment delete bare call */
|
|
472
472
|
deployDelete: (params?: AppClientBareCallParams) => {
|
|
@@ -490,7 +490,7 @@ declare class AppFactory {
|
|
|
490
490
|
sender?: (Address | string) | undefined;
|
|
491
491
|
} & {
|
|
492
492
|
sender: algosdk.Address;
|
|
493
|
-
signer: algosdk.TransactionSigner |
|
|
493
|
+
signer: TransactionSignerAccount | algosdk.TransactionSigner | undefined;
|
|
494
494
|
onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
495
495
|
};
|
|
496
496
|
};
|
|
@@ -562,7 +562,6 @@ declare class AppFactory {
|
|
|
562
562
|
result: {
|
|
563
563
|
compiledApproval?: CompiledTeal | undefined;
|
|
564
564
|
compiledClear?: CompiledTeal | undefined;
|
|
565
|
-
appId: bigint;
|
|
566
565
|
groupId: string;
|
|
567
566
|
txIds: string[];
|
|
568
567
|
returns?: ABIReturn[] | undefined;
|
|
@@ -570,8 +569,9 @@ declare class AppFactory {
|
|
|
570
569
|
transactions: algosdk.Transaction[];
|
|
571
570
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
572
571
|
transaction: algosdk.Transaction;
|
|
572
|
+
appId: bigint;
|
|
573
573
|
appAddress: Address;
|
|
574
|
-
return?:
|
|
574
|
+
return?: Uint8Array<ArrayBufferLike> | algosdk.ABIValue | ABIStruct | undefined;
|
|
575
575
|
};
|
|
576
576
|
}>;
|
|
577
577
|
};
|
|
@@ -614,14 +614,14 @@ declare class AppFactory {
|
|
|
614
614
|
deploy(params: AppFactoryDeployParams): Promise<{
|
|
615
615
|
appClient: AppClient;
|
|
616
616
|
result: {
|
|
617
|
-
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
618
|
-
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
617
|
+
return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
618
|
+
deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
619
619
|
compiledApproval?: CompiledTeal | undefined;
|
|
620
620
|
compiledClear?: CompiledTeal | undefined;
|
|
621
621
|
operationPerformed: "create";
|
|
622
|
-
name: string;
|
|
623
622
|
updatable?: boolean | undefined;
|
|
624
623
|
deletable?: boolean | undefined;
|
|
624
|
+
name: string;
|
|
625
625
|
createdRound: bigint;
|
|
626
626
|
updatedRound: bigint;
|
|
627
627
|
createdMetadata: AppDeployMetadata;
|
|
@@ -637,8 +637,8 @@ declare class AppFactory {
|
|
|
637
637
|
appId: bigint;
|
|
638
638
|
appAddress: Address;
|
|
639
639
|
} | {
|
|
640
|
-
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
641
|
-
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
640
|
+
return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
641
|
+
deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
642
642
|
compiledApproval?: CompiledTeal | undefined;
|
|
643
643
|
compiledClear?: CompiledTeal | undefined;
|
|
644
644
|
operationPerformed: "update";
|
|
@@ -660,14 +660,14 @@ declare class AppFactory {
|
|
|
660
660
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
661
661
|
transaction: algosdk.Transaction;
|
|
662
662
|
} | {
|
|
663
|
-
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
664
|
-
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
663
|
+
return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
664
|
+
deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
665
665
|
compiledApproval?: CompiledTeal | undefined;
|
|
666
666
|
compiledClear?: CompiledTeal | undefined;
|
|
667
667
|
operationPerformed: "replace";
|
|
668
|
-
name: string;
|
|
669
668
|
updatable?: boolean | undefined;
|
|
670
669
|
deletable?: boolean | undefined;
|
|
670
|
+
name: string;
|
|
671
671
|
createdRound: bigint;
|
|
672
672
|
updatedRound: bigint;
|
|
673
673
|
createdMetadata: AppDeployMetadata;
|
|
@@ -684,8 +684,8 @@ declare class AppFactory {
|
|
|
684
684
|
appAddress: Address;
|
|
685
685
|
deleteResult: ConfirmedTransactionResult;
|
|
686
686
|
} | {
|
|
687
|
-
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
688
|
-
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
687
|
+
return: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
688
|
+
deleteReturn: string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | ABIStruct | undefined;
|
|
689
689
|
compiledApproval?: CompiledTeal | undefined;
|
|
690
690
|
compiledClear?: CompiledTeal | undefined;
|
|
691
691
|
operationPerformed: "nothing";
|
package/types/composer.js
CHANGED
|
@@ -3,6 +3,7 @@ const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
|
3
3
|
const require_config = require("../config.js");
|
|
4
4
|
require("./lifecycle-events.js");
|
|
5
5
|
const require_util = require("../util.js");
|
|
6
|
+
const require_resolve_signed_transactions = require("../transaction/resolve-signed-transactions.js");
|
|
6
7
|
const require_transaction = require("../transaction/transaction.js");
|
|
7
8
|
const require_app_manager = require("./app-manager.js");
|
|
8
9
|
const require_network_client = require("./network-client.js");
|
|
@@ -1394,7 +1395,7 @@ var TransactionComposer = class TransactionComposer {
|
|
|
1394
1395
|
throw await this.transformError(error);
|
|
1395
1396
|
}
|
|
1396
1397
|
if (require_config.Config.debug && require_config.Config.traceAll) await require_config.Config.events.emitAsync("TxnGroupSimulated", { simulateResponse });
|
|
1397
|
-
const transactions = atc.buildGroup().map((t) => t.txn);
|
|
1398
|
+
const transactions = require_resolve_signed_transactions.resolveSignedTransactions(atc.buildGroup().map((t) => t.txn), await atc.gatherSignatures());
|
|
1398
1399
|
const methodCalls = [...atc["methodCalls"].values()];
|
|
1399
1400
|
return {
|
|
1400
1401
|
confirmations: simulateResponse.txnGroups[0].txnResults.map((t) => t.txnResult),
|