git.delta.rocks / unique-network / refs/commits / ab1a681cee4d

difftreelog

Merge pull request #2 from usetech-llc/feature/NFTPAR-91

usetech-llc2020-10-02parents: #edcd436 #b97c488.patch.diff
in: master
Feature/nftpar 91

7 files changed

modifiedREADME.mddiffbeforeafterboth
--- a/README.md
+++ b/README.md
@@ -198,6 +198,10 @@
     "Sponsor": "AccountId",
     "UnconfirmedSponsor": "AccountId"
   },
+  "ApprovePermissions": {
+    "Approved": "AccountId",
+    "Amount": "u64"
+  },
   "RawData": "Vec<u8>",
   "Address": "AccountId",
   "LookupSource": "AccountId",
modifiedtests/package-lock.jsondiffbeforeafterboth
--- a/tests/package-lock.json
+++ b/tests/package-lock.json
@@ -3916,148 +3916,40 @@
       }
     },
     "@polkadot/api": {
-      "version": "1.31.2",
-      "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-1.31.2.tgz",
-      "integrity": "sha512-5nMraRQYFt+xeInQi5i7c00fwOiSeZgU3Y1LJWz+z+Vnxep7xzjVBMLgBi4fe7g2eWKUYB79ApFNV8r2thsQZg==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-1.34.1.tgz",
+      "integrity": "sha512-3gCibNRchH+XbEdULS1bwiV1RgarZW1PDw1Y1mAQBVqPrUpkYqntp1D52SQOpAbRzldkwk296Sj+mx9/IeDRXA==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/api-derive": "1.31.2",
+        "@polkadot/api-derive": "1.34.1",
         "@polkadot/keyring": "^3.4.1",
-        "@polkadot/metadata": "1.31.2",
-        "@polkadot/rpc-core": "1.31.2",
-        "@polkadot/rpc-provider": "1.31.2",
-        "@polkadot/types": "1.31.2",
-        "@polkadot/types-known": "1.31.2",
+        "@polkadot/metadata": "1.34.1",
+        "@polkadot/rpc-core": "1.34.1",
+        "@polkadot/rpc-provider": "1.34.1",
+        "@polkadot/types": "1.34.1",
+        "@polkadot/types-known": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "@polkadot/util-crypto": "^3.4.1",
         "bn.js": "^5.1.3",
-        "eventemitter3": "^4.0.6",
-        "rxjs": "^6.6.2"
-      },
-      "dependencies": {
-        "@polkadot/metadata": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.31.2.tgz",
-          "integrity": "sha512-UAcZLxh6QFwhF2Ccmax6LUYa99NntBZrAe8oUN92UJlHbtAutd5sq322P+liG2EHfyhUZs5T5v8jLD79pMTjdA==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/types-known": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/types": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.31.2.tgz",
-          "integrity": "sha512-eJsWdMzBlkYYrowR7tl9LYvGW3Za05esDQPxPxc1z2kkwzU2IoX2qijhUb6J9ViESY/h0jWFyEbV/1mBn4uupg==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/metadata": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "memoizee": "^0.4.14",
-            "rxjs": "^6.6.2"
-          }
-        },
-        "@polkadot/types-known": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.31.2.tgz",
-          "integrity": "sha512-sA9IEwYNCsN+Z4eZklxOluJA5OBN2eGNvLz0uUQ6TFvqbi9Z8Mba+h+RZU1iFO6+yq2U7ECvdWzET6RN7zv+oQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "eventemitter3": "^4.0.7",
+        "rxjs": "^6.6.3"
       }
     },
     "@polkadot/api-derive": {
-      "version": "1.31.2",
-      "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-1.31.2.tgz",
-      "integrity": "sha512-j33elEBZpY7/ucsBRYdUxeWHID8vlvPKm7k9dWgaH8txYuzms0SFfkMHyECgo15SL+RTNhu/VxzSRWryk6dvTA==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-1.34.1.tgz",
+      "integrity": "sha512-LMlCkNJRp29MwKa36crYuY6cZpnkHCFrPCv9dmJEuDbMqrK+EAhXM9/6sTDYJ4uKNhyetJKe9rXslkXdI6pidA==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/api": "1.31.2",
-        "@polkadot/rpc-core": "1.31.2",
-        "@polkadot/rpc-provider": "1.31.2",
-        "@polkadot/types": "1.31.2",
+        "@polkadot/api": "1.34.1",
+        "@polkadot/rpc-core": "1.34.1",
+        "@polkadot/rpc-provider": "1.34.1",
+        "@polkadot/types": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "@polkadot/util-crypto": "^3.4.1",
         "bn.js": "^5.1.3",
         "memoizee": "^0.4.14",
-        "rxjs": "^6.6.2"
-      },
-      "dependencies": {
-        "@polkadot/metadata": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.31.2.tgz",
-          "integrity": "sha512-UAcZLxh6QFwhF2Ccmax6LUYa99NntBZrAe8oUN92UJlHbtAutd5sq322P+liG2EHfyhUZs5T5v8jLD79pMTjdA==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/types-known": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/types": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.31.2.tgz",
-          "integrity": "sha512-eJsWdMzBlkYYrowR7tl9LYvGW3Za05esDQPxPxc1z2kkwzU2IoX2qijhUb6J9ViESY/h0jWFyEbV/1mBn4uupg==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/metadata": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "memoizee": "^0.4.14",
-            "rxjs": "^6.6.2"
-          }
-        },
-        "@polkadot/types-known": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.31.2.tgz",
-          "integrity": "sha512-sA9IEwYNCsN+Z4eZklxOluJA5OBN2eGNvLz0uUQ6TFvqbi9Z8Mba+h+RZU1iFO6+yq2U7ECvdWzET6RN7zv+oQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "rxjs": "^6.6.3"
       }
     },
     "@polkadot/dev": {
@@ -4142,194 +4034,56 @@
       }
     },
     "@polkadot/keyring": {
-      "version": "3.4.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-3.4.1.tgz",
-      "integrity": "sha512-x8FxzDzyFX5ai+tnPaxAFUBV/2Mw/om8sRoMh+fT6Jzh3nC7pXfecH5ticJPKe73v/y42hn9xM0tiAI5P8Ohcw==",
+      "version": "3.5.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-3.5.1.tgz",
+      "integrity": "sha512-Wg8PBACl+RobbmcShl659/5a+foU1j7PGdvdr2pZowkZul8jvwyAN+piIyPSfrsaJkbUoDUR9Pe+oVoeF4ZoXg==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/util": "3.4.1",
-        "@polkadot/util-crypto": "3.4.1"
-      },
-      "dependencies": {
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "@polkadot/util": "3.5.1",
+        "@polkadot/util-crypto": "3.5.1"
       }
     },
     "@polkadot/metadata": {
-      "version": "1.32.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.32.1.tgz",
-      "integrity": "sha512-0naYURBGYOMKF+z7RxOtIfhwziqIZ3GgXzYDRDra6goq72c4uykwpMUjkrJ07N9KaKBZsHmkn2k3v7pP5aqlzg==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.34.1.tgz",
+      "integrity": "sha512-uoaOhNHjECDaLBYvGRaLvF0mhZBFmsV3oikYDP4sZx3a5oD0xYsyXtr5bFPQDImwPFASP8/ltrMVqcYTX42xFg==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/types": "1.32.1",
-        "@polkadot/types-known": "1.32.1",
+        "@polkadot/types": "1.34.1",
+        "@polkadot/types-known": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "@polkadot/util-crypto": "^3.4.1",
         "bn.js": "^5.1.3"
-      },
-      "dependencies": {
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
       }
     },
     "@polkadot/rpc-core": {
-      "version": "1.31.2",
-      "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-1.31.2.tgz",
-      "integrity": "sha512-amFN0UtxB94TnXVuL9oBSQDFheCrxUN6C/lmVlOBqnWj6ZA1RDAuPPJBNIjhSxNlGmJxS2yIexaCVKgF8kS8Cg==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-1.34.1.tgz",
+      "integrity": "sha512-BVQDyBEkbRe5b/u8p9UPpTCj0sDZ32sTmPEP43Klc4s9+oHtiNvOFYvkjK5oyW9dlcOwXi8HpLsQxGAeMtM7Tw==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/metadata": "1.31.2",
-        "@polkadot/rpc-provider": "1.31.2",
-        "@polkadot/types": "1.31.2",
+        "@polkadot/metadata": "1.34.1",
+        "@polkadot/rpc-provider": "1.34.1",
+        "@polkadot/types": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "memoizee": "^0.4.14",
-        "rxjs": "^6.6.2"
-      },
-      "dependencies": {
-        "@polkadot/metadata": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.31.2.tgz",
-          "integrity": "sha512-UAcZLxh6QFwhF2Ccmax6LUYa99NntBZrAe8oUN92UJlHbtAutd5sq322P+liG2EHfyhUZs5T5v8jLD79pMTjdA==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/types-known": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/types": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.31.2.tgz",
-          "integrity": "sha512-eJsWdMzBlkYYrowR7tl9LYvGW3Za05esDQPxPxc1z2kkwzU2IoX2qijhUb6J9ViESY/h0jWFyEbV/1mBn4uupg==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/metadata": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "memoizee": "^0.4.14",
-            "rxjs": "^6.6.2"
-          }
-        },
-        "@polkadot/types-known": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.31.2.tgz",
-          "integrity": "sha512-sA9IEwYNCsN+Z4eZklxOluJA5OBN2eGNvLz0uUQ6TFvqbi9Z8Mba+h+RZU1iFO6+yq2U7ECvdWzET6RN7zv+oQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "rxjs": "^6.6.3"
       }
     },
     "@polkadot/rpc-provider": {
-      "version": "1.31.2",
-      "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-1.31.2.tgz",
-      "integrity": "sha512-vqS1lsk/BBGSuklGKJhJxduKXOyXjc/kZzPWmmH8B92Zh59LqlzoJ8a4gQIjDr0CFjeJZbaaL1yRhE6qwaEe2A==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-1.34.1.tgz",
+      "integrity": "sha512-bebeis9mB4LS9Spk1WSHoadZHsyHmK4gyyC6uKSLZxHZmnopWna6zWnOBIrYHRz7qDHSZC5eNTseuU8NJXtscA==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/metadata": "1.31.2",
-        "@polkadot/types": "1.31.2",
+        "@polkadot/metadata": "1.34.1",
+        "@polkadot/types": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "@polkadot/util-crypto": "^3.4.1",
+        "@polkadot/x-fetch": "^0.3.2",
+        "@polkadot/x-ws": "^0.3.2",
         "bn.js": "^5.1.3",
-        "eventemitter3": "^4.0.6",
-        "isomorphic-fetch": "^2.2.1",
-        "websocket": "^1.0.31"
-      },
-      "dependencies": {
-        "@polkadot/metadata": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-1.31.2.tgz",
-          "integrity": "sha512-UAcZLxh6QFwhF2Ccmax6LUYa99NntBZrAe8oUN92UJlHbtAutd5sq322P+liG2EHfyhUZs5T5v8jLD79pMTjdA==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/types-known": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/types": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.31.2.tgz",
-          "integrity": "sha512-eJsWdMzBlkYYrowR7tl9LYvGW3Za05esDQPxPxc1z2kkwzU2IoX2qijhUb6J9ViESY/h0jWFyEbV/1mBn4uupg==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/metadata": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "@polkadot/util-crypto": "^3.4.1",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "memoizee": "^0.4.14",
-            "rxjs": "^6.6.2"
-          }
-        },
-        "@polkadot/types-known": {
-          "version": "1.31.2",
-          "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.31.2.tgz",
-          "integrity": "sha512-sA9IEwYNCsN+Z4eZklxOluJA5OBN2eGNvLz0uUQ6TFvqbi9Z8Mba+h+RZU1iFO6+yq2U7ECvdWzET6RN7zv+oQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@polkadot/types": "1.31.2",
-            "@polkadot/util": "^3.4.1",
-            "bn.js": "^5.1.3"
-          }
-        },
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "eventemitter3": "^4.0.7"
       }
     },
     "@polkadot/ts": {
@@ -4342,81 +4096,53 @@
       }
     },
     "@polkadot/types": {
-      "version": "1.32.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.32.1.tgz",
-      "integrity": "sha512-n+77dHE5J3RqmnbOwMdAeQg5yv68/2qZ7JeBw/KjYtSnJoA2pbW7yL01zSkIUCJcaTb/yuSQz9SK7Cz9QQ6MOw==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-1.34.1.tgz",
+      "integrity": "sha512-jPwix2y+ZXKYB4ghODXlqYmcI3Tnsl3iO3xIkiGsZhhs9PdrKibcNeAv4LUiRpPuGRnAM+mrlPrBbCuzguKSGg==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/metadata": "1.32.1",
+        "@polkadot/metadata": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "@polkadot/util-crypto": "^3.4.1",
         "@types/bn.js": "^4.11.6",
         "bn.js": "^5.1.3",
         "memoizee": "^0.4.14",
-        "rxjs": "^6.6.2"
-      },
-      "dependencies": {
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
+        "rxjs": "^6.6.3"
       }
     },
     "@polkadot/types-known": {
-      "version": "1.32.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.32.1.tgz",
-      "integrity": "sha512-Vv8m5w+v2nKjYIWEvjohW2xZd+v98bgKwzyl+Y7ssbnxMAYZQYkuzR8IDfUXyzcL+p9VF+YFExVnzCakMm756Q==",
+      "version": "1.34.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-1.34.1.tgz",
+      "integrity": "sha512-H9V8u9cqbKjxU/dxEyLl7kJwoBImXpRskQ5+X0fq3BH7g1nQ6jrIg/buRPpbc3GxKivdFYUZWshPY9hbqE8y8A==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/types": "1.32.1",
+        "@polkadot/types": "1.34.1",
         "@polkadot/util": "^3.4.1",
         "bn.js": "^5.1.3"
-      },
-      "dependencies": {
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
       }
     },
     "@polkadot/util": {
-      "version": "2.18.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-2.18.1.tgz",
-      "integrity": "sha512-0KAojJMR5KDaaobIyvHVuW9vBP5LG3S0vpRSovB4UPlGDok3ETJSm5lMhA0t2KM8C4gXGBakCotFVGSOvWGgjA==",
+      "version": "3.5.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",
+      "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",
       "requires": {
-        "@babel/runtime": "^7.10.4",
+        "@babel/runtime": "^7.11.2",
+        "@polkadot/x-textdecoder": "^0.3.2",
+        "@polkadot/x-textencoder": "^0.3.2",
         "@types/bn.js": "^4.11.6",
-        "bn.js": "^5.1.2",
+        "bn.js": "^5.1.3",
         "camelcase": "^5.3.1",
         "chalk": "^4.1.0",
         "ip-regex": "^4.1.0"
       }
     },
     "@polkadot/util-crypto": {
-      "version": "3.4.1",
-      "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-3.4.1.tgz",
-      "integrity": "sha512-RdTAiJ6dFE8nQJ7/wQkvYa6aNZG3Lusf/r7UmPJ56dZldvDTP3OdekzcfYdogU8hSJrE/xX84ii4DrHLnXXfAQ==",
+      "version": "3.5.1",
+      "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-3.5.1.tgz",
+      "integrity": "sha512-7SWxOYG+dUCAkGW2xCJc9gutLJ02T9LwiumTW8cXFysRai4qLA3XRl+XQHAEdRzKA+97IQmtGMl4/Tjq9TGwYw==",
       "requires": {
         "@babel/runtime": "^7.11.2",
-        "@polkadot/util": "3.4.1",
+        "@polkadot/util": "3.5.1",
         "@polkadot/wasm-crypto": "^1.4.1",
         "base-x": "^3.0.8",
         "bip39": "^3.0.2",
@@ -4428,21 +4154,6 @@
         "scryptsy": "^2.1.0",
         "tweetnacl": "^1.0.3",
         "xxhashjs": "^0.2.2"
-      },
-      "dependencies": {
-        "@polkadot/util": {
-          "version": "3.4.1",
-          "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.4.1.tgz",
-          "integrity": "sha512-CJo0wAzXR8vjAzs9mHDooZr5a3XRW8LlYWik8d/+bv1VDwCC/metSiBrYBOapFhYUjlS5IYIw5bhWS5dnpkXvQ==",
-          "requires": {
-            "@babel/runtime": "^7.11.2",
-            "@types/bn.js": "^4.11.6",
-            "bn.js": "^5.1.3",
-            "camelcase": "^5.3.1",
-            "chalk": "^4.1.0",
-            "ip-regex": "^4.1.0"
-          }
-        }
       }
     },
     "@polkadot/wasm-crypto": {
@@ -4450,6 +4161,42 @@
       "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-1.4.1.tgz",
       "integrity": "sha512-GPBCh8YvQmA5bobI4rqRkUhrEHkEWU1+lcJVPbZYsa7jiHFaZpzCLrGQfiqW/vtbU1aBS2wmJ0x1nlt33B9QqQ=="
     },
