Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
**/build/*
calc-fee
calc
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ If you are connecting to [Substrate Node Template](https://github.com/substrate-
}
```

## Fee Calculation Debugging
## Debugging Fee & Payout Calculations

It is possible to get more information about the fee calculation process logged to
It is possible to get more information about the fee and payout calculation process logged to
the console. Because this fee calculation happens in the statically compiled web assembly part
a re-compile with the proper environment variable set is necessary:

```bash
FEE_DEBUG=1 yarn
CALC_DEBUG=1 yarn
```

## Available paths
Expand All @@ -80,6 +80,10 @@ Path descriptions link to controllers for detailed docs with usage information.
Block IDs may take two forms: a non-negative decimal integer that denotes the block _height_ **or**
a 32-byte hex string (`0x` followed by 64 hexadecimal digits) that denotes the block _hash_.

- [`accounts/ADDRESS/staking-payouts` fetch staking payouts for `ADDRESS`.](/src/controllers/accounts/AccountsStakingPayoutsController.ts)

- [`/block` fetch latest finalized block details.](/src/controllers/blocks/BlocksController.ts)

- [`/block` fetch latest finalized block details.](/src/controllers/blocks/BlocksController.ts)

- [`/block/NUMBER` fetch block details at the block identified by 'NUMBER`.](/src/controllers/blocks/BlocksController.ts)
Expand Down
1 change: 0 additions & 1 deletion calc-fee/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions calc-fee/build.sh

This file was deleted.

8 changes: 0 additions & 8 deletions calc-fee/src/debug.rs

This file was deleted.

189 changes: 0 additions & 189 deletions calc-fee/src/lib.rs

This file was deleted.

File renamed without changes.
Loading