Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Mar 10, 2021
2 parents da75fc2 + 976fe7a commit 3ca889e
Show file tree
Hide file tree
Showing 22 changed files with 835 additions and 156 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/draft-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ jobs:
# - name: Upload .AppImage
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-linux-2.9.4.AppImage
# path: build/target/ark-desktop-wallet-linux-x86_64-2.9.4.AppImage
# name: ark-desktop-wallet-linux-2.9.5.AppImage
# path: build/target/ark-desktop-wallet-linux-x86_64-2.9.5.AppImage

# - name: Upload .tar.gz
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-linux-2.9.4.tar.gz
# path: build/target/ark-desktop-wallet-linux-x64-2.9.4.tar.gz
# name: ark-desktop-wallet-linux-2.9.5.tar.gz
# path: build/target/ark-desktop-wallet-linux-x64-2.9.5.tar.gz

- name: Upload .deb
uses: actions/upload-artifact@master
with:
name: ark-desktop-wallet-linux-2.9.4-${{ github.sha }}.deb
path: build/target/ark-desktop-wallet-linux-amd64-2.9.4.deb
name: ark-desktop-wallet-linux-2.9.5-${{ github.sha }}.deb
path: build/target/ark-desktop-wallet-linux-amd64-2.9.5.deb

build-macOS:
runs-on: macos-latest
Expand Down Expand Up @@ -102,14 +102,14 @@ jobs:
# - name: Upload .zip
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-mac-2.9.4.zip
# path: build/target/ark-desktop-wallet-mac-2.9.4.zip
# name: ark-desktop-wallet-mac-2.9.5.zip
# path: build/target/ark-desktop-wallet-mac-2.9.5.zip

- name: Upload .dmg
uses: actions/upload-artifact@v1
with:
name: ark-desktop-wallet-mac-2.9.4-${{ github.sha }}.dmg
path: build/target/ark-desktop-wallet-mac-2.9.4.dmg
name: ark-desktop-wallet-mac-2.9.5-${{ github.sha }}.dmg
path: build/target/ark-desktop-wallet-mac-2.9.5.dmg

build-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -137,5 +137,5 @@ jobs:
- name: Upload .exe
uses: actions/upload-artifact@v1
with:
name: ark-desktop-wallet-win-2.9.4-${{ github.sha }}.exe
path: build/target/ark-desktop-wallet-win-2.9.4.exe
name: ark-desktop-wallet-win-2.9.5-${{ github.sha }}.exe
path: build/target/ark-desktop-wallet-win-2.9.5.exe
22 changes: 11 additions & 11 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,28 +82,28 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Calculate Checksums for AppImage
run: shasum -a 256 build/target/ark-desktop-wallet-linux-x86_64-2.9.4.AppImage
run: shasum -a 256 build/target/ark-desktop-wallet-linux-x86_64-2.9.5.AppImage

- name: Calculate Checksums for TAR
run: shasum -a 256 build/target/ark-desktop-wallet-linux-x64-2.9.4.tar.gz
run: shasum -a 256 build/target/ark-desktop-wallet-linux-x64-2.9.5.tar.gz

- name: Calculate Checksums for DEB
run: shasum -a 256 build/target/ark-desktop-wallet-linux-amd64-2.9.4.deb
run: shasum -a 256 build/target/ark-desktop-wallet-linux-amd64-2.9.5.deb

- name: VirusTotal Scan for AppImage
run: |
UPLOAD_URL=$(curl -s --location --url 'https://www.virustotal.com/vtapi/v2/file/scan/upload_url?apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' | jq -r .upload_url)
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-x86_64-2.9.4.AppImage' | jq -r .permalink
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-x86_64-2.9.5.AppImage' | jq -r .permalink
- name: VirusTotal Scan for TAR
run: |
UPLOAD_URL=$(curl -s --location --url 'https://www.virustotal.com/vtapi/v2/file/scan/upload_url?apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' | jq -r .upload_url)
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-x64-2.9.4.tar.gz' | jq -r .permalink
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-x64-2.9.5.tar.gz' | jq -r .permalink
- name: VirusTotal Scan for DEB
run: |
UPLOAD_URL=$(curl -s --location --url 'https://www.virustotal.com/vtapi/v2/file/scan/upload_url?apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' | jq -r .upload_url)
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-amd64-2.9.4.deb' | jq -r .permalink
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-linux-amd64-2.9.5.deb' | jq -r .permalink
publish-macos:
needs: ["create-release"]
Expand Down Expand Up @@ -148,20 +148,20 @@ jobs:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}

- name: Calculate Checksums for DMG
run: shasum -a 256 build/target/ark-desktop-wallet-mac-2.9.4.dmg
run: shasum -a 256 build/target/ark-desktop-wallet-mac-2.9.5.dmg

- name: Calculate Checksums for ZIP
run: shasum -a 256 build/target/ark-desktop-wallet-mac-2.9.4.zip
run: shasum -a 256 build/target/ark-desktop-wallet-mac-2.9.5.zip