+    "@polkadot/x-fetch": {
+      "version": "0.3.2",
+      "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-0.3.2.tgz",
+      "integrity": "sha512-lk9M8ql/kBBqiZ8KOWj7LFK7P9OxDgVn2fZPNELJzQbfFZwFF8umBPDIWlQIK7wTnlRsQlzOuf6MGEyMK5p42w==",
+      "requires": {
+        "@babel/runtime": "^7.11.2",
+        "@types/node-fetch": "^2.5.7",
+        "node-fetch": "^2.6.1"
+      }
+    },
+    "@polkadot/x-textdecoder": {
+      "version": "0.3.2",
+      "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-0.3.2.tgz",
+      "integrity": "sha512-W3KK6mMzOH5kts8pSkyYyfsQuAsKUHmIm8jQkhQnSR6FRyhwJtHLZnxP3feEwkNkRbGggG6CtDPrxYCuEO0MvA==",
+      "requires": {
+        "@babel/runtime": "^7.11.2"
+      }
+    },
+    "@polkadot/x-textencoder": {
+      "version": "0.3.2",
+      "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-0.3.2.tgz",
+      "integrity": "sha512-nm7N9gWgKsZv8In1Fgfm+jYOPjprna/03Cd8hOqkCMRlSq0L4LS+d8BPrFhPOiT57VFTTW/7csLivFdeKv0GMA==",
+      "requires": {
+        "@babel/runtime": "^7.11.2"
+      }
+    },
+    "@polkadot/x-ws": {
+      "version": "0.3.2",
+      "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-0.3.2.tgz",
+      "integrity": "sha512-1aiG11Py8sgzJsz19melMzvBOn5zeMmfjCPoMryX4//063E0mcfnkujg4O6pTMygxJdFGAV1INB9wvMU9Dg9Wg==",
+      "requires": {
+        "@babel/runtime": "^7.11.2",
+        "@types/websocket": "^1.0.1",
+        "websocket": "^1.0.32"
+      }
+    },
     "@sindresorhus/is": {
       "version": "0.14.0",
       "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
@@ -4667,6 +4414,27 @@
       "resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.4.tgz",
       "integrity": "sha512-Wk7nG1JSaMfMpoMJDKUsWYugliB2Vy55pdjLpmLixeyMi7HizW2I/9QoxsPCkXl3dO+ZOVqPumKaDUv5zJu2uQ=="
     },
