Skip to content

Commit

Permalink
Merge pull request #22 from stellar/update-resource-fee
Browse files Browse the repository at this point in the history
Change refundable_fee to resource_fee
  • Loading branch information
chowbao authored Feb 20, 2024
2 parents 64d8a0b + ea1d0e2 commit e5de09e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion models/docs/sources/history_transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ A base-64 encoded XDR blob of the tx meta
A base-64 encoded XDR blob of the tx fee meta
{% enddocs %}

{% docs refundable_fee %}
{% docs resource_fee %}
Part of the transaction fee that is refundable for soroban transactions
{% enddocs %}

Expand Down
6 changes: 4 additions & 2 deletions models/marts/enriched_history_operations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ with
, batch_id
, batch_run_date
, batch_insert_ts
, refundable_fee
, resource_fee
, soroban_resources_instructions
, soroban_resources_read_bytes
, soroban_resources_write_bytes
Expand Down Expand Up @@ -194,6 +194,7 @@ with
, batch_insert_ts
, asset_balance_changes
, parameters
, parameters_decoded
, `function`
, address
, soroban_operation_type
Expand Down Expand Up @@ -322,6 +323,7 @@ with
, hist_ops.reserve_b_withdraw_amount
, hist_ops.asset_balance_changes
, hist_ops.parameters
, hist_ops.parameters_decoded
, hist_ops.function
, hist_ops.address
, hist_ops.soroban_operation_type
Expand Down Expand Up @@ -351,7 +353,7 @@ with
, hist_trans.min_account_sequence_age
, hist_trans.min_account_sequence_ledger_gap
, hist_trans.extra_signers
, hist_trans.refundable_fee
, hist_trans.resource_fee
, hist_trans.soroban_resources_instructions
, hist_trans.soroban_resources_read_bytes
, hist_trans.soroban_resources_write_bytes
Expand Down
4 changes: 2 additions & 2 deletions models/marts/enriched_history_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,8 @@ models:
- name: contract_code_hash
description: '{{ doc("contract_code_hash") }}'

- name: refundable_fee
description: '{{ doc("refundable_fee") }}'
- name: resource_fee
description: '{{ doc("resource_fee") }}'

- name: soroban_resources_instructions
description: '{{ doc("soroban_resources_instructions") }}'
Expand Down
4 changes: 2 additions & 2 deletions models/sources/src_history_transactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ sources:
config:
where: batch_run_date > current_datetime - interval 2 day

- name: refundable_fee
description: '{{ doc("refundable_fee") }}'
- name: resource_fee
description: '{{ doc("resource_fee") }}'

- name: soroban_resources_instructions
description: '{{ doc("soroban_resources_instructions") }}'
Expand Down
1 change: 1 addition & 0 deletions models/staging/stg_history_operations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ with
, details.shares
, details.asset_balance_changes
, details.parameters
, details.parameters_decoded
, details.function
, details.address
, details.type as soroban_operation_type
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ with
, tx_result
, tx_meta
, tx_fee_meta
, refundable_fee
, resource_fee
, soroban_resources_instructions
, soroban_resources_read_bytes
, soroban_resources_write_bytes
Expand Down

0 comments on commit e5de09e

Please sign in to comment.