@algorandfoundation/algokit-utils 10.0.0-alpha.20 → 10.0.0-alpha.21
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 +1 -6
- package/packages/algo25/src/index.js +1 -1
- package/packages/algo25/src/index.mjs +1 -1
- package/packages/common/src/json.mjs +2 -2
- package/packages/common/src/json.mjs.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
- package/testing/transaction-logger.js +1 -1
- package/testing/transaction-logger.mjs +1 -1
- package/transactions/app-call.js +1 -1
- package/transactions/app-call.mjs +1 -1
- package/transactions/method-call.js +1 -1
- package/transactions/method-call.mjs +1 -1
- package/types/account-manager.js +3 -3
- package/types/account-manager.mjs +3 -3
- package/types/algorand-client-transaction-creator.d.ts +18 -18
- package/types/algorand-client-transaction-sender.d.ts +18 -18
- package/types/amount.js +23 -4
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +20 -2
- package/types/amount.mjs.map +1 -1
- package/types/app-client.d.ts +64 -64
- package/types/app-client.js +2 -2
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +2 -2
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.js +1 -1
- package/types/app-deployer.mjs +1 -1
- package/types/app-factory.d.ts +26 -26
- package/types/app-factory.js +2 -2
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +2 -2
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.js +1 -1
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +1 -1
- package/types/app-manager.mjs.map +1 -1
- package/types/app.d.ts +1 -1
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/composer.js +20 -20
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +4 -4
- package/types/kmd-account-manager.js +1 -1
- package/types/kmd-account-manager.mjs +1 -1
- package/packages/sdk/src/convert.d.ts +0 -17
- package/packages/sdk/src/convert.js +0 -28
- package/packages/sdk/src/convert.js.map +0 -1
- package/packages/sdk/src/convert.mjs +0 -25
- package/packages/sdk/src/convert.mjs.map +0 -1
- package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
- package/packages/sdk/src/encoding/binarydata.js +0 -65
- package/packages/sdk/src/encoding/binarydata.js.map +0 -1
- package/packages/sdk/src/encoding/binarydata.mjs +0 -60
- package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
- package/packages/sdk/src/encoding/encoding.d.ts +0 -237
- package/packages/sdk/src/encoding/encoding.js +0 -312
- package/packages/sdk/src/encoding/encoding.js.map +0 -1
- package/packages/sdk/src/encoding/encoding.mjs +0 -298
- package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/array.js +0 -35
- package/packages/sdk/src/encoding/schema/array.js.map +0 -1
- package/packages/sdk/src/encoding/schema/array.mjs +0 -35
- package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
- package/packages/sdk/src/encoding/schema/map.js +0 -108
- package/packages/sdk/src/encoding/schema/map.js.map +0 -1
- package/packages/sdk/src/encoding/schema/map.mjs +0 -107
- package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.js +0 -46
- package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
- package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.js +0 -30
- package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
- package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
- package/packages/sdk/src/encoding/uint64.d.ts +0 -34
- package/packages/sdk/src/encoding/uint64.js +0 -34
- package/packages/sdk/src/encoding/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/uint64.mjs +0 -33
- package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
- package/packages/sdk/src/index.d.ts +0 -44
- package/packages/sdk/src/index.js +0 -62
- package/packages/sdk/src/index.js.map +0 -1
- package/packages/sdk/src/index.mjs +0 -58
- package/packages/sdk/src/index.mjs.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.js +0 -14
- package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
- package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
- package/packages/sdk/src/types/intDecoding.d.ts +0 -28
- package/packages/sdk/src/types/intDecoding.js +0 -32
- package/packages/sdk/src/types/intDecoding.js.map +0 -1
- package/packages/sdk/src/types/intDecoding.mjs +0 -31
- package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
- package/packages/sdk/src/types/transactions/encoded.js +0 -64
- package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
- package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
- package/packages/sdk/src/utils/utils.d.ts +0 -64
- package/packages/sdk/src/utils/utils.js +0 -140
- package/packages/sdk/src/utils/utils.js.map +0 -1
- package/packages/sdk/src/utils/utils.mjs +0 -128
- package/packages/sdk/src/utils/utils.mjs.map +0 -1
- package/sdk/index.d.ts +0 -10
- package/sdk/index.js +0 -59
- package/sdk/index.mjs +0 -11
package/types/amount.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amount.js","names":[],"sources":["../../src/types/amount.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"amount.js","names":[],"sources":["../../src/types/amount.ts"],"sourcesContent":["/** Wrapper class to ensure safe, explicit conversion between µAlgo, Algo and numbers */\nexport class AlgoAmount {\n private amountInMicroAlgo: bigint\n\n /** Return the amount as a number in µAlgo */\n get microAlgos() {\n return this.amountInMicroAlgo\n }\n\n /** Return the amount as a number in µAlgo */\n get microAlgo() {\n return this.amountInMicroAlgo\n }\n\n /** Return the amount as a number in Algo */\n get algos() {\n return microalgosToAlgos(Number(this.amountInMicroAlgo))\n }\n\n /** Return the amount as a number in Algo */\n get algo() {\n return microalgosToAlgos(Number(this.amountInMicroAlgo))\n }\n\n /**\n * Create a new `AlgoAmount` instance.\n *\n * @param amount - An object specifying the amount in Algo or µALGO. Use the key 'algo' for Algo amounts and 'microAlgo' for µALGO.\n * @returns A new instance of `AlgoAmount` representing the specified amount.\n * @example\n * ```typescript\n * const amount = new AlgoAmount({ algo: 5 });\n * ```\n */\n constructor(\n amount: { algos: number | bigint } | { algo: number | bigint } | { microAlgos: number | bigint } | { microAlgo: number | bigint },\n ) {\n this.amountInMicroAlgo =\n 'microAlgos' in amount\n ? BigInt(amount.microAlgos)\n : 'microAlgo' in amount\n ? BigInt(amount.microAlgo)\n : 'algos' in amount\n ? BigInt(algosToMicroalgos(Number(amount.algos)))\n : BigInt(algosToMicroalgos(Number(amount.algo)))\n }\n\n toString(): string {\n return `${this.microAlgo.toLocaleString('en-US')} µALGO`\n }\n\n /** valueOf allows you to use `AlgoAmount` in comparison operations such as `<` and `>=` etc.,\n * but it's not recommended to use this to convert to a number, it's much safer to explicitly call\n * the algos or microAlgos properties\n */\n valueOf(): number {\n return Number(this.microAlgo)\n }\n\n /** Create a `AlgoAmount` object representing the given number of Algo */\n static Algos(amount: number | bigint) {\n return new AlgoAmount({ algos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of Algo */\n static Algo(amount: number | bigint) {\n return new AlgoAmount({ algos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of µAlgo */\n static MicroAlgos(amount: number | bigint) {\n return new AlgoAmount({ microAlgos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of µAlgo */\n static MicroAlgo(amount: number | bigint) {\n return new AlgoAmount({ microAlgos: amount })\n }\n}\n\nconst MICROALGOS_TO_ALGOS_RATIO = 1e6\nconst INVALID_MICROALGOS_ERROR_MSG = 'Microalgos should be positive and less than 2^53 - 1.'\n\n/**\n * microalgosToAlgos converts microalgos to algos\n * @param microalgos - number\n * @returns number\n */\nfunction microalgosToAlgos(microalgos: number) {\n if (microalgos < 0 || !Number.isSafeInteger(microalgos)) {\n throw new Error(INVALID_MICROALGOS_ERROR_MSG)\n }\n return microalgos / MICROALGOS_TO_ALGOS_RATIO\n}\n\n/**\n * algosToMicroalgos converts algos to microalgos\n * @param algos - number\n * @returns number\n */\nfunction algosToMicroalgos(algos: number) {\n const microalgos = algos * MICROALGOS_TO_ALGOS_RATIO\n return Math.round(microalgos)\n}\n"],"mappings":";;;AACA,IAAa,aAAb,MAAa,WAAW;CACtB,AAAQ;;CAGR,IAAI,aAAa;AACf,SAAO,KAAK;;;CAId,IAAI,YAAY;AACd,SAAO,KAAK;;;CAId,IAAI,QAAQ;AACV,SAAO,kBAAkB,OAAO,KAAK,kBAAkB,CAAC;;;CAI1D,IAAI,OAAO;AACT,SAAO,kBAAkB,OAAO,KAAK,kBAAkB,CAAC;;;;;;;;;;;;CAa1D,YACE,QACA;AACA,OAAK,oBACH,gBAAgB,SACZ,OAAO,OAAO,WAAW,GACzB,eAAe,SACb,OAAO,OAAO,UAAU,GACxB,WAAW,SACT,OAAO,kBAAkB,OAAO,OAAO,MAAM,CAAC,CAAC,GAC/C,OAAO,kBAAkB,OAAO,OAAO,KAAK,CAAC,CAAC;;CAG1D,WAAmB;AACjB,SAAO,GAAG,KAAK,UAAU,eAAe,QAAQ,CAAC;;;;;;CAOnD,UAAkB;AAChB,SAAO,OAAO,KAAK,UAAU;;;CAI/B,OAAO,MAAM,QAAyB;AACpC,SAAO,IAAI,WAAW,EAAE,OAAO,QAAQ,CAAC;;;CAI1C,OAAO,KAAK,QAAyB;AACnC,SAAO,IAAI,WAAW,EAAE,OAAO,QAAQ,CAAC;;;CAI1C,OAAO,WAAW,QAAyB;AACzC,SAAO,IAAI,WAAW,EAAE,YAAY,QAAQ,CAAC;;;CAI/C,OAAO,UAAU,QAAyB;AACxC,SAAO,IAAI,WAAW,EAAE,YAAY,QAAQ,CAAC;;;AAIjD,MAAM,4BAA4B;AAClC,MAAM,+BAA+B;;;;;;AAOrC,SAAS,kBAAkB,YAAoB;AAC7C,KAAI,aAAa,KAAK,CAAC,OAAO,cAAc,WAAW,CACrD,OAAM,IAAI,MAAM,6BAA6B;AAE/C,QAAO,aAAa;;;;;;;AAQtB,SAAS,kBAAkB,OAAe;CACxC,MAAM,aAAa,QAAQ;AAC3B,QAAO,KAAK,MAAM,WAAW"}
|
package/types/amount.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { algosToMicroalgos, microalgosToAlgos } from "../packages/sdk/src/convert.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/types/amount.ts
|
|
4
2
|
/** Wrapper class to ensure safe, explicit conversion between µAlgo, Algo and numbers */
|
|
5
3
|
var AlgoAmount = class AlgoAmount {
|
|
@@ -60,6 +58,26 @@ var AlgoAmount = class AlgoAmount {
|
|
|
60
58
|
return new AlgoAmount({ microAlgos: amount });
|
|
61
59
|
}
|
|
62
60
|
};
|
|
61
|
+
const MICROALGOS_TO_ALGOS_RATIO = 1e6;
|
|
62
|
+
const INVALID_MICROALGOS_ERROR_MSG = "Microalgos should be positive and less than 2^53 - 1.";
|
|
63
|
+
/**
|
|
64
|
+
* microalgosToAlgos converts microalgos to algos
|
|
65
|
+
* @param microalgos - number
|
|
66
|
+
* @returns number
|
|
67
|
+
*/
|
|
68
|
+
function microalgosToAlgos(microalgos) {
|
|
69
|
+
if (microalgos < 0 || !Number.isSafeInteger(microalgos)) throw new Error(INVALID_MICROALGOS_ERROR_MSG);
|
|
70
|
+
return microalgos / MICROALGOS_TO_ALGOS_RATIO;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* algosToMicroalgos converts algos to microalgos
|
|
74
|
+
* @param algos - number
|
|
75
|
+
* @returns number
|
|
76
|
+
*/
|
|
77
|
+
function algosToMicroalgos(algos) {
|
|
78
|
+
const microalgos = algos * MICROALGOS_TO_ALGOS_RATIO;
|
|
79
|
+
return Math.round(microalgos);
|
|
80
|
+
}
|
|
63
81
|
|
|
64
82
|
//#endregion
|
|
65
83
|
export { AlgoAmount };
|
package/types/amount.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amount.mjs","names":[
|
|
1
|
+
{"version":3,"file":"amount.mjs","names":[],"sources":["../../src/types/amount.ts"],"sourcesContent":["/** Wrapper class to ensure safe, explicit conversion between µAlgo, Algo and numbers */\nexport class AlgoAmount {\n private amountInMicroAlgo: bigint\n\n /** Return the amount as a number in µAlgo */\n get microAlgos() {\n return this.amountInMicroAlgo\n }\n\n /** Return the amount as a number in µAlgo */\n get microAlgo() {\n return this.amountInMicroAlgo\n }\n\n /** Return the amount as a number in Algo */\n get algos() {\n return microalgosToAlgos(Number(this.amountInMicroAlgo))\n }\n\n /** Return the amount as a number in Algo */\n get algo() {\n return microalgosToAlgos(Number(this.amountInMicroAlgo))\n }\n\n /**\n * Create a new `AlgoAmount` instance.\n *\n * @param amount - An object specifying the amount in Algo or µALGO. Use the key 'algo' for Algo amounts and 'microAlgo' for µALGO.\n * @returns A new instance of `AlgoAmount` representing the specified amount.\n * @example\n * ```typescript\n * const amount = new AlgoAmount({ algo: 5 });\n * ```\n */\n constructor(\n amount: { algos: number | bigint } | { algo: number | bigint } | { microAlgos: number | bigint } | { microAlgo: number | bigint },\n ) {\n this.amountInMicroAlgo =\n 'microAlgos' in amount\n ? BigInt(amount.microAlgos)\n : 'microAlgo' in amount\n ? BigInt(amount.microAlgo)\n : 'algos' in amount\n ? BigInt(algosToMicroalgos(Number(amount.algos)))\n : BigInt(algosToMicroalgos(Number(amount.algo)))\n }\n\n toString(): string {\n return `${this.microAlgo.toLocaleString('en-US')} µALGO`\n }\n\n /** valueOf allows you to use `AlgoAmount` in comparison operations such as `<` and `>=` etc.,\n * but it's not recommended to use this to convert to a number, it's much safer to explicitly call\n * the algos or microAlgos properties\n */\n valueOf(): number {\n return Number(this.microAlgo)\n }\n\n /** Create a `AlgoAmount` object representing the given number of Algo */\n static Algos(amount: number | bigint) {\n return new AlgoAmount({ algos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of Algo */\n static Algo(amount: number | bigint) {\n return new AlgoAmount({ algos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of µAlgo */\n static MicroAlgos(amount: number | bigint) {\n return new AlgoAmount({ microAlgos: amount })\n }\n\n /** Create a `AlgoAmount` object representing the given number of µAlgo */\n static MicroAlgo(amount: number | bigint) {\n return new AlgoAmount({ microAlgos: amount })\n }\n}\n\nconst MICROALGOS_TO_ALGOS_RATIO = 1e6\nconst INVALID_MICROALGOS_ERROR_MSG = 'Microalgos should be positive and less than 2^53 - 1.'\n\n/**\n * microalgosToAlgos converts microalgos to algos\n * @param microalgos - number\n * @returns number\n */\nfunction microalgosToAlgos(microalgos: number) {\n if (microalgos < 0 || !Number.isSafeInteger(microalgos)) {\n throw new Error(INVALID_MICROALGOS_ERROR_MSG)\n }\n return microalgos / MICROALGOS_TO_ALGOS_RATIO\n}\n\n/**\n * algosToMicroalgos converts algos to microalgos\n * @param algos - number\n * @returns number\n */\nfunction algosToMicroalgos(algos: number) {\n const microalgos = algos * MICROALGOS_TO_ALGOS_RATIO\n return Math.round(microalgos)\n}\n"],"mappings":";;AACA,IAAa,aAAb,MAAa,WAAW;CACtB,AAAQ;;CAGR,IAAI,aAAa;AACf,SAAO,KAAK;;;CAId,IAAI,YAAY;AACd,SAAO,KAAK;;;CAId,IAAI,QAAQ;AACV,SAAO,kBAAkB,OAAO,KAAK,kBAAkB,CAAC;;;CAI1D,IAAI,OAAO;AACT,SAAO,kBAAkB,OAAO,KAAK,kBAAkB,CAAC;;;;;;;;;;;;CAa1D,YACE,QACA;AACA,OAAK,oBACH,gBAAgB,SACZ,OAAO,OAAO,WAAW,GACzB,eAAe,SACb,OAAO,OAAO,UAAU,GACxB,WAAW,SACT,OAAO,kBAAkB,OAAO,OAAO,MAAM,CAAC,CAAC,GAC/C,OAAO,kBAAkB,OAAO,OAAO,KAAK,CAAC,CAAC;;CAG1D,WAAmB;AACjB,SAAO,GAAG,KAAK,UAAU,eAAe,QAAQ,CAAC;;;;;;CAOnD,UAAkB;AAChB,SAAO,OAAO,KAAK,UAAU;;;CAI/B,OAAO,MAAM,QAAyB;AACpC,SAAO,IAAI,WAAW,EAAE,OAAO,QAAQ,CAAC;;;CAI1C,OAAO,KAAK,QAAyB;AACnC,SAAO,IAAI,WAAW,EAAE,OAAO,QAAQ,CAAC;;;CAI1C,OAAO,WAAW,QAAyB;AACzC,SAAO,IAAI,WAAW,EAAE,YAAY,QAAQ,CAAC;;;CAI/C,OAAO,UAAU,QAAyB;AACxC,SAAO,IAAI,WAAW,EAAE,YAAY,QAAQ,CAAC;;;AAIjD,MAAM,4BAA4B;AAClC,MAAM,+BAA+B;;;;;;AAOrC,SAAS,kBAAkB,YAAoB;AAC7C,KAAI,aAAa,KAAK,CAAC,OAAO,cAAc,WAAW,CACrD,OAAM,IAAI,MAAM,6BAA6B;AAE/C,QAAO,aAAa;;;;;;;AAQtB,SAAS,kBAAkB,OAAe;CACxC,MAAM,aAAa,QAAQ;AAC3B,QAAO,KAAK,MAAM,WAAW"}
|
package/types/app-client.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address, ReadableAddress } from "../packages/common/src/address.js";
|
|
2
2
|
import { Expand } from "../packages/common/src/expand.js";
|
|
3
|
+
import { ProgramSourceMap } from "../packages/common/src/sourcemap.js";
|
|
3
4
|
import { ABIValue } from "../packages/abi/src/abi-value.js";
|
|
4
5
|
import { Arc56Contract, ProgramSourceInfo } from "../packages/abi/src/arc56-contract.js";
|
|
5
6
|
import { ABIType } from "../packages/abi/src/abi-type.js";
|
|
@@ -10,7 +11,6 @@ import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from
|
|
|
10
11
|
import { PendingTransactionResponse } from "../packages/algod_client/src/models/pending-transaction-response.js";
|
|
11
12
|
import { SuggestedParams } from "../packages/algod_client/src/models/suggested-params.js";
|
|
12
13
|
import { AlgoAmount } from "./amount.js";
|
|
13
|
-
import { ProgramSourceMap } from "../packages/sdk/src/logic/sourcemap.js";
|
|
14
14
|
import { AppManager, BoxIdentifier, BoxReference } from "./app-manager.js";
|
|
15
15
|
import { AppCallParams, AppDeleteParams, AppMethodCallParams, CommonAppCallParams } from "../transactions/app-call.js";
|
|
16
16
|
import { AppMethodCall, AppMethodCallTransactionArgument } from "../transactions/method-call.js";
|
|
@@ -386,8 +386,7 @@ declare class AppClient {
|
|
|
386
386
|
* @returns The parameters which can be used to create a fund app account payment transaction
|
|
387
387
|
*/
|
|
388
388
|
fundAppAccount: (params: {
|
|
389
|
-
signer?:
|
|
390
|
-
amount: AlgoAmount;
|
|
389
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
391
390
|
rekeyTo?: ReadableAddress | undefined;
|
|
392
391
|
note?: string | Uint8Array | undefined;
|
|
393
392
|
lease?: string | Uint8Array | undefined;
|
|
@@ -397,6 +396,7 @@ declare class AppClient {
|
|
|
397
396
|
validityWindow?: number | bigint | undefined;
|
|
398
397
|
firstValidRound?: bigint | undefined;
|
|
399
398
|
lastValidRound?: bigint | undefined;
|
|
399
|
+
amount: AlgoAmount;
|
|
400
400
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
401
401
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
402
402
|
suppressLog?: boolean | undefined;
|
|
@@ -405,9 +405,8 @@ declare class AppClient {
|
|
|
405
405
|
sender?: ReadableAddress | undefined;
|
|
406
406
|
}) => {
|
|
407
407
|
sender: Address;
|
|
408
|
-
signer:
|
|
408
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
409
409
|
receiver: Address;
|
|
410
|
-
amount: AlgoAmount;
|
|
411
410
|
rekeyTo?: ReadableAddress | undefined;
|
|
412
411
|
note?: string | Uint8Array | undefined;
|
|
413
412
|
lease?: string | Uint8Array | undefined;
|
|
@@ -417,6 +416,7 @@ declare class AppClient {
|
|
|
417
416
|
validityWindow?: number | bigint | undefined;
|
|
418
417
|
firstValidRound?: bigint | undefined;
|
|
419
418
|
lastValidRound?: bigint | undefined;
|
|
419
|
+
amount: AlgoAmount;
|
|
420
420
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
421
421
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
422
422
|
suppressLog?: boolean | undefined;
|
|
@@ -429,7 +429,7 @@ declare class AppClient {
|
|
|
429
429
|
* @returns The parameters which can be used to create an update ABI method call
|
|
430
430
|
*/
|
|
431
431
|
update: (params: {
|
|
432
|
-
signer?:
|
|
432
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
433
433
|
rekeyTo?: ReadableAddress | undefined;
|
|
434
434
|
note?: string | Uint8Array | undefined;
|
|
435
435
|
lease?: string | Uint8Array | undefined;
|
|
@@ -456,7 +456,7 @@ declare class AppClient {
|
|
|
456
456
|
clearStateProgram: Uint8Array;
|
|
457
457
|
compiledApproval?: CompiledTeal | undefined;
|
|
458
458
|
compiledClear?: CompiledTeal | undefined;
|
|
459
|
-
signer?:
|
|
459
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
460
460
|
rekeyTo?: ReadableAddress | undefined;
|
|
461
461
|
note?: string | Uint8Array | undefined;
|
|
462
462
|
lease?: string | Uint8Array | undefined;
|
|
@@ -485,12 +485,12 @@ declare class AppClient {
|
|
|
485
485
|
} & {
|
|
486
486
|
appId: bigint;
|
|
487
487
|
sender: Address;
|
|
488
|
-
signer:
|
|
488
|
+
signer: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
489
489
|
method: ABIMethod;
|
|
490
490
|
onComplete: OnApplicationComplete.UpdateApplication;
|
|
491
491
|
args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
492
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
493
492
|
sender: SendingAddress;
|
|
493
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
494
494
|
rekeyTo?: ReadableAddress | undefined;
|
|
495
495
|
note?: string | Uint8Array | undefined;
|
|
496
496
|
lease?: string | Uint8Array | undefined;
|
|
@@ -520,7 +520,7 @@ declare class AppClient {
|
|
|
520
520
|
extraProgramPages?: number | undefined;
|
|
521
521
|
}> | AppMethodCall<{
|
|
522
522
|
sender: SendingAddress;
|
|
523
|
-
signer?:
|
|
523
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
524
524
|
rekeyTo?: ReadableAddress | undefined;
|
|
525
525
|
note?: string | Uint8Array | undefined;
|
|
526
526
|
lease?: string | Uint8Array | undefined;
|
|
@@ -549,7 +549,7 @@ declare class AppClient {
|
|
|
549
549
|
* @returns The parameters which can be used to create an opt-in ABI method call
|
|
550
550
|
*/
|
|
551
551
|
optIn: (params: {
|
|
552
|
-
signer?:
|
|
552
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
553
553
|
rekeyTo?: ReadableAddress | undefined;
|
|
554
554
|
note?: string | Uint8Array | undefined;
|
|
555
555
|
lease?: string | Uint8Array | undefined;
|
|
@@ -570,8 +570,9 @@ declare class AppClient {
|
|
|
570
570
|
method: string;
|
|
571
571
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
572
572
|
}) => Promise<{
|
|
573
|
-
|
|
573
|
+
appId: bigint;
|
|
574
574
|
sender: SendingAddress;
|
|
575
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
575
576
|
rekeyTo?: ReadableAddress | undefined;
|
|
576
577
|
note?: string | Uint8Array | undefined;
|
|
577
578
|
lease?: string | Uint8Array | undefined;
|
|
@@ -581,7 +582,6 @@ declare class AppClient {
|
|
|
581
582
|
validityWindow?: number | bigint | undefined;
|
|
582
583
|
firstValidRound?: bigint | undefined;
|
|
583
584
|
lastValidRound?: bigint | undefined;
|
|
584
|
-
appId: bigint;
|
|
585
585
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
586
586
|
accountReferences?: ReadableAddress[] | undefined;
|
|
587
587
|
appReferences?: bigint[] | undefined;
|
|
@@ -591,8 +591,8 @@ declare class AppClient {
|
|
|
591
591
|
rejectVersion?: number | undefined;
|
|
592
592
|
method: ABIMethod;
|
|
593
593
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
594
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
595
594
|
sender: SendingAddress;
|
|
595
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
596
596
|
rekeyTo?: ReadableAddress | undefined;
|
|
597
597
|
note?: string | Uint8Array | undefined;
|
|
598
598
|
lease?: string | Uint8Array | undefined;
|
|
@@ -622,7 +622,7 @@ declare class AppClient {
|
|
|
622
622
|
extraProgramPages?: number | undefined;
|
|
623
623
|
}> | AppMethodCall<{
|
|
624
624
|
sender: SendingAddress;
|
|
625
|
-
signer?:
|
|
625
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
626
626
|
rekeyTo?: ReadableAddress | undefined;
|
|
627
627
|
note?: string | Uint8Array | undefined;
|
|
628
628
|
lease?: string | Uint8Array | undefined;
|
|
@@ -651,7 +651,7 @@ declare class AppClient {
|
|
|
651
651
|
* @returns The parameters which can be used to create a delete ABI method call
|
|
652
652
|
*/
|
|
653
653
|
delete: (params: {
|
|
654
|
-
signer?:
|
|
654
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
655
655
|
rekeyTo?: ReadableAddress | undefined;
|
|
656
656
|
note?: string | Uint8Array | undefined;
|
|
657
657
|
lease?: string | Uint8Array | undefined;
|
|
@@ -672,8 +672,9 @@ declare class AppClient {
|
|
|
672
672
|
method: string;
|
|
673
673
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
674
674
|
}) => Promise<{
|
|
675
|
-
|
|
675
|
+
appId: bigint;
|
|
676
676
|
sender: SendingAddress;
|
|
677
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
677
678
|
rekeyTo?: ReadableAddress | undefined;
|
|
678
679
|
note?: string | Uint8Array | undefined;
|
|
679
680
|
lease?: string | Uint8Array | undefined;
|
|
@@ -683,7 +684,6 @@ declare class AppClient {
|
|
|
683
684
|
validityWindow?: number | bigint | undefined;
|
|
684
685
|
firstValidRound?: bigint | undefined;
|
|
685
686
|
lastValidRound?: bigint | undefined;
|
|
686
|
-
appId: bigint;
|
|
687
687
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
688
688
|
accountReferences?: ReadableAddress[] | undefined;
|
|
689
689
|
appReferences?: bigint[] | undefined;
|
|
@@ -693,8 +693,8 @@ declare class AppClient {
|
|
|
693
693
|
rejectVersion?: number | undefined;
|
|
694
694
|
method: ABIMethod;
|
|
695
695
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
696
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
697
696
|
sender: SendingAddress;
|
|
697
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
698
698
|
rekeyTo?: ReadableAddress | undefined;
|
|
699
699
|
note?: string | Uint8Array | undefined;
|
|
700
700
|
lease?: string | Uint8Array | undefined;
|
|
@@ -724,7 +724,7 @@ declare class AppClient {
|
|
|
724
724
|
extraProgramPages?: number | undefined;
|
|
725
725
|
}> | AppMethodCall<{
|
|
726
726
|
sender: SendingAddress;
|
|
727
|
-
signer?:
|
|
727
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
728
728
|
rekeyTo?: ReadableAddress | undefined;
|
|
729
729
|
note?: string | Uint8Array | undefined;
|
|
730
730
|
lease?: string | Uint8Array | undefined;
|
|
@@ -752,7 +752,7 @@ declare class AppClient {
|
|
|
752
752
|
* @returns The parameters which can be used to create a close out ABI method call
|
|
753
753
|
*/
|
|
754
754
|
closeOut: (params: {
|
|
755
|
-
signer?:
|
|
755
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
756
756
|
rekeyTo?: ReadableAddress | undefined;
|
|
757
757
|
note?: string | Uint8Array | undefined;
|
|
758
758
|
lease?: string | Uint8Array | undefined;
|
|
@@ -773,8 +773,9 @@ declare class AppClient {
|
|
|
773
773
|
method: string;
|
|
774
774
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
775
775
|
}) => Promise<{
|
|
776
|
-
|
|
776
|
+
appId: bigint;
|
|
777
777
|
sender: SendingAddress;
|
|
778
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
778
779
|
rekeyTo?: ReadableAddress | undefined;
|
|
779
780
|
note?: string | Uint8Array | undefined;
|
|
780
781
|
lease?: string | Uint8Array | undefined;
|
|
@@ -784,7 +785,6 @@ declare class AppClient {
|
|
|
784
785
|
validityWindow?: number | bigint | undefined;
|
|
785
786
|
firstValidRound?: bigint | undefined;
|
|
786
787
|
lastValidRound?: bigint | undefined;
|
|
787
|
-
appId: bigint;
|
|
788
788
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
789
789
|
accountReferences?: ReadableAddress[] | undefined;
|
|
790
790
|
appReferences?: bigint[] | undefined;
|
|
@@ -794,8 +794,8 @@ declare class AppClient {
|
|
|
794
794
|
rejectVersion?: number | undefined;
|
|
795
795
|
method: ABIMethod;
|
|
796
796
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
797
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
798
797
|
sender: SendingAddress;
|
|
798
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
799
799
|
rekeyTo?: ReadableAddress | undefined;
|
|
800
800
|
note?: string | Uint8Array | undefined;
|
|
801
801
|
lease?: string | Uint8Array | undefined;
|
|
@@ -825,7 +825,7 @@ declare class AppClient {
|
|
|
825
825
|
extraProgramPages?: number | undefined;
|
|
826
826
|
}> | AppMethodCall<{
|
|
827
827
|
sender: SendingAddress;
|
|
828
|
-
signer?:
|
|
828
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
829
829
|
rekeyTo?: ReadableAddress | undefined;
|
|
830
830
|
note?: string | Uint8Array | undefined;
|
|
831
831
|
lease?: string | Uint8Array | undefined;
|
|
@@ -853,7 +853,7 @@ declare class AppClient {
|
|
|
853
853
|
* @returns The parameters which can be used to create an ABI method call
|
|
854
854
|
*/
|
|
855
855
|
call: (params: {
|
|
856
|
-
signer?:
|
|
856
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
857
857
|
rekeyTo?: ReadableAddress | undefined;
|
|
858
858
|
note?: string | Uint8Array | undefined;
|
|
859
859
|
lease?: string | Uint8Array | undefined;
|
|
@@ -874,8 +874,9 @@ declare class AppClient {
|
|
|
874
874
|
method: string;
|
|
875
875
|
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
876
876
|
} & CallOnComplete) => Promise<{
|
|
877
|
-
|
|
877
|
+
appId: bigint;
|
|
878
878
|
sender: SendingAddress;
|
|
879
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
879
880
|
rekeyTo?: ReadableAddress | undefined;
|
|
880
881
|
note?: string | Uint8Array | undefined;
|
|
881
882
|
lease?: string | Uint8Array | undefined;
|
|
@@ -885,7 +886,6 @@ declare class AppClient {
|
|
|
885
886
|
validityWindow?: number | bigint | undefined;
|
|
886
887
|
firstValidRound?: bigint | undefined;
|
|
887
888
|
lastValidRound?: bigint | undefined;
|
|
888
|
-
appId: bigint;
|
|
889
889
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
890
890
|
accountReferences?: ReadableAddress[] | undefined;
|
|
891
891
|
appReferences?: bigint[] | undefined;
|
|
@@ -895,8 +895,8 @@ declare class AppClient {
|
|
|
895
895
|
rejectVersion?: number | undefined;
|
|
896
896
|
method: ABIMethod;
|
|
897
897
|
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
898
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
899
898
|
sender: SendingAddress;
|
|
899
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
900
900
|
rekeyTo?: ReadableAddress | undefined;
|
|
901
901
|
note?: string | Uint8Array | undefined;
|
|
902
902
|
lease?: string | Uint8Array | undefined;
|
|
@@ -926,7 +926,7 @@ declare class AppClient {
|
|
|
926
926
|
extraProgramPages?: number | undefined;
|
|
927
927
|
}> | AppMethodCall<{
|
|
928
928
|
sender: SendingAddress;
|
|
929
|
-
signer?:
|
|
929
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
930
930
|
rekeyTo?: ReadableAddress | undefined;
|
|
931
931
|
note?: string | Uint8Array | undefined;
|
|
932
932
|
lease?: string | Uint8Array | undefined;
|
|
@@ -953,7 +953,7 @@ declare class AppClient {
|
|
|
953
953
|
/** Interact with bare (raw) call parameters */bare: {
|
|
954
954
|
/** Return params for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
955
955
|
update: (params?: ({
|
|
956
|
-
signer?:
|
|
956
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
957
957
|
rekeyTo?: ReadableAddress | undefined;
|
|
958
958
|
note?: string | Uint8Array | undefined;
|
|
959
959
|
lease?: string | Uint8Array | undefined;
|
|
@@ -973,7 +973,7 @@ declare class AppClient {
|
|
|
973
973
|
sender?: ReadableAddress | undefined;
|
|
974
974
|
} & AppClientCompilationParams) | undefined) => Promise<{
|
|
975
975
|
sender: SendingAddress;
|
|
976
|
-
signer?:
|
|
976
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
977
977
|
rekeyTo?: ReadableAddress | undefined;
|
|
978
978
|
note?: string | Uint8Array | undefined;
|
|
979
979
|
lease?: string | Uint8Array | undefined;
|
|
@@ -997,7 +997,7 @@ declare class AppClient {
|
|
|
997
997
|
}>;
|
|
998
998
|
/** Return params for an opt-in call */
|
|
999
999
|
optIn: (params?: {
|
|
1000
|
-
signer?:
|
|
1000
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1001
1001
|
rekeyTo?: ReadableAddress | undefined;
|
|
1002
1002
|
note?: string | Uint8Array | undefined;
|
|
1003
1003
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1018,7 +1018,7 @@ declare class AppClient {
|
|
|
1018
1018
|
} | undefined) => AppCallParams;
|
|
1019
1019
|
/** Return params for a delete call */
|
|
1020
1020
|
delete: (params?: {
|
|
1021
|
-
signer?:
|
|
1021
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1022
1022
|
rekeyTo?: ReadableAddress | undefined;
|
|
1023
1023
|
note?: string | Uint8Array | undefined;
|
|
1024
1024
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1039,7 +1039,7 @@ declare class AppClient {
|
|
|
1039
1039
|
} | undefined) => AppDeleteParams;
|
|
1040
1040
|
/** Return params for a clear state call */
|
|
1041
1041
|
clearState: (params?: {
|
|
1042
|
-
signer?:
|
|
1042
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1043
1043
|
rekeyTo?: ReadableAddress | undefined;
|
|
1044
1044
|
note?: string | Uint8Array | undefined;
|
|
1045
1045
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1060,7 +1060,7 @@ declare class AppClient {
|
|
|
1060
1060
|
} | undefined) => AppCallParams;
|
|
1061
1061
|
/** Return params for a close out call */
|
|
1062
1062
|
closeOut: (params?: {
|
|
1063
|
-
signer?:
|
|
1063
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1064
1064
|
rekeyTo?: ReadableAddress | undefined;
|
|
1065
1065
|
note?: string | Uint8Array | undefined;
|
|
1066
1066
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1081,7 +1081,7 @@ declare class AppClient {
|
|
|
1081
1081
|
} | undefined) => AppCallParams;
|
|
1082
1082
|
/** Return params for a call (defaults to no-op) */
|
|
1083
1083
|
call: (params?: ({
|
|
1084
|
-
signer?:
|
|
1084
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1085
1085
|
rekeyTo?: ReadableAddress | undefined;
|
|
1086
1086
|
note?: string | Uint8Array | undefined;
|
|
1087
1087
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1109,8 +1109,7 @@ declare class AppClient {
|
|
|
1109
1109
|
* @returns A transaction which can be used to fund the app account
|
|
1110
1110
|
*/
|
|
1111
1111
|
fundAppAccount: (params: {
|
|
1112
|
-
signer?:
|
|
1113
|
-
amount: AlgoAmount;
|
|
1112
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1114
1113
|
rekeyTo?: ReadableAddress | undefined;
|
|
1115
1114
|
note?: string | Uint8Array | undefined;
|
|
1116
1115
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1120,6 +1119,7 @@ declare class AppClient {
|
|
|
1120
1119
|
validityWindow?: number | bigint | undefined;
|
|
1121
1120
|
firstValidRound?: bigint | undefined;
|
|
1122
1121
|
lastValidRound?: bigint | undefined;
|
|
1122
|
+
amount: AlgoAmount;
|
|
1123
1123
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
1124
1124
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1125
1125
|
suppressLog?: boolean | undefined;
|
|
@@ -1133,7 +1133,7 @@ declare class AppClient {
|
|
|
1133
1133
|
* @returns The transactions which can be used to create an update ABI method call
|
|
1134
1134
|
*/
|
|
1135
1135
|
update: (params: {
|
|
1136
|
-
signer?:
|
|
1136
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1137
1137
|
rekeyTo?: ReadableAddress | undefined;
|
|
1138
1138
|
note?: string | Uint8Array | undefined;
|
|
1139
1139
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1164,7 +1164,7 @@ declare class AppClient {
|
|
|
1164
1164
|
* @returns The transactions which can be used to create an opt-in ABI method call
|
|
1165
1165
|
*/
|
|
1166
1166
|
optIn: (params: {
|
|
1167
|
-
signer?:
|
|
1167
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1168
1168
|
rekeyTo?: ReadableAddress | undefined;
|
|
1169
1169
|
note?: string | Uint8Array | undefined;
|
|
1170
1170
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1195,7 +1195,7 @@ declare class AppClient {
|
|
|
1195
1195
|
* @returns The transactions which can be used to create a delete ABI method call
|
|
1196
1196
|
*/
|
|
1197
1197
|
delete: (params: {
|
|
1198
|
-
signer?:
|
|
1198
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1199
1199
|
rekeyTo?: ReadableAddress | undefined;
|
|
1200
1200
|
note?: string | Uint8Array | undefined;
|
|
1201
1201
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1226,7 +1226,7 @@ declare class AppClient {
|
|
|
1226
1226
|
* @returns The transactions which can be used to create a close out ABI method call
|
|
1227
1227
|
*/
|
|
1228
1228
|
closeOut: (params: {
|
|
1229
|
-
signer?:
|
|
1229
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1230
1230
|
rekeyTo?: ReadableAddress | undefined;
|
|
1231
1231
|
note?: string | Uint8Array | undefined;
|
|
1232
1232
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1257,7 +1257,7 @@ declare class AppClient {
|
|
|
1257
1257
|
* @returns The transactions which can be used to create an ABI method call
|
|
1258
1258
|
*/
|
|
1259
1259
|
call: (params: {
|
|
1260
|
-
signer?:
|
|
1260
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1261
1261
|
rekeyTo?: ReadableAddress | undefined;
|
|
1262
1262
|
note?: string | Uint8Array | undefined;
|
|
1263
1263
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1286,7 +1286,7 @@ declare class AppClient {
|
|
|
1286
1286
|
/** Interact with bare (raw) call transactions */bare: {
|
|
1287
1287
|
/** Returns a transaction for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1288
1288
|
update: (params?: ({
|
|
1289
|
-
signer?:
|
|
1289
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1290
1290
|
rekeyTo?: ReadableAddress | undefined;
|
|
1291
1291
|
note?: string | Uint8Array | undefined;
|
|
1292
1292
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1307,7 +1307,7 @@ declare class AppClient {
|
|
|
1307
1307
|
} & AppClientCompilationParams) | undefined) => Promise<Transaction>;
|
|
1308
1308
|
/** Returns a transaction for an opt-in call */
|
|
1309
1309
|
optIn: (params?: {
|
|
1310
|
-
signer?:
|
|
1310
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1311
1311
|
rekeyTo?: ReadableAddress | undefined;
|
|
1312
1312
|
note?: string | Uint8Array | undefined;
|
|
1313
1313
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1328,7 +1328,7 @@ declare class AppClient {
|
|
|
1328
1328
|
} | undefined) => Promise<Transaction>;
|
|
1329
1329
|
/** Returns a transaction for a delete call */
|
|
1330
1330
|
delete: (params?: {
|
|
1331
|
-
signer?:
|
|
1331
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1332
1332
|
rekeyTo?: ReadableAddress | undefined;
|
|
1333
1333
|
note?: string | Uint8Array | undefined;
|
|
1334
1334
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1349,7 +1349,7 @@ declare class AppClient {
|
|
|
1349
1349
|
} | undefined) => Promise<Transaction>;
|
|
1350
1350
|
/** Returns a transaction for a clear state call */
|
|
1351
1351
|
clearState: (params?: {
|
|
1352
|
-
signer?:
|
|
1352
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1353
1353
|
rekeyTo?: ReadableAddress | undefined;
|
|
1354
1354
|
note?: string | Uint8Array | undefined;
|
|
1355
1355
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1370,7 +1370,7 @@ declare class AppClient {
|
|
|
1370
1370
|
} | undefined) => Promise<Transaction>;
|
|
1371
1371
|
/** Returns a transaction for a close out call */
|
|
1372
1372
|
closeOut: (params?: {
|
|
1373
|
-
signer?:
|
|
1373
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1374
1374
|
rekeyTo?: ReadableAddress | undefined;
|
|
1375
1375
|
note?: string | Uint8Array | undefined;
|
|
1376
1376
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1391,7 +1391,7 @@ declare class AppClient {
|
|
|
1391
1391
|
} | undefined) => Promise<Transaction>;
|
|
1392
1392
|
/** Returns a transaction for a call (defaults to no-op) */
|
|
1393
1393
|
call: (params?: ({
|
|
1394
|
-
signer?:
|
|
1394
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1395
1395
|
rekeyTo?: ReadableAddress | undefined;
|
|
1396
1396
|
note?: string | Uint8Array | undefined;
|
|
1397
1397
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1419,8 +1419,7 @@ declare class AppClient {
|
|
|
1419
1419
|
* @returns The result of send the fund app account payment transaction
|
|
1420
1420
|
*/
|
|
1421
1421
|
fundAppAccount: (params: {
|
|
1422
|
-
signer?:
|
|
1423
|
-
amount: AlgoAmount;
|
|
1422
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1424
1423
|
rekeyTo?: ReadableAddress | undefined;
|
|
1425
1424
|
note?: string | Uint8Array | undefined;
|
|
1426
1425
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1430,6 +1429,7 @@ declare class AppClient {
|
|
|
1430
1429
|
validityWindow?: number | bigint | undefined;
|
|
1431
1430
|
firstValidRound?: bigint | undefined;
|
|
1432
1431
|
lastValidRound?: bigint | undefined;
|
|
1432
|
+
amount: AlgoAmount;
|
|
1433
1433
|
closeRemainderTo?: ReadableAddress | undefined;
|
|
1434
1434
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1435
1435
|
suppressLog?: boolean | undefined;
|
|
@@ -1451,7 +1451,7 @@ declare class AppClient {
|
|
|
1451
1451
|
* @returns The result of sending the update ABI method call
|
|
1452
1452
|
*/
|
|
1453
1453
|
update: (params: {
|
|
1454
|
-
signer?:
|
|
1454
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1455
1455
|
rekeyTo?: ReadableAddress | undefined;
|
|
1456
1456
|
note?: string | Uint8Array | undefined;
|
|
1457
1457
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1474,8 +1474,8 @@ declare class AppClient {
|
|
|
1474
1474
|
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
1475
1475
|
compiledApproval?: CompiledTeal | undefined;
|
|
1476
1476
|
compiledClear?: CompiledTeal | undefined;
|
|
1477
|
-
confirmations: PendingTransactionResponse[];
|
|
1478
1477
|
transactions: Transaction[];
|
|
1478
|
+
confirmations: PendingTransactionResponse[];
|
|
1479
1479
|
groupId: string | undefined;
|
|
1480
1480
|
txIds: string[];
|
|
1481
1481
|
returns?: ABIReturn[] | undefined;
|
|
@@ -1489,7 +1489,7 @@ declare class AppClient {
|
|
|
1489
1489
|
* @returns The result of sending the opt-in ABI method call
|
|
1490
1490
|
*/
|
|
1491
1491
|
optIn: (params: {
|
|
1492
|
-
signer?:
|
|
1492
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1493
1493
|
rekeyTo?: ReadableAddress | undefined;
|
|
1494
1494
|
note?: string | Uint8Array | undefined;
|
|
1495
1495
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1525,7 +1525,7 @@ declare class AppClient {
|
|
|
1525
1525
|
* @returns The result of sending the delete ABI method call
|
|
1526
1526
|
*/
|
|
1527
1527
|
delete: (params: {
|
|
1528
|
-
signer?:
|
|
1528
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1529
1529
|
rekeyTo?: ReadableAddress | undefined;
|
|
1530
1530
|
note?: string | Uint8Array | undefined;
|
|
1531
1531
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1561,7 +1561,7 @@ declare class AppClient {
|
|
|
1561
1561
|
* @returns The result of sending the close out ABI method call
|
|
1562
1562
|
*/
|
|
1563
1563
|
closeOut: (params: {
|
|
1564
|
-
signer?:
|
|
1564
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1565
1565
|
rekeyTo?: ReadableAddress | undefined;
|
|
1566
1566
|
note?: string | Uint8Array | undefined;
|
|
1567
1567
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1597,7 +1597,7 @@ declare class AppClient {
|
|
|
1597
1597
|
* @returns The result of sending the ABI method call
|
|
1598
1598
|
*/
|
|
1599
1599
|
call: (params: {
|
|
1600
|
-
signer?:
|
|
1600
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1601
1601
|
rekeyTo?: ReadableAddress | undefined;
|
|
1602
1602
|
note?: string | Uint8Array | undefined;
|
|
1603
1603
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1631,7 +1631,7 @@ declare class AppClient {
|
|
|
1631
1631
|
/** Interact with bare (raw) calls */bare: {
|
|
1632
1632
|
/** Signs and sends an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1633
1633
|
update: (params?: ({
|
|
1634
|
-
signer?:
|
|
1634
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1635
1635
|
rekeyTo?: ReadableAddress | undefined;
|
|
1636
1636
|
note?: string | Uint8Array | undefined;
|
|
1637
1637
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1663,7 +1663,7 @@ declare class AppClient {
|
|
|
1663
1663
|
}>;
|
|
1664
1664
|
/** Signs and sends an opt-in call */
|
|
1665
1665
|
optIn: (params?: ({
|
|
1666
|
-
signer?:
|
|
1666
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1667
1667
|
rekeyTo?: ReadableAddress | undefined;
|
|
1668
1668
|
note?: string | Uint8Array | undefined;
|
|
1669
1669
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1693,7 +1693,7 @@ declare class AppClient {
|
|
|
1693
1693
|
}>;
|
|
1694
1694
|
/** Signs and sends a delete call */
|
|
1695
1695
|
delete: (params?: ({
|
|
1696
|
-
signer?:
|
|
1696
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1697
1697
|
rekeyTo?: ReadableAddress | undefined;
|
|
1698
1698
|
note?: string | Uint8Array | undefined;
|
|
1699
1699
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1723,7 +1723,7 @@ declare class AppClient {
|
|
|
1723
1723
|
}>;
|
|
1724
1724
|
/** Signs and sends a clear state call */
|
|
1725
1725
|
clearState: (params?: ({
|
|
1726
|
-
signer?:
|
|
1726
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1727
1727
|
rekeyTo?: ReadableAddress | undefined;
|
|
1728
1728
|
note?: string | Uint8Array | undefined;
|
|
1729
1729
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1753,7 +1753,7 @@ declare class AppClient {
|
|
|
1753
1753
|
}>;
|
|
1754
1754
|
/** Signs and sends a close out call */
|
|
1755
1755
|
closeOut: (params?: ({
|
|
1756
|
-
signer?:
|
|
1756
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1757
1757
|
rekeyTo?: ReadableAddress | undefined;
|
|
1758
1758
|
note?: string | Uint8Array | undefined;
|
|
1759
1759
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1783,7 +1783,7 @@ declare class AppClient {
|
|
|
1783
1783
|
}>;
|
|
1784
1784
|
/** Signs and sends a call (defaults to no-op) */
|
|
1785
1785
|
call: (params?: ({
|
|
1786
|
-
signer?:
|
|
1786
|
+
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1787
1787
|
rekeyTo?: ReadableAddress | undefined;
|
|
1788
1788
|
note?: string | Uint8Array | undefined;
|
|
1789
1789
|
lease?: string | Uint8Array | undefined;
|
package/types/app-client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_address = require('../packages/common/src/address.js');
|
|
3
|
-
const require_app_call = require('../packages/transact/src/transactions/app-call.js');
|
|
4
|
-
const require_sourcemap = require('../packages/sdk/src/logic/sourcemap.js');
|
|
5
3
|
const require_config = require('../config.js');
|
|
6
4
|
const require_util = require('../util.js');
|
|
5
|
+
const require_sourcemap = require('../packages/common/src/sourcemap.js');
|
|
6
|
+
const require_app_call = require('../packages/transact/src/transactions/app-call.js');
|
|
7
7
|
const require_abi_method = require('../packages/abi/src/abi-method.js');
|
|
8
8
|
const require_arc56_contract = require('../packages/abi/src/arc56-contract.js');
|
|
9
9
|
const require_lifecycle_events = require('./lifecycle-events.js');
|