Skip to content

Conversation

@maciejdfinity
Copy link
Contributor

@maciejdfinity maciejdfinity commented Nov 18, 2025

Add fee collector block handling according to the ICRC-107 standard (https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-107/ICRC-107.md). The fee collector information is stored in a separate table (fee_collectors_107).

@maciejdfinity maciejdfinity changed the title feat(ICRC-Rosetta): add fee collector block handling feat(ICRC-Rosetta): add ICRC-107 fee collector block handling Dec 8, 2025
@maciejdfinity maciejdfinity marked this pull request as ready for review December 8, 2025 21:03
@maciejdfinity maciejdfinity requested a review from a team as a code owner December 8, 2025 21:03
"#,
[],
)?;

Copy link
Contributor Author

@maciejdfinity maciejdfinity Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the metadata table, updating ckBTC balances take ~4m. This is similar to having an index on operation_type and searching for the fee collector in the blocks table and having a separate table for fee collectors.

fee_collector: _,
caller: _,
} => (
"107feecol",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this constant should be defined in the icrc-ledger-types but it's not used there yet. I added a note to DEFI-1901 to create the constant when we implement the 107 schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant