From fa4636606502b0b915cbd96bed56c3f21c55b84f Mon Sep 17 00:00:00 2001
From: Krzysztof Szostak <christopher.szostak@energyweb.org>
Date: Wed, 30 Oct 2024 11:10:12 +0100
Subject: [PATCH] feat: downgrade polkadot version

---
 package-lock.json | 240 +++++++++++++++++++++++-----------------------
 package.json      |   2 +-
 2 files changed, 121 insertions(+), 121 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 8fcb4b3..d4c0be3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -32,7 +32,7 @@
         "@rollup/rollup-linux-x64-gnu": "^4.18.0"
       },
       "peerDependencies": {
-        "@polkadot/api": "^14.2.1"
+        "@polkadot/api": "^14.0.1"
       }
     },
     "node_modules/@ampproject/remapping": {
@@ -1341,83 +1341,83 @@
       "peer": true
     },
     "node_modules/@polkadot/api": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.2.1.tgz",
-      "integrity": "sha512-vYYOvCbGzKWq2auv7e3r71lp0N9hLi4Wfvdb+PjDlUWy4CBydDPgNRL7eC/pJyY4/8zs5dAWVmmu5SQsdpM93g==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.0.1.tgz",
+      "integrity": "sha512-CDSaUiJpXu9aE6MaTg14K+9Trf8K2PBHcD3Xl5m5KOvJperWgYFxoCqV3rXLIBWt69LgHhMYlq5JSPRHxejIsw==",
       "peer": true,
       "dependencies": {
-        "@polkadot/api-augment": "14.2.1",
-        "@polkadot/api-base": "14.2.1",
-        "@polkadot/api-derive": "14.2.1",
-        "@polkadot/keyring": "^13.2.2",
-        "@polkadot/rpc-augment": "14.2.1",
-        "@polkadot/rpc-core": "14.2.1",
-        "@polkadot/rpc-provider": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-augment": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/types-create": "14.2.1",
-        "@polkadot/types-known": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "@polkadot/util-crypto": "^13.2.2",
+        "@polkadot/api-augment": "14.0.1",
+        "@polkadot/api-base": "14.0.1",
+        "@polkadot/api-derive": "14.0.1",
+        "@polkadot/keyring": "^13.1.1",
+        "@polkadot/rpc-augment": "14.0.1",
+        "@polkadot/rpc-core": "14.0.1",
+        "@polkadot/rpc-provider": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-augment": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/types-create": "14.0.1",
+        "@polkadot/types-known": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "@polkadot/util-crypto": "^13.1.1",
         "eventemitter3": "^5.0.1",
         "rxjs": "^7.8.1",
-        "tslib": "^2.8.0"
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/api-augment": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.2.1.tgz",
-      "integrity": "sha512-Vi1iuGliJe3rrH2wyfZq/FIYncUqX6ue15Zx0gpj20kRW9hNEU3ywr3NRrr3UXGZRozJZ/C4s0FNneNYvu/KCQ==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.0.1.tgz",
+      "integrity": "sha512-+ZHq3JaQZ/3Q45r6/YQBeLfoP8S5ibgkOvLKnKA9cJeF7oP5Qgi6pAEnGW0accfnT9PyCEco9fD/ZOLR9Yka7w==",
       "peer": true,
       "dependencies": {
-        "@polkadot/api-base": "14.2.1",
-        "@polkadot/rpc-augment": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-augment": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/api-base": "14.0.1",
+        "@polkadot/rpc-augment": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-augment": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/api-base": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.2.1.tgz",
-      "integrity": "sha512-HofQlndP8OeO91iU+Ueg7DWo7fmzD5TJs/WHBS2XwSZfZ6rzYnfBxpFM8A51oY+HxXHc5EgvjdhqY2aO2OjZ2w==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.0.1.tgz",
+      "integrity": "sha512-OVnDiztKx/1ktae9eCzO1q8lmKEfnQ71fipo8JkDJOMIN4vT1IqL9KQo4e/Xz8UtOfTJ0H8kZ6evaLqdA3ZYOA==",
       "peer": true,
       "dependencies": {
-        "@polkadot/rpc-core": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/util": "^13.2.2",
+        "@polkadot/rpc-core": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/util": "^13.1.1",
         "rxjs": "^7.8.1",
-        "tslib": "^2.8.0"
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/api-derive": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.2.1.tgz",
-      "integrity": "sha512-2JqFcu+qRHpeveu3f/LTxhWw0MNt4M+aNeyttyo5kRRSAL/pmU75E43b4tXq7UZmlmKZZtga8b0dFHoiMTuuwA==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.0.1.tgz",
+      "integrity": "sha512-ADQMre3DRRW/0rhJqxOVhQ1vqtyafP2dSZJ0qEAsto12q2WMSF8CZWo7pXe4DxiniDkZx3zVq4z5lqw2aBRLfg==",
       "peer": true,
       "dependencies": {
-        "@polkadot/api": "14.2.1",
-        "@polkadot/api-augment": "14.2.1",
-        "@polkadot/api-base": "14.2.1",
-        "@polkadot/rpc-core": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "@polkadot/util-crypto": "^13.2.2",
+        "@polkadot/api": "14.0.1",
+        "@polkadot/api-augment": "14.0.1",
+        "@polkadot/api-base": "14.0.1",
+        "@polkadot/rpc-core": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "@polkadot/util-crypto": "^13.1.1",
         "rxjs": "^7.8.1",
-        "tslib": "^2.8.0"
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
@@ -1456,56 +1456,56 @@
       }
     },
     "node_modules/@polkadot/rpc-augment": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.2.1.tgz",
-      "integrity": "sha512-ouRRq7suXiPBECImMf+pM7U/k4541uJxuYreFhnplE+egaikKieY720hKiRxesLALr6fjgBr3DRsUsk8yP3YtA==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.0.1.tgz",
+      "integrity": "sha512-M0CbN/IScqiedYI2TmoQ+SoeEdJHfxGeQD1qJf9uYv9LILK+x1/5fyr5DrZ3uCGVmLuObWAJLnHTs0BzJcSHTQ==",
       "peer": true,
       "dependencies": {
-        "@polkadot/rpc-core": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/rpc-core": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/rpc-core": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.2.1.tgz",
-      "integrity": "sha512-jGOoRKdY6XbMY4Z7N9lKI3YmLfZWjT+DcXo+kRfSr3YgORDUXNwHy9v5doJCkPoY3OIIDmhlK5OaIEXeEjvrcQ==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.0.1.tgz",
+      "integrity": "sha512-SfgC6WU7RxaFFgm/GUpsqTywyaDeb7+r5GU3GlwC+QR148h3a7UcQ3sssOpB0MiZ2gIXngJuyIcIQm/3GfHnJw==",
       "peer": true,
       "dependencies": {
-        "@polkadot/rpc-augment": "14.2.1",
-        "@polkadot/rpc-provider": "14.2.1",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/util": "^13.2.2",
+        "@polkadot/rpc-augment": "14.0.1",
+        "@polkadot/rpc-provider": "14.0.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/util": "^13.1.1",
         "rxjs": "^7.8.1",
-        "tslib": "^2.8.0"
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/rpc-provider": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.2.1.tgz",
-      "integrity": "sha512-5ty21djvymqgxIpqKya9ekLHbiIRISIq9pl/GyVUSj2y3ditmXHF1UElmKfMCvi0b6nmOJlkxJIb7ZDyfjkBag==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.0.1.tgz",
+      "integrity": "sha512-mNfaKZUHPXGSY7TwgOfV05RN3Men21Dw7YXrSZDFkJYsZ55yOAYdmLg9anPZGHW100YnNWrXj+3uhQOw8JgqkA==",
       "peer": true,
       "dependencies": {
-        "@polkadot/keyring": "^13.2.2",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-support": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "@polkadot/util-crypto": "^13.2.2",
-        "@polkadot/x-fetch": "^13.2.2",
-        "@polkadot/x-global": "^13.2.2",
-        "@polkadot/x-ws": "^13.2.2",
+        "@polkadot/keyring": "^13.1.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-support": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "@polkadot/util-crypto": "^13.1.1",
+        "@polkadot/x-fetch": "^13.1.1",
+        "@polkadot/x-global": "^13.1.1",
+        "@polkadot/x-ws": "^13.1.1",
         "eventemitter3": "^5.0.1",
         "mock-socket": "^9.3.1",
-        "nock": "^13.5.5",
-        "tslib": "^2.8.0"
+        "nock": "^13.5.4",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
@@ -1515,92 +1515,92 @@
       }
     },
     "node_modules/@polkadot/types": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.2.1.tgz",
-      "integrity": "sha512-C4mf3257vefKDCF5dPtw3WPztE/cTgHjI/fmimwxjGakX3u1mni19wqvBXKg69tuzJ31YMagqMkD2YFZ/zGSPg==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.0.1.tgz",
+      "integrity": "sha512-DOMzHsyVbCa12FT2Fng8iGiQJhHW2ONpv5oieU+Z2o0gFQqwNmIDXWncScG5mAUBNcDMXLuvWIKLKtUDOq8msg==",
       "peer": true,
       "dependencies": {
-        "@polkadot/keyring": "^13.2.2",
-        "@polkadot/types-augment": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/types-create": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "@polkadot/util-crypto": "^13.2.2",
+        "@polkadot/keyring": "^13.1.1",
+        "@polkadot/types-augment": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/types-create": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "@polkadot/util-crypto": "^13.1.1",
         "rxjs": "^7.8.1",
-        "tslib": "^2.8.0"
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/types-augment": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.2.1.tgz",
-      "integrity": "sha512-dAsiRRPr7ClX/zz7YqpIr4dB5fOR8UzXnxz8d4Tyrcxpf9CAivIIJ8Mxl5M/71CTF/LSlCbSvsmvBG0mAX7HLg==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.0.1.tgz",
+      "integrity": "sha512-PGo81444J5tGJxP3tu060Jx1kkeuo8SmBIt9S/w626Se49x4RLM5a7Pa5fguYVsg4TsJa9cgVPMuu6Y0F/2aCQ==",
       "peer": true,
       "dependencies": {
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/types-codec": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.2.1.tgz",
-      "integrity": "sha512-NKI9hiW2tE3AcEKL1eGd6fyNa2QbOvlH+mEq1vTyT3/fm65mrtIqOuZASWa3kXMQmOHCs2/mMGh7p1Kj8glalQ==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.0.1.tgz",
+      "integrity": "sha512-IyUlkrRZ6uppbHVlMJL+btKP7dfgW65K06ggQxH7Y/IyRAQVDNjXecAZrCUMB/gtjUXNPyTHEIfPGDlg8E6rig==",
       "peer": true,
       "dependencies": {
-        "@polkadot/util": "^13.2.2",
-        "@polkadot/x-bigint": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/util": "^13.1.1",
+        "@polkadot/x-bigint": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/types-create": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.2.1.tgz",
-      "integrity": "sha512-AhcyVR6eoc+br76QbqQ3LVwFuOrdZH/A9hlpMPI8MvIW46wZ5bPcDoqKLZugeH6wOKKVzbqw8z9tZ1KWgUSdVg==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.0.1.tgz",
+      "integrity": "sha512-R9/ac3CHKrFhvPKVUdpjnCDFSaGjfrNwtuY+AzvExAMIq7pM9dxo2N8UfnLbyFaG/n1hfYPXDIS3hLHvOZsLbw==",
       "peer": true,
       "dependencies": {
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/types-known": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.2.1.tgz",
-      "integrity": "sha512-Lp8km3+0NKBR3x9covI84Mz3dXFAmIkohzJhcGjpjwcOKH0W4GSQBTDcsYfTH+UAY1mF7hvgXCtvGwbyLm2kOQ==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.0.1.tgz",
+      "integrity": "sha512-oGypUOQNxZ6bq10czpVadZYeDM2NBB2kX3VFHLKLEpjaRbnVYtKXL6pl8B0uHR8GK/2Z8AmPOj6kuRjaC86qXg==",
       "peer": true,
       "dependencies": {
-        "@polkadot/networks": "^13.2.2",
-        "@polkadot/types": "14.2.1",
-        "@polkadot/types-codec": "14.2.1",
-        "@polkadot/types-create": "14.2.1",
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/networks": "^13.1.1",
+        "@polkadot/types": "14.0.1",
+        "@polkadot/types-codec": "14.0.1",
+        "@polkadot/types-create": "14.0.1",
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
       }
     },
     "node_modules/@polkadot/types-support": {
-      "version": "14.2.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.2.1.tgz",
-      "integrity": "sha512-pAaAGDEBUnDiC15AjVc1aULk+vfCma2OlVzU6usOLee1OKkwDuk74Bnyo9jshKVYuTjujLrmp3zmzmuU1NjbeQ==",
+      "version": "14.0.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.0.1.tgz",
+      "integrity": "sha512-lcZEyOf5e3WLLtrFlLTvFfUpO0Vx/Gh5lhLLjdx1W9Xs0KJUlOxSAKxvjVieJJj6HifL0Jh6tDYOUeEc4TOrvA==",
       "peer": true,
       "dependencies": {
-        "@polkadot/util": "^13.2.2",
-        "tslib": "^2.8.0"
+        "@polkadot/util": "^13.1.1",
+        "tslib": "^2.7.0"
       },
       "engines": {
         "node": ">=18"
diff --git a/package.json b/package.json
index 3efa424..23ea6b8 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
     "request-promise": "^4.2.6"
   },
   "peerDependencies": {
-    "@polkadot/api": "^14.2.1"
+    "@polkadot/api": "^14.0.1"
   },
   "devDependencies": {
     "@rollup/plugin-typescript": "^11.1.6",