Skip to content

Commit 24aff11

Browse files
authored
Merge pull request #1049 from dfinity/mathias-FI-1587-fix-dfinity-ledger-dependency
chore(ic_pos): FI-1587: Change ICRC ledger library dependency
2 parents e08939c + a9b85e6 commit 24aff11

File tree

9 files changed

+1135
-945
lines changed

9 files changed

+1135
-945
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/motoko/encrypted-notes-dapp-vetkd/ @dfinity/crypto-team
2020
/motoko/encrypted-notes-dapp/ @dfinity/crypto-team
2121
/motoko/hello_cycles/ @dfinity/languages
22-
/motoko/ic-pos/ @dfinity/div-Crypto
22+
/motoko/ic-pos/ @dfinity/growth
2323
/motoko/icrc2-swap/ @dfinity/div-Crypto
2424
/motoko/internet_identity_integration/ @dfinity/gix
2525
/motoko/life/ @dfinity/languages

motoko/ic-pos/package-lock.json

+1,126-936
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

motoko/ic-pos/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dependencies": {
3737
"@dfinity/agent": "^2.1.3",
3838
"@dfinity/candid": "^2.1.3",
39-
"@dfinity/ledger": "^2.1.3",
39+
"@dfinity/ledger-icrc": "^2.6.2",
4040
"@dfinity/principal": "^2.1.3",
4141
"@dfinity/utils": "^2.1.3",
4242
"@hookform/resolvers": "^3.1.1",

motoko/ic-pos/src/icpos_frontend/canisters/ckbtc-index/hooks/useCkBtcIndex.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IcrcIndexCanister } from "@dfinity/ledger";
1+
import { IcrcIndexCanister } from "@dfinity/ledger-icrc";
22
import { Principal } from "@dfinity/principal";
33
import React from "react";
44
import { useAuth } from "../../../auth/hooks/useAuth";

motoko/ic-pos/src/icpos_frontend/canisters/ckbtc-ledger/hooks/useCkBtcLedger.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IcrcLedgerCanister, IcrcTokenMetadataResponse } from "@dfinity/ledger";
1+
import { IcrcLedgerCanister, IcrcTokenMetadataResponse } from "@dfinity/ledger-icrc";
22
import { useCallback, useEffect, useState } from "react";
33

44
import { Principal } from "@dfinity/principal";

motoko/ic-pos/src/icpos_frontend/canisters/ckbtc-ledger/hooks/useCkBtcLedgerAnon.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
} from "@dfinity/agent";
77

88
import React from "react";
9-
import { _SERVICE } from "@dfinity/ledger/dist/candid/icrc1_ledger";
10-
import { idlFactory } from "@dfinity/ledger/dist/candid/icrc1_ledger.idl";
9+
import { _SERVICE } from "@dfinity/ledger-icrc/dist/candid/icrc_ledger";
10+
import { idlFactory } from "@dfinity/ledger-icrc/dist/candid/icrc_ledger.idl";
1111

1212
export function useCkBtcLedgerAnon() {
1313
const [ckBtcLedger, setCkBtcLedger] = React.useState<

motoko/ic-pos/src/icpos_frontend/canisters/icrc/types/transfer.type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Account } from "@dfinity/ledger/dist/candid/icrc1_ledger";
1+
import { Account } from "@dfinity/ledger-icrc/dist/candid/icrc_ledger";
22

33
export type Transfer = {
44
to: Account;

motoko/ic-pos/src/icpos_frontend/pages/history/HistoryPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import MainSection from "../../components/MainSection";
88
import Page from "../../components/Page";
99
import { Principal } from "@dfinity/principal";
1010
import TransactionRow from "./components/TransactionRow";
11-
import { TransactionWithId } from "@dfinity/ledger/dist/candid/icrc1_index";
11+
import { TransactionWithId } from "@dfinity/ledger-icrc/dist/candid/icrc_index";
1212
import { X } from "lucide-react";
1313
import { useAuth } from "../../auth/hooks/useAuth";
1414
import useCkBtcIndex from "../../canisters/ckbtc-index/hooks/useCkBtcIndex";

motoko/ic-pos/src/icpos_frontend/pages/history/components/TransactionRow.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Transaction } from "@dfinity/ledger/dist/candid/icrc1_index";
1+
import { Transaction } from "@dfinity/ledger-icrc/dist/candid/icrc_index";
22
import { formatCkBtc } from "../../../utils/formatCkBtc";
33
import { shortenPrincipal } from "../../../utils/shortenPrincipal";
44
import { useAuth } from "../../../auth/hooks/useAuth";

0 commit comments

Comments
 (0)