diff --git a/package-lock.json b/package-lock.json index 1a5d1af..afb26ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,19 +9,19 @@ "version": "0.13.5", "license": "MIT", "dependencies": { - "@dfinity/utils": "^4.0.1", - "@dfinity/zod-schemas": "^3.0.1", - "@icp-sdk/canisters": "^2.0.1", + "@dfinity/utils": "^4.0.2", + "@dfinity/zod-schemas": "^3.0.2", + "@icp-sdk/canisters": "^3.0.0", "@icp-sdk/core": "^4.2.3", - "@junobuild/admin": "^3.0.3", - "@junobuild/cdn": "^2.0.3", + "@junobuild/admin": "^3.1.0", + "@junobuild/cdn": "^2.1.0", "@junobuild/cli-tools": "^0.9.4", "@junobuild/config": "^2.7.0", "@junobuild/config-loader": "^0.4.6", - "@junobuild/core": "^3.3.0", + "@junobuild/core": "^3.3.1", "@junobuild/did-tools": "^0.3.6", - "@junobuild/ic-client": "^6.0.0", - "@junobuild/storage": "^2.1.0", + "@junobuild/ic-client": "^7.0.0", + "@junobuild/storage": "^2.1.1", "@junobuild/utils": "^0.2.3", "chokidar": "^4.0.3", "conf": "^14.0.0", @@ -692,55 +692,6 @@ "integrity": "sha512-GPJpH73kDEKbUBdUjY80lz7cq9l0vm1h/7ppejPV6O0ZTqCLrYspssYvqjRmK4aNnJ/SKXsP0rg9LYX7zpegaA==", "license": "Apache-2.0" }, - "node_modules/@dfinity/ckbtc": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-6.0.1.tgz", - "integrity": "sha512-fYC266GrFtaKt4U1USWzL742S0kKf8oUgXJy7S/ciGxNAuru++mIMyvlqaJXJ/4avm3BxBhOZhJ+qqhLFnHyEg==", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@noble/hashes": "^1.8.0", - "base58-js": "^3.0.3", - "bech32": "^2.0.0" - }, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, - "node_modules/@dfinity/cketh": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/cketh/-/cketh-6.0.1.tgz", - "integrity": "sha512-Y90UFGC8TXiQHyU52QEgKWjWqDsbNrr/Y+fJrBYrB7UUSQj+IGl4Z1ppavdxCvS69F0RBnjb3Iqg4/IikqLUBw==", - "license": "Apache-2.0", - "peer": true, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, - "node_modules/@dfinity/cmc": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-8.0.1.tgz", - "integrity": "sha512-gpcBNadlIFfa1I2OqRDU8Sojd/GwX+eBG/cEMmCNOIMKuZz7sHvaFbJ5qdtmbjG2nN/e0sBg+YAezomVGU2WBg==", - "license": "Apache-2.0", - "peer": true, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, - "node_modules/@dfinity/ic-management": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-9.0.1.tgz", - "integrity": "sha512-r4n+m1vjZGH3OD3XCq+E3PhBpDfIFwl4g8ldwv1VZN5FrzuVuTdeCaVIFZW/pe6dIL1Y1FxHoSu61qaykfRwmQ==", - "license": "Apache-2.0", - "peer": true, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, "node_modules/@dfinity/identity": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@dfinity/identity/-/identity-3.4.3.tgz", @@ -784,43 +735,6 @@ "@playwright/test": "^1.52.0" } }, - "node_modules/@dfinity/ledger-icp": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-8.0.1.tgz", - "integrity": "sha512-0X49iB+4uZ/xerP8VYR59egpzeUfR7fADZV2FVvkgmVKS1Jq7lOLp450zUV08f5I5g6+9i1gXUZKRb1pXj02OQ==", - "license": "Apache-2.0", - "peer": true, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, - "node_modules/@dfinity/ledger-icrc": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-6.0.1.tgz", - "integrity": "sha512-YESLczg6fcoYA0TDY0Sez7fD0M6+qI+nTD4KM5cfrSvAxef4rgm7ylp3SzEL4BTZrX2vnjwSohQ+TR7cAl+aUg==", - "license": "Apache-2.0", - "peer": true, - "peerDependencies": { - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, - "node_modules/@dfinity/nns": { - "version": "11.1.4", - "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-11.1.4.tgz", - "integrity": "sha512-1XAl7fHnhZhcibgNQIDnDBy+Hr56pdxI6vaBCFSoWxOmxRUffaWLOFmKKVACCHSN/8Tpzv91HMwQjUYO0z3WDw==", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@noble/hashes": "^1.8.0" - }, - "peerDependencies": { - "@dfinity/ledger-icp": ">=7", - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, "node_modules/@dfinity/principal": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-3.4.3.tgz", @@ -830,25 +744,10 @@ "@noble/hashes": "^1.8.0" } }, - "node_modules/@dfinity/sns": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-6.0.1.tgz", - "integrity": "sha512-cKttlC1/Ap2rrszwuIVn5IJNPptxk9WO1Dub10ElcRHUBdb7C5eG36pXZy4OtxxViPkcxX1WfaRcNWdTdPtECA==", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@noble/hashes": "^1.8.0" - }, - "peerDependencies": { - "@dfinity/ledger-icrc": "^6", - "@dfinity/utils": "^4", - "@icp-sdk/core": "^4" - } - }, "node_modules/@dfinity/utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-4.0.1.tgz", - "integrity": "sha512-OyEzJAOd4LzYJHcqCDjWWcBpi4Jn76djBFL1f9pzVxumlseeyBHIGUOm9LFnz1XU/RqA2Ccj0WrC96xcZJsWDA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-4.0.2.tgz", + "integrity": "sha512-K3VPflH3EXWVHLZw9ouvY6fT+FwZNCcHcVtxI1Et/QJvk2A360929BqUE2SsotzN6HnHCaaBmwmyINh1oetpag==", "license": "Apache-2.0", "peer": true, "peerDependencies": { @@ -856,9 +755,9 @@ } }, "node_modules/@dfinity/zod-schemas": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/zod-schemas/-/zod-schemas-3.0.1.tgz", - "integrity": "sha512-y3wcjr8sEq+Wqtzj06fomXlO6fqfg/SkP0vIQaaFMW62lNgqUNfr9RG4H6hZ/FcpwjkZqcf+ot/luQm12wZhZQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@dfinity/zod-schemas/-/zod-schemas-3.0.2.tgz", + "integrity": "sha512-cbOsAcPgOVjbJbP91VP4hMckwiGSVZ8Q41XWXZ0doG8Vaw3e1wt0blJLiomPYnZy++ycW6iGSfoxh4DiJmumgw==", "license": "Apache-2.0", "peer": true, "peerDependencies": { @@ -1577,20 +1476,17 @@ } }, "node_modules/@icp-sdk/canisters": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@icp-sdk/canisters/-/canisters-2.0.1.tgz", - "integrity": "sha512-EUo1pxjXyreE8AcxNWI3obUIVB8nacNRyvT3LqtDxvyzBOmxsT6JDxm0FN/j6gsejDYUs63L0gn5j5opzU+DdQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@icp-sdk/canisters/-/canisters-3.0.0.tgz", + "integrity": "sha512-O2xAQdXfG7hwYPbwNP2wxW1+9wR2TLVyOLYFqghtGand+2A1hM6seABUvMD6SLKgPggNCam9n1ZCg6iTvR9JjA==", "license": "Apache-2.0", "peer": true, + "dependencies": { + "@noble/hashes": "^1.8.0", + "base58-js": "^3.0.3", + "bech32": "^2.0.0" + }, "peerDependencies": { - "@dfinity/ckbtc": "^6", - "@dfinity/cketh": "^6", - "@dfinity/cmc": "^8", - "@dfinity/ic-management": "^9", - "@dfinity/ledger-icp": "^8", - "@dfinity/ledger-icrc": "^6", - "@dfinity/nns": "^11", - "@dfinity/sns": "^6", "@dfinity/utils": "^4", "@icp-sdk/core": "^4" } @@ -1676,43 +1572,43 @@ } }, "node_modules/@junobuild/admin": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-3.0.3.tgz", - "integrity": "sha512-BvrfsqRM2QcevznEiw/oRSwteKfjjUM+ee+tEyx76/pyWifDrKn5H+gw3rfA2+eY3xl0l1vuXyXt19AbiXw52A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-3.1.0.tgz", + "integrity": "sha512-VNBvcRrUPsyKjl5F8/ZhDqXPU/o/l+VRJMklS5qt6nwHZBFT5+5MyTmxOU0lqWRpDMRWkEwEhEwGMsxqYkUflg==", "license": "MIT", "peerDependencies": { "@dfinity/utils": "^4", - "@icp-sdk/canisters": "^2", + "@icp-sdk/canisters": "^3", "@icp-sdk/core": "^4.2", "@junobuild/config": "*", - "@junobuild/ic-client": "^6", + "@junobuild/ic-client": "^7", "semver": "7.*", "zod": "^4" } }, "node_modules/@junobuild/auth": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@junobuild/auth/-/auth-1.0.2.tgz", - "integrity": "sha512-WBkFUAzGBHL3QeB2MYoYtDKBZ0y73p2yCvDqQoYdZBr8MdtEeGASCXuwjcya1YB3CLZKl5UhuIPsiDWlLIP29Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@junobuild/auth/-/auth-2.0.0.tgz", + "integrity": "sha512-BEooVnGfWN7fsvD0g4Nhv/XSX4uYP4tAcG2DO+FzoR+tx2v4AGBtTQfw/Ea1X9VgDGzxXJr8Z/l+dvjChOFzXw==", "license": "MIT", "peerDependencies": { "@dfinity/utils": "^4", "@icp-sdk/core": "^4.2", - "@junobuild/ic-client": "^6" + "@junobuild/ic-client": "^7" } }, "node_modules/@junobuild/cdn": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-2.0.3.tgz", - "integrity": "sha512-Tjfae29ZRety3RLkKjOCI5vFDfT6J4hgOZSBUWwtpI9AVbf5/wKIk19e/G+RkqJtcfSfyOhonvDxL1160XHWEg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-2.1.0.tgz", + "integrity": "sha512-1waXnd1M7uPbsOp4mk3q8wjkpgBYhMgH+02DETmg6nW82NnOhTUlkcuS9oKVvEypKq7hfTLZRAdvQiakdopFyg==", "license": "MIT", "peer": true, "peerDependencies": { "@dfinity/utils": "^4", - "@icp-sdk/canisters": "^2", + "@icp-sdk/canisters": "^3", "@icp-sdk/core": "^4.2", "@junobuild/config": "*", - "@junobuild/ic-client": "^6", + "@junobuild/ic-client": "^7", "@junobuild/storage": "^2", "semver": "7.*" } @@ -1761,14 +1657,14 @@ } }, "node_modules/@junobuild/core": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-3.3.0.tgz", - "integrity": "sha512-kK1WIEIUD+h0S8Mo8VMSYQalrT/SL7iDuNP737UNiNwOZ1b7Bta7dPwRNfd5Lp7H6cccQz9yCjEBkBUx0MDwIg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-3.3.1.tgz", + "integrity": "sha512-fV8Z0LI/Mbrv6n5vX5aCFyXXcMIVZ3j6BNdfQs8gmOK7tkR0m9zv07K6o0jjbs56DwfEamN/jqBRXzXIhmFRsQ==", "license": "MIT", "dependencies": { - "@junobuild/auth": "^1", + "@junobuild/auth": "^2", "@junobuild/errors": "*", - "@junobuild/ic-client": "^6", + "@junobuild/ic-client": "^7", "@junobuild/storage": "^2", "@junobuild/utils": "*" }, @@ -1812,9 +1708,9 @@ } }, "node_modules/@junobuild/ic-client": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@junobuild/ic-client/-/ic-client-6.0.0.tgz", - "integrity": "sha512-DLhJgqNwDRx8vo/y4HNt+8zfNLDXeWIC77uCWfEXmKMZ9t9XHXoIe+k6w8SQMxm/jjR6HZ6zCfgOcAzGggZxPQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@junobuild/ic-client/-/ic-client-7.0.0.tgz", + "integrity": "sha512-CYgLpnF8kuAd6VnVm0zVXFonTVg5CC1vU55wy3F80azfMLqQPr1k3U91CF/2XwwqGIh9cNMMNrv/Gk2SJGTRUw==", "license": "MIT", "peer": true, "peerDependencies": { @@ -1823,15 +1719,15 @@ } }, "node_modules/@junobuild/storage": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-2.1.0.tgz", - "integrity": "sha512-hLSJv85HKlZ8EVpCnbNU1sbrmnYP9NymGj+x0/xZkn/28+CnD5pcMf7yqVpOJV6nSL58VGYBrJqU46ASpvLSaw==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-2.1.1.tgz", + "integrity": "sha512-oYJl6FB62oG4k8xhq+T87LCfrUddeqDyM7rQFhWuaR9RrBsoJiXvvX/jH6bby5nK33PrxsZ1895DXYf2WbwbsQ==", "license": "MIT", "peer": true, "peerDependencies": { "@dfinity/utils": "^4", "@icp-sdk/core": "^4.2", - "@junobuild/ic-client": "^6", + "@junobuild/ic-client": "^7", "@junobuild/utils": "*" } }, @@ -2603,9 +2499,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.8.32", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.32.tgz", - "integrity": "sha512-OPz5aBThlyLFgxyhdwf/s2+8ab3OvT7AdTNvKHBwpXomIYeXqpUUuT8LrdtxZSsWJ4R4CU1un4XGh5Ez3nlTpw==", + "version": "2.9.6", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.6.tgz", + "integrity": "sha512-v9BVVpOTLB59C9E7aSnmIF8h7qRsFpx+A2nugVMTszEOMcfjlZMsXRm4LF23I3Z9AJxc8ANpIvzbzONoX9VJlg==", "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.js" @@ -2640,9 +2536,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", - "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "funding": [ { "type": "opencollective", @@ -2660,11 +2556,11 @@ "license": "MIT", "peer": true, "dependencies": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -2749,9 +2645,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001759", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz", - "integrity": "sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==", + "version": "1.0.30001760", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz", + "integrity": "sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==", "funding": [ { "type": "opencollective", @@ -3123,9 +3019,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.263", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.263.tgz", - "integrity": "sha512-DrqJ11Knd+lo+dv+lltvfMDLU27g14LMdH2b0O3Pio4uk0x+z7OR+JrmyacTPN2M8w3BrZ7/RTwG3R9B7irPlg==", + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", "license": "ISC" }, "node_modules/emoji-regex": { @@ -6660,9 +6556,9 @@ "license": "MIT" }, "node_modules/update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz", + "integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==", "funding": [ { "type": "opencollective", @@ -7320,38 +7216,6 @@ "resolved": "https://registry.npmjs.org/@dfinity/cbor/-/cbor-0.2.2.tgz", "integrity": "sha512-GPJpH73kDEKbUBdUjY80lz7cq9l0vm1h/7ppejPV6O0ZTqCLrYspssYvqjRmK4aNnJ/SKXsP0rg9LYX7zpegaA==" }, - "@dfinity/ckbtc": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ckbtc/-/ckbtc-6.0.1.tgz", - "integrity": "sha512-fYC266GrFtaKt4U1USWzL742S0kKf8oUgXJy7S/ciGxNAuru++mIMyvlqaJXJ/4avm3BxBhOZhJ+qqhLFnHyEg==", - "peer": true, - "requires": { - "@noble/hashes": "^1.8.0", - "base58-js": "^3.0.3", - "bech32": "^2.0.0" - } - }, - "@dfinity/cketh": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/cketh/-/cketh-6.0.1.tgz", - "integrity": "sha512-Y90UFGC8TXiQHyU52QEgKWjWqDsbNrr/Y+fJrBYrB7UUSQj+IGl4Z1ppavdxCvS69F0RBnjb3Iqg4/IikqLUBw==", - "peer": true, - "requires": {} - }, - "@dfinity/cmc": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/cmc/-/cmc-8.0.1.tgz", - "integrity": "sha512-gpcBNadlIFfa1I2OqRDU8Sojd/GwX+eBG/cEMmCNOIMKuZz7sHvaFbJ5qdtmbjG2nN/e0sBg+YAezomVGU2WBg==", - "peer": true, - "requires": {} - }, - "@dfinity/ic-management": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ic-management/-/ic-management-9.0.1.tgz", - "integrity": "sha512-r4n+m1vjZGH3OD3XCq+E3PhBpDfIFwl4g8ldwv1VZN5FrzuVuTdeCaVIFZW/pe6dIL1Y1FxHoSu61qaykfRwmQ==", - "peer": true, - "requires": {} - }, "@dfinity/identity": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@dfinity/identity/-/identity-3.4.3.tgz", @@ -7376,29 +7240,6 @@ "dev": true, "requires": {} }, - "@dfinity/ledger-icp": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icp/-/ledger-icp-8.0.1.tgz", - "integrity": "sha512-0X49iB+4uZ/xerP8VYR59egpzeUfR7fADZV2FVvkgmVKS1Jq7lOLp450zUV08f5I5g6+9i1gXUZKRb1pXj02OQ==", - "peer": true, - "requires": {} - }, - "@dfinity/ledger-icrc": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/ledger-icrc/-/ledger-icrc-6.0.1.tgz", - "integrity": "sha512-YESLczg6fcoYA0TDY0Sez7fD0M6+qI+nTD4KM5cfrSvAxef4rgm7ylp3SzEL4BTZrX2vnjwSohQ+TR7cAl+aUg==", - "peer": true, - "requires": {} - }, - "@dfinity/nns": { - "version": "11.1.4", - "resolved": "https://registry.npmjs.org/@dfinity/nns/-/nns-11.1.4.tgz", - "integrity": "sha512-1XAl7fHnhZhcibgNQIDnDBy+Hr56pdxI6vaBCFSoWxOmxRUffaWLOFmKKVACCHSN/8Tpzv91HMwQjUYO0z3WDw==", - "peer": true, - "requires": { - "@noble/hashes": "^1.8.0" - } - }, "@dfinity/principal": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-3.4.3.tgz", @@ -7407,26 +7248,17 @@ "@noble/hashes": "^1.8.0" } }, - "@dfinity/sns": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/sns/-/sns-6.0.1.tgz", - "integrity": "sha512-cKttlC1/Ap2rrszwuIVn5IJNPptxk9WO1Dub10ElcRHUBdb7C5eG36pXZy4OtxxViPkcxX1WfaRcNWdTdPtECA==", - "peer": true, - "requires": { - "@noble/hashes": "^1.8.0" - } - }, "@dfinity/utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-4.0.1.tgz", - "integrity": "sha512-OyEzJAOd4LzYJHcqCDjWWcBpi4Jn76djBFL1f9pzVxumlseeyBHIGUOm9LFnz1XU/RqA2Ccj0WrC96xcZJsWDA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@dfinity/utils/-/utils-4.0.2.tgz", + "integrity": "sha512-K3VPflH3EXWVHLZw9ouvY6fT+FwZNCcHcVtxI1Et/QJvk2A360929BqUE2SsotzN6HnHCaaBmwmyINh1oetpag==", "peer": true, "requires": {} }, "@dfinity/zod-schemas": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@dfinity/zod-schemas/-/zod-schemas-3.0.1.tgz", - "integrity": "sha512-y3wcjr8sEq+Wqtzj06fomXlO6fqfg/SkP0vIQaaFMW62lNgqUNfr9RG4H6hZ/FcpwjkZqcf+ot/luQm12wZhZQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@dfinity/zod-schemas/-/zod-schemas-3.0.2.tgz", + "integrity": "sha512-cbOsAcPgOVjbJbP91VP4hMckwiGSVZ8Q41XWXZ0doG8Vaw3e1wt0blJLiomPYnZy++ycW6iGSfoxh4DiJmumgw==", "peer": true, "requires": {} }, @@ -7781,11 +7613,15 @@ } }, "@icp-sdk/canisters": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@icp-sdk/canisters/-/canisters-2.0.1.tgz", - "integrity": "sha512-EUo1pxjXyreE8AcxNWI3obUIVB8nacNRyvT3LqtDxvyzBOmxsT6JDxm0FN/j6gsejDYUs63L0gn5j5opzU+DdQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@icp-sdk/canisters/-/canisters-3.0.0.tgz", + "integrity": "sha512-O2xAQdXfG7hwYPbwNP2wxW1+9wR2TLVyOLYFqghtGand+2A1hM6seABUvMD6SLKgPggNCam9n1ZCg6iTvR9JjA==", "peer": true, - "requires": {} + "requires": { + "@noble/hashes": "^1.8.0", + "base58-js": "^3.0.3", + "bech32": "^2.0.0" + } }, "@icp-sdk/core": { "version": "4.2.3", @@ -7845,21 +7681,21 @@ } }, "@junobuild/admin": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-3.0.3.tgz", - "integrity": "sha512-BvrfsqRM2QcevznEiw/oRSwteKfjjUM+ee+tEyx76/pyWifDrKn5H+gw3rfA2+eY3xl0l1vuXyXt19AbiXw52A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-3.1.0.tgz", + "integrity": "sha512-VNBvcRrUPsyKjl5F8/ZhDqXPU/o/l+VRJMklS5qt6nwHZBFT5+5MyTmxOU0lqWRpDMRWkEwEhEwGMsxqYkUflg==", "requires": {} }, "@junobuild/auth": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@junobuild/auth/-/auth-1.0.2.tgz", - "integrity": "sha512-WBkFUAzGBHL3QeB2MYoYtDKBZ0y73p2yCvDqQoYdZBr8MdtEeGASCXuwjcya1YB3CLZKl5UhuIPsiDWlLIP29Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@junobuild/auth/-/auth-2.0.0.tgz", + "integrity": "sha512-BEooVnGfWN7fsvD0g4Nhv/XSX4uYP4tAcG2DO+FzoR+tx2v4AGBtTQfw/Ea1X9VgDGzxXJr8Z/l+dvjChOFzXw==", "requires": {} }, "@junobuild/cdn": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-2.0.3.tgz", - "integrity": "sha512-Tjfae29ZRety3RLkKjOCI5vFDfT6J4hgOZSBUWwtpI9AVbf5/wKIk19e/G+RkqJtcfSfyOhonvDxL1160XHWEg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-2.1.0.tgz", + "integrity": "sha512-1waXnd1M7uPbsOp4mk3q8wjkpgBYhMgH+02DETmg6nW82NnOhTUlkcuS9oKVvEypKq7hfTLZRAdvQiakdopFyg==", "peer": true, "requires": {} }, @@ -7888,13 +7724,13 @@ "requires": {} }, "@junobuild/core": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-3.3.0.tgz", - "integrity": "sha512-kK1WIEIUD+h0S8Mo8VMSYQalrT/SL7iDuNP737UNiNwOZ1b7Bta7dPwRNfd5Lp7H6cccQz9yCjEBkBUx0MDwIg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-3.3.1.tgz", + "integrity": "sha512-fV8Z0LI/Mbrv6n5vX5aCFyXXcMIVZ3j6BNdfQs8gmOK7tkR0m9zv07K6o0jjbs56DwfEamN/jqBRXzXIhmFRsQ==", "requires": { - "@junobuild/auth": "^1", + "@junobuild/auth": "^2", "@junobuild/errors": "*", - "@junobuild/ic-client": "^6", + "@junobuild/ic-client": "^7", "@junobuild/storage": "^2", "@junobuild/utils": "*" } @@ -7918,16 +7754,16 @@ "requires": {} }, "@junobuild/ic-client": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@junobuild/ic-client/-/ic-client-6.0.0.tgz", - "integrity": "sha512-DLhJgqNwDRx8vo/y4HNt+8zfNLDXeWIC77uCWfEXmKMZ9t9XHXoIe+k6w8SQMxm/jjR6HZ6zCfgOcAzGggZxPQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@junobuild/ic-client/-/ic-client-7.0.0.tgz", + "integrity": "sha512-CYgLpnF8kuAd6VnVm0zVXFonTVg5CC1vU55wy3F80azfMLqQPr1k3U91CF/2XwwqGIh9cNMMNrv/Gk2SJGTRUw==", "peer": true, "requires": {} }, "@junobuild/storage": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-2.1.0.tgz", - "integrity": "sha512-hLSJv85HKlZ8EVpCnbNU1sbrmnYP9NymGj+x0/xZkn/28+CnD5pcMf7yqVpOJV6nSL58VGYBrJqU46ASpvLSaw==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-2.1.1.tgz", + "integrity": "sha512-oYJl6FB62oG4k8xhq+T87LCfrUddeqDyM7rQFhWuaR9RrBsoJiXvvX/jH6bby5nK33PrxsZ1895DXYf2WbwbsQ==", "peer": true, "requires": {} }, @@ -8411,9 +8247,9 @@ "integrity": "sha512-3hf42BysHnUqmZO7mK6e5X/hs1AvyEJIhdVLbG/Mxn/fhFnhGxOO37mWbMHg1RT4TxqcPKXgqj9/bp1YG0GBXA==" }, "baseline-browser-mapping": { - "version": "2.8.32", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.32.tgz", - "integrity": "sha512-OPz5aBThlyLFgxyhdwf/s2+8ab3OvT7AdTNvKHBwpXomIYeXqpUUuT8LrdtxZSsWJ4R4CU1un4XGh5Ez3nlTpw==" + "version": "2.9.6", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.6.tgz", + "integrity": "sha512-v9BVVpOTLB59C9E7aSnmIF8h7qRsFpx+A2nugVMTszEOMcfjlZMsXRm4LF23I3Z9AJxc8ANpIvzbzONoX9VJlg==" }, "bech32": { "version": "2.0.0", @@ -8439,16 +8275,16 @@ } }, "browserslist": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", - "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "peer": true, "requires": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" + "update-browserslist-db": "^1.2.0" } }, "bundle-name": { @@ -8498,9 +8334,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001759", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz", - "integrity": "sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==" + "version": "1.0.30001760", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz", + "integrity": "sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==" }, "chalk": { "version": "5.6.2", @@ -8720,9 +8556,9 @@ } }, "electron-to-chromium": { - "version": "1.5.263", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.263.tgz", - "integrity": "sha512-DrqJ11Knd+lo+dv+lltvfMDLU27g14LMdH2b0O3Pio4uk0x+z7OR+JrmyacTPN2M8w3BrZ7/RTwG3R9B7irPlg==" + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==" }, "emoji-regex": { "version": "10.6.0", @@ -10947,9 +10783,9 @@ "dev": true }, "update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz", + "integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==", "requires": { "escalade": "^3.2.0", "picocolors": "^1.1.1" diff --git a/package.json b/package.json index c6a0828..53f7765 100644 --- a/package.json +++ b/package.json @@ -29,19 +29,19 @@ "e2e:playwright:install": "playwright install chromium --with-deps" }, "dependencies": { - "@dfinity/utils": "^4.0.1", - "@dfinity/zod-schemas": "^3.0.1", - "@icp-sdk/canisters": "^2.0.1", + "@dfinity/utils": "^4.0.2", + "@dfinity/zod-schemas": "^3.0.2", + "@icp-sdk/canisters": "^3.0.0", "@icp-sdk/core": "^4.2.3", - "@junobuild/admin": "^3.0.3", - "@junobuild/cdn": "^2.0.3", + "@junobuild/admin": "^3.1.0", + "@junobuild/cdn": "^2.1.0", "@junobuild/cli-tools": "^0.9.4", "@junobuild/config": "^2.7.0", "@junobuild/config-loader": "^0.4.6", - "@junobuild/core": "^3.3.0", + "@junobuild/core": "^3.3.1", "@junobuild/did-tools": "^0.3.6", - "@junobuild/ic-client": "^6.0.0", - "@junobuild/storage": "^2.1.0", + "@junobuild/ic-client": "^7.0.0", + "@junobuild/storage": "^2.1.1", "@junobuild/utils": "^0.2.3", "chokidar": "^4.0.3", "conf": "^14.0.0", diff --git a/src/api/ic.api.ts b/src/api/ic.api.ts index 706154e..462c1d7 100644 --- a/src/api/ic.api.ts +++ b/src/api/ic.api.ts @@ -1,12 +1,9 @@ import { - ICManagementCanister, - type list_canister_snapshots_result, - type read_canister_snapshot_data_response, + IcManagementCanister, + type IcManagementDid, type ReadCanisterSnapshotMetadataParams, type ReadCanisterSnapshotMetadataResponse, - type snapshot_id, type SnapshotParams, - type upload_canister_snapshot_metadata_response, type UploadCanisterSnapshotDataParams, type UploadCanisterSnapshotMetadataParams } from '@icp-sdk/canisters/ic-management'; @@ -16,7 +13,7 @@ import {initAgent} from './agent.api'; export const canisterStop = async ({canisterId}: {canisterId: Principal}): Promise => { const agent = await initAgent(); - const {stopCanister} = ICManagementCanister.create({ + const {stopCanister} = IcManagementCanister.create({ agent }); @@ -26,7 +23,7 @@ export const canisterStop = async ({canisterId}: {canisterId: Principal}): Promi export const canisterStart = async ({canisterId}: {canisterId: Principal}): Promise => { const agent = await initAgent(); - const {startCanister} = ICManagementCanister.create({ + const {startCanister} = IcManagementCanister.create({ agent }); @@ -35,11 +32,11 @@ export const canisterStart = async ({canisterId}: {canisterId: Principal}): Prom export const takeCanisterSnapshot = async (params: { canisterId: Principal; - snapshotId?: snapshot_id; + snapshotId?: IcManagementDid.snapshot_id; }): Promise => { const agent = await initAgent(); - const {takeCanisterSnapshot} = ICManagementCanister.create({ + const {takeCanisterSnapshot} = IcManagementCanister.create({ agent }); @@ -48,10 +45,10 @@ export const takeCanisterSnapshot = async (params: { export const listCanisterSnapshots = async (params: { canisterId: Principal; -}): Promise => { +}): Promise => { const agent = await initAgent(); - const {listCanisterSnapshots} = ICManagementCanister.create({ + const {listCanisterSnapshots} = IcManagementCanister.create({ agent }); @@ -60,11 +57,11 @@ export const listCanisterSnapshots = async (params: { export const loadCanisterSnapshot = async (params: { canisterId: Principal; - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; }): Promise => { const agent = await initAgent(); - const {loadCanisterSnapshot} = ICManagementCanister.create({ + const {loadCanisterSnapshot} = IcManagementCanister.create({ agent }); @@ -73,11 +70,11 @@ export const loadCanisterSnapshot = async (params: { export const deleteCanisterSnapshot = async (params: { canisterId: Principal; - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; }): Promise => { const agent = await initAgent(); - const {deleteCanisterSnapshot} = ICManagementCanister.create({ + const {deleteCanisterSnapshot} = IcManagementCanister.create({ agent }); @@ -89,7 +86,7 @@ export const readCanisterSnapshotMetadata = async ( ): Promise => { const agent = await initAgent(); - const {readCanisterSnapshotMetadata} = ICManagementCanister.create({ + const {readCanisterSnapshotMetadata} = IcManagementCanister.create({ agent }); @@ -98,10 +95,10 @@ export const readCanisterSnapshotMetadata = async ( export const readCanisterSnapshotData = async ( params: ReadCanisterSnapshotMetadataParams -): Promise => { +): Promise => { const agent = await initAgent(); - const {readCanisterSnapshotData} = ICManagementCanister.create({ + const {readCanisterSnapshotData} = IcManagementCanister.create({ agent }); @@ -110,10 +107,10 @@ export const readCanisterSnapshotData = async ( export const uploadCanisterSnapshotMetadata = async ( params: UploadCanisterSnapshotMetadataParams -): Promise => { +): Promise => { const agent = await initAgent(); - const {uploadCanisterSnapshotMetadata} = ICManagementCanister.create({ + const {uploadCanisterSnapshotMetadata} = IcManagementCanister.create({ agent }); @@ -125,7 +122,7 @@ export const uploadCanisterSnapshotData = async ( ): Promise => { const agent = await initAgent(); - const {uploadCanisterSnapshotData} = ICManagementCanister.create({ + const {uploadCanisterSnapshotData} = IcManagementCanister.create({ agent }); diff --git a/src/services/config/settings.services.ts b/src/services/config/settings.services.ts index 122b553..7d23998 100644 --- a/src/services/config/settings.services.ts +++ b/src/services/config/settings.services.ts @@ -1,5 +1,5 @@ import {isNullish} from '@dfinity/utils'; -import {ICManagementCanister, LogVisibility} from '@icp-sdk/canisters/ic-management'; +import {IcManagementCanister, LogVisibility} from '@icp-sdk/canisters/ic-management'; import {Principal} from '@icp-sdk/core/principal'; import type {ModuleSettings} from '@junobuild/config'; import {initAgent} from '../../api/agent.api'; @@ -14,7 +14,7 @@ export const getSettings = async ({ const agent = await initAgent(); - const {canisterStatus} = ICManagementCanister.create({ + const {canisterStatus} = IcManagementCanister.create({ agent }); @@ -59,7 +59,7 @@ export const setSettings = async ({ const agent = await initAgent(); - const {updateSettings} = ICManagementCanister.create({ + const {updateSettings} = IcManagementCanister.create({ agent }); diff --git a/src/services/modules/snapshot/_snapshot.loader.services.ts b/src/services/modules/snapshot/_snapshot.loader.services.ts index 5920c0a..dd09c87 100644 --- a/src/services/modules/snapshot/_snapshot.loader.services.ts +++ b/src/services/modules/snapshot/_snapshot.loader.services.ts @@ -1,5 +1,5 @@ import {isNullish, nonNullish} from '@dfinity/utils'; -import type {snapshot_id} from '@icp-sdk/canisters/ic-management'; +import type {IcManagementDid} from '@icp-sdk/canisters/ic-management'; import {encodeSnapshotId} from '@icp-sdk/canisters/ic-management'; import {type Principal} from '@icp-sdk/core/principal'; import {red} from 'kleur'; @@ -13,7 +13,7 @@ const loadSnapshot = async ({ canisterId }: { canisterId: Principal; -}): Promise => { +}): Promise => { const spinner = ora('Loading the existing snapshot...').start(); try { @@ -33,7 +33,7 @@ export const loadSnapshotAndAssertExist = async ({ }: { canisterId: Principal; segment: AssetKey; -}): Promise<{result: 'ok'; snapshotId: snapshot_id} | {result: 'not_found'}> => { +}): Promise<{result: 'ok'; snapshotId: IcManagementDid.snapshot_id} | {result: 'not_found'}> => { const existingSnapshotId = await loadSnapshot({canisterId}); if (isNullish(existingSnapshotId)) { @@ -50,7 +50,7 @@ export const loadSnapshotAndAssertOverwrite = async ({ }: { canisterId: Principal; segment: AssetKey; -}): Promise<{snapshotId: snapshot_id | undefined}> => { +}): Promise<{snapshotId: IcManagementDid.snapshot_id | undefined}> => { const existingSnapshotId = await loadSnapshot({canisterId}); if (nonNullish(existingSnapshotId)) { diff --git a/src/services/modules/snapshot/snapshot.services.ts b/src/services/modules/snapshot/snapshot.services.ts index 9d63b04..f56661d 100644 --- a/src/services/modules/snapshot/snapshot.services.ts +++ b/src/services/modules/snapshot/snapshot.services.ts @@ -1,5 +1,5 @@ import {notEmptyString} from '@dfinity/utils'; -import type {snapshot_id} from '@icp-sdk/canisters/ic-management'; +import type {IcManagementDid} from '@icp-sdk/canisters/ic-management'; import {encodeSnapshotId} from '@icp-sdk/canisters/ic-management'; import {Principal} from '@icp-sdk/core/principal'; import {nextArg} from '@junobuild/cli-tools'; @@ -195,7 +195,7 @@ const restoreExistingSnapshot = async ({ ...rest }: { canisterId: Principal; - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; segment: AssetKey; }): Promise => { const spinner = ora('Restoring the snapshot...').start(); @@ -214,7 +214,7 @@ const deleteExistingSnapshot = async ({ ...rest }: { canisterId: Principal; - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; segment: AssetKey; }): Promise => { const spinner = ora('Deleting the snapshot...').start(); @@ -233,7 +233,7 @@ const takeSnapshot = async ({ ...rest }: { canisterId: Principal; - snapshotId: snapshot_id | undefined; + snapshotId: IcManagementDid.snapshot_id | undefined; segment: AssetKey; }): Promise => { const spinner = ora('Creating a new snapshot...').start(); diff --git a/src/services/modules/snapshot/snapshot.upload.services.ts b/src/services/modules/snapshot/snapshot.upload.services.ts index aa16119..03ed761 100644 --- a/src/services/modules/snapshot/snapshot.upload.services.ts +++ b/src/services/modules/snapshot/snapshot.upload.services.ts @@ -1,7 +1,7 @@ import {arrayBufferToUint8Array, isNullish, jsonReviver} from '@dfinity/utils'; import { encodeSnapshotId, - type snapshot_id, + type IcManagementDid, type UploadCanisterSnapshotDataKind } from '@icp-sdk/canisters/ic-management'; import {lstatSync} from 'node:fs'; @@ -178,7 +178,7 @@ const uploadMetadata = async ({ }, ...rest }: UploadSnapshotParams & {metadata: ReadCanisterSnapshotMetadataResponse} & SnapshotLog): Promise<{ - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; }> => { log('Uploading snapshot metadata...'); diff --git a/src/types/snapshot.ts b/src/types/snapshot.ts index bc28326..3fc0930 100644 --- a/src/types/snapshot.ts +++ b/src/types/snapshot.ts @@ -1,4 +1,4 @@ -import type {snapshot_id} from '@icp-sdk/canisters/ic-management'; +import type {IcManagementDid} from '@icp-sdk/canisters/ic-management'; import type {Principal} from '@icp-sdk/core/principal'; import type * as z from 'zod'; import { @@ -17,7 +17,7 @@ export type ReadCanisterSnapshotMetadataResponse = z.infer< export interface DownloadSnapshotParams { canisterId: Principal; - snapshotId: snapshot_id; + snapshotId: IcManagementDid.snapshot_id; } export type UploadSnapshotParams = Omit &