-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(icrc_ledger): FI-1399: Add an InMemoryLedger for verifying ICRC …
…ledger state (#719) Add an `InMemoryLedger` that creates an expected ICRC ledger state based on blocks retrieved from a deployed ICRC ledger and archive(s). Provide a `verify_ledger_state` helper function that takes a `StateMachine` and the ledger `CanisterId`, and retrieves the blocks from the ledger and its archive(s), reconstructs the expected ledger state wrt. account balances and allowances, and verifies that the balances and allowances on the deployed ledger matches those of the `InMemoryLedger`.
- Loading branch information
1 parent
87f1ea3
commit 99813d3
Showing
6 changed files
with
980 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.