diff --git a/motoko/icrc2-swap/test/swap/identity.ts b/motoko/icrc2-swap/test/swap/identity.ts index ca766e3bf..7e27f2b7f 100644 --- a/motoko/icrc2-swap/test/swap/identity.ts +++ b/motoko/icrc2-swap/test/swap/identity.ts @@ -4,11 +4,15 @@ import { Ed25519KeyIdentity } from "@dfinity/identity"; // // This key is not a secret. Only use it for testing! It is from: // https://internetcomputer.org/docs/current/references/cli-reference/dfx-nns/#example-accessing-icp-on-the-command-line +const minterPublicKey = Buffer.from( + "Uu8wv55BKmk9ZErr6OIt5XR1kpEGXcOSOC1OYzrAwuk=", + "base64", +); const minterPrivateKey = Buffer.from( "N3HB8Hh2PrWqhWH2Qqgr1vbU9T3gb1zgdBD8ZOdlQnVS7zC/nkEqaT1kSuvo4i3ldHWSkQZdw5I4LU5jOsDC6Q==", "base64", ); -export const minter = Ed25519KeyIdentity.fromSecretKey(minterPrivateKey); +export const minter = Ed25519KeyIdentity.fromKeyPair(minterPublicKey, minterPrivateKey); // Randomly generate a new test account each run so there are no collisions, // and our tests are forced to be robust. diff --git a/motoko/minimal-counter-dapp/package-lock.json b/motoko/minimal-counter-dapp/package-lock.json index c158d129d..2773fe021 100644 --- a/motoko/minimal-counter-dapp/package-lock.json +++ b/motoko/minimal-counter-dapp/package-lock.json @@ -147,42 +147,6 @@ "node": ">=6.9.0" } }, - "node_modules/@dfinity/agent": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-1.4.0.tgz", - "integrity": "sha512-/zgGajZpxtbu+kLXtFx2e9V2+HbMUjrtGWx9ZEwtVwhVxKgVi/2kGQpFRPEDFJ461V7wdTwCig4OkMxVU4shTw==", - "license": "Apache-2.0", - "dependencies": { - "@noble/curves": "^1.4.0", - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "buffer": "^6.0.3", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^1.4.0", - "@dfinity/principal": "^1.4.0" - } - }, - "node_modules/@dfinity/candid": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-1.4.0.tgz", - "integrity": "sha512-PsTJVn63ZM4A/6Xs5coI0zMFevSwJ8hcyh38LdH/92n6wi9UOTis1yc4qL5MZvvRCUAD0c3rVjELL+49E9sPyA==", - "license": "Apache-2.0", - "peerDependencies": { - "@dfinity/principal": "^1.4.0" - } - }, - "node_modules/@dfinity/principal": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-1.4.0.tgz", - "integrity": "sha512-SuTBVlc71ub89ji0WN5/T100zUG2uIMn5x4+We4vS4nJ0R3/Xt89XJsHepjd5SQTSQPOvP7eQ+S8cQKWRz/RkA==", - "license": "Apache-2.0", - "dependencies": { - "@noble/hashes": "^1.3.1" - } - }, "node_modules/@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", @@ -2378,9 +2342,9 @@ "src/minimal_dapp_frontend": { "version": "0.0.0", "dependencies": { - "@dfinity/agent": "^1.4.0", - "@dfinity/candid": "^1.4.0", - "@dfinity/principal": "^1.4.0", + "@dfinity/agent": "^2.1.3", + "@dfinity/candid": "^2.1.3", + "@dfinity/principal": "^2.1.3", "lit-html": "^2.8.0" }, "devDependencies": { @@ -2393,6 +2357,39 @@ "vite-plugin-environment": "^1.1.3", "vitest": "^0.32.2" } + }, + "src/minimal_dapp_frontend/node_modules/@dfinity/agent": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-2.1.3.tgz", + "integrity": "sha512-4XmqhFR3GQSUrmx7lMFx7DyHEhFkM6nz4O9FeYJ/WpkmPe8tulKaAfgWbWdTSCjbd8meCgKVHo+QYj+JHXagcw==", + "dependencies": { + "@noble/curves": "^1.4.0", + "@noble/hashes": "^1.3.1", + "base64-arraybuffer": "^0.2.0", + "borc": "^2.1.1", + "buffer": "^6.0.3", + "simple-cbor": "^0.4.1" + }, + "peerDependencies": { + "@dfinity/candid": "^2.1.3", + "@dfinity/principal": "^2.1.3" + } + }, + "src/minimal_dapp_frontend/node_modules/@dfinity/candid": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-2.1.3.tgz", + "integrity": "sha512-Asn7AfydLhhk7E5z9oW+5UL6ne11gxFlYTxHuhrIc7FdqYlM5Flcq1Wfg9EzRa6Btdol3w58Bcph7Brwh1bcIQ==", + "peerDependencies": { + "@dfinity/principal": "^2.1.3" + } + }, + "src/minimal_dapp_frontend/node_modules/@dfinity/principal": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-2.1.3.tgz", + "integrity": "sha512-HtiAfZcs+ToPYFepVJdFlorIfPA56KzC6J97ZuH2lGNMTAfJA+NEBzLe476B4wVCAwZ0TiGJ27J4ks9O79DFEg==", + "dependencies": { + "@noble/hashes": "^1.3.1" + } } } } diff --git a/motoko/minimal-counter-dapp/src/minimal_dapp_frontend/package.json b/motoko/minimal-counter-dapp/src/minimal_dapp_frontend/package.json index 386fd549b..f833abb85 100644 --- a/motoko/minimal-counter-dapp/src/minimal_dapp_frontend/package.json +++ b/motoko/minimal-counter-dapp/src/minimal_dapp_frontend/package.json @@ -26,4 +26,4 @@ "@dfinity/principal": "^2.1.3", "lit-html": "^2.8.0" } - } \ No newline at end of file +}