Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: interface to query ledger blocks #269

Merged
merged 4 commits into from
May 31, 2022
Merged

feat: interface to query ledger blocks #269

merged 4 commits into from
May 31, 2022

Conversation

roman-kashitsyn
Copy link
Contributor

@roman-kashitsyn roman-kashitsyn commented May 24, 2022

This change introduces a new interface in the ic-ledger-types package to query
blocks (the query_blocks endpoint
of the ICP ledger).

I tested the interface by deploying a canister that fetches ICP ledger blocks on the mainnet (see dfinity/examples#247).

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

This change introduces new interface in `ic-ledger-types` to query
blocks (the [`query_blocks` endpoint](https://github.com/dfinity/ic/blob/7456121c506acaaa79d2251b803709abf0bdcbb3/rs/rosetta-api/ledger_canister/ledger.did#L236)
of the ICP ledger).
@RmbRT
Copy link

RmbRT commented May 24, 2022

I didn't get to fully integrate this yet into my canister yet, but everything looks fine so far. Thanks again for helping me out here.

@roman-kashitsyn roman-kashitsyn marked this pull request as ready for review May 31, 2022 13:23
@roman-kashitsyn roman-kashitsyn requested a review from a team as a code owner May 31, 2022 13:23
@lwshang lwshang merged commit ec218cf into main May 31, 2022
@lwshang lwshang deleted the roman-query-blocks branch May 31, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants