diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 1b53b1f79b6..3ed51d72f6d 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -249,9 +249,9 @@ } }, "node_modules/@dfinity/ckbtc": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-8Q9VwC8E9en+1lafJlocUiU3A1QibESWLk8Dmn58BQvE8/gUoozSQpMF8mhdHuAcZW/upeWuSC36a67VTbPQUQ==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-fX5ypuxZfdCzJfWL1DtFLIIkm4ZwwSwPaR9SnhK6syrszZ9CTfnM1eVETwP/BqtaFzBwmJDrmJB469fAY1heqQ==", "dependencies": { "@noble/hashes": "^1.3.2", "base58-js": "^1.0.5", @@ -265,9 +265,9 @@ } }, "node_modules/@dfinity/cmc": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-N32p1qhIc0K4FL+IFTzulx3eQSXUsgwOOvHCdGuJ8ibIqAHnmc5+/AeTASmfQh3+OoTGxHEE1fcpqJ0TrBIe1g==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-Lwd9AaZePXv+US//juUqPPSEYognIbLj4ZSvX9xx7PXsqNQVxyOswcKuH0x1Nt/dawetlGMtSyQbsBhUasgHUg==", "peerDependencies": { "@dfinity/agent": "*", "@dfinity/candid": "*", @@ -290,9 +290,9 @@ } }, "node_modules/@dfinity/ic-management": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-7yf6eIO2DwmPV1FDGOvitHZvlavSh8uiFAqO31zDrnW2BopI8T9ao2ERTEPdbGDn4MXvdl1L0J6bUzhAzyiLCQ==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-ZgWPf7H+kOT4ct7DYzsV8ze/OBXoUqjbBzdcqZ68TOxCYf2edrzi93Xn1HULR3BmWbjKJBueRliirDMTRtUQBQ==", "peerDependencies": { "@dfinity/agent": "*", "@dfinity/candid": "*", @@ -316,9 +316,9 @@ } }, "node_modules/@dfinity/ledger-icp": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-AVOBkyMCrLAgkzGK7YgG2ppgeud+FrfIaAR+zW1UkC+M0Yh9jFU7qmCJ4iJtMLGGJALAjLxCfr0E9lGI+7+ipA==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-rx12HwfxXfrVFPifI9jQw42RVehr2Faku26lrulKUvmnQHgZQxC6Ib4RrVbfqUt8AjfXuGRF4+svWndJo4RvTg==", "peerDependencies": { "@dfinity/agent": "*", "@dfinity/candid": "*", @@ -328,9 +328,9 @@ } }, "node_modules/@dfinity/ledger-icrc": { - "version": "1.0.1-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-1.0.1-next-2023-11-20.1.tgz", - "integrity": "sha512-DCzjUwFnvq0IDFJ6kiuzLF7vmyxYUvC/W67t/2r6vyTgAsHPtbu1FIU29vPU5zEJVcgPXvqEk3oPwbE+q+FWMg==", + "version": "1.0.1-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-1.0.1-next-2023-11-21.1.tgz", + "integrity": "sha512-i/lcqJSgbHat8aSbigjPslQxGJtIXv0Y0uC5o/HwiRzNvwD9IzSG9ErcJ1nS+El7BfF1bUgF1DkcrR6nmXOx5w==", "peerDependencies": { "@dfinity/agent": "*", "@dfinity/candid": "*", @@ -339,9 +339,9 @@ } }, "node_modules/@dfinity/nns": { - "version": "2.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-2.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-La5eHyE2ZyMkgPl2z5h10R1TEFA9iqTuHtZga00soHVc5hvaGt3LEcFc4DMMgLy05PeelJbySOvgzhPj4KMing==", + "version": "2.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-2.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-dJqrrR5jC+k6LnN2amrdaq46JVL5VWVUHuE85HXxj+9GeHvILHXUerH401hhtFnMNgqgK1bjVNmbScIfd5mfLQ==", "dependencies": { "@noble/hashes": "^1.3.2", "randombytes": "^2.1.0" @@ -356,9 +356,9 @@ } }, "node_modules/@dfinity/nns-proto": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/nns-proto/-/nns-proto-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-WLpdqjQentDp6c1yS2V33OhbJoSbhFTTCnHHzBjSRt4mg5hJVR2ulZ6cWUvYNjq80PrJMAGflzhieAKOUUm3Fw==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/nns-proto/-/nns-proto-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-kJqS1fiqCBoZoCdtih3a3nt2ldMjS1Jg08oU2qYmI5jVZVlxZ2pAcAhYaDCX2ESMSDIOHVC4A8gLpMg5LJv2kg==", "dependencies": { "google-protobuf": "^3.21.2" } @@ -372,9 +372,9 @@ } }, "node_modules/@dfinity/sns": { - "version": "1.0.2-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-1.0.2-next-2023-11-20.1.tgz", - "integrity": "sha512-AvcGI+A8zo3JP5PJ1HE9EfLxIJqCUw0T5AEacykvtmVzL0tdMZNBL40zEAH3bR2piM4rw2eVqrubbDaJ3LimZA==", + "version": "1.0.2-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-1.0.2-next-2023-11-21.1.tgz", + "integrity": "sha512-q8WTX1bYlSbKBVDIZDkmpmhAPisVzzedT+TRDK8NgmysQrZHUCUwE/PqvGH4jET5lZK+6tals17yXOqdZEML2A==", "dependencies": { "@noble/hashes": "^1.3.2" }, @@ -387,9 +387,9 @@ } }, "node_modules/@dfinity/utils": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-/g+HBK+ScDgzeeNoIT9PlxiRrVf50bnLr2kFU7kLiwFrQgSE11w6slLGsqZ8G/t/dJ+XDilmpZ9H479s1Kv2EA==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-EEbnRaUFJLHxoCdWliV9hBS/9R9qtEIIXmL+PJPI1d1NS3FKZH/qzmJCOJfbIEySLGy+jCrVsokfb02zTU5ChQ==", "peerDependencies": { "@dfinity/agent": "*", "@dfinity/candid": "*", @@ -7037,9 +7037,9 @@ "requires": {} }, "@dfinity/ckbtc": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-8Q9VwC8E9en+1lafJlocUiU3A1QibESWLk8Dmn58BQvE8/gUoozSQpMF8mhdHuAcZW/upeWuSC36a67VTbPQUQ==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-fX5ypuxZfdCzJfWL1DtFLIIkm4ZwwSwPaR9SnhK6syrszZ9CTfnM1eVETwP/BqtaFzBwmJDrmJB469fAY1heqQ==", "requires": { "@noble/hashes": "^1.3.2", "base58-js": "^1.0.5", @@ -7047,9 +7047,9 @@ } }, "@dfinity/cmc": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-N32p1qhIc0K4FL+IFTzulx3eQSXUsgwOOvHCdGuJ8ibIqAHnmc5+/AeTASmfQh3+OoTGxHEE1fcpqJ0TrBIe1g==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-Lwd9AaZePXv+US//juUqPPSEYognIbLj4ZSvX9xx7PXsqNQVxyOswcKuH0x1Nt/dawetlGMtSyQbsBhUasgHUg==", "requires": {} }, "@dfinity/gix-components": { @@ -7063,9 +7063,9 @@ } }, "@dfinity/ic-management": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-7yf6eIO2DwmPV1FDGOvitHZvlavSh8uiFAqO31zDrnW2BopI8T9ao2ERTEPdbGDn4MXvdl1L0J6bUzhAzyiLCQ==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-ZgWPf7H+kOT4ct7DYzsV8ze/OBXoUqjbBzdcqZ68TOxCYf2edrzi93Xn1HULR3BmWbjKJBueRliirDMTRtUQBQ==", "requires": {} }, "@dfinity/identity": { @@ -7079,30 +7079,30 @@ } }, "@dfinity/ledger-icp": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-AVOBkyMCrLAgkzGK7YgG2ppgeud+FrfIaAR+zW1UkC+M0Yh9jFU7qmCJ4iJtMLGGJALAjLxCfr0E9lGI+7+ipA==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-rx12HwfxXfrVFPifI9jQw42RVehr2Faku26lrulKUvmnQHgZQxC6Ib4RrVbfqUt8AjfXuGRF4+svWndJo4RvTg==", "requires": {} }, "@dfinity/ledger-icrc": { - "version": "1.0.1-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-1.0.1-next-2023-11-20.1.tgz", - "integrity": "sha512-DCzjUwFnvq0IDFJ6kiuzLF7vmyxYUvC/W67t/2r6vyTgAsHPtbu1FIU29vPU5zEJVcgPXvqEk3oPwbE+q+FWMg==", + "version": "1.0.1-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-1.0.1-next-2023-11-21.1.tgz", + "integrity": "sha512-i/lcqJSgbHat8aSbigjPslQxGJtIXv0Y0uC5o/HwiRzNvwD9IzSG9ErcJ1nS+El7BfF1bUgF1DkcrR6nmXOx5w==", "requires": {} }, "@dfinity/nns": { - "version": "2.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-2.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-La5eHyE2ZyMkgPl2z5h10R1TEFA9iqTuHtZga00soHVc5hvaGt3LEcFc4DMMgLy05PeelJbySOvgzhPj4KMing==", + "version": "2.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-2.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-dJqrrR5jC+k6LnN2amrdaq46JVL5VWVUHuE85HXxj+9GeHvILHXUerH401hhtFnMNgqgK1bjVNmbScIfd5mfLQ==", "requires": { "@noble/hashes": "^1.3.2", "randombytes": "^2.1.0" } }, "@dfinity/nns-proto": { - "version": "1.0.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/nns-proto/-/nns-proto-1.0.0-next-2023-11-20.1.tgz", - "integrity": "sha512-WLpdqjQentDp6c1yS2V33OhbJoSbhFTTCnHHzBjSRt4mg5hJVR2ulZ6cWUvYNjq80PrJMAGflzhieAKOUUm3Fw==", + "version": "1.0.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/nns-proto/-/nns-proto-1.0.0-next-2023-11-21.1.tgz", + "integrity": "sha512-kJqS1fiqCBoZoCdtih3a3nt2ldMjS1Jg08oU2qYmI5jVZVlxZ2pAcAhYaDCX2ESMSDIOHVC4A8gLpMg5LJv2kg==", "requires": { "google-protobuf": "^3.21.2" } @@ -7116,17 +7116,17 @@ } }, "@dfinity/sns": { - "version": "1.0.2-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-1.0.2-next-2023-11-20.1.tgz", - "integrity": "sha512-AvcGI+A8zo3JP5PJ1HE9EfLxIJqCUw0T5AEacykvtmVzL0tdMZNBL40zEAH3bR2piM4rw2eVqrubbDaJ3LimZA==", + "version": "1.0.2-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-1.0.2-next-2023-11-21.1.tgz", + "integrity": "sha512-q8WTX1bYlSbKBVDIZDkmpmhAPisVzzedT+TRDK8NgmysQrZHUCUwE/PqvGH4jET5lZK+6tals17yXOqdZEML2A==", "requires": { "@noble/hashes": "^1.3.2" } }, "@dfinity/utils": { - "version": "1.1.0-next-2023-11-20.1", - "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-1.1.0-next-2023-11-20.1.tgz", - "integrity": "sha512-/g+HBK+ScDgzeeNoIT9PlxiRrVf50bnLr2kFU7kLiwFrQgSE11w6slLGsqZ8G/t/dJ+XDilmpZ9H479s1Kv2EA==", + "version": "1.1.0-next-2023-11-21.1", + "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-1.1.0-next-2023-11-21.1.tgz", + "integrity": "sha512-EEbnRaUFJLHxoCdWliV9hBS/9R9qtEIIXmL+PJPI1d1NS3FKZH/qzmJCOJfbIEySLGy+jCrVsokfb02zTU5ChQ==", "requires": {} }, "@esbuild/android-arm": { diff --git a/frontend/src/tests/lib/services/ckbtc-minter.services.spec.ts b/frontend/src/tests/lib/services/ckbtc-minter.services.spec.ts index 1046fed1a5a..62bc7af51e8 100644 --- a/frontend/src/tests/lib/services/ckbtc-minter.services.spec.ts +++ b/frontend/src/tests/lib/services/ckbtc-minter.services.spec.ts @@ -190,7 +190,10 @@ describe("ckbtc-minter-services", () => { it("should handle no new UTXOs success", async () => { vi.spyOn(minterApi, "updateBalance").mockImplementation(async () => { - throw new MinterNoNewUtxosError(); + throw new MinterNoNewUtxosError({ + required_confirmations: 12, + pending_utxos: [], + }); }); const spyOnToastsSuccess = vi.spyOn(toastsStore, "toastsSuccess"); @@ -271,7 +274,10 @@ describe("ckbtc-minter-services", () => { it("should not handle no new UTXOs success if no ui indicators", async () => { vi.spyOn(minterApi, "updateBalance").mockImplementation(async () => { - throw new MinterNoNewUtxosError(); + throw new MinterNoNewUtxosError({ + required_confirmations: 12, + pending_utxos: [], + }); }); const spyOnToastsShow = vi.spyOn(toastsStore, "toastsShow");