@tari-project/ootle-ts-bindings 1.50.1 → 1.52.0
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/types/BlockHeader.d.ts +9 -0
- package/dist/types/Command.d.ts +0 -3
- package/dist/types/FeeReceipt.d.ts +6 -0
- package/dist/types/FeeSource.d.ts +1 -1
- package/dist/types/Hash64.d.ts +3 -0
- package/dist/types/ResourceAccessRules.d.ts +11 -0
- package/dist/types/RuleRequirement.d.ts +4 -0
- package/dist/types/TransactionPoolRecord.d.ts +1 -1
- package/dist/types/UtxoStateUpdateSet.d.ts +1 -0
- package/dist/types/tari-indexer-client/GetIndexerInfoResponse.d.ts +6 -4
- package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +3 -3
- package/dist/types/tari-indexer-client/QueryTransactionEventsRequest.d.ts +3 -3
- package/dist/types/tari-indexer-client/StreamTransactionEventsRequest.d.ts +3 -3
- package/dist/types/tari-indexer-client/ValidatorConsensusState.d.ts +1 -1
- package/dist/types/validator-node-client/GetBlockResponse.d.ts +22 -2
- package/package.json +2 -2
- package/dist/types/EvictNodeAtom.d.ts +0 -3
- package/dist/types/EvictNodeAtom.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export * from "./types/EntityId";
|
|
|
55
55
|
export * from "./types/Epoch";
|
|
56
56
|
export * from "./types/Era";
|
|
57
57
|
export * from "./types/Event";
|
|
58
|
-
export * from "./types/EvictNodeAtom";
|
|
59
58
|
export * from "./types/EvidenceInputLockData";
|
|
60
59
|
export * from "./types/Evidence";
|
|
61
60
|
export * from "./types/ExecuteResult";
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,6 @@ export * from "./types/EntityId";
|
|
|
57
57
|
export * from "./types/Epoch";
|
|
58
58
|
export * from "./types/Era";
|
|
59
59
|
export * from "./types/Event";
|
|
60
|
-
export * from "./types/EvictNodeAtom";
|
|
61
60
|
export * from "./types/EvidenceInputLockData";
|
|
62
61
|
export * from "./types/Evidence";
|
|
63
62
|
export * from "./types/ExecuteResult";
|
|
@@ -73,4 +73,13 @@ export type BlockHeader = {
|
|
|
73
73
|
* Currently, this is used to store the block's sidechain_id (if applicable).
|
|
74
74
|
*/
|
|
75
75
|
extra_data: ExtraData;
|
|
76
|
+
/**
|
|
77
|
+
* The protocol version this block was produced under, resolved from the network's activation schedule at
|
|
78
|
+
* [`Self::epoch`]. It makes the block self-describing: [`Self::calculate_hash`] and the L1 verifier in
|
|
79
|
+
* `tari_sidechain` both select the hash schema from this field rather than from the schedule.
|
|
80
|
+
*
|
|
81
|
+
* A header that carries no version is under [`ProtocolVersion::V0`], so blocks written before the field
|
|
82
|
+
* existed decode and hash unchanged.
|
|
83
|
+
*/
|
|
84
|
+
protocol_version: number;
|
|
76
85
|
};
|
package/dist/types/Command.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { EndEpochAtom } from "./EndEpochAtom";
|
|
2
|
-
import type { EvictNodeAtom } from "./EvictNodeAtom";
|
|
3
2
|
import type { ForeignProposalAtom } from "./ForeignProposalAtom";
|
|
4
3
|
import type { TransactionAtom } from "./TransactionAtom";
|
|
5
4
|
export type Command = {
|
|
@@ -14,8 +13,6 @@ export type Command = {
|
|
|
14
13
|
SomeAccept: TransactionAtom;
|
|
15
14
|
} | {
|
|
16
15
|
ForeignProposal: ForeignProposalAtom;
|
|
17
|
-
} | {
|
|
18
|
-
EvictNode: EvictNodeAtom;
|
|
19
16
|
} | {
|
|
20
17
|
EndEpoch: EndEpochAtom;
|
|
21
18
|
};
|
|
@@ -17,4 +17,10 @@ export type FeeReceipt = {
|
|
|
17
17
|
* Breakdown of fee costs
|
|
18
18
|
*/
|
|
19
19
|
cost_breakdown: FeeBreakdown;
|
|
20
|
+
/**
|
|
21
|
+
* The share of `total_fees_paid` that is burned rather than paid to leaders: `⌊paid × rate / 10_000⌋` at
|
|
22
|
+
* the exhaust burn rate in force for the execution epoch. Settled over what was collected, so it is never
|
|
23
|
+
* charged to the payer and never appears in `cost_breakdown`.
|
|
24
|
+
*/
|
|
25
|
+
exhaust_burn: bigint;
|
|
20
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "
|
|
1
|
+
export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "TemplateLoad" | "SubstateCreate" | "WasmExecution" | "TemplatePublish" | "Reserved" | "NativeExecution";
|
package/dist/types/Hash64.d.ts
CHANGED
|
@@ -20,4 +20,15 @@ export type ResourceAccessRules = {
|
|
|
20
20
|
freeze_updater: UpdateRule;
|
|
21
21
|
update_metadata: AccessRule;
|
|
22
22
|
metadata_updater: UpdateRule;
|
|
23
|
+
/**
|
|
24
|
+
* Who may install, replace or remove the resource's [`AuthHook`](crate::AuthHook). The hook itself is not
|
|
25
|
+
* an [`AccessRule`], so this updater stands alone rather than pairing with one.
|
|
26
|
+
*
|
|
27
|
+
* A hook runs on nearly every resource action, so one that panics or denies unconditionally takes the
|
|
28
|
+
* resource offline and strands the balances in its vaults. `Locked` — the default — keeps a hook binding
|
|
29
|
+
* for the life of the resource; anything else lets the hook be repaired or retired, at the cost of letting
|
|
30
|
+
* whoever satisfies the updater change the rules that existing holders are relying on — up to and
|
|
31
|
+
* including giving a hook-free resource a hook.
|
|
32
|
+
*/
|
|
33
|
+
auth_hook_updater: UpdateRule;
|
|
23
34
|
};
|
|
@@ -35,7 +35,7 @@ export type TransactionPoolRecord = {
|
|
|
35
35
|
*/
|
|
36
36
|
transaction_weight: bigint;
|
|
37
37
|
/**
|
|
38
|
-
* The exhaust burn collected by the executor (`FeeReceipt::
|
|
38
|
+
* The exhaust burn collected by the executor (`FeeReceipt::exhaust_burn`), set from local
|
|
39
39
|
* execution alongside `transaction_fee`.
|
|
40
40
|
*/
|
|
41
41
|
exhaust_burn: bigint;
|
|
@@ -49,11 +49,13 @@ export type GetIndexerInfoResponse = {
|
|
|
49
49
|
*/
|
|
50
50
|
verify_substate_proofs: boolean;
|
|
51
51
|
/**
|
|
52
|
-
* How long
|
|
53
|
-
* seconds.
|
|
54
|
-
*
|
|
52
|
+
* How long after a shard was last confirmed synced this indexer keeps serving cached substates
|
|
53
|
+
* for it, in seconds. Cached values are invalidated by the state transitions this indexer syncs
|
|
54
|
+
* rather than expired on a timer, so a served value trails the chain by the sync interval rather
|
|
55
|
+
* than by this bound - which is what stops a validator that has stopped serving transitions from
|
|
56
|
+
* holding a stale value open indefinitely.
|
|
55
57
|
*/
|
|
56
|
-
|
|
58
|
+
substate_cache_max_serve_lag_secs: bigint;
|
|
57
59
|
/**
|
|
58
60
|
* Whether this indexer stores every event on the network. When false it is configured with event
|
|
59
61
|
* filters, so event queries answer over a subset and absence is not proof an event did not occur.
|
|
@@ -12,12 +12,12 @@ export type GetNetworkEconomicsResponse = {
|
|
|
12
12
|
*/
|
|
13
13
|
total_exhaust_burned: Amount;
|
|
14
14
|
/**
|
|
15
|
-
* Total
|
|
15
|
+
* Total fees paid by transaction payers, summed from transaction receipts.
|
|
16
16
|
*/
|
|
17
17
|
fee_volume: Amount;
|
|
18
18
|
/**
|
|
19
19
|
* Total exhaust burned summed from the same receipts as `fee_volume`; `receipt_exhaust_burned /
|
|
20
|
-
* fee_volume` is the exact realized burn
|
|
20
|
+
* fee_volume` is the exact realized burn share, and this is the burn netted from `total_supply`. May
|
|
21
21
|
* transiently trail `total_exhaust_burned` while the receipt sync frontier catches up to the checkpoint
|
|
22
22
|
* frontier.
|
|
23
23
|
*/
|
|
@@ -31,7 +31,7 @@ export type GetNetworkEconomicsResponse = {
|
|
|
31
31
|
*/
|
|
32
32
|
transaction_receipt_count: bigint;
|
|
33
33
|
/**
|
|
34
|
-
* The
|
|
34
|
+
* The share of collected fees burned rather than paid to leaders, in basis points, in effect at `current_epoch`.
|
|
35
35
|
*/
|
|
36
36
|
target_burn_rate_bps: number;
|
|
37
37
|
};
|
|
@@ -7,9 +7,9 @@ export type QueryTransactionEventsRequest = {
|
|
|
7
7
|
topic: string | null;
|
|
8
8
|
substate_id: SubstateId | null;
|
|
9
9
|
/**
|
|
10
|
-
* Filter by resource address. Matches
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Filter by resource address. Matches the events whose `substate_id` is that resource, which
|
|
11
|
+
* is the `std.resource.*` family. Vault events name no resource — filter those by
|
|
12
|
+
* `substate_id`, the vault's ID.
|
|
13
13
|
*/
|
|
14
14
|
resource_address?: ResourceAddress | null;
|
|
15
15
|
limit: number | null;
|
|
@@ -9,9 +9,9 @@ export type StreamTransactionEventsRequest = {
|
|
|
9
9
|
substate_id: SubstateId | null;
|
|
10
10
|
template_address: Hash32 | null;
|
|
11
11
|
/**
|
|
12
|
-
* Filter by resource address. Matches
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Filter by resource address. Matches the events whose `substate_id` is that resource, which
|
|
13
|
+
* is the `std.resource.*` family. Vault events name no resource — filter those by
|
|
14
|
+
* `substate_id`, the vault's ID.
|
|
15
15
|
*/
|
|
16
16
|
resource_address?: ResourceAddress | null;
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ValidatorConsensusState = "Idle" | "CheckSync" | "Syncing" | "Running" | "Sleeping" | "Shutdown";
|
|
1
|
+
export type ValidatorConsensusState = "Initialising" | "Idle" | "CheckSync" | "Syncing" | "Running" | "Sleeping" | "Shutdown";
|
|
@@ -2,8 +2,28 @@ import type { Block } from "../Block";
|
|
|
2
2
|
export type GetBlockResponse = {
|
|
3
3
|
block: Block;
|
|
4
4
|
/**
|
|
5
|
-
* Total WASM metering points consumed by transactions executed for this block
|
|
6
|
-
* enforced against this sum).
|
|
5
|
+
* Total WASM metering points consumed by transactions executed for this block.
|
|
7
6
|
*/
|
|
8
7
|
total_wasm_execution_points: bigint;
|
|
8
|
+
/**
|
|
9
|
+
* Total native verification points charged to transactions executed for this block.
|
|
10
|
+
*/
|
|
11
|
+
total_native_execution_points: bigint;
|
|
12
|
+
/**
|
|
13
|
+
* The per-block execution points budget a leader packs against. It governs the sum of the two totals above,
|
|
14
|
+
* so only that sum is a meaningful proportion of it.
|
|
15
|
+
*/
|
|
16
|
+
max_block_execution_points: bigint;
|
|
17
|
+
/**
|
|
18
|
+
* Total execution weight of the block's transaction commands: each transaction's weight discounted by how much
|
|
19
|
+
* of the work its command stage adds. Foreign proposal commands carry no execution weight and so
|
|
20
|
+
* contribute nothing.
|
|
21
|
+
*/
|
|
22
|
+
total_block_execution_weight: bigint;
|
|
23
|
+
/**
|
|
24
|
+
* The execution weight a block may carry and still be voted for. Weight stands in for the size, IO and storage
|
|
25
|
+
* cost that metering does not see, so for ordinary traffic this budget fills long before the execution points
|
|
26
|
+
* one.
|
|
27
|
+
*/
|
|
28
|
+
max_block_validation_weight: bigint;
|
|
9
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/ootle-ts-bindings",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prettier": "^3.8.1",
|
|
30
30
|
"shx": "^0.4.0",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"vitest": "^4.1.
|
|
32
|
+
"vitest": "^4.1.11"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build-dist": "tsc --project tsconfig.prod.json",
|