From 366c6af71280973d65374531805b78b5f54eab35 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Fri, 15 Nov 2024 15:08:40 +0100 Subject: [PATCH] Yarn Upgrade (Specifically Near Ca) (#111) --- package.json | 10 +++++----- tests/e2e.spec.ts | 8 ++++++++ yarn.lock | 34 +++++++++++++++++----------------- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index d17c9df..74ec398 100644 --- a/package.json +++ b/package.json @@ -43,19 +43,19 @@ "dependencies": { "@safe-global/safe-gateway-typescript-sdk": "^3.22.2", "near-api-js": "^5.0.1", - "near-ca": "^0.7.2", + "near-ca": "^0.7.3", "semver": "^7.6.3", - "viem": "^2.21.41" + "viem": "^2.21.45" }, "devDependencies": { - "@safe-global/safe-deployments": "^1.37.14", + "@safe-global/safe-deployments": "^1.37.16", "@safe-global/safe-modules-deployments": "^2.2.4", "@types/jest": "^29.5.14", "@types/node": "^22.9.0", "@types/semver": "^7.5.8", "@types/yargs": "^17.0.33", - "@typescript-eslint/eslint-plugin": "^8.13.0", - "@typescript-eslint/parser": "^8.13.0", + "@typescript-eslint/eslint-plugin": "^8.14.0", + "@typescript-eslint/parser": "^8.14.0", "dotenv": "^16.4.5", "eslint": "^9.14.0", "eslint-plugin-import": "^2.31.0", diff --git a/tests/e2e.spec.ts b/tests/e2e.spec.ts index 4ac2139..12ddd7d 100644 --- a/tests/e2e.spec.ts +++ b/tests/e2e.spec.ts @@ -6,14 +6,22 @@ import { decodeTxData } from "../src/decode"; dotenv.config(); +const TESTNET_ROOT_KEY = + "secp256k1:4NfTiv3UsGahebgTaHyD9vF8KYKMBnfd6kh94mK6xv8fGBiJB8TBtFMP5WWXz6B89Ac1fbpzPwAvoyQebemHFwx3"; +const MAINNET_ROOT_KEY = + "secp256k1:3tFRbMqmoa6AAALMrEFAYCEoHcqKxeW38YptwowBVBtXK1vo36HDbUWuR6EZmoK4JcH6HDkNMGGqP1ouV7VZUWya"; + describe("Near Safe Requests", () => { let adapter: NearSafe; beforeAll(async () => { + const networkId = "testnet"; // Initialize the NearSafe adapter once before all tests adapter = await NearSafe.create({ mpc: { accountId: "neareth-dev.testnet", mpcContractId: "v1.signer-prod.testnet", + rootPublicKey: + networkId === "testnet" ? TESTNET_ROOT_KEY : MAINNET_ROOT_KEY, }, pimlicoKey: process.env.PIMLICO_KEY!, safeSaltNonce: DEFAULT_SAFE_SALT_NONCE, diff --git a/yarn.lock b/yarn.lock index 66ee430..d86dc25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -455,9 +455,9 @@ integrity sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ== "@eslint/plugin-kit@^0.2.0": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@eslint/plugin-kit/-/plugin-kit-0.2.2.tgz#5eff371953bc13e3f4d88150e2c53959f64f74f6" - integrity sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw== + version "0.2.3" + resolved "https://registry.yarnpkg.com/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz#812980a6a41ecf3a8341719f92a6d1e784a2e0e8" + integrity sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA== dependencies: levn "^0.4.1" @@ -1237,7 +1237,7 @@ resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== -"@safe-global/safe-deployments@^1.37.14": +"@safe-global/safe-deployments@^1.37.16": version "1.37.16" resolved "https://registry.yarnpkg.com/@safe-global/safe-deployments/-/safe-deployments-1.37.16.tgz#04cf3db2b5305a2844f0bc84a146bd87440ebf6b" integrity sha512-Wu7E89n+xY2Kav798hl63pmy4MqrhE2e2kZOaNir7GMAICv2AQSXxDdzqrUrrjelYbU9zFSfQJ3zYSwX39Ggow== @@ -1547,7 +1547,7 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^8.13.0": +"@typescript-eslint/eslint-plugin@^8.14.0": version "8.14.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz#7dc0e419c87beadc8f554bf5a42e5009ed3748dc" integrity sha512-tqp8H7UWFaZj0yNO6bycd5YjMwxa6wIHOLZvWPkidwbgLCsBMetQoGj7DPuAlWa2yGO3H48xmPwjhsSPPCGU5w== @@ -1562,7 +1562,7 @@ natural-compare "^1.4.0" ts-api-utils "^1.3.0" -"@typescript-eslint/parser@^8.13.0": +"@typescript-eslint/parser@^8.14.0": version "8.14.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.14.0.tgz#0a7e9dbc11bc07716ab2d7b1226217e9f6b51fc8" integrity sha512-2p82Yn9juUJq0XynBXtFCyrBDb6/dJombnz6vbo6mgQEtWHfvHbQuEa9kAOVIt1c9YFwi7H6WxtPj1kg+80+RA== @@ -2572,9 +2572,9 @@ ejs@^3.1.10: jake "^10.8.5" electron-to-chromium@^1.5.41: - version "1.5.58" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.58.tgz#d90bd7a04d9223dce4e72316e14492140ec9af40" - integrity sha512-al2l4r+24ZFL7WzyPTlyD0fC33LLzvxqLCwurtBibVPghRGO9hSTl+tis8t1kD7biPiH/en4U0I7o/nQbYeoVA== + version "1.5.60" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.60.tgz#29944afe568c58c40729e67af0f59f52d4d0ed32" + integrity sha512-HcraRUkTKJ+8yA3b10i9qvhUlPBRDlKjn1XGek1zDGVfAKcvi8TsUnImGqLiEm9j6ZulxXIWWIo9BmbkbCTGgA== elliptic@6.5.4: version "6.5.4" @@ -2658,9 +2658,9 @@ error-ex@^1.3.1: is-arrayish "^0.2.1" es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.23.0, es-abstract@^1.23.2: - version "1.23.4" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.4.tgz#f006871f484d6a78229d2343557f2597f8333ed4" - integrity sha512-HR1gxH5OaiN7XH7uiWH0RLw0RcFySiSoW1ctxmD1ahTw3uGBtkmm/ng0tDU1OtYx5OK6EOL5Y6O21cDflG3Jcg== + version "1.23.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.5.tgz#f4599a4946d57ed467515ed10e4f157289cd52fb" + integrity sha512-vlmniQ0WNPwXqA0BnmwV3Ng7HxiGlh6r5U6JcTMNx8OilcAGqVJBHJcPjqOMaczU9fRuRK5Px2BdVyPRnKMMVQ== dependencies: array-buffer-byte-length "^1.0.1" arraybuffer.prototype.slice "^1.0.3" @@ -4454,10 +4454,10 @@ near-api-js@^5.0.0, near-api-js@^5.0.1: near-abi "0.1.1" node-fetch "2.6.7" -near-ca@^0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/near-ca/-/near-ca-0.7.2.tgz#e53442c112c2064ef267f36ea08715aa0c95a35f" - integrity sha512-seJ6xin7JJKsWFrjpmRJHeiwvVCMli0T6zDNUKaH+qys8MdRbvq0ft3I2/HARodFTfKnkjS1GNqWsMxO6GsOvA== +near-ca@^0.7.3: + version "0.7.3" + resolved "https://registry.yarnpkg.com/near-ca/-/near-ca-0.7.3.tgz#d40d4d5a1bd0b0fc1912f0adc7339f3cf3e47843" + integrity sha512-KyyHfy4IoDiceIqgpTfBGybp09F/Ph4KhP/t+xvjlmQX5NjE/Y5/Q/WdHplwz9arzoQLONwatIg+4PKydsRMPw== dependencies: "@walletconnect/web3wallet" "^1.13.0" elliptic "^6.5.6" @@ -5554,7 +5554,7 @@ v8-to-istanbul@^9.0.1: "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^2.0.0" -viem@^2.21.37, viem@^2.21.41: +viem@^2.21.37, viem@^2.21.45: version "2.21.45" resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.45.tgz#7a445428d4909cc334f231ee916ede1b69190603" integrity sha512-I+On/IiaObQdhDKWU5Rurh6nf3G7reVkAODG5ECIfjsrGQ3EPJnxirUPT4FNV6bWER5iphoG62/TidwuTSOA1A==