@algorandfoundation/algokit-utils 10.0.0-alpha.4 → 10.0.0-alpha.5

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.
Files changed (33) hide show
  1. package/package.json +1 -1
  2. package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
  3. package/packages/algod_client/src/models/application-state-schema.js +2 -2
  4. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  5. package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
  6. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  7. package/packages/common/src/json.mjs +2 -2
  8. package/packages/common/src/json.mjs.map +1 -1
  9. package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
  10. package/packages/indexer_client/src/models/application-state-schema.js +2 -2
  11. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  12. package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
  13. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  14. package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
  15. package/packages/indexer_client/src/models/state-schema.js +2 -2
  16. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  17. package/packages/indexer_client/src/models/state-schema.mjs +2 -2
  18. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  19. package/packages/indexer_client/src/models/transaction.d.ts +2 -2
  20. package/packages/indexer_client/src/models/transaction.js +2 -2
  21. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  22. package/packages/indexer_client/src/models/transaction.mjs +2 -2
  23. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  24. package/packages/sdk/src/utils/utils.mjs +2 -2
  25. package/packages/sdk/src/utils/utils.mjs.map +1 -1
  26. package/types/algorand-client-transaction-creator.d.ts +17 -17
  27. package/types/algorand-client-transaction-sender.d.ts +17 -17
  28. package/types/app-client.d.ts +40 -40
  29. package/types/app-factory.d.ts +12 -12
  30. package/types/app-manager.js +4 -4
  31. package/types/app-manager.js.map +1 -1
  32. package/types/app-manager.mjs +4 -4
  33. package/types/app-manager.mjs.map +1 -1
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "10.0.0-alpha.4",
9
+ "version": "10.0.0-alpha.5",
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",
@@ -6,11 +6,11 @@ type ApplicationStateSchema = {
6
6
  /**
7
7
  * \[nui\] num of uints.
8
8
  */
9
- numUint: number;
9
+ numUints: number;
10
10
  /**
11
11
  * \[nbs\] num of byte slices.
12
12
  */
13
- numByteSlice: number;
13
+ numByteSlices: number;
14
14
  };
15
15
  //#endregion
16
16
  export { ApplicationStateSchema };
