Skip to content

Commit

Permalink
Merge pull request #1049 from dfinity/mathias-FI-1587-fix-dfinity-led…
Browse files Browse the repository at this point in the history
…ger-dependency

chore(ic_pos): FI-1587: Change ICRC ledger library dependency
  • Loading branch information
mbjorkqvist authored Nov 22, 2024
2 parents e08939c + a9b85e6 commit 24aff11
Show file tree
Hide file tree
Showing 9 changed files with 1,135 additions and 945 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/motoko/encrypted-notes-dapp-vetkd/ @dfinity/crypto-team
/motoko/encrypted-notes-dapp/ @dfinity/crypto-team
/motoko/hello_cycles/ @dfinity/languages
/motoko/ic-pos/ @dfinity/div-Crypto
/motoko/ic-pos/ @dfinity/growth
/motoko/icrc2-swap/ @dfinity/div-Crypto
/motoko/internet_identity_integration/ @dfinity/gix
/motoko/life/ @dfinity/languages
Expand Down
2,062 changes: 1,126 additions & 936 deletions motoko/ic-pos/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion motoko/ic-pos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@dfinity/agent": "^2.1.3",
"@dfinity/candid": "^2.1.3",
"@dfinity/ledger": "^2.1.3",
"@dfinity/ledger-icrc": "^2.6.2",
"@dfinity/principal": "^2.1.3",
"@dfinity/utils": "^2.1.3",
"@hookform/resolvers": "^3.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IcrcIndexCanister } from "@dfinity/ledger";
import { IcrcIndexCanister } from "@dfinity/ledger-icrc";
import { Principal } from "@dfinity/principal";
import React from "react";
import { useAuth } from "../../../auth/hooks/useAuth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IcrcLedgerCanister, IcrcTokenMetadataResponse } from "@dfinity/ledger";
import { IcrcLedgerCanister, IcrcTokenMetadataResponse } from "@dfinity/ledger-icrc";
import { useCallback, useEffect, useState } from "react";

import { Principal } from "@dfinity/principal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
} from "@dfinity/agent";

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

export function useCkBtcLedgerAnon() {
const [ckBtcLedger, setCkBtcLedger] = React.useState<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account } from "@dfinity/ledger/dist/candid/icrc1_ledger";
import { Account } from "@dfinity/ledger-icrc/dist/candid/icrc_ledger";

export type Transfer = {
to: Account;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import MainSection from "../../components/MainSection";
import Page from "../../components/Page";
import { Principal } from "@dfinity/principal";
import TransactionRow from "./components/TransactionRow";
import { TransactionWithId } from "@dfinity/ledger/dist/candid/icrc1_index";
import { TransactionWithId } from "@dfinity/ledger-icrc/dist/candid/icrc_index";
import { X } from "lucide-react";
import { useAuth } from "../../auth/hooks/useAuth";
import useCkBtcIndex from "../../canisters/ckbtc-index/hooks/useCkBtcIndex";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Transaction } from "@dfinity/ledger/dist/candid/icrc1_index";
import { Transaction } from "@dfinity/ledger-icrc/dist/candid/icrc_index";
import { formatCkBtc } from "../../../utils/formatCkBtc";
import { shortenPrincipal } from "../../../utils/shortenPrincipal";
import { useAuth } from "../../../auth/hooks/useAuth";
Expand Down

0 comments on commit 24aff11

Please sign in to comment.