From 82d8e87e95c9e2f51f1b8307a9995ce69ef34cf3 Mon Sep 17 00:00:00 2001 From: Mike Godenzi Date: Tue, 21 Mar 2023 15:41:16 +0100 Subject: [PATCH] chore/enable-coreum --- .gitlab-ci.yml | 2 - package-lock.json | 304 +++++++++--------- package.json | 38 +-- src/app/app.module.ts | 3 +- .../delegation/TezosDelegationExtensions.ts | 29 -- .../services/exchange/exchange.changenow.ts | 2 +- .../services/extensions/extensions.service.ts | 26 +- src/assets/workers/airgap-coin-lib.js | 3 + 8 files changed, 190 insertions(+), 217 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca5d46405..c1432b6df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -182,7 +182,6 @@ publish-web-dev: when: manual only: - develop - - release/3.24.0 needs: - build-web @@ -201,7 +200,6 @@ deploy-web-dev: when: manual only: - develop - - release/3.24.0 script: - find k8s -type f -name \*.yaml -exec sed -i "s|__NAMESPACE__|"$NAMESPACE"|g" {} + - find k8s -type f -name \*.yaml -exec sed -i "s|__CI_PROJECT_NAME__|"$CI_PROJECT_NAME"|g" {} + diff --git a/package-lock.json b/package-lock.json index 061e0e6ae..ecc995f32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,27 +9,27 @@ "version": "0.0.1", "hasInstallScript": true, "dependencies": { - "@airgap/aeternity": "0.13.11", - "@airgap/angular-core": "0.0.35", - "@airgap/angular-ngrx": "0.0.35", - "@airgap/astar": "0.13.11", + "@airgap/aeternity": "0.13.12", + "@airgap/angular-core": "0.0.36", + "@airgap/angular-ngrx": "0.0.36", + "@airgap/astar": "0.13.12", "@airgap/beacon-sdk": "3.1.5-beta.0", - "@airgap/bitcoin": "0.13.11", - "@airgap/coinlib-core": "0.13.11", - "@airgap/coreum": "0.13.11", - "@airgap/cosmos": "0.13.11", - "@airgap/cosmos-core": "0.13.11", - "@airgap/crypto": "0.13.11", - "@airgap/ethereum": "0.13.11", - "@airgap/groestlcoin": "0.13.11", - "@airgap/icp": "0.13.11", - "@airgap/module-kit": "0.13.11", - "@airgap/moonbeam": "0.13.11", - "@airgap/polkadot": "0.13.11", + "@airgap/bitcoin": "0.13.12", + "@airgap/coinlib-core": "0.13.12", + "@airgap/coreum": "0.13.12", + "@airgap/cosmos": "0.13.12", + "@airgap/cosmos-core": "0.13.12", + "@airgap/crypto": "0.13.12", + "@airgap/ethereum": "0.13.12", + "@airgap/groestlcoin": "0.13.12", + "@airgap/icp": "0.13.12", + "@airgap/module-kit": "0.13.12", + "@airgap/moonbeam": "0.13.12", + "@airgap/polkadot": "0.13.12", "@airgap/sapling-wasm": "0.0.7", - "@airgap/serializer": "0.13.11", - "@airgap/substrate": "0.13.11", - "@airgap/tezos": "0.13.11", + "@airgap/serializer": "0.13.12", + "@airgap/substrate": "0.13.12", + "@airgap/tezos": "0.13.12", "@angular/animations": "^11.2.9", "@angular/common": "^11.2.9", "@angular/core": "^11.2.9", @@ -161,9 +161,9 @@ } }, "node_modules/@airgap/aeternity": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/aeternity/-/aeternity-0.13.11.tgz", - "integrity": "sha512-OznWplAuF4WAKN9pVfYeMpBV2BNL/XqPPNqI6Pu9U6TyjmgwOPxEd1dJSBrCvEBgWjEGcHfdTTpcIfEFuW3dcA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/aeternity/-/aeternity-0.13.12.tgz", + "integrity": "sha512-bzcSQK5tDtHxMLasvQUJOOj6fNUmdF9Uct8xX3X/4GS7ZNlQ4zl2pPyfkA4eUgiKE36pKHyH+hQUBCIoOQ7ciA==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -172,30 +172,30 @@ } }, "node_modules/@airgap/angular-core": { - "version": "0.0.35", - "resolved": "https://registry.npmjs.org/@airgap/angular-core/-/angular-core-0.0.35.tgz", - "integrity": "sha512-8AR8CxOOdlBuEao5dbz0AOLzdunrspWhM+e3CCYHTaJ0drxL73TKiWB3B0OSmqsJB+ioMfs3e9fb5Kx+R45FWw==", + "version": "0.0.36", + "resolved": "https://registry.npmjs.org/@airgap/angular-core/-/angular-core-0.0.36.tgz", + "integrity": "sha512-iMf8MKB5OTfh+PRZXLY07y8xD4eSvdU9CeWmpSb+eu0utr6sXTOo4vbQNTDfO6PCGyfXcdXOL8ddxsyUSnGz+g==", "dependencies": { "tslib": "^2.2.0" }, "peerDependencies": { - "@airgap/aeternity": "^0.13.11", - "@airgap/astar": "^0.13.11", - "@airgap/bitcoin": "^0.13.11", - "@airgap/coinlib-core": "^0.13.11", - "@airgap/coreum": "^0.13.11", - "@airgap/cosmos": "^0.13.11", - "@airgap/cosmos-core": "^0.13.11", - "@airgap/crypto": "^0.13.11", - "@airgap/ethereum": "^0.13.11", - "@airgap/groestlcoin": "^0.13.11", - "@airgap/icp": "^0.13.11", - "@airgap/module-kit": "^0.13.11", - "@airgap/moonbeam": "^0.13.11", - "@airgap/polkadot": "^0.13.11", - "@airgap/serializer": "^0.13.11", - "@airgap/substrate": "^0.13.11", - "@airgap/tezos": "^0.13.11", + "@airgap/aeternity": "^0.13.12", + "@airgap/astar": "^0.13.12", + "@airgap/bitcoin": "^0.13.12", + "@airgap/coinlib-core": "^0.13.12", + "@airgap/coreum": "^0.13.12", + "@airgap/cosmos": "^0.13.12", + "@airgap/cosmos-core": "^0.13.12", + "@airgap/crypto": "^0.13.12", + "@airgap/ethereum": "^0.13.12", + "@airgap/groestlcoin": "^0.13.12", + "@airgap/icp": "^0.13.12", + "@airgap/module-kit": "^0.13.12", + "@airgap/moonbeam": "^0.13.12", + "@airgap/polkadot": "^0.13.12", + "@airgap/serializer": "^0.13.12", + "@airgap/substrate": "^0.13.12", + "@airgap/tezos": "^0.13.12", "@angular/animations": "^11.2.9", "@angular/common": "^11.2.9", "@angular/core": "^11.2.9", @@ -236,15 +236,15 @@ } }, "node_modules/@airgap/angular-ngrx": { - "version": "0.0.35", - "resolved": "https://registry.npmjs.org/@airgap/angular-ngrx/-/angular-ngrx-0.0.35.tgz", - "integrity": "sha512-2HWWzTZCeCEcRBAWRrtyMl6uwu9CdFpDlJEZcCsNqJOWXKbvped6CC2xRTnJjnwUdDzEHh1rZK85UH6EdAQYCQ==", + "version": "0.0.36", + "resolved": "https://registry.npmjs.org/@airgap/angular-ngrx/-/angular-ngrx-0.0.36.tgz", + "integrity": "sha512-qYa2NUXmsfiAxDxij7inBgyKwv/Gwa/pzBJAXcypdLwt0PSnaHoQpllSTc/jcDJaYKW+sp8xVW46fUilJ9oGMQ==", "dependencies": { "tslib": "^2.2.0" }, "peerDependencies": { - "@airgap/angular-core": "^0.0.35", - "@airgap/coinlib-core": "^0.13.11", + "@airgap/angular-core": "^0.0.36", + "@airgap/coinlib-core": "^0.13.12", "@angular/common": "^11.2.9", "@angular/core": "^11.2.9", "@angular/platform-browser": "^11.2.9", @@ -258,9 +258,9 @@ } }, "node_modules/@airgap/astar": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/astar/-/astar-0.13.11.tgz", - "integrity": "sha512-RmSEpUZjJDg4kZz072PFjcr4BFsgFklX9NxD3H14ti05wogrfffh4tpRZ2e1Fiutk0untzMXF+5RnTKWr+EE8Q==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/astar/-/astar-0.13.12.tgz", + "integrity": "sha512-d+yfdqnwbf2h0qSOgRxDVWSTHwuhUZ+EmMXs7Dqet7zkt8YlpqiYFyh+X1g1QuqLmoZKVmbUbWroq3Tv4pLa9w==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -409,9 +409,9 @@ } }, "node_modules/@airgap/bitcoin": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/bitcoin/-/bitcoin-0.13.11.tgz", - "integrity": "sha512-e7etADjHZTjd1UGVCbBfsubkIzgBn0GuCmDy4KrVpxnzzYYrJ8NQ+Ol4ZMymBZT2iljZV/WB04QqBQcjASMsMA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/bitcoin/-/bitcoin-0.13.12.tgz", + "integrity": "sha512-sWT1ohlSuaRWG1qeWSNaN8xia+0TeplLW0Wvg/OvqaUt+tzgdNPgCihL/ezbkTykWlNyFrkT+3J5ARE4pv7gfA==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -421,9 +421,9 @@ } }, "node_modules/@airgap/coinlib-core": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/coinlib-core/-/coinlib-core-0.13.11.tgz", - "integrity": "sha512-v094u3tMvelOW7YPgv1NLurDsbvD5YhXAjNHw88GAy64PMmEO82nX9CrdbW2Ipj1bzpwzBwecASFsEVrEVF+Sg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/coinlib-core/-/coinlib-core-0.13.12.tgz", + "integrity": "sha512-/GkW2keobLdYcBLJGAstsHIWVzgcAhV6fVabjqq57cQQbSmXa15j509HL9ih+GYfOm/uvuFe5nZo+CTSc5V6vQ==", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/bytes": "^1.0.1", @@ -435,9 +435,9 @@ } }, "node_modules/@airgap/coreum": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/coreum/-/coreum-0.13.11.tgz", - "integrity": "sha512-y9+l2jJtc86emL62ktvdOuObL9In+jp5BQkrH/FteOBgxrlM9hiPMi5q5sjthApl9bNbMxovgdm5iBLTIPFofw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/coreum/-/coreum-0.13.12.tgz", + "integrity": "sha512-wHafjkBQ++0RU8DJPuLNTijZ8ymR3orNmGMVDWabF80nv3BhOUyG8AwJRtuP0G/MGWQjJQbhCOLENNl1CDoHAw==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/cosmos-core": "*", @@ -447,9 +447,9 @@ } }, "node_modules/@airgap/cosmos": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/cosmos/-/cosmos-0.13.11.tgz", - "integrity": "sha512-CGXpd5EoDkBXtzLPW2ZanbylqtwJvy22LOdquKUdrtGExnJeS+sAUHIxJOT5cwUK7uYY0d0bpe6gJ2g1UZKnSg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/cosmos/-/cosmos-0.13.12.tgz", + "integrity": "sha512-Sx2x7pUcqXf2K6Dxbjqz3L33l9VqXQMLKwHraf7IKFeKdf0xcFzdr0uVKUb9waQRTs/gDBY+ldKHJOIEGCiZnA==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/cosmos-core": "*", @@ -459,9 +459,9 @@ } }, "node_modules/@airgap/cosmos-core": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/cosmos-core/-/cosmos-core-0.13.11.tgz", - "integrity": "sha512-QjzRpsNfxOS6duf1kDTRyyZ40tIIyLh0br5Jul0bZrKqCUEQUdm8Jw88QebgfjDgiCvqgIR6z9praYLti4oB8g==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/cosmos-core/-/cosmos-core-0.13.12.tgz", + "integrity": "sha512-9Ts3wqEX6xLggbYMh55DJwy4fupmy/OsXjMPsfuZa3XlbGAVk5XI4QI6TOuBb1fEgtGI/LTFUaPuhNKHbT84/g==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -470,9 +470,9 @@ } }, "node_modules/@airgap/crypto": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/crypto/-/crypto-0.13.11.tgz", - "integrity": "sha512-BZkpRXwMk1yWrLpgVy29jukZ6k5PrFQGvoE81CFkyodA586aI35cBLJ5+jMPLI/X11uCW8SH2TzvEMSbrRmmRQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/crypto/-/crypto-0.13.12.tgz", + "integrity": "sha512-0nZFkdzSq/8uytJ7spO7uIRgtrBBhaOho98LNhVEcOP6XS2iBE8O0Lt0fAizEETL5U65IB+2vfXd/qErmwzw1g==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -487,9 +487,9 @@ "integrity": "sha512-rJjV7JIDxoardnZMgk4Uor5Z6OVsAE4I5uDlkGAb0tQ5NN0gmz9Bu2LKMPSCv7UqDpZowDX4BbMDuSqdO/IsbQ==" }, "node_modules/@airgap/ethereum": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/ethereum/-/ethereum-0.13.11.tgz", - "integrity": "sha512-VIrEXKc9KTjOUUSMfJRJxFue/XBhH0+mo+cOQMjYSulOdEf51rzFgDIfVVrAm1fijboAOSFM2nH7RPFxC3RxHA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/ethereum/-/ethereum-0.13.12.tgz", + "integrity": "sha512-LQtiYFZC49imwYosYN2Xvij9tcAH9Tlz4ZXejswz1PTJPHVkM5X8mewzlSz++lPKlwqeokVh3xwI8j8A7nYgLg==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -501,9 +501,9 @@ } }, "node_modules/@airgap/groestlcoin": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/groestlcoin/-/groestlcoin-0.13.11.tgz", - "integrity": "sha512-tXSDmPsaaWXVxbQUw+CYhCIa+lpbdwU75jcSbpENZ33PCq/eohunHv+T0Q3UAbv4ovzhmvFLyUDM+Ezp9ECf5A==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/groestlcoin/-/groestlcoin-0.13.12.tgz", + "integrity": "sha512-vggbH2OnUO47hjx3Z33nd0lgAsZiNEgGQLVTLGDxu63NDpjYIFEvhSNDnlKbXhfZNKUaoCRWSj1OcYykfQT11Q==", "dependencies": { "@airgap/bitcoin": "*", "@airgap/coinlib-core": "*", @@ -512,9 +512,9 @@ } }, "node_modules/@airgap/icp": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/icp/-/icp-0.13.11.tgz", - "integrity": "sha512-uSPud7JAzMwcc06FddEXpQ1cDCQpK/q2XOXxgE/porZb73v7RZ4ZxJixxT6vvoXg8PRhOTv/IkRLgjhgVItBbw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/icp/-/icp-0.13.12.tgz", + "integrity": "sha512-gWfSwXoTYBftn6EaArLkMdx1c405MITRJqz7UA9WMz2AAOm3QaFXCOLKYY5whAd9kqpsu51eEEWI9bwZ+LKYbw==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -592,18 +592,18 @@ } }, "node_modules/@airgap/module-kit": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/module-kit/-/module-kit-0.13.11.tgz", - "integrity": "sha512-NBjtCv3lyTe0ula8/GO/D3rU1/KngDDGi7G7NgnxzeKHDAnxFFkdJ9Zzft+V1htLPGJBex1i6K/T8lZBy/5ybw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/module-kit/-/module-kit-0.13.12.tgz", + "integrity": "sha512-CbILYbr9yBlylZB6K754C6LzomAScp/UiXdyi5kYDzD6B0KZVeUoapWmgYsJaV8/qs7TcF/rbn5uqXzOZqf40Q==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/serializer": "*" } }, "node_modules/@airgap/moonbeam": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/moonbeam/-/moonbeam-0.13.11.tgz", - "integrity": "sha512-Y7Gu+d7XqYXOOe+gb0cOnn4gFqhY/WutnBX0sEVFj2F9BUu16Y5klEfAZkGdb/NtXw9rEqvDcVMtktJG14fADQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/moonbeam/-/moonbeam-0.13.12.tgz", + "integrity": "sha512-EdowvRfV9lv86rBtLIfAnRlIwgW3Z0mS/KQMCzbUX2vNgrMb8aolerq9dWheE9jsP165RRvHcmYV3nUmyHvbWQ==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -612,9 +612,9 @@ } }, "node_modules/@airgap/polkadot": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/polkadot/-/polkadot-0.13.11.tgz", - "integrity": "sha512-arIkGz++ACExZbPrLC9NNrTk/96owCJ5JxJP93lxTkKy2qsZNvYUnISxEHVmcaLZ3u7xKL3AwB2k9Zqm7rjTHQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/polkadot/-/polkadot-0.13.12.tgz", + "integrity": "sha512-IeTrhamD4Mko92H9rg2qvmOa3ui7ISedego2LomCW51fFLojhW1QfyZ3izQ5REnutZjw80Grqsi3fUIMnTsjCA==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -627,17 +627,17 @@ "integrity": "sha512-IMODbGPTBYKuO5ztiHX9C1PTlhqZvmVWv7m7zj5+VMcbBxrk4+jBAf7FYTH5l+IUsNMaHBOuh8Qq3A1b/pm7jQ==" }, "node_modules/@airgap/serializer": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/serializer/-/serializer-0.13.11.tgz", - "integrity": "sha512-yLJQTiSd19QQiNmkJ2CLJboRryDt+QS89+1ZqxuGfHb2bBmUxUl/unksLwYmSKLzsOYdAJNPOG5gAailXRKkng==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/serializer/-/serializer-0.13.12.tgz", + "integrity": "sha512-R0QjWn9YAGUL/N03eILRdRAryFcOGB8t6B0BrxFOvGemPELlI7CyDvIlCvsUA9KUhrVEJkp0kotsjwHLZyB92w==", "dependencies": { "@airgap/coinlib-core": "*" } }, "node_modules/@airgap/substrate": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/substrate/-/substrate-0.13.11.tgz", - "integrity": "sha512-2q2NNN+5D3PoV+DUqOEsakObzI2nIBCyCmnRmmESITZJJe1/Dl/30SF2jB6fTDuH69j9yI3B8ciYLWGxR1OBTg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/substrate/-/substrate-0.13.12.tgz", + "integrity": "sha512-x2oxuP0e6Bw8oTgRu9NnjiewIdV/SHklY98ZauZeldFl8ItQ2sEAPFW+DEPVhkJUk08SFFA4vlffVsHuinHH3w==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -648,9 +648,9 @@ } }, "node_modules/@airgap/tezos": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/tezos/-/tezos-0.13.11.tgz", - "integrity": "sha512-ktUMM84L6ACaPUDu3ms0ui96QfHJH2SZIFKQaflnHyytbbljyj3WoaxFWYfsEYs8I9k+Lv5HJ18id2Q3JyXXNA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/tezos/-/tezos-0.13.12.tgz", + "integrity": "sha512-Jl1sZtAFPxhNvSjwDzLLUkpF6vuYVwaGWI8CX/8EBnXx1+075SDRK2oJVwsMI0t63P1Q5v6EGnPfAGYhm7yiOQ==", "dependencies": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26276,9 +26276,9 @@ }, "dependencies": { "@airgap/aeternity": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/aeternity/-/aeternity-0.13.11.tgz", - "integrity": "sha512-OznWplAuF4WAKN9pVfYeMpBV2BNL/XqPPNqI6Pu9U6TyjmgwOPxEd1dJSBrCvEBgWjEGcHfdTTpcIfEFuW3dcA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/aeternity/-/aeternity-0.13.12.tgz", + "integrity": "sha512-bzcSQK5tDtHxMLasvQUJOOj6fNUmdF9Uct8xX3X/4GS7ZNlQ4zl2pPyfkA4eUgiKE36pKHyH+hQUBCIoOQ7ciA==", "requires": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -26287,25 +26287,25 @@ } }, "@airgap/angular-core": { - "version": "0.0.35", - "resolved": "https://registry.npmjs.org/@airgap/angular-core/-/angular-core-0.0.35.tgz", - "integrity": "sha512-8AR8CxOOdlBuEao5dbz0AOLzdunrspWhM+e3CCYHTaJ0drxL73TKiWB3B0OSmqsJB+ioMfs3e9fb5Kx+R45FWw==", + "version": "0.0.36", + "resolved": "https://registry.npmjs.org/@airgap/angular-core/-/angular-core-0.0.36.tgz", + "integrity": "sha512-iMf8MKB5OTfh+PRZXLY07y8xD4eSvdU9CeWmpSb+eu0utr6sXTOo4vbQNTDfO6PCGyfXcdXOL8ddxsyUSnGz+g==", "requires": { "tslib": "^2.2.0" } }, "@airgap/angular-ngrx": { - "version": "0.0.35", - "resolved": "https://registry.npmjs.org/@airgap/angular-ngrx/-/angular-ngrx-0.0.35.tgz", - "integrity": "sha512-2HWWzTZCeCEcRBAWRrtyMl6uwu9CdFpDlJEZcCsNqJOWXKbvped6CC2xRTnJjnwUdDzEHh1rZK85UH6EdAQYCQ==", + "version": "0.0.36", + "resolved": "https://registry.npmjs.org/@airgap/angular-ngrx/-/angular-ngrx-0.0.36.tgz", + "integrity": "sha512-qYa2NUXmsfiAxDxij7inBgyKwv/Gwa/pzBJAXcypdLwt0PSnaHoQpllSTc/jcDJaYKW+sp8xVW46fUilJ9oGMQ==", "requires": { "tslib": "^2.2.0" } }, "@airgap/astar": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/astar/-/astar-0.13.11.tgz", - "integrity": "sha512-RmSEpUZjJDg4kZz072PFjcr4BFsgFklX9NxD3H14ti05wogrfffh4tpRZ2e1Fiutk0untzMXF+5RnTKWr+EE8Q==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/astar/-/astar-0.13.12.tgz", + "integrity": "sha512-d+yfdqnwbf2h0qSOgRxDVWSTHwuhUZ+EmMXs7Dqet7zkt8YlpqiYFyh+X1g1QuqLmoZKVmbUbWroq3Tv4pLa9w==", "requires": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -26458,9 +26458,9 @@ } }, "@airgap/bitcoin": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/bitcoin/-/bitcoin-0.13.11.tgz", - "integrity": "sha512-e7etADjHZTjd1UGVCbBfsubkIzgBn0GuCmDy4KrVpxnzzYYrJ8NQ+Ol4ZMymBZT2iljZV/WB04QqBQcjASMsMA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/bitcoin/-/bitcoin-0.13.12.tgz", + "integrity": "sha512-sWT1ohlSuaRWG1qeWSNaN8xia+0TeplLW0Wvg/OvqaUt+tzgdNPgCihL/ezbkTykWlNyFrkT+3J5ARE4pv7gfA==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26470,9 +26470,9 @@ } }, "@airgap/coinlib-core": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/coinlib-core/-/coinlib-core-0.13.11.tgz", - "integrity": "sha512-v094u3tMvelOW7YPgv1NLurDsbvD5YhXAjNHw88GAy64PMmEO82nX9CrdbW2Ipj1bzpwzBwecASFsEVrEVF+Sg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/coinlib-core/-/coinlib-core-0.13.12.tgz", + "integrity": "sha512-/GkW2keobLdYcBLJGAstsHIWVzgcAhV6fVabjqq57cQQbSmXa15j509HL9ih+GYfOm/uvuFe5nZo+CTSc5V6vQ==", "requires": { "@stablelib/blake2b": "^1.0.1", "@stablelib/bytes": "^1.0.1", @@ -26484,9 +26484,9 @@ } }, "@airgap/coreum": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/coreum/-/coreum-0.13.11.tgz", - "integrity": "sha512-y9+l2jJtc86emL62ktvdOuObL9In+jp5BQkrH/FteOBgxrlM9hiPMi5q5sjthApl9bNbMxovgdm5iBLTIPFofw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/coreum/-/coreum-0.13.12.tgz", + "integrity": "sha512-wHafjkBQ++0RU8DJPuLNTijZ8ymR3orNmGMVDWabF80nv3BhOUyG8AwJRtuP0G/MGWQjJQbhCOLENNl1CDoHAw==", "requires": { "@airgap/coinlib-core": "*", "@airgap/cosmos-core": "*", @@ -26496,9 +26496,9 @@ } }, "@airgap/cosmos": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/cosmos/-/cosmos-0.13.11.tgz", - "integrity": "sha512-CGXpd5EoDkBXtzLPW2ZanbylqtwJvy22LOdquKUdrtGExnJeS+sAUHIxJOT5cwUK7uYY0d0bpe6gJ2g1UZKnSg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/cosmos/-/cosmos-0.13.12.tgz", + "integrity": "sha512-Sx2x7pUcqXf2K6Dxbjqz3L33l9VqXQMLKwHraf7IKFeKdf0xcFzdr0uVKUb9waQRTs/gDBY+ldKHJOIEGCiZnA==", "requires": { "@airgap/coinlib-core": "*", "@airgap/cosmos-core": "*", @@ -26508,9 +26508,9 @@ } }, "@airgap/cosmos-core": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/cosmos-core/-/cosmos-core-0.13.11.tgz", - "integrity": "sha512-QjzRpsNfxOS6duf1kDTRyyZ40tIIyLh0br5Jul0bZrKqCUEQUdm8Jw88QebgfjDgiCvqgIR6z9praYLti4oB8g==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/cosmos-core/-/cosmos-core-0.13.12.tgz", + "integrity": "sha512-9Ts3wqEX6xLggbYMh55DJwy4fupmy/OsXjMPsfuZa3XlbGAVk5XI4QI6TOuBb1fEgtGI/LTFUaPuhNKHbT84/g==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26519,9 +26519,9 @@ } }, "@airgap/crypto": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/crypto/-/crypto-0.13.11.tgz", - "integrity": "sha512-BZkpRXwMk1yWrLpgVy29jukZ6k5PrFQGvoE81CFkyodA586aI35cBLJ5+jMPLI/X11uCW8SH2TzvEMSbrRmmRQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/crypto/-/crypto-0.13.12.tgz", + "integrity": "sha512-0nZFkdzSq/8uytJ7spO7uIRgtrBBhaOho98LNhVEcOP6XS2iBE8O0Lt0fAizEETL5U65IB+2vfXd/qErmwzw1g==", "requires": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -26538,9 +26538,9 @@ } }, "@airgap/ethereum": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/ethereum/-/ethereum-0.13.11.tgz", - "integrity": "sha512-VIrEXKc9KTjOUUSMfJRJxFue/XBhH0+mo+cOQMjYSulOdEf51rzFgDIfVVrAm1fijboAOSFM2nH7RPFxC3RxHA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/ethereum/-/ethereum-0.13.12.tgz", + "integrity": "sha512-LQtiYFZC49imwYosYN2Xvij9tcAH9Tlz4ZXejswz1PTJPHVkM5X8mewzlSz++lPKlwqeokVh3xwI8j8A7nYgLg==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26552,9 +26552,9 @@ } }, "@airgap/groestlcoin": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/groestlcoin/-/groestlcoin-0.13.11.tgz", - "integrity": "sha512-tXSDmPsaaWXVxbQUw+CYhCIa+lpbdwU75jcSbpENZ33PCq/eohunHv+T0Q3UAbv4ovzhmvFLyUDM+Ezp9ECf5A==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/groestlcoin/-/groestlcoin-0.13.12.tgz", + "integrity": "sha512-vggbH2OnUO47hjx3Z33nd0lgAsZiNEgGQLVTLGDxu63NDpjYIFEvhSNDnlKbXhfZNKUaoCRWSj1OcYykfQT11Q==", "requires": { "@airgap/bitcoin": "*", "@airgap/coinlib-core": "*", @@ -26563,9 +26563,9 @@ } }, "@airgap/icp": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/icp/-/icp-0.13.11.tgz", - "integrity": "sha512-uSPud7JAzMwcc06FddEXpQ1cDCQpK/q2XOXxgE/porZb73v7RZ4ZxJixxT6vvoXg8PRhOTv/IkRLgjhgVItBbw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/icp/-/icp-0.13.12.tgz", + "integrity": "sha512-gWfSwXoTYBftn6EaArLkMdx1c405MITRJqz7UA9WMz2AAOm3QaFXCOLKYY5whAd9kqpsu51eEEWI9bwZ+LKYbw==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26627,18 +26627,18 @@ } }, "@airgap/module-kit": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/module-kit/-/module-kit-0.13.11.tgz", - "integrity": "sha512-NBjtCv3lyTe0ula8/GO/D3rU1/KngDDGi7G7NgnxzeKHDAnxFFkdJ9Zzft+V1htLPGJBex1i6K/T8lZBy/5ybw==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/module-kit/-/module-kit-0.13.12.tgz", + "integrity": "sha512-CbILYbr9yBlylZB6K754C6LzomAScp/UiXdyi5kYDzD6B0KZVeUoapWmgYsJaV8/qs7TcF/rbn5uqXzOZqf40Q==", "requires": { "@airgap/coinlib-core": "*", "@airgap/serializer": "*" } }, "@airgap/moonbeam": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/moonbeam/-/moonbeam-0.13.11.tgz", - "integrity": "sha512-Y7Gu+d7XqYXOOe+gb0cOnn4gFqhY/WutnBX0sEVFj2F9BUu16Y5klEfAZkGdb/NtXw9rEqvDcVMtktJG14fADQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/moonbeam/-/moonbeam-0.13.12.tgz", + "integrity": "sha512-EdowvRfV9lv86rBtLIfAnRlIwgW3Z0mS/KQMCzbUX2vNgrMb8aolerq9dWheE9jsP165RRvHcmYV3nUmyHvbWQ==", "requires": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -26647,9 +26647,9 @@ } }, "@airgap/polkadot": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/polkadot/-/polkadot-0.13.11.tgz", - "integrity": "sha512-arIkGz++ACExZbPrLC9NNrTk/96owCJ5JxJP93lxTkKy2qsZNvYUnISxEHVmcaLZ3u7xKL3AwB2k9Zqm7rjTHQ==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/polkadot/-/polkadot-0.13.12.tgz", + "integrity": "sha512-IeTrhamD4Mko92H9rg2qvmOa3ui7ISedego2LomCW51fFLojhW1QfyZ3izQ5REnutZjw80Grqsi3fUIMnTsjCA==", "requires": { "@airgap/coinlib-core": "*", "@airgap/module-kit": "*", @@ -26662,17 +26662,17 @@ "integrity": "sha512-IMODbGPTBYKuO5ztiHX9C1PTlhqZvmVWv7m7zj5+VMcbBxrk4+jBAf7FYTH5l+IUsNMaHBOuh8Qq3A1b/pm7jQ==" }, "@airgap/serializer": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/serializer/-/serializer-0.13.11.tgz", - "integrity": "sha512-yLJQTiSd19QQiNmkJ2CLJboRryDt+QS89+1ZqxuGfHb2bBmUxUl/unksLwYmSKLzsOYdAJNPOG5gAailXRKkng==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/serializer/-/serializer-0.13.12.tgz", + "integrity": "sha512-R0QjWn9YAGUL/N03eILRdRAryFcOGB8t6B0BrxFOvGemPELlI7CyDvIlCvsUA9KUhrVEJkp0kotsjwHLZyB92w==", "requires": { "@airgap/coinlib-core": "*" } }, "@airgap/substrate": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/substrate/-/substrate-0.13.11.tgz", - "integrity": "sha512-2q2NNN+5D3PoV+DUqOEsakObzI2nIBCyCmnRmmESITZJJe1/Dl/30SF2jB6fTDuH69j9yI3B8ciYLWGxR1OBTg==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/substrate/-/substrate-0.13.12.tgz", + "integrity": "sha512-x2oxuP0e6Bw8oTgRu9NnjiewIdV/SHklY98ZauZeldFl8ItQ2sEAPFW+DEPVhkJUk08SFFA4vlffVsHuinHH3w==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", @@ -26683,9 +26683,9 @@ } }, "@airgap/tezos": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/@airgap/tezos/-/tezos-0.13.11.tgz", - "integrity": "sha512-ktUMM84L6ACaPUDu3ms0ui96QfHJH2SZIFKQaflnHyytbbljyj3WoaxFWYfsEYs8I9k+Lv5HJ18id2Q3JyXXNA==", + "version": "0.13.12", + "resolved": "https://registry.npmjs.org/@airgap/tezos/-/tezos-0.13.12.tgz", + "integrity": "sha512-Jl1sZtAFPxhNvSjwDzLLUkpF6vuYVwaGWI8CX/8EBnXx1+075SDRK2oJVwsMI0t63P1Q5v6EGnPfAGYhm7yiOQ==", "requires": { "@airgap/coinlib-core": "*", "@airgap/crypto": "*", diff --git a/package.json b/package.json index dbe560129..09f916482 100644 --- a/package.json +++ b/package.json @@ -55,27 +55,27 @@ } }, "dependencies": { - "@airgap/aeternity": "0.13.11", - "@airgap/angular-core": "0.0.35", - "@airgap/angular-ngrx": "0.0.35", - "@airgap/astar": "0.13.11", + "@airgap/aeternity": "0.13.12", + "@airgap/angular-core": "0.0.36", + "@airgap/angular-ngrx": "0.0.36", + "@airgap/astar": "0.13.12", "@airgap/beacon-sdk": "3.1.5-beta.0", - "@airgap/bitcoin": "0.13.11", - "@airgap/coinlib-core": "0.13.11", - "@airgap/coreum": "0.13.11", - "@airgap/cosmos": "0.13.11", - "@airgap/cosmos-core": "0.13.11", - "@airgap/crypto": "0.13.11", - "@airgap/ethereum": "0.13.11", - "@airgap/groestlcoin": "0.13.11", - "@airgap/icp": "0.13.11", - "@airgap/module-kit": "0.13.11", - "@airgap/moonbeam": "0.13.11", - "@airgap/polkadot": "0.13.11", + "@airgap/bitcoin": "0.13.12", + "@airgap/coinlib-core": "0.13.12", + "@airgap/coreum": "0.13.12", + "@airgap/cosmos": "0.13.12", + "@airgap/cosmos-core": "0.13.12", + "@airgap/crypto": "0.13.12", + "@airgap/ethereum": "0.13.12", + "@airgap/groestlcoin": "0.13.12", + "@airgap/icp": "0.13.12", + "@airgap/module-kit": "0.13.12", + "@airgap/moonbeam": "0.13.12", + "@airgap/polkadot": "0.13.12", "@airgap/sapling-wasm": "0.0.7", - "@airgap/serializer": "0.13.11", - "@airgap/substrate": "0.13.11", - "@airgap/tezos": "0.13.11", + "@airgap/serializer": "0.13.12", + "@airgap/substrate": "0.13.12", + "@airgap/tezos": "0.13.12", "@angular/animations": "^11.2.9", "@angular/common": "^11.2.9", "@angular/core": "^11.2.9", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d7303270f..c94b5e903 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -22,6 +22,7 @@ import { ZIP_PLUGIN } from '@airgap/angular-core' import { AirGapAngularNgRxModule, currencySymbolNgRxFacade } from '@airgap/angular-ngrx' +import { CoreumModule } from '@airgap/coreum' import { ICPModule } from '@airgap/icp' import { CommonModule, DecimalPipe, PercentPipe } from '@angular/common' import { HttpClient, HttpClientModule } from '@angular/common/http' @@ -153,7 +154,7 @@ export function createTranslateLoader(http: HttpClient): AirGapTranslateLoader { { provide: SPLASH_SCREEN_PLUGIN, useValue: SplashScreen }, { provide: STATUS_BAR_PLUGIN, useValue: StatusBar }, { provide: APP_CONFIG, useValue: appConfig }, - { provide: ISOLATED_MODULES_PLUGIN, useValue: new WebIsolatedModules([new ICPModule()]) }, + { provide: ISOLATED_MODULES_PLUGIN, useValue: new WebIsolatedModules([new ICPModule(), new CoreumModule()]) }, { provide: ZIP_PLUGIN, useValue: Zip }, DecimalPipe, ShortenStringPipe, diff --git a/src/app/extensions/delegation/TezosDelegationExtensions.ts b/src/app/extensions/delegation/TezosDelegationExtensions.ts index 27719f29c..37cebcf6e 100644 --- a/src/app/extensions/delegation/TezosDelegationExtensions.ts +++ b/src/app/extensions/delegation/TezosDelegationExtensions.ts @@ -253,35 +253,6 @@ export class TezosDelegationExtensions extends V0ProtocolDelegationExtensions { - // if (!delegatorExtraInfo.isDelegated || !delegatorExtraInfo.value) { - // return undefined - // } - // const rewardInfo = await protocol.getDelegationRewards(delegatorExtraInfo.value, address) - - // return new UIRewardList({ - // rewards: await Promise.all( - // rewardInfo.map(async (info) => { - // return { - // index: info.cycle, - // amount: await this.amountConverterPipe.transform(new BigNumber(info.reward), { - // protocol - // }), - // collected: info.payout < new Date(), - // timestamp: info.payout.getTime() - // } - // }) - // ), - // indexColLabel: 'delegation-detail-tezos.rewards.index-col_label', - // amountColLabel: 'delegation-detail-tezos.rewards.amount-col_label', - // payoutColLabel: 'delegation-detail-tezos.rewards.payout-col_label' - // }) - // } - private async getKnownBakers(): Promise { if (this.knownBakers === undefined) { this.knownBakers = await this.coinlibService.getKnownTezosBakers() diff --git a/src/app/services/exchange/exchange.changenow.ts b/src/app/services/exchange/exchange.changenow.ts index c8d1549b7..553315610 100644 --- a/src/app/services/exchange/exchange.changenow.ts +++ b/src/app/services/exchange/exchange.changenow.ts @@ -330,7 +330,7 @@ export class ChangeNowExchange extends ChangeNowApi implements Exchange { } public async getAvailableToCurrenciesForCurrency(fromCurrency: ProtocolSymbols): Promise { - const transformedFromCurrency: ExchangeIdentifier = this.convertAirGapIdentifierToExchangeIdentifier([fromCurrency])[0] + const transformedFromCurrency: ExchangeIdentifier = this.convertAirGapIdentifierToExchangeIdentifier([fromCurrency])[0].toLowerCase() const result: CurrencyDetailResponse[] = await this.http .get(`${this.baseURL}/currencies-to/${transformedFromCurrency}`) diff --git a/src/app/services/extensions/extensions.service.ts b/src/app/services/extensions/extensions.service.ts index f9176431c..a7b0b53be 100644 --- a/src/app/services/extensions/extensions.service.ts +++ b/src/app/services/extensions/extensions.service.ts @@ -1,5 +1,5 @@ import { AddressService, AmountConverterPipe, ICoinDelegateProtocolAdapter, ProtocolService } from '@airgap/angular-core' -import { ICoinDelegateProtocol, ProtocolSymbols } from '@airgap/coinlib-core' +import { ICoinDelegateProtocol, MainProtocolSymbols, ProtocolSymbols } from '@airgap/coinlib-core' import { CosmosProtocol } from '@airgap/cosmos' import { MoonbaseProtocol, MoonbeamProtocol, MoonriverProtocol } from '@airgap/moonbeam' import { KusamaProtocol, PolkadotProtocol } from '@airgap/polkadot' @@ -8,7 +8,7 @@ import { DecimalPipe } from '@angular/common' import { Injectable } from '@angular/core' import { FormBuilder } from '@angular/forms' import { TranslateService } from '@ngx-translate/core' -// import { CoreumDelegationExtensions } from 'src/app/extensions/delegation/CoreumDelegationExtensions' +import { CoreumDelegationExtensions } from 'src/app/extensions/delegation/CoreumDelegationExtensions' import { CosmosDelegationExtensions } from '../../extensions/delegation/CosmosDelegationExtensions' import { MoonbeamDelegationExtensions } from '../../extensions/delegation/MoonbeamDelegationExtensions' @@ -86,17 +86,17 @@ export class ExtensionsService { ] private readonly v1Extensions: [ProtocolSymbols, () => Promise>][] = [ - // [ - // MainProtocolSymbols.COREUM, - // async () => - // CoreumDelegationExtensions.create( - // this.formBuilder, - // this.decimalPipe, - // this.amountConverterPipe, - // this.shortenStringPipe, - // this.translateService - // ) - // ] + [ + MainProtocolSymbols.COREUM, + async () => + CoreumDelegationExtensions.create( + this.formBuilder, + this.decimalPipe, + this.amountConverterPipe, + this.shortenStringPipe, + this.translateService + ) + ] ] public constructor( diff --git a/src/assets/workers/airgap-coin-lib.js b/src/assets/workers/airgap-coin-lib.js index 9cea629a0..a53cad951 100644 --- a/src/assets/workers/airgap-coin-lib.js +++ b/src/assets/workers/airgap-coin-lib.js @@ -55,6 +55,9 @@ const getProtocolByIdentifier = async (identifier) => { self.onmessage = (event) => { const wallets = event.data + if (wallets.map === undefined) { + return; + } Promise.all( wallets.map(async (wallet) => {