From 2ccd30f7ca995990ab719c05c9113bff18e64ded Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Thu, 19 Jan 2023 17:39:30 -0500 Subject: [PATCH 01/14] add typing to javascript library Signed-off-by: Charles Ferrell --- manta-js/package/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manta-js/package/tsconfig.json b/manta-js/package/tsconfig.json index c85d8b44..d662a958 100644 --- a/manta-js/package/tsconfig.json +++ b/manta-js/package/tsconfig.json @@ -10,7 +10,8 @@ "moduleResolution": "node", "resolveJsonModule": true, "esModuleInterop": true, - "noEmit": false + "noEmit": false, + "declaration": true, }, "exclude": ["node_modules", "src/wallet", "dist"] } \ No newline at end of file From 45ac8718f9baaa32d05d4eaa710cdf0f184a30a7 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Thu, 19 Jan 2023 22:12:50 -0500 Subject: [PATCH 02/14] support node.js Signed-off-by: Charles Ferrell --- manta-js/package/package.json | 3 ++- .../src/{manta-config.json => manta-config.ts} | 16 +++++++++------- manta-js/package/src/privateWallet.ts | 2 +- manta-js/package/src/utils.ts | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) rename manta-js/package/src/{manta-config.json => manta-config.ts} (95%) diff --git a/manta-js/package/package.json b/manta-js/package/package.json index 94a9955c..c9db3d90 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "description": "manta.js sdk", "main": "./dist/index.js", + "type": "module", "files": [ "dist", "tsconfig.json" @@ -14,7 +15,7 @@ "prebuild": "yarn run clean", "wasm-postbuild": "rm ./dist/wallet/crate/pkg/.gitignore", "wasm-dev": "wasm-pack build ./src/wallet/crate", - "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/wallet/crate/pkg", + "wasm": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/wallet/crate/pkg", "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc && yarn wasm-postbuild" }, "dependencies": { diff --git a/manta-js/package/src/manta-config.json b/manta-js/package/src/manta-config.ts similarity index 95% rename from manta-js/package/src/manta-config.json rename to manta-js/package/src/manta-config.ts index b1ec9709..17b4aa63 100644 --- a/manta-js/package/src/manta-config.json +++ b/manta-js/package/src/manta-config.ts @@ -1,4 +1,4 @@ -{ +const config = { "VERSION": "1.0.0", "MIN_REQUIRED_SIGNER_VERSION": "0.7.0", "SIGNER_URL": "http://localhost:29987/", @@ -21,11 +21,11 @@ }, "Manta": { "name": "Manta", - "ws": null, - "ws_local": null, - "parachainId": null, - "decimals": null, - "subscanUrl": null + "ws": "0", + "ws_local": "0", + "parachainId": 0, + "decimals": 0, + "subscanUrl": "0", } }, "PRIVATE_LEDGER_ACCOUNT_PUBLIC_KEY": "0x6d6f646c6d616e74617061790000000000000000000000000000000000000000", @@ -111,4 +111,6 @@ "proof": "[u8; 128]" } } -} \ No newline at end of file +} + +export {config}; diff --git a/manta-js/package/src/privateWallet.ts b/manta-js/package/src/privateWallet.ts index 435acdda..d53edfa1 100644 --- a/manta-js/package/src/privateWallet.ts +++ b/manta-js/package/src/privateWallet.ts @@ -3,7 +3,7 @@ import { base58Decode, base58Encode } from '@polkadot/util-crypto'; // @ts-ignore import Api, {ApiConfig} from './api/index'; import BN from 'bn.js'; -import config from './manta-config.json'; +import {config} from './manta-config'; import { Transaction, Wallet } from './wallet/crate/pkg/manta_wasm_wallet'; import { Signer, SubmittableExtrinsic } from '@polkadot/api/types'; import { Address, AssetId, InitApiResult, InitWasmResult, IMantaPrivateWallet, SignedTransaction, PrivateWalletConfig } from './sdk.interfaces'; diff --git a/manta-js/package/src/utils.ts b/manta-js/package/src/utils.ts index 14a731d8..4050b009 100644 --- a/manta-js/package/src/utils.ts +++ b/manta-js/package/src/utils.ts @@ -1,7 +1,7 @@ import { Version, Address } from './sdk.interfaces'; import { Signer } from '@polkadot/api/types'; import axios from 'axios'; -import config from './manta-config.json'; +import {config} from './manta-config'; import BN from 'bn.js'; import { ApiPromise } from '@polkadot/api'; import { MantaPrivateWallet } from './privateWallet'; From 7c623c2b86bb0d68aee127459784cd830b22a6ec Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Thu, 19 Jan 2023 22:40:23 -0500 Subject: [PATCH 03/14] two different targets for wasm pack Signed-off-by: Charles Ferrell --- manta-js/package/package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manta-js/package/package.json b/manta-js/package/package.json index c9db3d90..fe888fb1 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -15,8 +15,11 @@ "prebuild": "yarn run clean", "wasm-postbuild": "rm ./dist/wallet/crate/pkg/.gitignore", "wasm-dev": "wasm-pack build ./src/wallet/crate", - "wasm": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/wallet/crate/pkg", - "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc && yarn wasm-postbuild" + "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/wallet/crate/pkg", + "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc && yarn wasm-postbuild", + "wasm-dev-node": "wasm-pack build --target nodejs ./src/wallet/crate", + "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/wallet/crate/pkg", + "build-node": "yarn prebuild && yarn wasm-node && yarn wasm-dev-node && tsc && yarn wasm-postbuild" }, "dependencies": { "@polkadot/api": "6.8.1", From 95ac1d05a543417140e209c2e7ad76fe280b74cd Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 23 Jan 2023 11:47:01 -0500 Subject: [PATCH 04/14] keep as commonjs for browser Signed-off-by: Charles Ferrell --- manta-js/examples/asset-webpack-ts/yarn.lock | 300 ++++++++----------- manta-js/package/package.json | 3 +- 2 files changed, 128 insertions(+), 175 deletions(-) diff --git a/manta-js/examples/asset-webpack-ts/yarn.lock b/manta-js/examples/asset-webpack-ts/yarn.lock index cbdf489f..bb6c41e7 100644 --- a/manta-js/examples/asset-webpack-ts/yarn.lock +++ b/manta-js/examples/asset-webpack-ts/yarn.lock @@ -23,7 +23,14 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/runtime@^7.14.8", "@babel/runtime@^7.15.3", "@babel/runtime@^7.16.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.6", "@babel/runtime@^7.18.9", "@babel/runtime@^7.20.6": +"@babel/runtime@^7.14.8", "@babel/runtime@^7.15.3", "@babel/runtime@^7.16.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.6": + version "7.20.13" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.13.tgz#7055ab8a7cff2b8f6058bf6ae45ff84ad2aded4b" + integrity sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA== + dependencies: + regenerator-runtime "^0.13.11" + +"@babel/runtime@^7.18.9": version "7.20.6" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.6.tgz#facf4879bfed9b5326326273a64220f099b0fce3" integrity sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA== @@ -85,73 +92,73 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" -"@ledgerhq/devices@^7.0.5": - version "7.0.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-7.0.5.tgz#2b3f69b84d4bccb2c4b1d34e534444da862f4880" - integrity sha512-2o2zD2Yv1Hgd3+R2aLCvlyT7NxBz2nltawTCPSXaf3+8MDIyZbiJlXi43hLEISRFBG3u3bYwAQuiOisimN9C6Q== +"@ledgerhq/devices@^7.0.7": + version "7.0.7" + resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-7.0.7.tgz#3499304a1c9d3aa7399de2ad390719bef5d1e89c" + integrity sha512-PZ9TtaTGBYUm/g0qNKPbECZt7DDNvqM3ILS5wAtOMna2cBR+mrywUGXrkjuOWlHpuqZ8wenaAKveQBbzF2ba8w== dependencies: - "@ledgerhq/errors" "^6.12.1" + "@ledgerhq/errors" "^6.12.3" "@ledgerhq/logs" "^6.10.1" rxjs "6" semver "^7.3.5" -"@ledgerhq/errors@^6.12.1": - version "6.12.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.12.1.tgz#99ad10bd528942bdfde0ef3d4d0dce658f6f4405" - integrity sha512-2qeUSUCpQbMhV9eLJDLI8wycFwTcWszP8g3cJycBt9Jf1VczC5MRERwAQv5AYhPa4rcy+jLKBOVZYxc35r5l7g== +"@ledgerhq/errors@^6.12.3": + version "6.12.3" + resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.12.3.tgz#a610caae1eeeb7cb038525e5212fe03217dda683" + integrity sha512-djiMSgB/7hnK3aLR/c5ZMMivxjcI7o2+y3VKcsZZpydPoVf9+FXqeJPRfOwmJ0JxbQ//LinUfWpIfHew8LkaVw== -"@ledgerhq/hw-transport-node-hid-noevents@^6.27.8": - version "6.27.8" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-6.27.8.tgz#40cd1d07da5145e95009984ef2423edbef6cfb7f" - integrity sha512-z5OP8ehnewN2EfoC+7q2jdfLl/j+5R23Rzj4Q0E1E2IYskJw7sJJisUOPtU1qfhsG7iJLdOxNXYjw6eb4ZlotQ== +"@ledgerhq/hw-transport-node-hid-noevents@^6.27.10": + version "6.27.10" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-6.27.10.tgz#0e20b6dfadf643cbeb34454ad5abe76c90771d46" + integrity sha512-IyZO88VJubSnfDePSiOG83Ly1n7xfvvErtf7ESQxFhwCrkObkUczQDarYo8XJLCJBDuRr2UgiOfb/yAZrlf+vA== dependencies: - "@ledgerhq/devices" "^7.0.5" - "@ledgerhq/errors" "^6.12.1" - "@ledgerhq/hw-transport" "^6.27.8" + "@ledgerhq/devices" "^7.0.7" + "@ledgerhq/errors" "^6.12.3" + "@ledgerhq/hw-transport" "^6.27.10" "@ledgerhq/logs" "^6.10.1" - node-hid "2.1.1" + node-hid "^2.1.2" "@ledgerhq/hw-transport-node-hid-singleton@^6.11.2": - version "6.28.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-singleton/-/hw-transport-node-hid-singleton-6.28.5.tgz#bc9ce81164aa468e7cc8035877c95e9005242927" - integrity sha512-FqQlPM47muNGOarq64wGQschKjSSi50EbD+hXUciWlqdz4RhHXiDnYzXFBFB2xDKpM9BVl8BWh9CwXnbsPtJpA== - dependencies: - "@ledgerhq/devices" "^7.0.5" - "@ledgerhq/errors" "^6.12.1" - "@ledgerhq/hw-transport" "^6.27.8" - "@ledgerhq/hw-transport-node-hid-noevents" "^6.27.8" + version "6.28.7" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-singleton/-/hw-transport-node-hid-singleton-6.28.7.tgz#3527e6533f3e024f881030c1fed880b534220b08" + integrity sha512-f9MVuAwkMLolVvuDzXkFNRrvYLqyKMDvcL1gqrMcxmyKziymHb8Thpx3h+dWNjIoR3yB9fT94xCPt1pbMzg6OQ== + dependencies: + "@ledgerhq/devices" "^7.0.7" + "@ledgerhq/errors" "^6.12.3" + "@ledgerhq/hw-transport" "^6.27.10" + "@ledgerhq/hw-transport-node-hid-noevents" "^6.27.10" "@ledgerhq/logs" "^6.10.1" lodash "^4.17.21" - node-hid "2.1.1" + node-hid "^2.1.2" usb "2.5.1" "@ledgerhq/hw-transport-webhid@^6.11.2": - version "6.27.8" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webhid/-/hw-transport-webhid-6.27.8.tgz#9af7b980d93b69ec166a4c8eb92df09d137d1059" - integrity sha512-UmpZEnVsojmJMKS+IdkzSBvs3d3uz2Bj7R+zvDXNHjWX89gcqyGOyATkYP5mm/EWE/7YLjgvF49WzCIqbEcTdQ== + version "6.27.10" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webhid/-/hw-transport-webhid-6.27.10.tgz#d122d73023fea9cedc4c65833f62d2f54e14894f" + integrity sha512-E8+rCNxT7Ao97dWhAu5C0sI5TWEK46DACVtpWY98fesdOFtR/GwaHW9NpMI03w9J+LU6vHGeHwcGxiVGk00xIA== dependencies: - "@ledgerhq/devices" "^7.0.5" - "@ledgerhq/errors" "^6.12.1" - "@ledgerhq/hw-transport" "^6.27.8" + "@ledgerhq/devices" "^7.0.7" + "@ledgerhq/errors" "^6.12.3" + "@ledgerhq/hw-transport" "^6.27.10" "@ledgerhq/logs" "^6.10.1" "@ledgerhq/hw-transport-webusb@^6.11.2": - version "6.27.8" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-6.27.8.tgz#d7933cae3e63ee66c752e535eca7ef6e785583a3" - integrity sha512-WU0Vz0jbACDUd31knHp38b4EQk02Zs4G5UVaw2Q3j45ZQsABvSBNzEEjXELdZDNMirvSBxE/YTAg8MLO1SFIvA== + version "6.27.10" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-6.27.10.tgz#772ac56821e7fc41d1213815296a324df6a4cfea" + integrity sha512-wmKHiF/ar3xw+gQRBIZltYNxTLHW31n2f5cjuGPhQoqfLQBrgntM17YGlRSmyzI8Q2+uSmcWxNyCtssZALUDzQ== dependencies: - "@ledgerhq/devices" "^7.0.5" - "@ledgerhq/errors" "^6.12.1" - "@ledgerhq/hw-transport" "^6.27.8" + "@ledgerhq/devices" "^7.0.7" + "@ledgerhq/errors" "^6.12.3" + "@ledgerhq/hw-transport" "^6.27.10" "@ledgerhq/logs" "^6.10.1" -"@ledgerhq/hw-transport@^6.11.2", "@ledgerhq/hw-transport@^6.2.0", "@ledgerhq/hw-transport@^6.27.8": - version "6.27.8" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.27.8.tgz#57ece7e2b726216df698767de6828478fbe461e1" - integrity sha512-WSUgF1W3tAikSnAfeNAT2e2dgTdEQd5Vi/095C2mR5Fr0/POCSl9X4T9rlBhK5NSVD+nGXI0rN2ISj08zai8HQ== +"@ledgerhq/hw-transport@^6.11.2", "@ledgerhq/hw-transport@^6.2.0", "@ledgerhq/hw-transport@^6.27.10": + version "6.27.10" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.27.10.tgz#5fd702991c49e1db969cccfbf9fa51079ac742a6" + integrity sha512-3cmwQZsiRKe6VcHA1kAtC8+Wt0xjCa9Y0TO/Ns2k4BmEhIlG143I4H1dJntkX6XhDpE1pK9Xn2niBQsTTeGhqA== dependencies: - "@ledgerhq/devices" "^7.0.5" - "@ledgerhq/errors" "^6.12.1" + "@ledgerhq/devices" "^7.0.7" + "@ledgerhq/errors" "^6.12.3" events "^3.3.0" "@ledgerhq/logs@^6.10.1": @@ -184,11 +191,16 @@ resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.6.0.tgz#602afbbfcfb7e169210469b697365ef740d7e930" integrity sha512-DWSsg8zMHOYMYBqIQi96BQuthZrp98LCeMNcUOaffCIVYQ5yxDbNikLF+H7jEnmNNmXbtVic46iCuVWzar+MgA== -"@noble/secp256k1@1.7.0", "@noble/secp256k1@^1.3.0": +"@noble/secp256k1@1.7.0": version "1.7.0" resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.0.tgz#d15357f7c227e751d90aa06b05a0e5cf993ba8c1" integrity sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw== +"@noble/secp256k1@^1.3.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -1229,7 +1241,12 @@ pako "^2.0.4" ws "^8.8.1" -"@substrate/ss58-registry@^1.23.0", "@substrate/ss58-registry@^1.35.0": +"@substrate/ss58-registry@^1.23.0": + version "1.37.0" + resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.37.0.tgz#78f2a6f59f8c712cfe3ea747c52dcdfded3ec517" + integrity sha512-8R/4aQdZlKEPNrp2HSoPNxlDPPOyJe20qFk2w1hT0lXVbY4ZALrsO5Z4NrObAM2D9wTSpcxNKMFVQ2hIsqEHdw== + +"@substrate/ss58-registry@^1.35.0": version "1.36.0" resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.36.0.tgz#22b59fa85cacc0bdf40aa5d8131a377c1b5a8dd8" integrity sha512-YfQIpe2bIvGg/XWNByycznbOiAknMvpYaUpQJ2sLmNT/OwPx7XjEXk7dLShccuiQDoOQt3trTtF3Frz/Tjv6Fg== @@ -1387,9 +1404,9 @@ form-data "^3.0.0" "@types/node@*": - version "18.11.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17.tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5" - integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng== + version "18.11.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f" + integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA== "@types/node@10.12.18": version "10.12.18" @@ -1756,11 +1773,6 @@ ansi-html-community@^0.0.8: resolved "https://registry.npmmirror.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA== - ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" @@ -1788,11 +1800,6 @@ anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== - "aproba@^1.0.3 || ^2.0.0": version "2.0.0" resolved "https://registry.npmmirror.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" @@ -1814,14 +1821,6 @@ are-we-there-yet@^3.0.0: delegates "^1.0.0" readable-stream "^3.6.0" -are-we-there-yet@~1.1.2: - version "1.1.7" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz#b15474a932adab4ff8a50d9adfa7e4e926f21146" - integrity sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g== - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - argparse@^1.0.7: version "1.0.10" resolved "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -2420,11 +2419,6 @@ cmd-shim@^5.0.0: dependencies: mkdirp-infer-owner "^2.0.0" -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA== - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -2531,7 +2525,7 @@ connect-history-api-fallback@^2.0.0: resolved "https://registry.npmmirror.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== -console-control-strings@^1.0.0, console-control-strings@^1.1.0, console-control-strings@~1.1.0: +console-control-strings@^1.0.0, console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.npmmirror.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== @@ -2700,12 +2694,12 @@ declaration-bundler-webpack-plugin@^1.0.3: resolved "https://registry.npmmirror.com/declaration-bundler-webpack-plugin/-/declaration-bundler-webpack-plugin-1.0.3.tgz#9fb5ae393c63ed4175e7b6de4b58bafde34f097a" integrity sha512-bgeoSOZYTOOdiNUZd/U8K6Z+6IrM/X+DgUcm3/VI1l130lzOBeL+ObetjIkKksxcj0zUJbLaFRFumFGYDOQ9fg== -decompress-response@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-4.2.1.tgz#414023cc7a302da25ce2ec82d0d5238ccafd8986" - integrity sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw== +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== dependencies: - mimic-response "^2.0.0" + mimic-response "^3.1.0" deep-extend@^0.6.0: version "0.6.0" @@ -2782,10 +2776,10 @@ destroy@1.2.0: resolved "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== -detect-libc@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - integrity sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg== +detect-libc@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd" + integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w== detect-node@^2.0.4: version "2.1.0" @@ -3375,20 +3369,6 @@ gauge@^4.0.3: strip-ansi "^6.0.1" wide-align "^1.1.5" -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - integrity sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg== - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - get-intrinsic@^1.0.2: version "1.1.3" resolved "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" @@ -3521,7 +3501,7 @@ has-symbols@^1.0.3: resolved "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -has-unicode@^2.0.0, has-unicode@^2.0.1: +has-unicode@^2.0.1: version "2.0.1" resolved "https://registry.npmmirror.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== @@ -3876,13 +3856,6 @@ is-extglob@^2.1.1: resolved "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - integrity sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw== - dependencies: - number-is-nan "^1.0.0" - is-fullwidth-code-point@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" @@ -4198,7 +4171,7 @@ make-fetch-happen@^9.1.0: ssri "^8.0.0" "manta.js@file:../../package": - version "1.0.0" + version "0.0.0" dependencies: "@polkadot/api" "6.8.1" "@polkadot/extension-dapp" "0.39.3" @@ -4210,6 +4183,7 @@ make-fetch-happen@^9.1.0: "@polkadot/util-crypto" "8.1.2" axios "^0.27.2" bn.js "^5.2.0" + typescript "^4.9.4" md5.js@^1.3.4: version "1.3.5" @@ -4321,10 +4295,10 @@ mimic-fn@^2.1.0: resolved "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -mimic-response@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.1.0.tgz#d13763d35f613d09ec37ebb30bac0469c0ee8f43" - integrity sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA== +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" @@ -4534,12 +4508,12 @@ nock@^13.2.9: lodash "^4.17.21" propagate "^2.0.0" -node-abi@^2.21.0: - version "2.30.1" - resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.30.1.tgz#c437d4b1fe0e285aaf290d45b45d4d7afedac4cf" - integrity sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w== +node-abi@^3.3.0: + version "3.31.0" + resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.31.0.tgz#dfb2ea3d01188eb80859f69bb4a4354090c1b355" + integrity sha512-eSKV6s+APenqVh8ubJyiu/YhZgxQpGP66ntzUb3lY1xB9ukSRaGnx0AIxI+IM+1+IVYC1oWobgG5L3Lt9ARykQ== dependencies: - semver "^5.4.1" + semver "^7.3.5" node-addon-api@^3.0.2: version "3.2.1" @@ -4556,7 +4530,14 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@^2.6.6, node-fetch@^2.6.7: +node-fetch@^2.6.6: + version "2.6.8" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.8.tgz#a68d30b162bc1d8fd71a367e81b997e1f4d4937e" + integrity sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg== + dependencies: + whatwg-url "^5.0.0" + +node-fetch@^2.6.7: version "2.6.7" resolved "https://registry.npmmirror.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== @@ -4578,9 +4559,9 @@ node-forge@^1: integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== node-gyp-build@^4.3.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.5.0.tgz#7a64eefa0b21112f89f58379da128ac177f20e40" - integrity sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg== + version "4.6.0" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz#0c52e4cbf54bbd28b709820ef7b6a3c2d6209055" + integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== node-gyp@^8.2.0: version "8.4.1" @@ -4598,14 +4579,14 @@ node-gyp@^8.2.0: tar "^6.1.2" which "^2.0.2" -node-hid@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/node-hid/-/node-hid-2.1.1.tgz#f83c8aa0bb4e6758b5f7383542477da93f67359d" - integrity sha512-Skzhqow7hyLZU93eIPthM9yjot9lszg9xrKxESleEs05V2NcbUptZc5HFqzjOkSmL0sFlZFr3kmvaYebx06wrw== +node-hid@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/node-hid/-/node-hid-2.1.2.tgz#3145fa86ed4336a402a71e9f372c54213b88797c" + integrity sha512-qhCyQqrPpP93F/6Wc/xUR7L8mAJW0Z6R7HMQV8jCHHksAxNDe/4z4Un/H9CpLOT+5K39OPyt9tIQlavxWES3lg== dependencies: bindings "^1.5.0" node-addon-api "^3.0.2" - prebuild-install "^6.0.0" + prebuild-install "^7.1.1" node-releases@^2.0.6: version "2.0.6" @@ -4706,16 +4687,6 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -npmlog@^4.0.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - npmlog@^5.0.1: version "5.0.1" resolved "https://registry.npmmirror.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" @@ -4743,12 +4714,7 @@ nth-check@^2.0.1: dependencies: boolbase "^1.0.0" -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ== - -object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +object-assign@^4.0.1, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== @@ -5065,22 +5031,21 @@ pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" -prebuild-install@^6.0.0: - version "6.1.4" - resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-6.1.4.tgz#ae3c0142ad611d58570b89af4986088a4937e00f" - integrity sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ== +prebuild-install@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.1.tgz#de97d5b34a70a0c81334fd24641f2a1702352e45" + integrity sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw== dependencies: - detect-libc "^1.0.3" + detect-libc "^2.0.0" expand-template "^2.0.3" github-from-package "0.0.0" minimist "^1.2.3" mkdirp-classic "^0.5.3" napi-build-utils "^1.0.1" - node-abi "^2.21.0" - npmlog "^4.0.1" + node-abi "^3.3.0" pump "^3.0.0" rc "^1.2.7" - simple-get "^3.0.3" + simple-get "^4.0.0" tar-fs "^2.0.0" tunnel-agent "^0.6.0" @@ -5262,7 +5227,7 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.3.5: +readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.3.5: version "2.3.7" resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -5511,7 +5476,7 @@ selfsigned@^2.1.1: dependencies: node-forge "^1" -"semver@2 || 3 || 4 || 5", semver@^5.4.1: +"semver@2 || 3 || 4 || 5": version "5.7.1" resolved "https://registry.npmmirror.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== @@ -5572,7 +5537,7 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" -set-blocking@^2.0.0, set-blocking@~2.0.0: +set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== @@ -5642,12 +5607,12 @@ simple-concat@^1.0.0: resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f" integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q== -simple-get@^3.0.3: - version "3.1.1" - resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-3.1.1.tgz#cc7ba77cfbe761036fbfce3d021af25fc5584d55" - integrity sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA== +simple-get@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-4.0.1.tgz#4a39db549287c979d352112fa03fd99fd6bc3543" + integrity sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA== dependencies: - decompress-response "^4.2.0" + decompress-response "^6.0.0" once "^1.3.1" simple-concat "^1.0.0" @@ -5804,15 +5769,6 @@ store@^2.0.12: resolved "https://registry.yarnpkg.com/store/-/store-2.0.12.tgz#8c534e2a0b831f72b75fc5f1119857c44ef5d593" integrity sha512-eO9xlzDpXLiMr9W1nQ3Nfp9EzZieIQc10zPPMP5jsVV7bLOziSFFBP0XoDXACEIFtdI+rIz0NwWVA/QVJ8zJtw== -string-width@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - integrity sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw== - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -5836,13 +5792,6 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== - dependencies: - ansi-regex "^2.0.0" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" @@ -6114,6 +6063,11 @@ typescript@^4.9.3: resolved "https://registry.npmmirror.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db" integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== +typescript@^4.9.4: + version "4.9.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" + integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== + unique-filename@^1.1.1: version "1.1.1" resolved "https://registry.npmmirror.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" @@ -6445,7 +6399,7 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" -wide-align@^1.1.0, wide-align@^1.1.2, wide-align@^1.1.5: +wide-align@^1.1.2, wide-align@^1.1.5: version "1.1.5" resolved "https://registry.npmmirror.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== diff --git a/manta-js/package/package.json b/manta-js/package/package.json index fe888fb1..a960377d 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -3,7 +3,6 @@ "version": "0.0.0", "description": "manta.js sdk", "main": "./dist/index.js", - "type": "module", "files": [ "dist", "tsconfig.json" @@ -19,7 +18,7 @@ "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc && yarn wasm-postbuild", "wasm-dev-node": "wasm-pack build --target nodejs ./src/wallet/crate", "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/wallet/crate/pkg", - "build-node": "yarn prebuild && yarn wasm-node && yarn wasm-dev-node && tsc && yarn wasm-postbuild" + "build-node": "yarn prebuild && yarn wasm-node && yarn wasm-dev-node && tsc --module node16 && yarn wasm-postbuild" }, "dependencies": { "@polkadot/api": "6.8.1", From 0c923eab38891abe6e275990772f1fa7bdc9cc5d Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 23 Jan 2023 12:10:03 -0500 Subject: [PATCH 05/14] revert json change Signed-off-by: Charles Ferrell --- manta-js/package/src/{manta-config.ts => manta-config.json} | 6 ++---- manta-js/package/src/privateWallet.ts | 2 +- manta-js/package/src/utils.ts | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) rename manta-js/package/src/{manta-config.ts => manta-config.json} (98%) diff --git a/manta-js/package/src/manta-config.ts b/manta-js/package/src/manta-config.json similarity index 98% rename from manta-js/package/src/manta-config.ts rename to manta-js/package/src/manta-config.json index 17b4aa63..cb558339 100644 --- a/manta-js/package/src/manta-config.ts +++ b/manta-js/package/src/manta-config.json @@ -1,4 +1,4 @@ -const config = { +{ "VERSION": "1.0.0", "MIN_REQUIRED_SIGNER_VERSION": "0.7.0", "SIGNER_URL": "http://localhost:29987/", @@ -111,6 +111,4 @@ const config = { "proof": "[u8; 128]" } } -} - -export {config}; +} \ No newline at end of file diff --git a/manta-js/package/src/privateWallet.ts b/manta-js/package/src/privateWallet.ts index d53edfa1..435acdda 100644 --- a/manta-js/package/src/privateWallet.ts +++ b/manta-js/package/src/privateWallet.ts @@ -3,7 +3,7 @@ import { base58Decode, base58Encode } from '@polkadot/util-crypto'; // @ts-ignore import Api, {ApiConfig} from './api/index'; import BN from 'bn.js'; -import {config} from './manta-config'; +import config from './manta-config.json'; import { Transaction, Wallet } from './wallet/crate/pkg/manta_wasm_wallet'; import { Signer, SubmittableExtrinsic } from '@polkadot/api/types'; import { Address, AssetId, InitApiResult, InitWasmResult, IMantaPrivateWallet, SignedTransaction, PrivateWalletConfig } from './sdk.interfaces'; diff --git a/manta-js/package/src/utils.ts b/manta-js/package/src/utils.ts index 4050b009..14a731d8 100644 --- a/manta-js/package/src/utils.ts +++ b/manta-js/package/src/utils.ts @@ -1,7 +1,7 @@ import { Version, Address } from './sdk.interfaces'; import { Signer } from '@polkadot/api/types'; import axios from 'axios'; -import {config} from './manta-config'; +import config from './manta-config.json'; import BN from 'bn.js'; import { ApiPromise } from '@polkadot/api'; import { MantaPrivateWallet } from './privateWallet'; From 5579ee7f7c5623c15486a3e40d0559ffc093aca2 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 23 Jan 2023 12:13:46 -0500 Subject: [PATCH 06/14] actually revert config changes Signed-off-by: Charles Ferrell --- manta-js/package/src/manta-config.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/manta-js/package/src/manta-config.json b/manta-js/package/src/manta-config.json index cb558339..0abe64b3 100644 --- a/manta-js/package/src/manta-config.json +++ b/manta-js/package/src/manta-config.json @@ -20,12 +20,12 @@ "subscanUrl": "https://calamari.subscan.io" }, "Manta": { - "name": "Manta", - "ws": "0", - "ws_local": "0", - "parachainId": 0, - "decimals": 0, - "subscanUrl": "0", + "name": null, + "ws": null, + "ws_local": null, + "parachainId": null, + "decimals": null, + "subscanUrl": null } }, "PRIVATE_LEDGER_ACCOUNT_PUBLIC_KEY": "0x6d6f646c6d616e74617061790000000000000000000000000000000000000000", From 82c40d0ed5589826d6befb8aae25d15e69c21c97 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 23 Jan 2023 12:15:13 -0500 Subject: [PATCH 07/14] this time Signed-off-by: Charles Ferrell --- manta-js/package/src/manta-config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manta-js/package/src/manta-config.json b/manta-js/package/src/manta-config.json index 0abe64b3..b1ec9709 100644 --- a/manta-js/package/src/manta-config.json +++ b/manta-js/package/src/manta-config.json @@ -20,7 +20,7 @@ "subscanUrl": "https://calamari.subscan.io" }, "Manta": { - "name": null, + "name": "Manta", "ws": null, "ws_local": null, "parachainId": null, From 7d5314bbdef3be228b50dc2037d1a66c4b3211b0 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Tue, 24 Jan 2023 21:26:33 -0500 Subject: [PATCH 08/14] add docs Signed-off-by: Charles Ferrell --- manta-js/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/manta-js/README.md b/manta-js/README.md index 665393e2..8b727696 100644 --- a/manta-js/README.md +++ b/manta-js/README.md @@ -13,7 +13,7 @@ yarn install manta.js 1. `git clone https://github.com/Manta-Network/sdk.git` 2. `cd sdk/manta-js/package` 3. `yarn` -4. `yarn build` +4. `yarn build` for use in browser or `yarn build-node` for use in node.js 5. add `"manta.js": "file:/{LOCAL PATH OF sdk/manta-js/package}` to your project's package.json 6. `yarn upgrade manta.js` in your project's directory @@ -27,6 +27,23 @@ All methods are called through the `MantaPrivateWallet` class. Refer to `/examples` for more thorough examples, and how to run them. +## Node Specific + +If running in node.js the wasm module assumes browser DOM exists, you must export Web API functions from node in your project as seen below. + +```javascript +import fetch from 'node-fetch'; + +// @ts-ignore +global.fetch = fetch; +// @ts-ignore +global.Headers = fetch.Headers; +// @ts-ignore +global.Request = fetch.Request; +// @ts-ignore +global.Response = fetch.Response; +``` + ## Initialization The `Environment` flag specifies whether to connect to a local node, or the use an actual node from the network. From 5651d7703ade503515a6a4830c2f83395d5866f8 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 30 Jan 2023 21:21:20 -0500 Subject: [PATCH 09/14] export dual package Signed-off-by: Charles Ferrell --- manta-js/examples/asset-webpack-ts/yarn.lock | 25 ++++++++++++-------- manta-js/package/package.json | 21 ++++++++++------ manta-js/package/tsconfig.json | 1 - manta-js/tsconfig.json | 4 ++-- 4 files changed, 31 insertions(+), 20 deletions(-) diff --git a/manta-js/examples/asset-webpack-ts/yarn.lock b/manta-js/examples/asset-webpack-ts/yarn.lock index bb6c41e7..6040af02 100644 --- a/manta-js/examples/asset-webpack-ts/yarn.lock +++ b/manta-js/examples/asset-webpack-ts/yarn.lock @@ -1242,9 +1242,9 @@ ws "^8.8.1" "@substrate/ss58-registry@^1.23.0": - version "1.37.0" - resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.37.0.tgz#78f2a6f59f8c712cfe3ea747c52dcdfded3ec517" - integrity sha512-8R/4aQdZlKEPNrp2HSoPNxlDPPOyJe20qFk2w1hT0lXVbY4ZALrsO5Z4NrObAM2D9wTSpcxNKMFVQ2hIsqEHdw== + version "1.38.0" + resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.38.0.tgz#b50cb28c77a0375fbf33dd29b7b28ee32871af9f" + integrity sha512-sHiVRWekGMRZAjPukN9/W166NM6D5wtHcK6RVyLy66kg3CHNZ1BXfpXcjOiXSwhbd7guQFDEwnOVaDrbk1XL1g== "@substrate/ss58-registry@^1.35.0": version "1.36.0" @@ -4531,9 +4531,9 @@ node-domexception@^1.0.0: integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== node-fetch@^2.6.6: - version "2.6.8" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.8.tgz#a68d30b162bc1d8fd71a367e81b997e1f4d4937e" - integrity sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg== + version "2.6.9" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.9.tgz#7c7f744b5cc6eb5fd404e0c7a9fec630a55657e6" + integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg== dependencies: whatwg-url "^5.0.0" @@ -5996,11 +5996,16 @@ tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.1.0: +tslib@^2.0.3: version "2.4.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== +tslib@^2.1.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" + integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -6064,9 +6069,9 @@ typescript@^4.9.3: integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== typescript@^4.9.4: - version "4.9.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" - integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== unique-filename@^1.1.1: version "1.1.1" diff --git a/manta-js/package/package.json b/manta-js/package/package.json index a960377d..73233501 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -2,7 +2,11 @@ "name": "manta.js", "version": "0.0.0", "description": "manta.js sdk", - "main": "./dist/index.js", + "main": "./dist/browser/index.js", + "exports": { + ".": "./dist/browser/index.js", + "./node": "./dist/node/index.js" + }, "files": [ "dist", "tsconfig.json" @@ -10,15 +14,18 @@ "scripts": { "lint": "eslint \"{**/*,*}.{js,ts}\"", "format": "eslint \"{**/*,*}.{js,ts}\" --fix", - "clean": "rimraf dist", + "clean": "rimraf dist/browser", "prebuild": "yarn run clean", - "wasm-postbuild": "rm ./dist/wallet/crate/pkg/.gitignore", + "wasm-postbuild": "rm ./dist/browser/wallet/crate/pkg/.gitignore", "wasm-dev": "wasm-pack build ./src/wallet/crate", - "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/wallet/crate/pkg", - "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc && yarn wasm-postbuild", + "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/browser/wallet/crate/pkg", + "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc --outDir ./dist/browser && yarn wasm-postbuild", + "prebuild-node": "rimraf dist/node", + "wasm-postbuild-node": "rm ./dist/node/wallet/crate/pkg/.gitignore", "wasm-dev-node": "wasm-pack build --target nodejs ./src/wallet/crate", - "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/wallet/crate/pkg", - "build-node": "yarn prebuild && yarn wasm-node && yarn wasm-dev-node && tsc --module node16 && yarn wasm-postbuild" + "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/node/wallet/crate/pkg", + "build-node": "yarn prebuild-node && yarn wasm-node && tsc --module node16 --outDir ./dist/node && yarn wasm-postbuild-node", + "build-all": "yarn build && yarn build-node" }, "dependencies": { "@polkadot/api": "6.8.1", diff --git a/manta-js/package/tsconfig.json b/manta-js/package/tsconfig.json index d662a958..49802c80 100644 --- a/manta-js/package/tsconfig.json +++ b/manta-js/package/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "outDir": "dist", "allowSyntheticDefaultImports": true, "noImplicitAny": true, "skipLibCheck": true, diff --git a/manta-js/tsconfig.json b/manta-js/tsconfig.json index 99aa36bc..6b42c9be 100644 --- a/manta-js/tsconfig.json +++ b/manta-js/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "outDir": "dist", "allowSyntheticDefaultImports": true, "noImplicitAny": true, "skipLibCheck": true, @@ -10,7 +9,8 @@ "moduleResolution": "node", "resolveJsonModule": true, "esModuleInterop": true, - "noEmit": false + "noEmit": false, + "declaration": true, }, "exclude": ["node_modules"] } From 954b2a7524dd703d34397c7e9e0f64baa7d44082 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 30 Jan 2023 21:37:09 -0500 Subject: [PATCH 10/14] add to readme Signed-off-by: Charles Ferrell --- manta-js/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manta-js/README.md b/manta-js/README.md index 8b727696..c71aa54f 100644 --- a/manta-js/README.md +++ b/manta-js/README.md @@ -8,6 +8,8 @@ This package implements a Javascript SDK for connecting with the Manta Network. yarn install manta.js ``` +> If using sdk in a node.js enviroment please go to [Node Specific](#node-specific) + ### Local Development 1. `git clone https://github.com/Manta-Network/sdk.git` @@ -31,7 +33,12 @@ Refer to `/examples` for more thorough examples, and how to run them. If running in node.js the wasm module assumes browser DOM exists, you must export Web API functions from node in your project as seen below. +Node supported package is exported using the following path: `manta.js/node` see code snippit below. + +This node package is only compatible with node16 and up, if using typescript you must set ```"moduleResolution": "node16"``` in `tsconfig.json` or as a compiler flag + ```javascript +import { MantaPrivateWallet, Environment, Network } from 'manta.js/node' import fetch from 'node-fetch'; // @ts-ignore From 20a5987ffc04e4096699ae5afcc91b69d1024964 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 30 Jan 2023 21:55:53 -0500 Subject: [PATCH 11/14] make sure dist directory is deleted in build-all script Signed-off-by: Charles Ferrell --- manta-js/package/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manta-js/package/package.json b/manta-js/package/package.json index 73233501..a94b941b 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -14,8 +14,8 @@ "scripts": { "lint": "eslint \"{**/*,*}.{js,ts}\"", "format": "eslint \"{**/*,*}.{js,ts}\" --fix", - "clean": "rimraf dist/browser", - "prebuild": "yarn run clean", + "clean": "rimraf dist", + "prebuild": "rimraf dist/browser", "wasm-postbuild": "rm ./dist/browser/wallet/crate/pkg/.gitignore", "wasm-dev": "wasm-pack build ./src/wallet/crate", "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/browser/wallet/crate/pkg", @@ -25,7 +25,7 @@ "wasm-dev-node": "wasm-pack build --target nodejs ./src/wallet/crate", "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/node/wallet/crate/pkg", "build-node": "yarn prebuild-node && yarn wasm-node && tsc --module node16 --outDir ./dist/node && yarn wasm-postbuild-node", - "build-all": "yarn build && yarn build-node" + "build-all": "yarn clean && yarn build && yarn build-node" }, "dependencies": { "@polkadot/api": "6.8.1", From 942ba590fb2a3a432a744e230fe03984d4c4149d Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 30 Jan 2023 22:16:48 -0500 Subject: [PATCH 12/14] add to README Signed-off-by: Charles Ferrell --- manta-js/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manta-js/README.md b/manta-js/README.md index c71aa54f..7d87fa03 100644 --- a/manta-js/README.md +++ b/manta-js/README.md @@ -8,14 +8,14 @@ This package implements a Javascript SDK for connecting with the Manta Network. yarn install manta.js ``` -> If using sdk in a node.js enviroment please go to [Node Specific](#node-specific) +> If using sdk in a node.js environment please go to [Node Specific](#node-specific) ### Local Development 1. `git clone https://github.com/Manta-Network/sdk.git` 2. `cd sdk/manta-js/package` 3. `yarn` -4. `yarn build` for use in browser or `yarn build-node` for use in node.js +4. `yarn build-all` (Note: go to [Node Specific](#node-specific) if running in node.js environment) 5. add `"manta.js": "file:/{LOCAL PATH OF sdk/manta-js/package}` to your project's package.json 6. `yarn upgrade manta.js` in your project's directory From e8da6c955dbe99227d1576d1d37d43e66fbc4849 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Mon, 30 Jan 2023 23:07:22 -0500 Subject: [PATCH 13/14] make yarn build-browser to be more explicit Signed-off-by: Charles Ferrell --- manta-js/package/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manta-js/package/package.json b/manta-js/package/package.json index a94b941b..e7a61ace 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -15,17 +15,17 @@ "lint": "eslint \"{**/*,*}.{js,ts}\"", "format": "eslint \"{**/*,*}.{js,ts}\" --fix", "clean": "rimraf dist", - "prebuild": "rimraf dist/browser", + "prebuild-browser": "rimraf dist/browser", "wasm-postbuild": "rm ./dist/browser/wallet/crate/pkg/.gitignore", "wasm-dev": "wasm-pack build ./src/wallet/crate", "wasm": "wasm-pack build ./src/wallet/crate --out-dir ../../../dist/browser/wallet/crate/pkg", - "build": "yarn prebuild && yarn wasm && yarn wasm-dev && tsc --outDir ./dist/browser && yarn wasm-postbuild", + "build-browser": "yarn prebuild-browser && yarn wasm && yarn wasm-dev && tsc --outDir ./dist/browser && yarn wasm-postbuild", "prebuild-node": "rimraf dist/node", "wasm-postbuild-node": "rm ./dist/node/wallet/crate/pkg/.gitignore", "wasm-dev-node": "wasm-pack build --target nodejs ./src/wallet/crate", "wasm-node": "wasm-pack build ./src/wallet/crate --target nodejs --out-dir ../../../dist/node/wallet/crate/pkg", "build-node": "yarn prebuild-node && yarn wasm-node && tsc --module node16 --outDir ./dist/node && yarn wasm-postbuild-node", - "build-all": "yarn clean && yarn build && yarn build-node" + "build-all": "yarn clean && yarn build-browser && yarn build-node" }, "dependencies": { "@polkadot/api": "6.8.1", From ca35e0935a7634fe25b9114184de1c78c40a0c12 Mon Sep 17 00:00:00 2001 From: Charles Ferrell Date: Tue, 31 Jan 2023 15:56:38 -0500 Subject: [PATCH 14/14] bump version Signed-off-by: Charles Ferrell --- manta-js/examples/asset-webpack-ts/yarn.lock | 2 +- manta-js/package/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manta-js/examples/asset-webpack-ts/yarn.lock b/manta-js/examples/asset-webpack-ts/yarn.lock index 6040af02..7cea5b63 100644 --- a/manta-js/examples/asset-webpack-ts/yarn.lock +++ b/manta-js/examples/asset-webpack-ts/yarn.lock @@ -4171,7 +4171,7 @@ make-fetch-happen@^9.1.0: ssri "^8.0.0" "manta.js@file:../../package": - version "0.0.0" + version "0.1.0" dependencies: "@polkadot/api" "6.8.1" "@polkadot/extension-dapp" "0.39.3" diff --git a/manta-js/package/package.json b/manta-js/package/package.json index e7a61ace..572e9f1d 100644 --- a/manta-js/package/package.json +++ b/manta-js/package/package.json @@ -1,6 +1,6 @@ { "name": "manta.js", - "version": "0.0.0", + "version": "0.1.0", "description": "manta.js sdk", "main": "./dist/browser/index.js", "exports": {