@algorandfoundation/algokit-utils 10.0.0-alpha.8 → 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 +36 -22
- 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 +36 -22
- 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 +33 -28
- 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 +16 -13
- 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
|
@@ -5,7 +5,9 @@ var ApiError = class extends Error {
|
|
|
5
5
|
status;
|
|
6
6
|
body;
|
|
7
7
|
constructor(url, status, body) {
|
|
8
|
-
|
|
8
|
+
let message = `Request to ${url} failed with status ${status}`;
|
|
9
|
+
if (body && typeof body === "object" && "message" in body && body.message) message += `: ${body.message}`;
|
|
10
|
+
super(message);
|
|
9
11
|
this.url = url;
|
|
10
12
|
this.status = status;
|
|
11
13
|
this.body = body;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error.js","names":[],"sources":["../../../../../packages/algod_client/src/core/api-error.ts"],"sourcesContent":["export class ApiError<T = unknown> extends Error {\n public readonly url: string\n public readonly status: number\n public readonly body: T | undefined\n\n constructor(url: string, status: number, body?: T) {\n
|
|
1
|
+
{"version":3,"file":"api-error.js","names":[],"sources":["../../../../../packages/algod_client/src/core/api-error.ts"],"sourcesContent":["export class ApiError<T = unknown> extends Error {\n public readonly url: string\n public readonly status: number\n public readonly body: T | undefined\n\n constructor(url: string, status: number, body?: T) {\n let message = `Request to ${url} failed with status ${status}`\n if (body && typeof body === 'object' && 'message' in body && body.message) {\n message += `: ${body.message}`\n }\n\n super(message)\n this.url = url\n this.status = status\n this.body = body\n }\n}\n"],"mappings":";;AAAA,IAAa,WAAb,cAA2C,MAAM;CAC/C,AAAgB;CAChB,AAAgB;CAChB,AAAgB;CAEhB,YAAY,KAAa,QAAgB,MAAU;EACjD,IAAI,UAAU,cAAc,IAAI,sBAAsB;AACtD,MAAI,QAAQ,OAAO,SAAS,YAAY,aAAa,QAAQ,KAAK,QAChE,YAAW,KAAK,KAAK;AAGvB,QAAM,QAAQ;AACd,OAAK,MAAM;AACX,OAAK,SAAS;AACd,OAAK,OAAO"}
|
|
@@ -4,7 +4,9 @@ var ApiError = class extends Error {
|
|
|
4
4
|
status;
|
|
5
5
|
body;
|
|
6
6
|
constructor(url, status, body) {
|
|
7
|
-
|
|
7
|
+
let message = `Request to ${url} failed with status ${status}`;
|
|
8
|
+
if (body && typeof body === "object" && "message" in body && body.message) message += `: ${body.message}`;
|
|
9
|
+
super(message);
|
|
8
10
|
this.url = url;
|
|
9
11
|
this.status = status;
|
|
10
12
|
this.body = body;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error.mjs","names":[],"sources":["../../../../../packages/algod_client/src/core/api-error.ts"],"sourcesContent":["export class ApiError<T = unknown> extends Error {\n public readonly url: string\n public readonly status: number\n public readonly body: T | undefined\n\n constructor(url: string, status: number, body?: T) {\n
|
|
1
|
+
{"version":3,"file":"api-error.mjs","names":[],"sources":["../../../../../packages/algod_client/src/core/api-error.ts"],"sourcesContent":["export class ApiError<T = unknown> extends Error {\n public readonly url: string\n public readonly status: number\n public readonly body: T | undefined\n\n constructor(url: string, status: number, body?: T) {\n let message = `Request to ${url} failed with status ${status}`\n if (body && typeof body === 'object' && 'message' in body && body.message) {\n message += `: ${body.message}`\n }\n\n super(message)\n this.url = url\n this.status = status\n this.body = body\n }\n}\n"],"mappings":";AAAA,IAAa,WAAb,cAA2C,MAAM;CAC/C,AAAgB;CAChB,AAAgB;CAChB,AAAgB;CAEhB,YAAY,KAAa,QAAgB,MAAU;EACjD,IAAI,UAAU,cAAc,IAAI,sBAAsB;AACtD,MAAI,QAAQ,OAAO,SAAS,YAAY,aAAa,QAAQ,KAAK,QAChE,YAAW,KAAK,KAAK;AAGvB,QAAM,QAAQ;AACd,OAAK,MAAM;AACX,OAAK,SAAS;AACd,OAAK,OAAO"}
|
|
@@ -6,20 +6,20 @@ const require_msgpack = require('../../../common/src/msgpack.js');
|
|
|
6
6
|
function encodeJson(value, meta) {
|
|
7
7
|
return require_json.stringifyJson(new require_object_model.ObjectModelCodec(meta).encode(value, "json"));
|
|
8
8
|
}
|
|
9
|
-
function encodeMsgpack
|
|
9
|
+
function encodeMsgpack(value, meta) {
|
|
10
10
|
return require_msgpack.encodeMsgpack(new require_object_model.ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
11
11
|
}
|
|
12
12
|
function decodeJson(value, meta) {
|
|
13
13
|
return new require_object_model.ObjectModelCodec(meta).decode(value, "json");
|
|
14
14
|
}
|
|
15
|
-
function decodeMsgpack
|
|
15
|
+
function decodeMsgpack(value, meta) {
|
|
16
16
|
const wire = require_msgpack.decodeMsgpack(value);
|
|
17
17
|
return new require_object_model.ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
21
|
exports.decodeJson = decodeJson;
|
|
22
|
-
exports.decodeMsgpack = decodeMsgpack
|
|
22
|
+
exports.decodeMsgpack = decodeMsgpack;
|
|
23
23
|
exports.encodeJson = encodeJson;
|
|
24
|
-
exports.encodeMsgpack = encodeMsgpack
|
|
24
|
+
exports.encodeMsgpack = encodeMsgpack;
|
|
25
25
|
//# sourceMappingURL=model-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec","
|
|
1
|
+
{"version":3,"file":"model-runtime.js","names":["stringifyJson","ObjectModelCodec","rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;;AAQA,SAAgB,WAA8C,OAAU,MAAsC;AAE5G,QAAOA,2BADM,IAAIC,sCAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,CACnC;;AAE5B,SAAgB,cAAiD,OAAU,MAA0C;AAEnH,QAAOC,8BADM,IAAID,sCAAiB,KAAK,CAAC,OAAO,OAAO,UAAU,CACnC;;AAE/B,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAIA,sCAAoB,KAAK,CAAC,OAAO,OAAO,OAAO;;AAE5D,SAAgB,cAAiD,OAAmB,MAAiC;CACnH,MAAM,OAAOE,8BAAiB,MAAM;AACpC,QAAO,IAAIF,sCAAoB,KAAK,CAAC,OAAO,MAAM,UAAU"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ObjectModelCodec } from "../../../common/src/codecs/models/object-model.mjs";
|
|
2
2
|
import { stringifyJson } from "../../../common/src/json.mjs";
|
|
3
|
-
import { decodeMsgpack, encodeMsgpack } from "../../../common/src/msgpack.mjs";
|
|
3
|
+
import { decodeMsgpack as decodeMsgpack$1, encodeMsgpack as encodeMsgpack$1 } from "../../../common/src/msgpack.mjs";
|
|
4
4
|
|
|
5
5
|
//#region packages/algod_client/src/core/model-runtime.ts
|
|
6
6
|
function encodeJson(value, meta) {
|
|
7
7
|
return stringifyJson(new ObjectModelCodec(meta).encode(value, "json"));
|
|
8
8
|
}
|
|
9
|
-
function encodeMsgpack
|
|
10
|
-
return encodeMsgpack(new ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
9
|
+
function encodeMsgpack(value, meta) {
|
|
10
|
+
return encodeMsgpack$1(new ObjectModelCodec(meta).encode(value, "msgpack"));
|
|
11
11
|
}
|
|
12
12
|
function decodeJson(value, meta) {
|
|
13
13
|
return new ObjectModelCodec(meta).decode(value, "json");
|
|
14
14
|
}
|
|
15
|
-
function decodeMsgpack
|
|
16
|
-
const wire = decodeMsgpack(value);
|
|
15
|
+
function decodeMsgpack(value, meta) {
|
|
16
|
+
const wire = decodeMsgpack$1(value);
|
|
17
17
|
return new ObjectModelCodec(meta).decode(wire, "msgpack");
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export { decodeJson, decodeMsgpack
|
|
21
|
+
export { decodeJson, decodeMsgpack, encodeJson, encodeMsgpack };
|
|
22
22
|
//# sourceMappingURL=model-runtime.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-runtime.mjs","names":["
|
|
1
|
+
{"version":3,"file":"model-runtime.mjs","names":["rawEncodeMsgpack","rawDecodeMsgpack"],"sources":["../../../../../packages/algod_client/src/core/model-runtime.ts"],"sourcesContent":["import {\n ObjectModelCodec,\n decodeMsgpack as rawDecodeMsgpack,\n encodeMsgpack as rawEncodeMsgpack,\n stringifyJson,\n type ObjectModelMetadata,\n} from '@algorandfoundation/algokit-common'\n\nexport function encodeJson<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): string {\n const wire = new ObjectModelCodec(meta).encode(value, 'json')\n return stringifyJson(wire)\n}\nexport function encodeMsgpack<T extends Record<string, unknown>>(value: T, meta: ObjectModelMetadata<T>): Uint8Array {\n const wire = new ObjectModelCodec(meta).encode(value, 'msgpack')\n return rawEncodeMsgpack(wire)\n}\nexport function decodeJson<T extends Record<string, unknown>>(value: Record<string, unknown>, meta: ObjectModelMetadata<T>): T {\n return new ObjectModelCodec<T>(meta).decode(value, 'json')\n}\nexport function decodeMsgpack<T extends Record<string, unknown>>(value: Uint8Array, meta: ObjectModelMetadata<T>): T {\n const wire = rawDecodeMsgpack(value)\n return new ObjectModelCodec<T>(meta).decode(wire, 'msgpack')\n}\n"],"mappings":";;;;;AAQA,SAAgB,WAA8C,OAAU,MAAsC;AAE5G,QAAO,cADM,IAAI,iBAAiB,KAAK,CAAC,OAAO,OAAO,OAAO,CACnC;;AAE5B,SAAgB,cAAiD,OAAU,MAA0C;AAEnH,QAAOA,gBADM,IAAI,iBAAiB,KAAK,CAAC,OAAO,OAAO,UAAU,CACnC;;AAE/B,SAAgB,WAA8C,OAAgC,MAAiC;AAC7H,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,OAAO,OAAO;;AAE5D,SAAgB,cAAiD,OAAmB,MAAiC;CACnH,MAAM,OAAOC,gBAAiB,MAAM;AACpC,QAAO,IAAI,iBAAoB,KAAK,CAAC,OAAO,MAAM,UAAU"}
|
|
@@ -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/algod_client/src/models/account-participation.ts
|
|
5
5
|
const AccountParticipationMeta = {
|
|
@@ -10,7 +10,7 @@ const AccountParticipationMeta = {
|
|
|
10
10
|
name: "selectionParticipationKey",
|
|
11
11
|
wireKey: "selection-participation-key",
|
|
12
12
|
optional: false,
|
|
13
|
-
codec:
|
|
13
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
name: "voteFirstValid",
|
|
@@ -34,13 +34,13 @@ const AccountParticipationMeta = {
|
|
|
34
34
|
name: "voteParticipationKey",
|
|
35
35
|
wireKey: "vote-participation-key",
|
|
36
36
|
optional: false,
|
|
37
|
-
codec:
|
|
37
|
+
codec: require_fixed_bytes.fixedBytes32Codec
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
name: "stateProofKey",
|
|
41
41
|
wireKey: "state-proof-key",
|
|
42
42
|
optional: true,
|
|
43
|
-
codec:
|
|
43
|
+
codec: require_fixed_bytes.fixedBytes64Codec
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-participation.js","names":["AccountParticipationMeta: ObjectModelMetadata<AccountParticipation>","
|
|
1
|
+
{"version":3,"file":"account-participation.js","names":["AccountParticipationMeta: ObjectModelMetadata<AccountParticipation>","fixedBytes32Codec","bigIntCodec","fixedBytes64Codec"],"sources":["../../../../../packages/algod_client/src/models/account-participation.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec, fixedBytes32Codec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * AccountParticipation describes the parameters used by this account in consensus protocol.\n */\nexport type AccountParticipation = {\n /**\n * \\[sel\\] Selection public key (if any) currently registered for this round.\n */\n selectionParticipationKey: Uint8Array\n\n /**\n * \\[voteFst\\] First round for which this participation is valid.\n */\n voteFirstValid: bigint\n\n /**\n * \\[voteKD\\] Number of subkeys in each batch of participation keys.\n */\n voteKeyDilution: bigint\n\n /**\n * \\[voteLst\\] Last round for which this participation is valid.\n */\n voteLastValid: bigint\n\n /**\n * \\[vote\\] root participation public key (if any) currently registered for this round.\n */\n voteParticipationKey: Uint8Array\n\n /**\n * \\[stprf\\] Root of the state proof key (if any)\n */\n stateProofKey?: Uint8Array\n}\n\nexport const AccountParticipationMeta: ObjectModelMetadata<AccountParticipation> = {\n name: 'AccountParticipation',\n kind: 'object',\n fields: [\n {\n name: 'selectionParticipationKey',\n wireKey: 'selection-participation-key',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'voteFirstValid',\n wireKey: 'vote-first-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteKeyDilution',\n wireKey: 'vote-key-dilution',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteLastValid',\n wireKey: 'vote-last-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteParticipationKey',\n wireKey: 'vote-participation-key',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'stateProofKey',\n wireKey: 'state-proof-key',\n optional: true,\n codec: fixedBytes64Codec,\n },\n ],\n}\n"],"mappings":";;;;AAsCA,MAAaA,2BAAsE;CACjF,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,OAAOD;GACR;EACD;GACE,MAAM;GACN,SAAS;GACT,UAAU;GACV,OAAOE;GACR;EACF;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bigIntCodec } from "../../../common/src/codecs/primitives/bigint.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { fixedBytes32Codec, fixedBytes64Codec } from "../../../common/src/codecs/primitives/fixed-bytes.mjs";
|
|
3
3
|
|
|
4
4
|
//#region packages/algod_client/src/models/account-participation.ts
|
|
5
5
|
const AccountParticipationMeta = {
|
|
@@ -10,7 +10,7 @@ const AccountParticipationMeta = {
|
|
|
10
10
|
name: "selectionParticipationKey",
|
|
11
11
|
wireKey: "selection-participation-key",
|
|
12
12
|
optional: false,
|
|
13
|
-
codec:
|
|
13
|
+
codec: fixedBytes32Codec
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
name: "voteFirstValid",
|
|
@@ -34,13 +34,13 @@ const AccountParticipationMeta = {
|
|
|
34
34
|
name: "voteParticipationKey",
|
|
35
35
|
wireKey: "vote-participation-key",
|
|
36
36
|
optional: false,
|
|
37
|
-
codec:
|
|
37
|
+
codec: fixedBytes32Codec
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
name: "stateProofKey",
|
|
41
41
|
wireKey: "state-proof-key",
|
|
42
42
|
optional: true,
|
|
43
|
-
codec:
|
|
43
|
+
codec: fixedBytes64Codec
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-participation.mjs","names":["AccountParticipationMeta: ObjectModelMetadata<AccountParticipation>"],"sources":["../../../../../packages/algod_client/src/models/account-participation.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec,
|
|
1
|
+
{"version":3,"file":"account-participation.mjs","names":["AccountParticipationMeta: ObjectModelMetadata<AccountParticipation>"],"sources":["../../../../../packages/algod_client/src/models/account-participation.ts"],"sourcesContent":["import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'\nimport { bigIntCodec, fixedBytes32Codec, fixedBytes64Codec } from '@algorandfoundation/algokit-common'\n\n/**\n * AccountParticipation describes the parameters used by this account in consensus protocol.\n */\nexport type AccountParticipation = {\n /**\n * \\[sel\\] Selection public key (if any) currently registered for this round.\n */\n selectionParticipationKey: Uint8Array\n\n /**\n * \\[voteFst\\] First round for which this participation is valid.\n */\n voteFirstValid: bigint\n\n /**\n * \\[voteKD\\] Number of subkeys in each batch of participation keys.\n */\n voteKeyDilution: bigint\n\n /**\n * \\[voteLst\\] Last round for which this participation is valid.\n */\n voteLastValid: bigint\n\n /**\n * \\[vote\\] root participation public key (if any) currently registered for this round.\n */\n voteParticipationKey: Uint8Array\n\n /**\n * \\[stprf\\] Root of the state proof key (if any)\n */\n stateProofKey?: Uint8Array\n}\n\nexport const AccountParticipationMeta: ObjectModelMetadata<AccountParticipation> = {\n name: 'AccountParticipation',\n kind: 'object',\n fields: [\n {\n name: 'selectionParticipationKey',\n wireKey: 'selection-participation-key',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'voteFirstValid',\n wireKey: 'vote-first-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteKeyDilution',\n wireKey: 'vote-key-dilution',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteLastValid',\n wireKey: 'vote-last-valid',\n optional: false,\n codec: bigIntCodec,\n },\n {\n name: 'voteParticipationKey',\n wireKey: 'vote-participation-key',\n optional: false,\n codec: fixedBytes32Codec,\n },\n {\n name: 'stateProofKey',\n wireKey: 'state-proof-key',\n optional: true,\n codec: fixedBytes64Codec,\n },\n ],\n}\n"],"mappings":";;;;AAsCA,MAAaA,2BAAsE;CACjF,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;EACF;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_bigint = require('../../../common/src/codecs/primitives/bigint.js');
|
|
2
2
|
const require_boolean = require('../../../common/src/codecs/primitives/boolean.js');
|
|
3
3
|
const require_bytes = require('../../../common/src/codecs/primitives/bytes.js');
|
|
4
|
+
const require_fixed_bytes = require('../../../common/src/codecs/primitives/fixed-bytes.js');
|
|
4
5
|
const require_number = require('../../../common/src/codecs/primitives/number.js');
|
|
5
6
|
const require_string = require('../../../common/src/codecs/primitives/string.js');
|
|
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: require_fixed_bytes.fixedBytes32Codec
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
name: "name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-params.js","names":["AssetParamsMeta: ObjectModelMetadata<AssetParams>","stringCodec","numberCodec","booleanCodec","bytesCodec","bigIntCodec"],"sources":["../../../../../packages/algod_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 * \\[c\\] 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 * \\[dc\\] 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 * \\[df\\] Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * \\[f\\] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * \\[m\\] Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * \\[am\\] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * \\[an\\] 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 * \\[r\\] Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * \\[t\\] The total number of units of this asset.\n */\n total: bigint\n\n /**\n * \\[un\\] 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 * \\[au\\] 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/algod_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 * \\[c\\] 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 * \\[dc\\] 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 * \\[df\\] Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * \\[f\\] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * \\[m\\] Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * \\[am\\] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * \\[an\\] 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 * \\[r\\] Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * \\[t\\] The total number of units of this asset.\n */\n total: bigint\n\n /**\n * \\[un\\] 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 * \\[au\\] 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/algod_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 * \\[c\\] 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 * \\[dc\\] 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 * \\[df\\] Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * \\[f\\] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * \\[m\\] Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * \\[am\\] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * \\[an\\] 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 * \\[r\\] Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * \\[t\\] The total number of units of this asset.\n */\n total: bigint\n\n /**\n * \\[un\\] 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 * \\[au\\] 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/algod_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 * \\[c\\] 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 * \\[dc\\] 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 * \\[df\\] Whether holdings of this asset are frozen by default.\n */\n defaultFrozen?: boolean\n\n /**\n * \\[f\\] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.\n */\n freeze?: string\n\n /**\n * \\[m\\] Address of account used to manage the keys of this asset and to destroy it.\n */\n manager?: string\n\n /**\n * \\[am\\] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.\n */\n metadataHash?: Uint8Array\n\n /**\n * \\[an\\] 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 * \\[r\\] Address of account holding reserve (non-minted) units of this asset.\n */\n reserve?: string\n\n /**\n * \\[t\\] The total number of units of this asset.\n */\n total: bigint\n\n /**\n * \\[un\\] 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 * \\[au\\] 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,5 @@
|
|
|
1
1
|
const require_record = require('../../../common/src/codecs/composite/record.js');
|
|
2
2
|
const require_unknown = require('../../../common/src/codecs/primitives/unknown.js');
|
|
3
|
-
const require_object_model = require('../../../common/src/codecs/models/object-model.js');
|
|
4
3
|
const require_block = require('./block.js');
|
|
5
4
|
|
|
6
5
|
//#region packages/algod_client/src/models/block-response.ts
|
|
@@ -11,7 +10,7 @@ const BlockResponseMeta = {
|
|
|
11
10
|
name: "block",
|
|
12
11
|
wireKey: "block",
|
|
13
12
|
optional: false,
|
|
14
|
-
codec:
|
|
13
|
+
codec: require_block.blockCodec
|
|
15
14
|
}, {
|
|
16
15
|
name: "cert",
|
|
17
16
|
wireKey: "cert",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-response.js","names":["BlockResponseMeta: ObjectModelMetadata<BlockResponse>","
|
|
1
|
+
{"version":3,"file":"block-response.js","names":["BlockResponseMeta: ObjectModelMetadata<BlockResponse>","blockCodec","RecordCodec","unknownCodec"],"sources":["../../../../../packages/algod_client/src/models/block-response.ts"],"sourcesContent":["import type { Block } from './block'\nimport { blockCodec } from './block'\nimport { RecordCodec, unknownCodec, type ObjectModelMetadata } from '@algorandfoundation/algokit-common'\n\nexport type BlockResponse = {\n /** Block data including header and transactions. */\n block: Block\n /** Block certificate. */\n cert?: Record<string, unknown>\n}\n\nexport const BlockResponseMeta: ObjectModelMetadata<BlockResponse> = {\n name: 'BlockResponse',\n kind: 'object',\n fields: [\n { name: 'block', wireKey: 'block', optional: false, codec: blockCodec },\n { name: 'cert', wireKey: 'cert', optional: true, codec: new RecordCodec(unknownCodec) },\n ],\n}\n"],"mappings":";;;;;AAWA,MAAaA,oBAAwD;CACnE,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAS,SAAS;EAAS,UAAU;EAAO,OAAOC;EAAY,EACvE;EAAE,MAAM;EAAQ,SAAS;EAAQ,UAAU;EAAM,OAAO,IAAIC,2BAAYC,6BAAa;EAAE,CACxF;CACF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RecordCodec } from "../../../common/src/codecs/composite/record.mjs";
|
|
2
2
|
import { unknownCodec } from "../../../common/src/codecs/primitives/unknown.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { BlockMeta } from "./block.mjs";
|
|
3
|
+
import { blockCodec } from "./block.mjs";
|
|
5
4
|
|
|
6
5
|
//#region packages/algod_client/src/models/block-response.ts
|
|
7
6
|
const BlockResponseMeta = {
|
|
@@ -11,7 +10,7 @@ const BlockResponseMeta = {
|
|
|
11
10
|
name: "block",
|
|
12
11
|
wireKey: "block",
|
|
13
12
|
optional: false,
|
|
14
|
-
codec:
|
|
13
|
+
codec: blockCodec
|
|
15
14
|
}, {
|
|
16
15
|
name: "cert",
|
|
17
16
|
wireKey: "cert",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-response.mjs","names":["BlockResponseMeta: ObjectModelMetadata<BlockResponse>"],"sources":["../../../../../packages/algod_client/src/models/block-response.ts"],"sourcesContent":["import type { Block } from './block'\nimport {
|
|
1
|
+
{"version":3,"file":"block-response.mjs","names":["BlockResponseMeta: ObjectModelMetadata<BlockResponse>"],"sources":["../../../../../packages/algod_client/src/models/block-response.ts"],"sourcesContent":["import type { Block } from './block'\nimport { blockCodec } from './block'\nimport { RecordCodec, unknownCodec, type ObjectModelMetadata } from '@algorandfoundation/algokit-common'\n\nexport type BlockResponse = {\n /** Block data including header and transactions. */\n block: Block\n /** Block certificate. */\n cert?: Record<string, unknown>\n}\n\nexport const BlockResponseMeta: ObjectModelMetadata<BlockResponse> = {\n name: 'BlockResponse',\n kind: 'object',\n fields: [\n { name: 'block', wireKey: 'block', optional: false, codec: blockCodec },\n { name: 'cert', wireKey: 'cert', optional: true, codec: new RecordCodec(unknownCodec) },\n ],\n}\n"],"mappings":";;;;;AAWA,MAAaA,oBAAwD;CACnE,MAAM;CACN,MAAM;CACN,QAAQ,CACN;EAAE,MAAM;EAAS,SAAS;EAAS,UAAU;EAAO,OAAO;EAAY,EACvE;EAAE,MAAM;EAAQ,SAAS;EAAQ,UAAU;EAAM,OAAO,IAAI,YAAY,aAAa;EAAE,CACxF;CACF"}
|
|
@@ -68,35 +68,17 @@ type ParticipationUpdates = {
|
|
|
68
68
|
/** [partupdabs] Absent participation accounts. */
|
|
69
69
|
absentParticipationAccounts?: string[];
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
round?: bigint;
|
|
74
|
-
/** [prev] Previous block hash. */
|
|
75
|
-
previousBlockHash?: Uint8Array;
|
|
76
|
-
/** [prev512] Previous block hash using SHA-512. */
|
|
77
|
-
previousBlockHash512?: Uint8Array;
|
|
78
|
-
/** [seed] Sortition seed. */
|
|
79
|
-
seed?: Uint8Array;
|
|
71
|
+
/** Transaction commitment hashes for the block. */
|
|
72
|
+
type TxnCommitments = {
|
|
80
73
|
/** [txn] Root of transaction merkle tree using SHA512_256. */
|
|
81
|
-
|
|
74
|
+
nativeSha512_256Commitment: Uint8Array;
|
|
82
75
|
/** [txn256] Root of transaction vector commitment using SHA256. */
|
|
83
|
-
|
|
76
|
+
sha256Commitment?: Uint8Array;
|
|
84
77
|
/** [txn512] Root of transaction vector commitment using SHA512. */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
genesisId?: string;
|
|
90
|
-
/** [gh] Genesis hash. */
|
|
91
|
-
genesisHash?: Uint8Array;
|
|
92
|
-
/** [prp] Proposer address. */
|
|
93
|
-
proposer?: Address;
|
|
94
|
-
/** [fc] Fees collected in this block. */
|
|
95
|
-
feesCollected?: bigint;
|
|
96
|
-
/** [bi] Bonus incentive for block proposal. */
|
|
97
|
-
bonus?: bigint;
|
|
98
|
-
/** [pp] Proposer payout. */
|
|
99
|
-
proposerPayout?: bigint;
|
|
78
|
+
sha512Commitment?: Uint8Array;
|
|
79
|
+
};
|
|
80
|
+
/** Reward distribution state for the block. */
|
|
81
|
+
type RewardState = {
|
|
100
82
|
/** [fees] FeeSink address. */
|
|
101
83
|
feeSink?: Address;
|
|
102
84
|
/** [rwd] RewardsPool address. */
|
|
@@ -109,6 +91,9 @@ type BlockHeader = {
|
|
|
109
91
|
rewardsResidue?: bigint;
|
|
110
92
|
/** [rwcalr] Rewards recalculation round. */
|
|
111
93
|
rewardsRecalculationRound?: bigint;
|
|
94
|
+
};
|
|
95
|
+
/** Protocol upgrade state for the block. */
|
|
96
|
+
type UpgradeState = {
|
|
112
97
|
/** [proto] Current consensus protocol. */
|
|
113
98
|
currentProtocol?: string;
|
|
114
99
|
/** [nextproto] Next proposed protocol. */
|
|
@@ -119,12 +104,47 @@ type BlockHeader = {
|
|
|
119
104
|
nextProtocolVoteBefore?: bigint;
|
|
120
105
|
/** [nextswitch] Next protocol switch round. */
|
|
121
106
|
nextProtocolSwitchOn?: bigint;
|
|
107
|
+
};
|
|
108
|
+
/** Protocol upgrade vote parameters for the block. */
|
|
109
|
+
type UpgradeVote = {
|
|
122
110
|
/** [upgradeprop] Upgrade proposal. */
|
|
123
111
|
upgradePropose?: string;
|
|
124
112
|
/** [upgradedelay] Upgrade delay in rounds. */
|
|
125
113
|
upgradeDelay?: bigint;
|
|
126
114
|
/** [upgradeyes] Upgrade approval flag. */
|
|
127
115
|
upgradeApprove?: boolean;
|
|
116
|
+
};
|
|
117
|
+
type BlockHeader = {
|
|
118
|
+
/** [rnd] Round number. */
|
|
119
|
+
round?: bigint;
|
|
120
|
+
/** [prev] Previous block hash. */
|
|
121
|
+
previousBlockHash?: Uint8Array;
|
|
122
|
+
/** [prev512] Previous block hash using SHA-512. */
|
|
123
|
+
previousBlockHash512?: Uint8Array;
|
|
124
|
+
/** [seed] Sortition seed. */
|
|
125
|
+
seed?: Uint8Array;
|
|
126
|
+
/** Authenticates the set of transactions appearing in the block. */
|
|
127
|
+
txnCommitments: TxnCommitments;
|
|
128
|
+
/** [ts] Block timestamp in seconds since epoch. */
|
|
129
|
+
timestamp?: bigint;
|
|
130
|
+
/** [gen] Genesis ID. */
|
|
131
|
+
genesisId?: string;
|
|
132
|
+
/** [gh] Genesis hash. */
|
|
133
|
+
genesisHash?: Uint8Array;
|
|
134
|
+
/** [prp] Proposer address. */
|
|
135
|
+
proposer?: Address;
|
|
136
|
+
/** [fc] Fees collected in this block. */
|
|
137
|
+
feesCollected?: bigint;
|
|
138
|
+
/** [bi] Bonus incentive for block proposal. */
|
|
139
|
+
bonus?: bigint;
|
|
140
|
+
/** [pp] Proposer payout. */
|
|
141
|
+
proposerPayout?: bigint;
|
|
142
|
+
/** Reward distribution state. */
|
|
143
|
+
rewardState: RewardState;
|
|
144
|
+
/** Protocol upgrade state. */
|
|
145
|
+
upgradeState: UpgradeState;
|
|
146
|
+
/** Protocol upgrade vote parameters. */
|
|
147
|
+
upgradeVote: UpgradeVote;
|
|
128
148
|
/** [tc] Transaction counter. */
|
|
129
149
|
txnCounter?: bigint;
|
|
130
150
|
/** [spt] State proof tracking data keyed by state proof type. */
|
|
@@ -142,5 +162,5 @@ type Block = {
|
|
|
142
162
|
payset?: SignedTxnInBlock[];
|
|
143
163
|
};
|
|
144
164
|
//#endregion
|
|
145
|
-
export { ApplyData, Block, BlockAppEvalDelta, BlockEvalDelta, BlockHeader, BlockStateProofTrackingData, ParticipationUpdates, SignedTxnInBlock, SignedTxnWithAD };
|
|
165
|
+
export { ApplyData, Block, BlockAppEvalDelta, BlockEvalDelta, BlockHeader, BlockStateProofTrackingData, ParticipationUpdates, RewardState, SignedTxnInBlock, SignedTxnWithAD, TxnCommitments, UpgradeState, UpgradeVote };
|
|
146
166
|
//# sourceMappingURL=block.d.ts.map
|