Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl CheckpointHandler {
end_of_epoch: end_of_epoch_data.is_some(),
total_gas_cost,
computation_cost: epoch_rolling_gas_cost_summary.computation_cost,
computation_cost_burned: epoch_rolling_gas_cost_summary.computation_cost_burned,
storage_cost: epoch_rolling_gas_cost_summary.storage_cost,
storage_rebate: epoch_rolling_gas_cost_summary.storage_rebate,
non_refundable_storage_fee: epoch_rolling_gas_cost_summary.non_refundable_storage_fee,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ impl TransactionHandler {
gas_budget: txn_data.gas_budget(),
total_gas_cost: gas_summary.net_gas_usage(),
computation_cost: gas_summary.computation_cost,
computation_cost_burned: gas_summary.computation_cost_burned,
storage_cost: gas_summary.storage_cost,
storage_rebate: gas_summary.storage_rebate,
non_refundable_storage_fee: gas_summary.non_refundable_storage_fee,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CREATE TABLE IF NOT EXISTS chaindata.CHECKPOINT
end_of_epoch BOOL NOT NULL,
total_gas_cost NUMERIC(20, 0) NOT NULL,
computation_cost NUMERIC(20, 0) NOT NULL,
computation_cost_burned NUMERIC(20, 0) NOT NULL,
storage_cost NUMERIC(20, 0) NOT NULL,
storage_rebate NUMERIC(20, 0) NOT NULL,
non_refundable_storage_fee NUMERIC(20, 0) NOT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CREATE TABLE IF NOT EXISTS chaindata.TRANSACTION
gas_budget NUMERIC(20, 0) NOT NULL,
total_gas_cost NUMERIC(20, 0) NOT NULL,
computation_cost NUMERIC(20, 0) NOT NULL,
computation_cost_burned NUMERIC(20, 0) NOT NULL,
storage_cost NUMERIC(20, 0) NOT NULL,
storage_rebate NUMERIC(20, 0) NOT NULL,
non_refundable_storage_fee NUMERIC(20, 0) NOT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CREATE
end_of_epoch BOOLEAN NOT NULL,
total_gas_cost NUMBER(20, 0) NOT NULL,
computation_cost NUMBER(20, 0) NOT NULL,
computation_cost_burned NUMBER(20, 0) NOT NULL,
storage_cost NUMBER(20, 0) NOT NULL,
storage_rebate NUMBER(20, 0) NOT NULL,
non_refundable_storage_fee NUMBER(20, 0) NOT NULL,
Expand Down Expand Up @@ -45,7 +46,7 @@ CREATE
INTEGRATION = 'CHECKPOINTS_DATA_LOADER_NOTIFICATION'
AS
COPY INTO CHECKPOINT (checkpoint_digest, sequence_number, epoch, timestamp_ms, previous_checkpoint_digest,
end_of_epoch, total_gas_cost, computation_cost, storage_cost, storage_rebate,
end_of_epoch, total_gas_cost, computation_cost, computation_cost_burned, storage_cost, storage_rebate,
non_refundable_storage_fee, total_transaction_blocks, total_transactions,
total_successful_transaction_blocks, total_successful_transactions,
network_total_transaction, validator_signature)
Expand All @@ -57,6 +58,7 @@ CREATE
t.$1:end_of_epoch as end_of_epoch,
t.$1:total_gas_cost as total_gas_cost,
t.$1:computation_cost as computation_cost,
t.$1:computation_cost_burned as computation_cost_burned,
t.$1:storage_cost as storage_cost,
t.$1:storage_rebate as storage_rebate,
t.$1:non_refundable_storage_fee as non_refundable_storage_fee,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CREATE OR REPLACE TABLE TRANSACTION
gas_budget NUMBER(20, 0) NOT NULL,
total_gas_cost NUMBER(20, 0) NOT NULL,
computation_cost NUMBER(20, 0) NOT NULL,
computation_cost_burned NUMBER(20, 0) NOT NULL,
storage_cost NUMBER(20, 0) NOT NULL,
storage_rebate NUMBER(20, 0) NOT NULL,
non_refundable_storage_fee NUMBER(20, 0) NOT NULL,
Expand Down Expand Up @@ -66,7 +67,7 @@ CREATE
input, shared_input, gas_coins,
created, mutated, deleted, transfers, split_coins, merge_coins, publish, upgrade, others,
move_calls, packages, gas_owner, gas_object_id, gas_object_sequence, gas_object_digest,
gas_budget, total_gas_cost, computation_cost, storage_cost, storage_rebate,
gas_budget, total_gas_cost, computation_cost, computation_cost_burned, storage_cost, storage_rebate,
non_refundable_storage_fee,
gas_price, raw_transaction, has_zklogin_sig, has_upgraded_multisig
)
Expand Down Expand Up @@ -101,6 +102,7 @@ CREATE
t.$1:gas_budget as gas_budget,
t.$1:total_gas_cost as total_gas_cost,
t.$1:computation_cost as computation_cost,
t.$1:computation_cost_burned as computation_cost_burned,
t.$1:storage_cost as storage_cost,
t.$1:storage_rebate as storage_rebate,
t.$1:non_refundable_storage_fee as non_refundable_storage_fee,
Expand Down
2 changes: 2 additions & 0 deletions crates/iota-analytics-indexer/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub(crate) struct CheckpointEntry {
// gas stats
pub(crate) total_gas_cost: i64,
pub(crate) computation_cost: u64,
pub(crate) computation_cost_burned: u64,
pub(crate) storage_cost: u64,
pub(crate) storage_rebate: u64,
pub(crate) non_refundable_storage_fee: u64,
Expand Down Expand Up @@ -87,6 +88,7 @@ pub(crate) struct TransactionEntry {
pub(crate) gas_budget: u64,
pub(crate) total_gas_cost: i64,
pub(crate) computation_cost: u64,
pub(crate) computation_cost_burned: u64,
pub(crate) storage_cost: u64,
pub(crate) storage_rebate: u64,
pub(crate) non_refundable_storage_fee: u64,
Expand Down
Loading