Create a test script that validates ticket balances
See discussion here.
We could create a script that scans all contracts and validates that both all_ticket_balances RPC agree with ticket_balance RPC for the ones containing tickets.
We expect indexers will create a "global ticket table" using the ticket receipts. Once this is done, we could:
- Fetch ticket balance of all contracts (implicit/explicit/rollup) from the indexer API.
- Fetch ticket balance of all contracts using
ticket_balanceRPC of tezos node. - Check that the above two are the same.
This will give us confidence that the ticket balance table calculated from the receipts are the same as the ticket balance table calculated in the tezos node.
Edited by Lin Oshitani