March 9, 2023, 1:42am
I download the latest version of the ICP Ledger .did (public & private) and it doesn’t include icrc_1 methods.
This is the IC_Version I’m downloading:
Using this command (e.g. public): curl -o ledger.public.did “
And the actual candid of the ICP ledger can be seeing
I can replace with an icrc_1 did and use it to call the ledger but as I need to deploy it locally that doesn’t work as I also need the wasm.
March 9, 2023, 3:21pm
We didn’t add the ICRC1 methods to the ICP Ledger did file and instead we are reusing the
icrc1.did file from the ICRC ledger in the same repository. You can use the private did file to deploy the ICP Ledger and then use the icrc1.did file to send messages to the Ledger.
Can we just make sure they are all exposed via the helper function that tools like icscan use to show the interface?
March 9, 2023, 4:57pm
They are exposed as shown by the
March 9, 2023, 5:16pm
@mariop - could we get a link to this in the documentation? Maybe here - https://internetcomputer.org/docs/current/developer-docs/integrations/ledger/interact-with-ledger
Personally, I didn’t think to even check the dashboard. I always end up searching through the docs and eventually git for the candid
March 10, 2023, 3:03pm
Thanks, this worked!!
Should be awesome to have this doc updated:
Ledger Local Setup.
Maybe just changing the download link on:
curl -o ledger.public.did "https://raw.githubusercontent.com/dfinity/ic/$IC_VERSION/rs/rosetta-api/icp_ledger/ledger.did"
with the one for the ICRC_1 did file.
Should we tag someone here for that? Maybe
You can always propose changes using the ‘Edit this page’ button at the bottom of the page. I’m happy to review your proposed changes. I went ahead and
made a PR already for this one.