+    "@types/node-fetch": {
+      "version": "2.5.7",
+      "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.7.tgz",
+      "integrity": "sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==",
+      "requires": {
+        "@types/node": "*",
+        "form-data": "^3.0.0"
+      },
+      "dependencies": {
+        "form-data": {
+          "version": "3.0.0",
+          "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz",
+          "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==",
+          "requires": {
+            "asynckit": "^0.4.0",
+            "combined-stream": "^1.0.8",
+            "mime-types": "^2.1.12"
+          }
+        }
+      }
+    },
     "@types/normalize-package-data": {
       "version": "2.4.0",
       "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
@@ -4691,6 +4459,14 @@
       "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==",
       "dev": true
     },
+    "@types/websocket": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.1.tgz",
+      "integrity": "sha512-f5WLMpezwVxCLm1xQe/kdPpQIOmL0TXYx2O15VYfYzc7hTIdxiOoOvez+McSIw3b7z/1zGovew9YSL7+h4h7/Q==",
+      "requires": {
+        "@types/node": "*"
+      }
+    },
     "@types/yargs": {
       "version": "15.0.5",
       "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz",
@@ -5951,8 +5727,7 @@
     "asynckit": {
       "version": "0.4.0",
       "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
-      "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
-      "dev": true
+      "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
     },
     "at-least-node": {
       "version": "1.0.0",
@@ -7364,7 +7139,6 @@
       "version": "1.0.8",
       "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
       "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
-      "dev": true,
       "requires": {
         "delayed-stream": "~1.0.0"
       }
@@ -9081,8 +8855,7 @@
     "delayed-stream": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
-      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
-      "dev": true
+      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
     },
     "delegate": {
       "version": "3.2.0",
@@ -9700,6 +9473,7 @@
       "version": "0.1.13",
       "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
       "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
+      "dev": true,
       "requires": {
         "iconv-lite": "^0.6.2"
       }
@@ -12954,6 +12728,7 @@
       "version": "0.6.2",
       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz",
       "integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==",
+      "dev": true,
       "requires": {
         "safer-buffer": ">= 2.1.2 < 3.0.0"
       }
@@ -13338,9 +13113,9 @@
       "dev": true
     },
     "ip-regex": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.1.0.tgz",
-      "integrity": "sha512-pKnZpbgCTfH/1NLIlOduP/V+WRXzC2MOz3Qo8xmxk8C5GudJLgK5QyLVXOSWy3ParAH7Eemurl3xjv/WXYFvMA=="
+      "version": "4.2.0",
+      "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",
+      "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="
     },
     "ipaddr.js": {
       "version": "1.9.1",
@@ -13717,7 +13492,8 @@
     "is-stream": {
       "version": "1.1.0",
       "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
-      "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
+      "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
+      "dev": true
     },
     "is-string": {
       "version": "1.0.5",
@@ -13809,15 +13585,6 @@
       "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
       "dev": true
     },
-    "isomorphic-fetch": {
-      "version": "2.2.1",
-      "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
-      "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=",
-      "requires": {
-        "node-fetch": "^1.0.1",
-        "whatwg-fetch": ">=0.10.0"
-      }
-    },
     "isstream": {
       "version": "0.1.2",
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
@@ -15870,14 +15637,12 @@
     "mime-db": {
       "version": "1.44.0",
       "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
-      "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
-      "dev": true
+      "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg=="
     },
     "mime-types": {
       "version": "2.1.27",
       "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
       "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
-      "dev": true,
       "requires": {
         "mime-db": "1.44.0"
       }
@@ -16661,13 +16426,9 @@
       }
     },
     "node-fetch": {
-      "version": "1.7.3",
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
-      "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
-      "requires": {
-        "encoding": "^0.1.11",
-        "is-stream": "^1.0.1"
-      }
+      "version": "2.6.1",
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
+      "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
     },
     "node-fetch-npm": {
       "version": "2.0.4",
@@ -19728,7 +19489,8 @@
     "safer-buffer": {
       "version": "2.1.2",
       "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
-      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
+      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+      "dev": true
     },
     "sane": {
       "version": "4.1.0",
@@ -23597,11 +23359,6 @@
           }
         }
       }
