Skip to content

Commit

Permalink
update the icp ledger did and TypeScript/JavaScript types and IDL bin…
Browse files Browse the repository at this point in the history
…dings
  • Loading branch information
lastmjs committed Jan 4, 2025
1 parent 33d3758 commit 461f557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions canisters/icp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export interface _SERVICE {
icrc2_allowance: ActorMethod<[AllowanceArgs], Allowance>;
icrc2_approve: ActorMethod<[ApproveArgs], ApproveResult>;
icrc2_transfer_from: ActorMethod<[TransferFromArgs], TransferFromResult>;
is_ledger_ready: ActorMethod<[], boolean>;
name: ActorMethod<[], NameResult>;
query_blocks: ActorMethod<[GetBlocksArgs], QueryBlocksResponse>;
query_encoded_blocks: ActorMethod<
Expand Down Expand Up @@ -1036,6 +1037,7 @@ export const idlFactory: idlFactory = ({ IDL }) => {
[TransferFromResult],
[]
),
is_ledger_ready: IDL.Func([], [IDL.Bool], ['query']),
name: IDL.Func([], [NameResult], ['query']),
query_blocks: IDL.Func(
[GetBlocksArgs],
Expand Down
4 changes: 3 additions & 1 deletion canisters/icp/ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Taken from: https://github.com/dfinity/ic/blob/release-2024-09-12_01-30-canister-snapshots-hotfix-deprecated-assert/rs/rosetta-api/icp_ledger/ledger.did
// Taken from: https://github.com/dfinity/ic/blob/release-2025-01-03_03-07-base/rs/ledger_suite/icp/ledger.did

// This is the official Ledger interface that is guaranteed to be backward compatible.

Expand Down Expand Up @@ -552,4 +552,6 @@ service: (LedgerCanisterPayload) -> {

icrc21_canister_call_consent_message: (icrc21_consent_message_request) -> (icrc21_consent_message_response);
icrc10_supported_standards : () -> (vec record { name : text; url : text }) query;

is_ledger_ready: () -> (bool) query;
}

0 comments on commit 461f557

Please sign in to comment.