- name: VirusTotal Scan for DMG
run: |
UPLOAD_URL=$(curl -s --location --url 'https://www.virustotal.com/vtapi/v2/file/scan/upload_url?apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' | jq -r .upload_url)
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-mac-2.9.4.dmg' | jq -r .permalink
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-mac-2.9.5.dmg' | jq -r .permalink
- name: VirusTotal Scan for ZIP
run: |
UPLOAD_URL=$(curl -s --location --url 'https://www.virustotal.com/vtapi/v2/file/scan/upload_url?apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' | jq -r .upload_url)
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-mac-2.9.4.zip' | jq -r .permalink
curl -s --url "$UPLOAD_URL" --form 'apikey=${{ secrets.VIRUSTOTAL_TOKEN }}' --form 'file=@build/target/ark-desktop-wallet-mac-2.9.5.zip' | jq -r .permalink
publish-windows:
needs: ["create-release"]
Expand Down Expand Up @@ -199,5 +199,5 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Calculate Checksums for EXE
run: Get-FileHash build/target/ark-desktop-wallet-win-2.9.4.exe -Algorithm SHA256 | Format-List
run: Get-FileHash build/target/ark-desktop-wallet-win-2.9.5.exe -Algorithm SHA256 | Format-List
shell: powershell
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,20 @@ jobs:
# - name: Upload .AppImage
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-linux-2.9.4.AppImage
# path: build/target/ark-desktop-wallet-linux-x86_64-2.9.4.AppImage
# name: ark-desktop-wallet-linux-2.9.5.AppImage
# path: build/target/ark-desktop-wallet-linux-x86_64-2.9.5.AppImage

# - name: Upload .tar.gz
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-linux-2.9.4.tar.gz
# path: build/target/ark-desktop-wallet-linux-x64-2.9.4.tar.gz
# name: ark-desktop-wallet-linux-2.9.5.tar.gz
# path: build/target/ark-desktop-wallet-linux-x64-2.9.5.tar.gz

- name: Upload .deb
uses: actions/upload-artifact@master
with:
name: ark-desktop-wallet-linux-2.9.4-${{ github.sha }}.deb
path: build/target/ark-desktop-wallet-linux-amd64-2.9.4.deb
name: ark-desktop-wallet-linux-2.9.5-${{ github.sha }}.deb
path: build/target/ark-desktop-wallet-linux-amd64-2.9.5.deb

build-macOS:
runs-on: macos-latest
Expand Down Expand Up @@ -138,14 +138,14 @@ jobs:
# - name: Upload .zip
# uses: actions/upload-artifact@master
# with:
# name: ark-desktop-wallet-mac-2.9.4.zip
# path: build/target/ark-desktop-wallet-mac-2.9.4.zip
# name: ark-desktop-wallet-mac-2.9.5.zip
# path: build/target/ark-desktop-wallet-mac-2.9.5.zip

- name: Upload .dmg
uses: actions/upload-artifact@v1
with:
name: ark-desktop-wallet-mac-2.9.4-${{ github.sha }}.dmg
path: build/target/ark-desktop-wallet-mac-2.9.4.dmg
name: ark-desktop-wallet-mac-2.9.5-${{ github.sha }}.dmg
path: build/target/ark-desktop-wallet-mac-2.9.5.dmg

