@algorandfoundation/algokit-utils 10.0.0-alpha.4 → 10.0.0-alpha.6
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/algod-client/index.d.ts +1 -4
- package/package.json +1 -1
- package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
- package/packages/algod_client/src/models/application-state-schema.js +2 -2
- package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
- package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
- package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
- package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
- package/packages/indexer_client/src/models/application-state-schema.js +2 -2
- package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
- package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
- package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
- package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
- package/packages/indexer_client/src/models/state-schema.js +2 -2
- package/packages/indexer_client/src/models/state-schema.js.map +1 -1
- package/packages/indexer_client/src/models/state-schema.mjs +2 -2
- package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction.d.ts +2 -2
- package/packages/indexer_client/src/models/transaction.js +2 -2
- package/packages/indexer_client/src/models/transaction.js.map +1 -1
- package/packages/indexer_client/src/models/transaction.mjs +2 -2
- package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
- package/packages/transact/src/multisig.d.ts +2 -2
- package/packages/transact/src/multisig.js +15 -15
- package/packages/transact/src/multisig.js.map +1 -1
- package/packages/transact/src/multisig.mjs +15 -15
- package/packages/transact/src/multisig.mjs.map +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +8 -8
- package/packages/transact/src/transactions/app-call.js.map +1 -1
- package/packages/transact/src/transactions/app-call.mjs.map +1 -1
- package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
- package/packages/transact/src/transactions/reference-types-meta.js +71 -0
- package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
- package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
- package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
- package/packages/transact/src/transactions/transaction-meta.js +22 -22
- package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/transaction-meta.mjs +22 -22
- package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
- package/transact/index.d.ts +3 -2
- package/transact/index.js +4 -0
- package/transact/index.mjs +2 -1
- package/transactions/app-call.d.ts +2 -2
- package/transactions/app-call.js +15 -15
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs +15 -15
- package/transactions/app-call.mjs.map +1 -1
- package/transactions/asset-config.d.ts +1 -1
- package/transactions/asset-config.js +1 -1
- package/transactions/asset-config.js.map +1 -1
- package/transactions/asset-config.mjs +1 -1
- package/transactions/asset-config.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +72 -72
- package/types/algorand-client-transaction-sender.d.ts +75 -75
- package/types/app-client.d.ts +115 -115
- package/types/app-factory.d.ts +64 -64
- package/types/app-manager.js +5 -5
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +5 -5
- package/types/app-manager.mjs.map +1 -1
- package/types/composer.js +3 -3
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +3 -3
- package/types/composer.mjs.map +1 -1
- package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
- package/packages/algod_client/src/models/application-local-reference.js +0 -23
- package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
- package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
- package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
- package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
- package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
- package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
- package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
- package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
- package/packages/algod_client/src/models/box-reference.d.ts +0 -17
- package/packages/algod_client/src/models/box-reference.js +0 -23
- package/packages/algod_client/src/models/box-reference.js.map +0 -1
- package/packages/algod_client/src/models/box-reference.mjs +0 -23
- package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
package/algod-client/index.d.ts
CHANGED
|
@@ -20,8 +20,6 @@ import { AssetParams } from "../packages/algod_client/src/models/asset-params.js
|
|
|
20
20
|
import { Asset } from "../packages/algod_client/src/models/asset.js";
|
|
21
21
|
import { AssetHolding } from "../packages/algod_client/src/models/asset-holding.js";
|
|
22
22
|
import { Account } from "../packages/algod_client/src/models/account.js";
|
|
23
|
-
import { AssetHoldingReference } from "../packages/algod_client/src/models/asset-holding-reference.js";
|
|
24
|
-
import { ApplicationLocalReference } from "../packages/algod_client/src/models/application-local-reference.js";
|
|
25
23
|
import { AvmValue } from "../packages/algod_client/src/models/avm-value.js";
|
|
26
24
|
import { AvmKeyValue } from "../packages/algod_client/src/models/avm-key-value.js";
|
|
27
25
|
import { EvalDelta } from "../packages/algod_client/src/models/eval-delta.js";
|
|
@@ -33,7 +31,6 @@ import { SimulateTraceConfig } from "../packages/algod_client/src/models/simulat
|
|
|
33
31
|
import { SimulateRequest } from "../packages/algod_client/src/models/simulate-request.js";
|
|
34
32
|
import { Box } from "../packages/algod_client/src/models/box.js";
|
|
35
33
|
import { BoxDescriptor } from "../packages/algod_client/src/models/box-descriptor.js";
|
|
36
|
-
import { BoxReference } from "../packages/algod_client/src/models/box-reference.js";
|
|
37
34
|
import { BuildVersion } from "../packages/algod_client/src/models/build-version.js";
|
|
38
35
|
import { Version } from "../packages/algod_client/src/models/version.js";
|
|
39
36
|
import { PendingTransactionResponse } from "../packages/algod_client/src/models/pending-transaction-response.js";
|
|
@@ -73,4 +70,4 @@ import { DisassembleResponse } from "../packages/algod_client/src/models/disasse
|
|
|
73
70
|
import { SuggestedParams, SuggestedParamsMeta } from "../packages/algod_client/src/models/suggested-params.js";
|
|
74
71
|
import { AlgodApi } from "../packages/algod_client/src/apis/api-service.js";
|
|
75
72
|
import { AlgodClient } from "../packages/algod_client/src/client.js";
|
|
76
|
-
export { Account, AccountApplicationResponse, AccountAssetResponse, AccountParticipation, AccountStateDelta, AlgodApi, AlgodClient, ApiError, ApiRequestOptions, Application, ApplicationInitialStates, ApplicationKvStorage,
|
|
73
|
+
export { Account, AccountApplicationResponse, AccountAssetResponse, AccountParticipation, AccountStateDelta, AlgodApi, AlgodClient, ApiError, ApiRequestOptions, Application, ApplicationInitialStates, ApplicationKvStorage, ApplicationLocalState, ApplicationParams, ApplicationStateOperation, ApplicationStateSchema, ApplyData, Asset, AssetHolding, AssetParams, AvmKeyValue, AvmValue, BaseHttpRequest, Block, BlockAppEvalDelta, BlockEvalDelta, BlockHashResponse, BlockHeader, BlockResponse, BlockStateProofTrackingData, BlockTxidsResponse, Box, BoxDescriptor, BoxesResponse, BuildVersion, ClientConfig, CompileResponse, DisassembleResponse, EvalDelta, EvalDeltaKeyValue, FetchHttpRequest, Genesis, GenesisAllocation, GetBlockTimeStampOffsetResponse, GetSyncRoundResponse, LedgerStateDelta, LedgerStateDeltaForTransactionGroup, LightBlockHeaderProof, NodeStatusResponse, ParticipationUpdates, PendingTransactionResponse, PendingTransactionsResponse, PostTransactionsResponse, ScratchChange, SignedTxnInBlock, SignedTxnWithAD, SimulateInitialStates, SimulateRequest, SimulateRequestTransactionGroup, SimulateResponse, SimulateTraceConfig, SimulateTransactionGroupResult, SimulateTransactionResult, SimulateUnnamedResourcesAccessed, SimulationEvalOverrides, SimulationOpcodeTraceUnit, SimulationTransactionExecTrace, SourceMap, StateDelta, StateProof, StateProofMessage, SuggestedParams, SuggestedParamsMeta, SupplyResponse, TealKeyValue, TealKeyValueStore, TealValue, TransactionGroupLedgerStateDeltasForRoundResponse, TransactionParametersResponse, TransactionProof, Version, decodeJson, decodeMsgpack, encodeJson, encodeMsgpack, inputValueAsString };
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"**"
|
|
7
7
|
],
|
|
8
8
|
"name": "@algorandfoundation/algokit-utils",
|
|
9
|
-
"version": "10.0.0-alpha.
|
|
9
|
+
"version": "10.0.0-alpha.6",
|
|
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
|
-
|
|
9
|
+
numUints: number;
|
|
10
10
|
/**
|
|
11
11
|
* \[nbs\] num of byte slices.
|
|
12
12
|
*/
|
|
13
|
-
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: require_number.numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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,5 @@
|
|
|
1
1
|
import { Address } from "../../../common/src/address.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ApplicationLocalReference } from "./application-local-reference.js";
|
|
4
|
-
import { BoxReference } from "./box-reference.js";
|
|
2
|
+
import { BoxReference, HoldingReference, LocalsReference } from "../../../transact/src/transactions/app-call.js";
|
|
5
3
|
|
|
6
4
|
//#region packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts
|
|
7
5
|
|
|
@@ -32,11 +30,11 @@ type SimulateUnnamedResourcesAccessed = {
|
|
|
32
30
|
/**
|
|
33
31
|
* The unnamed asset holdings that were referenced. The order of this array is arbitrary.
|
|
34
32
|
*/
|
|
35
|
-
assetHoldings?:
|
|
33
|
+
assetHoldings?: HoldingReference[];
|
|
36
34
|
/**
|
|
37
35
|
* The unnamed application local states that were referenced. The order of this array is arbitrary.
|
|
38
36
|
*/
|
|
39
|
-
appLocals?:
|
|
37
|
+
appLocals?: LocalsReference[];
|
|
40
38
|
};
|
|
41
39
|
//#endregion
|
|
42
40
|
export { SimulateUnnamedResourcesAccessed };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
2
2
|
const require_array = require('../../../common/src/codecs/composite/array.js');
|
|
3
3
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
4
|
-
const
|
|
5
|
-
const require_application_local_reference = require('./application-local-reference.js');
|
|
6
|
-
const require_box_reference = require('./box-reference.js');
|
|
4
|
+
const require_reference_types_meta = require('../../../transact/src/transactions/reference-types-meta.js');
|
|
7
5
|
|
|
8
6
|
//#region packages/algod_client/src/models/simulate-unnamed-resources-accessed.ts
|
|
9
7
|
const SimulateUnnamedResourcesAccessedMeta = {
|
|
@@ -32,7 +30,7 @@ const SimulateUnnamedResourcesAccessedMeta = {
|
|
|
32
30
|
name: "boxes",
|
|
33
31
|
wireKey: "boxes",
|
|
34
32
|
optional: true,
|
|
35
|
-
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(
|
|
33
|
+
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(require_reference_types_meta.BoxReferenceMeta))
|
|
36
34
|
},
|
|
37
35
|
{
|
|
38
36
|
name: "extraBoxRefs",
|
|
@@ -44,13 +42,13 @@ const SimulateUnnamedResourcesAccessedMeta = {
|
|
|
44
42
|
name: "assetHoldings",
|
|
45
43
|
wireKey: "asset-holdings",
|
|
46
44
|
optional: true,
|
|
47
|
-
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(
|
|
45
|
+
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(require_reference_types_meta.HoldingReferenceMeta))
|
|
48
46
|
},
|
|
49
47
|
{
|
|
50
48
|
name: "appLocals",
|
|
51
49
|
wireKey: "app-locals",
|
|
52
50
|
optional: true,
|
|
53
|
-
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(
|
|
51
|
+
codec: new require_array.ArrayCodec(new require_object_model.ObjectModelCodec(require_reference_types_meta.LocalsReferenceMeta))
|
|
54
52
|
}
|
|
55
53
|
]
|
|
56
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-unnamed-resources-accessed.js","names":["SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed>","addressArrayCodec","bigIntArrayCodec","ArrayCodec","ObjectModelCodec","BoxReferenceMeta","numberCodec","
|
|
1
|
+
{"version":3,"file":"simulate-unnamed-resources-accessed.js","names":["SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed>","addressArrayCodec","bigIntArrayCodec","ArrayCodec","ObjectModelCodec","BoxReferenceMeta","numberCodec","HoldingReferenceMeta","LocalsReferenceMeta"],"sources":["../../../../../packages/algod_client/src/models/simulate-unnamed-resources-accessed.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, ArrayCodec, bigIntArrayCodec, addressArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { BoxReference, HoldingReference, LocalsReference } from '@algorandfoundation/algokit-transact'\nimport { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta } from '@algorandfoundation/algokit-transact'\n\n/**\n * These are resources that were accessed by this group that would normally have caused failure, but were allowed in simulation. Depending on where this object is in the response, the unnamed resources it contains may or may not qualify for group resource sharing. If this is a field in SimulateTransactionGroupResult, the resources do qualify, but if this is a field in SimulateTransactionResult, they do not qualify. In order to make this group valid for actual submission, resources that qualify for group sharing can be made available by any transaction of the group; otherwise, resources must be placed in the same transaction which accessed them.\n */\nexport type SimulateUnnamedResourcesAccessed = {\n /**\n * The unnamed accounts that were referenced. The order of this array is arbitrary.\n */\n accounts?: Address[]\n\n /**\n * The unnamed assets that were referenced. The order of this array is arbitrary.\n */\n assets?: bigint[]\n\n /**\n * The unnamed applications that were referenced. The order of this array is arbitrary.\n */\n apps?: bigint[]\n\n /**\n * The unnamed boxes that were referenced. The order of this array is arbitrary.\n */\n boxes?: BoxReference[]\n\n /**\n * The number of extra box references used to increase the IO budget. This is in addition to the references defined in the input transaction group and any referenced to unnamed boxes.\n */\n extraBoxRefs?: number\n\n /**\n * The unnamed asset holdings that were referenced. The order of this array is arbitrary.\n */\n assetHoldings?: HoldingReference[]\n\n /**\n * The unnamed application local states that were referenced. The order of this array is arbitrary.\n */\n appLocals?: LocalsReference[]\n}\n\nexport const SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed> = {\n name: 'SimulateUnnamedResourcesAccessed',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'accounts',\n optional: true,\n codec: addressArrayCodec,\n },\n {\n name: 'assets',\n wireKey: 'assets',\n optional: true,\n codec: bigIntArrayCodec,\n },\n {\n name: 'apps',\n wireKey: 'apps',\n optional: true,\n codec: bigIntArrayCodec,\n },\n {\n name: 'boxes',\n wireKey: 'boxes',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(BoxReferenceMeta)),\n },\n {\n name: 'extraBoxRefs',\n wireKey: 'extra-box-refs',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'assetHoldings',\n wireKey: 'asset-holdings',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(HoldingReferenceMeta)),\n },\n {\n name: 'appLocals',\n wireKey: 'app-locals',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LocalsReferenceMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;AA6CA,MAAaA,uCAA8F;CACzG,MAAM;CACN,MAAM;CACN,QAAQ;EACN;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,OAAO,IAAIC,yBAAW,IAAIC,sCAAiBC,8CAAiB,CAAC;GAC9D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIH,yBAAW,IAAIC,sCAAiBG,kDAAqB,CAAC;GAClE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIJ,yBAAW,IAAIC,sCAAiBI,iDAAoB,CAAC;GACjE;EACF;CACF"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
2
2
|
import { ArrayCodec, addressArrayCodec, bigIntArrayCodec } from "../../../common/src/codecs/composite/array.mjs";
|
|
3
3
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { ApplicationLocalReferenceMeta } from "./application-local-reference.mjs";
|
|
6
|
-
import { BoxReferenceMeta } from "./box-reference.mjs";
|
|
4
|
+
import { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta } from "../../../transact/src/transactions/reference-types-meta.mjs";
|
|
7
5
|
|
|
8
6
|
//#region packages/algod_client/src/models/simulate-unnamed-resources-accessed.ts
|
|
9
7
|
const SimulateUnnamedResourcesAccessedMeta = {
|
|
@@ -44,13 +42,13 @@ const SimulateUnnamedResourcesAccessedMeta = {
|
|
|
44
42
|
name: "assetHoldings",
|
|
45
43
|
wireKey: "asset-holdings",
|
|
46
44
|
optional: true,
|
|
47
|
-
codec: new ArrayCodec(new ObjectModelCodec(
|
|
45
|
+
codec: new ArrayCodec(new ObjectModelCodec(HoldingReferenceMeta))
|
|
48
46
|
},
|
|
49
47
|
{
|
|
50
48
|
name: "appLocals",
|
|
51
49
|
wireKey: "app-locals",
|
|
52
50
|
optional: true,
|
|
53
|
-
codec: new ArrayCodec(new ObjectModelCodec(
|
|
51
|
+
codec: new ArrayCodec(new ObjectModelCodec(LocalsReferenceMeta))
|
|
54
52
|
}
|
|
55
53
|
]
|
|
56
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-unnamed-resources-accessed.mjs","names":["SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed>"],"sources":["../../../../../packages/algod_client/src/models/simulate-unnamed-resources-accessed.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, ArrayCodec, bigIntArrayCodec, addressArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type {
|
|
1
|
+
{"version":3,"file":"simulate-unnamed-resources-accessed.mjs","names":["SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed>"],"sources":["../../../../../packages/algod_client/src/models/simulate-unnamed-resources-accessed.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, ArrayCodec, bigIntArrayCodec, addressArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { BoxReference, HoldingReference, LocalsReference } from '@algorandfoundation/algokit-transact'\nimport { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta } from '@algorandfoundation/algokit-transact'\n\n/**\n * These are resources that were accessed by this group that would normally have caused failure, but were allowed in simulation. Depending on where this object is in the response, the unnamed resources it contains may or may not qualify for group resource sharing. If this is a field in SimulateTransactionGroupResult, the resources do qualify, but if this is a field in SimulateTransactionResult, they do not qualify. In order to make this group valid for actual submission, resources that qualify for group sharing can be made available by any transaction of the group; otherwise, resources must be placed in the same transaction which accessed them.\n */\nexport type SimulateUnnamedResourcesAccessed = {\n /**\n * The unnamed accounts that were referenced. The order of this array is arbitrary.\n */\n accounts?: Address[]\n\n /**\n * The unnamed assets that were referenced. The order of this array is arbitrary.\n */\n assets?: bigint[]\n\n /**\n * The unnamed applications that were referenced. The order of this array is arbitrary.\n */\n apps?: bigint[]\n\n /**\n * The unnamed boxes that were referenced. The order of this array is arbitrary.\n */\n boxes?: BoxReference[]\n\n /**\n * The number of extra box references used to increase the IO budget. This is in addition to the references defined in the input transaction group and any referenced to unnamed boxes.\n */\n extraBoxRefs?: number\n\n /**\n * The unnamed asset holdings that were referenced. The order of this array is arbitrary.\n */\n assetHoldings?: HoldingReference[]\n\n /**\n * The unnamed application local states that were referenced. The order of this array is arbitrary.\n */\n appLocals?: LocalsReference[]\n}\n\nexport const SimulateUnnamedResourcesAccessedMeta: ObjectModelMetadata<SimulateUnnamedResourcesAccessed> = {\n name: 'SimulateUnnamedResourcesAccessed',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'accounts',\n optional: true,\n codec: addressArrayCodec,\n },\n {\n name: 'assets',\n wireKey: 'assets',\n optional: true,\n codec: bigIntArrayCodec,\n },\n {\n name: 'apps',\n wireKey: 'apps',\n optional: true,\n codec: bigIntArrayCodec,\n },\n {\n name: 'boxes',\n wireKey: 'boxes',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(BoxReferenceMeta)),\n },\n {\n name: 'extraBoxRefs',\n wireKey: 'extra-box-refs',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'assetHoldings',\n wireKey: 'asset-holdings',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(HoldingReferenceMeta)),\n },\n {\n name: 'appLocals',\n wireKey: 'app-locals',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LocalsReferenceMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;AA6CA,MAAaA,uCAA8F;CACzG,MAAM;CACN,MAAM;CACN,QAAQ;EACN;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,WAAW,IAAI,iBAAiB,iBAAiB,CAAC;GAC9D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,qBAAqB,CAAC;GAClE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,oBAAoB,CAAC;GACjE;EACF;CACF"}
|
|
@@ -6,11 +6,11 @@ type ApplicationStateSchema = {
|
|
|
6
6
|
/**
|
|
7
7
|
* number of uints.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
numUints: number;
|
|
10
10
|
/**
|
|
11
11
|
* number of byte slices.
|
|
12
12
|
*/
|
|
13
|
-
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: require_number.numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: require_number.numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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: "
|
|
8
|
+
name: "numUints",
|
|
9
9
|
wireKey: "num-uint",
|
|
10
10
|
optional: false,
|
|
11
11
|
codec: numberCodec
|
|
12
12
|
}, {
|
|
13
|
-
name: "
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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"}
|
|
@@ -87,9 +87,9 @@ declare function appendSignRawMultisigSignature(multisigTxnBlob: Uint8Array, {
|
|
|
87
87
|
declare function addressFromMultisigPreImg({
|
|
88
88
|
version,
|
|
89
89
|
threshold,
|
|
90
|
-
|
|
90
|
+
publicKeys
|
|
91
91
|
}: Omit<MultisigMetadata, 'addrs'> & {
|
|
92
|
-
|
|
92
|
+
publicKeys: Uint8Array[];
|
|
93
93
|
}): Address;
|
|
94
94
|
/**
|
|
95
95
|
* Takes multisig parameters and returns a human readable Algorand address.
|