@algorandfoundation/algokit-utils 10.0.0-alpha.7 → 10.0.0-alpha.9
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 +20 -11
- package/_virtual/rolldown_runtime.mjs +10 -5
- package/algod-client/index.d.ts +2 -2
- package/package.json +1 -1
- package/packages/abi/src/abi-type.d.ts +1 -1
- package/packages/abi/src/abi-type.js +2 -1
- package/packages/abi/src/abi-type.js.map +1 -1
- package/packages/abi/src/abi-type.mjs +2 -1
- 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/algod_client/src/apis/api-service.d.ts +44 -44
- package/packages/algod_client/src/apis/api-service.js +153 -153
- package/packages/algod_client/src/apis/api-service.js.map +1 -1
- package/packages/algod_client/src/apis/api-service.mjs +153 -153
- 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 +4 -4
- package/packages/algod_client/src/core/model-runtime.js.map +1 -1
- package/packages/algod_client/src/core/model-runtime.mjs +6 -6
- 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/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 +47 -27
- package/packages/algod_client/src/models/block.js +173 -97
- package/packages/algod_client/src/models/block.js.map +1 -1
- package/packages/algod_client/src/models/block.mjs +173 -97
- package/packages/algod_client/src/models/block.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/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/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.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/msgpack.js +0 -1
- package/packages/common/src/msgpack.js.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 +4 -4
- package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
- package/packages/indexer_client/src/core/model-runtime.mjs +6 -6
- 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/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.js +8 -8
- package/packages/indexer_client/src/models/block.js.map +1 -1
- package/packages/indexer_client/src/models/block.mjs +8 -8
- 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/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/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.js +4 -3
- package/packages/indexer_client/src/models/transaction.js.map +1 -1
- package/packages/indexer_client/src/models/transaction.mjs +4 -3
- 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 +4 -4
- package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
- package/packages/kmd_client/src/core/model-runtime.mjs +6 -6
- package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/sdk/src/encoding/encoding.js +12 -2
- package/packages/sdk/src/encoding/encoding.js.map +1 -1
- package/packages/sdk/src/encoding/encoding.mjs +12 -1
- package/packages/sdk/src/encoding/encoding.mjs.map +1 -1
- package/packages/sdk/src/encoding/schema/map.js +0 -2
- package/packages/sdk/src/encoding/schema/map.js.map +1 -1
- package/packages/transact/src/logicsig.js +3 -3
- package/packages/transact/src/logicsig.js.map +1 -1
- package/packages/transact/src/logicsig.mjs +3 -3
- package/packages/transact/src/logicsig.mjs.map +1 -1
- package/packages/transact/src/multisig.js +24 -24
- package/packages/transact/src/multisig.js.map +1 -1
- package/packages/transact/src/multisig.mjs +24 -24
- package/packages/transact/src/multisig.mjs.map +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +2 -2
- 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/signed-transaction-meta.js +2 -2
- package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction-meta.mjs +2 -2
- package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.d.ts +2 -2
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction-meta.js +7 -1
- package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/transaction-meta.mjs +7 -1
- package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction.js +1 -0
- package/packages/transact/src/transactions/transaction.js.map +1 -1
- package/packages/transact/src/transactions/transaction.mjs +1 -0
- package/packages/transact/src/transactions/transaction.mjs.map +1 -1
- package/sdk/index.js +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/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 +2 -1
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs.map +1 -1
- package/types/account-manager.js +1 -1
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +1 -1
- package/types/account-manager.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +80 -66
- 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 +80 -66
- 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/app-client.d.ts +83 -78
- package/types/app-client.js +0 -1
- package/types/app-client.js.map +1 -1
- package/types/app-deployer.js +1 -1
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +1 -1
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +42 -39
- package/types/app-manager.d.ts +2 -0
- package/types/app-manager.js +5 -4
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +5 -4
- package/types/app-manager.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/composer.d.ts +8 -0
- package/types/composer.js +11 -4
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +11 -3
- package/types/composer.mjs.map +1 -1
- package/types/kmd-account-manager.d.ts +1 -0
- package/types/kmd-account-manager.js +21 -10
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +22 -11
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/testing.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-params.js","names":["AssetParamsMeta: ObjectModelMetadata<AssetParams>","stringCodec","numberCodec","booleanCodec","bytesCodec","bigIntCodec"],"sources":["../../../../../packages/indexer_client/src/models/asset-params.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { stringCodec, numberCodec, bigIntCodec, booleanCodec, bytesCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * AssetParams specifies the parameters for an asset.\n *\n * \\[apar\\] when part of an AssetConfig transaction.\n *\n * Definition:\n * data/transactions/asset.go : AssetParams\n */\nexport type AssetParams = {\n /**\n * Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.\n */\n clawback?: string\n\n /**\n * The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.\n */\n creator: string\n\n /**\n * The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n\n /**\n * Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.\n */\n name?: string\n\n /**\n * Base64 encoded name of this asset, as supplied by the creator.\n */\n nameB64?: Uint8Array\n\n /**\n * Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * The total number of units of this asset.\n */\n total: bigint\n\n /**\n * Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.\n */\n unitName?: string\n\n /**\n * Base64 encoded name of a unit of this asset, as supplied by the creator.\n */\n unitNameB64?: Uint8Array\n\n /**\n * URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.\n */\n url?: string\n\n /**\n * Base64 encoded URL where more information about the asset can be retrieved.\n */\n urlB64?: Uint8Array\n}\n\nexport const AssetParamsMeta: ObjectModelMetadata<AssetParams> = {\n name: 'AssetParams',\n kind: 'object',\n fields: [\n {\n name: 'clawback',\n wireKey: 'clawback',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'creator',\n wireKey: 'creator',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'decimals',\n wireKey: 'decimals',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'defaultFrozen',\n wireKey: 'default-frozen',\n optional: true,\n codec: booleanCodec,\n },\n {\n name: 'freeze',\n wireKey: 'freeze',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'manager',\n wireKey: 'manager',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'metadataHash',\n wireKey: 'metadata-hash',\n optional: true,\n codec:
|
|
1
|
+
{"version":3,"file":"asset-params.js","names":["AssetParamsMeta: ObjectModelMetadata<AssetParams>","stringCodec","numberCodec","booleanCodec","fixedBytes32Codec","bytesCodec","bigIntCodec"],"sources":["../../../../../packages/indexer_client/src/models/asset-params.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { stringCodec, numberCodec, bigIntCodec, booleanCodec, bytesCodec, fixedBytes32Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * AssetParams specifies the parameters for an asset.\n *\n * \\[apar\\] when part of an AssetConfig transaction.\n *\n * Definition:\n * data/transactions/asset.go : AssetParams\n */\nexport type AssetParams = {\n /**\n * Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.\n */\n clawback?: string\n\n /**\n * The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.\n */\n creator: string\n\n /**\n * The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n\n /**\n * Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.\n */\n name?: string\n\n /**\n * Base64 encoded name of this asset, as supplied by the creator.\n */\n nameB64?: Uint8Array\n\n /**\n * Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * The total number of units of this asset.\n */\n total: bigint\n\n /**\n * Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.\n */\n unitName?: string\n\n /**\n * Base64 encoded name of a unit of this asset, as supplied by the creator.\n */\n unitNameB64?: Uint8Array\n\n /**\n * URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.\n */\n url?: string\n\n /**\n * Base64 encoded URL where more information about the asset can be retrieved.\n */\n urlB64?: Uint8Array\n}\n\nexport const AssetParamsMeta: ObjectModelMetadata<AssetParams> = {\n name: 'AssetParams',\n kind: 'object',\n fields: [\n {\n name: 'clawback',\n wireKey: 'clawback',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'creator',\n wireKey: 'creator',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'decimals',\n wireKey: 'decimals',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'defaultFrozen',\n wireKey: 'default-frozen',\n optional: true,\n codec: booleanCodec,\n },\n {\n name: 'freeze',\n wireKey: 'freeze',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'manager',\n wireKey: 'manager',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'metadataHash',\n wireKey: 'metadata-hash',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'name',\n wireKey: 'name',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'nameB64',\n wireKey: 'name-b64',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'reserve',\n wireKey: 'reserve',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'total',\n wireKey: 'total',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'unitName',\n wireKey: 'unit-name',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'unitNameB64',\n wireKey: 'unit-name-b64',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'url',\n wireKey: 'url',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'urlB64',\n wireKey: 'url-b64',\n optional: true,\n codec: bytesCodec,\n },\n ],\n}\n"],"mappings":";;;;;;;;AAwFA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOF;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOG;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOH;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOI;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOJ;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOK;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOL;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOI;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOJ;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOI;GACR;EACF;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
2
2
|
import { booleanCodec } from "../../../common/src/codecs/primitives/boolean.mjs";
|
|
3
3
|
import { bytesCodec } from "../../../common/src/codecs/primitives/bytes.mjs";
|
|
4
|
+
import { fixedBytes32Codec } from "../../../common/src/codecs/primitives/fixed-bytes.mjs";
|
|
4
5
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
5
6
|
import { stringCodec } from "../../../common/src/codecs/primitives/string.mjs";
|
|
6
7
|
|
|
@@ -49,7 +50,7 @@ const AssetParamsMeta = {
|
|
|
49
50
|
name: "metadataHash",
|
|
50
51
|
wireKey: "metadata-hash",
|
|
51
52
|
optional: true,
|
|
52
|
-
codec:
|
|
53
|
+
codec: fixedBytes32Codec
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
name: "name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-params.mjs","names":["AssetParamsMeta: ObjectModelMetadata<AssetParams>"],"sources":["../../../../../packages/indexer_client/src/models/asset-params.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { stringCodec, numberCodec, bigIntCodec, booleanCodec, bytesCodec } from '@algorandfoundation/algokit-common'\n\n/**\n * AssetParams specifies the parameters for an asset.\n *\n * \\[apar\\] when part of an AssetConfig transaction.\n *\n * Definition:\n * data/transactions/asset.go : AssetParams\n */\nexport type AssetParams = {\n /**\n * Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.\n */\n clawback?: string\n\n /**\n * The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.\n */\n creator: string\n\n /**\n * The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n\n /**\n * Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.\n */\n name?: string\n\n /**\n * Base64 encoded name of this asset, as supplied by the creator.\n */\n nameB64?: Uint8Array\n\n /**\n * Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * The total number of units of this asset.\n */\n total: bigint\n\n /**\n * Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.\n */\n unitName?: string\n\n /**\n * Base64 encoded name of a unit of this asset, as supplied by the creator.\n */\n unitNameB64?: Uint8Array\n\n /**\n * URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.\n */\n url?: string\n\n /**\n * Base64 encoded URL where more information about the asset can be retrieved.\n */\n urlB64?: Uint8Array\n}\n\nexport const AssetParamsMeta: ObjectModelMetadata<AssetParams> = {\n name: 'AssetParams',\n kind: 'object',\n fields: [\n {\n name: 'clawback',\n wireKey: 'clawback',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'creator',\n wireKey: 'creator',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'decimals',\n wireKey: 'decimals',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'defaultFrozen',\n wireKey: 'default-frozen',\n optional: true,\n codec: booleanCodec,\n },\n {\n name: 'freeze',\n wireKey: 'freeze',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'manager',\n wireKey: 'manager',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'metadataHash',\n wireKey: 'metadata-hash',\n optional: true,\n codec:
|
|
1
|
+
{"version":3,"file":"asset-params.mjs","names":["AssetParamsMeta: ObjectModelMetadata<AssetParams>"],"sources":["../../../../../packages/indexer_client/src/models/asset-params.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { stringCodec, numberCodec, bigIntCodec, booleanCodec, bytesCodec, fixedBytes32Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * AssetParams specifies the parameters for an asset.\n *\n * \\[apar\\] when part of an AssetConfig transaction.\n *\n * Definition:\n * data/transactions/asset.go : AssetParams\n */\nexport type AssetParams = {\n /**\n * Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.\n */\n clawback?: string\n\n /**\n * The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.\n */\n creator: string\n\n /**\n * The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).\n */\n decimals: number\n\n /**\n * Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.\n */\n name?: string\n\n /**\n * Base64 encoded name of this asset, as supplied by the creator.\n */\n nameB64?: Uint8Array\n\n /**\n * Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * The total number of units of this asset.\n */\n total: bigint\n\n /**\n * Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.\n */\n unitName?: string\n\n /**\n * Base64 encoded name of a unit of this asset, as supplied by the creator.\n */\n unitNameB64?: Uint8Array\n\n /**\n * URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.\n */\n url?: string\n\n /**\n * Base64 encoded URL where more information about the asset can be retrieved.\n */\n urlB64?: Uint8Array\n}\n\nexport const AssetParamsMeta: ObjectModelMetadata<AssetParams> = {\n name: 'AssetParams',\n kind: 'object',\n fields: [\n {\n name: 'clawback',\n wireKey: 'clawback',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'creator',\n wireKey: 'creator',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'decimals',\n wireKey: 'decimals',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'defaultFrozen',\n wireKey: 'default-frozen',\n optional: true,\n codec: booleanCodec,\n },\n {\n name: 'freeze',\n wireKey: 'freeze',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'manager',\n wireKey: 'manager',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'metadataHash',\n wireKey: 'metadata-hash',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'name',\n wireKey: 'name',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'nameB64',\n wireKey: 'name-b64',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'reserve',\n wireKey: 'reserve',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'total',\n wireKey: 'total',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'unitName',\n wireKey: 'unit-name',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'unitNameB64',\n wireKey: 'unit-name-b64',\n optional: true,\n codec: bytesCodec,\n },\n {\n name: 'url',\n wireKey: 'url',\n optional: true,\n codec: stringCodec,\n },\n {\n name: 'urlB64',\n wireKey: 'url-b64',\n optional: true,\n codec: bytesCodec,\n },\n ],\n}\n"],"mappings":";;;;;;;;AAwFA,MAAaA,kBAAoD;CAC/D,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACF;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_address = require('../../../common/src/codecs/primitives/address.js');
|
|
2
2
|
const require_bigint = require('../../../common/src/codecs/primitives/bigint.js');
|
|
3
|
-
const
|
|
3
|
+
const require_fixed_bytes = require('../../../common/src/codecs/primitives/fixed-bytes.js');
|
|
4
4
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
5
5
|
const require_string = require('../../../common/src/codecs/primitives/string.js');
|
|
6
6
|
const require_array = require('../../../common/src/codecs/composite/array.js');
|
|
@@ -45,7 +45,7 @@ const BlockMeta = {
|
|
|
45
45
|
name: "genesisHash",
|
|
46
46
|
wireKey: "genesis-hash",
|
|
47
47
|
optional: false,
|
|
48
|
-
codec:
|
|
48
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: "genesisId",
|
|
@@ -57,13 +57,13 @@ const BlockMeta = {
|
|
|
57
57
|
name: "previousBlockHash",
|
|
58
58
|
wireKey: "previous-block-hash",
|
|
59
59
|
optional: false,
|
|
60
|
-
codec:
|
|
60
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
name: "previousBlockHash512",
|
|
64
64
|
wireKey: "previous-block-hash-512",
|
|
65
65
|
optional: true,
|
|
66
|
-
codec:
|
|
66
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
name: "rewards",
|
|
@@ -81,7 +81,7 @@ const BlockMeta = {
|
|
|
81
81
|
name: "seed",
|
|
82
82
|
wireKey: "seed",
|
|
83
83
|
optional: false,
|
|
84
|
-
codec:
|
|
84
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
name: "stateProofTracking",
|
|
@@ -105,19 +105,19 @@ const BlockMeta = {
|
|
|
105
105
|
name: "transactionsRoot",
|
|
106
106
|
wireKey: "transactions-root",
|
|
107
107
|
optional: false,
|
|
108
|
-
codec:
|
|
108
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
name: "transactionsRootSha256",
|
|
112
112
|
wireKey: "transactions-root-sha256",
|
|
113
113
|
optional: false,
|
|
114
|
-
codec:
|
|
114
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: "transactionsRootSha512",
|
|
118
118
|
wireKey: "transactions-root-sha512",
|
|
119
119
|
optional: true,
|
|
120
|
-
codec:
|
|
120
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: "txnCounter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.js","names":["BlockMeta: ObjectModelMetadata<Block>","addressCodec","numberCodec","
|
|
1
|
+
{"version":3,"file":"block.js","names":["BlockMeta: ObjectModelMetadata<Block>","addressCodec","numberCodec","fixedBytes32Codec","stringCodec","fixedBytes64Codec","ObjectModelCodec","BlockRewardsMeta","bigIntCodec","ArrayCodec","StateProofTrackingMeta","TransactionMeta","BlockUpgradeStateMeta","BlockUpgradeVoteMeta","ParticipationUpdatesMeta"],"sources":["../../../../../packages/indexer_client/src/models/block.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n addressCodec,\n ArrayCodec,\n ObjectModelCodec,\n fixedBytes32Codec,\n fixedBytes64Codec,\n} from '@algorandfoundation/algokit-common'\nimport type { BlockRewards } from './block-rewards'\nimport { BlockRewardsMeta } from './block-rewards'\nimport type { BlockUpgradeState } from './block-upgrade-state'\nimport { BlockUpgradeStateMeta } from './block-upgrade-state'\nimport type { BlockUpgradeVote } from './block-upgrade-vote'\nimport { BlockUpgradeVoteMeta } from './block-upgrade-vote'\nimport type { ParticipationUpdates } from './participation-updates'\nimport { ParticipationUpdatesMeta } from './participation-updates'\nimport type { StateProofTracking } from './state-proof-tracking'\nimport { StateProofTrackingMeta } from './state-proof-tracking'\nimport type { Transaction } from './transaction'\nimport { TransactionMeta } from './transaction'\n\n/**\n * Block information.\n *\n * Definition:\n * data/bookkeeping/block.go : Block\n */\nexport type Block = {\n /**\n * the proposer of this block.\n */\n proposer?: Address\n\n /**\n * the sum of all fees paid by transactions in this block.\n */\n feesCollected?: number\n\n /**\n * the potential bonus payout for this block.\n */\n bonus?: number\n\n /**\n * the actual amount transferred to the proposer from the fee sink.\n */\n proposerPayout?: number\n\n /**\n * \\[gh\\] hash to which this block belongs.\n */\n genesisHash: Uint8Array\n\n /**\n * \\[gen\\] ID to which this block belongs.\n */\n genesisId: string\n\n /**\n * \\[prev\\] Previous block hash.\n */\n previousBlockHash: Uint8Array\n\n /**\n * \\[prev512\\] Previous block hash, using SHA-512.\n */\n previousBlockHash512?: Uint8Array\n rewards?: BlockRewards\n\n /**\n * \\[rnd\\] Current round on which this block was appended to the chain.\n */\n round: bigint\n\n /**\n * \\[seed\\] Sortition seed.\n */\n seed: Uint8Array\n\n /**\n * Tracks the status of state proofs.\n */\n stateProofTracking?: StateProofTracking[]\n\n /**\n * \\[ts\\] Block creation timestamp in seconds since epoch\n */\n timestamp: number\n\n /**\n * \\[txns\\] list of transactions corresponding to a given round.\n */\n transactions?: Transaction[]\n\n /**\n * \\[txn\\] TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it's the root of a merkle tree whose leaves are the block's Txids, in lexicographic order. For the empty block, it's 0. Note that the TxnRoot does not authenticate the signatures on the transactions, only the transactions themselves. Two blocks with the same transactions but in a different order and with different signatures will have the same TxnRoot.\n */\n transactionsRoot: Uint8Array\n\n /**\n * \\[txn256\\] TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA256 hash function instead of the default SHA512_256. This commitment can be used on environments where only the SHA256 function exists.\n */\n transactionsRootSha256: Uint8Array\n\n /**\n * \\[txn512\\] TransactionsRootSHA512 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA512 hash function instead of the default SHA512_256.\n */\n transactionsRootSha512?: Uint8Array\n\n /**\n * \\[tc\\] TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.\n *\n * Specifically, TxnCounter is the number of the next transaction that will be committed after this block. It is 0 when no transactions have ever been committed (since TxnCounter started being supported).\n */\n txnCounter?: number\n upgradeState?: BlockUpgradeState\n upgradeVote?: BlockUpgradeVote\n participationUpdates?: ParticipationUpdates\n}\n\nexport const BlockMeta: ObjectModelMetadata<Block> = {\n name: 'Block',\n kind: 'object',\n fields: [\n {\n name: 'proposer',\n wireKey: 'proposer',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'feesCollected',\n wireKey: 'fees-collected',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'bonus',\n wireKey: 'bonus',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'proposerPayout',\n wireKey: 'proposer-payout',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'previousBlockHash',\n wireKey: 'previous-block-hash',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'previousBlockHash512',\n wireKey: 'previous-block-hash-512',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'rewards',\n wireKey: 'rewards',\n optional: true,\n codec: new ObjectModelCodec(BlockRewardsMeta),\n },\n {\n name: 'round',\n wireKey: 'round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'seed',\n wireKey: 'seed',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'stateProofTracking',\n wireKey: 'state-proof-tracking',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(StateProofTrackingMeta)),\n },\n {\n name: 'timestamp',\n wireKey: 'timestamp',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'transactions',\n wireKey: 'transactions',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(TransactionMeta)),\n },\n {\n name: 'transactionsRoot',\n wireKey: 'transactions-root',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'transactionsRootSha256',\n wireKey: 'transactions-root-sha256',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'transactionsRootSha512',\n wireKey: 'transactions-root-sha512',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'txnCounter',\n wireKey: 'txn-counter',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'upgradeState',\n wireKey: 'upgrade-state',\n optional: true,\n codec: new ObjectModelCodec(BlockUpgradeStateMeta),\n },\n {\n name: 'upgradeVote',\n wireKey: 'upgrade-vote',\n optional: true,\n codec: new ObjectModelCodec(BlockUpgradeVoteMeta),\n },\n {\n name: 'participationUpdates',\n wireKey: 'participation-updates',\n optional: true,\n codec: new ObjectModelCodec(ParticipationUpdatesMeta),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;AA2HA,MAAaA,YAAwC;CACnD,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOE;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIC,sCAAiBC,uCAAiB;GAC9C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOL;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIM,yBAAW,IAAIH,sCAAiBI,oDAAuB,CAAC;GACpE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOR;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIO,yBAAW,IAAIH,sCAAiBK,oCAAgB,CAAC;GAC7D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOR;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOE;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOH;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAII,sCAAiBM,kDAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIN,sCAAiBO,gDAAqB;GAClD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAIP,sCAAiBQ,uDAAyB;GACtD;EACF;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addressCodec } from "../../../common/src/codecs/primitives/address.mjs";
|
|
2
2
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { fixedBytes32Codec, fixedBytes64Codec } from "../../../common/src/codecs/primitives/fixed-bytes.mjs";
|
|
4
4
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
5
5
|
import { stringCodec } from "../../../common/src/codecs/primitives/string.mjs";
|
|
6
6
|
import { ArrayCodec } from "../../../common/src/codecs/composite/array.mjs";
|
|
@@ -45,7 +45,7 @@ const BlockMeta = {
|
|
|
45
45
|
name: "genesisHash",
|
|
46
46
|
wireKey: "genesis-hash",
|
|
47
47
|
optional: false,
|
|
48
|
-
codec:
|
|
48
|
+
codec: fixedBytes32Codec
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: "genesisId",
|
|
@@ -57,13 +57,13 @@ const BlockMeta = {
|
|
|
57
57
|
name: "previousBlockHash",
|
|
58
58
|
wireKey: "previous-block-hash",
|
|
59
59
|
optional: false,
|
|
60
|
-
codec:
|
|
60
|
+
codec: fixedBytes32Codec
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
name: "previousBlockHash512",
|
|
64
64
|
wireKey: "previous-block-hash-512",
|
|
65
65
|
optional: true,
|
|
66
|
-
codec:
|
|
66
|
+
codec: fixedBytes64Codec
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
name: "rewards",
|
|
@@ -81,7 +81,7 @@ const BlockMeta = {
|
|
|
81
81
|
name: "seed",
|
|
82
82
|
wireKey: "seed",
|
|
83
83
|
optional: false,
|
|
84
|
-
codec:
|
|
84
|
+
codec: fixedBytes32Codec
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
name: "stateProofTracking",
|
|
@@ -105,19 +105,19 @@ const BlockMeta = {
|
|
|
105
105
|
name: "transactionsRoot",
|
|
106
106
|
wireKey: "transactions-root",
|
|
107
107
|
optional: false,
|
|
108
|
-
codec:
|
|
108
|
+
codec: fixedBytes32Codec
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
name: "transactionsRootSha256",
|
|
112
112
|
wireKey: "transactions-root-sha256",
|
|
113
113
|
optional: false,
|
|
114
|
-
codec:
|
|
114
|
+
codec: fixedBytes32Codec
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: "transactionsRootSha512",
|
|
118
118
|
wireKey: "transactions-root-sha512",
|
|
119
119
|
optional: true,
|
|
120
|
-
codec:
|
|
120
|
+
codec: fixedBytes64Codec
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: "txnCounter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.mjs","names":["BlockMeta: ObjectModelMetadata<Block>"],"sources":["../../../../../packages/indexer_client/src/models/block.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n
|
|
1
|
+
{"version":3,"file":"block.mjs","names":["BlockMeta: ObjectModelMetadata<Block>"],"sources":["../../../../../packages/indexer_client/src/models/block.ts"],"sourcesContent":["import type { Address, ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {\n stringCodec,\n numberCodec,\n bigIntCodec,\n addressCodec,\n ArrayCodec,\n ObjectModelCodec,\n fixedBytes32Codec,\n fixedBytes64Codec,\n} from '@algorandfoundation/algokit-common'\nimport type { BlockRewards } from './block-rewards'\nimport { BlockRewardsMeta } from './block-rewards'\nimport type { BlockUpgradeState } from './block-upgrade-state'\nimport { BlockUpgradeStateMeta } from './block-upgrade-state'\nimport type { BlockUpgradeVote } from './block-upgrade-vote'\nimport { BlockUpgradeVoteMeta } from './block-upgrade-vote'\nimport type { ParticipationUpdates } from './participation-updates'\nimport { ParticipationUpdatesMeta } from './participation-updates'\nimport type { StateProofTracking } from './state-proof-tracking'\nimport { StateProofTrackingMeta } from './state-proof-tracking'\nimport type { Transaction } from './transaction'\nimport { TransactionMeta } from './transaction'\n\n/**\n * Block information.\n *\n * Definition:\n * data/bookkeeping/block.go : Block\n */\nexport type Block = {\n /**\n * the proposer of this block.\n */\n proposer?: Address\n\n /**\n * the sum of all fees paid by transactions in this block.\n */\n feesCollected?: number\n\n /**\n * the potential bonus payout for this block.\n */\n bonus?: number\n\n /**\n * the actual amount transferred to the proposer from the fee sink.\n */\n proposerPayout?: number\n\n /**\n * \\[gh\\] hash to which this block belongs.\n */\n genesisHash: Uint8Array\n\n /**\n * \\[gen\\] ID to which this block belongs.\n */\n genesisId: string\n\n /**\n * \\[prev\\] Previous block hash.\n */\n previousBlockHash: Uint8Array\n\n /**\n * \\[prev512\\] Previous block hash, using SHA-512.\n */\n previousBlockHash512?: Uint8Array\n rewards?: BlockRewards\n\n /**\n * \\[rnd\\] Current round on which this block was appended to the chain.\n */\n round: bigint\n\n /**\n * \\[seed\\] Sortition seed.\n */\n seed: Uint8Array\n\n /**\n * Tracks the status of state proofs.\n */\n stateProofTracking?: StateProofTracking[]\n\n /**\n * \\[ts\\] Block creation timestamp in seconds since epoch\n */\n timestamp: number\n\n /**\n * \\[txns\\] list of transactions corresponding to a given round.\n */\n transactions?: Transaction[]\n\n /**\n * \\[txn\\] TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it's the root of a merkle tree whose leaves are the block's Txids, in lexicographic order. For the empty block, it's 0. Note that the TxnRoot does not authenticate the signatures on the transactions, only the transactions themselves. Two blocks with the same transactions but in a different order and with different signatures will have the same TxnRoot.\n */\n transactionsRoot: Uint8Array\n\n /**\n * \\[txn256\\] TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA256 hash function instead of the default SHA512_256. This commitment can be used on environments where only the SHA256 function exists.\n */\n transactionsRootSha256: Uint8Array\n\n /**\n * \\[txn512\\] TransactionsRootSHA512 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA512 hash function instead of the default SHA512_256.\n */\n transactionsRootSha512?: Uint8Array\n\n /**\n * \\[tc\\] TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.\n *\n * Specifically, TxnCounter is the number of the next transaction that will be committed after this block. It is 0 when no transactions have ever been committed (since TxnCounter started being supported).\n */\n txnCounter?: number\n upgradeState?: BlockUpgradeState\n upgradeVote?: BlockUpgradeVote\n participationUpdates?: ParticipationUpdates\n}\n\nexport const BlockMeta: ObjectModelMetadata<Block> = {\n name: 'Block',\n kind: 'object',\n fields: [\n {\n name: 'proposer',\n wireKey: 'proposer',\n optional: true,\n codec: addressCodec,\n },\n {\n name: 'feesCollected',\n wireKey: 'fees-collected',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'bonus',\n wireKey: 'bonus',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'proposerPayout',\n wireKey: 'proposer-payout',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'genesisHash',\n wireKey: 'genesis-hash',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'genesisId',\n wireKey: 'genesis-id',\n optional: false,\n codec: stringCodec,\n },\n {\n name: 'previousBlockHash',\n wireKey: 'previous-block-hash',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'previousBlockHash512',\n wireKey: 'previous-block-hash-512',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'rewards',\n wireKey: 'rewards',\n optional: true,\n codec: new ObjectModelCodec(BlockRewardsMeta),\n },\n {\n name: 'round',\n wireKey: 'round',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'seed',\n wireKey: 'seed',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'stateProofTracking',\n wireKey: 'state-proof-tracking',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(StateProofTrackingMeta)),\n },\n {\n name: 'timestamp',\n wireKey: 'timestamp',\n optional: false,\n codec: numberCodec,\n },\n {\n name: 'transactions',\n wireKey: 'transactions',\n optional: true,\n codec: new ArrayCodec(new ObjectModelCodec(TransactionMeta)),\n },\n {\n name: 'transactionsRoot',\n wireKey: 'transactions-root',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'transactionsRootSha256',\n wireKey: 'transactions-root-sha256',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'transactionsRootSha512',\n wireKey: 'transactions-root-sha512',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'txnCounter',\n wireKey: 'txn-counter',\n optional: true,\n codec: numberCodec,\n },\n {\n name: 'upgradeState',\n wireKey: 'upgrade-state',\n optional: true,\n codec: new ObjectModelCodec(BlockUpgradeStateMeta),\n },\n {\n name: 'upgradeVote',\n wireKey: 'upgrade-vote',\n optional: true,\n codec: new ObjectModelCodec(BlockUpgradeVoteMeta),\n },\n {\n name: 'participationUpdates',\n wireKey: 'participation-updates',\n optional: true,\n codec: new ObjectModelCodec(ParticipationUpdatesMeta),\n },\n ],\n}\n"],"mappings":";;;;;;;;;;;;;;;AA2HA,MAAaA,YAAwC;CACnD,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,iBAAiB;GAC9C;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,uBAAuB,CAAC;GACpE;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,WAAW,IAAI,iBAAiB,gBAAgB,CAAC;GAC7D;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,sBAAsB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,qBAAqB;GAClD;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO,IAAI,iBAAiB,yBAAyB;GACtD;EACF;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_bytes = require('../../../common/src/codecs/primitives/bytes.js');
|
|
2
2
|
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
3
3
|
const require_eval_delta = require('./eval-delta.js');
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ const EvalDeltaKeyValueMeta = {
|
|
|
10
10
|
name: "key",
|
|
11
11
|
wireKey: "key",
|
|
12
12
|
optional: false,
|
|
13
|
-
codec:
|
|
13
|
+
codec: require_bytes.bytesCodec
|
|
14
14
|
}, {
|
|
15
15
|
name: "value",
|
|
16
16
|
wireKey: "value",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-delta-key-value.js","names":["EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue>","
|
|
1
|
+
{"version":3,"file":"eval-delta-key-value.js","names":["EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue>","bytesCodec","ObjectModelCodec","EvalDeltaMeta"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta-key-value.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bytesCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { EvalDelta } from './eval-delta'\nimport { EvalDeltaMeta } from './eval-delta'\n\n/**\n * Key-value pairs for StateDelta.\n */\nexport type EvalDeltaKeyValue = {\n key: Uint8Array\n value: EvalDelta\n}\n\nexport const EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue> = {\n name: 'EvalDeltaKeyValue',\n kind: 'object',\n fields: [\n {\n name: 'key',\n wireKey: 'key',\n optional: false,\n codec: bytesCodec,\n },\n {\n name: 'value',\n wireKey: 'value',\n optional: false,\n codec: new ObjectModelCodec(EvalDeltaMeta),\n },\n ],\n}\n"],"mappings":";;;;;AAaA,MAAaA,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO,IAAIC,sCAAiBC,iCAAc;EAC3C,CACF;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bytesCodec } from "../../../common/src/codecs/primitives/bytes.mjs";
|
|
2
2
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
3
3
|
import { EvalDeltaMeta } from "./eval-delta.mjs";
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ const EvalDeltaKeyValueMeta = {
|
|
|
10
10
|
name: "key",
|
|
11
11
|
wireKey: "key",
|
|
12
12
|
optional: false,
|
|
13
|
-
codec:
|
|
13
|
+
codec: bytesCodec
|
|
14
14
|
}, {
|
|
15
15
|
name: "value",
|
|
16
16
|
wireKey: "value",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-delta-key-value.mjs","names":["EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue>"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta-key-value.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {
|
|
1
|
+
{"version":3,"file":"eval-delta-key-value.mjs","names":["EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue>"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta-key-value.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bytesCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'\nimport type { EvalDelta } from './eval-delta'\nimport { EvalDeltaMeta } from './eval-delta'\n\n/**\n * Key-value pairs for StateDelta.\n */\nexport type EvalDeltaKeyValue = {\n key: Uint8Array\n value: EvalDelta\n}\n\nexport const EvalDeltaKeyValueMeta: ObjectModelMetadata<EvalDeltaKeyValue> = {\n name: 'EvalDeltaKeyValue',\n kind: 'object',\n fields: [\n {\n name: 'key',\n wireKey: 'key',\n optional: false,\n codec: bytesCodec,\n },\n {\n name: 'value',\n wireKey: 'value',\n optional: false,\n codec: new ObjectModelCodec(EvalDeltaMeta),\n },\n ],\n}\n"],"mappings":";;;;;AAaA,MAAaA,wBAAgE;CAC3E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO,IAAI,iBAAiB,cAAc;EAC3C,CACF;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_bigint = require('../../../common/src/codecs/primitives/bigint.js');
|
|
2
|
+
const require_bytes = require('../../../common/src/codecs/primitives/bytes.js');
|
|
2
3
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
3
|
-
const require_string = require('../../../common/src/codecs/primitives/string.js');
|
|
4
4
|
|
|
5
5
|
//#region packages/indexer_client/src/models/eval-delta.ts
|
|
6
6
|
const EvalDeltaMeta = {
|
|
@@ -17,7 +17,7 @@ const EvalDeltaMeta = {
|
|
|
17
17
|
name: "bytes",
|
|
18
18
|
wireKey: "bytes",
|
|
19
19
|
optional: true,
|
|
20
|
-
codec:
|
|
20
|
+
codec: require_bytes.bytesCodec
|
|
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","bytesCodec","bigIntCodec"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, bytesCodec } 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: bytesCodec,\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,6 +1,6 @@
|
|
|
1
1
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
2
|
+
import { bytesCodec } from "../../../common/src/codecs/primitives/bytes.mjs";
|
|
2
3
|
import { numberCodec } from "../../../common/src/codecs/primitives/number.mjs";
|
|
3
|
-
import { stringCodec } from "../../../common/src/codecs/primitives/string.mjs";
|
|
4
4
|
|
|
5
5
|
//#region packages/indexer_client/src/models/eval-delta.ts
|
|
6
6
|
const EvalDeltaMeta = {
|
|
@@ -17,7 +17,7 @@ const EvalDeltaMeta = {
|
|
|
17
17
|
name: "bytes",
|
|
18
18
|
wireKey: "bytes",
|
|
19
19
|
optional: true,
|
|
20
|
-
codec:
|
|
20
|
+
codec: bytesCodec
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
name: "uint",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-delta.mjs","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {
|
|
1
|
+
{"version":3,"file":"eval-delta.mjs","names":["EvalDeltaMeta: ObjectModelMetadata<EvalDelta>"],"sources":["../../../../../packages/indexer_client/src/models/eval-delta.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { numberCodec, bigIntCodec, bytesCodec } 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: bytesCodec,\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,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_fixed_bytes = require('../../../common/src/codecs/primitives/fixed-bytes.js');
|
|
2
2
|
|
|
3
3
|
//#region packages/indexer_client/src/models/hb-proof-fields.ts
|
|
4
4
|
const HbProofFieldsMeta = {
|
|
@@ -9,31 +9,31 @@ const HbProofFieldsMeta = {
|
|
|
9
9
|
name: "hbSig",
|
|
10
10
|
wireKey: "hb-sig",
|
|
11
11
|
optional: true,
|
|
12
|
-
codec:
|
|
12
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
name: "hbPk",
|
|
16
16
|
wireKey: "hb-pk",
|
|
17
17
|
optional: true,
|
|
18
|
-
codec:
|
|
18
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
name: "hbPk2",
|
|
22
22
|
wireKey: "hb-pk2",
|
|
23
23
|
optional: true,
|
|
24
|
-
codec:
|
|
24
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
name: "hbPk1sig",
|
|
28
28
|
wireKey: "hb-pk1sig",
|
|
29
29
|
optional: true,
|
|
30
|
-
codec:
|
|
30
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: "hbPk2sig",
|
|
34
34
|
wireKey: "hb-pk2sig",
|
|
35
35
|
optional: true,
|
|
36
|
-
codec:
|
|
36
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hb-proof-fields.js","names":["HbProofFieldsMeta: ObjectModelMetadata<HbProofFields>","
|
|
1
|
+
{"version":3,"file":"hb-proof-fields.js","names":["HbProofFieldsMeta: ObjectModelMetadata<HbProofFields>","fixedBytes64Codec","fixedBytes32Codec"],"sources":["../../../../../packages/indexer_client/src/models/hb-proof-fields.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { fixedBytes32Codec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * \\[hbprf\\] HbProof is a signature using HeartbeatAddress's partkey, thereby showing it is online.\n */\nexport type HbProofFields = {\n /**\n * \\[s\\] Signature of the heartbeat message.\n */\n hbSig?: Uint8Array\n\n /**\n * \\[p\\] Public key of the heartbeat message.\n */\n hbPk?: Uint8Array\n\n /**\n * \\[p2\\] Key for new-style two-level ephemeral signature.\n */\n hbPk2?: Uint8Array\n\n /**\n * \\[p1s\\] Signature of OneTimeSignatureSubkeyOffsetID(PK, Batch, Offset) under the key PK2.\n */\n hbPk1sig?: Uint8Array\n\n /**\n * \\[p2s\\] Signature of OneTimeSignatureSubkeyBatchID(PK2, Batch) under the master key (OneTimeSignatureVerifier).\n */\n hbPk2sig?: Uint8Array\n}\n\nexport const HbProofFieldsMeta: ObjectModelMetadata<HbProofFields> = {\n name: 'HbProofFields',\n kind: 'object',\n fields: [\n {\n name: 'hbSig',\n wireKey: 'hb-sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'hbPk',\n wireKey: 'hb-pk',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'hbPk2',\n wireKey: 'hb-pk2',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'hbPk1sig',\n wireKey: 'hb-pk1sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'hbPk2sig',\n wireKey: 'hb-pk2sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n ],\n}\n"],"mappings":";;;AAiCA,MAAaA,oBAAwD;CACnE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOC;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOA;GACR;EACF;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fixedBytes32Codec, fixedBytes64Codec } from "../../../common/src/codecs/primitives/fixed-bytes.mjs";
|
|
2
2
|
|
|
3
3
|
//#region packages/indexer_client/src/models/hb-proof-fields.ts
|
|
4
4
|
const HbProofFieldsMeta = {
|
|
@@ -9,31 +9,31 @@ const HbProofFieldsMeta = {
|
|
|
9
9
|
name: "hbSig",
|
|
10
10
|
wireKey: "hb-sig",
|
|
11
11
|
optional: true,
|
|
12
|
-
codec:
|
|
12
|
+
codec: fixedBytes64Codec
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
name: "hbPk",
|
|
16
16
|
wireKey: "hb-pk",
|
|
17
17
|
optional: true,
|
|
18
|
-
codec:
|
|
18
|
+
codec: fixedBytes32Codec
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
name: "hbPk2",
|
|
22
22
|
wireKey: "hb-pk2",
|
|
23
23
|
optional: true,
|
|
24
|
-
codec:
|
|
24
|
+
codec: fixedBytes32Codec
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
name: "hbPk1sig",
|
|
28
28
|
wireKey: "hb-pk1sig",
|
|
29
29
|
optional: true,
|
|
30
|
-
codec:
|
|
30
|
+
codec: fixedBytes64Codec
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: "hbPk2sig",
|
|
34
34
|
wireKey: "hb-pk2sig",
|
|
35
35
|
optional: true,
|
|
36
|
-
codec:
|
|
36
|
+
codec: fixedBytes64Codec
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hb-proof-fields.mjs","names":["HbProofFieldsMeta: ObjectModelMetadata<HbProofFields>"],"sources":["../../../../../packages/indexer_client/src/models/hb-proof-fields.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport {
|
|
1
|
+
{"version":3,"file":"hb-proof-fields.mjs","names":["HbProofFieldsMeta: ObjectModelMetadata<HbProofFields>"],"sources":["../../../../../packages/indexer_client/src/models/hb-proof-fields.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { fixedBytes32Codec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * \\[hbprf\\] HbProof is a signature using HeartbeatAddress's partkey, thereby showing it is online.\n */\nexport type HbProofFields = {\n /**\n * \\[s\\] Signature of the heartbeat message.\n */\n hbSig?: Uint8Array\n\n /**\n * \\[p\\] Public key of the heartbeat message.\n */\n hbPk?: Uint8Array\n\n /**\n * \\[p2\\] Key for new-style two-level ephemeral signature.\n */\n hbPk2?: Uint8Array\n\n /**\n * \\[p1s\\] Signature of OneTimeSignatureSubkeyOffsetID(PK, Batch, Offset) under the key PK2.\n */\n hbPk1sig?: Uint8Array\n\n /**\n * \\[p2s\\] Signature of OneTimeSignatureSubkeyBatchID(PK2, Batch) under the master key (OneTimeSignatureVerifier).\n */\n hbPk2sig?: Uint8Array\n}\n\nexport const HbProofFieldsMeta: ObjectModelMetadata<HbProofFields> = {\n name: 'HbProofFields',\n kind: 'object',\n fields: [\n {\n name: 'hbSig',\n wireKey: 'hb-sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'hbPk',\n wireKey: 'hb-pk',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'hbPk2',\n wireKey: 'hb-pk2',\n optional: true,\n codec: fixedBytes32Codec,\n },\n {\n name: 'hbPk1sig',\n wireKey: 'hb-pk1sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'hbPk2sig',\n wireKey: 'hb-pk2sig',\n optional: true,\n codec: fixedBytes64Codec,\n },\n ],\n}\n"],"mappings":";;;AAiCA,MAAaA,oBAAwD;CACnE,MAAM;CACN,MAAM;CACN,QAAQ;EACN;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAO;GACR;EACF;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_bigint = require('../../../common/src/codecs/primitives/bigint.js');
|
|
2
|
-
const
|
|
2
|
+
const require_fixed_bytes = require('../../../common/src/codecs/primitives/fixed-bytes.js');
|
|
3
3
|
|
|
4
4
|
//#region packages/indexer_client/src/models/state-proof-verifier.ts
|
|
5
5
|
const StateProofVerifierMeta = {
|
|
@@ -9,7 +9,7 @@ const StateProofVerifierMeta = {
|
|
|
9
9
|
name: "commitment",
|
|
10
10
|
wireKey: "commitment",
|
|
11
11
|
optional: true,
|
|
12
|
-
codec:
|
|
12
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
13
13
|
}, {
|
|
14
14
|
name: "keyLifetime",
|
|
15
15
|
wireKey: "key-lifetime",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-proof-verifier.js","names":["StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier>","
|
|
1
|
+
{"version":3,"file":"state-proof-verifier.js","names":["StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier>","fixedBytes64Codec","bigIntCodec"],"sources":["../../../../../packages/indexer_client/src/models/state-proof-verifier.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\nexport type StateProofVerifier = {\n /**\n * \\[cmt\\] Represents the root of the vector commitment tree.\n */\n commitment?: Uint8Array\n\n /**\n * \\[lf\\] Key lifetime.\n */\n keyLifetime?: bigint\n}\n\nexport const StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier> = {\n name: 'StateProofVerifier',\n kind: 'object',\n fields: [\n {\n name: 'commitment',\n wireKey: 'commitment',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'keyLifetime',\n wireKey: 'key-lifetime',\n optional: true,\n codec: bigIntCodec,\n },\n ],\n}\n"],"mappings":";;;;AAeA,MAAaA,yBAAkE;CAC7E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAOC;EACR,CACF;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { fixedBytes64Codec } from "../../../common/src/codecs/primitives/fixed-bytes.mjs";
|
|
3
3
|
|
|
4
4
|
//#region packages/indexer_client/src/models/state-proof-verifier.ts
|
|
5
5
|
const StateProofVerifierMeta = {
|
|
@@ -9,7 +9,7 @@ const StateProofVerifierMeta = {
|
|
|
9
9
|
name: "commitment",
|
|
10
10
|
wireKey: "commitment",
|
|
11
11
|
optional: true,
|
|
12
|
-
codec:
|
|
12
|
+
codec: fixedBytes64Codec
|
|
13
13
|
}, {
|
|
14
14
|
name: "keyLifetime",
|
|
15
15
|
wireKey: "key-lifetime",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-proof-verifier.mjs","names":["StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier>"],"sources":["../../../../../packages/indexer_client/src/models/state-proof-verifier.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec,
|
|
1
|
+
{"version":3,"file":"state-proof-verifier.mjs","names":["StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier>"],"sources":["../../../../../packages/indexer_client/src/models/state-proof-verifier.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\nexport type StateProofVerifier = {\n /**\n * \\[cmt\\] Represents the root of the vector commitment tree.\n */\n commitment?: Uint8Array\n\n /**\n * \\[lf\\] Key lifetime.\n */\n keyLifetime?: bigint\n}\n\nexport const StateProofVerifierMeta: ObjectModelMetadata<StateProofVerifier> = {\n name: 'StateProofVerifier',\n kind: 'object',\n fields: [\n {\n name: 'commitment',\n wireKey: 'commitment',\n optional: true,\n codec: fixedBytes64Codec,\n },\n {\n name: 'keyLifetime',\n wireKey: 'key-lifetime',\n optional: true,\n codec: bigIntCodec,\n },\n ],\n}\n"],"mappings":";;;;AAeA,MAAaA,yBAAkE;CAC7E,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,EACD;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,OAAO;EACR,CACF;CACF"}
|