-    },
-    "whatwg-fetch": {
-      "version": "3.4.1",
-      "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.4.1.tgz",
-      "integrity": "sha512-sofZVzE1wKwO+EYPbWfiwzaKovWiZXf4coEzjGP9b2GBVgQRLQUZ2QcuPpQExGDAW5GItpEm6Tl4OU5mywnAoQ=="
     },
     "whatwg-mimetype": {
       "version": "2.3.0",
modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -23,9 +23,9 @@
   "license": "Apache 2.0",
   "homepage": "",
   "dependencies": {
-    "@polkadot/api": "^1.31.2",
-    "@polkadot/types": "^1.31.2",
-    "@polkadot/util": "^2.18.1",
+    "@polkadot/api": "^1.34.1",
+    "@polkadot/types": "^1.34.1",
+    "@polkadot/util": "^3.4.1",
     "@types/bn.js": "^4.11.6",
     "chai-as-promised": "^7.1.1"
   },
modifiedtests/src/config.tsdiffbeforeafterboth
22
3const config = {3const config = {
4 substrateUrl: process.env.substrateUrl || 'ws://127.0.0.1:9944',4 substrateUrl: process.env.substrateUrl || 'ws://127.0.0.1:9944',
5 customTypes: process.env.customTypes || `{5 customTypes: process.env.customTypes || `{
6 "Schedule": {6 "Schedule": {
7 "version": "u32",7 "version": "u32",
8 "put_code_per_byte_cost": "Gas",8 "put_code_per_byte_cost": "Gas",
9 "grow_mem_cost": "Gas",9 "grow_mem_cost": "Gas",
10 "regular_op_cost": "Gas",10 "regular_op_cost": "Gas",
11 "return_data_per_byte_cost": "Gas",11 "return_data_per_byte_cost": "Gas",
12 "event_data_per_byte_cost": "Gas",12 "event_data_per_byte_cost": "Gas",
13 "event_per_topic_cost": "Gas",13 "event_per_topic_cost": "Gas",
14 "event_base_cost": "Gas",14 "event_base_cost": "Gas",
15 "call_base_cost": "Gas",15 "call_base_cost": "Gas",
16 "instantiate_base_cost": "Gas",16 "instantiate_base_cost": "Gas",
17 "dispatch_base_cost": "Gas",17 "dispatch_base_cost": "Gas",
18 "sandbox_data_read_cost": "Gas",18 "sandbox_data_read_cost": "Gas",
19 "sandbox_data_write_cost": "Gas",19 "sandbox_data_write_cost": "Gas",
20 "transfer_cost": "Gas",20 "transfer_cost": "Gas",
21 "instantiate_cost": "Gas",21 "instantiate_cost": "Gas",
22 "max_event_topics": "u32",22 "max_event_topics": "u32",
23 "max_stack_height": "u32",23 "max_stack_height": "u32",
24 "max_memory_pages": "u32",24 "max_memory_pages": "u32",
25 "max_table_size": "u32",25 "max_table_size": "u32",
26 "enable_println": "bool",26 "enable_println": "bool",
27 "max_subject_len": "u32"27 "max_subject_len": "u32"
28 },28 },
29 "CollectionMode": {29 "CollectionMode": {
30 "_enum": {30 "_enum": {
31 "Invalid": null,31 "Invalid": null,
32 "NFT": "u32",32 "NFT": "u32",
33 "Fungible": "u32",33 "Fungible": "u32",
34 "ReFungible": "(u32, u32)"34 "ReFungible": "(u32, u32)"
35 }35 }
36 },36 },
37 "NftItemType": {37 "Ownership": {
38 "Owner": "AccountId",
39 "Fraction": "u128"
40 },
41 "FungibleItemType": {
42 "Collection": "u64",
43 "Owner": "AccountId",
44 "Value": "u128"
45 },
46 "ReFungibleItemType": {
47 "Collection": "u64",
48 "Owner": "Vec<Ownership>",
49 "Data": "Vec<u8>"
50 },
51 "NftItemType": {
38 "Collection": "u64",52 "Collection": "u64",
39 "Owner": "AccountId",53 "Owner": "AccountId",
40 "Data": "Vec<u8>"54 "Data": "Vec<u8>"
41 },55 },
42 "Ownership": {56 "Ownership": {
43 "owner": "AccountId",57 "owner": "AccountId",
44 "fraction": "u128"58 "fraction": "u128"
45 },59 },
46 "ReFungibleItemType": {60 "ReFungibleItemType": {
47 "Collection": "u64",61 "Collection": "u64",
48 "Owner": "Vec<Ownership<AccountId>>",62 "Owner": "Vec<Ownership<AccountId>>",
49 "Data": "Vec<u8>"63 "Data": "Vec<u8>"
50 },64 },
51 "CollectionType": {65 "CollectionType": {
52 "Owner": "AccountId",66 "Owner": "AccountId",
53 "Mode": "CollectionMode",67 "Mode": "CollectionMode",
54 "Access": "u8",68 "Access": "u8",
55 "DecimalPoints": "u32",69 "DecimalPoints": "u32",
56 "Name": "Vec<u16>",70 "Name": "Vec<u16>",
57 "Description": "Vec<u16>",71 "Description": "Vec<u16>",
58 "TokenPrefix": "Vec<u8>",72 "TokenPrefix": "Vec<u8>",
59 "CustomDataSize": "u32",73 "CustomDataSize": "u32",
60 "OffchainSchema": "Vec<u8>",74 "MintMode": "bool",
75 "OffchainSchema": "Vec<u8>",
61 "Sponsor": "AccountId",76 "Sponsor": "AccountId",
62 "UnconfirmedSponsor": "AccountId"77 "UnconfirmedSponsor": "AccountId"
78 },
79 "ApprovePermissions": {
80 "Approved": "AccountId",
81 "Amount": "u64"
63 },82 },
64 "RawData": "Vec<u8>",83 "RawData": "Vec<u8>",
65 "Address": "AccountId",84 "Address": "AccountId",
66 "LookupSource": "AccountId",85 "LookupSource": "AccountId",
67 "Weight": "u64"86 "Weight": "u64"
68 }`87 }`
69}88}
7089
71export default config;90export default config;
modifiedtests/src/connection.test.tsdiffbeforeafterboth
--- a/tests/src/connection.test.ts
+++ b/tests/src/connection.test.ts
@@ -15,9 +15,9 @@
     });
   });
 
