@algorandfoundation/algokit-utils 10.0.0-alpha.3 → 10.0.0-alpha.31
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/_virtual/rolldown_runtime.js +10 -15
- package/abi/index.d.ts +2 -1
- package/abi/index.js +3 -0
- package/abi/index.mjs +2 -1
- package/algod-client/index.d.ts +3 -7
- package/algod-client/index.js +2 -5
- package/algod-client/index.mjs +2 -2
- package/index.d.ts +1 -2
- package/index.js +0 -7
- package/index.mjs +1 -2
- package/indexer-client/index.d.ts +2 -2
- package/indexer-client/index.js +6 -6
- package/indexer-client/index.mjs +2 -2
- package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
- package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
- package/indexer-client/indexer-lookup.js.map +1 -0
- package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
- package/indexer-client/indexer-lookup.mjs.map +1 -0
- 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 +5 -6
- package/packages/abi/src/abi-method.d.ts +1 -1
- package/packages/abi/src/abi-method.js +1 -1
- package/packages/abi/src/abi-method.js.map +1 -1
- package/packages/abi/src/abi-method.mjs +1 -1
- package/packages/abi/src/abi-method.mjs.map +1 -1
- package/packages/abi/src/abi-type.d.ts +1 -3
- package/packages/abi/src/abi-type.js +7 -36
- package/packages/abi/src/abi-type.js.map +1 -1
- package/packages/abi/src/abi-type.mjs +7 -36
- package/packages/abi/src/abi-type.mjs.map +1 -1
- package/packages/abi/src/arc56-contract.js +1 -0
- package/packages/abi/src/arc56-contract.js.map +1 -1
- package/packages/abi/src/arc56-contract.mjs +1 -0
- package/packages/abi/src/arc56-contract.mjs.map +1 -1
- package/packages/abi/src/utils.d.ts +22 -0
- package/packages/abi/src/utils.js +57 -0
- package/packages/abi/src/utils.js.map +1 -0
- package/packages/abi/src/utils.mjs +55 -0
- package/packages/abi/src/utils.mjs.map +1 -0
- package/packages/algo25/src/index.js +1 -1
- package/packages/algo25/src/index.mjs +1 -1
- package/packages/algod_client/src/apis/api-service.d.ts +44 -44
- package/packages/algod_client/src/apis/api-service.js +155 -155
- package/packages/algod_client/src/apis/api-service.js.map +1 -1
- package/packages/algod_client/src/apis/api-service.mjs +155 -155
- package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
- package/packages/algod_client/src/core/api-error.js +3 -1
- package/packages/algod_client/src/core/api-error.js.map +1 -1
- package/packages/algod_client/src/core/api-error.mjs +3 -1
- package/packages/algod_client/src/core/api-error.mjs.map +1 -1
- package/packages/algod_client/src/core/model-runtime.js +6 -6
- package/packages/algod_client/src/core/model-runtime.js.map +1 -1
- package/packages/algod_client/src/core/model-runtime.mjs +8 -8
- package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/algod_client/src/models/account-participation.js +4 -4
- package/packages/algod_client/src/models/account-participation.js.map +1 -1
- package/packages/algod_client/src/models/account-participation.mjs +4 -4
- package/packages/algod_client/src/models/account-participation.mjs.map +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/asset-params.js +2 -1
- package/packages/algod_client/src/models/asset-params.js.map +1 -1
- package/packages/algod_client/src/models/asset-params.mjs +2 -1
- package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
- package/packages/algod_client/src/models/block-response.js +1 -2
- package/packages/algod_client/src/models/block-response.js.map +1 -1
- package/packages/algod_client/src/models/block-response.mjs +2 -3
- package/packages/algod_client/src/models/block-response.mjs.map +1 -1
- package/packages/algod_client/src/models/block.d.ts +60 -40
- package/packages/algod_client/src/models/block.js +184 -108
- package/packages/algod_client/src/models/block.js.map +1 -1
- package/packages/algod_client/src/models/block.mjs +184 -108
- package/packages/algod_client/src/models/block.mjs.map +1 -1
- package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
- package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
- package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
- package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
- package/packages/algod_client/src/models/eval-delta.js +2 -2
- package/packages/algod_client/src/models/eval-delta.js.map +1 -1
- package/packages/algod_client/src/models/eval-delta.mjs +2 -2
- package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
- package/packages/algod_client/src/models/ledger-state-delta.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/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/algod_client/src/models/transaction-parameters-response.js +2 -2
- package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
- package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
- package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
- package/packages/common/src/address.d.ts +0 -1
- package/packages/common/src/address.js +4 -17
- package/packages/common/src/address.js.map +1 -1
- package/packages/common/src/address.mjs +5 -17
- package/packages/common/src/address.mjs.map +1 -1
- package/packages/common/src/codecs/composite/map.js +7 -4
- package/packages/common/src/codecs/composite/map.js.map +1 -1
- package/packages/common/src/codecs/composite/map.mjs +7 -4
- package/packages/common/src/codecs/composite/map.mjs.map +1 -1
- package/packages/common/src/codecs/composite/record.js +0 -1
- package/packages/common/src/codecs/composite/record.js.map +1 -1
- package/packages/common/src/codecs/primitives/address.js +0 -1
- package/packages/common/src/codecs/primitives/address.js.map +1 -1
- package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
- package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
- package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
- package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/bytes.js +0 -1
- package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
- package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
- package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
- package/packages/common/src/codecs/wire.js +0 -1
- package/packages/common/src/codecs/wire.js.map +1 -1
- package/packages/common/src/json.mjs +2 -2
- package/packages/common/src/json.mjs.map +1 -1
- package/packages/common/src/msgpack.js +0 -1
- package/packages/common/src/msgpack.js.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
- package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
- package/packages/indexer_client/src/apis/api-service.js +12 -12
- package/packages/indexer_client/src/apis/api-service.js.map +1 -1
- package/packages/indexer_client/src/apis/api-service.mjs +12 -12
- package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
- package/packages/indexer_client/src/core/api-error.js +3 -1
- package/packages/indexer_client/src/core/api-error.js.map +1 -1
- package/packages/indexer_client/src/core/api-error.mjs +3 -1
- package/packages/indexer_client/src/core/api-error.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/indexer_client/src/models/account-participation.js +4 -4
- package/packages/indexer_client/src/models/account-participation.js.map +1 -1
- package/packages/indexer_client/src/models/account-participation.mjs +4 -4
- package/packages/indexer_client/src/models/account-participation.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/asset-params.js +2 -1
- package/packages/indexer_client/src/models/asset-params.js.map +1 -1
- package/packages/indexer_client/src/models/asset-params.mjs +2 -1
- package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
- package/packages/indexer_client/src/models/block.d.ts +5 -5
- package/packages/indexer_client/src/models/block.js +13 -13
- package/packages/indexer_client/src/models/block.js.map +1 -1
- package/packages/indexer_client/src/models/block.mjs +13 -13
- package/packages/indexer_client/src/models/block.mjs.map +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
- package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
- package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
- package/packages/indexer_client/src/models/eval-delta.js +2 -2
- package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
- package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
- package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
- package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
- package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
- package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
- package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
- package/packages/indexer_client/src/models/participation-updates.d.ts +2 -2
- package/packages/indexer_client/src/models/participation-updates.js +2 -2
- package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
- package/packages/indexer_client/src/models/participation-updates.mjs +2 -2
- package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
- package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
- package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
- package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
- package/packages/indexer_client/src/models/state-proof-verifier.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/teal-key-value.d.ts +1 -1
- package/packages/indexer_client/src/models/teal-key-value.js +2 -2
- package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
- package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
- package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
- package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
- package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.d.ts +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.js +2 -2
- package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.mjs +2 -2
- package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction.d.ts +2 -2
- package/packages/indexer_client/src/models/transaction.js +6 -5
- package/packages/indexer_client/src/models/transaction.js.map +1 -1
- package/packages/indexer_client/src/models/transaction.mjs +6 -5
- package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
- package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
- package/packages/kmd_client/src/apis/api-service.js +32 -32
- package/packages/kmd_client/src/apis/api-service.js.map +1 -1
- package/packages/kmd_client/src/apis/api-service.mjs +32 -32
- package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
- package/packages/kmd_client/src/core/api-error.js +3 -1
- package/packages/kmd_client/src/core/api-error.js.map +1 -1
- package/packages/kmd_client/src/core/api-error.mjs +3 -1
- package/packages/kmd_client/src/core/api-error.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/packages/transact/src/logicsig.d.ts +35 -33
- package/packages/transact/src/logicsig.js +74 -76
- package/packages/transact/src/logicsig.js.map +1 -1
- package/packages/transact/src/logicsig.mjs +77 -78
- package/packages/transact/src/logicsig.mjs.map +1 -1
- package/packages/transact/src/multisig.d.ts +11 -116
- package/packages/transact/src/multisig.js +106 -136
- package/packages/transact/src/multisig.js.map +1 -1
- package/packages/transact/src/multisig.mjs +108 -118
- package/packages/transact/src/multisig.mjs.map +1 -1
- package/packages/transact/src/signer.js +9 -2
- package/packages/transact/src/signer.js.map +1 -1
- package/packages/transact/src/signer.mjs +10 -3
- package/packages/transact/src/signer.mjs.map +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +10 -15
- 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/asset-config.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.js.map +1 -1
- package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
- package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
- package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
- package/packages/transact/src/transactions/key-registration.d.ts +1 -8
- 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/signed-transaction-meta.js +8 -9
- package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction-meta.mjs +8 -8
- package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.d.ts +10 -6
- package/packages/transact/src/transactions/signed-transaction.js +1 -1
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
- package/packages/transact/src/transactions/state-proof.d.ts +1 -1
- package/packages/transact/src/transactions/transaction-meta.js +29 -23
- package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/transaction-meta.mjs +29 -23
- package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction.d.ts +5 -2
- package/packages/transact/src/transactions/transaction.js +5 -4
- package/packages/transact/src/transactions/transaction.js.map +1 -1
- package/packages/transact/src/transactions/transaction.mjs +5 -4
- package/packages/transact/src/transactions/transaction.mjs.map +1 -1
- package/testing/account.js +1 -2
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +1 -2
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.d.ts +3 -3
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/transaction-logger.js +1 -1
- package/testing/transaction-logger.mjs +1 -1
- package/transact/index.d.ts +11 -10
- package/transact/index.js +7 -31
- package/transact/index.mjs +7 -10
- package/transaction/transaction.js +2 -2
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +2 -2
- package/transaction/transaction.mjs.map +1 -1
- package/transactions/app-call.d.ts +5 -4
- package/transactions/app-call.js +16 -16
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs +16 -16
- 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/transactions/key-registration.d.ts +1 -1
- package/transactions/key-registration.js.map +1 -1
- package/transactions/key-registration.mjs.map +1 -1
- package/transactions/method-call.d.ts +1 -1
- package/transactions/method-call.js +77 -84
- package/transactions/method-call.js.map +1 -1
- package/transactions/method-call.mjs +77 -84
- package/transactions/method-call.mjs.map +1 -1
- package/types/account-manager.d.ts +7 -9
- package/types/account-manager.js +17 -7
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +17 -7
- package/types/account-manager.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +53 -39
- package/types/algorand-client-transaction-creator.js +8 -0
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +8 -0
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +58 -44
- package/types/algorand-client-transaction-sender.js +8 -1
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +8 -0
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/amount.js +23 -4
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +20 -2
- package/types/amount.mjs.map +1 -1
- package/types/app-client.d.ts +111 -106
- package/types/app-client.js +2 -3
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +2 -2
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +1 -1
- package/types/app-deployer.js +3 -3
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +3 -3
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +44 -41
- package/types/app-factory.js +2 -2
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +2 -2
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +3 -1
- package/types/app-manager.js +17 -11
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +17 -11
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.js +12 -5
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +12 -5
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +2 -2
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.js +1 -1
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +1 -1
- package/types/asset-manager.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 +11 -3
- package/types/composer.js +55 -46
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +46 -36
- 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/expand.d.ts +2 -9
- package/types/kmd-account-manager.d.ts +1 -0
- package/types/kmd-account-manager.js +22 -11
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +23 -12
- package/types/kmd-account-manager.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/testing.d.ts +4 -4
- package/types/transaction.d.ts +1 -1
- package/_virtual/rolldown_runtime.mjs +0 -13
- package/indexer-lookup.js.map +0 -1
- package/indexer-lookup.mjs.map +0 -1
- package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
- 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/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
- package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
- package/packages/sdk/src/convert.d.ts +0 -17
- package/packages/sdk/src/convert.js +0 -28
- package/packages/sdk/src/convert.js.map +0 -1
- package/packages/sdk/src/convert.mjs +0 -25
- package/packages/sdk/src/convert.mjs.map +0 -1
- package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
- package/packages/sdk/src/encoding/binarydata.js +0 -65
- package/packages/sdk/src/encoding/binarydata.js.map +0 -1
- package/packages/sdk/src/encoding/binarydata.mjs +0 -60
- package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
- package/packages/sdk/src/encoding/encoding.d.ts +0 -237
- package/packages/sdk/src/encoding/encoding.js +0 -302
- package/packages/sdk/src/encoding/encoding.js.map +0 -1
- package/packages/sdk/src/encoding/encoding.mjs +0 -287
- package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/array.js +0 -35
- package/packages/sdk/src/encoding/schema/array.js.map +0 -1
- package/packages/sdk/src/encoding/schema/array.mjs +0 -35
- package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
- package/packages/sdk/src/encoding/schema/map.js +0 -110
- package/packages/sdk/src/encoding/schema/map.js.map +0 -1
- package/packages/sdk/src/encoding/schema/map.mjs +0 -107
- package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.js +0 -46
- package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
- package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.js +0 -30
- package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
- package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
- package/packages/sdk/src/encoding/uint64.d.ts +0 -34
- package/packages/sdk/src/encoding/uint64.js +0 -34
- package/packages/sdk/src/encoding/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/uint64.mjs +0 -33
- package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
- package/packages/sdk/src/index.d.ts +0 -44
- package/packages/sdk/src/index.js +0 -62
- package/packages/sdk/src/index.js.map +0 -1
- package/packages/sdk/src/index.mjs +0 -58
- package/packages/sdk/src/index.mjs.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.js +0 -14
- package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
- package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
- package/packages/sdk/src/types/intDecoding.d.ts +0 -28
- package/packages/sdk/src/types/intDecoding.js +0 -32
- package/packages/sdk/src/types/intDecoding.js.map +0 -1
- package/packages/sdk/src/types/intDecoding.mjs +0 -31
- package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
- package/packages/sdk/src/types/transactions/encoded.js +0 -64
- package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
- package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
- package/packages/sdk/src/utils/utils.d.ts +0 -64
- package/packages/sdk/src/utils/utils.js +0 -140
- package/packages/sdk/src/utils/utils.js.map +0 -1
- package/packages/sdk/src/utils/utils.mjs +0 -128
- package/packages/sdk/src/utils/utils.mjs.map +0 -1
- package/packages/transact/src/transactions/common.d.ts +0 -37
- package/sdk/index.d.ts +0 -10
- package/sdk/index.js +0 -59
- package/sdk/index.mjs +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_bigint = require('../../../common/src/codecs/primitives/bigint.js');
|
|
2
|
-
const
|
|
2
|
+
const require_bytes_base64 = require('../../../common/src/codecs/primitives/bytes-base64.js');
|
|
3
3
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
4
4
|
|
|
5
5
|
//#region packages/algod_client/src/models/eval-delta.ts
|
|
@@ -17,7 +17,7 @@ const EvalDeltaMeta = {
|
|
|
17
17
|
name: "bytes",
|
|
18
18
|
wireKey: "bytes",
|
|
19
19
|
optional: true,
|
|
20
|
-
codec:
|
|
20
|
+
codec: require_bytes_base64.bytesBase64Codec
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
name: "uint",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-delta.js","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>","numberCodec","
|
|
1
|
+
{"version":3,"file":"eval-delta.js","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>","numberCodec","bytesBase64Codec","bigIntCodec"],"sources":["../../../../../packages/algod_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, bytesBase64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a TEAL value delta.\n */\nexport type EvalDelta = {\n /**\n * \\[at\\] delta action.\n */\n action: number\n\n /**\n * \\[bs\\] bytes value.\n */\n bytes?: Uint8Array\n\n /**\n * \\[ui\\] uint value.\n */\n uint?: bigint\n}\n\nexport const EvalDeltaMeta: ObjectModelMetadata<EvalDelta> = {\n name: 'EvalDelta',\n kind: 'object',\n fields: [\n {\n name: 'action',\n wireKey: 'action',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'bytes',\n wireKey: 'bytes',\n optional: true,\n codec: bytesBase64Codec,\n },\n {\n name: 'uint',\n wireKey: 'uint',\n optional: true,\n codec: bigIntCodec,\n },\n ],\n}\n"],"mappings":";;;;;AAuBA,MAAaA,gBAAgD;CAC3D,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,OAAOC;GACR;EACF;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { bytesBase64Codec } from "../../../common/src/codecs/primitives/bytes-base64.mjs";
|
|
3
3
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
4
4
|
|
|
5
5
|
//#region packages/algod_client/src/models/eval-delta.ts
|
|
@@ -17,7 +17,7 @@ const EvalDeltaMeta = {
|
|
|
17
17
|
name: "bytes",
|
|
18
18
|
wireKey: "bytes",
|
|
19
19
|
optional: true,
|
|
20
|
-
codec:
|
|
20
|
+
codec: bytesBase64Codec
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
name: "uint",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-delta.mjs","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>"],"sources":["../../../../../packages/algod_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec,
|
|
1
|
+
{"version":3,"file":"eval-delta.mjs","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>"],"sources":["../../../../../packages/algod_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, bytesBase64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * Represents a TEAL value delta.\n */\nexport type EvalDelta = {\n /**\n * \\[at\\] delta action.\n */\n action: number\n\n /**\n * \\[bs\\] bytes value.\n */\n bytes?: Uint8Array\n\n /**\n * \\[ui\\] uint value.\n */\n uint?: bigint\n}\n\nexport const EvalDeltaMeta: ObjectModelMetadata<EvalDelta> = {\n name: 'EvalDelta',\n kind: 'object',\n fields: [\n {\n name: 'action',\n wireKey: 'action',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'bytes',\n wireKey: 'bytes',\n optional: true,\n codec: bytesBase64Codec,\n },\n {\n name: 'uint',\n wireKey: 'uint',\n optional: true,\n codec: bigIntCodec,\n },\n ],\n}\n"],"mappings":";;;;;AAuBA,MAAaA,gBAAgD;CAC3D,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;EACF;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-state-delta.js","names":["LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue>","numberCodec","bytesCodec","bigIntCodec","LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema>","LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams>","ObjectModelCodec","addressCodec","MapCodec","LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState>","LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta>","booleanCodec","LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta>","LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord>","LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding>","LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta>","LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams>","stringCodec","LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta>","LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord>","LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData>","LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData>","LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData>","LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord>","LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas>","ArrayCodec","LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta>","LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions>","LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable>","LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount>","LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals>","LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta>","BlockMeta"],"sources":["../../../../../packages/algod_client/src/models/ledger-state-delta.ts"],"sourcesContent":["import type { Block } from './block'\nimport { BlockMeta } from './block'\nimport {\n numberCodec,\n bigIntCodec,\n booleanCodec,\n stringCodec,\n bytesCodec,\n addressCodec,\n Address,\n ArrayCodec,\n MapCodec,\n ObjectModelCodec,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\n/**\n * Contains type information and a value, representing a value in a TEAL program.\n */\nexport type LedgerTealValue = {\n /**\n * Type determines the type of the value.\n * * 1 represents the type of a byte slice in a TEAL program\n * * 2 represents the type of an unsigned integer in a TEAL program\n */\n type: number\n /** bytes value. */\n bytes?: Uint8Array\n /** uint value. */\n uint?: bigint\n}\n\nexport const LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue> = {\n name: 'LedgerTealValue',\n kind: 'object',\n fields: [\n { name: 'type', wireKey: 'tt', optional: false, codec: numberCodec },\n { name: 'bytes', wireKey: 'tb', optional: true, codec: bytesCodec },\n { name: 'uint', wireKey: 'ui', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Sets maximums on the number of each type that may be stored.\n */\nexport type LedgerStateSchema = {\n /** Number of uints in state. */\n numUints?: bigint\n /** Number of byte slices in state. */\n numByteSlices?: bigint\n}\n\nexport const LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema> = {\n name: 'LedgerStateSchema',\n kind: 'object',\n fields: [\n { name: 'numUints', wireKey: 'nui', optional: true, codec: bigIntCodec },\n { name: 'numByteSlices', wireKey: 'nbs', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Stores the global information associated with an application.\n */\nexport type LedgerAppParams = {\n approvalProgram: Uint8Array\n clearStateProgram: Uint8Array\n localStateSchema: LedgerStateSchema\n globalStateSchema: LedgerStateSchema\n extraProgramPages: number\n version?: number\n sizeSponsor?: Address\n globalState?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams> = {\n name: 'LedgerAppParams',\n kind: 'object',\n fields: [\n { name: 'approvalProgram', wireKey: 'approv', optional: false, codec: bytesCodec },\n { name: 'clearStateProgram', wireKey: 'clearp', optional: false, codec: bytesCodec },\n { name: 'localStateSchema', wireKey: 'lsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'globalStateSchema', wireKey: 'gsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'extraProgramPages', wireKey: 'epp', optional: false, codec: numberCodec },\n { name: 'version', wireKey: 'v', optional: true, codec: numberCodec },\n { name: 'sizeSponsor', wireKey: 'ss', optional: true, codec: addressCodec },\n {\n name: 'globalState',\n wireKey: 'gs',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Stores the LocalState associated with an application.\n */\nexport type LedgerAppLocalState = {\n schema: LedgerStateSchema\n keyValue?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState> = {\n name: 'LedgerAppLocalState',\n kind: 'object',\n fields: [\n { name: 'schema', wireKey: 'hsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n {\n name: 'keyValue',\n wireKey: 'tkv',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Tracks a changed AppLocalState, and whether it was deleted.\n */\nexport type LedgerAppLocalStateDelta = {\n deleted: boolean\n localState?: LedgerAppLocalState\n}\n\nexport const LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta> = {\n name: 'LedgerAppLocalStateDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'localState', wireKey: 'LocalState', optional: true, codec: new ObjectModelCodec(LedgerAppLocalStateMeta) },\n ],\n}\n\n/**\n * Tracks a changed AppParams, and whether it was deleted.\n */\nexport type LedgerAppParamsDelta = {\n deleted: boolean\n params?: LedgerAppParams\n}\n\nexport const LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta> = {\n name: 'LedgerAppParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAppParamsMeta) },\n ],\n}\n\n/**\n * Represents AppParams and AppLocalState in deltas.\n */\nexport type LedgerAppResourceRecord = {\n appId: bigint\n address: Address\n params: LedgerAppParamsDelta\n state: LedgerAppLocalStateDelta\n}\n\nexport const LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord> = {\n name: 'LedgerAppResourceRecord',\n kind: 'object',\n fields: [\n { name: 'appId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAppParamsDeltaMeta) },\n { name: 'state', wireKey: 'State', optional: false, codec: new ObjectModelCodec(LedgerAppLocalStateDeltaMeta) },\n ],\n}\n\n/**\n * Describes an asset held by an account.\n */\nexport type LedgerAssetHolding = {\n amount: bigint\n frozen: boolean\n}\n\nexport const LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding> = {\n name: 'LedgerAssetHolding',\n kind: 'object',\n fields: [\n { name: 'amount', wireKey: 'a', optional: false, codec: bigIntCodec },\n { name: 'frozen', wireKey: 'f', optional: false, codec: booleanCodec },\n ],\n}\n\n/**\n * Records a changed AssetHolding, and whether it was deleted.\n */\nexport type LedgerAssetHoldingDelta = {\n deleted: boolean\n holding?: LedgerAssetHolding\n}\n\nexport const LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta> = {\n name: 'LedgerAssetHoldingDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'holding', wireKey: 'Holding', optional: true, codec: new ObjectModelCodec(LedgerAssetHoldingMeta) },\n ],\n}\n\n/**\n * Describes the parameters of an asset.\n */\nexport type LedgerAssetParams = {\n /**\n * Specifies the total number of units of this asset created.\n */\n total: bigint\n /**\n * Specifies the number of digits to display after the decimal place when displaying this asset.\n * A value of 0 represents an asset that is not divisible, a value of 1 represents an asset divisible into tenths, and so on.\n * This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n /**\n * Specifies whether slots for this asset in user accounts are frozen by default or not.\n */\n defaultFrozen: boolean\n /**\n * Specifies a hint for the name of a unit of this asset.\n */\n unitName?: string\n /**\n * Specifies a hint for the name of the asset.\n */\n assetName?: string\n /**\n * Specifies a URL where more information about the asset can be retrieved.\n */\n url?: string\n /**\n * Specifies a commitment to some unspecified asset metadata. The format of this\n * metadata is up to the application.\n */\n metadataHash?: Uint8Array\n /**\n * Manager specifies an account that is allowed to change the non-zero addresses in this AssetParams.\n */\n manager?: Address\n /**\n * Specifies an account whose holdings of this asset should be reported as \"not minted\".\n */\n reserve?: Address\n /**\n * Specifies an account that is allowed to change the frozen state of holdings of this asset.\n */\n freeze?: Address\n /**\n * Specifies an account that is allowed to take units of this asset from any account.\n */\n clawback?: Address\n}\n\nexport const LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams> = {\n name: 'LedgerAssetParams',\n kind: 'object',\n fields: [\n { name: 'total', wireKey: 't', optional: false, codec: bigIntCodec },\n { name: 'decimals', wireKey: 'dc', optional: false, codec: numberCodec },\n { name: 'defaultFrozen', wireKey: 'df', optional: false, codec: booleanCodec },\n { name: 'unitName', wireKey: 'un', optional: true, codec: stringCodec },\n { name: 'assetName', wireKey: 'an', optional: true, codec: stringCodec },\n { name: 'url', wireKey: 'au', optional: true, codec: stringCodec },\n { name: 'metadataHash', wireKey: 'am', optional: true, codec: bytesCodec },\n { name: 'manager', wireKey: 'm', optional: true, codec: addressCodec },\n { name: 'reserve', wireKey: 'r', optional: true, codec: addressCodec },\n { name: 'freeze', wireKey: 'f', optional: true, codec: addressCodec },\n { name: 'clawback', wireKey: 'c', optional: true, codec: addressCodec },\n ],\n}\n\n/**\n * Tracks a changed asset params, and whether it was deleted.\n */\nexport type LedgerAssetParamsDelta = {\n deleted: boolean\n params?: LedgerAssetParams\n}\n\nexport const LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta> = {\n name: 'LedgerAssetParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAssetParamsMeta) },\n ],\n}\n\n/**\n * Represents asset params and asset holding in deltas.\n */\nexport type LedgerAssetResourceRecord = {\n assetId: bigint\n address: Address\n params: LedgerAssetParamsDelta\n holding: LedgerAssetHoldingDelta\n}\n\nexport const LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord> = {\n name: 'LedgerAssetResourceRecord',\n kind: 'object',\n fields: [\n { name: 'assetId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAssetParamsDeltaMeta) },\n { name: 'holding', wireKey: 'Holding', optional: false, codec: new ObjectModelCodec(LedgerAssetHoldingDeltaMeta) },\n ],\n}\n\n/**\n * Holds participation information.\n */\nexport type LedgerVotingData = {\n voteId: Uint8Array\n selectionId: Uint8Array\n stateProofId: Uint8Array\n voteFirstValid: bigint\n voteLastValid: bigint\n voteKeyDilution: bigint\n}\n\nexport const LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData> = {\n name: 'LedgerVotingData',\n kind: 'object',\n fields: [\n { name: 'voteId', wireKey: 'VoteID', optional: false, codec: bytesCodec },\n { name: 'selectionId', wireKey: 'SelectionID', optional: false, codec: bytesCodec },\n { name: 'stateProofId', wireKey: 'StateProofID', optional: false, codec: bytesCodec },\n { name: 'voteFirstValid', wireKey: 'VoteFirstValid', optional: false, codec: bigIntCodec },\n { name: 'voteLastValid', wireKey: 'VoteLastValid', optional: false, codec: bigIntCodec },\n { name: 'voteKeyDilution', wireKey: 'VoteKeyDilution', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Contains base account info like balance, status and total number of resources.\n */\nexport type LedgerAccountBaseData = {\n /**\n * Account status. Values are:\n * * 0: Offline\n * * 1: Online\n * * 2: NotParticipating\n */\n status: number\n microAlgos: bigint\n rewardsBase: bigint\n rewardedMicroAlgos: bigint\n authAddress: Address\n incentiveEligible: boolean\n /**\n * Totals across created globals, and opted in locals.\n */\n totalAppSchema: LedgerStateSchema\n /**\n * Total number of extra pages across all created apps.\n */\n totalExtraAppPages: number\n /**\n * Total number of apps this account has created.\n */\n totalAppParams: number\n /**\n * Total number of apps this account is opted into.\n */\n totalAppLocalStates: number\n /**\n * Total number of assets created by this account.\n */\n totalAssetParams: number\n /**\n * Total of asset creations and optins (i.e. number of holdings).\n */\n totalAssets: number\n /**\n * Total number of boxes associated to this account.\n */\n totalBoxes: bigint\n /**\n * Total bytes for this account's boxes. keys and values count.\n */\n totalBoxBytes: bigint\n /**\n * The last round that this account proposed the winning block.\n */\n lastProposed: bigint\n /**\n * The last round that this account sent a heartbeat to show it was online.\n */\n lastHeartbeat: bigint\n}\n\nexport const LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData> = {\n name: 'LedgerAccountBaseData',\n kind: 'object',\n fields: [\n { name: 'status', wireKey: 'Status', optional: false, codec: numberCodec },\n { name: 'microAlgos', wireKey: 'MicroAlgos', optional: false, codec: bigIntCodec },\n { name: 'rewardsBase', wireKey: 'RewardsBase', optional: false, codec: bigIntCodec },\n {\n name: 'rewardedMicroAlgos',\n wireKey: 'RewardedMicroAlgos',\n optional: false,\n codec: bigIntCodec,\n },\n { name: 'authAddress', wireKey: 'AuthAddr', optional: false, codec: addressCodec },\n { name: 'incentiveEligible', wireKey: 'IncentiveEligible', optional: false, codec: booleanCodec },\n {\n name: 'totalAppSchema',\n wireKey: 'TotalAppSchema',\n optional: false,\n codec: new ObjectModelCodec(LedgerStateSchemaMeta),\n },\n { name: 'totalExtraAppPages', wireKey: 'TotalExtraAppPages', optional: false, codec: numberCodec },\n { name: 'totalAppParams', wireKey: 'TotalAppParams', optional: false, codec: numberCodec },\n { name: 'totalAppLocalStates', wireKey: 'TotalAppLocalStates', optional: false, codec: numberCodec },\n { name: 'totalAssetParams', wireKey: 'TotalAssetParams', optional: false, codec: numberCodec },\n { name: 'totalAssets', wireKey: 'TotalAssets', optional: false, codec: numberCodec },\n { name: 'totalBoxes', wireKey: 'TotalBoxes', optional: false, codec: bigIntCodec },\n { name: 'totalBoxBytes', wireKey: 'TotalBoxBytes', optional: false, codec: bigIntCodec },\n { name: 'lastProposed', wireKey: 'LastProposed', optional: false, codec: bigIntCodec },\n { name: 'lastHeartbeat', wireKey: 'LastHeartbeat', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Provides per-account data.\n */\nexport type LedgerAccountData = {\n accountBaseData: LedgerAccountBaseData\n votingData: LedgerVotingData\n}\n\nexport const LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData> = {\n name: 'LedgerAccountData',\n kind: 'object',\n fields: [\n {\n name: 'accountBaseData',\n flattened: true,\n optional: false,\n codec: new ObjectModelCodec(LedgerAccountBaseDataMeta),\n },\n { name: 'votingData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerVotingDataMeta) },\n ],\n}\n\nexport type LedgerBalanceRecord = {\n address: Address\n accountData: LedgerAccountData\n}\n\nexport const LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord> = {\n name: 'LedgerBalanceRecord',\n kind: 'object',\n fields: [\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'accountData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerAccountDataMeta) },\n ],\n}\n\nexport type LedgerAccountDeltas = {\n accounts?: LedgerBalanceRecord[]\n appResources?: LedgerAppResourceRecord[]\n assetResources?: LedgerAssetResourceRecord[]\n}\n\nexport const LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas> = {\n name: 'LedgerAccountDeltas',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'Accts',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerBalanceRecordMeta)),\n },\n {\n name: 'appResources',\n wireKey: 'AppResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAppResourceRecordMeta)),\n },\n {\n name: 'assetResources',\n wireKey: 'AssetResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAssetResourceRecordMeta)),\n },\n ],\n}\n\n/**\n * Shows how the data associated with a key in the kvstore has changed.\n */\nexport type LedgerKvValueDelta = {\n /**\n * Stores the most recent value (undefined means deleted).\n */\n data?: Uint8Array\n /**\n * Stores the previous value (undefined means didn't exist).\n */\n oldData?: Uint8Array\n}\n\nexport const LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta> = {\n name: 'LedgerKvValueDelta',\n kind: 'object',\n fields: [\n { name: 'data', wireKey: 'Data', optional: true, codec: bytesCodec },\n { name: 'oldData', wireKey: 'OldData', optional: true, codec: bytesCodec },\n ],\n}\n\n/**\n * Defines the transactions included in a block, their index and last valid round.\n */\nexport type LedgerIncludedTransactions = {\n lastValid: bigint\n /**\n * The index of the transaction in the block.\n */\n intra: number\n}\n\nexport const LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions> = {\n name: 'LedgerIncludedTransactions',\n kind: 'object',\n fields: [\n { name: 'lastValid', wireKey: 'LastValid', optional: false, codec: bigIntCodec },\n { name: 'intra', wireKey: 'Intra', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a change to a single creatable state.\n */\nexport type LedgerModifiedCreatable = {\n /**\n * Type of the creatable. The values are:\n * * 0: Asset\n * * 1: Application\n */\n creatableType: number\n /**\n * Created if true, deleted if false.\n */\n created: boolean\n /**\n * Creator of the app/asset.\n */\n creator: Address\n /**\n * Keeps track of how many times this app/asset appears in accountUpdates.creatableDeltas.\n */\n nDeltas: number\n}\n\nexport const LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable> = {\n name: 'LedgerModifiedCreatable',\n kind: 'object',\n fields: [\n { name: 'creatableType', wireKey: 'Ctype', optional: false, codec: numberCodec },\n { name: 'created', wireKey: 'Created', optional: false, codec: booleanCodec },\n { name: 'creator', wireKey: 'Creator', optional: false, codec: addressCodec },\n { name: 'ndeltas', wireKey: 'Ndeltas', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a total of algos of a certain class of accounts (split up by their Status value).\n */\nexport type LedgerAlgoCount = {\n /**\n * Sum of algos of all accounts in this scope.\n */\n money: bigint\n /**\n * Total number of whole reward units in accounts.\n */\n rewardUnits: bigint\n}\n\nexport const LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount> = {\n name: 'LedgerAlgoCount',\n kind: 'object',\n fields: [\n { name: 'money', wireKey: 'mon', optional: false, codec: bigIntCodec },\n { name: 'rewardUnits', wireKey: 'rwd', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Represents the totals of algos in the system grouped by different account status values.\n */\nexport type LedgerAccountTotals = {\n online: LedgerAlgoCount\n offline: LedgerAlgoCount\n notParticipating: LedgerAlgoCount\n /**\n * Total number of algos received per reward unit since genesis.\n */\n rewardsLevel: bigint\n}\n\nexport const LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals> = {\n name: 'LedgerAccountTotals',\n kind: 'object',\n fields: [\n { name: 'online', wireKey: 'online', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'offline', wireKey: 'offline', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'notParticipating', wireKey: 'notpart', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'rewardsLevel', wireKey: 'rwdlvl', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Describes the delta between a given round to the previous round.\n */\nexport type LedgerStateDelta = {\n /**\n * Modified new accounts.\n */\n accounts: LedgerAccountDeltas\n /**\n * Block header.\n */\n block: Block\n /**\n * Represents modification on StateProofNextRound field in the block header. If the block contains\n * a valid state proof transaction, this field will contain the next round for state proof.\n * otherwise it will be set to 0.\n */\n stateProofNext: bigint\n /**\n * Previous block timestamp\n */\n prevTimestamp: bigint\n /**\n * The account totals reflecting the changes in this StateDelta object.\n */\n totals: LedgerAccountTotals\n /**\n * Modified kv pairs.\n */\n kvMods?: Map<Uint8Array, LedgerKvValueDelta>\n /**\n * New Txids for the txtail and TxnCounter, mapped to txn.LastValid.\n */\n txIds?: Map<Uint8Array, LedgerIncludedTransactions>\n /**\n * New creatables creator lookup table.\n */\n creatables?: Map<number, LedgerModifiedCreatable>\n}\n\nexport const LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta> = {\n name: 'LedgerStateDelta',\n kind: 'object',\n fields: [\n { name: 'accounts', wireKey: 'Accts', optional: false, codec: new ObjectModelCodec(LedgerAccountDeltasMeta) },\n { name: 'block', wireKey: 'Hdr', optional: false, codec: new ObjectModelCodec(BlockMeta) },\n { name: 'stateProofNext', wireKey: 'StateProofNext', optional: false, codec: bigIntCodec },\n { name: 'prevTimestamp', wireKey: 'PrevTimestamp', optional: false, codec: bigIntCodec },\n { name: 'totals', wireKey: 'Totals', optional: false, codec: new ObjectModelCodec(LedgerAccountTotalsMeta) },\n {\n name: 'kvMods',\n wireKey: 'KvMods',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerKvValueDeltaMeta)),\n },\n {\n name: 'txIds',\n wireKey: 'Txids',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerIncludedTransactionsMeta)),\n },\n {\n name: 'creatables',\n wireKey: 'Creatables',\n optional: true,\n codec: new MapCodec(numberCodec, new ObjectModelCodec(LedgerModifiedCreatableMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAaA,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAO,OAAOC;GAAa;EACpE;GAAE,MAAM;GAAS,SAAS;GAAM,UAAU;GAAM,OAAOC;GAAY;EACnE;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAM,OAAOC;GAAa;EACpE;CACF;AAYD,MAAaC,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAY,SAAS;EAAO,UAAU;EAAM,OAAOD;EAAa,EACxE;E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,SAAS;GAAkB,UAAU;GAAO,OAAO7B;GAAa;EAC1F;GAAE,MAAM;GAAiB,SAAS;GAAiB,UAAU;GAAO,OAAOA;GAAa;EACxF;GAAE,MAAM;GAAU,SAAS;GAAU,UAAU;GAAO,OAAO,IAAIG,sCAAiB,wBAAwB;GAAE;EAC5G;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIE,qBAASN,0BAAY,IAAII,sCAAiB,uBAAuB,CAAC;GAC9E;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIE,qBAASN,0BAAY,IAAII,sCAAiB,+BAA+B,CAAC;GACtF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIE,qBAASP,4BAAa,IAAIK,sCAAiB,4BAA4B,CAAC;GACpF;EACF;CACF"}
|
|
1
|
+
{"version":3,"file":"ledger-state-delta.js","names":["LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue>","numberCodec","bytesCodec","bigIntCodec","LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema>","LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams>","ObjectModelCodec","addressCodec","MapCodec","LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState>","LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta>","booleanCodec","LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta>","LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord>","LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding>","LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta>","LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams>","stringCodec","LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta>","LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord>","LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData>","LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData>","LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData>","LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord>","LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas>","ArrayCodec","LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta>","LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions>","LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable>","LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount>","LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals>","LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta>","blockCodec"],"sources":["../../../../../packages/algod_client/src/models/ledger-state-delta.ts"],"sourcesContent":["import type { Block } from './block'\nimport { blockCodec } from './block'\nimport {\n numberCodec,\n bigIntCodec,\n booleanCodec,\n stringCodec,\n bytesCodec,\n addressCodec,\n Address,\n ArrayCodec,\n MapCodec,\n ObjectModelCodec,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\n/**\n * Contains type information and a value, representing a value in a TEAL program.\n */\nexport type LedgerTealValue = {\n /**\n * Type determines the type of the value.\n * * 1 represents the type of a byte slice in a TEAL program\n * * 2 represents the type of an unsigned integer in a TEAL program\n */\n type: number\n /** bytes value. */\n bytes?: Uint8Array\n /** uint value. */\n uint?: bigint\n}\n\nexport const LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue> = {\n name: 'LedgerTealValue',\n kind: 'object',\n fields: [\n { name: 'type', wireKey: 'tt', optional: false, codec: numberCodec },\n { name: 'bytes', wireKey: 'tb', optional: true, codec: bytesCodec },\n { name: 'uint', wireKey: 'ui', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Sets maximums on the number of each type that may be stored.\n */\nexport type LedgerStateSchema = {\n /** Number of uints in state. */\n numUints?: bigint\n /** Number of byte slices in state. */\n numByteSlices?: bigint\n}\n\nexport const LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema> = {\n name: 'LedgerStateSchema',\n kind: 'object',\n fields: [\n { name: 'numUints', wireKey: 'nui', optional: true, codec: bigIntCodec },\n { name: 'numByteSlices', wireKey: 'nbs', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Stores the global information associated with an application.\n */\nexport type LedgerAppParams = {\n approvalProgram: Uint8Array\n clearStateProgram: Uint8Array\n localStateSchema: LedgerStateSchema\n globalStateSchema: LedgerStateSchema\n extraProgramPages: number\n version?: number\n sizeSponsor?: Address\n globalState?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams> = {\n name: 'LedgerAppParams',\n kind: 'object',\n fields: [\n { name: 'approvalProgram', wireKey: 'approv', optional: false, codec: bytesCodec },\n { name: 'clearStateProgram', wireKey: 'clearp', optional: false, codec: bytesCodec },\n { name: 'localStateSchema', wireKey: 'lsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'globalStateSchema', wireKey: 'gsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'extraProgramPages', wireKey: 'epp', optional: false, codec: numberCodec },\n { name: 'version', wireKey: 'v', optional: true, codec: numberCodec },\n { name: 'sizeSponsor', wireKey: 'ss', optional: true, codec: addressCodec },\n {\n name: 'globalState',\n wireKey: 'gs',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Stores the LocalState associated with an application.\n */\nexport type LedgerAppLocalState = {\n schema: LedgerStateSchema\n keyValue?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState> = {\n name: 'LedgerAppLocalState',\n kind: 'object',\n fields: [\n { name: 'schema', wireKey: 'hsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n {\n name: 'keyValue',\n wireKey: 'tkv',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Tracks a changed AppLocalState, and whether it was deleted.\n */\nexport type LedgerAppLocalStateDelta = {\n deleted: boolean\n localState?: LedgerAppLocalState\n}\n\nexport const LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta> = {\n name: 'LedgerAppLocalStateDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'localState', wireKey: 'LocalState', optional: true, codec: new ObjectModelCodec(LedgerAppLocalStateMeta) },\n ],\n}\n\n/**\n * Tracks a changed AppParams, and whether it was deleted.\n */\nexport type LedgerAppParamsDelta = {\n deleted: boolean\n params?: LedgerAppParams\n}\n\nexport const LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta> = {\n name: 'LedgerAppParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAppParamsMeta) },\n ],\n}\n\n/**\n * Represents AppParams and AppLocalState in deltas.\n */\nexport type LedgerAppResourceRecord = {\n appId: bigint\n address: Address\n params: LedgerAppParamsDelta\n state: LedgerAppLocalStateDelta\n}\n\nexport const LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord> = {\n name: 'LedgerAppResourceRecord',\n kind: 'object',\n fields: [\n { name: 'appId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAppParamsDeltaMeta) },\n { name: 'state', wireKey: 'State', optional: false, codec: new ObjectModelCodec(LedgerAppLocalStateDeltaMeta) },\n ],\n}\n\n/**\n * Describes an asset held by an account.\n */\nexport type LedgerAssetHolding = {\n amount: bigint\n frozen: boolean\n}\n\nexport const LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding> = {\n name: 'LedgerAssetHolding',\n kind: 'object',\n fields: [\n { name: 'amount', wireKey: 'a', optional: false, codec: bigIntCodec },\n { name: 'frozen', wireKey: 'f', optional: false, codec: booleanCodec },\n ],\n}\n\n/**\n * Records a changed AssetHolding, and whether it was deleted.\n */\nexport type LedgerAssetHoldingDelta = {\n deleted: boolean\n holding?: LedgerAssetHolding\n}\n\nexport const LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta> = {\n name: 'LedgerAssetHoldingDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'holding', wireKey: 'Holding', optional: true, codec: new ObjectModelCodec(LedgerAssetHoldingMeta) },\n ],\n}\n\n/**\n * Describes the parameters of an asset.\n */\nexport type LedgerAssetParams = {\n /**\n * Specifies the total number of units of this asset created.\n */\n total: bigint\n /**\n * Specifies the number of digits to display after the decimal place when displaying this asset.\n * A value of 0 represents an asset that is not divisible, a value of 1 represents an asset divisible into tenths, and so on.\n * This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n /**\n * Specifies whether slots for this asset in user accounts are frozen by default or not.\n */\n defaultFrozen: boolean\n /**\n * Specifies a hint for the name of a unit of this asset.\n */\n unitName?: string\n /**\n * Specifies a hint for the name of the asset.\n */\n assetName?: string\n /**\n * Specifies a URL where more information about the asset can be retrieved.\n */\n url?: string\n /**\n * Specifies a commitment to some unspecified asset metadata. The format of this\n * metadata is up to the application.\n */\n metadataHash?: Uint8Array\n /**\n * Manager specifies an account that is allowed to change the non-zero addresses in this AssetParams.\n */\n manager?: Address\n /**\n * Specifies an account whose holdings of this asset should be reported as \"not minted\".\n */\n reserve?: Address\n /**\n * Specifies an account that is allowed to change the frozen state of holdings of this asset.\n */\n freeze?: Address\n /**\n * Specifies an account that is allowed to take units of this asset from any account.\n */\n clawback?: Address\n}\n\nexport const LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams> = {\n name: 'LedgerAssetParams',\n kind: 'object',\n fields: [\n { name: 'total', wireKey: 't', optional: false, codec: bigIntCodec },\n { name: 'decimals', wireKey: 'dc', optional: false, codec: numberCodec },\n { name: 'defaultFrozen', wireKey: 'df', optional: false, codec: booleanCodec },\n { name: 'unitName', wireKey: 'un', optional: true, codec: stringCodec },\n { name: 'assetName', wireKey: 'an', optional: true, codec: stringCodec },\n { name: 'url', wireKey: 'au', optional: true, codec: stringCodec },\n { name: 'metadataHash', wireKey: 'am', optional: true, codec: bytesCodec },\n { name: 'manager', wireKey: 'm', optional: true, codec: addressCodec },\n { name: 'reserve', wireKey: 'r', optional: true, codec: addressCodec },\n { name: 'freeze', wireKey: 'f', optional: true, codec: addressCodec },\n { name: 'clawback', wireKey: 'c', optional: true, codec: addressCodec },\n ],\n}\n\n/**\n * Tracks a changed asset params, and whether it was deleted.\n */\nexport type LedgerAssetParamsDelta = {\n deleted: boolean\n params?: LedgerAssetParams\n}\n\nexport const LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta> = {\n name: 'LedgerAssetParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAssetParamsMeta) },\n ],\n}\n\n/**\n * Represents asset params and asset holding in deltas.\n */\nexport type LedgerAssetResourceRecord = {\n assetId: bigint\n address: Address\n params: LedgerAssetParamsDelta\n holding: LedgerAssetHoldingDelta\n}\n\nexport const LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord> = {\n name: 'LedgerAssetResourceRecord',\n kind: 'object',\n fields: [\n { name: 'assetId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAssetParamsDeltaMeta) },\n { name: 'holding', wireKey: 'Holding', optional: false, codec: new ObjectModelCodec(LedgerAssetHoldingDeltaMeta) },\n ],\n}\n\n/**\n * Holds participation information.\n */\nexport type LedgerVotingData = {\n voteId: Uint8Array\n selectionId: Uint8Array\n stateProofId: Uint8Array\n voteFirstValid: bigint\n voteLastValid: bigint\n voteKeyDilution: bigint\n}\n\nexport const LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData> = {\n name: 'LedgerVotingData',\n kind: 'object',\n fields: [\n { name: 'voteId', wireKey: 'VoteID', optional: false, codec: bytesCodec },\n { name: 'selectionId', wireKey: 'SelectionID', optional: false, codec: bytesCodec },\n { name: 'stateProofId', wireKey: 'StateProofID', optional: false, codec: bytesCodec },\n { name: 'voteFirstValid', wireKey: 'VoteFirstValid', optional: false, codec: bigIntCodec },\n { name: 'voteLastValid', wireKey: 'VoteLastValid', optional: false, codec: bigIntCodec },\n { name: 'voteKeyDilution', wireKey: 'VoteKeyDilution', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Contains base account info like balance, status and total number of resources.\n */\nexport type LedgerAccountBaseData = {\n /**\n * Account status. Values are:\n * * 0: Offline\n * * 1: Online\n * * 2: NotParticipating\n */\n status: number\n microAlgos: bigint\n rewardsBase: bigint\n rewardedMicroAlgos: bigint\n authAddress: Address\n incentiveEligible: boolean\n /**\n * Totals across created globals, and opted in locals.\n */\n totalAppSchema: LedgerStateSchema\n /**\n * Total number of extra pages across all created apps.\n */\n totalExtraAppPages: number\n /**\n * Total number of apps this account has created.\n */\n totalAppParams: number\n /**\n * Total number of apps this account is opted into.\n */\n totalAppLocalStates: number\n /**\n * Total number of assets created by this account.\n */\n totalAssetParams: number\n /**\n * Total of asset creations and optins (i.e. number of holdings).\n */\n totalAssets: number\n /**\n * Total number of boxes associated to this account.\n */\n totalBoxes: bigint\n /**\n * Total bytes for this account's boxes. keys and values count.\n */\n totalBoxBytes: bigint\n /**\n * The last round that this account proposed the winning block.\n */\n lastProposed: bigint\n /**\n * The last round that this account sent a heartbeat to show it was online.\n */\n lastHeartbeat: bigint\n}\n\nexport const LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData> = {\n name: 'LedgerAccountBaseData',\n kind: 'object',\n fields: [\n { name: 'status', wireKey: 'Status', optional: false, codec: numberCodec },\n { name: 'microAlgos', wireKey: 'MicroAlgos', optional: false, codec: bigIntCodec },\n { name: 'rewardsBase', wireKey: 'RewardsBase', optional: false, codec: bigIntCodec },\n {\n name: 'rewardedMicroAlgos',\n wireKey: 'RewardedMicroAlgos',\n optional: false,\n codec: bigIntCodec,\n },\n { name: 'authAddress', wireKey: 'AuthAddr', optional: false, codec: addressCodec },\n { name: 'incentiveEligible', wireKey: 'IncentiveEligible', optional: false, codec: booleanCodec },\n {\n name: 'totalAppSchema',\n wireKey: 'TotalAppSchema',\n optional: false,\n codec: new ObjectModelCodec(LedgerStateSchemaMeta),\n },\n { name: 'totalExtraAppPages', wireKey: 'TotalExtraAppPages', optional: false, codec: numberCodec },\n { name: 'totalAppParams', wireKey: 'TotalAppParams', optional: false, codec: numberCodec },\n { name: 'totalAppLocalStates', wireKey: 'TotalAppLocalStates', optional: false, codec: numberCodec },\n { name: 'totalAssetParams', wireKey: 'TotalAssetParams', optional: false, codec: numberCodec },\n { name: 'totalAssets', wireKey: 'TotalAssets', optional: false, codec: numberCodec },\n { name: 'totalBoxes', wireKey: 'TotalBoxes', optional: false, codec: bigIntCodec },\n { name: 'totalBoxBytes', wireKey: 'TotalBoxBytes', optional: false, codec: bigIntCodec },\n { name: 'lastProposed', wireKey: 'LastProposed', optional: false, codec: bigIntCodec },\n { name: 'lastHeartbeat', wireKey: 'LastHeartbeat', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Provides per-account data.\n */\nexport type LedgerAccountData = {\n accountBaseData: LedgerAccountBaseData\n votingData: LedgerVotingData\n}\n\nexport const LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData> = {\n name: 'LedgerAccountData',\n kind: 'object',\n fields: [\n {\n name: 'accountBaseData',\n flattened: true,\n optional: false,\n codec: new ObjectModelCodec(LedgerAccountBaseDataMeta),\n },\n { name: 'votingData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerVotingDataMeta) },\n ],\n}\n\nexport type LedgerBalanceRecord = {\n address: Address\n accountData: LedgerAccountData\n}\n\nexport const LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord> = {\n name: 'LedgerBalanceRecord',\n kind: 'object',\n fields: [\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'accountData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerAccountDataMeta) },\n ],\n}\n\nexport type LedgerAccountDeltas = {\n accounts?: LedgerBalanceRecord[]\n appResources?: LedgerAppResourceRecord[]\n assetResources?: LedgerAssetResourceRecord[]\n}\n\nexport const LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas> = {\n name: 'LedgerAccountDeltas',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'Accts',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerBalanceRecordMeta)),\n },\n {\n name: 'appResources',\n wireKey: 'AppResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAppResourceRecordMeta)),\n },\n {\n name: 'assetResources',\n wireKey: 'AssetResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAssetResourceRecordMeta)),\n },\n ],\n}\n\n/**\n * Shows how the data associated with a key in the kvstore has changed.\n */\nexport type LedgerKvValueDelta = {\n /**\n * Stores the most recent value (undefined means deleted).\n */\n data?: Uint8Array\n /**\n * Stores the previous value (undefined means didn't exist).\n */\n oldData?: Uint8Array\n}\n\nexport const LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta> = {\n name: 'LedgerKvValueDelta',\n kind: 'object',\n fields: [\n { name: 'data', wireKey: 'Data', optional: true, codec: bytesCodec },\n { name: 'oldData', wireKey: 'OldData', optional: true, codec: bytesCodec },\n ],\n}\n\n/**\n * Defines the transactions included in a block, their index and last valid round.\n */\nexport type LedgerIncludedTransactions = {\n lastValid: bigint\n /**\n * The index of the transaction in the block.\n */\n intra: number\n}\n\nexport const LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions> = {\n name: 'LedgerIncludedTransactions',\n kind: 'object',\n fields: [\n { name: 'lastValid', wireKey: 'LastValid', optional: false, codec: bigIntCodec },\n { name: 'intra', wireKey: 'Intra', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a change to a single creatable state.\n */\nexport type LedgerModifiedCreatable = {\n /**\n * Type of the creatable. The values are:\n * * 0: Asset\n * * 1: Application\n */\n creatableType: number\n /**\n * Created if true, deleted if false.\n */\n created: boolean\n /**\n * Creator of the app/asset.\n */\n creator: Address\n /**\n * Keeps track of how many times this app/asset appears in accountUpdates.creatableDeltas.\n */\n nDeltas: number\n}\n\nexport const LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable> = {\n name: 'LedgerModifiedCreatable',\n kind: 'object',\n fields: [\n { name: 'creatableType', wireKey: 'Ctype', optional: false, codec: numberCodec },\n { name: 'created', wireKey: 'Created', optional: false, codec: booleanCodec },\n { name: 'creator', wireKey: 'Creator', optional: false, codec: addressCodec },\n { name: 'ndeltas', wireKey: 'Ndeltas', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a total of algos of a certain class of accounts (split up by their Status value).\n */\nexport type LedgerAlgoCount = {\n /**\n * Sum of algos of all accounts in this scope.\n */\n money: bigint\n /**\n * Total number of whole reward units in accounts.\n */\n rewardUnits: bigint\n}\n\nexport const LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount> = {\n name: 'LedgerAlgoCount',\n kind: 'object',\n fields: [\n { name: 'money', wireKey: 'mon', optional: false, codec: bigIntCodec },\n { name: 'rewardUnits', wireKey: 'rwd', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Represents the totals of algos in the system grouped by different account status values.\n */\nexport type LedgerAccountTotals = {\n online: LedgerAlgoCount\n offline: LedgerAlgoCount\n notParticipating: LedgerAlgoCount\n /**\n * Total number of algos received per reward unit since genesis.\n */\n rewardsLevel: bigint\n}\n\nexport const LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals> = {\n name: 'LedgerAccountTotals',\n kind: 'object',\n fields: [\n { name: 'online', wireKey: 'online', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'offline', wireKey: 'offline', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'notParticipating', wireKey: 'notpart', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'rewardsLevel', wireKey: 'rwdlvl', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Describes the delta between a given round to the previous round.\n */\nexport type LedgerStateDelta = {\n /**\n * Modified new accounts.\n */\n accounts: LedgerAccountDeltas\n /**\n * Block header.\n */\n block: Block\n /**\n * Represents modification on StateProofNextRound field in the block header. If the block contains\n * a valid state proof transaction, this field will contain the next round for state proof.\n * otherwise it will be set to 0.\n */\n stateProofNext: bigint\n /**\n * Previous block timestamp\n */\n prevTimestamp: bigint\n /**\n * The account totals reflecting the changes in this StateDelta object.\n */\n totals: LedgerAccountTotals\n /**\n * Modified kv pairs.\n */\n kvMods?: Map<Uint8Array, LedgerKvValueDelta>\n /**\n * New Txids for the txtail and TxnCounter, mapped to txn.LastValid.\n */\n txIds?: Map<Uint8Array, LedgerIncludedTransactions>\n /**\n * New creatables creator lookup table.\n */\n creatables?: Map<number, LedgerModifiedCreatable>\n}\n\nexport const LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta> = {\n name: 'LedgerStateDelta',\n kind: 'object',\n fields: [\n { name: 'accounts', wireKey: 'Accts', optional: false, codec: new ObjectModelCodec(LedgerAccountDeltasMeta) },\n { name: 'block', wireKey: 'Hdr', optional: false, codec: blockCodec },\n { name: 'stateProofNext', wireKey: 'StateProofNext', optional: false, codec: bigIntCodec },\n { name: 'prevTimestamp', wireKey: 'PrevTimestamp', optional: false, codec: bigIntCodec },\n { name: 'totals', wireKey: 'Totals', optional: false, codec: new ObjectModelCodec(LedgerAccountTotalsMeta) },\n {\n name: 'kvMods',\n wireKey: 'KvMods',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerKvValueDeltaMeta)),\n },\n {\n name: 'txIds',\n wireKey: 'Txids',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerIncludedTransactionsMeta)),\n },\n {\n name: 'creatables',\n wireKey: 'Creatables',\n optional: true,\n codec: new MapCodec(numberCodec, new ObjectModelCodec(LedgerModifiedCreatableMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAaA,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAO,OAAOC;GAAa;EACpE;GAAE,MAAM;GAAS,SAAS;GAAM,UAAU;GAAM,OAAOC;GAAY;EACnE;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAM,OAAOC;GAAa;EACpE;CACF;AAYD,MAAaC,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAY,SAAS;EAAO,UAAU;EAAM,OAAOD;EAAa,EACxE;EAAE,MAAM;EAAiB,SAAS;EAAO,UAAU;EAAM,OAAOA;EAAa,CAC9E;CACF;AAgBD,MAAaE,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAmB,SAAS;GAAU,UAAU;GAAO,OAAOH;GAAY;EAClF;GAAE,MAAM;GAAqB,SAAS;GAAU,UAAU;GAAO,OAAOA;GAAY;EACpF;GAAE,MAAM;GAAoB,SAAS;G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E,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIE,qBAASN,0BAAY,IAAII,sCAAiB,+BAA+B,CAAC;GACtF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIE,qBAASP,4BAAa,IAAIK,sCAAiB,4BAA4B,CAAC;GACpF;EACF;CACF"}
|
|
@@ -7,7 +7,7 @@ import { stringCodec } from "../../../common/src/codecs/primitives/string.mjs";
|
|
|
7
7
|
import { ArrayCodec } from "../../../common/src/codecs/composite/array.mjs";
|
|
8
8
|
import { MapCodec } from "../../../common/src/codecs/composite/map.mjs";
|
|
9
9
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { blockCodec } from "./block.mjs";
|
|
11
11
|
|
|
12
12
|
//#region packages/algod_client/src/models/ledger-state-delta.ts
|
|
13
13
|
const LedgerTealValueMeta = {
|
|
@@ -642,7 +642,7 @@ const LedgerStateDeltaMeta = {
|
|
|
642
642
|
name: "block",
|
|
643
643
|
wireKey: "Hdr",
|
|
644
644
|
optional: false,
|
|
645
|
-
codec:
|
|
645
|
+
codec: blockCodec
|
|
646
646
|
},
|
|
647
647
|
{
|
|
648
648
|
name: "stateProofNext",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-state-delta.mjs","names":["LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue>","LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema>","LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams>","LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState>","LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta>","LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta>","LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord>","LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding>","LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta>","LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams>","LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta>","LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord>","LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData>","LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData>","LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData>","LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord>","LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas>","LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta>","LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions>","LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable>","LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount>","LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals>","LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta>"],"sources":["../../../../../packages/algod_client/src/models/ledger-state-delta.ts"],"sourcesContent":["import type { Block } from './block'\nimport { BlockMeta } from './block'\nimport {\n numberCodec,\n bigIntCodec,\n booleanCodec,\n stringCodec,\n bytesCodec,\n addressCodec,\n Address,\n ArrayCodec,\n MapCodec,\n ObjectModelCodec,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\n/**\n * Contains type information and a value, representing a value in a TEAL program.\n */\nexport type LedgerTealValue = {\n /**\n * Type determines the type of the value.\n * * 1 represents the type of a byte slice in a TEAL program\n * * 2 represents the type of an unsigned integer in a TEAL program\n */\n type: number\n /** bytes value. */\n bytes?: Uint8Array\n /** uint value. */\n uint?: bigint\n}\n\nexport const LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue> = {\n name: 'LedgerTealValue',\n kind: 'object',\n fields: [\n { name: 'type', wireKey: 'tt', optional: false, codec: numberCodec },\n { name: 'bytes', wireKey: 'tb', optional: true, codec: bytesCodec },\n { name: 'uint', wireKey: 'ui', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Sets maximums on the number of each type that may be stored.\n */\nexport type LedgerStateSchema = {\n /** Number of uints in state. */\n numUints?: bigint\n /** Number of byte slices in state. */\n numByteSlices?: bigint\n}\n\nexport const LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema> = {\n name: 'LedgerStateSchema',\n kind: 'object',\n fields: [\n { name: 'numUints', wireKey: 'nui', optional: true, codec: bigIntCodec },\n { name: 'numByteSlices', wireKey: 'nbs', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Stores the global information associated with an application.\n */\nexport type LedgerAppParams = {\n approvalProgram: Uint8Array\n clearStateProgram: Uint8Array\n localStateSchema: LedgerStateSchema\n globalStateSchema: LedgerStateSchema\n extraProgramPages: number\n version?: number\n sizeSponsor?: Address\n globalState?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams> = {\n name: 'LedgerAppParams',\n kind: 'object',\n fields: [\n { name: 'approvalProgram', wireKey: 'approv', optional: false, codec: bytesCodec },\n { name: 'clearStateProgram', wireKey: 'clearp', optional: false, codec: bytesCodec },\n { name: 'localStateSchema', wireKey: 'lsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'globalStateSchema', wireKey: 'gsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'extraProgramPages', wireKey: 'epp', optional: false, codec: numberCodec },\n { name: 'version', wireKey: 'v', optional: true, codec: numberCodec },\n { name: 'sizeSponsor', wireKey: 'ss', optional: true, codec: addressCodec },\n {\n name: 'globalState',\n wireKey: 'gs',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Stores the LocalState associated with an application.\n */\nexport type LedgerAppLocalState = {\n schema: LedgerStateSchema\n keyValue?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState> = {\n name: 'LedgerAppLocalState',\n kind: 'object',\n fields: [\n { name: 'schema', wireKey: 'hsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n {\n name: 'keyValue',\n wireKey: 'tkv',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Tracks a changed AppLocalState, and whether it was deleted.\n */\nexport type LedgerAppLocalStateDelta = {\n deleted: boolean\n localState?: LedgerAppLocalState\n}\n\nexport const LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta> = {\n name: 'LedgerAppLocalStateDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'localState', wireKey: 'LocalState', optional: true, codec: new ObjectModelCodec(LedgerAppLocalStateMeta) },\n ],\n}\n\n/**\n * Tracks a changed AppParams, and whether it was deleted.\n */\nexport type LedgerAppParamsDelta = {\n deleted: boolean\n params?: LedgerAppParams\n}\n\nexport const LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta> = {\n name: 'LedgerAppParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAppParamsMeta) },\n ],\n}\n\n/**\n * Represents AppParams and AppLocalState in deltas.\n */\nexport type LedgerAppResourceRecord = {\n appId: bigint\n address: Address\n params: LedgerAppParamsDelta\n state: LedgerAppLocalStateDelta\n}\n\nexport const LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord> = {\n name: 'LedgerAppResourceRecord',\n kind: 'object',\n fields: [\n { name: 'appId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAppParamsDeltaMeta) },\n { name: 'state', wireKey: 'State', optional: false, codec: new ObjectModelCodec(LedgerAppLocalStateDeltaMeta) },\n ],\n}\n\n/**\n * Describes an asset held by an account.\n */\nexport type LedgerAssetHolding = {\n amount: bigint\n frozen: boolean\n}\n\nexport const LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding> = {\n name: 'LedgerAssetHolding',\n kind: 'object',\n fields: [\n { name: 'amount', wireKey: 'a', optional: false, codec: bigIntCodec },\n { name: 'frozen', wireKey: 'f', optional: false, codec: booleanCodec },\n ],\n}\n\n/**\n * Records a changed AssetHolding, and whether it was deleted.\n */\nexport type LedgerAssetHoldingDelta = {\n deleted: boolean\n holding?: LedgerAssetHolding\n}\n\nexport const LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta> = {\n name: 'LedgerAssetHoldingDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'holding', wireKey: 'Holding', optional: true, codec: new ObjectModelCodec(LedgerAssetHoldingMeta) },\n ],\n}\n\n/**\n * Describes the parameters of an asset.\n */\nexport type LedgerAssetParams = {\n /**\n * Specifies the total number of units of this asset created.\n */\n total: bigint\n /**\n * Specifies the number of digits to display after the decimal place when displaying this asset.\n * A value of 0 represents an asset that is not divisible, a value of 1 represents an asset divisible into tenths, and so on.\n * This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n /**\n * Specifies whether slots for this asset in user accounts are frozen by default or not.\n */\n defaultFrozen: boolean\n /**\n * Specifies a hint for the name of a unit of this asset.\n */\n unitName?: string\n /**\n * Specifies a hint for the name of the asset.\n */\n assetName?: string\n /**\n * Specifies a URL where more information about the asset can be retrieved.\n */\n url?: string\n /**\n * Specifies a commitment to some unspecified asset metadata. The format of this\n * metadata is up to the application.\n */\n metadataHash?: Uint8Array\n /**\n * Manager specifies an account that is allowed to change the non-zero addresses in this AssetParams.\n */\n manager?: Address\n /**\n * Specifies an account whose holdings of this asset should be reported as \"not minted\".\n */\n reserve?: Address\n /**\n * Specifies an account that is allowed to change the frozen state of holdings of this asset.\n */\n freeze?: Address\n /**\n * Specifies an account that is allowed to take units of this asset from any account.\n */\n clawback?: Address\n}\n\nexport const LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams> = {\n name: 'LedgerAssetParams',\n kind: 'object',\n fields: [\n { name: 'total', wireKey: 't', optional: false, codec: bigIntCodec },\n { name: 'decimals', wireKey: 'dc', optional: false, codec: numberCodec },\n { name: 'defaultFrozen', wireKey: 'df', optional: false, codec: booleanCodec },\n { name: 'unitName', wireKey: 'un', optional: true, codec: stringCodec },\n { name: 'assetName', wireKey: 'an', optional: true, codec: stringCodec },\n { name: 'url', wireKey: 'au', optional: true, codec: stringCodec },\n { name: 'metadataHash', wireKey: 'am', optional: true, codec: bytesCodec },\n { name: 'manager', wireKey: 'm', optional: true, codec: addressCodec },\n { name: 'reserve', wireKey: 'r', optional: true, codec: addressCodec },\n { name: 'freeze', wireKey: 'f', optional: true, codec: addressCodec },\n { name: 'clawback', wireKey: 'c', optional: true, codec: addressCodec },\n ],\n}\n\n/**\n * Tracks a changed asset params, and whether it was deleted.\n */\nexport type LedgerAssetParamsDelta = {\n deleted: boolean\n params?: LedgerAssetParams\n}\n\nexport const LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta> = {\n name: 'LedgerAssetParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAssetParamsMeta) },\n ],\n}\n\n/**\n * Represents asset params and asset holding in deltas.\n */\nexport type LedgerAssetResourceRecord = {\n assetId: bigint\n address: Address\n params: LedgerAssetParamsDelta\n holding: LedgerAssetHoldingDelta\n}\n\nexport const LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord> = {\n name: 'LedgerAssetResourceRecord',\n kind: 'object',\n fields: [\n { name: 'assetId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAssetParamsDeltaMeta) },\n { name: 'holding', wireKey: 'Holding', optional: false, codec: new ObjectModelCodec(LedgerAssetHoldingDeltaMeta) },\n ],\n}\n\n/**\n * Holds participation information.\n */\nexport type LedgerVotingData = {\n voteId: Uint8Array\n selectionId: Uint8Array\n stateProofId: Uint8Array\n voteFirstValid: bigint\n voteLastValid: bigint\n voteKeyDilution: bigint\n}\n\nexport const LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData> = {\n name: 'LedgerVotingData',\n kind: 'object',\n fields: [\n { name: 'voteId', wireKey: 'VoteID', optional: false, codec: bytesCodec },\n { name: 'selectionId', wireKey: 'SelectionID', optional: false, codec: bytesCodec },\n { name: 'stateProofId', wireKey: 'StateProofID', optional: false, codec: bytesCodec },\n { name: 'voteFirstValid', wireKey: 'VoteFirstValid', optional: false, codec: bigIntCodec },\n { name: 'voteLastValid', wireKey: 'VoteLastValid', optional: false, codec: bigIntCodec },\n { name: 'voteKeyDilution', wireKey: 'VoteKeyDilution', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Contains base account info like balance, status and total number of resources.\n */\nexport type LedgerAccountBaseData = {\n /**\n * Account status. Values are:\n * * 0: Offline\n * * 1: Online\n * * 2: NotParticipating\n */\n status: number\n microAlgos: bigint\n rewardsBase: bigint\n rewardedMicroAlgos: bigint\n authAddress: Address\n incentiveEligible: boolean\n /**\n * Totals across created globals, and opted in locals.\n */\n totalAppSchema: LedgerStateSchema\n /**\n * Total number of extra pages across all created apps.\n */\n totalExtraAppPages: number\n /**\n * Total number of apps this account has created.\n */\n totalAppParams: number\n /**\n * Total number of apps this account is opted into.\n */\n totalAppLocalStates: number\n /**\n * Total number of assets created by this account.\n */\n totalAssetParams: number\n /**\n * Total of asset creations and optins (i.e. number of holdings).\n */\n totalAssets: number\n /**\n * Total number of boxes associated to this account.\n */\n totalBoxes: bigint\n /**\n * Total bytes for this account's boxes. keys and values count.\n */\n totalBoxBytes: bigint\n /**\n * The last round that this account proposed the winning block.\n */\n lastProposed: bigint\n /**\n * The last round that this account sent a heartbeat to show it was online.\n */\n lastHeartbeat: bigint\n}\n\nexport const LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData> = {\n name: 'LedgerAccountBaseData',\n kind: 'object',\n fields: [\n { name: 'status', wireKey: 'Status', optional: false, codec: numberCodec },\n { name: 'microAlgos', wireKey: 'MicroAlgos', optional: false, codec: bigIntCodec },\n { name: 'rewardsBase', wireKey: 'RewardsBase', optional: false, codec: bigIntCodec },\n {\n name: 'rewardedMicroAlgos',\n wireKey: 'RewardedMicroAlgos',\n optional: false,\n codec: bigIntCodec,\n },\n { name: 'authAddress', wireKey: 'AuthAddr', optional: false, codec: addressCodec },\n { name: 'incentiveEligible', wireKey: 'IncentiveEligible', optional: false, codec: booleanCodec },\n {\n name: 'totalAppSchema',\n wireKey: 'TotalAppSchema',\n optional: false,\n codec: new ObjectModelCodec(LedgerStateSchemaMeta),\n },\n { name: 'totalExtraAppPages', wireKey: 'TotalExtraAppPages', optional: false, codec: numberCodec },\n { name: 'totalAppParams', wireKey: 'TotalAppParams', optional: false, codec: numberCodec },\n { name: 'totalAppLocalStates', wireKey: 'TotalAppLocalStates', optional: false, codec: numberCodec },\n { name: 'totalAssetParams', wireKey: 'TotalAssetParams', optional: false, codec: numberCodec },\n { name: 'totalAssets', wireKey: 'TotalAssets', optional: false, codec: numberCodec },\n { name: 'totalBoxes', wireKey: 'TotalBoxes', optional: false, codec: bigIntCodec },\n { name: 'totalBoxBytes', wireKey: 'TotalBoxBytes', optional: false, codec: bigIntCodec },\n { name: 'lastProposed', wireKey: 'LastProposed', optional: false, codec: bigIntCodec },\n { name: 'lastHeartbeat', wireKey: 'LastHeartbeat', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Provides per-account data.\n */\nexport type LedgerAccountData = {\n accountBaseData: LedgerAccountBaseData\n votingData: LedgerVotingData\n}\n\nexport const LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData> = {\n name: 'LedgerAccountData',\n kind: 'object',\n fields: [\n {\n name: 'accountBaseData',\n flattened: true,\n optional: false,\n codec: new ObjectModelCodec(LedgerAccountBaseDataMeta),\n },\n { name: 'votingData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerVotingDataMeta) },\n ],\n}\n\nexport type LedgerBalanceRecord = {\n address: Address\n accountData: LedgerAccountData\n}\n\nexport const LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord> = {\n name: 'LedgerBalanceRecord',\n kind: 'object',\n fields: [\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'accountData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerAccountDataMeta) },\n ],\n}\n\nexport type LedgerAccountDeltas = {\n accounts?: LedgerBalanceRecord[]\n appResources?: LedgerAppResourceRecord[]\n assetResources?: LedgerAssetResourceRecord[]\n}\n\nexport const LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas> = {\n name: 'LedgerAccountDeltas',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'Accts',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerBalanceRecordMeta)),\n },\n {\n name: 'appResources',\n wireKey: 'AppResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAppResourceRecordMeta)),\n },\n {\n name: 'assetResources',\n wireKey: 'AssetResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAssetResourceRecordMeta)),\n },\n ],\n}\n\n/**\n * Shows how the data associated with a key in the kvstore has changed.\n */\nexport type LedgerKvValueDelta = {\n /**\n * Stores the most recent value (undefined means deleted).\n */\n data?: Uint8Array\n /**\n * Stores the previous value (undefined means didn't exist).\n */\n oldData?: Uint8Array\n}\n\nexport const LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta> = {\n name: 'LedgerKvValueDelta',\n kind: 'object',\n fields: [\n { name: 'data', wireKey: 'Data', optional: true, codec: bytesCodec },\n { name: 'oldData', wireKey: 'OldData', optional: true, codec: bytesCodec },\n ],\n}\n\n/**\n * Defines the transactions included in a block, their index and last valid round.\n */\nexport type LedgerIncludedTransactions = {\n lastValid: bigint\n /**\n * The index of the transaction in the block.\n */\n intra: number\n}\n\nexport const LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions> = {\n name: 'LedgerIncludedTransactions',\n kind: 'object',\n fields: [\n { name: 'lastValid', wireKey: 'LastValid', optional: false, codec: bigIntCodec },\n { name: 'intra', wireKey: 'Intra', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a change to a single creatable state.\n */\nexport type LedgerModifiedCreatable = {\n /**\n * Type of the creatable. The values are:\n * * 0: Asset\n * * 1: Application\n */\n creatableType: number\n /**\n * Created if true, deleted if false.\n */\n created: boolean\n /**\n * Creator of the app/asset.\n */\n creator: Address\n /**\n * Keeps track of how many times this app/asset appears in accountUpdates.creatableDeltas.\n */\n nDeltas: number\n}\n\nexport const LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable> = {\n name: 'LedgerModifiedCreatable',\n kind: 'object',\n fields: [\n { name: 'creatableType', wireKey: 'Ctype', optional: false, codec: numberCodec },\n { name: 'created', wireKey: 'Created', optional: false, codec: booleanCodec },\n { name: 'creator', wireKey: 'Creator', optional: false, codec: addressCodec },\n { name: 'ndeltas', wireKey: 'Ndeltas', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a total of algos of a certain class of accounts (split up by their Status value).\n */\nexport type LedgerAlgoCount = {\n /**\n * Sum of algos of all accounts in this scope.\n */\n money: bigint\n /**\n * Total number of whole reward units in accounts.\n */\n rewardUnits: bigint\n}\n\nexport const LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount> = {\n name: 'LedgerAlgoCount',\n kind: 'object',\n fields: [\n { name: 'money', wireKey: 'mon', optional: false, codec: bigIntCodec },\n { name: 'rewardUnits', wireKey: 'rwd', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Represents the totals of algos in the system grouped by different account status values.\n */\nexport type LedgerAccountTotals = {\n online: LedgerAlgoCount\n offline: LedgerAlgoCount\n notParticipating: LedgerAlgoCount\n /**\n * Total number of algos received per reward unit since genesis.\n */\n rewardsLevel: bigint\n}\n\nexport const LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals> = {\n name: 'LedgerAccountTotals',\n kind: 'object',\n fields: [\n { name: 'online', wireKey: 'online', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'offline', wireKey: 'offline', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'notParticipating', wireKey: 'notpart', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'rewardsLevel', wireKey: 'rwdlvl', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Describes the delta between a given round to the previous round.\n */\nexport type LedgerStateDelta = {\n /**\n * Modified new accounts.\n */\n accounts: LedgerAccountDeltas\n /**\n * Block header.\n */\n block: Block\n /**\n * Represents modification on StateProofNextRound field in the block header. If the block contains\n * a valid state proof transaction, this field will contain the next round for state proof.\n * otherwise it will be set to 0.\n */\n stateProofNext: bigint\n /**\n * Previous block timestamp\n */\n prevTimestamp: bigint\n /**\n * The account totals reflecting the changes in this StateDelta object.\n */\n totals: LedgerAccountTotals\n /**\n * Modified kv pairs.\n */\n kvMods?: Map<Uint8Array, LedgerKvValueDelta>\n /**\n * New Txids for the txtail and TxnCounter, mapped to txn.LastValid.\n */\n txIds?: Map<Uint8Array, LedgerIncludedTransactions>\n /**\n * New creatables creator lookup table.\n */\n creatables?: Map<number, LedgerModifiedCreatable>\n}\n\nexport const LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta> = {\n name: 'LedgerStateDelta',\n kind: 'object',\n fields: [\n { name: 'accounts', wireKey: 'Accts', optional: false, codec: new ObjectModelCodec(LedgerAccountDeltasMeta) },\n { name: 'block', wireKey: 'Hdr', optional: false, codec: new ObjectModelCodec(BlockMeta) },\n { name: 'stateProofNext', wireKey: 'StateProofNext', optional: false, codec: bigIntCodec },\n { name: 'prevTimestamp', wireKey: 'PrevTimestamp', optional: false, codec: bigIntCodec },\n { name: 'totals', wireKey: 'Totals', optional: false, codec: new ObjectModelCodec(LedgerAccountTotalsMeta) },\n {\n name: 'kvMods',\n wireKey: 'KvMods',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerKvValueDeltaMeta)),\n },\n {\n name: 'txIds',\n wireKey: 'Txids',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerIncludedTransactionsMeta)),\n },\n {\n name: 'creatables',\n wireKey: 'Creatables',\n optional: true,\n codec: new MapCodec(numberCodec, new ObjectModelCodec(LedgerModifiedCreatableMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAaA,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAO,OAAO;GAAa;EACpE;GAAE,MAAM;GAAS,SAAS;GAAM,UAAU;GAAM,OAAO;GAAY;EACnE;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAM,OAAO;GAAa;EACpE;CACF;AAYD,MAAaC,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAY,SAAS;EAAO,UAAU;EAAM,OAAO;EAAa,EACxE;EAAE,MAAM;EAAiB,SAAS;EAAO,UAAU;EAAM,OAAO;EAAa,CAC9E;CACF;AAgBD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SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,YAAY,IAAI,iBAAiB,uBAAuB,CAAC;GAC9E;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,YAAY,IAAI,iBAAiB,+BAA+B,CAAC;GACtF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,aAAa,IAAI,iBAAiB,4BAA4B,CAAC;GACpF;EACF;CACF"}
|
|
1
|
+
{"version":3,"file":"ledger-state-delta.mjs","names":["LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue>","LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema>","LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams>","LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState>","LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta>","LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta>","LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord>","LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding>","LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta>","LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams>","LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta>","LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord>","LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData>","LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData>","LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData>","LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord>","LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas>","LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta>","LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions>","LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable>","LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount>","LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals>","LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta>"],"sources":["../../../../../packages/algod_client/src/models/ledger-state-delta.ts"],"sourcesContent":["import type { Block } from './block'\nimport { blockCodec } from './block'\nimport {\n numberCodec,\n bigIntCodec,\n booleanCodec,\n stringCodec,\n bytesCodec,\n addressCodec,\n Address,\n ArrayCodec,\n MapCodec,\n ObjectModelCodec,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\n/**\n * Contains type information and a value, representing a value in a TEAL program.\n */\nexport type LedgerTealValue = {\n /**\n * Type determines the type of the value.\n * * 1 represents the type of a byte slice in a TEAL program\n * * 2 represents the type of an unsigned integer in a TEAL program\n */\n type: number\n /** bytes value. */\n bytes?: Uint8Array\n /** uint value. */\n uint?: bigint\n}\n\nexport const LedgerTealValueMeta: ObjectModelMetadata<LedgerTealValue> = {\n name: 'LedgerTealValue',\n kind: 'object',\n fields: [\n { name: 'type', wireKey: 'tt', optional: false, codec: numberCodec },\n { name: 'bytes', wireKey: 'tb', optional: true, codec: bytesCodec },\n { name: 'uint', wireKey: 'ui', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Sets maximums on the number of each type that may be stored.\n */\nexport type LedgerStateSchema = {\n /** Number of uints in state. */\n numUints?: bigint\n /** Number of byte slices in state. */\n numByteSlices?: bigint\n}\n\nexport const LedgerStateSchemaMeta: ObjectModelMetadata<LedgerStateSchema> = {\n name: 'LedgerStateSchema',\n kind: 'object',\n fields: [\n { name: 'numUints', wireKey: 'nui', optional: true, codec: bigIntCodec },\n { name: 'numByteSlices', wireKey: 'nbs', optional: true, codec: bigIntCodec },\n ],\n}\n\n/**\n * Stores the global information associated with an application.\n */\nexport type LedgerAppParams = {\n approvalProgram: Uint8Array\n clearStateProgram: Uint8Array\n localStateSchema: LedgerStateSchema\n globalStateSchema: LedgerStateSchema\n extraProgramPages: number\n version?: number\n sizeSponsor?: Address\n globalState?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppParamsMeta: ObjectModelMetadata<LedgerAppParams> = {\n name: 'LedgerAppParams',\n kind: 'object',\n fields: [\n { name: 'approvalProgram', wireKey: 'approv', optional: false, codec: bytesCodec },\n { name: 'clearStateProgram', wireKey: 'clearp', optional: false, codec: bytesCodec },\n { name: 'localStateSchema', wireKey: 'lsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'globalStateSchema', wireKey: 'gsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n { name: 'extraProgramPages', wireKey: 'epp', optional: false, codec: numberCodec },\n { name: 'version', wireKey: 'v', optional: true, codec: numberCodec },\n { name: 'sizeSponsor', wireKey: 'ss', optional: true, codec: addressCodec },\n {\n name: 'globalState',\n wireKey: 'gs',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Stores the LocalState associated with an application.\n */\nexport type LedgerAppLocalState = {\n schema: LedgerStateSchema\n keyValue?: Map<Uint8Array, LedgerTealValue>\n}\n\nexport const LedgerAppLocalStateMeta: ObjectModelMetadata<LedgerAppLocalState> = {\n name: 'LedgerAppLocalState',\n kind: 'object',\n fields: [\n { name: 'schema', wireKey: 'hsch', optional: false, codec: new ObjectModelCodec(LedgerStateSchemaMeta) },\n {\n name: 'keyValue',\n wireKey: 'tkv',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerTealValueMeta)),\n },\n ],\n}\n\n/**\n * Tracks a changed AppLocalState, and whether it was deleted.\n */\nexport type LedgerAppLocalStateDelta = {\n deleted: boolean\n localState?: LedgerAppLocalState\n}\n\nexport const LedgerAppLocalStateDeltaMeta: ObjectModelMetadata<LedgerAppLocalStateDelta> = {\n name: 'LedgerAppLocalStateDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'localState', wireKey: 'LocalState', optional: true, codec: new ObjectModelCodec(LedgerAppLocalStateMeta) },\n ],\n}\n\n/**\n * Tracks a changed AppParams, and whether it was deleted.\n */\nexport type LedgerAppParamsDelta = {\n deleted: boolean\n params?: LedgerAppParams\n}\n\nexport const LedgerAppParamsDeltaMeta: ObjectModelMetadata<LedgerAppParamsDelta> = {\n name: 'LedgerAppParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAppParamsMeta) },\n ],\n}\n\n/**\n * Represents AppParams and AppLocalState in deltas.\n */\nexport type LedgerAppResourceRecord = {\n appId: bigint\n address: Address\n params: LedgerAppParamsDelta\n state: LedgerAppLocalStateDelta\n}\n\nexport const LedgerAppResourceRecordMeta: ObjectModelMetadata<LedgerAppResourceRecord> = {\n name: 'LedgerAppResourceRecord',\n kind: 'object',\n fields: [\n { name: 'appId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAppParamsDeltaMeta) },\n { name: 'state', wireKey: 'State', optional: false, codec: new ObjectModelCodec(LedgerAppLocalStateDeltaMeta) },\n ],\n}\n\n/**\n * Describes an asset held by an account.\n */\nexport type LedgerAssetHolding = {\n amount: bigint\n frozen: boolean\n}\n\nexport const LedgerAssetHoldingMeta: ObjectModelMetadata<LedgerAssetHolding> = {\n name: 'LedgerAssetHolding',\n kind: 'object',\n fields: [\n { name: 'amount', wireKey: 'a', optional: false, codec: bigIntCodec },\n { name: 'frozen', wireKey: 'f', optional: false, codec: booleanCodec },\n ],\n}\n\n/**\n * Records a changed AssetHolding, and whether it was deleted.\n */\nexport type LedgerAssetHoldingDelta = {\n deleted: boolean\n holding?: LedgerAssetHolding\n}\n\nexport const LedgerAssetHoldingDeltaMeta: ObjectModelMetadata<LedgerAssetHoldingDelta> = {\n name: 'LedgerAssetHoldingDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'holding', wireKey: 'Holding', optional: true, codec: new ObjectModelCodec(LedgerAssetHoldingMeta) },\n ],\n}\n\n/**\n * Describes the parameters of an asset.\n */\nexport type LedgerAssetParams = {\n /**\n * Specifies the total number of units of this asset created.\n */\n total: bigint\n /**\n * Specifies the number of digits to display after the decimal place when displaying this asset.\n * A value of 0 represents an asset that is not divisible, a value of 1 represents an asset divisible into tenths, and so on.\n * This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n /**\n * Specifies whether slots for this asset in user accounts are frozen by default or not.\n */\n defaultFrozen: boolean\n /**\n * Specifies a hint for the name of a unit of this asset.\n */\n unitName?: string\n /**\n * Specifies a hint for the name of the asset.\n */\n assetName?: string\n /**\n * Specifies a URL where more information about the asset can be retrieved.\n */\n url?: string\n /**\n * Specifies a commitment to some unspecified asset metadata. The format of this\n * metadata is up to the application.\n */\n metadataHash?: Uint8Array\n /**\n * Manager specifies an account that is allowed to change the non-zero addresses in this AssetParams.\n */\n manager?: Address\n /**\n * Specifies an account whose holdings of this asset should be reported as \"not minted\".\n */\n reserve?: Address\n /**\n * Specifies an account that is allowed to change the frozen state of holdings of this asset.\n */\n freeze?: Address\n /**\n * Specifies an account that is allowed to take units of this asset from any account.\n */\n clawback?: Address\n}\n\nexport const LedgerAssetParamsMeta: ObjectModelMetadata<LedgerAssetParams> = {\n name: 'LedgerAssetParams',\n kind: 'object',\n fields: [\n { name: 'total', wireKey: 't', optional: false, codec: bigIntCodec },\n { name: 'decimals', wireKey: 'dc', optional: false, codec: numberCodec },\n { name: 'defaultFrozen', wireKey: 'df', optional: false, codec: booleanCodec },\n { name: 'unitName', wireKey: 'un', optional: true, codec: stringCodec },\n { name: 'assetName', wireKey: 'an', optional: true, codec: stringCodec },\n { name: 'url', wireKey: 'au', optional: true, codec: stringCodec },\n { name: 'metadataHash', wireKey: 'am', optional: true, codec: bytesCodec },\n { name: 'manager', wireKey: 'm', optional: true, codec: addressCodec },\n { name: 'reserve', wireKey: 'r', optional: true, codec: addressCodec },\n { name: 'freeze', wireKey: 'f', optional: true, codec: addressCodec },\n { name: 'clawback', wireKey: 'c', optional: true, codec: addressCodec },\n ],\n}\n\n/**\n * Tracks a changed asset params, and whether it was deleted.\n */\nexport type LedgerAssetParamsDelta = {\n deleted: boolean\n params?: LedgerAssetParams\n}\n\nexport const LedgerAssetParamsDeltaMeta: ObjectModelMetadata<LedgerAssetParamsDelta> = {\n name: 'LedgerAssetParamsDelta',\n kind: 'object',\n fields: [\n { name: 'deleted', wireKey: 'Deleted', optional: false, codec: booleanCodec },\n { name: 'params', wireKey: 'Params', optional: true, codec: new ObjectModelCodec(LedgerAssetParamsMeta) },\n ],\n}\n\n/**\n * Represents asset params and asset holding in deltas.\n */\nexport type LedgerAssetResourceRecord = {\n assetId: bigint\n address: Address\n params: LedgerAssetParamsDelta\n holding: LedgerAssetHoldingDelta\n}\n\nexport const LedgerAssetResourceRecordMeta: ObjectModelMetadata<LedgerAssetResourceRecord> = {\n name: 'LedgerAssetResourceRecord',\n kind: 'object',\n fields: [\n { name: 'assetId', wireKey: 'Aidx', optional: false, codec: bigIntCodec },\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'params', wireKey: 'Params', optional: false, codec: new ObjectModelCodec(LedgerAssetParamsDeltaMeta) },\n { name: 'holding', wireKey: 'Holding', optional: false, codec: new ObjectModelCodec(LedgerAssetHoldingDeltaMeta) },\n ],\n}\n\n/**\n * Holds participation information.\n */\nexport type LedgerVotingData = {\n voteId: Uint8Array\n selectionId: Uint8Array\n stateProofId: Uint8Array\n voteFirstValid: bigint\n voteLastValid: bigint\n voteKeyDilution: bigint\n}\n\nexport const LedgerVotingDataMeta: ObjectModelMetadata<LedgerVotingData> = {\n name: 'LedgerVotingData',\n kind: 'object',\n fields: [\n { name: 'voteId', wireKey: 'VoteID', optional: false, codec: bytesCodec },\n { name: 'selectionId', wireKey: 'SelectionID', optional: false, codec: bytesCodec },\n { name: 'stateProofId', wireKey: 'StateProofID', optional: false, codec: bytesCodec },\n { name: 'voteFirstValid', wireKey: 'VoteFirstValid', optional: false, codec: bigIntCodec },\n { name: 'voteLastValid', wireKey: 'VoteLastValid', optional: false, codec: bigIntCodec },\n { name: 'voteKeyDilution', wireKey: 'VoteKeyDilution', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Contains base account info like balance, status and total number of resources.\n */\nexport type LedgerAccountBaseData = {\n /**\n * Account status. Values are:\n * * 0: Offline\n * * 1: Online\n * * 2: NotParticipating\n */\n status: number\n microAlgos: bigint\n rewardsBase: bigint\n rewardedMicroAlgos: bigint\n authAddress: Address\n incentiveEligible: boolean\n /**\n * Totals across created globals, and opted in locals.\n */\n totalAppSchema: LedgerStateSchema\n /**\n * Total number of extra pages across all created apps.\n */\n totalExtraAppPages: number\n /**\n * Total number of apps this account has created.\n */\n totalAppParams: number\n /**\n * Total number of apps this account is opted into.\n */\n totalAppLocalStates: number\n /**\n * Total number of assets created by this account.\n */\n totalAssetParams: number\n /**\n * Total of asset creations and optins (i.e. number of holdings).\n */\n totalAssets: number\n /**\n * Total number of boxes associated to this account.\n */\n totalBoxes: bigint\n /**\n * Total bytes for this account's boxes. keys and values count.\n */\n totalBoxBytes: bigint\n /**\n * The last round that this account proposed the winning block.\n */\n lastProposed: bigint\n /**\n * The last round that this account sent a heartbeat to show it was online.\n */\n lastHeartbeat: bigint\n}\n\nexport const LedgerAccountBaseDataMeta: ObjectModelMetadata<LedgerAccountBaseData> = {\n name: 'LedgerAccountBaseData',\n kind: 'object',\n fields: [\n { name: 'status', wireKey: 'Status', optional: false, codec: numberCodec },\n { name: 'microAlgos', wireKey: 'MicroAlgos', optional: false, codec: bigIntCodec },\n { name: 'rewardsBase', wireKey: 'RewardsBase', optional: false, codec: bigIntCodec },\n {\n name: 'rewardedMicroAlgos',\n wireKey: 'RewardedMicroAlgos',\n optional: false,\n codec: bigIntCodec,\n },\n { name: 'authAddress', wireKey: 'AuthAddr', optional: false, codec: addressCodec },\n { name: 'incentiveEligible', wireKey: 'IncentiveEligible', optional: false, codec: booleanCodec },\n {\n name: 'totalAppSchema',\n wireKey: 'TotalAppSchema',\n optional: false,\n codec: new ObjectModelCodec(LedgerStateSchemaMeta),\n },\n { name: 'totalExtraAppPages', wireKey: 'TotalExtraAppPages', optional: false, codec: numberCodec },\n { name: 'totalAppParams', wireKey: 'TotalAppParams', optional: false, codec: numberCodec },\n { name: 'totalAppLocalStates', wireKey: 'TotalAppLocalStates', optional: false, codec: numberCodec },\n { name: 'totalAssetParams', wireKey: 'TotalAssetParams', optional: false, codec: numberCodec },\n { name: 'totalAssets', wireKey: 'TotalAssets', optional: false, codec: numberCodec },\n { name: 'totalBoxes', wireKey: 'TotalBoxes', optional: false, codec: bigIntCodec },\n { name: 'totalBoxBytes', wireKey: 'TotalBoxBytes', optional: false, codec: bigIntCodec },\n { name: 'lastProposed', wireKey: 'LastProposed', optional: false, codec: bigIntCodec },\n { name: 'lastHeartbeat', wireKey: 'LastHeartbeat', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Provides per-account data.\n */\nexport type LedgerAccountData = {\n accountBaseData: LedgerAccountBaseData\n votingData: LedgerVotingData\n}\n\nexport const LedgerAccountDataMeta: ObjectModelMetadata<LedgerAccountData> = {\n name: 'LedgerAccountData',\n kind: 'object',\n fields: [\n {\n name: 'accountBaseData',\n flattened: true,\n optional: false,\n codec: new ObjectModelCodec(LedgerAccountBaseDataMeta),\n },\n { name: 'votingData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerVotingDataMeta) },\n ],\n}\n\nexport type LedgerBalanceRecord = {\n address: Address\n accountData: LedgerAccountData\n}\n\nexport const LedgerBalanceRecordMeta: ObjectModelMetadata<LedgerBalanceRecord> = {\n name: 'LedgerBalanceRecord',\n kind: 'object',\n fields: [\n { name: 'address', wireKey: 'Addr', optional: false, codec: addressCodec },\n { name: 'accountData', flattened: true, optional: false, codec: new ObjectModelCodec(LedgerAccountDataMeta) },\n ],\n}\n\nexport type LedgerAccountDeltas = {\n accounts?: LedgerBalanceRecord[]\n appResources?: LedgerAppResourceRecord[]\n assetResources?: LedgerAssetResourceRecord[]\n}\n\nexport const LedgerAccountDeltasMeta: ObjectModelMetadata<LedgerAccountDeltas> = {\n name: 'LedgerAccountDeltas',\n kind: 'object',\n fields: [\n {\n name: 'accounts',\n wireKey: 'Accts',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerBalanceRecordMeta)),\n },\n {\n name: 'appResources',\n wireKey: 'AppResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAppResourceRecordMeta)),\n },\n {\n name: 'assetResources',\n wireKey: 'AssetResources',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(LedgerAssetResourceRecordMeta)),\n },\n ],\n}\n\n/**\n * Shows how the data associated with a key in the kvstore has changed.\n */\nexport type LedgerKvValueDelta = {\n /**\n * Stores the most recent value (undefined means deleted).\n */\n data?: Uint8Array\n /**\n * Stores the previous value (undefined means didn't exist).\n */\n oldData?: Uint8Array\n}\n\nexport const LedgerKvValueDeltaMeta: ObjectModelMetadata<LedgerKvValueDelta> = {\n name: 'LedgerKvValueDelta',\n kind: 'object',\n fields: [\n { name: 'data', wireKey: 'Data', optional: true, codec: bytesCodec },\n { name: 'oldData', wireKey: 'OldData', optional: true, codec: bytesCodec },\n ],\n}\n\n/**\n * Defines the transactions included in a block, their index and last valid round.\n */\nexport type LedgerIncludedTransactions = {\n lastValid: bigint\n /**\n * The index of the transaction in the block.\n */\n intra: number\n}\n\nexport const LedgerIncludedTransactionsMeta: ObjectModelMetadata<LedgerIncludedTransactions> = {\n name: 'LedgerIncludedTransactions',\n kind: 'object',\n fields: [\n { name: 'lastValid', wireKey: 'LastValid', optional: false, codec: bigIntCodec },\n { name: 'intra', wireKey: 'Intra', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a change to a single creatable state.\n */\nexport type LedgerModifiedCreatable = {\n /**\n * Type of the creatable. The values are:\n * * 0: Asset\n * * 1: Application\n */\n creatableType: number\n /**\n * Created if true, deleted if false.\n */\n created: boolean\n /**\n * Creator of the app/asset.\n */\n creator: Address\n /**\n * Keeps track of how many times this app/asset appears in accountUpdates.creatableDeltas.\n */\n nDeltas: number\n}\n\nexport const LedgerModifiedCreatableMeta: ObjectModelMetadata<LedgerModifiedCreatable> = {\n name: 'LedgerModifiedCreatable',\n kind: 'object',\n fields: [\n { name: 'creatableType', wireKey: 'Ctype', optional: false, codec: numberCodec },\n { name: 'created', wireKey: 'Created', optional: false, codec: booleanCodec },\n { name: 'creator', wireKey: 'Creator', optional: false, codec: addressCodec },\n { name: 'ndeltas', wireKey: 'Ndeltas', optional: false, codec: numberCodec },\n ],\n}\n\n/**\n * Represents a total of algos of a certain class of accounts (split up by their Status value).\n */\nexport type LedgerAlgoCount = {\n /**\n * Sum of algos of all accounts in this scope.\n */\n money: bigint\n /**\n * Total number of whole reward units in accounts.\n */\n rewardUnits: bigint\n}\n\nexport const LedgerAlgoCountMeta: ObjectModelMetadata<LedgerAlgoCount> = {\n name: 'LedgerAlgoCount',\n kind: 'object',\n fields: [\n { name: 'money', wireKey: 'mon', optional: false, codec: bigIntCodec },\n { name: 'rewardUnits', wireKey: 'rwd', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Represents the totals of algos in the system grouped by different account status values.\n */\nexport type LedgerAccountTotals = {\n online: LedgerAlgoCount\n offline: LedgerAlgoCount\n notParticipating: LedgerAlgoCount\n /**\n * Total number of algos received per reward unit since genesis.\n */\n rewardsLevel: bigint\n}\n\nexport const LedgerAccountTotalsMeta: ObjectModelMetadata<LedgerAccountTotals> = {\n name: 'LedgerAccountTotals',\n kind: 'object',\n fields: [\n { name: 'online', wireKey: 'online', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'offline', wireKey: 'offline', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'notParticipating', wireKey: 'notpart', optional: false, codec: new ObjectModelCodec(LedgerAlgoCountMeta) },\n { name: 'rewardsLevel', wireKey: 'rwdlvl', optional: false, codec: bigIntCodec },\n ],\n}\n\n/**\n * Describes the delta between a given round to the previous round.\n */\nexport type LedgerStateDelta = {\n /**\n * Modified new accounts.\n */\n accounts: LedgerAccountDeltas\n /**\n * Block header.\n */\n block: Block\n /**\n * Represents modification on StateProofNextRound field in the block header. If the block contains\n * a valid state proof transaction, this field will contain the next round for state proof.\n * otherwise it will be set to 0.\n */\n stateProofNext: bigint\n /**\n * Previous block timestamp\n */\n prevTimestamp: bigint\n /**\n * The account totals reflecting the changes in this StateDelta object.\n */\n totals: LedgerAccountTotals\n /**\n * Modified kv pairs.\n */\n kvMods?: Map<Uint8Array, LedgerKvValueDelta>\n /**\n * New Txids for the txtail and TxnCounter, mapped to txn.LastValid.\n */\n txIds?: Map<Uint8Array, LedgerIncludedTransactions>\n /**\n * New creatables creator lookup table.\n */\n creatables?: Map<number, LedgerModifiedCreatable>\n}\n\nexport const LedgerStateDeltaMeta: ObjectModelMetadata<LedgerStateDelta> = {\n name: 'LedgerStateDelta',\n kind: 'object',\n fields: [\n { name: 'accounts', wireKey: 'Accts', optional: false, codec: new ObjectModelCodec(LedgerAccountDeltasMeta) },\n { name: 'block', wireKey: 'Hdr', optional: false, codec: blockCodec },\n { name: 'stateProofNext', wireKey: 'StateProofNext', optional: false, codec: bigIntCodec },\n { name: 'prevTimestamp', wireKey: 'PrevTimestamp', optional: false, codec: bigIntCodec },\n { name: 'totals', wireKey: 'Totals', optional: false, codec: new ObjectModelCodec(LedgerAccountTotalsMeta) },\n {\n name: 'kvMods',\n wireKey: 'KvMods',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerKvValueDeltaMeta)),\n },\n {\n name: 'txIds',\n wireKey: 'Txids',\n optional: true,\n codec: new MapCodec(bytesCodec, new ObjectModelCodec(LedgerIncludedTransactionsMeta)),\n },\n {\n name: 'creatables',\n wireKey: 'Creatables',\n optional: true,\n codec: new MapCodec(numberCodec, new ObjectModelCodec(LedgerModifiedCreatableMeta)),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAaA,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAO,OAAO;GAAa;EACpE;GAAE,MAAM;GAAS,SAAS;GAAM,UAAU;GAAM,OAAO;GAAY;EACnE;GAAE,MAAM;GAAQ,SAAS;GAAM,UAAU;GAAM,OAAO;GAAa;EACpE;CACF;AAYD,MAAaC,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAY,SAAS;EAAO,UAAU;EAAM,OAAO;EAAa,EACxE;EAAE,MAAM;EAAiB,SAAS;EAAO,UAAU;EAAM,OAAO;EAAa,CAC9E;CACF;AAgBD,MAAaC,sBAA4D;CACvE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAmB,SAAS;GAAU,UAAU;GAAO,OAAO;GAAY;EAClF;GAAE,MAAM;GAAqB,SAAS;GAAU,UAAU;GAAO,OAAO;GAAY;EACpF;GAAE,MAAM;GAAoB,SAAS;GAAQ,UAAU;GAAO,OAAO,IAAI,iBAAiB,sBAAsB;GAAE;EAClH;GAAE,MAAM;GAAqB,SAAS;GAAQ,UAAU;GAAO,OAAO,IAAI,iBAAiB,sBAAsB;GAAE;EACnH;GAAE,MAAM;GAAqB,SAAS;GAAO,UAAU;GAAO,OAAO;GAAa;EAClF;GAAE,MAAM;GAAW,SAAS;GAAK,UAAU;GAAM,OAAO;GAAa;EACrE;GAAE,MAAM;GAAe,SAAS;GAAM,UAAU;GAAM,OAAO;G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,oBAAoB;GAAE;EACxG;GAAE,MAAM;GAAW,SAAS;GAAW,UAAU;GAAO,OAAO,IAAI,iBAAiB,oBAAoB;GAAE;EAC1G;GAAE,MAAM;GAAoB,SAAS;GAAW,UAAU;GAAO,OAAO,IAAI,iBAAiB,oBAAoB;GAAE;EACnH;GAAE,MAAM;GAAgB,SAAS;GAAU,UAAU;GAAO,OAAO;GAAa;EACjF;CACF;AA0CD,MAAaC,uBAA8D;CACzE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GAAE,MAAM;GAAY,SAAS;GAAS,UAAU;GAAO,OAAO,IAAI,iBAAiB,wBAAwB;GAAE;EAC7G;GAAE,MAAM;GAAS,SAAS;GAAO,UAAU;GAAO,OAAO;GAAY;EACrE;GAAE,MAAM;GAAkB,SAAS;GAAkB,UAAU;GAAO,OAAO;GAAa;EAC1F;GAAE,MAAM;GAAiB,SAAS;GAAiB,UAAU;GAAO,OAAO;GAAa;EACxF;GAAE,MAAM;GAAU,SAAS;GAAU,UAAU;GAAO,OAAO,IAAI,iBAAiB,wBAAwB;GAAE;EAC5G;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,YAAY,IAAI,iBAAiB,uBAAuB,CAAC;GAC9E;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,YAAY,IAAI,iBAAiB,+BAA+B,CAAC;GACtF;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,SAAS,aAAa,IAAI,iBAAiB,4BAA4B,CAAC;GACpF;EACF;CACF"}
|
|
@@ -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,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
|
};
|