Skip to content

Commit 78e84b0

Browse files
authored
Merge pull request #434 from namada-net/grarco/shielded-fee-info
Shielded fee info
2 parents a5d915a + 2cf245c commit 78e84b0

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,3 @@ If you prefer not to use Docker, you can follow the instructions below to set up
117117
## REST API
118118
The API endpoints are described in the `swagger.yml` file located in the project root. A hosted HTML version of the API documentation is available at [Namada Interface Indexer REST API](https://namada-net.github.io/namada-indexer).
119119

120-
## Populating the Database for Testing
121-
122-
Instead of fetching data from a running network, you can populate the database with random data for testing purposes. Build the project using the following command.
123-
124-
```sh
125-
cargo build
126-
# Run the seeder script to populate the database
127-
cd seeder && cargo run -- --database-url postgres://postgres:password@0.0.0.0:5433/namada-indexer
128-
```
129-
130-
After populating the database, you can run the webserver to access the data via the API. To query your PostgreSQL database, ensure the PostgreSQL client is installed.
131-
132-
```sh
133-
apt-get install -y postgresql-client
134-
```

webserver/src/response/transaction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pub struct WrapperTransactionResponse {
103103
pub gas_limit: String,
104104
pub gas_used: Option<u64>,
105105
pub amount_per_gas_unit: Option<f64>,
106+
pub masp_fee_payment: Option<String>,
106107
pub block_height: u64,
107108
pub inner_transactions: Vec<ShortInnerTransactionResponse>,
108109
pub exit_code: TransactionResultResponse,
@@ -121,6 +122,7 @@ impl WrapperTransactionResponse {
121122
gas_limit: wrapper.gas_limit.to_string(),
122123
gas_used: wrapper.gas_used,
123124
amount_per_gas_unit: wrapper.amount_per_gas_unit,
125+
masp_fee_payment: wrapper.masp_fee_payment,
124126
block_height: wrapper.block_height,
125127
inner_transactions: inners
126128
.into_iter()

0 commit comments

Comments
 (0)