-  it('Cannot connect to 0.0.0.0', () => {
-    const neverConnectProvider = new WsProvider('ws://0.0.0.0:9944');
-    expect((async () => {
+  it('Cannot connect to 255.255.255.255', async () => {
+    const neverConnectProvider = new WsProvider('ws://255.255.255.255:9944');
+    await expect((async () => {
       await usingApi(async api => {
         const health = await api.rpc.system.health();
       }, { provider: neverConnectProvider });
modifiedtests/src/substrate/promisify-substrate.tsdiffbeforeafterboth
--- a/tests/src/substrate/promisify-substrate.ts
+++ b/tests/src/substrate/promisify-substrate.ts
@@ -4,19 +4,21 @@
 
 export default function promisifySubstrate<T extends (...args: any[]) => any>(api: ApiPromise, action: T): (...args: Parameters<T>) => Promise<PromiseType<ReturnType<T>>> {
   return (...args: Parameters<T>) => {
-    const promise = new Promise<PromiseType<ReturnType<T>>>((resolve, reject) => {
+    const promise = new Promise<PromiseType<ReturnType<T>>>((resolve: ((result: PromiseType<ReturnType<T>>) => void) | undefined, reject: ((error: any) => void) | undefined) => {
       const cleanup = () => {
         api.off('disconnected', fail);
         api.off('error', fail);
+        resolve = undefined;
+        reject = undefined;
       };
 
       const success = (r: any) => {
+        resolve && resolve(r);
         cleanup();
-        resolve(r);
       };
       const fail = (error: any) => {
+        reject && reject(error);
         cleanup();
-        reject(error);
       };
       
       api.on('disconnected', fail);
modifiedtests/src/substrate/substrate-api.tsdiffbeforeafterboth
--- a/tests/src/substrate/substrate-api.ts
+++ b/tests/src/substrate/substrate-api.ts
@@ -10,13 +10,16 @@
 
 export default async function usingApi(action: (api: ApiPromise) => Promise<void>, settings: ApiOptions | undefined = undefined): Promise<void> {
   settings = settings || defaultApiOptions();
-  let api: ApiPromise | undefined = undefined;
+  let api: ApiPromise = new ApiPromise(settings);
 
   try {
-    api = new ApiPromise(settings);
-    await promisifySubstrate(api, () => api && api.isReady)();
-    await action(api);
+    await promisifySubstrate(api, async () => {
+      if(api) {
+        await api.isReadyOrError;
+        await action(api);
+      }
+    })();
   } finally {
-    api && api.disconnect();
+    await api.disconnect();
   }
 }
\ No newline at end of file