diff --git a/.env.development b/.env.development index 7964666..c8dd460 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,8 @@ VUE_APP_DCL_API_NODE=http://localhost:8080/api VUE_APP_DCL_RPC_NODE=http://localhost:8080/rpc VUE_APP_DCL_WEBSOCKET_NODE=ws://localhost:8080/websocket -VUE_APP_DCL_CHAIN_ID=testnet-2.0 +VUE_APP_DCL_CHAIN_ID=dclchain +VUE_APP_DCL_CHAIN_NAME=dclchain-localhost VUE_APP_DCL_ADDR_PREFIX=cosmos VUE_APP_DCL_SDK_VERSION=Stargate VUE_APP_DCL_TX_API=/rpc/tx?hash=0x diff --git a/README.md b/README.md index 78beb69..c4436b0 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ VUE_APP_DCL_API_NODE=http://localhost:8080/api VUE_APP_DCL_RPC_NODE=http://localhost:8080/rpc VUE_APP_DCL_WEBSOCKET_NODE=ws://localhost:8080/websocket VUE_APP_DCL_CHAIN_ID=testnet-2.0 +VUE_APP_DCL_CHAIN_NAME=DCL-Chain-Testnet VUE_APP_DCL_ADDR_PREFIX=cosmos VUE_APP_DCL_SDK_VERSION=Stargate VUE_APP_DCL_TX_API=/rpc/tx?hash=0x diff --git a/package-lock.json b/package-lock.json index ad8df66..a36a802 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "dcl-ui", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 3, "requires": true, "dependencies": { @@ -1137,7 +1137,6 @@ "version": "7.17.2", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz", "integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==", - "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -1181,6 +1180,67 @@ "to-fast-properties": "^2.0.0" } }, + "@chainapsis/cosmosjs": { + "version": "0.0.3-alpha.3", + "resolved": "https://registry.npmjs.org/@chainapsis/cosmosjs/-/cosmosjs-0.0.3-alpha.3.tgz", + "integrity": "sha512-zb2dDblceZJeKcZnDrCb7G/6HOW/qd3pLxqqbgPuEaLkiw8hhxnQf3pMKKpwk0R3Ejs7CDA+V5mJD+vTZv/DSA==", + "requires": { + "@ledgerhq/hw-transport-node-hid": "^5.15.0", + "@ledgerhq/hw-transport-u2f": "^4.63.2", + "@ledgerhq/hw-transport-webusb": "^4.63.2", + "@node-a-team/ts-amino": "0.0.1-alpha.2", + "axios": "^0.19.0", + "bech32": "^1.1.3", + "big-integer": "^1.6.43", + "bip32": "^2.0.3", + "bip39": "^3.0.2", + "buffer": "^5.2.1", + "ledger-cosmos-js": "^2.0.2", + "ripemd160": "^2.0.2", + "secp256k1": "^3.7.0", + "sha.js": "^2.4.11" + }, + "dependencies": { + "axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "requires": { + "follow-redirects": "1.5.10" + } + }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, "@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", @@ -2037,6 +2097,66 @@ } } }, + "@ethersproject/address": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", + "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/rlp": "^5.7.0" + } + }, + "@ethersproject/bignumber": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", + "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "bn.js": "^5.2.1" + }, + "dependencies": { + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + } + } + }, + "@ethersproject/bytes": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", + "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", + "requires": { + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/keccak256": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", + "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "js-sha3": "0.8.0" + } + }, + "@ethersproject/logger": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", + "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==" + }, + "@ethersproject/rlp": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz", + "integrity": "sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -2144,6 +2264,317 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "@keplr-wallet/common": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/common/-/common-0.11.64.tgz", + "integrity": "sha512-kEnv6K+TxH+BBwwqUgiTcIXuRLBn6PaZMO4jwJbE1O8C8Qh/2j1QtkMLAMgl3Nj9qQkHgJ/dvA5oIqOIdLVMwg==", + "requires": { + "@keplr-wallet/crypto": "0.11.64", + "buffer": "^6.0.3", + "delay": "^4.4.0" + }, + "dependencies": { + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + } + } + }, + "@keplr-wallet/cosmos": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/cosmos/-/cosmos-0.11.64.tgz", + "integrity": "sha512-S6pLRaDKOyOFPfry7Km+Bgwr087gwHI4n3fp8NLGHtL75mLnOdeGvSEVW5LXJEWc5EyYgngM2CeS7xNHz+vjHg==", + "requires": { + "@ethersproject/address": "^5.6.0", + "@keplr-wallet/common": "0.11.64", + "@keplr-wallet/crypto": "0.11.64", + "@keplr-wallet/proto-types": "0.11.64", + "@keplr-wallet/types": "0.11.64", + "@keplr-wallet/unit": "0.11.64", + "axios": "^0.27.2", + "bech32": "^1.1.4", + "buffer": "^6.0.3", + "long": "^4.0.0", + "protobufjs": "^6.11.2" + }, + "dependencies": { + "axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } + } + }, + "@keplr-wallet/crypto": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/crypto/-/crypto-0.11.64.tgz", + "integrity": "sha512-DMeGhs+UUBpvefYa/0pF8h8D0lVS1T/eTGNKrn7SIO5CBMp1qfght+k1Se0pHGLr4CAtxFSXTDvYm3mr+ovKhg==", + "requires": { + "@ethersproject/keccak256": "^5.5.0", + "bip32": "^2.0.6", + "bip39": "^3.0.3", + "bs58check": "^2.1.2", + "buffer": "^6.0.3", + "crypto-js": "^4.0.0", + "elliptic": "^6.5.3", + "sha.js": "^2.4.11" + }, + "dependencies": { + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + } + } + }, + "@keplr-wallet/proto-types": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/proto-types/-/proto-types-0.11.64.tgz", + "integrity": "sha512-3oxfD1+zHPPuyKz41wt5A/gVhf2FQbA/L2u/4TxnmnITkY3IENirvMDrZUDJF0pWyGgZuXjhoVVFN2hMWI++PQ==", + "requires": { + "long": "^4.0.0", + "protobufjs": "^6.11.2" + } + }, + "@keplr-wallet/types": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/types/-/types-0.11.64.tgz", + "integrity": "sha512-GgzeLDHHfZFyne3O7UIfFHj/uYqVbxAZI31RbBwt460OBbvwQzjrlZwvJW3vieWRAgxKSITjzEDBl2WneFTQdQ==", + "requires": { + "axios": "^0.27.2", + "long": "^4.0.0" + }, + "dependencies": { + "axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } + } + }, + "@keplr-wallet/unit": { + "version": "0.11.64", + "resolved": "https://registry.npmjs.org/@keplr-wallet/unit/-/unit-0.11.64.tgz", + "integrity": "sha512-BKTaDYI17QgEcBBCP5ZqsHsfNH29P6VMRxjR4nOXcJfhsuwvdJxa/p88VwQYbpVBw0oXcDOwudNiu7Bgf8w6QQ==", + "requires": { + "@keplr-wallet/types": "0.11.64", + "big-integer": "^1.6.48", + "utility-types": "^3.10.0" + } + }, + "@ledgerhq/devices": { + "version": "5.51.1", + "resolved": "https://registry.npmjs.org/@ledgerhq/devices/-/devices-5.51.1.tgz", + "integrity": "sha512-4w+P0VkbjzEXC7kv8T1GJ/9AVaP9I6uasMZ/JcdwZBS3qwvKo5A5z9uGhP5c7TvItzcmPb44b5Mw2kT+WjUuAA==", + "requires": { + "@ledgerhq/errors": "^5.50.0", + "@ledgerhq/logs": "^5.50.0", + "rxjs": "6", + "semver": "^7.3.5" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "@ledgerhq/errors": { + "version": "5.50.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/errors/-/errors-5.50.0.tgz", + "integrity": "sha512-gu6aJ/BHuRlpU7kgVpy2vcYk6atjB4iauP2ymF7Gk0ez0Y/6VSMVSJvubeEQN+IV60+OBK0JgeIZG7OiHaw8ow==" + }, + "@ledgerhq/hw-transport": { + "version": "5.51.1", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport/-/hw-transport-5.51.1.tgz", + "integrity": "sha512-6wDYdbWrw9VwHIcoDnqWBaDFyviyjZWv6H9vz9Vyhe4Qd7TIFmbTl/eWs6hZvtZBza9K8y7zD8ChHwRI4s9tSw==", + "requires": { + "@ledgerhq/devices": "^5.51.1", + "@ledgerhq/errors": "^5.50.0", + "events": "^3.3.0" + } + }, + "@ledgerhq/hw-transport-node-hid": { + "version": "5.51.1", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-5.51.1.tgz", + "integrity": "sha512-Y2eVCCdhVs2Lfr7N2x2cNb+ogcZ24ZATO4QxaQ7LogjiPwYmzmvuXFn8zFjMSrKUCn9CtbptXcuiu0NkGsjWlw==", + "requires": { + "@ledgerhq/devices": "^5.51.1", + "@ledgerhq/errors": "^5.50.0", + "@ledgerhq/hw-transport": "^5.51.1", + "@ledgerhq/hw-transport-node-hid-noevents": "^5.51.1", + "@ledgerhq/logs": "^5.50.0", + "lodash": "^4.17.21", + "node-hid": "2.1.1", + "usb": "^1.7.0" + } + }, + "@ledgerhq/hw-transport-node-hid-noevents": { + "version": "5.51.1", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-5.51.1.tgz", + "integrity": "sha512-9wFf1L8ZQplF7XOY2sQGEeOhpmBRzrn+4X43kghZ7FBDoltrcK+s/D7S+7ffg3j2OySyP6vIIIgloXylao5Scg==", + "requires": { + "@ledgerhq/devices": "^5.51.1", + "@ledgerhq/errors": "^5.50.0", + "@ledgerhq/hw-transport": "^5.51.1", + "@ledgerhq/logs": "^5.50.0", + "node-hid": "2.1.1" + } + }, + "@ledgerhq/hw-transport-u2f": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport-u2f/-/hw-transport-u2f-4.78.0.tgz", + "integrity": "sha512-+0Gw5cIr8zCHM+HCS3ACgxmCLZMvJKepFplsjNq7AnRzlXcrMnReiPwt4kw+wXizIDvNQpzi7QFSYtfxa/Gdng==", + "requires": { + "@ledgerhq/errors": "^4.78.0", + "@ledgerhq/hw-transport": "^4.78.0", + "@ledgerhq/logs": "^4.72.0", + "u2f-api": "0.2.7" + }, + "dependencies": { + "@ledgerhq/devices": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/devices/-/devices-4.78.0.tgz", + "integrity": "sha512-tWKS5WM/UU82czihnVjRwz9SXNTQzWjGJ/7+j/xZ70O86nlnGJ1aaFbs5/WTzfrVKpOKgj1ZoZkAswX67i/JTw==", + "requires": { + "@ledgerhq/errors": "^4.78.0", + "@ledgerhq/logs": "^4.72.0", + "rxjs": "^6.5.3" + } + }, + "@ledgerhq/errors": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/errors/-/errors-4.78.0.tgz", + "integrity": "sha512-FX6zHZeiNtegBvXabK6M5dJ+8OV8kQGGaGtuXDeK/Ss5EmG4Ltxc6Lnhe8hiHpm9pCHtktOsnUVL7IFBdHhYUg==" + }, + "@ledgerhq/hw-transport": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport/-/hw-transport-4.78.0.tgz", + "integrity": "sha512-xQu16OMPQjFYLjqCysij+8sXtdWv2YLxPrB6FoLvEWGTlQ7yL1nUBRQyzyQtWIYqZd4THQowQmzm1VjxuN6SZw==", + "requires": { + "@ledgerhq/devices": "^4.78.0", + "@ledgerhq/errors": "^4.78.0", + "events": "^3.0.0" + } + }, + "@ledgerhq/logs": { + "version": "4.72.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/logs/-/logs-4.72.0.tgz", + "integrity": "sha512-o+TYF8vBcyySRsb2kqBDv/KMeme8a2nwWoG+lAWzbDmWfb2/MrVWYCVYDYvjXdSoI/Cujqy1i0gIDrkdxa9chA==" + } + } + }, + "@ledgerhq/hw-transport-webusb": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-4.78.0.tgz", + "integrity": "sha512-od5dp15PDYamlcJci5mD1TgjN0gva3ed1eZ0oXd4/CJwAz5Q+IoyTZnVq03UX1U+0ShF5QqnqAMxsK4YWkVwsw==", + "requires": { + "@ledgerhq/devices": "^4.78.0", + "@ledgerhq/errors": "^4.78.0", + "@ledgerhq/hw-transport": "^4.78.0", + "@ledgerhq/logs": "^4.72.0" + }, + "dependencies": { + "@ledgerhq/devices": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/devices/-/devices-4.78.0.tgz", + "integrity": "sha512-tWKS5WM/UU82czihnVjRwz9SXNTQzWjGJ/7+j/xZ70O86nlnGJ1aaFbs5/WTzfrVKpOKgj1ZoZkAswX67i/JTw==", + "requires": { + "@ledgerhq/errors": "^4.78.0", + "@ledgerhq/logs": "^4.72.0", + "rxjs": "^6.5.3" + } + }, + "@ledgerhq/errors": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/errors/-/errors-4.78.0.tgz", + "integrity": "sha512-FX6zHZeiNtegBvXabK6M5dJ+8OV8kQGGaGtuXDeK/Ss5EmG4Ltxc6Lnhe8hiHpm9pCHtktOsnUVL7IFBdHhYUg==" + }, + "@ledgerhq/hw-transport": { + "version": "4.78.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/hw-transport/-/hw-transport-4.78.0.tgz", + "integrity": "sha512-xQu16OMPQjFYLjqCysij+8sXtdWv2YLxPrB6FoLvEWGTlQ7yL1nUBRQyzyQtWIYqZd4THQowQmzm1VjxuN6SZw==", + "requires": { + "@ledgerhq/devices": "^4.78.0", + "@ledgerhq/errors": "^4.78.0", + "events": "^3.0.0" + } + }, + "@ledgerhq/logs": { + "version": "4.72.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/logs/-/logs-4.72.0.tgz", + "integrity": "sha512-o+TYF8vBcyySRsb2kqBDv/KMeme8a2nwWoG+lAWzbDmWfb2/MrVWYCVYDYvjXdSoI/Cujqy1i0gIDrkdxa9chA==" + } + } + }, + "@ledgerhq/logs": { + "version": "5.50.0", + "resolved": "https://registry.npmjs.org/@ledgerhq/logs/-/logs-5.50.0.tgz", + "integrity": "sha512-swKHYCOZUGyVt4ge0u8a7AwNcA//h4nx5wIi0sruGye1IJ5Cva0GyK9L2/WdX+kWVTKp92ZiEo1df31lrWGPgA==" + }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -2159,6 +2590,27 @@ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==" }, + "@node-a-team/ts-amino": { + "version": "0.0.1-alpha.2", + "resolved": "https://registry.npmjs.org/@node-a-team/ts-amino/-/ts-amino-0.0.1-alpha.2.tgz", + "integrity": "sha512-ybniB56+4oDEAJ7v0kFJAqyM05ZRd3OWevGCmejwJEEEDXUN0By+viGMuf7s5I+cazpyBoe6SuRmqxV2T5w4sw==", + "requires": { + "big-integer": "^1.6.43", + "buffer": "^5.2.1", + "sha.js": "^2.4.11" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, "@nodelib/fs.stat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", @@ -3621,8 +4073,7 @@ "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "arch": { "version": "2.2.0", @@ -3634,7 +4085,6 @@ "version": "1.1.7", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", - "dev": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -3644,7 +4094,6 @@ "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -3658,14 +4107,12 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, "requires": { "safe-buffer": "~5.1.0" } @@ -3819,8 +4266,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=" }, "atob": { "version": "2.1.2", @@ -4103,6 +4549,11 @@ "tryer": "^1.0.1" } }, + "big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==" + }, "big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -4120,8 +4571,6 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "dev": true, - "optional": true, "requires": { "file-uri-to-path": "1.0.0" } @@ -4131,6 +4580,27 @@ "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.1.tgz", "integrity": "sha1-DmVcm5wkNeqraL9AJyJtK1WjRSQ=" }, + "bip32": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/bip32/-/bip32-2.0.6.tgz", + "integrity": "sha512-HpV5OMLLGTjSVblmrtYRfFFKuQB+GArM0+XP8HGWfJ5vxYBqo+DesvJwOdC2WJ3bCkZShGf0QIfoIpeomVzVdA==", + "requires": { + "@types/node": "10.12.18", + "bs58check": "^2.1.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "tiny-secp256k1": "^1.1.3", + "typeforce": "^1.11.5", + "wif": "^2.0.6" + }, + "dependencies": { + "@types/node": { + "version": "10.12.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.18.tgz", + "integrity": "sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==" + } + } + }, "bip39": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.0.4.tgz", @@ -4142,6 +4612,35 @@ "randombytes": "^2.0.1" } }, + "bip66": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", + "integrity": "sha512-nemMHz95EmS38a26XbbdxIYj5csHd3RMP3H5bwQknX0WYHF01qhpufP42mLOwVICuH2JmhIhXiWs89MfUGL7Xw==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, "block-stream": { "version": "0.0.9", "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", @@ -4284,7 +4783,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, "requires": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", @@ -4398,6 +4896,16 @@ "base-x": "^3.0.2" } }, + "bs58check": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "requires": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, "buffer": { "version": "4.9.2", "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", @@ -4430,8 +4938,7 @@ "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", - "dev": true + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" }, "builtin-status-codes": { "version": "3.0.0", @@ -4776,8 +5283,7 @@ "chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, "chrome-trace-event": { "version": "1.0.3", @@ -4959,8 +5465,7 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "collection-visit": { "version": "1.0.0", @@ -5031,7 +5536,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" } @@ -5171,8 +5675,7 @@ "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" }, "consolidate": { "version": "0.15.1", @@ -5383,8 +5886,7 @@ "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "cosmiconfig": { "version": "5.2.1", @@ -5858,6 +6360,14 @@ "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==", "dev": true }, + "decompress-response": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", + "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", + "requires": { + "mimic-response": "^2.0.0" + } + }, "deep-equal": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", @@ -5872,6 +6382,11 @@ "regexp.prototype.flags": "^1.2.0" } }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" + }, "deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -6089,17 +6604,20 @@ } } }, + "delay": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/delay/-/delay-4.4.1.tgz", + "integrity": "sha512-aL3AhqtfhOlT/3ai6sWXeqwnw63ATNpnUiN4HL7x9q+My5QtHlO3OIkasmug9LKzpheLdmUKGRKnYXYAS7FQkQ==" + }, "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=" }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" }, "depd": { "version": "1.1.2", @@ -6123,6 +6641,11 @@ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==" + }, "detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", @@ -6270,6 +6793,16 @@ "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", "dev": true }, + "drbg.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", + "integrity": "sha512-F4wZ06PvqxYLFEZKkFxTDcns9oFNk34hvmJSEwdzsxVQ8YI5YaxtACgQatkYgv2VI2CFkUd2Y+xosPQnHv809g==", + "requires": { + "browserify-aes": "^1.0.6", + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4" + } + }, "duplexer": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", @@ -6394,7 +6927,6 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, "requires": { "once": "^1.4.0" } @@ -6924,8 +7456,7 @@ "events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" }, "eventsource": { "version": "1.1.0", @@ -6940,7 +7471,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, "requires": { "md5.js": "^1.3.4", "safe-buffer": "^5.1.1" @@ -7019,6 +7549,11 @@ } } }, + "expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==" + }, "express": { "version": "4.17.3", "resolved": "https://registry.npmjs.org/express/-/express-4.17.3.tgz", @@ -7284,9 +7819,7 @@ "file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "dev": true, - "optional": true + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, "filesize": { "version": "3.6.1", @@ -7534,6 +8067,11 @@ } } }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" + }, "fs-extra": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", @@ -7630,7 +8168,6 @@ "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -7645,14 +8182,12 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, "requires": { "number-is-nan": "^1.0.0" } @@ -7661,7 +8196,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -7672,7 +8206,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -7745,6 +8278,11 @@ "assert-plus": "^1.0.0" } }, + "github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" + }, "glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -7965,8 +8503,7 @@ "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" }, "has-value": { "version": "1.0.0", @@ -8430,8 +8967,7 @@ "ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, "iferr": { "version": "0.1.5", @@ -8531,6 +9067,11 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, "internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", @@ -8940,8 +9481,7 @@ "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "isexe": { "version": "2.0.0", @@ -9130,6 +9670,17 @@ "launch-editor": "^2.3.0" } }, + "ledger-cosmos-js": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/ledger-cosmos-js/-/ledger-cosmos-js-2.1.8.tgz", + "integrity": "sha512-Gl7SWMq+3R9OTkF1hLlg5+1geGOmcHX9OdS+INDsGNxSiKRWlsWCvQipGoDnRIQ6CPo2i/Ze58Dw0Mt/l3UYyA==", + "requires": { + "@babel/runtime": "^7.11.2", + "@ledgerhq/hw-transport": "^5.25.0", + "bech32": "^1.1.4", + "ripemd160": "^2.0.2" + } + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -9539,14 +10090,12 @@ "mime-db": { "version": "1.51.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", - "dev": true + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" }, "mime-types": { "version": "2.1.34", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "dev": true, "requires": { "mime-db": "1.51.0" } @@ -9557,6 +10106,11 @@ "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "dev": true }, + "mimic-response": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", + "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==" + }, "mini-css-extract-plugin": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.0.tgz", @@ -9634,8 +10188,7 @@ "minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" }, "minipass": { "version": "3.1.6", @@ -9702,6 +10255,11 @@ "minimist": "^1.2.5" } }, + "mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -9751,8 +10309,7 @@ "nan": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", - "dev": true + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" }, "nanoid": { "version": "3.3.1", @@ -9778,6 +10335,11 @@ "to-regex": "^3.0.1" } }, + "napi-build-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==" + }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -9811,6 +10373,26 @@ "lower-case": "^1.1.1" } }, + "node-abi": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz", + "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==", + "requires": { + "semver": "^5.4.1" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" + } + } + }, + "node-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==" + }, "node-environment-flags": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", @@ -9863,6 +10445,21 @@ } } }, + "node-gyp-build": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", + "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==" + }, + "node-hid": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/node-hid/-/node-hid-2.1.1.tgz", + "integrity": "sha512-Skzhqow7hyLZU93eIPthM9yjot9lszg9xrKxESleEs05V2NcbUptZc5HFqzjOkSmL0sFlZFr3kmvaYebx06wrw==", + "requires": { + "bindings": "^1.5.0", + "node-addon-api": "^3.0.2", + "prebuild-install": "^6.0.0" + } + }, "node-ipc": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/node-ipc/-/node-ipc-9.2.1.tgz", @@ -10110,7 +10707,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -10136,8 +10732,7 @@ "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "oauth-sign": { "version": "0.9.0", @@ -10148,8 +10743,7 @@ "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" }, "object-copy": { "version": "0.1.0", @@ -10280,7 +10874,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -11887,6 +12480,26 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "prebuild-install": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz", + "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==", + "requires": { + "detect-libc": "^1.0.3", + "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", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^3.0.3", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + } + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -11939,8 +12552,7 @@ "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "prom-client": { "version": "13.1.0", @@ -12029,7 +12641,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -12139,6 +12750,24 @@ "unpipe": "1.0.0" } }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" + } + } + }, "read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", @@ -12285,8 +12914,7 @@ "regenerator-runtime": { "version": "0.13.9", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, "regenerator-transform": { "version": "0.14.5", @@ -12631,6 +13259,14 @@ "aproba": "^1.1.1" } }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "requires": { + "tslib": "^1.9.0" + } + }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -12865,6 +13501,21 @@ } } }, + "secp256k1": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.8.0.tgz", + "integrity": "sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw==", + "requires": { + "bindings": "^1.5.0", + "bip66": "^1.1.5", + "bn.js": "^4.11.8", + "create-hash": "^1.2.0", + "drbg.js": "^1.0.1", + "elliptic": "^6.5.2", + "nan": "^2.14.0", + "safe-buffer": "^5.1.2" + } + }, "select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -13012,8 +13663,7 @@ "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "set-value": { "version": "2.0.1", @@ -13103,8 +13753,22 @@ "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==" + }, + "simple-get": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", + "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", + "requires": { + "decompress-response": "^4.2.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } }, "simple-swizzle": { "version": "0.2.2", @@ -13869,6 +14533,29 @@ "inherits": "2" } }, + "tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "requires": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "requires": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + } + }, "tdigest": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.1.tgz", @@ -14047,6 +14734,18 @@ "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", "dev": true }, + "tiny-secp256k1": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz", + "integrity": "sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA==", + "requires": { + "bindings": "^1.3.0", + "bn.js": "^4.11.8", + "create-hmac": "^1.1.7", + "elliptic": "^6.4.0", + "nan": "^2.13.2" + } + }, "to-arraybuffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", @@ -14155,6 +14854,11 @@ "integrity": "sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==", "dev": true }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, "tty-browserify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", @@ -14165,7 +14869,6 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, "requires": { "safe-buffer": "^5.0.1" } @@ -14207,6 +14910,16 @@ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, + "typeforce": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/typeforce/-/typeforce-1.18.0.tgz", + "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==" + }, + "u2f-api": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/u2f-api/-/u2f-api-0.2.7.tgz", + "integrity": "sha512-fqLNg8vpvLOD5J/z4B6wpPg4Lvowz1nJ9xdHcCzdUPKcFE/qNCceV2gNZxSJd5vhAZemHr/K/hbzVA0zxB5mkg==" + }, "uglify-js": { "version": "3.4.10", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", @@ -14435,6 +15148,22 @@ "requires-port": "^1.0.0" } }, + "usb": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/usb/-/usb-1.9.2.tgz", + "integrity": "sha512-dryNz030LWBPAf6gj8vyq0Iev3vPbCLHCT8dBw3gQRXRzVNsIdeuU+VjPp3ksmSPkeMAl1k+kQ14Ij0QHyeiAg==", + "requires": { + "node-addon-api": "^4.2.0", + "node-gyp-build": "^4.3.0" + }, + "dependencies": { + "node-addon-api": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", + "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==" + } + } + }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", @@ -14481,6 +15210,11 @@ "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", "dev": true }, + "utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" + }, "utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -15563,11 +16297,18 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dev": true, "requires": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, + "wif": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/wif/-/wif-2.0.6.tgz", + "integrity": "sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ==", + "requires": { + "bs58check": "<3.0.0" + } + }, "winston": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", @@ -15623,8 +16364,7 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "ws": { "version": "7.5.7", diff --git a/package.json b/package.json index c33a871..07bc2e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dcl-ui", - "version": "1.0.12", + "version": "1.0.13", "description": "A Vuejs based application for managing CSA Distributed Compliance Ledger", "author": "Comcast Inc.", "private": true, @@ -31,7 +31,9 @@ "vue-router": "^4.0.3", "vue-uuid": "^2.0.2", "vue3-autocounter": "^1.0.6", - "vuex": "^4.0.0" + "vuex": "^4.0.0", + "@chainapsis/cosmosjs": "^0.0.3-alpha.3", + "@keplr-wallet/cosmos": "^0.11.59" }, "devDependencies": { "@babel/core": "^7.14.0", @@ -46,4 +48,4 @@ "protobufjs": "^6.11.2", "sass-loader": "^8.0.2" } -} \ No newline at end of file +} diff --git a/src/AppWallet.vue b/src/AppWallet.vue index 884ddfe..28105d3 100644 --- a/src/AppWallet.vue +++ b/src/AppWallet.vue @@ -1,13 +1,111 @@ + diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index ca02004..140fb44 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -444,14 +444,17 @@ export default { }, }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; if (loggedIn) { this.updatePubKey(); } return loggedIn; }, currentAddress() { - if (this.$store.getters["common/wallet/loggedIn"]) { + if (this.$store.state.selectedKeplrAccount) { + const account = this.$store.state.selectedKeplrAccount; + return account.address; + } else if (this.$store.getters["common/wallet/loggedIn"]) { const wallet = this.$store.getters["common/wallet/wallet"]; const accounts = wallet.accounts; const account = wallet.accounts[0]; @@ -642,24 +645,38 @@ export default { document.body.removeChild(el); }, updatePubKey() { - if (this.$store.getters["common/wallet/loggedIn"]) { - DirectSecp256k1HdWallet.fromMnemonic( - this.$store.state["common"]["wallet"]["activeWallet"].mnemonic - ).then((data) => { - data.getAccountsWithPrivkeys().then((data) => { - const defaultPubkeyBytes = data[0].pubkey; - const defaultPubkeyProtoBytes = Uint8Array.from([ - 0x0a, - defaultPubkeyBytes.length, - ...defaultPubkeyBytes, - ]); - const decodedPubKey = decodePubkey({ - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - value: defaultPubkeyProtoBytes, + if (this.$store.state.selectedKeplrAccount) { + const account = this.$store.state.keplrSigner; + const publicKey = account.key.pubKey; + // convert publicKey (Uint8Array) to the protobuf format + const defaultPubkeyProtoBytes = Uint8Array.from([ + 0x0a, + publicKey.length, + ...publicKey, + ]); + const decodedPubKey = decodePubkey({ + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + value: defaultPubkeyProtoBytes, + }); + this.currentKey = decodedPubKey; + } else if (this.$store.getters["common/wallet/loggedIn"]) { + DirectSecp256k1HdWallet.fromMnemonic( + this.$store.state["common"]["wallet"]["activeWallet"].mnemonic + ).then((data) => { + data.getAccountsWithPrivkeys().then((data) => { + const defaultPubkeyBytes = data[0].pubkey; + const defaultPubkeyProtoBytes = Uint8Array.from([ + 0x0a, + defaultPubkeyBytes.length, + ...defaultPubkeyBytes, + ]); + const decodedPubKey = decodePubkey({ + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + value: defaultPubkeyProtoBytes, + }); + this.currentKey = decodedPubKey; }); - this.currentKey = decodedPubKey; }); - }); } }, }, diff --git a/src/components/KeplrWallet.vue b/src/components/KeplrWallet.vue new file mode 100644 index 0000000..f05874c --- /dev/null +++ b/src/components/KeplrWallet.vue @@ -0,0 +1,208 @@ + + + + + + diff --git a/src/components/SpWallet.vue b/src/components/SpWallet.vue new file mode 100644 index 0000000..6fbd988 --- /dev/null +++ b/src/components/SpWallet.vue @@ -0,0 +1,11 @@ + + + + diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.js index 99a3723..8959562 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.js @@ -8,7 +8,7 @@ import { EventRevoke } from "./module/types/cosmos/authz/v1beta1/event"; import { GrantAuthorization } from "./module/types/cosmos/authz/v1beta1/genesis"; export { GenericAuthorization, Grant, EventGrant, EventRevoke, GrantAuthorization }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.ts index 5177075..be53494 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.ts @@ -12,7 +12,7 @@ import { GrantAuthorization } from "./module/types/cosmos/authz/v1beta1/genesis" export { GenericAuthorization, Grant, EventGrant, EventRevoke, GrantAuthorization }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/authz.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/authz.js index db41d6f..9f37725 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/authz.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/authz.js @@ -125,13 +125,13 @@ export const Grant = { } }; function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/genesis.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/genesis.js index 8593454..723ee07 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/genesis.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/genesis.js @@ -169,13 +169,13 @@ export const GrantAuthorization = { } }; function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/abci/types.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/abci/types.js index 9500f34..c3bb2b8 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/abci/types.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/abci/types.js @@ -4516,13 +4516,13 @@ function base64FromBytes(arr) { return btoa(bin.join('')); } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/types/types.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/types/types.js index 34ccc83..5986b7c 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/types/types.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/types/types.js @@ -1565,13 +1565,13 @@ function base64FromBytes(arr) { return btoa(bin.join('')); } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js index 99aa332..b5c844d 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.js @@ -12,7 +12,7 @@ import { Metadata } from "./module/types/cosmos/bank/v1beta1/bank"; import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis"; export { SendAuthorization, Params, SendEnabled, Input, Output, Supply, DenomUnit, Metadata, Balance }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts index cd0b1a2..aba20d7 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.ts @@ -16,7 +16,7 @@ import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis" export { SendAuthorization, Params, SendEnabled, Input, Output, Supply, DenomUnit, Metadata, Balance }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.js index 4a69cb5..4b58075 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.js @@ -2,7 +2,7 @@ import { txClient, queryClient, MissingWalletError } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.ts index b4c16d9..d694e7b 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.ts @@ -7,7 +7,7 @@ import { SpVuexError } from '@starport/vuex' export { }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js index c4bf32b..409fc58 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.js @@ -22,7 +22,7 @@ import { DelegatorStartingInfoRecord } from "./module/types/cosmos/distribution/ import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1beta1/genesis"; export { Params, ValidatorHistoricalRewards, ValidatorCurrentRewards, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent, ValidatorSlashEvents, FeePool, CommunityPoolSpendProposal, DelegatorStartingInfo, DelegationDelegatorReward, CommunityPoolSpendProposalWithDeposit, DelegatorWithdrawInfo, ValidatorOutstandingRewardsRecord, ValidatorAccumulatedCommissionRecord, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, ValidatorSlashEventRecord }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts index 2689686..41faaf5 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/index.ts @@ -26,7 +26,7 @@ import { ValidatorSlashEventRecord } from "./module/types/cosmos/distribution/v1 export { Params, ValidatorHistoricalRewards, ValidatorCurrentRewards, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent, ValidatorSlashEvents, FeePool, CommunityPoolSpendProposal, DelegatorStartingInfo, DelegationDelegatorReward, CommunityPoolSpendProposalWithDeposit, DelegatorWithdrawInfo, ValidatorOutstandingRewardsRecord, ValidatorAccumulatedCommissionRecord, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, ValidatorSlashEventRecord }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.js index 86d8cd1..ab537a6 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.js @@ -4,7 +4,7 @@ import { SpVuexError } from '@starport/vuex'; import { Equivocation } from "./module/types/cosmos/evidence/v1beta1/evidence"; export { Equivocation }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.ts index bb355dc..3d68e98 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.ts @@ -8,7 +8,7 @@ import { Equivocation } from "./module/types/cosmos/evidence/v1beta1/evidence" export { Equivocation }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/evidence.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/evidence.js index 4822351..e358000 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/evidence.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/evidence.js @@ -123,13 +123,13 @@ var globalThis = (() => { throw 'Unable to locate global object'; })(); function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.js index 0c18cde..d12ce23 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.js @@ -7,7 +7,7 @@ import { AllowedMsgAllowance } from "./module/types/cosmos/feegrant/v1beta1/feeg import { Grant } from "./module/types/cosmos/feegrant/v1beta1/feegrant"; export { BasicAllowance, PeriodicAllowance, AllowedMsgAllowance, Grant }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.ts index 1628a03..7165b4a 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.ts @@ -11,7 +11,7 @@ import { Grant } from "./module/types/cosmos/feegrant/v1beta1/feegrant" export { BasicAllowance, PeriodicAllowance, AllowedMsgAllowance, Grant }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/feegrant.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/feegrant.js index ed80346..4cb6e30 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/feegrant.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/feegrant.js @@ -386,13 +386,13 @@ export const Grant = { } }; function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js index 91067d7..201295b 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.js @@ -12,7 +12,7 @@ import { VotingParams } from "./module/types/cosmos/gov/v1beta1/gov"; import { TallyParams } from "./module/types/cosmos/gov/v1beta1/gov"; export { WeightedVoteOption, TextProposal, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts index c69cf74..6f00dec 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.ts @@ -16,7 +16,7 @@ import { TallyParams } from "./module/types/cosmos/gov/v1beta1/gov" export { WeightedVoteOption, TextProposal, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos/gov/v1beta1/gov.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos/gov/v1beta1/gov.js index d38ce27..7986ac1 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos/gov/v1beta1/gov.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos/gov/v1beta1/gov.js @@ -1038,13 +1038,13 @@ function base64FromBytes(arr) { return btoa(bin.join('')); } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.js index 79e7beb..9d45dda 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.js @@ -8,7 +8,7 @@ import { ValidatorSigningInfo } from "./module/types/cosmos/slashing/v1beta1/sla import { Params } from "./module/types/cosmos/slashing/v1beta1/slashing"; export { SigningInfo, ValidatorMissedBlocks, MissedBlock, ValidatorSigningInfo, Params }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.ts index 3968575..5c54f5e 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.ts @@ -12,7 +12,7 @@ import { Params } from "./module/types/cosmos/slashing/v1beta1/slashing" export { SigningInfo, ValidatorMissedBlocks, MissedBlock, ValidatorSigningInfo, Params }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/cosmos/slashing/v1beta1/slashing.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/cosmos/slashing/v1beta1/slashing.js index 0da610f..18b8d19 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/cosmos/slashing/v1beta1/slashing.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/cosmos/slashing/v1beta1/slashing.js @@ -301,13 +301,13 @@ function base64FromBytes(arr) { return btoa(bin.join('')); } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js index 29fb157..f209692 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.js @@ -26,7 +26,7 @@ import { RedelegationResponse } from "./module/types/cosmos/staking/v1beta1/stak import { Pool } from "./module/types/cosmos/staking/v1beta1/staking"; export { StakeAuthorization, StakeAuthorization_Validators, LastValidatorPower, HistoricalInfo, CommissionRates, Commission, Description, Validator, ValAddresses, DVPair, DVPairs, DVVTriplet, DVVTriplets, Delegation, UnbondingDelegation, UnbondingDelegationEntry, RedelegationEntry, Redelegation, Params, DelegationResponse, RedelegationEntryResponse, RedelegationResponse, Pool }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts index 8c737d7..cfc7fa6 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.ts @@ -30,7 +30,7 @@ import { Pool } from "./module/types/cosmos/staking/v1beta1/staking" export { StakeAuthorization, StakeAuthorization_Validators, LastValidatorPower, HistoricalInfo, CommissionRates, Commission, Description, Validator, ValAddresses, DVPair, DVPairs, DVVTriplet, DVVTriplets, Delegation, UnbondingDelegation, UnbondingDelegationEntry, RedelegationEntry, Redelegation, Params, DelegationResponse, RedelegationEntryResponse, RedelegationResponse, Pool }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/staking.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/staking.js index 41811b3..2a5ce89 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/staking.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/staking.js @@ -1927,13 +1927,13 @@ var globalThis = (() => { throw 'Unable to locate global object'; })(); function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/tx.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/tx.js index d72142d..95857fa 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/tx.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos/staking/v1beta1/tx.js @@ -794,13 +794,13 @@ export class MsgClientImpl { } } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/types/types.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/types/types.js index 34ccc83..5986b7c 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/types/types.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/types/types.js @@ -1565,13 +1565,13 @@ function base64FromBytes(arr) { return btoa(bin.join('')); } function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.js b/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.js index cce89dd..8a77524 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.js +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.js @@ -9,7 +9,7 @@ import { PeriodicVestingAccount } from "./module/types/cosmos/vesting/v1beta1/ve import { PermanentLockedAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; export { BaseVestingAccount, ContinuousVestingAccount, DelayedVestingAccount, Period, PeriodicVestingAccount, PermanentLockedAccount }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.ts b/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.ts index 99b71db..473b9d4 100644 --- a/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.ts +++ b/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.ts @@ -13,7 +13,7 @@ import { PermanentLockedAccount } from "./module/types/cosmos/vesting/v1beta1/ve export { BaseVestingAccount, ContinuousVestingAccount, DelayedVestingAccount, Period, PeriodicVestingAccount, PermanentLockedAccount }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.js b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.js index 350f266..6394d22 100644 --- a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.js +++ b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.js @@ -6,7 +6,7 @@ import { DenomTrace } from "./module/types/ibc/applications/transfer/v1/transfer import { Params } from "./module/types/ibc/applications/transfer/v1/transfer"; export { FungibleTokenPacketData, DenomTrace, Params }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.ts b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.ts index 7f4f7cc..eb38a26 100644 --- a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.ts +++ b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.ts @@ -10,7 +10,7 @@ import { Params } from "./module/types/ibc/applications/transfer/v1/transfer" export { FungibleTokenPacketData, DenomTrace, Params }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/cosmos/upgrade/v1beta1/upgrade.js b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/cosmos/upgrade/v1beta1/upgrade.js index 2227b74..d1679d2 100644 --- a/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/cosmos/upgrade/v1beta1/upgrade.js +++ b/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/cosmos/upgrade/v1beta1/upgrade.js @@ -282,13 +282,13 @@ var globalThis = (() => { throw 'Unable to locate global object'; })(); function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js index c6b998a..679b575 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js @@ -9,7 +9,7 @@ import { ProvisionalModel } from "./module/types/compliance/provisional_model"; import { RevokedModel } from "./module/types/compliance/revoked_model"; export { CertifiedModel, ComplianceHistoryItem, ComplianceInfo, DeviceSoftwareCompliance, ProvisionalModel, RevokedModel }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts index 917f104..30098c6 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts @@ -13,7 +13,7 @@ import { RevokedModel } from "./module/types/compliance/revoked_model" export { CertifiedModel, ComplianceHistoryItem, ComplianceInfo, DeviceSoftwareCompliance, ProvisionalModel, RevokedModel }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.js index 8c9e3b2..872a4dd 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.js @@ -5,7 +5,7 @@ import { TestingResult } from "./module/types/compliancetest/testing_result"; import { TestingResults } from "./module/types/compliancetest/testing_results"; export { TestingResult, TestingResults }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.ts index dd6ec91..7ebe9b0 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliancetest/index.ts @@ -9,7 +9,7 @@ import { TestingResults } from "./module/types/compliancetest/testing_results" export { TestingResult, TestingResults }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js index 1e9a3e5..a1c6d69 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js @@ -10,7 +10,7 @@ import { RejectedAccount } from "./module/types/dclauth/rejected_account"; import { RevokedAccount } from "./module/types/dclauth/revoked_account"; export { Account, AccountStat, Grant, PendingAccount, PendingAccountRevocation, RejectedAccount, RevokedAccount }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts index 9adc8d9..601ca17 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts @@ -14,7 +14,7 @@ import { RevokedAccount } from "./module/types/dclauth/revoked_account" export { Account, AccountStat, Grant, PendingAccount, PendingAccountRevocation, RejectedAccount, RevokedAccount }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js index 4e00bc3..938a4bb 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js @@ -7,7 +7,7 @@ import { ProposedUpgrade } from "./module/types/dclupgrade/proposed_upgrade"; import { RejectedUpgrade } from "./module/types/dclupgrade/rejected_upgrade"; export { ApprovedUpgrade, Grant, ProposedUpgrade, RejectedUpgrade }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts index e262905..b247509 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts @@ -11,7 +11,7 @@ import { RejectedUpgrade } from "./module/types/dclupgrade/rejected_upgrade" export { ApprovedUpgrade, Grant, ProposedUpgrade, RejectedUpgrade }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/types/cosmos/upgrade/v1beta1/upgrade.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/types/cosmos/upgrade/v1beta1/upgrade.js index bb9269c..7d460f8 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/types/cosmos/upgrade/v1beta1/upgrade.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/types/cosmos/upgrade/v1beta1/upgrade.js @@ -372,13 +372,13 @@ var globalThis = (() => { throw 'Unable to locate global object'; })(); function toTimestamp(date) { - const seconds = date.getTime() / 1000; - const nanos = (date.getTime() % 1000) * 1000000; + const seconds = date.getTime() / 1_000; + const nanos = (date.getTime() % 1_000) * 1_000_000; return { seconds, nanos }; } function fromTimestamp(t) { - let millis = t.seconds * 1000; - millis += t.nanos / 1000000; + let millis = t.seconds * 1_000; + millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o) { diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js index 841980d..685d4dd 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js @@ -8,7 +8,7 @@ import { Product } from "./module/types/model/product"; import { VendorProducts } from "./module/types/model/vendor_products"; export { Model, ModelVersion, ModelVersions, Product, VendorProducts }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts index 802eb1f..dd1a3cd 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts @@ -12,7 +12,7 @@ import { VendorProducts } from "./module/types/model/vendor_products" export { Model, ModelVersion, ModelVersions, Product, VendorProducts }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js index c2d19cf..0db6786 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js @@ -858,4 +858,4 @@ export default { } }, } -}; +}; \ No newline at end of file diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts index d09311d..f089243 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts @@ -22,7 +22,7 @@ import { UniqueCertificate } from "./module/types/pki/unique_certificate" export { ApprovedCertificates, ApprovedCertificatesBySubject, ApprovedRootCertificates, Certificate, CertificateIdentifier, ChildCertificates, Grant, PkiRevocationDistributionPoint, PkiRevocationDistributionPointsByIssuerSubjectKeyID, ProposedCertificate, ProposedCertificateRevocation, RejectedCertificate, RevokedCertificates, RevokedRootCertificates, UniqueCertificate }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js index 2168922..07b321a 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js @@ -61,4 +61,4 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { return new Api({ baseUrl: addr }); }; -export { txClient, queryClient, }; +export { txClient, queryClient, }; \ No newline at end of file diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/rest.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/rest.js index cb93c02..7d8b9b2 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/rest.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/rest.js @@ -378,4 +378,4 @@ export class Api extends HttpClient { format: "json", ...params, }); -} +} \ No newline at end of file diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/genesis.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/genesis.js index e4f17d6..7c2e78a 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/genesis.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/genesis.js @@ -336,4 +336,4 @@ export const GenesisState = { } return message; } -}; +}; \ No newline at end of file diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/query.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/query.js index 5d5dbf7..508d56a 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/query.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/query.js @@ -1,5 +1,6 @@ /* eslint-disable */ -import { Reader, Writer } from 'protobufjs/minimal'; +import { Reader, util, configure, Writer } from 'protobufjs/minimal'; +import * as Long from 'long'; import { ApprovedCertificates } from '../pki/approved_certificates'; import { PageRequest, PageResponse } from '../cosmos/base/query/v1beta1/pagination'; import { ProposedCertificate } from '../pki/proposed_certificate'; diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/tx.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/tx.js index 3784989..2d7f551 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/tx.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/types/pki/tx.js @@ -2007,4 +2007,4 @@ function longToNumber(long) { if (util.Long !== Long) { util.Long = Long; configure(); -} +} \ No newline at end of file diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js index 0dcec23..b140c23 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js @@ -10,7 +10,7 @@ import { RejectedDisableValidator } from "./module/types/validator/rejected_vali import { Validator } from "./module/types/validator/validator"; export { Description, DisabledValidator, Grant, LastValidatorPower, ProposedDisableValidator, RejectedDisableValidator, Validator }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts index 7487491..8730533 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts @@ -14,7 +14,7 @@ import { Validator } from "./module/types/validator/validator" export { Description, DisabledValidator, Grant, LastValidatorPower, ProposedDisableValidator, RejectedDisableValidator, Validator }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.js b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.js index ac34c2c..b4656cd 100644 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.js +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.js @@ -4,7 +4,7 @@ import { SpVuexError } from '@starport/vuex'; import { VendorInfo } from "./module/types/vendorinfo/vendor_info"; export { VendorInfo }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }); } diff --git a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.ts b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.ts index 7c650da..13738a2 100755 --- a/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.ts +++ b/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.vendorinfo/index.ts @@ -8,7 +8,7 @@ import { VendorInfo } from "./module/types/vendorinfo/vendor_info" export { VendorInfo }; async function initTxClient(vuexGetters) { - return await txClient(vuexGetters['common/wallet/signer'], { + return await txClient(vuexGetters['keplrSigner'] || vuexGetters['common/wallet/signer'], { addr: vuexGetters['common/env/apiTendermint'] }) } diff --git a/src/store/index.js b/src/store/index.js index 2b0f250..c1ec132 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,19 +1,76 @@ -import { createStore } from 'vuex' -import init from './config' +import { createStore } from "vuex"; +import init from "./config"; + const store = createStore({ - state () { + state() { return { - packageVersion: process.env.PACKAGE_VERSION || '0' - } - }, - mutations: {}, - actions: {}, + packageVersion: process.env.PACKAGE_VERSION || "0", + keplrSigner: null, + selectedKeplrAccount: null, + selectedKeplrAccountName: null, + }; + }, + mutations: { + setKeplrSigner(state, signer) { + state.keplrSigner = signer; + }, + setSelectedKeplrAccount(state, account) { + state.selectedKeplrAccount = account; + state.selectedKeplrAccountName = account?.name; + }, + }, + actions: { + async setKeplrSigner({ commit, dispatch }) { + const keplr = window.keplr; + if (!keplr) { + throw new Error("Please install the Keplr wallet extension"); + } + const chainId = process.env.VUE_APP_DCL_CHAIN_ID; // Replace with your chain ID + await keplr.enable(chainId); + const signer = keplr.getOfflineSigner(chainId); + signer.key = await signer.keplr.getKey(signer.chainId); + commit("setKeplrSigner", signer); + + const accounts = await signer.getAccounts(); + if (accounts.length > 1) { + // Dispatch another action to show a UI for account selection + dispatch("showAccountSelection", accounts); + } else if (accounts.length === 1) { + const account = accounts[0]; + commit("setSelectedKeplrAccount", { address: account.address, name: account.name }); + } else { + throw new Error("No accounts found in the Keplr wallet"); + } + }, + + async disconnectKeplr({ commit }) { + commit("setKeplrSigner", null); + commit("setSelectedKeplrAccount", null); + }, + + showAccountSelection({ commit }, accounts) { + // Show a UI for the user to select an account from the `accounts` array + // ... + // Once the user has selected an account, commit the selected account to the Vuex state: + commit("setSelectedKeplrAccount", selectedAccount); + }, + }, getters: { appVersion: (state) => { return state.packageVersion; + }, + loggedIn: (state) => { + return state.selectedKeplrAccount !== null; + }, + keplrSigner: (state) => { + return state.keplrSigner; + }, + selectedKeplrAccount: (state) => { + return state.selectedKeplrAccount; } - } -}) -init(store) -export default store + }, +}); + +init(store); +export default store; diff --git a/src/views/Accounts/Accounts.vue b/src/views/Accounts/Accounts.vue index cbace21..9e43a4e 100644 --- a/src/views/Accounts/Accounts.vue +++ b/src/views/Accounts/Accounts.vue @@ -115,7 +115,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, diff --git a/src/views/Accounts/GrantActionAccount.vue b/src/views/Accounts/GrantActionAccount.vue index 88fcb0d..6d1c8c3 100644 --- a/src/views/Accounts/GrantActionAccount.vue +++ b/src/views/Accounts/GrantActionAccount.vue @@ -25,7 +25,7 @@ export default { computed: { isSignedIn() { - const loggedIn = this.$store.getters['common/wallet/loggedIn'] + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn } }, @@ -35,14 +35,13 @@ export default { this.txProcessing = true; let loader = this.$loading.show(); - - if (!this.$store.getters['common/wallet/loggedIn']) { - this.$toast.add({ severity: 'warn', summary: 'Please sign in', detail: 'Please sign in to at least one account', life: 3000 }) - return + let account; + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; } - const wallet = this.$store.getters['common/wallet/wallet'] - const accounts = wallet.accounts - const account = wallet.accounts[0] const creatorAddress = account.address this.$store diff --git a/src/views/Accounts/ProposeNewAccount.vue b/src/views/Accounts/ProposeNewAccount.vue index 3546d03..d56707e 100644 --- a/src/views/Accounts/ProposeNewAccount.vue +++ b/src/views/Accounts/ProposeNewAccount.vue @@ -62,9 +62,14 @@ export default { } catch (e) { this.error = e.message } - const wallet = this.$store.getters['common/wallet/wallet'] - const accounts = wallet.accounts - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address //this.$store.dispatch('zigbeealliance.distributedcomplianceledger.model/sendMsgCreateModel', { diff --git a/src/views/Compliance/CertifyModel.vue b/src/views/Compliance/CertifyModel.vue index b5e5795..9ea30ae 100644 --- a/src/views/Compliance/CertifyModel.vue +++ b/src/views/Compliance/CertifyModel.vue @@ -78,8 +78,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address const method = this.update ? 'sendMsgUpdateComplianceInfo' : 'sendMsgCertifyModel' diff --git a/src/views/Compliance/Compliance.vue b/src/views/Compliance/Compliance.vue index dea83c1..5c70731 100644 --- a/src/views/Compliance/Compliance.vue +++ b/src/views/Compliance/Compliance.vue @@ -90,7 +90,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, }, @@ -143,7 +143,6 @@ export default { showCertifyModelDialog(model, viewOnly = false) { this.selectedRevokedModel = model; this.showCertifyModel = true; - console.log('Value for viewOnly is ', viewOnly) this.showCertifyModelViewOnly = viewOnly; }, dismissCertifyModelDialog() { diff --git a/src/views/Compliance/ProvisionModel.vue b/src/views/Compliance/ProvisionModel.vue index 6da6ac3..b42faf8 100644 --- a/src/views/Compliance/ProvisionModel.vue +++ b/src/views/Compliance/ProvisionModel.vue @@ -62,8 +62,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true; diff --git a/src/views/Compliance/RevokeModel.vue b/src/views/Compliance/RevokeModel.vue index e0104d5..6d9615d 100644 --- a/src/views/Compliance/RevokeModel.vue +++ b/src/views/Compliance/RevokeModel.vue @@ -60,8 +60,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true; diff --git a/src/views/Models/ModelInfo.vue b/src/views/Models/ModelInfo.vue index a00989e..5d46403 100644 --- a/src/views/Models/ModelInfo.vue +++ b/src/views/Models/ModelInfo.vue @@ -73,8 +73,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true; diff --git a/src/views/Models/ModelVersionInfo.vue b/src/views/Models/ModelVersionInfo.vue index 65b1367..461c117 100644 --- a/src/views/Models/ModelVersionInfo.vue +++ b/src/views/Models/ModelVersionInfo.vue @@ -77,8 +77,14 @@ export default { return; } - const wallet = this.$store.getters["common/wallet/wallet"]; - const account = wallet.accounts[0]; + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address; this.txProcessing = true; diff --git a/src/views/Models/ModelVersions.vue b/src/views/Models/ModelVersions.vue index 803aa4a..5d550f8 100644 --- a/src/views/Models/ModelVersions.vue +++ b/src/views/Models/ModelVersions.vue @@ -59,8 +59,14 @@ export default { }); }, deleteModelVersion(modelVersion) { - const wallet = this.$store.getters["common/wallet/wallet"]; - const account = wallet.accounts[0]; + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address; this.txProcessing = true; let loader = this.$loading.show(); @@ -214,7 +220,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, }, diff --git a/src/views/Models/Models.vue b/src/views/Models/Models.vue index 74ff381..86563df 100644 --- a/src/views/Models/Models.vue +++ b/src/views/Models/Models.vue @@ -62,8 +62,14 @@ export default { }); }, deleteModel(model) { - const wallet = this.$store.getters["common/wallet/wallet"]; - const account = wallet.accounts[0]; + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address; let loader = this.$loading.show(); this.$store @@ -154,7 +160,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, }, diff --git a/src/views/PKI/AddLeafCertificate.vue b/src/views/PKI/AddLeafCertificate.vue index d6382a8..e96dcc6 100644 --- a/src/views/PKI/AddLeafCertificate.vue +++ b/src/views/PKI/AddLeafCertificate.vue @@ -49,8 +49,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true diff --git a/src/views/PKI/GrantActionRootCertificate.vue b/src/views/PKI/GrantActionRootCertificate.vue index 75801f6..79d2463 100644 --- a/src/views/PKI/GrantActionRootCertificate.vue +++ b/src/views/PKI/GrantActionRootCertificate.vue @@ -20,7 +20,7 @@ export default { computed: { isSignedIn() { - const loggedIn = this.$store.getters['common/wallet/loggedIn'] + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn } }, @@ -30,13 +30,14 @@ export default { this.txProcessing = true; let loader = this.$loading.show(); - if (!this.$store.getters['common/wallet/loggedIn']) { - this.$toast.add({ severity: 'warn', summary: 'Please sign in', detail: 'Please sign in to at least one account', life: 3000 }) - return + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; } - const wallet = this.$store.getters['common/wallet/wallet'] - const accounts = wallet.accounts - const account = wallet.accounts[0] const creatorAddress = account.address const methodName = `zigbeealliance.distributedcomplianceledger.pki/sendMsg${this.action}` diff --git a/src/views/PKI/LeafCertificates.vue b/src/views/PKI/LeafCertificates.vue index b239c71..5ca7f0d 100644 --- a/src/views/PKI/LeafCertificates.vue +++ b/src/views/PKI/LeafCertificates.vue @@ -132,7 +132,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, }, diff --git a/src/views/PKI/PKI.vue b/src/views/PKI/PKI.vue index 3aa6746..74daaf0 100644 --- a/src/views/PKI/PKI.vue +++ b/src/views/PKI/PKI.vue @@ -177,7 +177,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, }, @@ -256,7 +256,6 @@ export default { selectCertificate(certificate) { alert(certificate); - console.log(certificate); this.selectedCertificate = certificate; }, trimAddress(address) { diff --git a/src/views/PKI/ProposeRootCertificate.vue b/src/views/PKI/ProposeRootCertificate.vue index 3dc8cc5..61c78c4 100644 --- a/src/views/PKI/ProposeRootCertificate.vue +++ b/src/views/PKI/ProposeRootCertificate.vue @@ -52,8 +52,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true; diff --git a/src/views/Upgrades/Upgrades.vue b/src/views/Upgrades/Upgrades.vue index a36ff10..c797cc0 100644 --- a/src/views/Upgrades/Upgrades.vue +++ b/src/views/Upgrades/Upgrades.vue @@ -98,7 +98,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/wallet"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, diff --git a/src/views/Validators/GrantActionValidator.vue b/src/views/Validators/GrantActionValidator.vue index 8d612de..d2750ec 100644 --- a/src/views/Validators/GrantActionValidator.vue +++ b/src/views/Validators/GrantActionValidator.vue @@ -25,7 +25,7 @@ export default { computed: { isSignedIn() { - const loggedIn = this.$store.getters['common/wallet/loggedIn'] + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn } }, @@ -40,9 +40,14 @@ export default { this.$toast.add({ severity: 'warn', summary: 'Please sign in', detail: 'Please sign in to at least one account', life: 3000 }) return } - const wallet = this.$store.getters['common/wallet/wallet'] - const accounts = wallet.accounts - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.$store diff --git a/src/views/Validators/ValidatorInfo.vue b/src/views/Validators/ValidatorInfo.vue index 0ae5c5d..dda092f 100644 --- a/src/views/Validators/ValidatorInfo.vue +++ b/src/views/Validators/ValidatorInfo.vue @@ -55,8 +55,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address let encodedBasePubkey diff --git a/src/views/Validators/Validators.vue b/src/views/Validators/Validators.vue index 28aae70..65409b1 100644 --- a/src/views/Validators/Validators.vue +++ b/src/views/Validators/Validators.vue @@ -116,7 +116,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, validatorDialogHeader() { diff --git a/src/views/VendorInfo/VendorInfo.vue b/src/views/VendorInfo/VendorInfo.vue index a71ed83..0fc05c3 100644 --- a/src/views/VendorInfo/VendorInfo.vue +++ b/src/views/VendorInfo/VendorInfo.vue @@ -59,8 +59,14 @@ export default { return } - const wallet = this.$store.getters['common/wallet/wallet'] - const account = wallet.accounts[0] + let account; + + if(this.$store.state.selectedKeplrAccount) { + account = this.$store.state.selectedKeplrAccount; + } else { + const wallet = this.$store.getters['common/wallet/wallet']; + account = wallet && wallet.accounts && wallet.accounts.length > 0 ? wallet.accounts[0] : null; + } const creatorAddress = account.address this.txProcessing = true; diff --git a/src/views/VendorInfo/Vendors.vue b/src/views/VendorInfo/Vendors.vue index 247f665..87a5521 100644 --- a/src/views/VendorInfo/Vendors.vue +++ b/src/views/VendorInfo/Vendors.vue @@ -54,7 +54,7 @@ export default { }, isSignedIn() { - const loggedIn = this.$store.getters["common/wallet/loggedIn"]; + const loggedIn = this.$store.getters["loggedIn"] || this.$store.getters["common/wallet/loggedIn"]; return loggedIn; }, },