diff --git a/algorandfoundation-algokit-utils-debug-0.1.0.tgz b/algorandfoundation-algokit-utils-debug-0.1.0.tgz deleted file mode 100644 index 1c75e7da..00000000 Binary files a/algorandfoundation-algokit-utils-debug-0.1.0.tgz and /dev/null differ diff --git a/docs/code/classes/types_composer.default.md b/docs/code/classes/types_composer.default.md index dffafd87..77197ff8 100644 --- a/docs/code/classes/types_composer.default.md +++ b/docs/code/classes/types_composer.default.md @@ -88,7 +88,7 @@ Create an `AlgoKitComposer`. #### Defined in -[src/types/composer.ts:526](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L526) +[src/types/composer.ts:525](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L525) ## Properties @@ -100,7 +100,7 @@ The algod client used by the composer. #### Defined in -[src/types/composer.ts:506](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L506) +[src/types/composer.ts:505](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L505) ___ @@ -110,7 +110,7 @@ ___ #### Defined in -[src/types/composer.ts:520](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L520) +[src/types/composer.ts:519](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L519) ___ @@ -122,7 +122,7 @@ The ATC used to compose the group #### Defined in -[src/types/composer.ts:497](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L497) +[src/types/composer.ts:496](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L496) ___ @@ -134,7 +134,7 @@ The default transaction validity window #### Defined in -[src/types/composer.ts:515](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L515) +[src/types/composer.ts:514](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L514) ___ @@ -146,7 +146,7 @@ Whether the validity window was explicitly set on construction #### Defined in -[src/types/composer.ts:518](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L518) +[src/types/composer.ts:517](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L517) ___ @@ -172,7 +172,7 @@ A function that takes in an address and return a signer function for that addres #### Defined in -[src/types/composer.ts:512](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L512) +[src/types/composer.ts:511](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L511) ___ @@ -192,7 +192,7 @@ An async function that will return suggested params for the transaction. #### Defined in -[src/types/composer.ts:509](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L509) +[src/types/composer.ts:508](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L508) ___ @@ -204,7 +204,7 @@ Map of txid to ABI method #### Defined in -[src/types/composer.ts:500](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L500) +[src/types/composer.ts:499](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L499) ___ @@ -216,7 +216,7 @@ Transactions that have not yet been composed #### Defined in -[src/types/composer.ts:503](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L503) +[src/types/composer.ts:502](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L502) ___ @@ -228,7 +228,7 @@ Signer used to represent a lack of signer #### Defined in -[src/types/composer.ts:494](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L494) +[src/types/composer.ts:493](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L493) ## Methods @@ -256,7 +256,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:688](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L688) +[src/types/composer.ts:687](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L687) ___ @@ -282,7 +282,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:737](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L737) +[src/types/composer.ts:736](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L736) ___ @@ -333,7 +333,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:647](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L647) +[src/types/composer.ts:646](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L646) ___ @@ -359,7 +359,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:701](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L701) +[src/types/composer.ts:700](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L700) ___ @@ -385,7 +385,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:673](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L673) +[src/types/composer.ts:672](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L672) ___ @@ -411,7 +411,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:725](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L725) +[src/types/composer.ts:724](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L724) ___ @@ -457,7 +457,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:660](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L660) +[src/types/composer.ts:659](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L659) ___ @@ -483,7 +483,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:713](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L713) +[src/types/composer.ts:712](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L712) ___ @@ -507,7 +507,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:579](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L579) +[src/types/composer.ts:578](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L578) ___ @@ -531,7 +531,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:568](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L568) +[src/types/composer.ts:567](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L567) ___ @@ -555,7 +555,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:601](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L601) +[src/types/composer.ts:600](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L600) ___ @@ -579,7 +579,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:590](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L590) +[src/types/composer.ts:589](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L589) ___ @@ -603,7 +603,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:623](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L623) +[src/types/composer.ts:622](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L622) ___ @@ -627,7 +627,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:634](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L634) +[src/types/composer.ts:633](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L633) ___ @@ -651,7 +651,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:612](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L612) +[src/types/composer.ts:611](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L611) ___ @@ -675,7 +675,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:758](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L758) +[src/types/composer.ts:757](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L757) ___ @@ -699,7 +699,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:747](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L747) +[src/types/composer.ts:746](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L746) ___ @@ -723,7 +723,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:557](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L557) +[src/types/composer.ts:556](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L556) ___ @@ -748,7 +748,7 @@ The composer so you can chain method calls #### Defined in -[src/types/composer.ts:542](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L542) +[src/types/composer.ts:541](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L541) ___ @@ -771,7 +771,7 @@ The built atomic transaction composer and the transactions #### Defined in -[src/types/composer.ts:1198](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1198) +[src/types/composer.ts:1197](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1197) ___ @@ -792,7 +792,7 @@ ___ #### Defined in -[src/types/composer.ts:1021](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1021) +[src/types/composer.ts:1020](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1020) ___ @@ -813,7 +813,7 @@ ___ #### Defined in -[src/types/composer.ts:970](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L970) +[src/types/composer.ts:969](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L969) ___ @@ -834,7 +834,7 @@ ___ #### Defined in -[src/types/composer.ts:950](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L950) +[src/types/composer.ts:949](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L949) ___ @@ -855,7 +855,7 @@ ___ #### Defined in -[src/types/composer.ts:985](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L985) +[src/types/composer.ts:984](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L984) ___ @@ -876,7 +876,7 @@ ___ #### Defined in -[src/types/composer.ts:995](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L995) +[src/types/composer.ts:994](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L994) ___ @@ -897,7 +897,7 @@ ___ #### Defined in -[src/types/composer.ts:1007](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1007) +[src/types/composer.ts:1006](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1006) ___ @@ -920,7 +920,7 @@ Build an ATC and return transactions ready to be incorporated into a broader set #### Defined in -[src/types/composer.ts:764](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L764) +[src/types/composer.ts:763](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L763) ___ @@ -941,7 +941,7 @@ ___ #### Defined in -[src/types/composer.ts:1076](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1076) +[src/types/composer.ts:1075](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1075) ___ @@ -965,7 +965,7 @@ Builds an ABI method call transaction and any other associated transactions repr #### Defined in -[src/types/composer.ts:830](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L830) +[src/types/composer.ts:829](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L829) ___ @@ -986,7 +986,7 @@ ___ #### Defined in -[src/types/composer.ts:938](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L938) +[src/types/composer.ts:937](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L937) ___ @@ -1004,7 +1004,7 @@ The array of built transactions and any corresponding method calls #### Defined in -[src/types/composer.ts:1145](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1145) +[src/types/composer.ts:1144](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1144) ___ @@ -1027,7 +1027,7 @@ Builds all transaction types apart from `txnWithSigner`, `atc` and `methodCall` #### Defined in -[src/types/composer.ts:1095](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1095) +[src/types/composer.ts:1094](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1094) ___ @@ -1048,7 +1048,7 @@ ___ #### Defined in -[src/types/composer.ts:1122](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1122) +[src/types/composer.ts:1121](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1121) ___ @@ -1070,7 +1070,7 @@ ___ #### Defined in -[src/types/composer.ts:785](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L785) +[src/types/composer.ts:784](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L784) ___ @@ -1086,7 +1086,7 @@ Get the number of transactions currently added to this composer. #### Defined in -[src/types/composer.ts:1185](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1185) +[src/types/composer.ts:1184](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1184) ___ @@ -1116,7 +1116,7 @@ An alias for `composer.send(params)`. #### Defined in -[src/types/composer.ts:1267](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1267) +[src/types/composer.ts:1266](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1266) ___ @@ -1135,7 +1135,7 @@ The newly built atomic transaction composer and the transactions #### Defined in -[src/types/composer.ts:1227](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1227) +[src/types/composer.ts:1226](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1226) ___ @@ -1159,7 +1159,7 @@ The execution result #### Defined in -[src/types/composer.ts:1237](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1237) +[src/types/composer.ts:1236](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1236) ___ @@ -1183,7 +1183,7 @@ The simulation result #### Defined in -[src/types/composer.ts:1275](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1275) +[src/types/composer.ts:1274](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1274) ___ @@ -1209,4 +1209,4 @@ The binary encoded transaction note #### Defined in -[src/types/composer.ts:1331](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1331) +[src/types/composer.ts:1347](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L1347) diff --git a/docs/code/interfaces/types_composer.BuiltTransactions.md b/docs/code/interfaces/types_composer.BuiltTransactions.md index 5de36bc3..79d341b9 100644 --- a/docs/code/interfaces/types_composer.BuiltTransactions.md +++ b/docs/code/interfaces/types_composer.BuiltTransactions.md @@ -24,7 +24,7 @@ Any `ABIMethod` objects associated with any of the transactions in a map keyed b #### Defined in -[src/types/composer.ts:486](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L486) +[src/types/composer.ts:485](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L485) ___ @@ -36,7 +36,7 @@ Any `TransactionSigner` objects associated with any of the transactions in a map #### Defined in -[src/types/composer.ts:488](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L488) +[src/types/composer.ts:487](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L487) ___ @@ -48,4 +48,4 @@ The built transactions #### Defined in -[src/types/composer.ts:484](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L484) +[src/types/composer.ts:483](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L483) diff --git a/docs/code/modules/index.md b/docs/code/modules/index.md index 38105a70..9936dfa3 100644 --- a/docs/code/modules/index.md +++ b/docs/code/modules/index.md @@ -543,7 +543,7 @@ the estimated rate. #### Defined in -[src/transaction/transaction.ts:878](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L878) +[src/transaction/transaction.ts:879](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L879) ___ @@ -607,7 +607,7 @@ Allows for control of fees on a `Transaction` or `SuggestedParams` object #### Defined in -[src/transaction/transaction.ts:903](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L903) +[src/transaction/transaction.ts:904](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L904) ___ @@ -934,7 +934,7 @@ Converts `bigint`'s for Uint's < 64 to `number` for easier use. #### Defined in -[src/transaction/transaction.ts:728](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L728) +[src/transaction/transaction.ts:729](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L729) ___ @@ -1917,7 +1917,7 @@ Returns the array of transactions currently present in the given `AtomicTransact #### Defined in -[src/transaction/transaction.ts:939](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L939) +[src/transaction/transaction.ts:940](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L940) ___ @@ -2304,7 +2304,7 @@ Returns suggested transaction parameters from algod unless some are already prov #### Defined in -[src/transaction/transaction.ts:928](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L928) +[src/transaction/transaction.ts:929](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L929) ___ @@ -2621,7 +2621,7 @@ Performs a dry run of the transactions loaded into the given AtomicTransactionCo #### Defined in -[src/transaction/transaction.ts:754](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L754) +[src/transaction/transaction.ts:755](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L755) ___ @@ -2943,7 +2943,7 @@ Signs and sends a group of [up to 16](https://developer.algorand.org/docs/get-de #### Defined in -[src/transaction/transaction.ts:774](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L774) +[src/transaction/transaction.ts:775](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L775) ___ @@ -3216,4 +3216,4 @@ Throws an error if the transaction is not confirmed or rejected in the next `tim #### Defined in -[src/transaction/transaction.ts:819](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L819) +[src/transaction/transaction.ts:820](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L820) diff --git a/docs/code/modules/types_composer.md b/docs/code/modules/types_composer.md index b8eaabcd..68b7ed14 100644 --- a/docs/code/modules/types_composer.md +++ b/docs/code/modules/types_composer.md @@ -64,7 +64,7 @@ Parameters to create an `AlgoKitComposer`. #### Defined in -[src/types/composer.ts:463](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L463) +[src/types/composer.ts:462](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L462) ___ @@ -76,7 +76,7 @@ Parameters to define an ABI method call transaction. #### Defined in -[src/types/composer.ts:412](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L412) +[src/types/composer.ts:411](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L411) ___ @@ -88,7 +88,7 @@ Parameters to define an application call transaction. #### Defined in -[src/types/composer.ts:388](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L388) +[src/types/composer.ts:387](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L387) ___ @@ -100,7 +100,7 @@ Parameters to define an ABI method call create transaction. #### Defined in -[src/types/composer.ts:406](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L406) +[src/types/composer.ts:405](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L405) ___ @@ -112,7 +112,7 @@ Parameters to define an app create transaction #### Defined in -[src/types/composer.ts:351](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L351) +[src/types/composer.ts:350](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L350) ___ @@ -124,7 +124,7 @@ Parameters to define an ABI method call delete transaction. #### Defined in -[src/types/composer.ts:410](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L410) +[src/types/composer.ts:409](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L409) ___ @@ -136,7 +136,7 @@ Parameters to define an application delete call transaction. #### Defined in -[src/types/composer.ts:401](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L401) +[src/types/composer.ts:400](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L400) ___ @@ -154,7 +154,7 @@ Parameters to define an ABI method call. #### Defined in -[src/types/composer.ts:425](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L425) +[src/types/composer.ts:424](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L424) ___ @@ -166,7 +166,7 @@ Common parameters to define an ABI method call transaction. #### Defined in -[src/types/composer.ts:393](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L393) +[src/types/composer.ts:392](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L392) ___ @@ -178,7 +178,7 @@ Types that can be used to define a transaction argument for an ABI call transact #### Defined in -[src/types/composer.ts:415](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L415) +[src/types/composer.ts:414](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L414) ___ @@ -190,7 +190,7 @@ Parameters to define an ABI method call update transaction. #### Defined in -[src/types/composer.ts:408](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L408) +[src/types/composer.ts:407](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L407) ___ @@ -202,7 +202,7 @@ Parameters to define an app update transaction #### Defined in -[src/types/composer.ts:377](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L377) +[src/types/composer.ts:376](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L376) ___ @@ -218,7 +218,7 @@ all fields are immutable from that point forward. #### Defined in -[src/types/composer.ts:204](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L204) +[src/types/composer.ts:203](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L203) ___ @@ -232,7 +232,7 @@ The account that sends this transaction will automatically be opted in to the as #### Defined in -[src/types/composer.ts:88](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L88) +[src/types/composer.ts:87](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L87) ___ @@ -246,7 +246,7 @@ Created assets can be destroyed only by the asset manager account. All of the as #### Defined in -[src/types/composer.ts:262](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L262) +[src/types/composer.ts:261](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L261) ___ @@ -258,7 +258,7 @@ Parameters to define an asset freeze transaction. #### Defined in -[src/types/composer.ts:249](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L249) +[src/types/composer.ts:248](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L248) ___ @@ -270,7 +270,7 @@ Parameters to define an asset opt-in transaction. #### Defined in -[src/types/composer.ts:290](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L290) +[src/types/composer.ts:289](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L289) ___ @@ -282,7 +282,7 @@ Parameters to define an asset opt-out transaction. #### Defined in -[src/types/composer.ts:296](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L296) +[src/types/composer.ts:295](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L295) ___ @@ -294,7 +294,7 @@ Parameters to define an asset transfer transaction. #### Defined in -[src/types/composer.ts:268](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L268) +[src/types/composer.ts:267](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L267) ___ @@ -306,7 +306,7 @@ Common parameters for defining an application call transaction. #### Defined in -[src/types/composer.ts:329](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L329) +[src/types/composer.ts:328](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L328) ___ @@ -334,7 +334,7 @@ Common parameters for defining a transaction. #### Defined in -[src/types/composer.ts:31](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L31) +[src/types/composer.ts:30](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L30) ___ @@ -346,7 +346,7 @@ Parameters to define an online key registration transaction. #### Defined in -[src/types/composer.ts:307](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L307) +[src/types/composer.ts:306](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L306) ___ @@ -358,7 +358,7 @@ Parameters to define a payment transaction. #### Defined in -[src/types/composer.ts:72](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L72) +[src/types/composer.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L71) ___ @@ -370,7 +370,7 @@ Options to control a simulate request #### Defined in -[src/types/composer.ts:25](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L25) +[src/types/composer.ts:24](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L24) ___ @@ -380,7 +380,7 @@ ___ #### Defined in -[src/types/composer.ts:447](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L447) +[src/types/composer.ts:446](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L446) ## Variables @@ -390,4 +390,4 @@ ___ #### Defined in -[src/types/composer.ts:22](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L22) +[src/types/composer.ts:21](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/composer.ts#L21) diff --git a/src/transaction/transaction.ts b/src/transaction/transaction.ts index ca9f6ded..921a6922 100644 --- a/src/transaction/transaction.ts +++ b/src/transaction/transaction.ts @@ -681,6 +681,7 @@ export const sendAtomicTransactionComposer = async function (atcSend: AtomicTran ) const simulate = await performAtomicTransactionComposerSimulate(atc, algod) if (Config.debug && !Config.traceAll) { + // Emit the event only if traceAll: false, as it should have already been emitted above await Config.events.emitAsync(EventType.TxnGroupSimulated, { simulateResponse: simulate, }) diff --git a/src/types/composer.ts b/src/types/composer.ts index 731f45ca..4c02ed0d 100644 --- a/src/types/composer.ts +++ b/src/types/composer.ts @@ -1,6 +1,5 @@ import algosdk from 'algosdk' import { Config } from '../config' -import { performAtomicTransactionComposerSimulate } from '../transaction/perform-atomic-transaction-composer-simulate' import { encodeLease, getABIReturnValue, sendAtomicTransactionComposer } from '../transaction/transaction' import { TransactionSignerAccount } from './account' import { AlgoAmount } from './amount' @@ -1289,27 +1288,44 @@ export default class AlgoKitComposer { await this.build() } - if (Config.debug && !Config.traceAll) { - // Dump the traces to a file for use with AlgoKit AVM debugger - // Checks for false on traceAll because it should have been already - // executed above - const simulateResponse = await performAtomicTransactionComposerSimulate(atc, this.algod) - await Config.events.emitAsync(EventType.TxnGroupSimulated, { - simulateResponse, - }) - } + const { methodResults, simulateResponse } = await atc.simulate( + this.algod, + new modelsv2.SimulateRequest({ + txnGroups: [], + ...options, + ...(Config.debug + ? { + allowEmptySignatures: true, + allowMoreLogging: true, + execTraceConfig: new modelsv2.SimulateTraceConfig({ + enable: true, + scratchChange: true, + stackChange: true, + stateChange: true, + }), + } + : undefined), + }), + ) - const { methodResults, simulateResponse } = await atc.simulate(this.algod, new modelsv2.SimulateRequest({ txnGroups: [], ...options })) + const failedGroup = simulateResponse?.txnGroups[0] + if (failedGroup?.failureMessage) { + const errorMessage = `Transaction failed at transaction(s) ${failedGroup.failedAt?.join(', ') || 'unknown'} in the group. ${failedGroup.failureMessage}` + const error = new Error(errorMessage) + + if (Config.debug) { + await Config.events.emitAsync(EventType.TxnGroupSimulated, { simulateResponse }) + } - if (simulateResponse && simulateResponse.txnGroups[0].failedAt) { - const error = new Error( - `Transaction failed at transaction(s) ${simulateResponse.txnGroups[0].failedAt.join(', ')} in the group. ${simulateResponse.txnGroups.find((x) => x.failureMessage)?.failureMessage}`, - ) // eslint-disable-next-line @typescript-eslint/no-explicit-any ;(error as any).simulateResponse = simulateResponse throw error } + if (Config.debug && Config.traceAll) { + await Config.events.emitAsync(EventType.TxnGroupSimulated, { simulateResponse }) + } + const transactions = atc.buildGroup().map((t) => t.txn) return { confirmations: simulateResponse.txnGroups[0].txnResults.map((t) => t.txnResult),