Good point. I should have been more precise in my question. Where is the up-to-date public did fileā¦so that I can continue to automatically download it with a bash script?
I use that script to download and install the ledger locally.
You have the curl command already there. It should never be outdated by more than a few days, and at the pace of ledger interface changes this shouldnāt be a problem.
I just remembered: You should be able to run dfx canister metadata <canister> candid:service to get the same interface the dashboard uses
Sorry for not understanding fast, maybe Iām missing something.
Thatās another nice command but, it does not seem the generated did content was what I was looking for . The ledger should now exposes Icrc1 function, as those Idisplayed on the dashboard - Canister: NNS ICP Ledger - ICP Dashboard - but strangly, even though I got these locally (I can use the function from my dapp, all good), these werenāt generated in the did file .
service : {
// Transfers tokens from a subaccount of the caller to the destination address.
// The source address is computed from the principal of the caller and the specified subaccount.
// When successful, returns the index of the block containing the transaction.
transfer : (TransferArgs) -> (TransferResult);
// Returns the amount of Tokens on the specified account.
account_balance : (AccountBalanceArgs) -> (Tokens) query;
// Returns the current transfer_fee.
transfer_fee : (TransferFeeArg) -> (TransferFee) query;
// Queries blocks in the specified range.
query_blocks : (GetBlocksArgs) -> (QueryBlocksResponse) query;
etc.