Skip to content

Commit 68943a1

Browse files
Fix: fees to sudo address
1 parent 85ca4b6 commit 68943a1

File tree

23 files changed

+56
-44
lines changed

23 files changed

+56
-44
lines changed

cmd/api/docs/docs.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/docs/swagger.json

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/docs/swagger.yaml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/handler/responses/block.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ type BlockStats struct {
7272
func NewBlockStats(stats *storage.BlockStats) *BlockStats {
7373
return &BlockStats{
7474
TxCount: stats.TxCount,
75-
Fee: stats.Fee.String(),
7675
SupplyChange: stats.SupplyChange.String(),
7776
BlockTime: stats.BlockTime,
7877
BytesInBlock: stats.BytesInBlock,

cmd/api/handler/stats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (sh *StatsHandler) SummaryTimeframe(c echo.Context) error {
109109

110110
type seriesRequest struct {
111111
Timeframe string `example:"hour" param:"timeframe" swaggertype:"string" validate:"required,oneof=hour day month"`
112-
SeriesName string `example:"tps" param:"name" swaggertype:"string" validate:"required,oneof=data_size tps bps rbps fee supply_change block_time tx_count bytes_in_block"`
112+
SeriesName string `example:"tps" param:"name" swaggertype:"string" validate:"required,oneof=data_size tps bps rbps supply_change block_time tx_count bytes_in_block"`
113113
From int64 `example:"1692892095" query:"from" swaggertype:"integer" validate:"omitempty,min=1"`
114114
To int64 `example:"1692892095" query:"to" swaggertype:"integer" validate:"omitempty,min=1"`
115115
}
@@ -121,7 +121,7 @@ type seriesRequest struct {
121121
// @Tags stats
122122
// @ID stats-series
123123
// @Param timeframe path string true "Timeframe" Enums(hour, day, month)
124-
// @Param name path string true "Series name" Enums(data_size, tps, bps, rbps, fee, supply_change, block_time, tx_count, bytes_in_block)
124+
// @Param name path string true "Series name" Enums(data_size, tps, bps, rbps, supply_change, block_time, tx_count, bytes_in_block)
125125
// @Param from query integer false "Time from in unix timestamp" mininum(1)
126126
// @Param to query integer false "Time to in unix timestamp" mininum(1)
127127
// @Produce json

cmd/api/handler/stats_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func (s *StatsTestSuite) TestBlockStatsHistogram() {
5656
storage.SeriesDataSize,
5757
storage.SeriesBlockTime,
5858
storage.SeriesBytesInBlock,
59-
storage.SeriesFee,
6059
storage.SeriesSupplyChange,
6160
storage.SeriesTPS,
6261
storage.SeriesTxCount,

database/views/00_block_stats_by_hour.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ WITH (timescaledb.continuous, timescaledb.materialized_only=false) AS
66
avg(block_time) as block_time,
77
percentile_agg(block_time) as block_time_pct,
88
sum(supply_change) as supply_change,
9-
sum(fee) as fee,
109
sum(bytes_in_block) as bytes_in_block,
1110
sum(data_size) as data_size,
1211
(sum(bytes_in_block)/3600.0) as bps,

database/views/01_block_stats_by_day.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ WITH (timescaledb.continuous, timescaledb.materialized_only=false) AS
55
sum(tx_count) as tx_count,
66
mean(rollup(block_time_pct)) as block_time,
77
rollup(block_time_pct) as block_time_pct,
8-
sum(fee) as fee,
98
sum(supply_change) as supply_change,
109
sum(bytes_in_block) as bytes_in_block,
1110
sum(data_size) as data_size,

database/views/02_block_stats_by_month.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ WITH (timescaledb.continuous, timescaledb.materialized_only=false) AS
55
sum(tx_count) as tx_count,
66
mean(rollup(block_time_pct)) as block_time,
77
rollup(block_time_pct) as block_time_pct,
8-
sum(fee) as fee,
98
sum(supply_change) as supply_change,
109
sum(bytes_in_block) as bytes_in_block,
1110
sum(data_size) as data_size,

internal/storage/block_stats.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ type BlockStats struct {
2424
Height pkgTypes.Level `bun:"height" comment:"The number (height) of this block"`
2525
Time time.Time `bun:"time,pk,notnull" comment:"The time of block"`
2626

27-
TxCount int64 `bun:"tx_count" comment:"Count of transactions in block"`
28-
BlockTime uint64 `bun:"block_time" comment:"Time in milliseconds between current and previous block"`
29-
SupplyChange decimal.Decimal `bun:",type:numeric" comment:"Change of total supply in the block"`
30-
Fee decimal.Decimal `bun:"fee,type:numeric" comment:"Summary block fee"`
31-
BytesInBlock int64 `bun:"bytes_in_block" comment:"Size of all transactions in bytes"`
32-
DataSize int64 `bun:"data_size" comment:"Size of all rollup data in block"`
27+
TxCount int64 `bun:"tx_count" comment:"Count of transactions in block"`
28+
BlockTime uint64 `bun:"block_time" comment:"Time in milliseconds between current and previous block"`
29+
SupplyChange decimal.Decimal `bun:",type:numeric" comment:"Change of total supply in the block"`
30+
BytesInBlock int64 `bun:"bytes_in_block" comment:"Size of all transactions in bytes"`
31+
DataSize int64 `bun:"data_size" comment:"Size of all rollup data in block"`
3332
}
3433

3534
func (BlockStats) TableName() string {

0 commit comments

Comments
 (0)