Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 76.0 into master #903

Merged
merged 96 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
631071f
feat: add lifi
skeremidchiev Jul 25, 2022
b7520fc
Merge remote-tracking branch 'origin/release-candidate-0_70.0' into l…
skeremidchiev Aug 2, 2022
91d1318
feat: min amount for LiFi
skeremidchiev Aug 10, 2022
71f734d
feat: remove min for LiFi
skeremidchiev Aug 12, 2022
843c3f4
Merge branch 'release-candidate-0.73.0' into lifi-integration
skeremidchiev Sep 9, 2022
37366b0
fix: added some fixes to prop binding and and nft screens
bradleySuira Sep 9, 2022
46d055b
fix: fixed nft asset binding
bradleySuira Sep 9, 2022
3fe3ddf
fix: removed resolutions prop
bradleySuira Sep 9, 2022
f20d744
fix: fix how we send params to routes inside nft screens / added netw…
bradleySuira Sep 12, 2022
48b06e3
feat: added loading indicator for send nft screen fees update
bradleySuira Sep 12, 2022
39b4e56
chore: updated wallet-core
bradleySuira Sep 14, 2022
30e3f2f
feat: easy evm integrations
kraikov Sep 15, 2022
1207200
Merge branch 'release-candidate-0.73.0' into fix/nft-send
bradleySuira Sep 19, 2022
c323568
fix: fixed ledger to ledger send for custom fees and blank screen error
bradleySuira Sep 22, 2022
29642b3
fix: inaccessible active network
Jennievon Sep 23, 2022
edb568a
fix format issues
Jennievon Sep 23, 2022
4e708af
fix gas fee showing 0 for NFT send
Jennievon Sep 23, 2022
0b3d9bc
fix: backup seed page - style modifications
Jennievon Sep 24, 2022
cefc023
fix formatting issues
Jennievon Sep 24, 2022
a8d3799
update warning class name
Jennievon Sep 24, 2022
b1861dd
Merge pull request #881 from liquality/ext-77-network-fee-is-always-z…
bradleySuira Sep 26, 2022
1abc815
fix: remove split chunks in prod
monokh Sep 20, 2022
14b50d2
test: what's new model updated
beemi Sep 20, 2022
1fcd577
test: what's new model updated
beemi Sep 20, 2022
aeb16e5
fix: fixed conflicts
bradleySuira Sep 26, 2022
53f13e8
fix: fixed address format for timeline
bradleySuira Sep 20, 2022
6cb2b4c
fix: fixed to address format in timeline
bradleySuira Sep 21, 2022
605d822
fix: timeline diagram for non-evm chains
kraikov Sep 20, 2022
87dfad1
fix: fixed conflicts
bradleySuira Sep 26, 2022
e1404dc
fix: bump wallet core version after some changes reverted from wallet…
beemi Sep 21, 2022
f498c28
fix: hide export private key option for Bitcoin accounts
bradleySuira Sep 21, 2022
7a882c0
fix: fixed conflicts in yarn lock file
bradleySuira Sep 26, 2022
be03c7a
chore: updated latest translation files
bradleySuira Sep 28, 2022
0706fad
Merge branch 'release-candidate-0.74.0' into feat/easy-evm-integrations
kraikov Sep 30, 2022
99c7ed5
fix: qr code uri
kraikov Sep 30, 2022
64bf591
feat: 0.75.0 release candidate
beemi Oct 2, 2022
d672a01
feat: bump wc & cryptoassets
kraikov Oct 3, 2022
7487524
Merge pull request #880 from liquality/ext-48-apply-and-cancel-button…
beemi Oct 4, 2022
902ef41
Merge pull request #874 from liquality/feat/easy-evm-integrations
beemi Oct 4, 2022
3f60aa9
Merge branch 'release-candidate-0.75.0' into ext-58-cancel-button-doe…
Jennievon Oct 4, 2022
9dd04ce
fix: wallet core (1.30.0) and crypto asset (1.15.0) versions bumped
beemi Oct 4, 2022
1ba3b25
Merge remote-tracking branch 'origin/release-candidate-0.75.0' into r…
beemi Oct 4, 2022
700213b
Merge pull request #886 from liquality/feat/update-translations-files
beemi Oct 4, 2022
044f2af
Merge branch 'release-candidate-0.75.0' into fix/nft-send
bradleySuira Oct 4, 2022
b060688
test: fix the export private key assertions message
beemi Oct 4, 2022
4af86c0
Merge pull request #882 from liquality/ext-58-cancel-button-doesnt-wo…
beemi Oct 4, 2022
178f795
fix: injection and other uses of chain networks
monokh Oct 5, 2022
9e6da60
Merge pull request #891 from liquality/fix-injection-evm
beemi Oct 5, 2022
8da4969
fix: wallet core bump version
beemi Oct 6, 2022
4460150
Labels should appear in their native language
stephien Oct 6, 2022
e34139b
Merge pull request #892 from stephien/patch-1
beemi Oct 6, 2022
b825435
fix: copy updated
beemi Oct 6, 2022
3503c26
Merge pull request #872 from liquality/fix/nft-send
beemi Oct 6, 2022
77b77b6
Merge branch 'release-candidate-0.75.0' into fix/ledger-screen-fixes
bradleySuira Oct 6, 2022
9654fcb
Merge pull request #879 from liquality/fix/ledger-screen-fixes
beemi Oct 6, 2022
ce5c176
fix: added back terms.html for all languages
bradleySuira Oct 6, 2022
a49965d
Merge pull request #893 from liquality/fix/add-back-terms-html-files
beemi Oct 6, 2022
b789eca
fix: added missing translation keys
bradleySuira Oct 6, 2022
a8cc756
Merge pull request #894 from liquality/fix/missing-translation-keys
beemi Oct 6, 2022
3f2a8a4
test: fix the export private key assertions message
beemi Oct 6, 2022
7726aa6
Merge branch 'release-candidate-0.75.0' into lifi-integration
monokh Oct 6, 2022
689f5c2
merge conflict
monokh Oct 7, 2022
c082712
fix: override should only happen when enabled
monokh Oct 7, 2022
3655feb
feat: rc 0.76.0
beemi Oct 10, 2022
9d15686
Merge pull request #895 from liquality/fix-override-injection
beemi Oct 10, 2022
bed07df
feat: rc 0.75.1
beemi Oct 10, 2022
6defea7
fix: handle slow quotes
monokh Oct 11, 2022
ab21c40
fix: injection should still work if not overriding
monokh Oct 11, 2022
7143173
Merge pull request #896 from liquality/fix-injection-no-default
beemi Oct 11, 2022
24b4b05
feat: copy updated
beemi Oct 11, 2022
16cd7fe
fix: added solana public node added
beemi Oct 12, 2022
8f1a491
fix: assets must be fetched from store instead of cryptoassets
kraikov Oct 12, 2022
1e5aa88
feat: bump wallet-core & cryptoassets versions
kraikov Oct 12, 2022
53315c8
Merge branch 'release-candidate-0.76.0' into fix/ext-152
kraikov Oct 12, 2022
49400c9
fix: assets must be fetched from store instead of cryptoassets (#897)
kraikov Oct 12, 2022
6aff78a
fix: lint
monokh Oct 12, 2022
10a1336
fix: added chainstack solana endpoint
beemi Oct 13, 2022
a938cce
fix: cryptoassets is an object not a function
kraikov Oct 13, 2022
c845c69
Merge branch 'release-candidate-0.76.0' into fix/ext-152
kraikov Oct 13, 2022
34c385a
Merge pull request #898 from liquality/fix/ext-152
monokh Oct 13, 2022
1e269f6
fix: add debridge and move testnet to goerli
monokh Oct 14, 2022
5dd2fef
Merge branch 'release-candidate-0.76.0' into lifi-debridge-goerli
monokh Oct 14, 2022
1184f53
feat: copy updated
beemi Oct 14, 2022
24011d5
Fixes Linear EXT-112
stephien Oct 16, 2022
238e58f
feat: solana quick node rpc url change 0.75.3
beemi Oct 16, 2022
6f3ca44
feat: solana nownodes node rpc url change 0.75.4
beemi Oct 16, 2022
714a30c
Merge pull request #899 from liquality/lifi-debridge-goerli
beemi Oct 18, 2022
82a88ac
Merge pull request #900 from stephien/patch-2
beemi Oct 18, 2022
9a2895a
fix: solana rpc endpoint updated with quiknode
beemi Oct 18, 2022
f5c8b85
Merge branch 'release-candidate-0.76.0' of github.com:liquality/walle…
beemi Oct 18, 2022
0a1cb95
fix: solana rpc endpoint updated with quiknode
beemi Oct 18, 2022
a0be062
feat: copy updated
beemi Oct 19, 2022
6fe817e
feat: copy updated
beemi Oct 19, 2022
fdf08b2
fix: what's new model copy updated
beemi Oct 19, 2022
ee215fb
fix: what's new model copy updated
beemi Oct 19, 2022
fea3dbf
Merge branch 'master' into release-candidate-0.76.0
beemi Oct 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ VUE_APP_ONRAMPER_WIDGET_URL=https://widget.onramper.com/
VUE_APP_ONRAMPER_API_KEY=
VUE_APP_SUPPORTED_LOCALES=en,es,zh,pt,ph,cb
VUE_APP_DEFAULT_LOCALE=en
VUE_APP_SOLANA_MAINNET_URL=https://red-sleek-rain.solana-mainnet.discover.quiknode.pro/fc112deb1e0228d09d0d8c12b8de5a601d251d80

18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ jobs:
asset_content_type: application/zip

# Run tests against Prod mainnet
- name: Regression tests against Mainnet (PROD Agent)
uses: beemi/puppeteer-headful@v1.0.12
env:
CI: 'true'
DISPLAY: :99
SEED_WORDS: ${{ secrets.TEST_NET_SEED_WORDS }}
TWENTY_FOUR_SEEDS: ${{ secrets.TWENTY_FOUR_SEEDS }}
with:
args: yarn test:mainnet:prodagent:release
# - name: Regression tests against Mainnet (PROD Agent)
# uses: beemi/puppeteer-headful@v1.0.12
# env:
# CI: 'true'
# DISPLAY: :99
# SEED_WORDS: ${{ secrets.TEST_NET_SEED_WORDS }}
# TWENTY_FOUR_SEEDS: ${{ secrets.TWENTY_FOUR_SEEDS }}
# with:
# args: yarn test:mainnet:prodagent:release
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-wallet",
"version": "0.74.0",
"version": "0.76.0",
"private": true,
"author": "Liquality <info@liquality.io>",
"scripts": {
Expand All @@ -21,15 +21,15 @@
"test-full-regression": "node_modules/mocha/bin/mocha"
},
"dependencies": {
"@liquality/cryptoassets": "1.14.18",
"@liquality/cryptoassets": "1.16.1",
"@liquality/ethereum-utils": "^1.13.12",
"@liquality/terra-networks": "^1.13.12",
"@liquality/types": "^1.13.12",
"@liquality/wallet-core": "1.29.23",
"@terra-money/terra.js": "^3.1.6",
"@liquality/wallet-core": "1.31.1",
"@terra-money/terra.js": "3.1.3",
"@testing-library/vue": "^5.8.2",
"amplitude-js": "8.18.2",
"bignumber.js": "9.0.2",
"bignumber.js": "9.1.0",
"bip39": "^3.0.2",
"bitcoinjs-lib": "6.0.2",
"bluebird": "^3.7.2",
Expand All @@ -39,7 +39,7 @@
"crypto-js": "^4.0.0",
"cryptocurrency-icons": "0.18.0",
"date-fns": "2.28.0",
"ethers": "5.5.4",
"ethers": "5.7.0",
"extension-port-stream": "^2.0.1",
"human-standard-token-abi": "^2.0.0",
"i18n-js": "^4.1.1",
Expand All @@ -53,7 +53,7 @@
"qrcode": "1.5.0",
"qs": "6.10.3",
"setimmediate": "^1.0.5",
"socket.io-client": "4.5.1",
"socket.io-client": "4.5.2",
"svg-url-loader": "7.1.1",
"uuid": "^8.1.0",
"v-tooltip": "^2.0.3",
Expand Down
28 changes: 28 additions & 0 deletions src/assets/icons/swapProviders/debridge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/swapProviders/lifi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions src/broker/Background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ChainNetworks } from '@liquality/wallet-core/dist/src/utils/networks'
import { buildConfig } from '@liquality/wallet-core'
import { BG_PREFIX, handleConnection, removeConnectId, getRootURL } from './utils'
import { getAsset } from '@liquality/cryptoassets'
import { getChain } from '@liquality/cryptoassets'
import { connectRemote } from './terra-injection'

function attemptOrWarn(func, message) {
Expand Down Expand Up @@ -54,7 +53,7 @@ class Background {
getChainIds(network) {
return buildConfig.chains.reduce((chainIds, chain) => {
return Object.assign({}, chainIds, {
[chain]: ChainNetworks[chain][network].chainId
[chain]: getChain(network, chain).network.chainId
})
}, {})
}
Expand Down Expand Up @@ -183,13 +182,12 @@ class Background {
onExternalMessage(connection, { id, type, data }) {
const { url } = connection.sender
const { origin } = new URL(url)
const { externalConnections, activeWalletId, injectEthereumChain, activeNetwork } =
this.store.state
const { externalConnections, activeWalletId, injectEthereumChain } = this.store.state

let setDefaultEthereum = false
let { chain, asset } = data
if (asset) {
chain = getAsset(activeNetwork, asset).chain
chain = this.store.getters.cryptoassets[asset].chain
}
if (!chain) {
const defaultAccountId = (externalConnections[activeWalletId]?.[origin] || {}).defaultEthereum
Expand Down
3 changes: 2 additions & 1 deletion src/components/AccountTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
{{ address ? shortenAddress(address) : '' }}
</p>
<p class="text-muted my-0 text-left" v-if="isChainEvmCompatible(asset)">
{{ $t('components.accountTooltip.availableGas') }} {{ nativeAssetBalance }} {{ nativeAsset }}
{{ $t('components.accountTooltip.availableGas') }} {{ nativeAssetBalance }}
{{ nativeAsset }}
</p>
</div>
</div>
Expand Down
7 changes: 1 addition & 6 deletions src/components/CustomFees.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,8 @@ export default {
{
bitcoin: 1,
ethereum: 1,
rsk: 0.001,
bsc: 0.001,
polygon: 0.001,
near: 0.00001,
solana: 0.00001,
terra: 0.001,
fuse: 0.001
solana: 0.00001
}[chainId] || 0.001
)
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/CustomFeesEIP1559.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@
<div class="custom-fee-inputs">
<div class="input-wrapper">
<p>
<strong>
{{ $t('components.customFees.minerTip') }}
</strong>{{ ' ' + $t('components.customFees.toSpeedUp') }}
<strong> {{ $t('components.customFees.minerTip') }} </strong
>{{ ' ' + $t('components.customFees.toSpeedUp') }}
</p>
<span>${{ minerTipFiat }}</span>
<div class="custom-fee-details-item">
Expand Down Expand Up @@ -114,7 +113,8 @@
<p>
<strong>
{{ $t('components.customFees.maxFee') }}
</strong> {{ $t('components.customFees.perGas') }}
</strong>
{{ $t('components.customFees.perGas') }}
</p>
<span>${{ maxFiat }}</span>
<div class="custom-fee-details-item">
Expand Down Expand Up @@ -202,15 +202,15 @@
id="custom_fee_cancel_button"
@click="cancel"
>
{{ $t('common.cancel') }}
{{ $t('common.cancel') }}
</button>
<button
class="btn btn-primary btn-lg btn-block"
id="custom_fee_apply_button"
@click="apply"
:disabled="!tipFee || !maxFee"
>
{{ $t('common.apply') }}
{{ $t('common.apply') }}
</button>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/FeeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import { getChain } from '@liquality/cryptoassets'
import { mapState } from 'vuex'

export default {
...mapState(['activeNetwork']),
computed: {
...mapState(['activeNetwork'])
},
props: ['asset', 'value', 'fees', 'totalFees', 'fiatRates', 'swap'],
methods: {
getTooltip(name) {
Expand Down
3 changes: 2 additions & 1 deletion src/components/NFT/NFTAsset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export default {
this.$router.push({
path: `/details/nft-asset/${this.nftAsset.token_id}`,
query: {
nftAsset: this.nftAsset,
collection: this.nftAsset.collection?.name,
nftAsset: this.nftAsset.id,
accountId: this.accountId,
source: this.$route.fullPath
}
Expand Down
13 changes: 9 additions & 4 deletions src/components/NFT/NFTAssets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
isAccount: isAccount,
chain: chain
}
}">
}"
>
{{ $t('components.nft.seeAll') }}
</router-link>
</span>
Expand All @@ -28,9 +29,13 @@
class="nft-assets__container__images"
:class="{ 'nft-assets__container__images--is-account': isAccount }"
>
<template v-for="nft in isAccount ? assets : firstThreeAssets">
<NFTAsset :nftAsset="nft" :accountId="accountId" :mode="'thumbnail'" :key="nft.id" />
</template>
<NFTAsset
v-for="nft in isAccount ? assets : firstThreeAssets"
:nftAsset="nft"
:accountId="accountId"
:mode="'thumbnail'"
:key="nft.id"
/>
</div>
</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
<AccountsIcon />
{{ $t('components.navbar.manageAccounts') }}
</li>
<li id="export_privkey"
v-if="showExportPrivateKey"
@click="exportPrivateKey">
<li id="export_privkey" v-if="showExportPrivateKey" @click="exportPrivateKey">
<KeyIcon />
{{ $t('components.navbar.exportPrivateKey') }}
</li>
Expand Down
14 changes: 10 additions & 4 deletions src/components/WhatsNewModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
<ChartIcon />
</div>
<div class="item-content">
<pre class="text-wrap">
Localization for Chinese, Spanish, Portuguese, Filipino and Cebuano</pre
>
<pre class="text-wrap">Integration with LI.FI as a swap provider</pre>
<pre class="text-wrap">Integration with deBridge as a swap provider</pre>
<pre class="text-wrap">Move to Goerli Testnet</pre>
<pre class="text-wrap">Solana Endpoint Change to Quicknode</pre>
</div>
</div>
</div>
Expand All @@ -27,7 +28,12 @@ Localization for Chinese, Spanish, Portuguese, Filipino and Cebuano</pre
<ChartIcon />
</div>
<div class="item-content">
<pre class="text-wrap">Change the language by going to settings?</pre>
<pre class="text-wrap">
Use LI.FI and deBridge with more than 100 different swap paths</pre
>
<pre class="text-wrap">
Use LI.FI and deBridge to swap between almost all EVM chains our wallet currently supports</pre
>
</div>
</div>
</div>
Expand Down
23 changes: 8 additions & 15 deletions src/contentScript.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { inject } from './broker/utils'
import Script from './broker/Script'
import { buildConfig } from '@liquality/wallet-core'
import { ChainNetworks } from '@liquality/wallet-core/dist/src/utils/networks'
import { getNativeAssetCode, isEvmChain } from '@liquality/cryptoassets'
import { getChain, getNativeAssetCode, isEvmChain } from '@liquality/cryptoassets'
import PortStream from 'extension-port-stream'
import LocalMessageDuplexStream from 'post-message-stream'
new Script().start()
Expand All @@ -21,27 +20,21 @@ async function setupTerraStreams() {

extensionStream.pipe(pageStream)
pageStream.pipe(extensionStream)
console.log('Stream setup successfully')
}

function injectProviders(state) {
const { injectEthereumChain, activeNetwork } = state
const { injectEthereum, activeNetwork } = state
const evmChains = buildConfig.chains
.filter((chain) => isEvmChain(activeNetwork, chain))
.map((chain) => {
const network = ChainNetworks[chain][activeNetwork]
const network = getChain(activeNetwork, chain).network
const asset = getNativeAssetCode(activeNetwork, chain)
return { chain, asset, network }
})

let globalEthereum = {
inject: !!injectEthereumChain
}
if (globalEthereum.inject) {
globalEthereum = {
...globalEthereum,
...injectGlobalEthereum(state, true)
}
const globalEthereum = {
override: injectEthereum,
ethereumChain: getGlobalEthereumChain(state)
}

const injectConfig = {
Expand All @@ -55,7 +48,7 @@ function injectProviders(state) {
inject('#PAGEPROVIDER#')
}

function injectGlobalEthereum(state, override) {
function getGlobalEthereumChain(state) {
const { externalConnections, activeWalletId, activeNetwork } = state

let ethereumChain = state.injectEthereumChain
Expand All @@ -71,7 +64,7 @@ function injectGlobalEthereum(state, override) {
}
}

return { override, ethereumChain }
return ethereumChain
}

chrome.storage.local.get(['liquality-wallet'], (storage) => {
Expand Down
1 change: 0 additions & 1 deletion src/locales/cb/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"received": "Nadawat",
"completed": "Nakompleto",
"advanced": "Advanced",
"address": "Address",
"tokenID": "Token ID",
"tokenStandard": "Token Standard",
"transactionId": "Transaction ID",
Expand Down
12 changes: 6 additions & 6 deletions src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
"provider": "Provider",
"localesLabels": {
"en": "English",
"es": "Spanish",
"zh": "Chinese (Simplified)",
"pt": "Portuguese",
"ph": "Filipino",
"cb": "Bisaya (Cebuano)"
"es": "Español",
"zh": "中文(简体)",
"pt": "Português",
"ph": "Tagalog",
"cb": "Cebuano"
}
}
}
4 changes: 2 additions & 2 deletions src/locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"tokenSymbol": "Token Symbol",
"decimals": "Decimals",
"addToken": "Add Token",
"addCustomToken": "Add Custom Token"
"addCustomToken": "Add Token"
},
"wallet": {
"assets": "Assets",
Expand Down Expand Up @@ -232,4 +232,4 @@
"cons": "Cons",
"feeStructure": "Fee Structure"
}
}
}
Loading