@algorandfoundation/algokit-utils 10.0.0-alpha.17 → 10.0.0-alpha.19
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 -1
- package/packages/common/src/json.mjs +2 -2
- package/packages/common/src/json.mjs.map +1 -1
- package/packages/sdk/src/utils/utils.mjs +2 -2
- package/packages/sdk/src/utils/utils.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +23 -23
- package/types/algorand-client-transaction-sender.d.ts +25 -25
- package/types/app-client.d.ts +54 -54
- package/types/app-factory.d.ts +21 -21
- package/types/composer.js +6 -5
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +6 -5
- package/types/composer.mjs.map +1 -1
- package/types/expand.d.ts +2 -0
- package/types/expand.js +0 -0
- package/types/expand.mjs +0 -0
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"**"
|
|
7
7
|
],
|
|
8
8
|
"name": "@algorandfoundation/algokit-utils",
|
|
9
|
-
"version": "10.0.0-alpha.
|
|
9
|
+
"version": "10.0.0-alpha.19",
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.mjs","names":[],"sources":["../../../../packages/common/src/json.ts"],"sourcesContent":["import JSONbigFactory from 'json-bigint'\n\nconst JSONbig = JSONbigFactory({\n useNativeBigInt: true,\n strict: true,\n})\n\n/**\n * Parse JSON with bigint support.\n * @param str - The JSON string to parse.\n */\nexport function parseJson(str: string) {\n return JSONbig.parse(str, (_: string, value: unknown): unknown => {\n if (value != null && typeof value === 'object' && Object.getPrototypeOf(value) == null) {\n // JSONbig.parse objects are created with Object.create(null) and thus have a null prototype\n Object.setPrototypeOf(value, Object.prototype)\n }\n\n if (typeof value === 'bigint') {\n if (value > Number.MAX_SAFE_INTEGER) {\n return value\n }\n // JSONbig.parse converts number to BigInts if they are >= 10**15. This is smaller than\n // Number.MAX_SAFE_INTEGER, so we can convert some BigInts back to normal numbers.\n return Number(value)\n }\n\n return value\n })\n}\n\n/**\n * Convert a JavaScript value to a JSON string with bigint support.\n *\n * @param value - A JavaScript value, usually an object or array, to be converted.\n * @param replacer - A function that transforms the results.\n * @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\nexport function stringifyJson(\n value: unknown,\n replacer?: (this: unknown, key: string, value: unknown) => unknown,\n space?: string | number,\n): string {\n return JSONbig.stringify(value, replacer, space)\n}\n"],"mappings":";;;AAEA,MAAM,
|
|
1
|
+
{"version":3,"file":"json.mjs","names":["JSONbigFactory"],"sources":["../../../../packages/common/src/json.ts"],"sourcesContent":["import JSONbigFactory from 'json-bigint'\n\nconst JSONbig = JSONbigFactory({\n useNativeBigInt: true,\n strict: true,\n})\n\n/**\n * Parse JSON with bigint support.\n * @param str - The JSON string to parse.\n */\nexport function parseJson(str: string) {\n return JSONbig.parse(str, (_: string, value: unknown): unknown => {\n if (value != null && typeof value === 'object' && Object.getPrototypeOf(value) == null) {\n // JSONbig.parse objects are created with Object.create(null) and thus have a null prototype\n Object.setPrototypeOf(value, Object.prototype)\n }\n\n if (typeof value === 'bigint') {\n if (value > Number.MAX_SAFE_INTEGER) {\n return value\n }\n // JSONbig.parse converts number to BigInts if they are >= 10**15. This is smaller than\n // Number.MAX_SAFE_INTEGER, so we can convert some BigInts back to normal numbers.\n return Number(value)\n }\n\n return value\n })\n}\n\n/**\n * Convert a JavaScript value to a JSON string with bigint support.\n *\n * @param value - A JavaScript value, usually an object or array, to be converted.\n * @param replacer - A function that transforms the results.\n * @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\nexport function stringifyJson(\n value: unknown,\n replacer?: (this: unknown, key: string, value: unknown) => unknown,\n space?: string | number,\n): string {\n return JSONbig.stringify(value, replacer, space)\n}\n"],"mappings":";;;AAEA,MAAM,UAAUA,qBAAe;CAC7B,iBAAiB;CACjB,QAAQ;CACT,CAAC;;;;;AAMF,SAAgB,UAAU,KAAa;AACrC,QAAO,QAAQ,MAAM,MAAM,GAAW,UAA4B;AAChE,MAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,OAAO,eAAe,MAAM,IAAI,KAEhF,QAAO,eAAe,OAAO,OAAO,UAAU;AAGhD,MAAI,OAAO,UAAU,UAAU;AAC7B,OAAI,QAAQ,OAAO,iBACjB,QAAO;AAIT,UAAO,OAAO,MAAM;;AAGtB,SAAO;GACP;;;;;;;;;AAUJ,SAAgB,cACd,OACA,UACA,OACQ;AACR,QAAO,QAAQ,UAAU,OAAO,UAAU,MAAM"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import intDecoding_default from "../types/intDecoding.mjs";
|
|
2
|
-
import
|
|
2
|
+
import JSONbigWithoutConfig from "json-bigint";
|
|
3
3
|
|
|
4
4
|
//#region packages/sdk/src/utils/utils.ts
|
|
5
|
-
const JSONbig =
|
|
5
|
+
const JSONbig = JSONbigWithoutConfig({
|
|
6
6
|
useNativeBigInt: true,
|
|
7
7
|
strict: true
|
|
8
8
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","names":["
|
|
1
|
+
{"version":3,"file":"utils.mjs","names":["IntDecoding"],"sources":["../../../../../packages/sdk/src/utils/utils.ts"],"sourcesContent":["import JSONbigWithoutConfig from 'json-bigint'\nimport IntDecoding from '../types/intDecoding.js'\n\nconst JSONbig = JSONbigWithoutConfig({\n useNativeBigInt: true,\n strict: true,\n})\n\nexport interface ParseJSONOptions {\n intDecoding: IntDecoding\n}\n\n/**\n * Parse JSON with additional options.\n * @param str - The JSON string to parse.\n * @param options - Configures how integers in this JSON string will be decoded. See the\n * `IntDecoding` enum for more details.\n */\nexport function parseJSON(str: string, { intDecoding }: ParseJSONOptions) {\n if (\n intDecoding !== IntDecoding.SAFE &&\n intDecoding !== IntDecoding.UNSAFE &&\n intDecoding !== IntDecoding.BIGINT &&\n intDecoding !== IntDecoding.MIXED\n ) {\n throw new Error(`Invalid intDecoding option: ${intDecoding}`)\n }\n return JSONbig.parse(str, (_: string, value: any): any => {\n if (value != null && typeof value === 'object' && Object.getPrototypeOf(value) == null) {\n // JSONbig.parse objects are created with Object.create(null) and thus have a null prototype\n // let us remedy that\n Object.setPrototypeOf(value, Object.prototype)\n }\n\n if (typeof value === 'bigint') {\n if (intDecoding === IntDecoding.SAFE && value > Number.MAX_SAFE_INTEGER) {\n throw new Error(`Integer exceeds maximum safe integer: ${value.toString()}. Try parsing with a different intDecoding option.`)\n }\n if (intDecoding === IntDecoding.BIGINT || (intDecoding === IntDecoding.MIXED && value > Number.MAX_SAFE_INTEGER)) {\n return value\n }\n // JSONbig.parse converts number to BigInts if they are >= 10**15. This is smaller than\n // Number.MAX_SAFE_INTEGER, so we can convert some BigInts back to normal numbers.\n return Number(value)\n }\n\n if (typeof value === 'number') {\n if (intDecoding === IntDecoding.BIGINT && Number.isInteger(value)) {\n return BigInt(value)\n }\n }\n\n return value\n })\n}\n\n/**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n *\n * This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.\n *\n * This function takes the same arguments as the built-in JSON.stringify function.\n *\n * @param value - A JavaScript value, usually an object or array, to be converted.\n * @param replacer - A function that transforms the results.\n * @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\nexport function stringifyJSON(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string {\n return JSONbig.stringify(value, replacer, space)\n}\n\n/**\n * ArrayEqual takes two arrays and return true if equal, false otherwise\n */\nexport function arrayEqual<T>(a: ArrayLike<T>, b: ArrayLike<T>): boolean {\n if (a.length !== b.length) {\n return false\n }\n return Array.from(a).every((val, i) => val === b[i])\n}\n\n/**\n * ConcatArrays takes n number arrays and returns a joint Uint8Array\n * @param arrs - An arbitrary number of n array-like number list arguments\n * @returns [a,b]\n */\nexport function concatArrays(...arrs: ArrayLike<number>[]) {\n const size = arrs.reduce((sum, arr) => sum + arr.length, 0)\n const c = new Uint8Array(size)\n\n let offset = 0\n for (let i = 0; i < arrs.length; i++) {\n c.set(arrs[i], offset)\n offset += arrs[i].length\n }\n\n return c\n}\n\n/**\n * Remove undefined properties from an object\n * @param obj - An object, preferably one with some undefined properties\n * @returns A copy of the object with undefined properties removed\n */\nexport function removeUndefinedProperties(obj: Record<string | number | symbol, any>) {\n const mutableCopy = { ...obj }\n Object.keys(mutableCopy).forEach((key) => {\n if (typeof mutableCopy[key] === 'undefined') delete mutableCopy[key]\n })\n return mutableCopy\n}\n\n/**\n * Check whether the environment is Node.js (as opposed to the browser)\n * @returns True if Node.js environment, false otherwise\n */\nexport function isNode() {\n return (\n // @ts-ignore\n typeof process === 'object' &&\n // @ts-ignore\n typeof process.versions === 'object' &&\n // @ts-ignore\n typeof process.versions.node !== 'undefined'\n )\n}\n\n/**\n * Check whether the environment is ReactNative\n * @returns True if ReactNative, false otherwise\n */\nexport function isReactNative() {\n const { navigator } = globalThis as { navigator?: { product?: string } }\n if (typeof navigator === 'object' && navigator.product === 'ReactNative') {\n return true\n }\n return false\n}\n\nexport function ensureSafeInteger(value: unknown): number {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n if (value > BigInt(Number.MAX_SAFE_INTEGER) || value < BigInt(Number.MIN_SAFE_INTEGER)) {\n throw new Error(`BigInt value ${value} is not a safe integer`)\n }\n return Number(value)\n }\n if (typeof value === 'number') {\n if (Number.isSafeInteger(value)) {\n return value\n }\n throw new Error(`Value ${value} is not a safe integer`)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureSafeUnsignedInteger(value: unknown): number {\n const intValue = ensureSafeInteger(value)\n if (intValue < 0) {\n throw new Error(`Value ${intValue} is negative`)\n }\n return intValue\n}\n\nexport function ensureBigInt(value: unknown): bigint {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n return value\n }\n if (typeof value === 'number') {\n if (!Number.isSafeInteger(value)) {\n throw new Error(`Value ${value} is not a safe integer`)\n }\n return BigInt(value)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureUint64(value: unknown): bigint {\n const bigIntValue = ensureBigInt(value)\n if (bigIntValue < 0 || bigIntValue > BigInt('0xffffffffffffffff')) {\n throw new Error(`Value ${bigIntValue} is not a uint64`)\n }\n return bigIntValue\n}\n"],"mappings":"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"}
|
|
@@ -364,7 +364,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
364
364
|
accountReferences?: ReadableAddress[] | undefined;
|
|
365
365
|
appReferences?: bigint[] | undefined;
|
|
366
366
|
assetReferences?: bigint[] | undefined;
|
|
367
|
-
boxReferences?: (
|
|
367
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
368
368
|
accessReferences?: ResourceReference[] | undefined;
|
|
369
369
|
rejectVersion?: number | undefined;
|
|
370
370
|
appId?: 0 | undefined;
|
|
@@ -433,7 +433,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
433
433
|
accountReferences?: ReadableAddress[] | undefined;
|
|
434
434
|
appReferences?: bigint[] | undefined;
|
|
435
435
|
assetReferences?: bigint[] | undefined;
|
|
436
|
-
boxReferences?: (
|
|
436
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
437
437
|
accessReferences?: ResourceReference[] | undefined;
|
|
438
438
|
rejectVersion?: number | undefined;
|
|
439
439
|
approvalProgram: string | Uint8Array;
|
|
@@ -568,10 +568,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
568
568
|
* @returns The application ABI method create transaction
|
|
569
569
|
*/
|
|
570
570
|
appCreateMethodCall: (params: {
|
|
571
|
-
approvalProgram: string | Uint8Array;
|
|
572
|
-
clearStateProgram: string | Uint8Array;
|
|
573
571
|
appId?: 0 | undefined;
|
|
574
|
-
extraProgramPages?: number | undefined;
|
|
575
572
|
sender: SendingAddress;
|
|
576
573
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
577
574
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -587,17 +584,20 @@ declare class AlgorandClientTransactionCreator {
|
|
|
587
584
|
accountReferences?: ReadableAddress[] | undefined;
|
|
588
585
|
appReferences?: bigint[] | undefined;
|
|
589
586
|
assetReferences?: bigint[] | undefined;
|
|
590
|
-
boxReferences?: (
|
|
587
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
591
588
|
accessReferences?: ResourceReference[] | undefined;
|
|
592
589
|
rejectVersion?: number | undefined;
|
|
590
|
+
approvalProgram: string | Uint8Array;
|
|
591
|
+
clearStateProgram: string | Uint8Array;
|
|
593
592
|
schema?: {
|
|
594
593
|
globalInts: number;
|
|
595
594
|
globalByteSlices: number;
|
|
596
595
|
localInts: number;
|
|
597
596
|
localByteSlices: number;
|
|
598
597
|
} | undefined;
|
|
598
|
+
extraProgramPages?: number | undefined;
|
|
599
599
|
method: ABIMethod;
|
|
600
|
-
args?: (
|
|
600
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
601
601
|
sender: SendingAddress;
|
|
602
602
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
603
603
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -614,7 +614,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
614
614
|
accountReferences?: ReadableAddress[] | undefined;
|
|
615
615
|
appReferences?: bigint[] | undefined;
|
|
616
616
|
assetReferences?: bigint[] | undefined;
|
|
617
|
-
boxReferences?: (
|
|
617
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
618
618
|
accessReferences?: ResourceReference[] | undefined;
|
|
619
619
|
rejectVersion?: number | undefined;
|
|
620
620
|
appId?: 0 | undefined;
|
|
@@ -645,7 +645,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
645
645
|
accountReferences?: ReadableAddress[] | undefined;
|
|
646
646
|
appReferences?: bigint[] | undefined;
|
|
647
647
|
assetReferences?: bigint[] | undefined;
|
|
648
|
-
boxReferences?: (
|
|
648
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
649
649
|
accessReferences?: ResourceReference[] | undefined;
|
|
650
650
|
rejectVersion?: number | undefined;
|
|
651
651
|
approvalProgram: string | Uint8Array;
|
|
@@ -702,8 +702,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
702
702
|
* @returns The application ABI method update transaction
|
|
703
703
|
*/
|
|
704
704
|
appUpdateMethodCall: (params: {
|
|
705
|
-
approvalProgram: string | Uint8Array;
|
|
706
|
-
clearStateProgram: string | Uint8Array;
|
|
707
705
|
appId: bigint;
|
|
708
706
|
sender: SendingAddress;
|
|
709
707
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
@@ -720,11 +718,13 @@ declare class AlgorandClientTransactionCreator {
|
|
|
720
718
|
accountReferences?: ReadableAddress[] | undefined;
|
|
721
719
|
appReferences?: bigint[] | undefined;
|
|
722
720
|
assetReferences?: bigint[] | undefined;
|
|
723
|
-
boxReferences?: (
|
|
721
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
724
722
|
accessReferences?: ResourceReference[] | undefined;
|
|
725
723
|
rejectVersion?: number | undefined;
|
|
724
|
+
approvalProgram: string | Uint8Array;
|
|
725
|
+
clearStateProgram: string | Uint8Array;
|
|
726
726
|
method: ABIMethod;
|
|
727
|
-
args?: (
|
|
727
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
728
728
|
sender: SendingAddress;
|
|
729
729
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
730
730
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -741,7 +741,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
741
741
|
accountReferences?: ReadableAddress[] | undefined;
|
|
742
742
|
appReferences?: bigint[] | undefined;
|
|
743
743
|
assetReferences?: bigint[] | undefined;
|
|
744
|
-
boxReferences?: (
|
|
744
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
745
745
|
accessReferences?: ResourceReference[] | undefined;
|
|
746
746
|
rejectVersion?: number | undefined;
|
|
747
747
|
appId?: 0 | undefined;
|
|
@@ -772,7 +772,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
772
772
|
accountReferences?: ReadableAddress[] | undefined;
|
|
773
773
|
appReferences?: bigint[] | undefined;
|
|
774
774
|
assetReferences?: bigint[] | undefined;
|
|
775
|
-
boxReferences?: (
|
|
775
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
776
776
|
accessReferences?: ResourceReference[] | undefined;
|
|
777
777
|
rejectVersion?: number | undefined;
|
|
778
778
|
approvalProgram: string | Uint8Array;
|
|
@@ -843,11 +843,11 @@ declare class AlgorandClientTransactionCreator {
|
|
|
843
843
|
accountReferences?: ReadableAddress[] | undefined;
|
|
844
844
|
appReferences?: bigint[] | undefined;
|
|
845
845
|
assetReferences?: bigint[] | undefined;
|
|
846
|
-
boxReferences?: (
|
|
846
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
847
847
|
accessReferences?: ResourceReference[] | undefined;
|
|
848
848
|
rejectVersion?: number | undefined;
|
|
849
849
|
method: ABIMethod;
|
|
850
|
-
args?: (
|
|
850
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
851
851
|
sender: SendingAddress;
|
|
852
852
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
853
853
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -864,7 +864,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
864
864
|
accountReferences?: ReadableAddress[] | undefined;
|
|
865
865
|
appReferences?: bigint[] | undefined;
|
|
866
866
|
assetReferences?: bigint[] | undefined;
|
|
867
|
-
boxReferences?: (
|
|
867
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
868
868
|
accessReferences?: ResourceReference[] | undefined;
|
|
869
869
|
rejectVersion?: number | undefined;
|
|
870
870
|
appId?: 0 | undefined;
|
|
@@ -895,7 +895,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
895
895
|
accountReferences?: ReadableAddress[] | undefined;
|
|
896
896
|
appReferences?: bigint[] | undefined;
|
|
897
897
|
assetReferences?: bigint[] | undefined;
|
|
898
|
-
boxReferences?: (
|
|
898
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
899
899
|
accessReferences?: ResourceReference[] | undefined;
|
|
900
900
|
rejectVersion?: number | undefined;
|
|
901
901
|
approvalProgram: string | Uint8Array;
|
|
@@ -966,11 +966,11 @@ declare class AlgorandClientTransactionCreator {
|
|
|
966
966
|
accountReferences?: ReadableAddress[] | undefined;
|
|
967
967
|
appReferences?: bigint[] | undefined;
|
|
968
968
|
assetReferences?: bigint[] | undefined;
|
|
969
|
-
boxReferences?: (
|
|
969
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
970
970
|
accessReferences?: ResourceReference[] | undefined;
|
|
971
971
|
rejectVersion?: number | undefined;
|
|
972
972
|
method: ABIMethod;
|
|
973
|
-
args?: (
|
|
973
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
974
974
|
sender: SendingAddress;
|
|
975
975
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
976
976
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -987,7 +987,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
987
987
|
accountReferences?: ReadableAddress[] | undefined;
|
|
988
988
|
appReferences?: bigint[] | undefined;
|
|
989
989
|
assetReferences?: bigint[] | undefined;
|
|
990
|
-
boxReferences?: (
|
|
990
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
991
991
|
accessReferences?: ResourceReference[] | undefined;
|
|
992
992
|
rejectVersion?: number | undefined;
|
|
993
993
|
appId?: 0 | undefined;
|
|
@@ -1018,7 +1018,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
1018
1018
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1019
1019
|
appReferences?: bigint[] | undefined;
|
|
1020
1020
|
assetReferences?: bigint[] | undefined;
|
|
1021
|
-
boxReferences?: (
|
|
1021
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1022
1022
|
accessReferences?: ResourceReference[] | undefined;
|
|
1023
1023
|
rejectVersion?: number | undefined;
|
|
1024
1024
|
approvalProgram: string | Uint8Array;
|
|
@@ -495,7 +495,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
495
495
|
accountReferences?: ReadableAddress[] | undefined;
|
|
496
496
|
appReferences?: bigint[] | undefined;
|
|
497
497
|
assetReferences?: bigint[] | undefined;
|
|
498
|
-
boxReferences?: (
|
|
498
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
499
499
|
accessReferences?: ResourceReference[] | undefined;
|
|
500
500
|
rejectVersion?: number | undefined;
|
|
501
501
|
appId?: 0 | undefined;
|
|
@@ -571,7 +571,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
571
571
|
accountReferences?: ReadableAddress[] | undefined;
|
|
572
572
|
appReferences?: bigint[] | undefined;
|
|
573
573
|
assetReferences?: bigint[] | undefined;
|
|
574
|
-
boxReferences?: (
|
|
574
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
575
575
|
accessReferences?: ResourceReference[] | undefined;
|
|
576
576
|
rejectVersion?: number | undefined;
|
|
577
577
|
approvalProgram: string | Uint8Array;
|
|
@@ -626,7 +626,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
626
626
|
accountReferences?: ReadableAddress[] | undefined;
|
|
627
627
|
appReferences?: bigint[] | undefined;
|
|
628
628
|
assetReferences?: bigint[] | undefined;
|
|
629
|
-
boxReferences?: (
|
|
629
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
630
630
|
accessReferences?: ResourceReference[] | undefined;
|
|
631
631
|
rejectVersion?: number | undefined;
|
|
632
632
|
} & {
|
|
@@ -681,7 +681,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
681
681
|
accountReferences?: ReadableAddress[] | undefined;
|
|
682
682
|
appReferences?: bigint[] | undefined;
|
|
683
683
|
assetReferences?: bigint[] | undefined;
|
|
684
|
-
boxReferences?: (
|
|
684
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
685
685
|
accessReferences?: ResourceReference[] | undefined;
|
|
686
686
|
rejectVersion?: number | undefined;
|
|
687
687
|
} & {
|
|
@@ -752,10 +752,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
752
752
|
* @returns The result of the application ABI method create transaction and the transaction that was sent
|
|
753
753
|
*/
|
|
754
754
|
appCreateMethodCall: (params: {
|
|
755
|
-
approvalProgram: string | Uint8Array;
|
|
756
|
-
clearStateProgram: string | Uint8Array;
|
|
757
755
|
appId?: 0 | undefined;
|
|
758
|
-
extraProgramPages?: number | undefined;
|
|
759
756
|
sender: SendingAddress;
|
|
760
757
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
761
758
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -771,17 +768,20 @@ declare class AlgorandClientTransactionSender {
|
|
|
771
768
|
accountReferences?: ReadableAddress[] | undefined;
|
|
772
769
|
appReferences?: bigint[] | undefined;
|
|
773
770
|
assetReferences?: bigint[] | undefined;
|
|
774
|
-
boxReferences?: (
|
|
771
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
775
772
|
accessReferences?: ResourceReference[] | undefined;
|
|
776
773
|
rejectVersion?: number | undefined;
|
|
774
|
+
approvalProgram: string | Uint8Array;
|
|
775
|
+
clearStateProgram: string | Uint8Array;
|
|
777
776
|
schema?: {
|
|
778
777
|
globalInts: number;
|
|
779
778
|
globalByteSlices: number;
|
|
780
779
|
localInts: number;
|
|
781
780
|
localByteSlices: number;
|
|
782
781
|
} | undefined;
|
|
782
|
+
extraProgramPages?: number | undefined;
|
|
783
783
|
method: ABIMethod;
|
|
784
|
-
args?: (
|
|
784
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
785
785
|
sender: SendingAddress;
|
|
786
786
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
787
787
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -798,7 +798,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
798
798
|
accountReferences?: ReadableAddress[] | undefined;
|
|
799
799
|
appReferences?: bigint[] | undefined;
|
|
800
800
|
assetReferences?: bigint[] | undefined;
|
|
801
|
-
boxReferences?: (
|
|
801
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
802
802
|
accessReferences?: ResourceReference[] | undefined;
|
|
803
803
|
rejectVersion?: number | undefined;
|
|
804
804
|
appId?: 0 | undefined;
|
|
@@ -829,7 +829,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
829
829
|
accountReferences?: ReadableAddress[] | undefined;
|
|
830
830
|
appReferences?: bigint[] | undefined;
|
|
831
831
|
assetReferences?: bigint[] | undefined;
|
|
832
|
-
boxReferences?: (
|
|
832
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
833
833
|
accessReferences?: ResourceReference[] | undefined;
|
|
834
834
|
rejectVersion?: number | undefined;
|
|
835
835
|
approvalProgram: string | Uint8Array;
|
|
@@ -893,8 +893,6 @@ declare class AlgorandClientTransactionSender {
|
|
|
893
893
|
* @returns The result of the application ABI method update transaction and the transaction that was sent
|
|
894
894
|
*/
|
|
895
895
|
appUpdateMethodCall: (params: {
|
|
896
|
-
approvalProgram: string | Uint8Array;
|
|
897
|
-
clearStateProgram: string | Uint8Array;
|
|
898
896
|
appId: bigint;
|
|
899
897
|
sender: SendingAddress;
|
|
900
898
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
@@ -911,11 +909,13 @@ declare class AlgorandClientTransactionSender {
|
|
|
911
909
|
accountReferences?: ReadableAddress[] | undefined;
|
|
912
910
|
appReferences?: bigint[] | undefined;
|
|
913
911
|
assetReferences?: bigint[] | undefined;
|
|
914
|
-
boxReferences?: (
|
|
912
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
915
913
|
accessReferences?: ResourceReference[] | undefined;
|
|
916
914
|
rejectVersion?: number | undefined;
|
|
915
|
+
approvalProgram: string | Uint8Array;
|
|
916
|
+
clearStateProgram: string | Uint8Array;
|
|
917
917
|
method: ABIMethod;
|
|
918
|
-
args?: (
|
|
918
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
919
919
|
sender: SendingAddress;
|
|
920
920
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
921
921
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -932,7 +932,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
932
932
|
accountReferences?: ReadableAddress[] | undefined;
|
|
933
933
|
appReferences?: bigint[] | undefined;
|
|
934
934
|
assetReferences?: bigint[] | undefined;
|
|
935
|
-
boxReferences?: (
|
|
935
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
936
936
|
accessReferences?: ResourceReference[] | undefined;
|
|
937
937
|
rejectVersion?: number | undefined;
|
|
938
938
|
appId?: 0 | undefined;
|
|
@@ -963,7 +963,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
963
963
|
accountReferences?: ReadableAddress[] | undefined;
|
|
964
964
|
appReferences?: bigint[] | undefined;
|
|
965
965
|
assetReferences?: bigint[] | undefined;
|
|
966
|
-
boxReferences?: (
|
|
966
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
967
967
|
accessReferences?: ResourceReference[] | undefined;
|
|
968
968
|
rejectVersion?: number | undefined;
|
|
969
969
|
approvalProgram: string | Uint8Array;
|
|
@@ -1041,11 +1041,11 @@ declare class AlgorandClientTransactionSender {
|
|
|
1041
1041
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1042
1042
|
appReferences?: bigint[] | undefined;
|
|
1043
1043
|
assetReferences?: bigint[] | undefined;
|
|
1044
|
-
boxReferences?: (
|
|
1044
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1045
1045
|
accessReferences?: ResourceReference[] | undefined;
|
|
1046
1046
|
rejectVersion?: number | undefined;
|
|
1047
1047
|
method: ABIMethod;
|
|
1048
|
-
args?: (
|
|
1048
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
1049
1049
|
sender: SendingAddress;
|
|
1050
1050
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1051
1051
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -1062,7 +1062,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1062
1062
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1063
1063
|
appReferences?: bigint[] | undefined;
|
|
1064
1064
|
assetReferences?: bigint[] | undefined;
|
|
1065
|
-
boxReferences?: (
|
|
1065
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1066
1066
|
accessReferences?: ResourceReference[] | undefined;
|
|
1067
1067
|
rejectVersion?: number | undefined;
|
|
1068
1068
|
appId?: 0 | undefined;
|
|
@@ -1093,7 +1093,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1093
1093
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1094
1094
|
appReferences?: bigint[] | undefined;
|
|
1095
1095
|
assetReferences?: bigint[] | undefined;
|
|
1096
|
-
boxReferences?: (
|
|
1096
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1097
1097
|
accessReferences?: ResourceReference[] | undefined;
|
|
1098
1098
|
rejectVersion?: number | undefined;
|
|
1099
1099
|
approvalProgram: string | Uint8Array;
|
|
@@ -1171,11 +1171,11 @@ declare class AlgorandClientTransactionSender {
|
|
|
1171
1171
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1172
1172
|
appReferences?: bigint[] | undefined;
|
|
1173
1173
|
assetReferences?: bigint[] | undefined;
|
|
1174
|
-
boxReferences?: (
|
|
1174
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1175
1175
|
accessReferences?: ResourceReference[] | undefined;
|
|
1176
1176
|
rejectVersion?: number | undefined;
|
|
1177
1177
|
method: ABIMethod;
|
|
1178
|
-
args?: (
|
|
1178
|
+
args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
|
|
1179
1179
|
sender: SendingAddress;
|
|
1180
1180
|
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1181
1181
|
rekeyTo?: ReadableAddress | undefined;
|
|
@@ -1192,7 +1192,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1192
1192
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1193
1193
|
appReferences?: bigint[] | undefined;
|
|
1194
1194
|
assetReferences?: bigint[] | undefined;
|
|
1195
|
-
boxReferences?: (
|
|
1195
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1196
1196
|
accessReferences?: ResourceReference[] | undefined;
|
|
1197
1197
|
rejectVersion?: number | undefined;
|
|
1198
1198
|
appId?: 0 | undefined;
|
|
@@ -1223,7 +1223,7 @@ declare class AlgorandClientTransactionSender {
|
|
|
1223
1223
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1224
1224
|
appReferences?: bigint[] | undefined;
|
|
1225
1225
|
assetReferences?: bigint[] | undefined;
|
|
1226
|
-
boxReferences?: (
|
|
1226
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1227
1227
|
accessReferences?: ResourceReference[] | undefined;
|
|
1228
1228
|
rejectVersion?: number | undefined;
|
|
1229
1229
|
approvalProgram: string | Uint8Array;
|