@algorandfoundation/algokit-utils 7.0.0-beta.15 → 7.0.0-beta.16

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "7.0.0-beta.15",
9
+ "version": "7.0.0-beta.16",
10
10
  "private": false,
11
11
  "description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
12
12
  "author": "Algorand Foundation",
@@ -777,7 +777,7 @@ export declare class AlgorandClientTransactionSender {
777
777
  boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
778
778
  approvalProgram: string | Uint8Array;
779
779
  clearStateProgram: string | Uint8Array;
780
- }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
780
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
781
781
  } & SendParams) => Promise<SendAppCreateTransactionResult>;
782
782
  /**
783
783
  * Update a smart contract via an ABI method.
@@ -902,7 +902,7 @@ export declare class AlgorandClientTransactionSender {
902
902
  boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
903
903
  approvalProgram: string | Uint8Array;
904
904
  clearStateProgram: string | Uint8Array;
905
- }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
905
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
906
906
  } & SendParams) => Promise<SendAppUpdateTransactionResult>;
907
907
  /**
908
908
  * Delete a smart contract via an ABI method.
@@ -1023,7 +1023,7 @@ export declare class AlgorandClientTransactionSender {
1023
1023
  boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1024
1024
  approvalProgram: string | Uint8Array;
1025
1025
  clearStateProgram: string | Uint8Array;
1026
- }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
1026
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
1027
1027
  } & SendParams) => Promise<SendAppTransactionResult>;
1028
1028
  /**
1029
1029
  * Call a smart contract via an ABI method.
@@ -1144,7 +1144,7 @@ export declare class AlgorandClientTransactionSender {
1144
1144
  boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1145
1145
  approvalProgram: string | Uint8Array;
1146
1146
  clearStateProgram: string | Uint8Array;
1147
- }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
1147
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
1148
1148
  } & SendParams) => Promise<SendAppTransactionResult>;
1149
1149
  /** Register an online key. */
1150
1150
  onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
@@ -243,6 +243,7 @@ export type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId'
243
243
  * * A transaction (where the signer will be automatically assigned)
244
244
  * * An unawaited transaction (e.g. from algorand.createTransaction.transactionType())
245
245
  * * Another method call (via method call params object)
246
+ * * undefined (this represents a placeholder for either a default argument or a transaction argument that is fulfilled by another method call argument)
246
247
  */
247
248
  args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[];
248
249
  }>;
@@ -474,7 +475,7 @@ export declare class AppClient {
474
475
  boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
475
476
  approvalProgram: string | Uint8Array;
476
477
  clearStateProgram: string | Uint8Array;
477
- }> | AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
478
+ }> | AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
478
479
  }>;
479
480
  /** Return params for an opt-in ABI call */
480
481
  optIn: (params: {
@@ -479,7 +479,9 @@ class AppClient {
479
479
  }
480
480
  }
481
481
  }
482
- throw new Error(`No value provided for required argument ${arg.name ?? `arg${i + 1}`} in call to method ${m.name}`);
482
+ if (!algosdk.abiTypeIsTransaction(arg.type)) {
483
+ throw new Error(`No value provided for required argument ${arg.name ?? `arg${i + 1}`} in call to method ${m.name}`);
484
+ }
483
485
  }) ?? []);
484
486
  }
485
487
  getBareParamsMethods() {