global: snapshot

This commit is contained in:
nym21
2026-02-28 23:14:01 +01:00
parent a2bd7ca299
commit 1750c06369
50 changed files with 122 additions and 192 deletions
+31 -33
View File
@@ -3652,31 +3652,6 @@ function create_1y24h30d7dPattern2(client, acc) {
};
}
/**
* @template T
* @typedef {Object} _1h24hBlockTxindexPattern
* @property {AverageMaxMedianMinPct10Pct25Pct75Pct90Pattern<T>} _1h
* @property {AverageMaxMedianMinPct10Pct25Pct75Pct90Pattern<T>} _24h
* @property {AverageMaxMedianMinPct10Pct25Pct75Pct90Pattern<T>} block
* @property {MetricPattern21<T>} txindex
*/
/**
* Create a _1h24hBlockTxindexPattern pattern node
* @template T
* @param {BrkClientBase} client
* @param {string} acc - Accumulated metric name
* @returns {_1h24hBlockTxindexPattern<T>}
*/
function create_1h24hBlockTxindexPattern(client, acc) {
return {
_1h: createAverageMaxMedianMinPct10Pct25Pct75Pct90Pattern(client, _m(acc, '1h')),
_24h: createAverageMaxMedianMinPct10Pct25Pct75Pct90Pattern(client, _m(acc, '24h')),
block: createAverageMaxMedianMinPct10Pct25Pct75Pct90Pattern(client, acc),
txindex: createMetricPattern21(client, acc),
};
}
/**
* @template T
* @typedef {Object} _1y24h30d7dPattern
@@ -3807,6 +3782,29 @@ function createHistogramLineSignalPattern(client, acc) {
};
}
/**
* @template T
* @typedef {Object} _6bBlockTxindexPattern
* @property {AverageMaxMedianMinPct10Pct25Pct75Pct90Pattern<T>} _6b
* @property {AverageMaxMedianMinPct10Pct25Pct75Pct90Pattern<T>} block
* @property {MetricPattern21<T>} txindex
*/
/**
* Create a _6bBlockTxindexPattern pattern node
* @template T
* @param {BrkClientBase} client
* @param {string} acc - Accumulated metric name
* @returns {_6bBlockTxindexPattern<T>}
*/
function create_6bBlockTxindexPattern(client, acc) {
return {
_6b: createAverageMaxMedianMinPct10Pct25Pct75Pct90Pattern(client, _m(acc, '6b')),
block: createAverageMaxMedianMinPct10Pct25Pct75Pct90Pattern(client, acc),
txindex: createMetricPattern21(client, acc),
};
}
/**
* @template T
* @typedef {Object} CumulativeHeightSumPattern
@@ -4140,16 +4138,16 @@ function createRatioPattern2(client, acc) {
/**
* @typedef {Object} MetricsTree_Transactions_Size
* @property {_1h24hBlockTxindexPattern<VSize>} vsize
* @property {_1h24hBlockTxindexPattern<Weight>} weight
* @property {_6bBlockTxindexPattern<VSize>} vsize
* @property {_6bBlockTxindexPattern<Weight>} weight
*/
/**
* @typedef {Object} MetricsTree_Transactions_Fees
* @property {MetricPattern21<Sats>} inputValue
* @property {MetricPattern21<Sats>} outputValue
* @property {_1h24hBlockTxindexPattern<Sats>} fee
* @property {_1h24hBlockTxindexPattern<FeeRate>} feeRate
* @property {_6bBlockTxindexPattern<Sats>} fee
* @property {_6bBlockTxindexPattern<FeeRate>} feeRate
*/
/**
@@ -6674,14 +6672,14 @@ class BrkClient extends BrkClientBase {
isCoinbase: createMetricPattern21(this, 'is_coinbase'),
},
size: {
vsize: create_1h24hBlockTxindexPattern(this, 'tx_vsize'),
weight: create_1h24hBlockTxindexPattern(this, 'tx_weight'),
vsize: create_6bBlockTxindexPattern(this, 'tx_vsize'),
weight: create_6bBlockTxindexPattern(this, 'tx_weight'),
},
fees: {
inputValue: createMetricPattern21(this, 'input_value'),
outputValue: createMetricPattern21(this, 'output_value'),
fee: create_1h24hBlockTxindexPattern(this, 'fee'),
feeRate: create_1h24hBlockTxindexPattern(this, 'fee_rate'),
fee: create_6bBlockTxindexPattern(this, 'fee'),
feeRate: create_6bBlockTxindexPattern(this, 'fee_rate'),
},
versions: {
v1: createCumulativeHeightSumPattern(this, 'tx_v1'),