Skip to content

Commit

Permalink
fix: removed not used swap providers and update wallet-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed Mar 6, 2023
1 parent 54bc673 commit 7f58c01
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-wallet",
"version": "0.85.0",
"version": "0.85.1",
"private": true,
"author": "Liquality <info@liquality.io>",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"@liquality/ethereum-utils": "^1.13.12",
"@liquality/terra-networks": "^1.13.12",
"@liquality/types": "^1.13.12",
"@liquality/wallet-core": "4.20.0",
"@liquality/wallet-core": "4.21.0",
"@terra-money/terra.js": "^3.1.6",
"@testing-library/vue": "^5.8.2",
"amplitude-js": "8.18.2",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 2,
"version": "0.85.0",
"version": "0.85.1",
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
Expand Down
1 change: 0 additions & 1 deletion src/utils/swaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import { getSwapProviderConfig } from '@liquality/wallet-core/dist/src/swaps/uti

export function getSwapProviderIcon(network, providerId) {
const config = getSwapProviderConfig(network, providerId)
debugger
return require(`@/assets/icons/swapProviders/${config.icon}?inline`)
}
12 changes: 4 additions & 8 deletions src/views/Swap/SwapProvidersInfoModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,16 @@ export default {
},
computed: {
...mapState(['activeNetwork']),
unsupportedProviders() {
// TODO:: We will need to remove this computed prop after these providers are removed from wallet-core
return new Array('liquality', 'liqualityBoostNativeToERC20', 'liqualityBoostERC20toNative')
},
providers() {
return Object.entries(buildConfig.swapProviders[this.activeNetwork])
.map(([provider, providerConfig]) => {
return Object.entries(buildConfig.swapProviders[this.activeNetwork]).map(
([provider, providerConfig]) => {
return {
id: provider,
name: providerConfig.name,
...getSwapProviderInfo(this.activeNetwork, provider)
}
})
.filter((provider) => !this.unsupportedProviders.includes(provider.id))
}
)
},
uniqueProvides() {
return [...new Map(this.providers.map((item) => [item['name'], item])).values()]
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4021,9 +4021,9 @@ __metadata:
languageName: node
linkType: hard

"@liquality/wallet-core@npm:4.20.0":
version: 4.20.0
resolution: "@liquality/wallet-core@npm:4.20.0"
"@liquality/wallet-core@npm:4.21.0":
version: 4.21.0
resolution: "@liquality/wallet-core@npm:4.21.0"
dependencies:
"@blobfishkate/sovryncontracts": 1.3.27
"@chainify/bitcoin": 2.2.0
Expand Down Expand Up @@ -4076,7 +4076,7 @@ __metadata:
urql: ^2.2.0
vue: ^2.6.11
vuex: ^3.1.3
checksum: 1bed58f7fbca976a958cf6cf7da8ca75a22e09d5e60d1fe6e249488250588532207835b3f818f7db49bd1031ed454394e9455ad7fd280a01f89e0af20fe7ec74
checksum: 08fb68ad84b3bbd831a495de2498149a1151edb54f76b4a8cd9cb3491923db274cd5f01b34901f50c0d6c00fd499f3fd40eaf26c399523bd748ed6b10bbe51e8
languageName: node
linkType: hard

Expand Down Expand Up @@ -18902,7 +18902,7 @@ __metadata:
"@liquality/ethereum-utils": ^1.13.12
"@liquality/terra-networks": ^1.13.12
"@liquality/types": ^1.13.12
"@liquality/wallet-core": 4.20.0
"@liquality/wallet-core": 4.21.0
"@terra-money/terra.js": ^3.1.6
"@testing-library/jest-dom": 5.16.5
"@testing-library/vue": ^5.8.2
Expand Down

0 comments on commit 7f58c01

Please sign in to comment.