@algorandfoundation/algokit-utils 10.0.0-alpha.12 → 10.0.0-alpha.13
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 +2 -3
- package/algod-client/index.js +2 -5
- package/algod-client/index.mjs +2 -2
- package/indexer-client/index.d.ts +1 -2
- package/indexer-client/index.js +0 -5
- package/indexer-client/index.mjs +1 -2
- package/kmd-client/index.d.ts +1 -2
- package/kmd-client/index.js +0 -5
- package/kmd-client/index.mjs +1 -2
- package/package.json +1 -1
- package/packages/algod_client/src/apis/api-service.js +2 -2
- package/packages/algod_client/src/apis/api-service.mjs +2 -2
- package/packages/algod_client/src/core/model-runtime.js +2 -2
- package/packages/algod_client/src/core/model-runtime.js.map +1 -1
- package/packages/algod_client/src/core/model-runtime.mjs +2 -2
- package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/algod_client/src/models/simulate-request.js +1 -1
- package/packages/algod_client/src/models/simulate-request.mjs +1 -1
- package/packages/algod_client/src/models/simulate-response.d.ts +2 -1
- package/packages/algod_client/src/models/simulate-response.js +6 -1
- package/packages/algod_client/src/models/simulate-response.js.map +1 -1
- package/packages/algod_client/src/models/simulate-response.mjs +6 -2
- package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
- package/packages/indexer_client/src/core/model-runtime.js +0 -15
- package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
- package/packages/indexer_client/src/core/model-runtime.mjs +1 -13
- package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/kmd_client/src/core/model-runtime.js +2 -12
- package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
- package/packages/kmd_client/src/core/model-runtime.mjs +3 -11
- package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
- package/transactions/app-call.d.ts +1 -1
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs.map +1 -1
- package/transactions/method-call.d.ts +1 -1
- package/transactions/method-call.js.map +1 -1
- package/transactions/method-call.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +42 -42
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +43 -43
- package/types/app-client.d.ts +74 -74
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +1 -1
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +25 -25
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs.map +1 -1
- package/types/app.d.ts +1 -1
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/async-event-emitter.d.ts +3 -6
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.d.ts +1 -1
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +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/types/debugging.d.ts +13 -9
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +0 -1
- package/types/lifecycle-events.js.map +1 -1
- package/types/lifecycle-events.mjs.map +1 -1
- package/types/transaction.d.ts +1 -1
- package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
- package/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
- package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
- package/types/expand.d.ts +0 -9
- package/types/expand.js +0 -0
- package/types/expand.mjs +0 -0
package/algod-client/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ClientConfig } from "../packages/algod_client/src/core/client-config.js
|
|
|
2
2
|
import { ApiRequestOptions, BaseHttpRequest, inputValueAsString } from "../packages/algod_client/src/core/base-http-request.js";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/algod_client/src/core/fetch-http-request.js";
|
|
4
4
|
import { ApiError } from "../packages/algod_client/src/core/api-error.js";
|
|
5
|
-
import { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack } from "../packages/algod_client/src/core/model-runtime.js";
|
|
6
5
|
import { GenesisAllocation } from "../packages/algod_client/src/models/genesis-allocation.js";
|
|
7
6
|
import { Genesis } from "../packages/algod_client/src/models/genesis.js";
|
|
8
7
|
import { ApplyData, Block, BlockAppEvalDelta, BlockEvalDelta, BlockHeader, BlockStateProofTrackingData, ParticipationUpdates, RewardState, SignedTxnInBlock, SignedTxnWithAD, TxnCommitments, UpgradeState, UpgradeVote } from "../packages/algod_client/src/models/block.js";
|
|
@@ -60,7 +59,7 @@ import { BlockHashResponse } from "../packages/algod_client/src/models/block-has
|
|
|
60
59
|
import { NodeStatusResponse } from "../packages/algod_client/src/models/node-status-response.js";
|
|
61
60
|
import { PendingTransactionsResponse } from "../packages/algod_client/src/models/pending-transactions-response.js";
|
|
62
61
|
import { PostTransactionsResponse } from "../packages/algod_client/src/models/post-transactions-response.js";
|
|
63
|
-
import { SimulateResponse } from "../packages/algod_client/src/models/simulate-response.js";
|
|
62
|
+
import { SimulateResponse, encodeSimulateResponseToJson } from "../packages/algod_client/src/models/simulate-response.js";
|
|
64
63
|
import { SupplyResponse } from "../packages/algod_client/src/models/supply-response.js";
|
|
65
64
|
import { TransactionParametersResponse } from "../packages/algod_client/src/models/transaction-parameters-response.js";
|
|
66
65
|
import { BoxesResponse } from "../packages/algod_client/src/models/boxes-response.js";
|
|
@@ -70,4 +69,4 @@ import { DisassembleResponse } from "../packages/algod_client/src/models/disasse
|
|
|
70
69
|
import { SuggestedParams, SuggestedParamsMeta } from "../packages/algod_client/src/models/suggested-params.js";
|
|
71
70
|
import { AlgodApi } from "../packages/algod_client/src/apis/api-service.js";
|
|
72
71
|
import { AlgodClient } from "../packages/algod_client/src/client.js";
|
|
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, RewardState, 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, TxnCommitments, UpgradeState, UpgradeVote, Version,
|
|
72
|
+
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, RewardState, 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, TxnCommitments, UpgradeState, UpgradeVote, Version, encodeSimulateResponseToJson, inputValueAsString };
|
package/algod-client/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_base_http_request = require('../packages/algod_client/src/core/base-http-request.js');
|
|
2
2
|
const require_api_error = require('../packages/algod_client/src/core/api-error.js');
|
|
3
3
|
const require_fetch_http_request = require('../packages/algod_client/src/core/fetch-http-request.js');
|
|
4
|
-
const
|
|
4
|
+
const require_simulate_response = require('../packages/algod_client/src/models/simulate-response.js');
|
|
5
5
|
const require_api_service = require('../packages/algod_client/src/apis/api-service.js');
|
|
6
6
|
const require_client = require('../packages/algod_client/src/client.js');
|
|
7
7
|
|
|
@@ -10,8 +10,5 @@ exports.AlgodClient = require_client.AlgodClient;
|
|
|
10
10
|
exports.ApiError = require_api_error.ApiError;
|
|
11
11
|
exports.BaseHttpRequest = require_base_http_request.BaseHttpRequest;
|
|
12
12
|
exports.FetchHttpRequest = require_fetch_http_request.FetchHttpRequest;
|
|
13
|
-
exports.
|
|
14
|
-
exports.decodeMsgpack = require_model_runtime.decodeMsgpack;
|
|
15
|
-
exports.encodeJson = require_model_runtime.encodeJson;
|
|
16
|
-
exports.encodeMsgpack = require_model_runtime.encodeMsgpack;
|
|
13
|
+
exports.encodeSimulateResponseToJson = require_simulate_response.encodeSimulateResponseToJson;
|
|
17
14
|
exports.inputValueAsString = require_base_http_request.inputValueAsString;
|
package/algod-client/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseHttpRequest, inputValueAsString } from "../packages/algod_client/src/core/base-http-request.mjs";
|
|
2
2
|
import { ApiError } from "../packages/algod_client/src/core/api-error.mjs";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/algod_client/src/core/fetch-http-request.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { encodeSimulateResponseToJson } from "../packages/algod_client/src/models/simulate-response.mjs";
|
|
5
5
|
import { AlgodApi } from "../packages/algod_client/src/apis/api-service.mjs";
|
|
6
6
|
import { AlgodClient } from "../packages/algod_client/src/client.mjs";
|
|
7
7
|
|
|
8
|
-
export { AlgodApi, AlgodClient, ApiError, BaseHttpRequest, FetchHttpRequest,
|
|
8
|
+
export { AlgodApi, AlgodClient, ApiError, BaseHttpRequest, FetchHttpRequest, encodeSimulateResponseToJson, inputValueAsString };
|
|
@@ -2,7 +2,6 @@ import { ClientConfig } from "../packages/indexer_client/src/core/client-config.
|
|
|
2
2
|
import { ApiRequestOptions, BaseHttpRequest, inputValueAsString } from "../packages/indexer_client/src/core/base-http-request.js";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/indexer_client/src/core/fetch-http-request.js";
|
|
4
4
|
import { ApiError } from "../packages/indexer_client/src/core/api-error.js";
|
|
5
|
-
import { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack } from "../packages/indexer_client/src/core/model-runtime.js";
|
|
6
5
|
import { AccountParticipation } from "../packages/indexer_client/src/models/account-participation.js";
|
|
7
6
|
import { ApplicationStateSchema } from "../packages/indexer_client/src/models/application-state-schema.js";
|
|
8
7
|
import { TealValue } from "../packages/indexer_client/src/models/teal-value.js";
|
|
@@ -75,4 +74,4 @@ import { TransactionResponse } from "../packages/indexer_client/src/models/trans
|
|
|
75
74
|
import { TransactionsResponse } from "../packages/indexer_client/src/models/transactions-response.js";
|
|
76
75
|
import { IndexerApi } from "../packages/indexer_client/src/apis/api-service.js";
|
|
77
76
|
import { IndexerClient } from "../packages/indexer_client/src/client.js";
|
|
78
|
-
export { Account, AccountParticipation, AccountResponse, AccountStateDelta, AccountsResponse, ApiError, ApiRequestOptions, Application, ApplicationLocalState, ApplicationLocalStatesResponse, ApplicationLogData, ApplicationLogsResponse, ApplicationParams, ApplicationResponse, ApplicationStateSchema, ApplicationsResponse, Asset, AssetBalancesResponse, AssetHolding, AssetHoldingsResponse, AssetParams, AssetResponse, AssetsResponse, BaseHttpRequest, Block, BlockHeadersResponse, BlockRewards, BlockUpgradeState, BlockUpgradeVote, Box, BoxDescriptor, BoxReference, BoxesResponse, ClientConfig, EvalDelta, EvalDeltaKeyValue, FetchHttpRequest, HashFactory, HbProofFields, HealthCheck, HoldingRef, IndexerApi, IndexerClient, IndexerStateProofMessage, LocalsRef, MerkleArrayProof, MiniAssetHolding, OnCompletion, ParticipationUpdates, ResourceRef, StateDelta, StateProofFields, StateProofParticipant, StateProofReveal, StateProofSigSlot, StateProofSignature, StateProofTracking, StateProofVerifier, StateSchema, TealKeyValue, TealKeyValueStore, TealValue, Transaction, TransactionApplication, TransactionAssetConfig, TransactionAssetFreeze, TransactionAssetTransfer, TransactionHeartbeat, TransactionKeyreg, TransactionPayment, TransactionResponse, TransactionSignature, TransactionSignatureLogicsig, TransactionSignatureMultisig, TransactionSignatureMultisigSubsignature, TransactionStateProof, TransactionsResponse,
|
|
77
|
+
export { Account, AccountParticipation, AccountResponse, AccountStateDelta, AccountsResponse, ApiError, ApiRequestOptions, Application, ApplicationLocalState, ApplicationLocalStatesResponse, ApplicationLogData, ApplicationLogsResponse, ApplicationParams, ApplicationResponse, ApplicationStateSchema, ApplicationsResponse, Asset, AssetBalancesResponse, AssetHolding, AssetHoldingsResponse, AssetParams, AssetResponse, AssetsResponse, BaseHttpRequest, Block, BlockHeadersResponse, BlockRewards, BlockUpgradeState, BlockUpgradeVote, Box, BoxDescriptor, BoxReference, BoxesResponse, ClientConfig, EvalDelta, EvalDeltaKeyValue, FetchHttpRequest, HashFactory, HbProofFields, HealthCheck, HoldingRef, IndexerApi, IndexerClient, IndexerStateProofMessage, LocalsRef, MerkleArrayProof, MiniAssetHolding, OnCompletion, ParticipationUpdates, ResourceRef, StateDelta, StateProofFields, StateProofParticipant, StateProofReveal, StateProofSigSlot, StateProofSignature, StateProofTracking, StateProofVerifier, StateSchema, TealKeyValue, TealKeyValueStore, TealValue, Transaction, TransactionApplication, TransactionAssetConfig, TransactionAssetFreeze, TransactionAssetTransfer, TransactionHeartbeat, TransactionKeyreg, TransactionPayment, TransactionResponse, TransactionSignature, TransactionSignatureLogicsig, TransactionSignatureMultisig, TransactionSignatureMultisigSubsignature, TransactionStateProof, TransactionsResponse, inputValueAsString };
|
package/indexer-client/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const require_base_http_request = require('../packages/indexer_client/src/core/base-http-request.js');
|
|
2
2
|
const require_api_error = require('../packages/indexer_client/src/core/api-error.js');
|
|
3
3
|
const require_fetch_http_request = require('../packages/indexer_client/src/core/fetch-http-request.js');
|
|
4
|
-
const require_model_runtime = require('../packages/indexer_client/src/core/model-runtime.js');
|
|
5
4
|
const require_api_service = require('../packages/indexer_client/src/apis/api-service.js');
|
|
6
5
|
const require_client = require('../packages/indexer_client/src/client.js');
|
|
7
6
|
|
|
@@ -10,8 +9,4 @@ exports.BaseHttpRequest = require_base_http_request.BaseHttpRequest;
|
|
|
10
9
|
exports.FetchHttpRequest = require_fetch_http_request.FetchHttpRequest;
|
|
11
10
|
exports.IndexerApi = require_api_service.IndexerApi;
|
|
12
11
|
exports.IndexerClient = require_client.IndexerClient;
|
|
13
|
-
exports.decodeJson = require_model_runtime.decodeJson;
|
|
14
|
-
exports.decodeMsgpack = require_model_runtime.decodeMsgpack;
|
|
15
|
-
exports.encodeJson = require_model_runtime.encodeJson;
|
|
16
|
-
exports.encodeMsgpack = require_model_runtime.encodeMsgpack;
|
|
17
12
|
exports.inputValueAsString = require_base_http_request.inputValueAsString;
|
package/indexer-client/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseHttpRequest, inputValueAsString } from "../packages/indexer_client/src/core/base-http-request.mjs";
|
|
2
2
|
import { ApiError } from "../packages/indexer_client/src/core/api-error.mjs";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/indexer_client/src/core/fetch-http-request.mjs";
|
|
4
|
-
import { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack } from "../packages/indexer_client/src/core/model-runtime.mjs";
|
|
5
4
|
import { IndexerApi } from "../packages/indexer_client/src/apis/api-service.mjs";
|
|
6
5
|
import { IndexerClient } from "../packages/indexer_client/src/client.mjs";
|
|
7
6
|
|
|
8
|
-
export { ApiError, BaseHttpRequest, FetchHttpRequest, IndexerApi, IndexerClient,
|
|
7
|
+
export { ApiError, BaseHttpRequest, FetchHttpRequest, IndexerApi, IndexerClient, inputValueAsString };
|
package/kmd-client/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ClientConfig } from "../packages/kmd_client/src/core/client-config.js";
|
|
|
2
2
|
import { ApiRequestOptions, BaseHttpRequest, inputValueAsString } from "../packages/kmd_client/src/core/base-http-request.js";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/kmd_client/src/core/fetch-http-request.js";
|
|
4
4
|
import { ApiError } from "../packages/kmd_client/src/core/api-error.js";
|
|
5
|
-
import { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack } from "../packages/kmd_client/src/core/model-runtime.js";
|
|
6
5
|
import { TxType } from "../packages/kmd_client/src/models/tx-type.js";
|
|
7
6
|
import { Wallet } from "../packages/kmd_client/src/models/wallet.js";
|
|
8
7
|
import { ListWalletsResponse } from "../packages/kmd_client/src/models/list-wallets-response.js";
|
|
@@ -51,4 +50,4 @@ import { SignMultisigRequest } from "../packages/kmd_client/src/models/sign-mult
|
|
|
51
50
|
import { SignTransactionRequest } from "../packages/kmd_client/src/models/sign-transaction-request.js";
|
|
52
51
|
import { KmdApi } from "../packages/kmd_client/src/apis/api-service.js";
|
|
53
52
|
import { KmdClient } from "../packages/kmd_client/src/client.js";
|
|
54
|
-
export { ApiError, ApiRequestOptions, BaseHttpRequest, ClientConfig, CreateWalletRequest, CreateWalletResponse, DeleteKeyRequest, DeleteMultisigRequest, ExportKeyRequest, ExportKeyResponse, ExportMasterKeyRequest, ExportMasterKeyResponse, ExportMultisigRequest, ExportMultisigResponse, FetchHttpRequest, GenerateKeyRequest, GenerateKeyResponse, ImportKeyRequest, ImportKeyResponse, ImportMultisigRequest, ImportMultisigResponse, InitWalletHandleTokenRequest, InitWalletHandleTokenResponse, KmdApi, KmdClient, ListKeysRequest, ListKeysResponse, ListMultisigRequest, ListMultisigResponse, ListWalletsResponse, MultisigSig, MultisigSubsig, ReleaseWalletHandleTokenRequest, RenameWalletRequest, RenameWalletResponse, RenewWalletHandleTokenRequest, RenewWalletHandleTokenResponse, SignMultisigRequest, SignMultisigResponse, SignMultisigTxnRequest, SignProgramMultisigRequest, SignProgramMultisigResponse, SignProgramRequest, SignProgramResponse, SignTransactionRequest, SignTransactionResponse, SignTxnRequest, TxType, VersionsResponse, Wallet, WalletHandle, WalletInfoRequest, WalletInfoResponse,
|
|
53
|
+
export { ApiError, ApiRequestOptions, BaseHttpRequest, ClientConfig, CreateWalletRequest, CreateWalletResponse, DeleteKeyRequest, DeleteMultisigRequest, ExportKeyRequest, ExportKeyResponse, ExportMasterKeyRequest, ExportMasterKeyResponse, ExportMultisigRequest, ExportMultisigResponse, FetchHttpRequest, GenerateKeyRequest, GenerateKeyResponse, ImportKeyRequest, ImportKeyResponse, ImportMultisigRequest, ImportMultisigResponse, InitWalletHandleTokenRequest, InitWalletHandleTokenResponse, KmdApi, KmdClient, ListKeysRequest, ListKeysResponse, ListMultisigRequest, ListMultisigResponse, ListWalletsResponse, MultisigSig, MultisigSubsig, ReleaseWalletHandleTokenRequest, RenameWalletRequest, RenameWalletResponse, RenewWalletHandleTokenRequest, RenewWalletHandleTokenResponse, SignMultisigRequest, SignMultisigResponse, SignMultisigTxnRequest, SignProgramMultisigRequest, SignProgramMultisigResponse, SignProgramRequest, SignProgramResponse, SignTransactionRequest, SignTransactionResponse, SignTxnRequest, TxType, VersionsResponse, Wallet, WalletHandle, WalletInfoRequest, WalletInfoResponse, inputValueAsString };
|
package/kmd-client/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const require_base_http_request = require('../packages/kmd_client/src/core/base-http-request.js');
|
|
2
2
|
const require_api_error = require('../packages/kmd_client/src/core/api-error.js');
|
|
3
3
|
const require_fetch_http_request = require('../packages/kmd_client/src/core/fetch-http-request.js');
|
|
4
|
-
const require_model_runtime = require('../packages/kmd_client/src/core/model-runtime.js');
|
|
5
4
|
const require_api_service = require('../packages/kmd_client/src/apis/api-service.js');
|
|
6
5
|
const require_client = require('../packages/kmd_client/src/client.js');
|
|
7
6
|
|
|
@@ -10,8 +9,4 @@ exports.BaseHttpRequest = require_base_http_request.BaseHttpRequest;
|
|
|
10
9
|
exports.FetchHttpRequest = require_fetch_http_request.FetchHttpRequest;
|
|
11
10
|
exports.KmdApi = require_api_service.KmdApi;
|
|
12
11
|
exports.KmdClient = require_client.KmdClient;
|
|
13
|
-
exports.decodeJson = require_model_runtime.decodeJson;
|
|
14
|
-
exports.decodeMsgpack = require_model_runtime.decodeMsgpack;
|
|
15
|
-
exports.encodeJson = require_model_runtime.encodeJson;
|
|
16
|
-
exports.encodeMsgpack = require_model_runtime.encodeMsgpack;
|
|
17
12
|
exports.inputValueAsString = require_base_http_request.inputValueAsString;
|
package/kmd-client/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseHttpRequest, inputValueAsString } from "../packages/kmd_client/src/core/base-http-request.mjs";
|
|
2
2
|
import { ApiError } from "../packages/kmd_client/src/core/api-error.mjs";
|
|
3
3
|
import { FetchHttpRequest } from "../packages/kmd_client/src/core/fetch-http-request.mjs";
|
|
4
|
-
import { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack } from "../packages/kmd_client/src/core/model-runtime.mjs";
|
|
5
4
|
import { KmdApi } from "../packages/kmd_client/src/apis/api-service.mjs";
|
|
6
5
|
import { KmdClient } from "../packages/kmd_client/src/client.mjs";
|
|
7
6
|
|
|
8
|
-
export { ApiError, BaseHttpRequest, FetchHttpRequest, KmdApi, KmdClient,
|
|
7
|
+
export { ApiError, BaseHttpRequest, FetchHttpRequest, KmdApi, KmdClient, 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.13",
|
|
10
10
|
"private": false,
|
|
11
11
|
"description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
|
|
12
12
|
"author": "Algorand Foundation",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const require_array = require('../../../common/src/array.js');
|
|
2
2
|
const require_signed_transaction = require('../../../transact/src/transactions/signed-transaction.js');
|
|
3
|
+
const require_pending_transaction_response = require('../models/pending-transaction-response.js');
|
|
3
4
|
const require_model_runtime = require('../core/model-runtime.js');
|
|
5
|
+
const require_simulate_response = require('../models/simulate-response.js');
|
|
4
6
|
const require_genesis = require('../models/genesis.js');
|
|
5
7
|
const require_ledger_state_delta = require('../models/ledger-state-delta.js');
|
|
6
8
|
const require_application = require('../models/application.js');
|
|
@@ -9,7 +11,6 @@ const require_account = require('../models/account.js');
|
|
|
9
11
|
const require_simulate_request = require('../models/simulate-request.js');
|
|
10
12
|
const require_box = require('../models/box.js');
|
|
11
13
|
const require_version = require('../models/version.js');
|
|
12
|
-
const require_pending_transaction_response = require('../models/pending-transaction-response.js');
|
|
13
14
|
const require_state_proof = require('../models/state-proof.js');
|
|
14
15
|
const require_light_block_header_proof = require('../models/light-block-header-proof.js');
|
|
15
16
|
const require_transaction_proof = require('../models/transaction-proof.js');
|
|
@@ -24,7 +25,6 @@ const require_block_hash_response = require('../models/block-hash-response.js');
|
|
|
24
25
|
const require_node_status_response = require('../models/node-status-response.js');
|
|
25
26
|
const require_pending_transactions_response = require('../models/pending-transactions-response.js');
|
|
26
27
|
const require_post_transactions_response = require('../models/post-transactions-response.js');
|
|
27
|
-
const require_simulate_response = require('../models/simulate-response.js');
|
|
28
28
|
const require_supply_response = require('../models/supply-response.js');
|
|
29
29
|
const require_transaction_parameters_response = require('../models/transaction-parameters-response.js');
|
|
30
30
|
const require_boxes_response = require('../models/boxes-response.js');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { concatArrays } from "../../../common/src/array.mjs";
|
|
2
2
|
import { decodeSignedTransaction } from "../../../transact/src/transactions/signed-transaction.mjs";
|
|
3
|
+
import { PendingTransactionResponseMeta } from "../models/pending-transaction-response.mjs";
|
|
3
4
|
import { decodeJson, decodeMsgpack, encodeMsgpack } from "../core/model-runtime.mjs";
|
|
5
|
+
import { SimulateResponseMeta } from "../models/simulate-response.mjs";
|
|
4
6
|
import { GenesisMeta } from "../models/genesis.mjs";
|
|
5
7
|
import { LedgerStateDeltaMeta } from "../models/ledger-state-delta.mjs";
|
|
6
8
|
import { ApplicationMeta } from "../models/application.mjs";
|
|
@@ -9,7 +11,6 @@ import { AccountMeta } from "../models/account.mjs";
|
|
|
9
11
|
import { SimulateRequestMeta } from "../models/simulate-request.mjs";
|
|
10
12
|
import { BoxMeta } from "../models/box.mjs";
|
|
11
13
|
import { VersionMeta } from "../models/version.mjs";
|
|
12
|
-
import { PendingTransactionResponseMeta } from "../models/pending-transaction-response.mjs";
|
|
13
14
|
import { StateProofMeta } from "../models/state-proof.mjs";
|
|
14
15
|
import { LightBlockHeaderProofMeta } from "../models/light-block-header-proof.mjs";
|
|
15
16
|
import { TransactionProofMeta } from "../models/transaction-proof.mjs";
|
|
@@ -24,7 +25,6 @@ import { BlockHashResponseMeta } from "../models/block-hash-response.mjs";
|
|
|
24
25
|
import { NodeStatusResponseMeta } from "../models/node-status-response.mjs";
|
|
25
26
|
import { PendingTransactionsResponseMeta } from "../models/pending-transactions-response.mjs";
|
|
26
27
|
import { PostTransactionsResponseMeta } from "../models/post-transactions-response.mjs";
|
|
27
|
-
import { SimulateResponseMeta } from "../models/simulate-response.mjs";
|
|
28
28
|
import { SupplyResponseMeta } from "../models/supply-response.mjs";
|
|
29
29
|
import { TransactionParametersResponseMeta } from "../models/transaction-parameters-response.mjs";
|
|
30
30
|
import { BoxesResponseMeta } from "../models/boxes-response.mjs";
|
|
@@ -3,8 +3,8 @@ const require_json = require('../../../common/src/json.js');
|
|
|
3
3
|
const require_msgpack = require('../../../common/src/msgpack.js');
|
|
4
4
|
|
|
5
5
|
//#region packages/algod_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"));
|
|
6
|
+
function encodeJson(value, meta, space) {
|
|
7
|
+
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"), void 0, space);
|
|
8
8
|
}
|
|
9
9
|
function encodeMsgpack(value, meta) {
|
|
10
10
|
return require_msgpack.encodeMsgpack(new require_object_model.ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec","rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T
|
|
1
|
+
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec","rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;;AAQA,SAAgB,WAA8C,OAAU,MAA8B,OAAiC;AAErI,QAAOA,2BADM,IAAIC,sCAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,EAClC,QAAW,MAAM;;AAE9C,SAAgB,cAAiD,OAAU,MAA0C;AAEnH,QAAOC,8BADM,IAAID,sCAAiB,KAAK,CAAC,OAAO,OAAO,UAAU,CACnC;;AAE/B,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAIA,sCAAoB,KAAK,CAAC,OAAO,OAAO,OAAO;;AAE5D,SAAgB,cAAiD,OAAmB,MAAiC;CACnH,MAAM,OAAOE,8BAAiB,MAAM;AACpC,QAAO,IAAIF,sCAAoB,KAAK,CAAC,OAAO,MAAM,UAAU"}
|
|
@@ -3,8 +3,8 @@ import { stringifyJson } from "../../../common/src/json.mjs";
|
|
|
3
3
|
import { decodeMsgpack as decodeMsgpack$1, encodeMsgpack as encodeMsgpack$1 } from "../../../common/src/msgpack.mjs";
|
|
4
4
|
|
|
5
5
|
//#region packages/algod_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"));
|
|
6
|
+
function encodeJson(value, meta, space) {
|
|
7
|
+
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"), void 0, space);
|
|
8
8
|
}
|
|
9
9
|
function encodeMsgpack(value, meta) {
|
|
10
10
|
return encodeMsgpack$1(new ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.mjs","names":["rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T
|
|
1
|
+
{"version":3,"file":"model-runtime.mjs","names":["rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;;AAQA,SAAgB,WAA8C,OAAU,MAA8B,OAAiC;AAErI,QAAO,cADM,IAAI,iBAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,EAClC,QAAW,MAAM;;AAE9C,SAAgB,cAAiD,OAAU,MAA0C;AAEnH,QAAOA,gBADM,IAAI,iBAAiB,KAAK,CAAC,OAAO,OAAO,UAAU,CACnC;;AAE/B,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,OAAO,OAAO;;AAE5D,SAAgB,cAAiD,OAAmB,MAAiC;CACnH,MAAM,OAAOC,gBAAiB,MAAM;AACpC,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,MAAM,UAAU"}
|
|
@@ -3,8 +3,8 @@ const require_boolean = require('../../../common/src/codecs/primitives/boolean.j
|
|
|
3
3
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
4
4
|
const require_array = require('../../../common/src/codecs/composite/array.js');
|
|
5
5
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
6
|
-
const require_simulate_request_transaction_group = require('./simulate-request-transaction-group.js');
|
|
7
6
|
const require_simulate_trace_config = require('./simulate-trace-config.js');
|
|
7
|
+
const require_simulate_request_transaction_group = require('./simulate-request-transaction-group.js');
|
|
8
8
|
|
|
9
9
|
//#region packages/algod_client/src/models/simulate-request.ts
|
|
10
10
|
const SimulateRequestMeta = {
|
|
@@ -3,8 +3,8 @@ import { booleanCodec } from "../../../common/src/codecs/primitives/boolean.mjs"
|
|
|
3
3
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
4
4
|
import { ArrayCodec } from "../../../common/src/codecs/composite/array.mjs";
|
|
5
5
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
6
|
-
import { SimulateRequestTransactionGroupMeta } from "./simulate-request-transaction-group.mjs";
|
|
7
6
|
import { SimulateTraceConfigMeta } from "./simulate-trace-config.mjs";
|
|
7
|
+
import { SimulateRequestTransactionGroupMeta } from "./simulate-request-transaction-group.mjs";
|
|
8
8
|
|
|
9
9
|
//#region packages/algod_client/src/models/simulate-request.ts
|
|
10
10
|
const SimulateRequestMeta = {
|
|
@@ -21,6 +21,7 @@ type SimulateResponse = {
|
|
|
21
21
|
execTraceConfig?: SimulateTraceConfig;
|
|
22
22
|
initialStates?: SimulateInitialStates;
|
|
23
23
|
};
|
|
24
|
+
declare function encodeSimulateResponseToJson(simulateResponse: SimulateResponse): string;
|
|
24
25
|
//#endregion
|
|
25
|
-
export { SimulateResponse };
|
|
26
|
+
export { SimulateResponse, encodeSimulateResponseToJson };
|
|
26
27
|
//# sourceMappingURL=simulate-response.d.ts.map
|
|
@@ -2,10 +2,11 @@ const require_bigint = require('../../../common/src/codecs/primitives/bigint.js'
|
|
|
2
2
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
3
3
|
const require_array = require('../../../common/src/codecs/composite/array.js');
|
|
4
4
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
5
|
+
const require_simulate_initial_states = require('./simulate-initial-states.js');
|
|
5
6
|
const require_simulate_trace_config = require('./simulate-trace-config.js');
|
|
6
7
|
const require_simulate_transaction_group_result = require('./simulate-transaction-group-result.js');
|
|
7
8
|
const require_simulation_eval_overrides = require('./simulation-eval-overrides.js');
|
|
8
|
-
const
|
|
9
|
+
const require_model_runtime = require('../core/model-runtime.js');
|
|
9
10
|
|
|
10
11
|
//#region packages/algod_client/src/models/simulate-response.ts
|
|
11
12
|
const SimulateResponseMeta = {
|
|
@@ -50,7 +51,11 @@ const SimulateResponseMeta = {
|
|
|
50
51
|
}
|
|
51
52
|
]
|
|
52
53
|
};
|
|
54
|
+
function encodeSimulateResponseToJson(simulateResponse) {
|
|
55
|
+
return require_model_runtime.encodeJson(simulateResponse, SimulateResponseMeta, 2);
|
|
56
|
+
}
|
|
53
57
|
|
|
54
58
|
//#endregion
|
|
55
59
|
exports.SimulateResponseMeta = SimulateResponseMeta;
|
|
60
|
+
exports.encodeSimulateResponseToJson = encodeSimulateResponseToJson;
|
|
56
61
|
//# sourceMappingURL=simulate-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-response.js","names":["SimulateResponseMeta: ObjectModelMetadata<SimulateResponse>","numberCodec","bigIntCodec","ArrayCodec","ObjectModelCodec","SimulateTransactionGroupResultMeta","SimulationEvalOverridesMeta","SimulateTraceConfigMeta","SimulateInitialStatesMeta"],"sources":["../../../../../packages/algod_client/src/models/simulate-response.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, ArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { SimulateInitialStates } from './simulate-initial-states'\nimport { SimulateInitialStatesMeta } from './simulate-initial-states'\nimport type { SimulateTraceConfig } from './simulate-trace-config'\nimport { SimulateTraceConfigMeta } from './simulate-trace-config'\nimport type { SimulateTransactionGroupResult } from './simulate-transaction-group-result'\nimport { SimulateTransactionGroupResultMeta } from './simulate-transaction-group-result'\nimport type { SimulationEvalOverrides } from './simulation-eval-overrides'\nimport { SimulationEvalOverridesMeta } from './simulation-eval-overrides'\n\nexport type SimulateResponse = {\n /**\n * The version of this response object.\n */\n version: number\n\n /**\n * The round immediately preceding this simulation. State changes through this round were used to run this simulation.\n */\n lastRound: bigint\n\n /**\n * A result object for each transaction group that was simulated.\n */\n txnGroups: SimulateTransactionGroupResult[]\n evalOverrides?: SimulationEvalOverrides\n execTraceConfig?: SimulateTraceConfig\n initialStates?: SimulateInitialStates\n}\n\nexport const SimulateResponseMeta: ObjectModelMetadata<SimulateResponse> = {\n name: 'SimulateResponse',\n kind: 'object',\n fields: [\n {\n name: 'version',\n wireKey: 'version',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lastRound',\n wireKey: 'last-round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'txnGroups',\n wireKey: 'txn-groups',\n optional: false,\n codec: new ArrayCodec(new ObjectModelCodec(SimulateTransactionGroupResultMeta)),\n },\n {\n name: 'evalOverrides',\n wireKey: 'eval-overrides',\n optional: true,\n codec: new ObjectModelCodec(SimulationEvalOverridesMeta),\n },\n {\n name: 'execTraceConfig',\n wireKey: 'exec-trace-config',\n optional: true,\n codec: new ObjectModelCodec(SimulateTraceConfigMeta),\n },\n {\n name: 'initialStates',\n wireKey: 'initial-states',\n optional: true,\n codec: new ObjectModelCodec(SimulateInitialStatesMeta),\n },\n ],\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"simulate-response.js","names":["SimulateResponseMeta: ObjectModelMetadata<SimulateResponse>","numberCodec","bigIntCodec","ArrayCodec","ObjectModelCodec","SimulateTransactionGroupResultMeta","SimulationEvalOverridesMeta","SimulateTraceConfigMeta","SimulateInitialStatesMeta","encodeJson"],"sources":["../../../../../packages/algod_client/src/models/simulate-response.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, ArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { SimulateInitialStates } from './simulate-initial-states'\nimport { SimulateInitialStatesMeta } from './simulate-initial-states'\nimport type { SimulateTraceConfig } from './simulate-trace-config'\nimport { SimulateTraceConfigMeta } from './simulate-trace-config'\nimport type { SimulateTransactionGroupResult } from './simulate-transaction-group-result'\nimport { SimulateTransactionGroupResultMeta } from './simulate-transaction-group-result'\nimport type { SimulationEvalOverrides } from './simulation-eval-overrides'\nimport { SimulationEvalOverridesMeta } from './simulation-eval-overrides'\nimport { encodeJson } from '../core/model-runtime'\n\nexport type SimulateResponse = {\n /**\n * The version of this response object.\n */\n version: number\n\n /**\n * The round immediately preceding this simulation. State changes through this round were used to run this simulation.\n */\n lastRound: bigint\n\n /**\n * A result object for each transaction group that was simulated.\n */\n txnGroups: SimulateTransactionGroupResult[]\n evalOverrides?: SimulationEvalOverrides\n execTraceConfig?: SimulateTraceConfig\n initialStates?: SimulateInitialStates\n}\n\nexport const SimulateResponseMeta: ObjectModelMetadata<SimulateResponse> = {\n name: 'SimulateResponse',\n kind: 'object',\n fields: [\n {\n name: 'version',\n wireKey: 'version',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lastRound',\n wireKey: 'last-round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'txnGroups',\n wireKey: 'txn-groups',\n optional: false,\n codec: new ArrayCodec(new ObjectModelCodec(SimulateTransactionGroupResultMeta)),\n },\n {\n name: 'evalOverrides',\n wireKey: 'eval-overrides',\n optional: true,\n codec: new ObjectModelCodec(SimulationEvalOverridesMeta),\n },\n {\n name: 'execTraceConfig',\n wireKey: 'exec-trace-config',\n optional: true,\n codec: new ObjectModelCodec(SimulateTraceConfigMeta),\n },\n {\n name: 'initialStates',\n wireKey: 'initial-states',\n optional: true,\n codec: new ObjectModelCodec(SimulateInitialStatesMeta),\n },\n ],\n}\n\nexport function encodeSimulateResponseToJson(simulateResponse: SimulateResponse): string {\n return encodeJson(simulateResponse, SimulateResponseMeta, 2)\n}\n"],"mappings":";;;;;;;;;;;AAgCA,MAAaA,uBAA8D;CACzE,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,OAAO,IAAIC,yBAAW,IAAIC,sCAAiBC,6EAAmC,CAAC;GAChF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAID,sCAAiBE,8DAA4B;GACzD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIF,sCAAiBG,sDAAwB;GACrD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIH,sCAAiBI,0DAA0B;GACvD;EACF;CACF;AAED,SAAgB,6BAA6B,kBAA4C;AACvF,QAAOC,iCAAW,kBAAkB,sBAAsB,EAAE"}
|
|
@@ -2,10 +2,11 @@ import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
|
2
2
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
3
3
|
import { ArrayCodec } from "../../../common/src/codecs/composite/array.mjs";
|
|
4
4
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
5
|
+
import { SimulateInitialStatesMeta } from "./simulate-initial-states.mjs";
|
|
5
6
|
import { SimulateTraceConfigMeta } from "./simulate-trace-config.mjs";
|
|
6
7
|
import { SimulateTransactionGroupResultMeta } from "./simulate-transaction-group-result.mjs";
|
|
7
8
|
import { SimulationEvalOverridesMeta } from "./simulation-eval-overrides.mjs";
|
|
8
|
-
import {
|
|
9
|
+
import { encodeJson } from "../core/model-runtime.mjs";
|
|
9
10
|
|
|
10
11
|
//#region packages/algod_client/src/models/simulate-response.ts
|
|
11
12
|
const SimulateResponseMeta = {
|
|
@@ -50,7 +51,10 @@ const SimulateResponseMeta = {
|
|
|
50
51
|
}
|
|
51
52
|
]
|
|
52
53
|
};
|
|
54
|
+
function encodeSimulateResponseToJson(simulateResponse) {
|
|
55
|
+
return encodeJson(simulateResponse, SimulateResponseMeta, 2);
|
|
56
|
+
}
|
|
53
57
|
|
|
54
58
|
//#endregion
|
|
55
|
-
export { SimulateResponseMeta };
|
|
59
|
+
export { SimulateResponseMeta, encodeSimulateResponseToJson };
|
|
56
60
|
//# sourceMappingURL=simulate-response.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-response.mjs","names":["SimulateResponseMeta: ObjectModelMetadata<SimulateResponse>"],"sources":["../../../../../packages/algod_client/src/models/simulate-response.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, ArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { SimulateInitialStates } from './simulate-initial-states'\nimport { SimulateInitialStatesMeta } from './simulate-initial-states'\nimport type { SimulateTraceConfig } from './simulate-trace-config'\nimport { SimulateTraceConfigMeta } from './simulate-trace-config'\nimport type { SimulateTransactionGroupResult } from './simulate-transaction-group-result'\nimport { SimulateTransactionGroupResultMeta } from './simulate-transaction-group-result'\nimport type { SimulationEvalOverrides } from './simulation-eval-overrides'\nimport { SimulationEvalOverridesMeta } from './simulation-eval-overrides'\n\nexport type SimulateResponse = {\n /**\n * The version of this response object.\n */\n version: number\n\n /**\n * The round immediately preceding this simulation. State changes through this round were used to run this simulation.\n */\n lastRound: bigint\n\n /**\n * A result object for each transaction group that was simulated.\n */\n txnGroups: SimulateTransactionGroupResult[]\n evalOverrides?: SimulationEvalOverrides\n execTraceConfig?: SimulateTraceConfig\n initialStates?: SimulateInitialStates\n}\n\nexport const SimulateResponseMeta: ObjectModelMetadata<SimulateResponse> = {\n name: 'SimulateResponse',\n kind: 'object',\n fields: [\n {\n name: 'version',\n wireKey: 'version',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lastRound',\n wireKey: 'last-round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'txnGroups',\n wireKey: 'txn-groups',\n optional: false,\n codec: new ArrayCodec(new ObjectModelCodec(SimulateTransactionGroupResultMeta)),\n },\n {\n name: 'evalOverrides',\n wireKey: 'eval-overrides',\n optional: true,\n codec: new ObjectModelCodec(SimulationEvalOverridesMeta),\n },\n {\n name: 'execTraceConfig',\n wireKey: 'exec-trace-config',\n optional: true,\n codec: new ObjectModelCodec(SimulateTraceConfigMeta),\n },\n {\n name: 'initialStates',\n wireKey: 'initial-states',\n optional: true,\n codec: new ObjectModelCodec(SimulateInitialStatesMeta),\n },\n ],\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"simulate-response.mjs","names":["SimulateResponseMeta: ObjectModelMetadata<SimulateResponse>"],"sources":["../../../../../packages/algod_client/src/models/simulate-response.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, ArrayCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { SimulateInitialStates } from './simulate-initial-states'\nimport { SimulateInitialStatesMeta } from './simulate-initial-states'\nimport type { SimulateTraceConfig } from './simulate-trace-config'\nimport { SimulateTraceConfigMeta } from './simulate-trace-config'\nimport type { SimulateTransactionGroupResult } from './simulate-transaction-group-result'\nimport { SimulateTransactionGroupResultMeta } from './simulate-transaction-group-result'\nimport type { SimulationEvalOverrides } from './simulation-eval-overrides'\nimport { SimulationEvalOverridesMeta } from './simulation-eval-overrides'\nimport { encodeJson } from '../core/model-runtime'\n\nexport type SimulateResponse = {\n /**\n * The version of this response object.\n */\n version: number\n\n /**\n * The round immediately preceding this simulation. State changes through this round were used to run this simulation.\n */\n lastRound: bigint\n\n /**\n * A result object for each transaction group that was simulated.\n */\n txnGroups: SimulateTransactionGroupResult[]\n evalOverrides?: SimulationEvalOverrides\n execTraceConfig?: SimulateTraceConfig\n initialStates?: SimulateInitialStates\n}\n\nexport const SimulateResponseMeta: ObjectModelMetadata<SimulateResponse> = {\n name: 'SimulateResponse',\n kind: 'object',\n fields: [\n {\n name: 'version',\n wireKey: 'version',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'lastRound',\n wireKey: 'last-round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'txnGroups',\n wireKey: 'txn-groups',\n optional: false,\n codec: new ArrayCodec(new ObjectModelCodec(SimulateTransactionGroupResultMeta)),\n },\n {\n name: 'evalOverrides',\n wireKey: 'eval-overrides',\n optional: true,\n codec: new ObjectModelCodec(SimulationEvalOverridesMeta),\n },\n {\n name: 'execTraceConfig',\n wireKey: 'exec-trace-config',\n optional: true,\n codec: new ObjectModelCodec(SimulateTraceConfigMeta),\n },\n {\n name: 'initialStates',\n wireKey: 'initial-states',\n optional: true,\n codec: new ObjectModelCodec(SimulateInitialStatesMeta),\n },\n ],\n}\n\nexport function encodeSimulateResponseToJson(simulateResponse: SimulateResponse): string {\n return encodeJson(simulateResponse, SimulateResponseMeta, 2)\n}\n"],"mappings":";;;;;;;;;;;AAgCA,MAAaA,uBAA8D;CACzE,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,IAAI,WAAW,IAAI,iBAAiB,mCAAmC,CAAC;GAChF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,4BAA4B;GACzD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,wBAAwB;GACrD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,0BAA0B;GACvD;EACF;CACF;AAED,SAAgB,6BAA6B,kBAA4C;AACvF,QAAO,WAAW,kBAAkB,sBAAsB,EAAE"}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
2
|
-
const require_json = require('../../../common/src/json.js');
|
|
3
|
-
const require_msgpack = require('../../../common/src/msgpack.js');
|
|
4
2
|
|
|
5
3
|
//#region packages/indexer_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"));
|
|
8
|
-
}
|
|
9
|
-
function encodeMsgpack(value, meta) {
|
|
10
|
-
return require_msgpack.encodeMsgpack(new require_object_model.ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
11
|
-
}
|
|
12
4
|
function decodeJson(value, meta) {
|
|
13
5
|
return new require_object_model.ObjectModelCodec(meta).decode(value, "json");
|
|
14
6
|
}
|
|
15
|
-
function decodeMsgpack(value, meta) {
|
|
16
|
-
const wire = require_msgpack.decodeMsgpack(value);
|
|
17
|
-
return new require_object_model.ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
|
-
}
|
|
19
7
|
|
|
20
8
|
//#endregion
|
|
21
9
|
exports.decodeJson = decodeJson;
|
|
22
|
-
exports.decodeMsgpack = decodeMsgpack;
|
|
23
|
-
exports.encodeJson = encodeJson;
|
|
24
|
-
exports.encodeMsgpack = encodeMsgpack;
|
|
25
10
|
//# sourceMappingURL=model-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.js","names":["
|
|
1
|
+
{"version":3,"file":"model-runtime.js","names":["ObjectModelCodec"],"sources":["../../../../../packages/indexer_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;AAgBA,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAIA,sCAAoB,KAAK,CAAC,OAAO,OAAO,OAAO"}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
2
|
-
import { stringifyJson } from "../../../common/src/json.mjs";
|
|
3
|
-
import { decodeMsgpack as decodeMsgpack$1, encodeMsgpack as encodeMsgpack$1 } from "../../../common/src/msgpack.mjs";
|
|
4
2
|
|
|
5
3
|
//#region packages/indexer_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"));
|
|
8
|
-
}
|
|
9
|
-
function encodeMsgpack(value, meta) {
|
|
10
|
-
return encodeMsgpack$1(new ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
11
|
-
}
|
|
12
4
|
function decodeJson(value, meta) {
|
|
13
5
|
return new ObjectModelCodec(meta).decode(value, "json");
|
|
14
6
|
}
|
|
15
|
-
function decodeMsgpack(value, meta) {
|
|
16
|
-
const wire = decodeMsgpack$1(value);
|
|
17
|
-
return new ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
|
-
}
|
|
19
7
|
|
|
20
8
|
//#endregion
|
|
21
|
-
export { decodeJson
|
|
9
|
+
export { decodeJson };
|
|
22
10
|
//# sourceMappingURL=model-runtime.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.mjs","names":[
|
|
1
|
+
{"version":3,"file":"model-runtime.mjs","names":[],"sources":["../../../../../packages/indexer_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;AAgBA,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,OAAO,OAAO"}
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
2
2
|
const require_json = require('../../../common/src/json.js');
|
|
3
|
-
const require_msgpack = require('../../../common/src/msgpack.js');
|
|
4
3
|
|
|
5
4
|
//#region packages/kmd_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"));
|
|
8
|
-
}
|
|
9
|
-
function encodeMsgpack(value, meta) {
|
|
10
|
-
return require_msgpack.encodeMsgpack(new require_object_model.ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
5
|
+
function encodeJson(value, meta, space) {
|
|
6
|
+
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"), void 0, space);
|
|
11
7
|
}
|
|
12
8
|
function decodeJson(value, meta) {
|
|
13
9
|
return new require_object_model.ObjectModelCodec(meta).decode(value, "json");
|
|
14
10
|
}
|
|
15
|
-
function decodeMsgpack(value, meta) {
|
|
16
|
-
const wire = require_msgpack.decodeMsgpack(value);
|
|
17
|
-
return new require_object_model.ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
|
-
}
|
|
19
11
|
|
|
20
12
|
//#endregion
|
|
21
13
|
exports.decodeJson = decodeJson;
|
|
22
|
-
exports.decodeMsgpack = decodeMsgpack;
|
|
23
14
|
exports.encodeJson = encodeJson;
|
|
24
|
-
exports.encodeMsgpack = encodeMsgpack;
|
|
25
15
|
//# sourceMappingURL=model-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec"
|
|
1
|
+
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec"],"sources":["../../../../../packages/kmd_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;AAQA,SAAgB,WAA8C,OAAU,MAA8B,OAAiC;AAErI,QAAOA,2BADM,IAAIC,sCAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,EAClC,QAAW,MAAM;;AAM9C,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAIA,sCAAoB,KAAK,CAAC,OAAO,OAAO,OAAO"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
2
2
|
import { stringifyJson } from "../../../common/src/json.mjs";
|
|
3
|
-
import { decodeMsgpack as decodeMsgpack$1, encodeMsgpack as encodeMsgpack$1 } from "../../../common/src/msgpack.mjs";
|
|
4
3
|
|
|
5
4
|
//#region packages/kmd_client/src/core/model-runtime.ts
|
|
6
|
-
function encodeJson(value, meta) {
|
|
7
|
-
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"));
|
|
8
|
-
}
|
|
9
|
-
function encodeMsgpack(value, meta) {
|
|
10
|
-
return encodeMsgpack$1(new ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
5
|
+
function encodeJson(value, meta, space) {
|
|
6
|
+
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"), void 0, space);
|
|
11
7
|
}
|
|
12
8
|
function decodeJson(value, meta) {
|
|
13
9
|
return new ObjectModelCodec(meta).decode(value, "json");
|
|
14
10
|
}
|
|
15
|
-
function decodeMsgpack(value, meta) {
|
|
16
|
-
const wire = decodeMsgpack$1(value);
|
|
17
|
-
return new ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
|
-
}
|
|
19
11
|
|
|
20
12
|
//#endregion
|
|
21
|
-
export { decodeJson,
|
|
13
|
+
export { decodeJson, encodeJson };
|
|
22
14
|
//# sourceMappingURL=model-runtime.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.mjs","names":[
|
|
1
|
+
{"version":3,"file":"model-runtime.mjs","names":[],"sources":["../../../../../packages/kmd_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>, space?: string | number): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire, undefined, space)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;AAQA,SAAgB,WAA8C,OAAU,MAA8B,OAAiC;AAErI,QAAO,cADM,IAAI,iBAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,EAClC,QAAW,MAAM;;AAM9C,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,OAAO,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReadableAddress } from "../packages/common/src/address.js";
|
|
2
|
+
import { Expand } from "../packages/common/src/expand.js";
|
|
2
3
|
import { OnApplicationComplete, ResourceReference } from "../packages/transact/src/transactions/app-call.js";
|
|
3
4
|
import { BoxIdentifier, BoxReference } from "../types/app-manager.js";
|
|
4
|
-
import { Expand } from "../types/expand.js";
|
|
5
5
|
import { CommonTransactionParams } from "./common.js";
|
|
6
6
|
|
|
7
7
|
//#region src/transactions/app-call.d.ts
|