@@ -5,12 +5,12 @@ const ApplicationStateSchemaMeta = {
5
5
  name: "ApplicationStateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: require_number.numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: require_number.numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"application-state-schema.js","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>","numberCodec"],"sources":["../../../../../packages/algod_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * \\[nui\\] num of uints.\n */\n numUint: number\n\n /**\n * \\[nbs\\] num of byte slices.\n */\n numByteSlice: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
1
+ {"version":3,"file":"application-state-schema.js","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>","numberCodec"],"sources":["../../../../../packages/algod_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * \\[nui\\] num of uints.\n */\n numUints: number\n\n /**\n * \\[nbs\\] num of byte slices.\n */\n numByteSlices: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
@@ -5,12 +5,12 @@ const ApplicationStateSchemaMeta = {
5
5
  name: "ApplicationStateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"application-state-schema.mjs","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>"],"sources":["../../../../../packages/algod_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * \\[nui\\] num of uints.\n */\n numUint: number\n\n /**\n * \\[nbs\\] num of byte slices.\n */\n numByteSlice: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
1
+ {"version":3,"file":"application-state-schema.mjs","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>"],"sources":["../../../../../packages/algod_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * \\[nui\\] num of uints.\n */\n numUints: number\n\n /**\n * \\[nbs\\] num of byte slices.\n */\n numByteSlices: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
@@ -1,7 +1,7 @@
1
- import JSONbigWithoutConfig from "json-bigint";
1
+ import JSONbigFactory from "json-bigint";
2
2
 
3
3
  //#region packages/common/src/json.ts
4
- const JSONbig = JSONbigWithoutConfig({
4
+ const JSONbig = JSONbigFactory({
5
5
  useNativeBigInt: true,
6
6
  strict: true
7
7
  });
@@ -1 +1 @@
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
+ {"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"}
@@ -6,11 +6,11 @@ type ApplicationStateSchema = {
6
6
  /**
7
7
  * number of uints.
8
8
  */
9
- numUint: number;
9
+ numUints: number;
10
10
  /**
11
11
  * number of byte slices.
12
12
  */
13
- numByteSlice: number;
13
+ numByteSlices: number;
14
14
  };
15
15
  //#endregion
16
16
  export { ApplicationStateSchema };
@@ -5,12 +5,12 @@ const ApplicationStateSchemaMeta = {
5
5
  name: "ApplicationStateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: require_number.numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: require_number.numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"application-state-schema.js","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>","numberCodec"],"sources":["../../../../../packages/indexer_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * number of uints.\n */\n numUint: number\n\n /**\n * number of byte slices.\n */\n numByteSlice: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
1
+ {"version":3,"file":"application-state-schema.js","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>","numberCodec"],"sources":["../../../../../packages/indexer_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * number of uints.\n */\n numUints: number\n\n /**\n * number of byte slices.\n */\n numByteSlices: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
@@ -5,12 +5,12 @@ const ApplicationStateSchemaMeta = {
5
5
  name: "ApplicationStateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"application-state-schema.mjs","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>"],"sources":["../../../../../packages/indexer_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * number of uints.\n */\n numUint: number\n\n /**\n * number of byte slices.\n */\n numByteSlice: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
1
+ {"version":3,"file":"application-state-schema.mjs","names":["ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema>"],"sources":["../../../../../packages/indexer_client/src/models/application-state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Specifies maximums on the number of each type that may be stored.\n */\nexport type ApplicationStateSchema = {\n /**\n * number of uints.\n */\n numUints: number\n\n /**\n * number of byte slices.\n */\n numByteSlices: number\n}\n\nexport const ApplicationStateSchemaMeta: ObjectModelMetadata<ApplicationStateSchema> = {\n name: 'ApplicationStateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,6BAA0E;CACrF,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
@@ -6,11 +6,11 @@ type StateSchema = {
6
6
  /**
7
7
  * Maximum number of TEAL uints that may be stored in the key/value store.
8
8
  */
9
- numUint: number;
9
+ numUints: number;
10
10
  /**
11
11
  * Maximum number of TEAL byte slices that may be stored in the key/value store.
12
12
  */
13
- numByteSlice: number;
13
+ numByteSlices: number;
14
14
  };
15
15
  //#endregion
16
16
  export { StateSchema };
@@ -5,12 +5,12 @@ const StateSchemaMeta = {
5
5
  name: "StateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: require_number.numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: require_number.numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"state-schema.js","names":["StateSchemaMeta: ObjectModelMetadata<StateSchema>","numberCodec"],"sources":["../../../../../packages/indexer_client/src/models/state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a \\[apls\\] local-state or \\[apgs\\] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = {\n /**\n * Maximum number of TEAL uints that may be stored in the key/value store.\n */\n numUint: number\n\n /**\n * Maximum number of TEAL byte slices that may be stored in the key/value store.\n */\n numByteSlice: number\n}\n\nexport const StateSchemaMeta: ObjectModelMetadata<StateSchema> = {\n name: 'StateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
1
+ {"version":3,"file":"state-schema.js","names":["StateSchemaMeta: ObjectModelMetadata<StateSchema>","numberCodec"],"sources":["../../../../../packages/indexer_client/src/models/state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a \\[apls\\] local-state or \\[apgs\\] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = {\n /**\n * Maximum number of TEAL uints that may be stored in the key/value store.\n */\n numUints: number\n\n /**\n * Maximum number of TEAL byte slices that may be stored in the key/value store.\n */\n numByteSlices: number\n}\n\nexport const StateSchemaMeta: ObjectModelMetadata<StateSchema> = {\n name: 'StateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOA;EACR,CACF;CACF"}
@@ -5,12 +5,12 @@ const StateSchemaMeta = {
5
5
  name: "StateSchema",
6
6
  kind: "object",
7
7
  fields: [{
8
- name: "numUint",
8
+ name: "numUints",
9
9
  wireKey: "num-uint",
10
10
  optional: false,
11
11
  codec: numberCodec
12
12
  }, {
13
- name: "numByteSlice",
13
+ name: "numByteSlices",
14
14
  wireKey: "num-byte-slice",
15
15
  optional: false,
16
16
  codec: numberCodec
@@ -1 +1 @@
1
- {"version":3,"file":"state-schema.mjs","names":["StateSchemaMeta: ObjectModelMetadata<StateSchema>"],"sources":["../../../../../packages/indexer_client/src/models/state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a \\[apls\\] local-state or \\[apgs\\] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = {\n /**\n * Maximum number of TEAL uints that may be stored in the key/value store.\n */\n numUint: number\n\n /**\n * Maximum number of TEAL byte slices that may be stored in the key/value store.\n */\n numByteSlice: number\n}\n\nexport const StateSchemaMeta: ObjectModelMetadata<StateSchema> = {\n name: 'StateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUint',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlice',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
1
+ {"version":3,"file":"state-schema.mjs","names":["StateSchemaMeta: ObjectModelMetadata<StateSchema>"],"sources":["../../../../../packages/indexer_client/src/models/state-schema.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a \\[apls\\] local-state or \\[apgs\\] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = {\n /**\n * Maximum number of TEAL uints that may be stored in the key/value store.\n */\n numUints: number\n\n /**\n * Maximum number of TEAL byte slices that may be stored in the key/value store.\n */\n numByteSlices: number\n}\n\nexport const StateSchemaMeta: ObjectModelMetadata<StateSchema> = {\n name: 'StateSchema',\n kind: 'object',\n fields: [\n {\n name: 'numUints',\n wireKey: 'num-uint',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'numByteSlices',\n wireKey: 'num-byte-slice',\n optional: false,\n codec: numberCodec,\n },\n ],\n}\n"],"mappings":";;;AAkBA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
@@ -58,7 +58,7 @@ type Transaction = {
58
58
  /**
59
59
  * \[fv\] First valid round for this transaction.
60
60
  */
61
- firstValid: number;
61
+ firstValid: bigint;
62
62
  /**
63
63
  * \[gh\] Hash of genesis block.
64
64
  */
@@ -83,7 +83,7 @@ type Transaction = {
83
83
  /**
84
84
  * \[lv\] Last valid round for this transaction.
85
85
  */
86
- lastValid: number;
86
+ lastValid: bigint;
87
87
  /**
88
88
  * \[lx\] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.
89
89
  */
@@ -105,7 +105,7 @@ const TransactionMeta = {
105
105
  name: "firstValid",
106
106
  wireKey: "first-valid",
107
107
  optional: false,
108
- codec: require_number.numberCodec
108
+ codec: require_bigint.bigIntCodec
109
109
  },
110
110
  {
111
111
  name: "genesisHash",
@@ -147,7 +147,7 @@ const TransactionMeta = {
147
147
  name: "lastValid",
148
148
  wireKey: "last-valid",
149
149
  optional: false,
150
- codec: require_number.numberCodec
150
+ codec: require_bigint.bigIntCodec
151
151
  },
152
152
  {
153
153
  name: "lease",
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","names":["TransactionMeta: ObjectModelMetadata<Transaction>","ObjectModelCodec","TransactionApplicationMeta","TransactionAssetConfigMeta","TransactionAssetFreezeMeta","TransactionAssetTransferMeta","TransactionStateProofMeta","TransactionHeartbeatMeta","addressCodec","bigIntCodec","numberCodec","bytesCodec","stringCodec","TransactionKeyregMeta","TransactionPaymentMeta","TransactionSignatureMeta","ArrayCodec","AccountStateDeltaMeta","ArrayModelCodec","StateDeltaMeta","bytesArrayCodec"],"sources":["../../../../../packages/indexer_client/src/models/transaction.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n bytesCodec,\n addressCodec,\n ArrayCodec,\n bytesArrayCodec,\n ObjectModelCodec,\n ArrayModelCodec,\n} from '@algorandfoundation/algokit-common'\nimport type { AccountStateDelta } from './account-state-delta'\nimport { AccountStateDeltaMeta } from './account-state-delta'\nimport type { StateDelta } from './state-delta'\nimport { StateDeltaMeta } from './state-delta'\nimport type { TransactionApplication } from './transaction-application'\nimport { TransactionApplicationMeta } from './transaction-application'\nimport type { TransactionAssetConfig } from './transaction-asset-config'\nimport { TransactionAssetConfigMeta } from './transaction-asset-config'\nimport type { TransactionAssetFreeze } from './transaction-asset-freeze'\nimport { TransactionAssetFreezeMeta } from './transaction-asset-freeze'\nimport type { TransactionAssetTransfer } from './transaction-asset-transfer'\nimport { TransactionAssetTransferMeta } from './transaction-asset-transfer'\nimport type { TransactionHeartbeat } from './transaction-heartbeat'\nimport { TransactionHeartbeatMeta } from './transaction-heartbeat'\nimport type { TransactionKeyreg } from './transaction-keyreg'\nimport { TransactionKeyregMeta } from './transaction-keyreg'\nimport type { TransactionPayment } from './transaction-payment'\nimport { TransactionPaymentMeta } from './transaction-payment'\nimport type { TransactionSignature } from './transaction-signature'\nimport { TransactionSignatureMeta } from './transaction-signature'\nimport type { TransactionStateProof } from './transaction-state-proof'\nimport { TransactionStateProofMeta } from './transaction-state-proof'\n\n/**\n * Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.\n *\n * Definition:\n * data/transactions/signedtxn.go : SignedTxn\n * data/transactions/transaction.go : Transaction\n */\nexport type Transaction = {\n applicationTransaction?: TransactionApplication\n assetConfigTransaction?: TransactionAssetConfig\n assetFreezeTransaction?: TransactionAssetFreeze\n assetTransferTransaction?: TransactionAssetTransfer\n stateProofTransaction?: TransactionStateProof\n heartbeatTransaction?: TransactionHeartbeat\n\n /**\n * \\[sgnr\\] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.\n */\n authAddr?: Address\n\n /**\n * \\[rc\\] rewards applied to close-remainder-to account.\n */\n closeRewards?: bigint\n\n /**\n * \\[ca\\] closing amount for transaction.\n */\n closingAmount?: bigint\n\n /**\n * Round when the transaction was confirmed.\n */\n confirmedRound?: bigint\n\n /**\n * Specifies an application index (ID) if an application was created with this transaction.\n */\n createdAppId?: bigint\n\n /**\n * Specifies an asset index (ID) if an asset was created with this transaction.\n */\n createdAssetId?: bigint\n\n /**\n * \\[fee\\] Transaction fee.\n */\n fee: bigint\n\n /**\n * \\[fv\\] First valid round for this transaction.\n */\n firstValid: number\n\n /**\n * \\[gh\\] Hash of genesis block.\n */\n genesisHash?: Uint8Array\n\n /**\n * \\[gen\\] genesis block ID.\n */\n genesisId?: string\n\n /**\n * \\[grp\\] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.\n */\n group?: Uint8Array\n\n /**\n * Transaction ID\n */\n id?: string\n\n /**\n * Offset into the round where this transaction was confirmed.\n */\n intraRoundOffset?: number\n keyregTransaction?: TransactionKeyreg\n\n /**\n * \\[lv\\] Last valid round for this transaction.\n */\n lastValid: number\n\n /**\n * \\[lx\\] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.\n */\n lease?: Uint8Array\n\n /**\n * \\[note\\] Free form data.\n */\n note?: Uint8Array\n paymentTransaction?: TransactionPayment\n\n /**\n * \\[rr\\] rewards applied to receiver account.\n */\n receiverRewards?: bigint\n\n /**\n * \\[rekey\\] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.\n */\n rekeyTo?: Address\n\n /**\n * Time when the block this transaction is in was confirmed.\n */\n roundTime?: number\n\n /**\n * \\[snd\\] Sender's address.\n */\n sender: string\n\n /**\n * \\[rs\\] rewards applied to sender account.\n */\n senderRewards?: bigint\n signature?: TransactionSignature\n\n /**\n * \\[type\\] Indicates what type of transaction this is. Different types have different fields.\n *\n * Valid types, and where their fields are stored:\n * * \\[pay\\] payment-transaction\n * * \\[keyreg\\] keyreg-transaction\n * * \\[acfg\\] asset-config-transaction\n * * \\[axfer\\] asset-transfer-transaction\n * * \\[afrz\\] asset-freeze-transaction\n * * \\[appl\\] application-transaction\n * * \\[stpf\\] state-proof-transaction\n * * \\[hb\\] heartbeat-transaction\n */\n txType: 'pay' | 'keyreg' | 'acfg' | 'axfer' | 'afrz' | 'appl' | 'stpf' | 'hb'\n\n /**\n * \\[ld\\] Local state key/value changes for the application being executed by this transaction.\n */\n localStateDelta?: AccountStateDelta[]\n globalStateDelta?: StateDelta\n\n /**\n * \\[lg\\] Logs for the application being executed by this transaction.\n */\n logs?: Uint8Array[]\n\n /**\n * Inner transactions produced by application execution.\n */\n innerTxns?: Transaction[]\n}\n\nexport const TransactionMeta: ObjectModelMetadata<Transaction> = {\n name: 'Transaction',\n kind: 'object',\n fields: [\n {\n name: 'applicationTransaction',\n wireKey: 'application-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionApplicationMeta),\n },\n {\n name: 'assetConfigTransaction',\n wireKey: 'asset-config-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetConfigMeta),\n },\n {\n name: 'assetFreezeTransaction',\n wireKey: 'asset-freeze-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetFreezeMeta),\n },\n {\n name: 'assetTransferTransaction',\n wireKey: 'asset-transfer-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetTransferMeta),\n },\n {\n name: 'stateProofTransaction',\n wireKey: 'state-proof-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionStateProofMeta),\n },\n {\n name: 'heartbeatTransaction',\n wireKey: 'heartbeat-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionHeartbeatMeta),\n },\n {\n name: 'authAddr',\n wireKey: 'auth-addr',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'closeRewards',\n wireKey: 'close-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'closingAmount',\n wireKey: 'closing-amount',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'confirmedRound',\n wireKey: 'confirmed-round',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAppId',\n wireKey: 'created-application-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAssetId',\n wireKey: 'created-asset-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'fee',\n wireKey: 'fee',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'firstValid',\n wireKey: 'first-valid',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'group',\n wireKey: 'group',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'id',\n wireKey: 'id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'intraRoundOffset',\n wireKey: 'intra-round-offset',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'keyregTransaction',\n wireKey: 'keyreg-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionKeyregMeta),\n },\n {\n name: 'lastValid',\n wireKey: 'last-valid',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lease',\n wireKey: 'lease',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'note',\n wireKey: 'note',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'paymentTransaction',\n wireKey: 'payment-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionPaymentMeta),\n },\n {\n name: 'receiverRewards',\n wireKey: 'receiver-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'rekeyTo',\n wireKey: 'rekey-to',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'roundTime',\n wireKey: 'round-time',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'sender',\n wireKey: 'sender',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'senderRewards',\n wireKey: 'sender-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'signature',\n wireKey: 'signature',\n optional: true,\n codec: new ObjectModelCodec(TransactionSignatureMeta),\n },\n {\n name: 'txType',\n wireKey: 'tx-type',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'localStateDelta',\n wireKey: 'local-state-delta',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(AccountStateDeltaMeta)),\n },\n {\n name: 'globalStateDelta',\n wireKey: 'global-state-delta',\n optional: true,\n codec: new ArrayModelCodec(StateDeltaMeta),\n },\n {\n name: 'logs',\n wireKey: 'logs',\n optional: true,\n codec: bytesArrayCodec,\n },\n {\n name: 'innerTxns',\n wireKey: 'inner-txns',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(() => TransactionMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8LA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIC,sCAAiBC,2DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAID,sCAAiBE,4DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIF,sCAAiBG,4DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIH,sCAAiBI,gEAA6B;GAC1D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIJ,sCAAiBK,0DAA0B;GACvD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIL,sCAAiBM,uDAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOF;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIT,sCAAiBY,iDAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOH;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIV,sCAAiBa,mDAAuB;GACpD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOL;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOE;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOE;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOH;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIR,sCAAiBc,uDAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOH;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAII,yBAAW,IAAIf,sCAAiBgB,kDAAsB,CAAC;GACnE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIC,oCAAgBC,mCAAe;GAC3C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIJ,yBAAW,IAAIf,4CAAuB,gBAAgB,CAAC;GACnE;EACF;CACF"}
1
+ {"version":3,"file":"transaction.js","names":["TransactionMeta: ObjectModelMetadata<Transaction>","ObjectModelCodec","TransactionApplicationMeta","TransactionAssetConfigMeta","TransactionAssetFreezeMeta","TransactionAssetTransferMeta","TransactionStateProofMeta","TransactionHeartbeatMeta","addressCodec","bigIntCodec","bytesCodec","stringCodec","numberCodec","TransactionKeyregMeta","TransactionPaymentMeta","TransactionSignatureMeta","ArrayCodec","AccountStateDeltaMeta","ArrayModelCodec","StateDeltaMeta","bytesArrayCodec"],"sources":["../../../../../packages/indexer_client/src/models/transaction.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n bytesCodec,\n addressCodec,\n ArrayCodec,\n bytesArrayCodec,\n ObjectModelCodec,\n ArrayModelCodec,\n} from '@algorandfoundation/algokit-common'\nimport type { AccountStateDelta } from './account-state-delta'\nimport { AccountStateDeltaMeta } from './account-state-delta'\nimport type { StateDelta } from './state-delta'\nimport { StateDeltaMeta } from './state-delta'\nimport type { TransactionApplication } from './transaction-application'\nimport { TransactionApplicationMeta } from './transaction-application'\nimport type { TransactionAssetConfig } from './transaction-asset-config'\nimport { TransactionAssetConfigMeta } from './transaction-asset-config'\nimport type { TransactionAssetFreeze } from './transaction-asset-freeze'\nimport { TransactionAssetFreezeMeta } from './transaction-asset-freeze'\nimport type { TransactionAssetTransfer } from './transaction-asset-transfer'\nimport { TransactionAssetTransferMeta } from './transaction-asset-transfer'\nimport type { TransactionHeartbeat } from './transaction-heartbeat'\nimport { TransactionHeartbeatMeta } from './transaction-heartbeat'\nimport type { TransactionKeyreg } from './transaction-keyreg'\nimport { TransactionKeyregMeta } from './transaction-keyreg'\nimport type { TransactionPayment } from './transaction-payment'\nimport { TransactionPaymentMeta } from './transaction-payment'\nimport type { TransactionSignature } from './transaction-signature'\nimport { TransactionSignatureMeta } from './transaction-signature'\nimport type { TransactionStateProof } from './transaction-state-proof'\nimport { TransactionStateProofMeta } from './transaction-state-proof'\n\n/**\n * Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.\n *\n * Definition:\n * data/transactions/signedtxn.go : SignedTxn\n * data/transactions/transaction.go : Transaction\n */\nexport type Transaction = {\n applicationTransaction?: TransactionApplication\n assetConfigTransaction?: TransactionAssetConfig\n assetFreezeTransaction?: TransactionAssetFreeze\n assetTransferTransaction?: TransactionAssetTransfer\n stateProofTransaction?: TransactionStateProof\n heartbeatTransaction?: TransactionHeartbeat\n\n /**\n * \\[sgnr\\] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.\n */\n authAddr?: Address\n\n /**\n * \\[rc\\] rewards applied to close-remainder-to account.\n */\n closeRewards?: bigint\n\n /**\n * \\[ca\\] closing amount for transaction.\n */\n closingAmount?: bigint\n\n /**\n * Round when the transaction was confirmed.\n */\n confirmedRound?: bigint\n\n /**\n * Specifies an application index (ID) if an application was created with this transaction.\n */\n createdAppId?: bigint\n\n /**\n * Specifies an asset index (ID) if an asset was created with this transaction.\n */\n createdAssetId?: bigint\n\n /**\n * \\[fee\\] Transaction fee.\n */\n fee: bigint\n\n /**\n * \\[fv\\] First valid round for this transaction.\n */\n firstValid: bigint\n\n /**\n * \\[gh\\] Hash of genesis block.\n */\n genesisHash?: Uint8Array\n\n /**\n * \\[gen\\] genesis block ID.\n */\n genesisId?: string\n\n /**\n * \\[grp\\] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.\n */\n group?: Uint8Array\n\n /**\n * Transaction ID\n */\n id?: string\n\n /**\n * Offset into the round where this transaction was confirmed.\n */\n intraRoundOffset?: number\n keyregTransaction?: TransactionKeyreg\n\n /**\n * \\[lv\\] Last valid round for this transaction.\n */\n lastValid: bigint\n\n /**\n * \\[lx\\] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.\n */\n lease?: Uint8Array\n\n /**\n * \\[note\\] Free form data.\n */\n note?: Uint8Array\n paymentTransaction?: TransactionPayment\n\n /**\n * \\[rr\\] rewards applied to receiver account.\n */\n receiverRewards?: bigint\n\n /**\n * \\[rekey\\] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.\n */\n rekeyTo?: Address\n\n /**\n * Time when the block this transaction is in was confirmed.\n */\n roundTime?: number\n\n /**\n * \\[snd\\] Sender's address.\n */\n sender: string\n\n /**\n * \\[rs\\] rewards applied to sender account.\n */\n senderRewards?: bigint\n signature?: TransactionSignature\n\n /**\n * \\[type\\] Indicates what type of transaction this is. Different types have different fields.\n *\n * Valid types, and where their fields are stored:\n * * \\[pay\\] payment-transaction\n * * \\[keyreg\\] keyreg-transaction\n * * \\[acfg\\] asset-config-transaction\n * * \\[axfer\\] asset-transfer-transaction\n * * \\[afrz\\] asset-freeze-transaction\n * * \\[appl\\] application-transaction\n * * \\[stpf\\] state-proof-transaction\n * * \\[hb\\] heartbeat-transaction\n */\n txType: 'pay' | 'keyreg' | 'acfg' | 'axfer' | 'afrz' | 'appl' | 'stpf' | 'hb'\n\n /**\n * \\[ld\\] Local state key/value changes for the application being executed by this transaction.\n */\n localStateDelta?: AccountStateDelta[]\n globalStateDelta?: StateDelta\n\n /**\n * \\[lg\\] Logs for the application being executed by this transaction.\n */\n logs?: Uint8Array[]\n\n /**\n * Inner transactions produced by application execution.\n */\n innerTxns?: Transaction[]\n}\n\nexport const TransactionMeta: ObjectModelMetadata<Transaction> = {\n name: 'Transaction',\n kind: 'object',\n fields: [\n {\n name: 'applicationTransaction',\n wireKey: 'application-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionApplicationMeta),\n },\n {\n name: 'assetConfigTransaction',\n wireKey: 'asset-config-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetConfigMeta),\n },\n {\n name: 'assetFreezeTransaction',\n wireKey: 'asset-freeze-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetFreezeMeta),\n },\n {\n name: 'assetTransferTransaction',\n wireKey: 'asset-transfer-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetTransferMeta),\n },\n {\n name: 'stateProofTransaction',\n wireKey: 'state-proof-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionStateProofMeta),\n },\n {\n name: 'heartbeatTransaction',\n wireKey: 'heartbeat-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionHeartbeatMeta),\n },\n {\n name: 'authAddr',\n wireKey: 'auth-addr',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'closeRewards',\n wireKey: 'close-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'closingAmount',\n wireKey: 'closing-amount',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'confirmedRound',\n wireKey: 'confirmed-round',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAppId',\n wireKey: 'created-application-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAssetId',\n wireKey: 'created-asset-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'fee',\n wireKey: 'fee',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'firstValid',\n wireKey: 'first-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'group',\n wireKey: 'group',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'id',\n wireKey: 'id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'intraRoundOffset',\n wireKey: 'intra-round-offset',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'keyregTransaction',\n wireKey: 'keyreg-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionKeyregMeta),\n },\n {\n name: 'lastValid',\n wireKey: 'last-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'lease',\n wireKey: 'lease',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'note',\n wireKey: 'note',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'paymentTransaction',\n wireKey: 'payment-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionPaymentMeta),\n },\n {\n name: 'receiverRewards',\n wireKey: 'receiver-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'rekeyTo',\n wireKey: 'rekey-to',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'roundTime',\n wireKey: 'round-time',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'sender',\n wireKey: 'sender',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'senderRewards',\n wireKey: 'sender-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'signature',\n wireKey: 'signature',\n optional: true,\n codec: new ObjectModelCodec(TransactionSignatureMeta),\n },\n {\n name: 'txType',\n wireKey: 'tx-type',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'localStateDelta',\n wireKey: 'local-state-delta',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(AccountStateDeltaMeta)),\n },\n {\n name: 'globalStateDelta',\n wireKey: 'global-state-delta',\n optional: true,\n codec: new ArrayModelCodec(StateDeltaMeta),\n },\n {\n name: 'logs',\n wireKey: 'logs',\n optional: true,\n codec: bytesArrayCodec,\n },\n {\n name: 'innerTxns',\n wireKey: 'inner-txns',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(() => TransactionMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8LA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIC,sCAAiBC,2DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAID,sCAAiBE,4DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIF,sCAAiBG,4DAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIH,sCAAiBI,gEAA6B;GAC1D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIJ,sCAAiBK,0DAA0B;GACvD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIL,sCAAiBM,uDAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIX,sCAAiBY,iDAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOJ;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIT,sCAAiBa,mDAAuB;GACpD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOL;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOI;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOF;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIR,sCAAiBc,uDAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOJ;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIK,yBAAW,IAAIf,sCAAiBgB,kDAAsB,CAAC;GACnE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIC,oCAAgBC,mCAAe;GAC3C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIJ,yBAAW,IAAIf,4CAAuB,gBAAgB,CAAC;GACnE;EACF;CACF"}
@@ -105,7 +105,7 @@ const TransactionMeta = {
105
105
  name: "firstValid",
106
106
  wireKey: "first-valid",
107
107
  optional: false,
108
- codec: numberCodec
108
+ codec: bigIntCodec
109
109
  },
110
110
  {
111
111
  name: "genesisHash",
@@ -147,7 +147,7 @@ const TransactionMeta = {
147
147
  name: "lastValid",
148
148
  wireKey: "last-valid",
149
149
  optional: false,
150
- codec: numberCodec
150
+ codec: bigIntCodec
151
151
  },
152
152
  {
153
153
  name: "lease",
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.mjs","names":["TransactionMeta: ObjectModelMetadata<Transaction>"],"sources":["../../../../../packages/indexer_client/src/models/transaction.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n bytesCodec,\n addressCodec,\n ArrayCodec,\n bytesArrayCodec,\n ObjectModelCodec,\n ArrayModelCodec,\n} from '@algorandfoundation/algokit-common'\nimport type { AccountStateDelta } from './account-state-delta'\nimport { AccountStateDeltaMeta } from './account-state-delta'\nimport type { StateDelta } from './state-delta'\nimport { StateDeltaMeta } from './state-delta'\nimport type { TransactionApplication } from './transaction-application'\nimport { TransactionApplicationMeta } from './transaction-application'\nimport type { TransactionAssetConfig } from './transaction-asset-config'\nimport { TransactionAssetConfigMeta } from './transaction-asset-config'\nimport type { TransactionAssetFreeze } from './transaction-asset-freeze'\nimport { TransactionAssetFreezeMeta } from './transaction-asset-freeze'\nimport type { TransactionAssetTransfer } from './transaction-asset-transfer'\nimport { TransactionAssetTransferMeta } from './transaction-asset-transfer'\nimport type { TransactionHeartbeat } from './transaction-heartbeat'\nimport { TransactionHeartbeatMeta } from './transaction-heartbeat'\nimport type { TransactionKeyreg } from './transaction-keyreg'\nimport { TransactionKeyregMeta } from './transaction-keyreg'\nimport type { TransactionPayment } from './transaction-payment'\nimport { TransactionPaymentMeta } from './transaction-payment'\nimport type { TransactionSignature } from './transaction-signature'\nimport { TransactionSignatureMeta } from './transaction-signature'\nimport type { TransactionStateProof } from './transaction-state-proof'\nimport { TransactionStateProofMeta } from './transaction-state-proof'\n\n/**\n * Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.\n *\n * Definition:\n * data/transactions/signedtxn.go : SignedTxn\n * data/transactions/transaction.go : Transaction\n */\nexport type Transaction = {\n applicationTransaction?: TransactionApplication\n assetConfigTransaction?: TransactionAssetConfig\n assetFreezeTransaction?: TransactionAssetFreeze\n assetTransferTransaction?: TransactionAssetTransfer\n stateProofTransaction?: TransactionStateProof\n heartbeatTransaction?: TransactionHeartbeat\n\n /**\n * \\[sgnr\\] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.\n */\n authAddr?: Address\n\n /**\n * \\[rc\\] rewards applied to close-remainder-to account.\n */\n closeRewards?: bigint\n\n /**\n * \\[ca\\] closing amount for transaction.\n */\n closingAmount?: bigint\n\n /**\n * Round when the transaction was confirmed.\n */\n confirmedRound?: bigint\n\n /**\n * Specifies an application index (ID) if an application was created with this transaction.\n */\n createdAppId?: bigint\n\n /**\n * Specifies an asset index (ID) if an asset was created with this transaction.\n */\n createdAssetId?: bigint\n\n /**\n * \\[fee\\] Transaction fee.\n */\n fee: bigint\n\n /**\n * \\[fv\\] First valid round for this transaction.\n */\n firstValid: number\n\n /**\n * \\[gh\\] Hash of genesis block.\n */\n genesisHash?: Uint8Array\n\n /**\n * \\[gen\\] genesis block ID.\n */\n genesisId?: string\n\n /**\n * \\[grp\\] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.\n */\n group?: Uint8Array\n\n /**\n * Transaction ID\n */\n id?: string\n\n /**\n * Offset into the round where this transaction was confirmed.\n */\n intraRoundOffset?: number\n keyregTransaction?: TransactionKeyreg\n\n /**\n * \\[lv\\] Last valid round for this transaction.\n */\n lastValid: number\n\n /**\n * \\[lx\\] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.\n */\n lease?: Uint8Array\n\n /**\n * \\[note\\] Free form data.\n */\n note?: Uint8Array\n paymentTransaction?: TransactionPayment\n\n /**\n * \\[rr\\] rewards applied to receiver account.\n */\n receiverRewards?: bigint\n\n /**\n * \\[rekey\\] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.\n */\n rekeyTo?: Address\n\n /**\n * Time when the block this transaction is in was confirmed.\n */\n roundTime?: number\n\n /**\n * \\[snd\\] Sender's address.\n */\n sender: string\n\n /**\n * \\[rs\\] rewards applied to sender account.\n */\n senderRewards?: bigint\n signature?: TransactionSignature\n\n /**\n * \\[type\\] Indicates what type of transaction this is. Different types have different fields.\n *\n * Valid types, and where their fields are stored:\n * * \\[pay\\] payment-transaction\n * * \\[keyreg\\] keyreg-transaction\n * * \\[acfg\\] asset-config-transaction\n * * \\[axfer\\] asset-transfer-transaction\n * * \\[afrz\\] asset-freeze-transaction\n * * \\[appl\\] application-transaction\n * * \\[stpf\\] state-proof-transaction\n * * \\[hb\\] heartbeat-transaction\n */\n txType: 'pay' | 'keyreg' | 'acfg' | 'axfer' | 'afrz' | 'appl' | 'stpf' | 'hb'\n\n /**\n * \\[ld\\] Local state key/value changes for the application being executed by this transaction.\n */\n localStateDelta?: AccountStateDelta[]\n globalStateDelta?: StateDelta\n\n /**\n * \\[lg\\] Logs for the application being executed by this transaction.\n */\n logs?: Uint8Array[]\n\n /**\n * Inner transactions produced by application execution.\n */\n innerTxns?: Transaction[]\n}\n\nexport const TransactionMeta: ObjectModelMetadata<Transaction> = {\n name: 'Transaction',\n kind: 'object',\n fields: [\n {\n name: 'applicationTransaction',\n wireKey: 'application-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionApplicationMeta),\n },\n {\n name: 'assetConfigTransaction',\n wireKey: 'asset-config-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetConfigMeta),\n },\n {\n name: 'assetFreezeTransaction',\n wireKey: 'asset-freeze-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetFreezeMeta),\n },\n {\n name: 'assetTransferTransaction',\n wireKey: 'asset-transfer-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetTransferMeta),\n },\n {\n name: 'stateProofTransaction',\n wireKey: 'state-proof-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionStateProofMeta),\n },\n {\n name: 'heartbeatTransaction',\n wireKey: 'heartbeat-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionHeartbeatMeta),\n },\n {\n name: 'authAddr',\n wireKey: 'auth-addr',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'closeRewards',\n wireKey: 'close-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'closingAmount',\n wireKey: 'closing-amount',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'confirmedRound',\n wireKey: 'confirmed-round',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAppId',\n wireKey: 'created-application-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAssetId',\n wireKey: 'created-asset-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'fee',\n wireKey: 'fee',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'firstValid',\n wireKey: 'first-valid',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'group',\n wireKey: 'group',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'id',\n wireKey: 'id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'intraRoundOffset',\n wireKey: 'intra-round-offset',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'keyregTransaction',\n wireKey: 'keyreg-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionKeyregMeta),\n },\n {\n name: 'lastValid',\n wireKey: 'last-valid',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lease',\n wireKey: 'lease',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'note',\n wireKey: 'note',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'paymentTransaction',\n wireKey: 'payment-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionPaymentMeta),\n },\n {\n name: 'receiverRewards',\n wireKey: 'receiver-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'rekeyTo',\n wireKey: 'rekey-to',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'roundTime',\n wireKey: 'round-time',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'sender',\n wireKey: 'sender',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'senderRewards',\n wireKey: 'sender-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'signature',\n wireKey: 'signature',\n optional: true,\n codec: new ObjectModelCodec(TransactionSignatureMeta),\n },\n {\n name: 'txType',\n wireKey: 'tx-type',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'localStateDelta',\n wireKey: 'local-state-delta',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(AccountStateDeltaMeta)),\n },\n {\n name: 'globalStateDelta',\n wireKey: 'global-state-delta',\n optional: true,\n codec: new ArrayModelCodec(StateDeltaMeta),\n },\n {\n name: 'logs',\n wireKey: 'logs',\n optional: true,\n codec: bytesArrayCodec,\n },\n {\n name: 'innerTxns',\n wireKey: 'inner-txns',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(() => TransactionMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8LA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,6BAA6B;GAC1D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,0BAA0B;GACvD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,yBAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,sBAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,uBAAuB;GACpD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,yBAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,sBAAsB,CAAC;GACnE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,gBAAgB,eAAe;GAC3C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,uBAAuB,gBAAgB,CAAC;GACnE;EACF;CACF"}
1
+ {"version":3,"file":"transaction.mjs","names":["TransactionMeta: ObjectModelMetadata<Transaction>"],"sources":["../../../../../packages/indexer_client/src/models/transaction.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n bytesCodec,\n addressCodec,\n ArrayCodec,\n bytesArrayCodec,\n ObjectModelCodec,\n ArrayModelCodec,\n} from '@algorandfoundation/algokit-common'\nimport type { AccountStateDelta } from './account-state-delta'\nimport { AccountStateDeltaMeta } from './account-state-delta'\nimport type { StateDelta } from './state-delta'\nimport { StateDeltaMeta } from './state-delta'\nimport type { TransactionApplication } from './transaction-application'\nimport { TransactionApplicationMeta } from './transaction-application'\nimport type { TransactionAssetConfig } from './transaction-asset-config'\nimport { TransactionAssetConfigMeta } from './transaction-asset-config'\nimport type { TransactionAssetFreeze } from './transaction-asset-freeze'\nimport { TransactionAssetFreezeMeta } from './transaction-asset-freeze'\nimport type { TransactionAssetTransfer } from './transaction-asset-transfer'\nimport { TransactionAssetTransferMeta } from './transaction-asset-transfer'\nimport type { TransactionHeartbeat } from './transaction-heartbeat'\nimport { TransactionHeartbeatMeta } from './transaction-heartbeat'\nimport type { TransactionKeyreg } from './transaction-keyreg'\nimport { TransactionKeyregMeta } from './transaction-keyreg'\nimport type { TransactionPayment } from './transaction-payment'\nimport { TransactionPaymentMeta } from './transaction-payment'\nimport type { TransactionSignature } from './transaction-signature'\nimport { TransactionSignatureMeta } from './transaction-signature'\nimport type { TransactionStateProof } from './transaction-state-proof'\nimport { TransactionStateProofMeta } from './transaction-state-proof'\n\n/**\n * Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.\n *\n * Definition:\n * data/transactions/signedtxn.go : SignedTxn\n * data/transactions/transaction.go : Transaction\n */\nexport type Transaction = {\n applicationTransaction?: TransactionApplication\n assetConfigTransaction?: TransactionAssetConfig\n assetFreezeTransaction?: TransactionAssetFreeze\n assetTransferTransaction?: TransactionAssetTransfer\n stateProofTransaction?: TransactionStateProof\n heartbeatTransaction?: TransactionHeartbeat\n\n /**\n * \\[sgnr\\] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.\n */\n authAddr?: Address\n\n /**\n * \\[rc\\] rewards applied to close-remainder-to account.\n */\n closeRewards?: bigint\n\n /**\n * \\[ca\\] closing amount for transaction.\n */\n closingAmount?: bigint\n\n /**\n * Round when the transaction was confirmed.\n */\n confirmedRound?: bigint\n\n /**\n * Specifies an application index (ID) if an application was created with this transaction.\n */\n createdAppId?: bigint\n\n /**\n * Specifies an asset index (ID) if an asset was created with this transaction.\n */\n createdAssetId?: bigint\n\n /**\n * \\[fee\\] Transaction fee.\n */\n fee: bigint\n\n /**\n * \\[fv\\] First valid round for this transaction.\n */\n firstValid: bigint\n\n /**\n * \\[gh\\] Hash of genesis block.\n */\n genesisHash?: Uint8Array\n\n /**\n * \\[gen\\] genesis block ID.\n */\n genesisId?: string\n\n /**\n * \\[grp\\] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.\n */\n group?: Uint8Array\n\n /**\n * Transaction ID\n */\n id?: string\n\n /**\n * Offset into the round where this transaction was confirmed.\n */\n intraRoundOffset?: number\n keyregTransaction?: TransactionKeyreg\n\n /**\n * \\[lv\\] Last valid round for this transaction.\n */\n lastValid: bigint\n\n /**\n * \\[lx\\] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.\n */\n lease?: Uint8Array\n\n /**\n * \\[note\\] Free form data.\n */\n note?: Uint8Array\n paymentTransaction?: TransactionPayment\n\n /**\n * \\[rr\\] rewards applied to receiver account.\n */\n receiverRewards?: bigint\n\n /**\n * \\[rekey\\] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.\n */\n rekeyTo?: Address\n\n /**\n * Time when the block this transaction is in was confirmed.\n */\n roundTime?: number\n\n /**\n * \\[snd\\] Sender's address.\n */\n sender: string\n\n /**\n * \\[rs\\] rewards applied to sender account.\n */\n senderRewards?: bigint\n signature?: TransactionSignature\n\n /**\n * \\[type\\] Indicates what type of transaction this is. Different types have different fields.\n *\n * Valid types, and where their fields are stored:\n * * \\[pay\\] payment-transaction\n * * \\[keyreg\\] keyreg-transaction\n * * \\[acfg\\] asset-config-transaction\n * * \\[axfer\\] asset-transfer-transaction\n * * \\[afrz\\] asset-freeze-transaction\n * * \\[appl\\] application-transaction\n * * \\[stpf\\] state-proof-transaction\n * * \\[hb\\] heartbeat-transaction\n */\n txType: 'pay' | 'keyreg' | 'acfg' | 'axfer' | 'afrz' | 'appl' | 'stpf' | 'hb'\n\n /**\n * \\[ld\\] Local state key/value changes for the application being executed by this transaction.\n */\n localStateDelta?: AccountStateDelta[]\n globalStateDelta?: StateDelta\n\n /**\n * \\[lg\\] Logs for the application being executed by this transaction.\n */\n logs?: Uint8Array[]\n\n /**\n * Inner transactions produced by application execution.\n */\n innerTxns?: Transaction[]\n}\n\nexport const TransactionMeta: ObjectModelMetadata<Transaction> = {\n name: 'Transaction',\n kind: 'object',\n fields: [\n {\n name: 'applicationTransaction',\n wireKey: 'application-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionApplicationMeta),\n },\n {\n name: 'assetConfigTransaction',\n wireKey: 'asset-config-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetConfigMeta),\n },\n {\n name: 'assetFreezeTransaction',\n wireKey: 'asset-freeze-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetFreezeMeta),\n },\n {\n name: 'assetTransferTransaction',\n wireKey: 'asset-transfer-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionAssetTransferMeta),\n },\n {\n name: 'stateProofTransaction',\n wireKey: 'state-proof-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionStateProofMeta),\n },\n {\n name: 'heartbeatTransaction',\n wireKey: 'heartbeat-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionHeartbeatMeta),\n },\n {\n name: 'authAddr',\n wireKey: 'auth-addr',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'closeRewards',\n wireKey: 'close-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'closingAmount',\n wireKey: 'closing-amount',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'confirmedRound',\n wireKey: 'confirmed-round',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAppId',\n wireKey: 'created-application-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'createdAssetId',\n wireKey: 'created-asset-index',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'fee',\n wireKey: 'fee',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'firstValid',\n wireKey: 'first-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'group',\n wireKey: 'group',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'id',\n wireKey: 'id',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'intraRoundOffset',\n wireKey: 'intra-round-offset',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'keyregTransaction',\n wireKey: 'keyreg-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionKeyregMeta),\n },\n {\n name: 'lastValid',\n wireKey: 'last-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'lease',\n wireKey: 'lease',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'note',\n wireKey: 'note',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'paymentTransaction',\n wireKey: 'payment-transaction',\n optional: true,\n codec: new ObjectModelCodec(TransactionPaymentMeta),\n },\n {\n name: 'receiverRewards',\n wireKey: 'receiver-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'rekeyTo',\n wireKey: 'rekey-to',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'roundTime',\n wireKey: 'round-time',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'sender',\n wireKey: 'sender',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'senderRewards',\n wireKey: 'sender-rewards',\n optional: true,\n codec: bigIntCodec,\n },\n {\n name: 'signature',\n wireKey: 'signature',\n optional: true,\n codec: new ObjectModelCodec(TransactionSignatureMeta),\n },\n {\n name: 'txType',\n wireKey: 'tx-type',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'localStateDelta',\n wireKey: 'local-state-delta',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(AccountStateDeltaMeta)),\n },\n {\n name: 'globalStateDelta',\n wireKey: 'global-state-delta',\n optional: true,\n codec: new ArrayModelCodec(StateDeltaMeta),\n },\n {\n name: 'logs',\n wireKey: 'logs',\n optional: true,\n codec: bytesArrayCodec,\n },\n {\n name: 'innerTxns',\n wireKey: 'inner-txns',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(() => TransactionMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8LA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,2BAA2B;GACxD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,6BAA6B;GAC1D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,0BAA0B;GACvD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,yBAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,sBAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,uBAAuB;GACpD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,yBAAyB;GACtD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,sBAAsB,CAAC;GACnE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,gBAAgB,eAAe;GAC3C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,uBAAuB,gBAAgB,CAAC;GACnE;EACF;CACF"}
@@ -1,8 +1,8 @@
1
1
  import intDecoding_default from "../types/intDecoding.mjs";
2
- import JSONbigWithoutConfig from "json-bigint";
2
+ import JSONbigFactory from "json-bigint";
3
3
 
4
4
  //#region packages/sdk/src/utils/utils.ts
5
- const JSONbig = JSONbigWithoutConfig({
5
+ const JSONbig = JSONbigFactory({
6
6
  useNativeBigInt: true,
7
7
  strict: true
8
8
  });
@@ -1 +1 @@
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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"}
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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"}