build-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -173,5 +173,5 @@ jobs:
- name: Upload .exe
uses: actions/upload-artifact@v1
with:
name: ark-desktop-wallet-win-2.9.4-${{ github.sha }}.exe
path: build/target/ark-desktop-wallet-win-2.9.4.exe
name: ark-desktop-wallet-win-2.9.5-${{ github.sha }}.exe
path: build/target/ark-desktop-wallet-win-2.9.5.exe
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Latest Version](https://badgen.now.sh/github/release/ArkEcosystem/desktop-wallet)](https://github.com/ArkEcosystem/desktop-wallet/releases)
[![License: MIT](https://badgen.now.sh/badge/license/MIT/green)](https://opensource.org/licenses/MIT)

> Lead Maintainer: [Alex Barnsley](https://github.com/alexbarnsley)
> Lead Maintainer: [Lúcio Rubens](https://github.com/luciorubeens)
## Download

Expand Down
1 change: 1 addition & 0 deletions __tests__/unit/__utils__/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require('babel-plugin-require-context-hook/register')()
// implementation to use it instead when that lack of accuracy is an issue
global.__Intl__ = global.Intl
global.Intl = require('intl')
global.Intl.Collator = global.__Intl__.Collator

HTMLCanvasElement.prototype.getContext = jest.fn()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('TransactionFormVote', () => {
expect(wrapper.vm.showVoteUnvoteButton).toBe(false)
})

it('should return false if wallet is voting but not for delegate', () => {
it('should return true if wallet is voting but not for delegate', () => {
wrapper.setProps({
isVoter: false,
votedDelegate: {
Expand All @@ -254,7 +254,7 @@ describe('TransactionFormVote', () => {
}
})

expect(wrapper.vm.showVoteUnvoteButton).toBe(false)
expect(wrapper.vm.showVoteUnvoteButton).toBe(true)
})

it('should return true if not voting', () => {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/unit/services/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const sessionNetwork = Object.freeze({
},
vendorField: {
maxLength: 64
}
},
version: 23
})

jest.mock('@/store', () => ({
Expand Down
3 changes: 2 additions & 1 deletion __tests__/unit/services/crypto/transaction-signer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const sessionNetwork = Object.freeze({
},
vendorField: {
maxLength: 64
}
},
version: 23
})

jest.mock('@/store', () => ({
Expand Down
2 changes: 1 addition & 1 deletion config/networks/devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "ark.devnet",
"name": "ARK Devnet",
"title": "ARK Devnet",
"server": "https://dexplorer.ark.io:8443",
"server": "https://dwallets.ark.io",
"description": "The ARK Devnet is only used for R&D by engineers.",
"imagePath": "networks/ark.devnet.svg",
"apiVersion": 2,
Expand Down
2 changes: 1 addition & 1 deletion config/networks/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "ark.mainnet",
"name": "ARK Mainnet",
"title": "ARK Mainnet",
"server": "https://explorer.ark.io:8443",
"server": "https://wallets.ark.io",
"description": "The ARK Mainnet should be chosen in most cases.",
"imagePath": "networks/ark.png",
"apiVersion": 2,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "ark-desktop-wallet",
"version": "2.9.4",
"version": "2.9.5",
"repository": {
"type": "git",
"url": "git+https://github.com/ArkEcosystem/desktop-wallet.git"
Expand Down Expand Up @@ -50,8 +50,8 @@
},
"dependencies": {
"@arkecosystem/client": "^1.0.5",
"@arkecosystem/core-magistrate-crypto": "^2.6.27",
"@arkecosystem/crypto": "^2.6.27",
"@arkecosystem/core-magistrate-crypto": "^3.0.0-next.9",
"@arkecosystem/crypto": "^3.0.0-next.9",
"@arkecosystem/ledger-transport": "^1.1.2",
"@arkecosystem/peers": "^0.3.0",
"@arkecosystem/platform-sdk": "^0.0.2",
Expand Down Expand Up @@ -186,8 +186,8 @@
"tailwindcss": "^0.7.4",
"tempy": "^0.5.0",
"ts-jest": "^25.0.0",
"ts-loader": "^7.0.0",
"typescript": "^3.5.3",
"ts-loader": "^8.0.11",
"typescript": "^3.9.7",
"url-loader": "^4.0.0",
"vue-html-loader": "^1.2.4",
"vue-jest": "^3.0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/Passphrase/PassphraseInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default {
model: {
required,
isValid (value) {
return WalletService.validatePassphrase(value, this.pubKeyHash)
return WalletService.validatePassphrase(value)
},
matchAddress (value) {
if (this.address) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,15 @@ export default {
},
showVoteUnvoteButton () {
if (this.currentWallet.isContact || (!!this.votedDelegate && !this.isVoter) || (this.delegate.isResigned && !this.isVoter)) {
if (this.currentWallet.isContact) {
return false
}
return !this.votedDelegate || (!!this.votedDelegate && this.isVoter)
if (this.isVoter === false && this.delegate.isResigned) {
return false
}
return true
},
showCurrentlyVoting () {
Expand Down Expand Up @@ -307,6 +311,10 @@ export default {
transactionData.secondPassphrase = this.form.secondPassphrase
}
if (this.isVoter === false && !!this.votedDelegate && this.$client.satisfiesCoreVersion('>=3')) {
transactionData.votes.unshift(`-${this.votedDelegate.publicKey}`)
}
return transactionData
},
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/components/Transaction/TransactionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</template>

<script>
import { camelCase } from 'lodash'
import { camelCase, castArray } from 'lodash'
import { upperFirst } from '@/utils'
import { TRANSACTION_GROUPS, TRANSACTION_TYPES } from '@config'
import MultiSignature from '@/services/client-multisig'
Expand Down Expand Up @@ -256,13 +256,13 @@ export default {
const { errors } = response.body
const anyLowFee = Object.keys(errors).some(transactionId => {
return errors[transactionId].some(error => error.type === 'ERR_LOW_FEE')
return castArray(errors[transactionId]).some(error => error.type === 'ERR_LOW_FEE')
})
const anyNotDuplicate = Object.keys(errors).some(transactionId => {
return errors[transactionId].some(error => !['ERR_DUPLICATE', 'ERR_FORGED', 'ERR_ALREADY_IN_POOL', 'ERR_LOW_FEE'].includes(error.type))
return castArray(errors[transactionId]).some(error => !['ERR_DUPLICATE', 'ERR_FORGED', 'ERR_ALREADY_IN_POOL', 'ERR_LOW_FEE'].includes(error.type))
})
const wrongNonce = Object.keys(errors).some(transactionId => {
return errors[transactionId].some(error => {
return castArray(errors[transactionId]).some(error => {
return error.type === 'ERR_APPLY' && error.message.includes('Cannot apply a transaction with nonce')
})
})
Expand Down
Loading

0 comments on commit 3ca889e

Please sign in to comment.