@algorandfoundation/algokit-utils 10.0.0-alpha.17 → 10.0.0-alpha.18

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": "10.0.0-alpha.17",
9
+ "version": "10.0.0-alpha.18",
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,7 +1,7 @@
1
- import JSONbigFactory from "json-bigint";
1
+ import JSONbigWithoutConfig from "json-bigint";
2
2
 
3
3
  //#region packages/common/src/json.ts
4
- const JSONbig = JSONbigFactory({
4
+ const JSONbig = JSONbigWithoutConfig({
5
5
  useNativeBigInt: true,
6
6
  strict: true
7
7
  });
@@ -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,UAAU,eAAe;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
+ {"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 JSONbigFactory from "json-bigint";
2
+ import JSONbigWithoutConfig from "json-bigint";
3
3
 
4
4
  //#region packages/sdk/src/utils/utils.ts
5
- const JSONbig = JSONbigFactory({
5
+ const JSONbig = JSONbigWithoutConfig({
6
6
  useNativeBigInt: true,
7
7
  strict: true
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":["JSONbigWithoutConfig","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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"}
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
846
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
847
847
  accessReferences?: ResourceReference[] | undefined;
848
848
  rejectVersion?: number | undefined;
849
849
  method: ABIMethod;
850
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
969
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
970
970
  accessReferences?: ResourceReference[] | undefined;
971
971
  rejectVersion?: number | undefined;
972
972
  method: ABIMethod;
973
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
1044
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1045
1045
  accessReferences?: ResourceReference[] | undefined;
1046
1046
  rejectVersion?: number | undefined;
1047
1047
  method: ABIMethod;
1048
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
1174
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1175
1175
  accessReferences?: ResourceReference[] | undefined;
1176
1176
  rejectVersion?: number | undefined;
1177
1177
  method: ABIMethod;
1178
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
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?: (BoxIdentifier | BoxReference)[] | undefined;
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?: (BoxIdentifier | BoxReference)[] | undefined;
1226
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1227
1227
  accessReferences?: ResourceReference[] | undefined;
1228
1228
  rejectVersion?: number | undefined;
1229
1229
  approvalProgram: string | Uint8Array;
@@ -443,7 +443,7 @@ declare class AppClient {
443
443
  accountReferences?: ReadableAddress[] | undefined;
444
444
  appReferences?: bigint[] | undefined;
445
445
  assetReferences?: bigint[] | undefined;
446
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
446
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
447
447
  accessReferences?: ResourceReference[] | undefined;
448
448
  rejectVersion?: number | undefined;
449
449
  sender?: ReadableAddress | undefined;
@@ -470,7 +470,7 @@ declare class AppClient {
470
470
  accountReferences?: ReadableAddress[] | undefined;
471
471
  appReferences?: bigint[] | undefined;
472
472
  assetReferences?: bigint[] | undefined;
473
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
473
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
474
474
  accessReferences?: ResourceReference[] | undefined;
475
475
  rejectVersion?: number | undefined;
476
476
  sender?: ReadableAddress | undefined;
@@ -488,7 +488,7 @@ declare class AppClient {
488
488
  signer: TransactionSigner | AddressWithTransactionSigner | undefined;
489
489
  method: ABIMethod;
490
490
  onComplete: OnApplicationComplete.UpdateApplication;
491
- args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
491
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
492
492
  sender: SendingAddress;
493
493
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
494
494
  rekeyTo?: ReadableAddress | undefined;
@@ -505,7 +505,7 @@ declare class AppClient {
505
505
  accountReferences?: ReadableAddress[] | undefined;
506
506
  appReferences?: bigint[] | undefined;
507
507
  assetReferences?: bigint[] | undefined;
508
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
508
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
509
509
  accessReferences?: ResourceReference[] | undefined;
510
510
  rejectVersion?: number | undefined;
511
511
  appId?: 0 | undefined;
@@ -536,7 +536,7 @@ declare class AppClient {
536
536
  accountReferences?: ReadableAddress[] | undefined;
537
537
  appReferences?: bigint[] | undefined;
538
538
  assetReferences?: bigint[] | undefined;
539
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
539
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
540
540
  accessReferences?: ResourceReference[] | undefined;
541
541
  rejectVersion?: number | undefined;
542
542
  approvalProgram: string | Uint8Array;
@@ -563,7 +563,7 @@ declare class AppClient {
563
563
  accountReferences?: ReadableAddress[] | undefined;
564
564
  appReferences?: bigint[] | undefined;
565
565
  assetReferences?: bigint[] | undefined;
566
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
566
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
567
567
  accessReferences?: ResourceReference[] | undefined;
568
568
  rejectVersion?: number | undefined;
569
569
  sender?: ReadableAddress | undefined;
@@ -586,11 +586,11 @@ declare class AppClient {
586
586
  accountReferences?: ReadableAddress[] | undefined;
587
587
  appReferences?: bigint[] | undefined;
588
588
  assetReferences?: bigint[] | undefined;
589
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
589
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
590
590
  accessReferences?: ResourceReference[] | undefined;
591
591
  rejectVersion?: number | undefined;
592
592
  method: ABIMethod;
593
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
593
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
594
594
  sender: SendingAddress;
595
595
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
596
596
  rekeyTo?: ReadableAddress | undefined;
@@ -607,7 +607,7 @@ declare class AppClient {
607
607
  accountReferences?: ReadableAddress[] | undefined;
608
608
  appReferences?: bigint[] | undefined;
609
609
  assetReferences?: bigint[] | undefined;
610
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
610
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
611
611
  accessReferences?: ResourceReference[] | undefined;
612
612
  rejectVersion?: number | undefined;
613
613
  appId?: 0 | undefined;
@@ -638,7 +638,7 @@ declare class AppClient {
638
638
  accountReferences?: ReadableAddress[] | undefined;
639
639
  appReferences?: bigint[] | undefined;
640
640
  assetReferences?: bigint[] | undefined;
641
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
641
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
642
642
  accessReferences?: ResourceReference[] | undefined;
643
643
  rejectVersion?: number | undefined;
644
644
  approvalProgram: string | Uint8Array;
@@ -665,7 +665,7 @@ declare class AppClient {
665
665
  accountReferences?: ReadableAddress[] | undefined;
666
666
  appReferences?: bigint[] | undefined;
667
667
  assetReferences?: bigint[] | undefined;
668
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
668
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
669
669
  accessReferences?: ResourceReference[] | undefined;
670
670
  rejectVersion?: number | undefined;
671
671
  sender?: ReadableAddress | undefined;
@@ -688,11 +688,11 @@ declare class AppClient {
688
688
  accountReferences?: ReadableAddress[] | undefined;
689
689
  appReferences?: bigint[] | undefined;
690
690
  assetReferences?: bigint[] | undefined;
691
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
691
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
692
692
  accessReferences?: ResourceReference[] | undefined;
693
693
  rejectVersion?: number | undefined;
694
694
  method: ABIMethod;
695
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
695
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
696
696
  sender: SendingAddress;
697
697
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
698
698
  rekeyTo?: ReadableAddress | undefined;
@@ -709,7 +709,7 @@ declare class AppClient {
709
709
  accountReferences?: ReadableAddress[] | undefined;
710
710
  appReferences?: bigint[] | undefined;
711
711
  assetReferences?: bigint[] | undefined;
712
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
712
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
713
713
  accessReferences?: ResourceReference[] | undefined;
714
714
  rejectVersion?: number | undefined;
715
715
  appId?: 0 | undefined;
@@ -740,7 +740,7 @@ declare class AppClient {
740
740
  accountReferences?: ReadableAddress[] | undefined;
741
741
  appReferences?: bigint[] | undefined;
742
742
  assetReferences?: bigint[] | undefined;
743
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
743
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
744
744
  accessReferences?: ResourceReference[] | undefined;
745
745
  rejectVersion?: number | undefined;
746
746
  approvalProgram: string | Uint8Array;
@@ -766,7 +766,7 @@ declare class AppClient {
766
766
  accountReferences?: ReadableAddress[] | undefined;
767
767
  appReferences?: bigint[] | undefined;
768
768
  assetReferences?: bigint[] | undefined;
769
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
769
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
770
770
  accessReferences?: ResourceReference[] | undefined;
771
771
  rejectVersion?: number | undefined;
772
772
  sender?: ReadableAddress | undefined;
@@ -789,11 +789,11 @@ declare class AppClient {
789
789
  accountReferences?: ReadableAddress[] | undefined;
790
790
  appReferences?: bigint[] | undefined;
791
791
  assetReferences?: bigint[] | undefined;
792
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
792
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
793
793
  accessReferences?: ResourceReference[] | undefined;
794
794
  rejectVersion?: number | undefined;
795
795
  method: ABIMethod;
796
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
796
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
797
797
  sender: SendingAddress;
798
798
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
799
799
  rekeyTo?: ReadableAddress | undefined;
@@ -810,7 +810,7 @@ declare class AppClient {
810
810
  accountReferences?: ReadableAddress[] | undefined;
811
811
  appReferences?: bigint[] | undefined;
812
812
  assetReferences?: bigint[] | undefined;
813
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
813
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
814
814
  accessReferences?: ResourceReference[] | undefined;
815
815
  rejectVersion?: number | undefined;
816
816
  appId?: 0 | undefined;
@@ -841,7 +841,7 @@ declare class AppClient {
841
841
  accountReferences?: ReadableAddress[] | undefined;
842
842
  appReferences?: bigint[] | undefined;
843
843
  assetReferences?: bigint[] | undefined;
844
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
844
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
845
845
  accessReferences?: ResourceReference[] | undefined;
846
846
  rejectVersion?: number | undefined;
847
847
  approvalProgram: string | Uint8Array;
@@ -867,7 +867,7 @@ declare class AppClient {
867
867
  accountReferences?: ReadableAddress[] | undefined;
868
868
  appReferences?: bigint[] | undefined;
869
869
  assetReferences?: bigint[] | undefined;
870
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
870
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
871
871
  accessReferences?: ResourceReference[] | undefined;
872
872
  rejectVersion?: number | undefined;
873
873
  sender?: ReadableAddress | undefined;
@@ -890,11 +890,11 @@ declare class AppClient {
890
890
  accountReferences?: ReadableAddress[] | undefined;
891
891
  appReferences?: bigint[] | undefined;
892
892
  assetReferences?: bigint[] | undefined;
893
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
893
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
894
894
  accessReferences?: ResourceReference[] | undefined;
895
895
  rejectVersion?: number | undefined;
896
896
  method: ABIMethod;
897
- args?: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
897
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
898
898
  sender: SendingAddress;
899
899
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
900
900
  rekeyTo?: ReadableAddress | undefined;
@@ -911,7 +911,7 @@ declare class AppClient {
911
911
  accountReferences?: ReadableAddress[] | undefined;
912
912
  appReferences?: bigint[] | undefined;
913
913
  assetReferences?: bigint[] | undefined;
914
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
914
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
915
915
  accessReferences?: ResourceReference[] | undefined;
916
916
  rejectVersion?: number | undefined;
917
917
  appId?: 0 | undefined;
@@ -942,7 +942,7 @@ declare class AppClient {
942
942
  accountReferences?: ReadableAddress[] | undefined;
943
943
  appReferences?: bigint[] | undefined;
944
944
  assetReferences?: bigint[] | undefined;
945
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
945
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
946
946
  accessReferences?: ResourceReference[] | undefined;
947
947
  rejectVersion?: number | undefined;
948
948
  approvalProgram: string | Uint8Array;
@@ -967,7 +967,7 @@ declare class AppClient {
967
967
  accountReferences?: ReadableAddress[] | undefined;
968
968
  appReferences?: bigint[] | undefined;
969
969
  assetReferences?: bigint[] | undefined;
970
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
970
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
971
971
  accessReferences?: ResourceReference[] | undefined;
972
972
  rejectVersion?: number | undefined;
973
973
  sender?: ReadableAddress | undefined;
@@ -989,7 +989,7 @@ declare class AppClient {
989
989
  accountReferences?: ReadableAddress[] | undefined;
990
990
  appReferences?: bigint[] | undefined;
991
991
  assetReferences?: bigint[] | undefined;
992
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
992
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
993
993
  accessReferences?: ResourceReference[] | undefined;
994
994
  rejectVersion?: number | undefined;
995
995
  approvalProgram: string | Uint8Array;
@@ -1011,7 +1011,7 @@ declare class AppClient {
1011
1011
  accountReferences?: ReadableAddress[] | undefined;
1012
1012
  appReferences?: bigint[] | undefined;
1013
1013
  assetReferences?: bigint[] | undefined;
1014
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1014
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1015
1015
  accessReferences?: ResourceReference[] | undefined;
1016
1016
  rejectVersion?: number | undefined;
1017
1017
  sender?: ReadableAddress | undefined;
@@ -1032,7 +1032,7 @@ declare class AppClient {
1032
1032
  accountReferences?: ReadableAddress[] | undefined;
1033
1033
  appReferences?: bigint[] | undefined;
1034
1034
  assetReferences?: bigint[] | undefined;
1035
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1035
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1036
1036
  accessReferences?: ResourceReference[] | undefined;
1037
1037
  rejectVersion?: number | undefined;
1038
1038
  sender?: ReadableAddress | undefined;
@@ -1053,7 +1053,7 @@ declare class AppClient {
1053
1053
  accountReferences?: ReadableAddress[] | undefined;
1054
1054
  appReferences?: bigint[] | undefined;
1055
1055
  assetReferences?: bigint[] | undefined;
1056
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1056
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1057
1057
  accessReferences?: ResourceReference[] | undefined;
1058
1058
  rejectVersion?: number | undefined;
1059
1059
  sender?: ReadableAddress | undefined;
@@ -1074,7 +1074,7 @@ declare class AppClient {
1074
1074
  accountReferences?: ReadableAddress[] | undefined;
1075
1075
  appReferences?: bigint[] | undefined;
1076
1076
  assetReferences?: bigint[] | undefined;
1077
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1077
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1078
1078
  accessReferences?: ResourceReference[] | undefined;
1079
1079
  rejectVersion?: number | undefined;
1080
1080
  sender?: ReadableAddress | undefined;
@@ -1095,7 +1095,7 @@ declare class AppClient {
1095
1095
  accountReferences?: ReadableAddress[] | undefined;
1096
1096
  appReferences?: bigint[] | undefined;
1097
1097
  assetReferences?: bigint[] | undefined;
1098
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1098
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1099
1099
  accessReferences?: ResourceReference[] | undefined;
1100
1100
  rejectVersion?: number | undefined;
1101
1101
  sender?: ReadableAddress | undefined;
@@ -1147,7 +1147,7 @@ declare class AppClient {
1147
1147
  accountReferences?: ReadableAddress[] | undefined;
1148
1148
  appReferences?: bigint[] | undefined;
1149
1149
  assetReferences?: bigint[] | undefined;
1150
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1150
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1151
1151
  accessReferences?: ResourceReference[] | undefined;
1152
1152
  rejectVersion?: number | undefined;
1153
1153
  sender?: ReadableAddress | undefined;
@@ -1178,7 +1178,7 @@ declare class AppClient {
1178
1178
  accountReferences?: ReadableAddress[] | undefined;
1179
1179
  appReferences?: bigint[] | undefined;
1180
1180
  assetReferences?: bigint[] | undefined;
1181
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1181
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1182
1182
  accessReferences?: ResourceReference[] | undefined;
1183
1183
  rejectVersion?: number | undefined;
1184
1184
  sender?: ReadableAddress | undefined;
@@ -1209,7 +1209,7 @@ declare class AppClient {
1209
1209
  accountReferences?: ReadableAddress[] | undefined;
1210
1210
  appReferences?: bigint[] | undefined;
1211
1211
  assetReferences?: bigint[] | undefined;
1212
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1212
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1213
1213
  accessReferences?: ResourceReference[] | undefined;
1214
1214
  rejectVersion?: number | undefined;
1215
1215
  sender?: ReadableAddress | undefined;
@@ -1240,7 +1240,7 @@ declare class AppClient {
1240
1240
  accountReferences?: ReadableAddress[] | undefined;
1241
1241
  appReferences?: bigint[] | undefined;
1242
1242
  assetReferences?: bigint[] | undefined;
1243
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1243
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1244
1244
  accessReferences?: ResourceReference[] | undefined;
1245
1245
  rejectVersion?: number | undefined;
1246
1246
  sender?: ReadableAddress | undefined;
@@ -1271,7 +1271,7 @@ declare class AppClient {
1271
1271
  accountReferences?: ReadableAddress[] | undefined;
1272
1272
  appReferences?: bigint[] | undefined;
1273
1273
  assetReferences?: bigint[] | undefined;
1274
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1274
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1275
1275
  accessReferences?: ResourceReference[] | undefined;
1276
1276
  rejectVersion?: number | undefined;
1277
1277
  sender?: ReadableAddress | undefined;
@@ -1300,7 +1300,7 @@ declare class AppClient {
1300
1300
  accountReferences?: ReadableAddress[] | undefined;
1301
1301
  appReferences?: bigint[] | undefined;
1302
1302
  assetReferences?: bigint[] | undefined;
1303
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1303
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1304
1304
  accessReferences?: ResourceReference[] | undefined;
1305
1305
  rejectVersion?: number | undefined;
1306
1306
  sender?: ReadableAddress | undefined;
@@ -1321,7 +1321,7 @@ declare class AppClient {
1321
1321
  accountReferences?: ReadableAddress[] | undefined;
1322
1322
  appReferences?: bigint[] | undefined;
1323
1323
  assetReferences?: bigint[] | undefined;
1324
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1324
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1325
1325
  accessReferences?: ResourceReference[] | undefined;
1326
1326
  rejectVersion?: number | undefined;
1327
1327
  sender?: ReadableAddress | undefined;
@@ -1342,7 +1342,7 @@ declare class AppClient {
1342
1342
  accountReferences?: ReadableAddress[] | undefined;
1343
1343
  appReferences?: bigint[] | undefined;
1344
1344
  assetReferences?: bigint[] | undefined;
1345
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1345
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1346
1346
  accessReferences?: ResourceReference[] | undefined;
1347
1347
  rejectVersion?: number | undefined;
1348
1348
  sender?: ReadableAddress | undefined;
@@ -1363,7 +1363,7 @@ declare class AppClient {
1363
1363
  accountReferences?: ReadableAddress[] | undefined;
1364
1364
  appReferences?: bigint[] | undefined;
1365
1365
  assetReferences?: bigint[] | undefined;
1366
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1366
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1367
1367
  accessReferences?: ResourceReference[] | undefined;
1368
1368
  rejectVersion?: number | undefined;
1369
1369
  sender?: ReadableAddress | undefined;
@@ -1384,7 +1384,7 @@ declare class AppClient {
1384
1384
  accountReferences?: ReadableAddress[] | undefined;
1385
1385
  appReferences?: bigint[] | undefined;
1386
1386
  assetReferences?: bigint[] | undefined;
1387
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1387
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1388
1388
  accessReferences?: ResourceReference[] | undefined;
1389
1389
  rejectVersion?: number | undefined;
1390
1390
  sender?: ReadableAddress | undefined;
@@ -1405,7 +1405,7 @@ declare class AppClient {
1405
1405
  accountReferences?: ReadableAddress[] | undefined;
1406
1406
  appReferences?: bigint[] | undefined;
1407
1407
  assetReferences?: bigint[] | undefined;
1408
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1408
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1409
1409
  accessReferences?: ResourceReference[] | undefined;
1410
1410
  rejectVersion?: number | undefined;
1411
1411
  sender?: ReadableAddress | undefined;
@@ -1465,7 +1465,7 @@ declare class AppClient {
1465
1465
  accountReferences?: ReadableAddress[] | undefined;
1466
1466
  appReferences?: bigint[] | undefined;
1467
1467
  assetReferences?: bigint[] | undefined;
1468
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1468
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1469
1469
  accessReferences?: ResourceReference[] | undefined;
1470
1470
  rejectVersion?: number | undefined;
1471
1471
  sender?: ReadableAddress | undefined;
@@ -1503,7 +1503,7 @@ declare class AppClient {
1503
1503
  accountReferences?: ReadableAddress[] | undefined;
1504
1504
  appReferences?: bigint[] | undefined;
1505
1505
  assetReferences?: bigint[] | undefined;
1506
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1506
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1507
1507
  accessReferences?: ResourceReference[] | undefined;
1508
1508
  rejectVersion?: number | undefined;
1509
1509
  sender?: ReadableAddress | undefined;
@@ -1539,7 +1539,7 @@ declare class AppClient {
1539
1539
  accountReferences?: ReadableAddress[] | undefined;
1540
1540
  appReferences?: bigint[] | undefined;
1541
1541
  assetReferences?: bigint[] | undefined;
1542
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1542
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1543
1543
  accessReferences?: ResourceReference[] | undefined;
1544
1544
  rejectVersion?: number | undefined;
1545
1545
  sender?: ReadableAddress | undefined;
@@ -1575,7 +1575,7 @@ declare class AppClient {
1575
1575
  accountReferences?: ReadableAddress[] | undefined;
1576
1576
  appReferences?: bigint[] | undefined;
1577
1577
  assetReferences?: bigint[] | undefined;
1578
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1578
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1579
1579
  accessReferences?: ResourceReference[] | undefined;
1580
1580
  rejectVersion?: number | undefined;
1581
1581
  sender?: ReadableAddress | undefined;
@@ -1611,7 +1611,7 @@ declare class AppClient {
1611
1611
  accountReferences?: ReadableAddress[] | undefined;
1612
1612
  appReferences?: bigint[] | undefined;
1613
1613
  assetReferences?: bigint[] | undefined;
1614
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1614
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1615
1615
  accessReferences?: ResourceReference[] | undefined;
1616
1616
  rejectVersion?: number | undefined;
1617
1617
  sender?: ReadableAddress | undefined;
@@ -1645,7 +1645,7 @@ declare class AppClient {
1645
1645
  accountReferences?: ReadableAddress[] | undefined;
1646
1646
  appReferences?: bigint[] | undefined;
1647
1647
  assetReferences?: bigint[] | undefined;
1648
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1648
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1649
1649
  accessReferences?: ResourceReference[] | undefined;
1650
1650
  rejectVersion?: number | undefined;
1651
1651
  sender?: ReadableAddress | undefined;
@@ -1677,7 +1677,7 @@ declare class AppClient {
1677
1677
  accountReferences?: ReadableAddress[] | undefined;
1678
1678
  appReferences?: bigint[] | undefined;
1679
1679
  assetReferences?: bigint[] | undefined;
1680
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1680
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1681
1681
  accessReferences?: ResourceReference[] | undefined;
1682
1682
  rejectVersion?: number | undefined;
1683
1683
  sender?: ReadableAddress | undefined;
@@ -1707,7 +1707,7 @@ declare class AppClient {
1707
1707
  accountReferences?: ReadableAddress[] | undefined;
1708
1708
  appReferences?: bigint[] | undefined;
1709
1709
  assetReferences?: bigint[] | undefined;
1710
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1710
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1711
1711
  accessReferences?: ResourceReference[] | undefined;
1712
1712
  rejectVersion?: number | undefined;
1713
1713
  sender?: ReadableAddress | undefined;
@@ -1737,7 +1737,7 @@ declare class AppClient {
1737
1737
  accountReferences?: ReadableAddress[] | undefined;
1738
1738
  appReferences?: bigint[] | undefined;
1739
1739
  assetReferences?: bigint[] | undefined;
1740
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1740
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1741
1741
  accessReferences?: ResourceReference[] | undefined;
1742
1742
  rejectVersion?: number | undefined;
1743
1743
  sender?: ReadableAddress | undefined;
@@ -1767,7 +1767,7 @@ declare class AppClient {
1767
1767
  accountReferences?: ReadableAddress[] | undefined;
1768
1768
  appReferences?: bigint[] | undefined;
1769
1769
  assetReferences?: bigint[] | undefined;
1770
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1770
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1771
1771
  accessReferences?: ResourceReference[] | undefined;
1772
1772
  rejectVersion?: number | undefined;
1773
1773
  sender?: ReadableAddress | undefined;
@@ -1797,7 +1797,7 @@ declare class AppClient {
1797
1797
  accountReferences?: ReadableAddress[] | undefined;
1798
1798
  appReferences?: bigint[] | undefined;
1799
1799
  assetReferences?: bigint[] | undefined;
1800
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1800
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1801
1801
  accessReferences?: ResourceReference[] | undefined;
1802
1802
  rejectVersion?: number | undefined;
1803
1803
  sender?: ReadableAddress | undefined;
@@ -185,7 +185,7 @@ declare class AppFactory {
185
185
  accountReferences?: ReadableAddress[] | undefined;
186
186
  appReferences?: bigint[] | undefined;
187
187
  assetReferences?: bigint[] | undefined;
188
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
188
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
189
189
  accessReferences?: ResourceReference[] | undefined;
190
190
  rejectVersion?: number | undefined;
191
191
  sender?: ReadableAddress | undefined;
@@ -233,7 +233,7 @@ declare class AppFactory {
233
233
  accountReferences?: ReadableAddress[] | undefined;
234
234
  appReferences?: bigint[] | undefined;
235
235
  assetReferences?: bigint[] | undefined;
236
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
236
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
237
237
  accessReferences?: ResourceReference[] | undefined;
238
238
  rejectVersion?: number | undefined;
239
239
  sender?: ReadableAddress | undefined;
@@ -246,7 +246,7 @@ declare class AppFactory {
246
246
  sender: Address;
247
247
  signer: TransactionSigner | AddressWithTransactionSigner | undefined;
248
248
  method: ABIMethod;
249
- args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
249
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
250
250
  sender: SendingAddress;
251
251
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
252
252
  rekeyTo?: ReadableAddress | undefined;
@@ -263,7 +263,7 @@ declare class AppFactory {
263
263
  accountReferences?: ReadableAddress[] | undefined;
264
264
  appReferences?: bigint[] | undefined;
265
265
  assetReferences?: bigint[] | undefined;
266
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
266
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
267
267
  accessReferences?: ResourceReference[] | undefined;
268
268
  rejectVersion?: number | undefined;
269
269
  appId?: 0 | undefined;
@@ -294,7 +294,7 @@ declare class AppFactory {
294
294
  accountReferences?: ReadableAddress[] | undefined;
295
295
  appReferences?: bigint[] | undefined;
296
296
  assetReferences?: bigint[] | undefined;
297
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
297
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
298
298
  accessReferences?: ResourceReference[] | undefined;
299
299
  rejectVersion?: number | undefined;
300
300
  approvalProgram: string | Uint8Array;
@@ -318,7 +318,7 @@ declare class AppFactory {
318
318
  accountReferences?: ReadableAddress[] | undefined;
319
319
  appReferences?: bigint[] | undefined;
320
320
  assetReferences?: bigint[] | undefined;
321
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
321
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
322
322
  accessReferences?: ResourceReference[] | undefined;
323
323
  rejectVersion?: number | undefined;
324
324
  sender?: ReadableAddress | undefined;
@@ -339,7 +339,7 @@ declare class AppFactory {
339
339
  accountReferences?: ReadableAddress[] | undefined;
340
340
  appReferences?: bigint[] | undefined;
341
341
  assetReferences?: bigint[] | undefined;
342
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
342
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
343
343
  accessReferences?: ResourceReference[] | undefined;
344
344
  rejectVersion?: number | undefined;
345
345
  sender?: ReadableAddress | undefined;
@@ -349,7 +349,7 @@ declare class AppFactory {
349
349
  sender: Address;
350
350
  signer: TransactionSigner | AddressWithTransactionSigner | undefined;
351
351
  method: ABIMethod;
352
- args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
352
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
353
353
  sender: SendingAddress;
354
354
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
355
355
  rekeyTo?: ReadableAddress | undefined;
@@ -366,7 +366,7 @@ declare class AppFactory {
366
366
  accountReferences?: ReadableAddress[] | undefined;
367
367
  appReferences?: bigint[] | undefined;
368
368
  assetReferences?: bigint[] | undefined;
369
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
369
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
370
370
  accessReferences?: ResourceReference[] | undefined;
371
371
  rejectVersion?: number | undefined;
372
372
  appId?: 0 | undefined;
@@ -397,7 +397,7 @@ declare class AppFactory {
397
397
  accountReferences?: ReadableAddress[] | undefined;
398
398
  appReferences?: bigint[] | undefined;
399
399
  assetReferences?: bigint[] | undefined;
400
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
400
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
401
401
  accessReferences?: ResourceReference[] | undefined;
402
402
  rejectVersion?: number | undefined;
403
403
  approvalProgram: string | Uint8Array;
@@ -421,7 +421,7 @@ declare class AppFactory {
421
421
  accountReferences?: ReadableAddress[] | undefined;
422
422
  appReferences?: bigint[] | undefined;
423
423
  assetReferences?: bigint[] | undefined;
424
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
424
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
425
425
  accessReferences?: ResourceReference[] | undefined;
426
426
  rejectVersion?: number | undefined;
427
427
  sender?: ReadableAddress | undefined;
@@ -442,7 +442,7 @@ declare class AppFactory {
442
442
  accountReferences?: ReadableAddress[] | undefined;
443
443
  appReferences?: bigint[] | undefined;
444
444
  assetReferences?: bigint[] | undefined;
445
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
445
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
446
446
  accessReferences?: ResourceReference[] | undefined;
447
447
  rejectVersion?: number | undefined;
448
448
  sender?: ReadableAddress | undefined;
@@ -452,7 +452,7 @@ declare class AppFactory {
452
452
  sender: Address;
453
453
  signer: TransactionSigner | AddressWithTransactionSigner | undefined;
454
454
  method: ABIMethod;
455
- args: (ABIValue | Transaction | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
455
+ args: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
456
456
  sender: SendingAddress;
457
457
  signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
458
458
  rekeyTo?: ReadableAddress | undefined;
@@ -469,7 +469,7 @@ declare class AppFactory {
469
469
  accountReferences?: ReadableAddress[] | undefined;
470
470
  appReferences?: bigint[] | undefined;
471
471
  assetReferences?: bigint[] | undefined;
472
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
472
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
473
473
  accessReferences?: ResourceReference[] | undefined;
474
474
  rejectVersion?: number | undefined;
475
475
  appId?: 0 | undefined;
@@ -500,7 +500,7 @@ declare class AppFactory {
500
500
  accountReferences?: ReadableAddress[] | undefined;
501
501
  appReferences?: bigint[] | undefined;
502
502
  assetReferences?: bigint[] | undefined;
503
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
503
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
504
504
  accessReferences?: ResourceReference[] | undefined;
505
505
  rejectVersion?: number | undefined;
506
506
  approvalProgram: string | Uint8Array;
@@ -525,7 +525,7 @@ declare class AppFactory {
525
525
  accountReferences?: ReadableAddress[] | undefined;
526
526
  appReferences?: bigint[] | undefined;
527
527
  assetReferences?: bigint[] | undefined;
528
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
528
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
529
529
  accessReferences?: ResourceReference[] | undefined;
530
530
  rejectVersion?: number | undefined;
531
531
  sender?: ReadableAddress | undefined;
@@ -574,7 +574,7 @@ declare class AppFactory {
574
574
  accountReferences?: ReadableAddress[] | undefined;
575
575
  appReferences?: bigint[] | undefined;
576
576
  assetReferences?: bigint[] | undefined;
577
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
577
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
578
578
  accessReferences?: ResourceReference[] | undefined;
579
579
  rejectVersion?: number | undefined;
580
580
  sender?: ReadableAddress | undefined;
@@ -603,7 +603,7 @@ declare class AppFactory {
603
603
  accountReferences?: ReadableAddress[] | undefined;
604
604
  appReferences?: bigint[] | undefined;
605
605
  assetReferences?: bigint[] | undefined;
606
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
606
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
607
607
  accessReferences?: ResourceReference[] | undefined;
608
608
  rejectVersion?: number | undefined;
609
609
  sender?: ReadableAddress | undefined;
@@ -622,7 +622,7 @@ declare class AppFactory {
622
622
  accountReferences?: ReadableAddress[] | undefined;
623
623
  appReferences?: bigint[] | undefined;
624
624
  assetReferences?: bigint[] | undefined;
625
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
625
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
626
626
  accessReferences?: ResourceReference[] | undefined;
627
627
  rejectVersion?: number | undefined;
628
628
  sender?: ReadableAddress | undefined;
@@ -647,7 +647,7 @@ declare class AppFactory {
647
647
  accountReferences?: ReadableAddress[] | undefined;
648
648
  appReferences?: bigint[] | undefined;
649
649
  assetReferences?: bigint[] | undefined;
650
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
650
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
651
651
  accessReferences?: ResourceReference[] | undefined;
652
652
  rejectVersion?: number | undefined;
653
653
  sender?: ReadableAddress | undefined;
@@ -666,7 +666,7 @@ declare class AppFactory {
666
666
  accountReferences?: ReadableAddress[] | undefined;
667
667
  appReferences?: bigint[] | undefined;
668
668
  assetReferences?: bigint[] | undefined;
669
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
669
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
670
670
  accessReferences?: ResourceReference[] | undefined;
671
671
  rejectVersion?: number | undefined;
672
672
  sender?: ReadableAddress | undefined;
@@ -0,0 +1,2 @@
1
+ import { Expand } from "../packages/common/src/expand.js";
2
+ export { type Expand };
File without changes
File without changes