diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9d2dee5..e921b0f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: fetch-depth: 1 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc7e52e..440731e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 1 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: diff --git a/README.md b/README.md index 635c48c..7e38c16 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,26 @@

+> ⚠️ **DEPRECATED – DO NOT USE** +> +> This repository is no longer maintained and is **deprecated**. +> +> It may contain **outdated, insecure, or vulnerable code** and should **not** be used in production or as a dependency in any project. +> +> The repository is retained solely for historical reference. No support, updates, or security patches will be provided. + +## Soft-deprecation notice + +Smock has had a fruitful life, and its legacy lives on +[smock-foundry](https://github.com/defi-wonderland/smock-foundry), a +re-implementation for foundry which we now use exclusively as a side-effect of +using `foundry` for all new projects. + +We won't migrate the project to +newer versions of peer dependencies, as specified in +[#201](https://github.com/defi-wonderland/smock/issues/201) + +# Overview **Smock** is the **S**olidity **mock**ing library. It's a plugin for [hardhat](https://hardhat.org) that can be used to create mock Solidity contracts entirely in JavaScript (or TypeScript!). With Smock, it's diff --git a/package.json b/package.json index 2c37567..f60e927 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@defi-wonderland/smock", - "version": "2.4.0", + "version": "2.4.1", "description": "The Solidity mocking library", "keywords": [ "ethereum", diff --git a/yarn.lock b/yarn.lock index 0b71510..a2f61ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3761,6 +3761,19 @@ elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.3: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" +elliptic@^6.5.7: + version "6.5.7" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.7.tgz#8ec4da2cb2939926a1b9a73619d768207e647c8b" + integrity sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" @@ -7144,6 +7157,11 @@ node-addon-api@^2.0.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== +node-addon-api@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-5.1.0.tgz#49da1ca055e109a23d537e9de43c09cca21eb762" + integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA== + node-fetch@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.2.tgz#ab884e8e7e57e38a944753cec706f788d1768bb5" @@ -8439,12 +8457,12 @@ scryptsy@^1.2.1: pbkdf2 "^3.0.3" secp256k1@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.2.tgz#15dd57d0f0b9fdb54ac1fa1694f40e5e9a54f4a1" - integrity sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg== + version "4.0.4" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.4.tgz#58f0bfe1830fe777d9ca1ffc7574962a8189f8ab" + integrity sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw== dependencies: - elliptic "^6.5.2" - node-addon-api "^2.0.0" + elliptic "^6.5.7" + node-addon-api "^5.0.0" node-gyp-build "^4.2.0" seedrandom@3.0.1: