Skip to content

Commit

Permalink
Release 0.11.0 (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinTrinque authored Mar 23, 2023
2 parents cc8cb58 + 22ed9a6 commit 81629fe
Show file tree
Hide file tree
Showing 18 changed files with 113 additions and 79 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.10.0 (Unreleased)
## 0.12.0 (Unreleased)

### 🚨 Breaking changes

Expand All @@ -13,12 +13,19 @@
### 🛠 Improvements

- [xxxx](https://github.com/vegaprotocol/vegawallet-desktop/issues/xxxx) -
-

### 🐛 Fixes

- [xxxx](https://github.com/vegaprotocol/vegawallet-desktop/issues/xxxx) -

## 0.11.0

Support for vega v0.70.0.

## 0.10.0

Support for vega v0.69.0.

## 0.9.0

Support for vega v0.68.0.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Be sure to have the following environment variables set:
- `GO111MODULE=on`

```sh
go install github.com/wailsapp/wails/v2/cmd/wails@v2.3.1
go install github.com/wailsapp/wails/v2/cmd/wails@v2.4.1
```

To check if you have the correct dependencies installed, use the following command:
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (

// Version specifies the version used to build the application.
// See VERSION in Makefile for details.
Version = "v0.10.0"
Version = "v0.11.0"

About = fmt.Sprintf(aboutAppTemplate, Version, VersionHash)
)
Expand Down
71 changes: 39 additions & 32 deletions frontend/automation/e2e/import-network.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Import network', () => {

cy.getByTestId('url-path').type(url)
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported to:')
cy.getByTestId('toast').should('contain.text', 'Network imported')
})

it('import failure using url', () => {
Expand All @@ -33,19 +33,19 @@ describe('Import network', () => {
)
})

// Getting RSA keys already exist error on startup
// for only this test
it('import successfully via file path', () => {
const filePath = path.join(
// Skipped until bug fixed
// https://github.com/vegaprotocol/vegawallet-desktop/issues/561
it.skip('import successfully via file path', () => {
const filePath = `file://${path.join(
Cypress.config('projectRoot'),
'automation/data/networks/mainnet1.toml'
)
)}`

// 0001-WALL-010
cy.getByTestId('url-path').type(filePath)
cy.getByTestId('network-name').type('custom')
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported to:')
cy.getByTestId('toast').should('contain.text', 'Network imported')
})

it('import failure via file path', () => {
Expand All @@ -56,36 +56,43 @@ describe('Import network', () => {
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should(
'contain.text',
'Error: the network source file does not exist: invalid network source'
'Error: a network source is required'
)
})
})

describe('existing networks', () => {
before(() => {
cy.initApp()
cy.getByTestId('network-drawer').click()
cy.getByTestId('manage-networks').click()
cy.getByTestId('add-network').click()
})

describe('', () => {
before(() => {
cy.restoreNetwork()
})
beforeEach(() => {
cy.getByTestId('url-path').clear()
})

it('overwrite network that already exists', () => {
cy.getByTestId('url-path').type(Cypress.env('mainnetConfigUrl'))
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should(
'contain.text',
'Error: a network with the same name already exists'
)
// overwrite message shown, check overwrite and re submit
cy.getByTestId('toast').should('not.exist')
cy.get('button[role="checkbox"]').click()
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported to:')
})
it('overwrite network that already exists', () => {
cy.getByTestId('url-path').type(Cypress.env('mainnetConfigUrl'))
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should(
'contain.text',
'Error: a network with the same name already exists'
)
// overwrite message shown, check overwrite and re submit
cy.getByTestId('toast').should('not.exist')
cy.get('button[role="checkbox"]').click()
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported')
})

it('import same network with different name', () => {
const url = Cypress.env('mainnetConfigUrl')
it('import same network with different name', () => {
const url = Cypress.env('mainnetConfigUrl')

cy.getByTestId('url-path').type(url)
cy.getByTestId('network-name').type(`custom-${Date.now()}`)
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported to:')
})
cy.getByTestId('url-path').type(url)
cy.getByTestId('network-name').type(`custom-${Date.now()}`)
cy.getByTestId('import-network').click()
cy.getByTestId('toast').should('contain.text', 'Network imported')
})
})
16 changes: 8 additions & 8 deletions frontend/automation/e2e/import-wallet.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('import wallet', () => {
it('recover wallet', () => {
// 0001-WALL-004
fillInRecoveryForm(walletName, passphrase, recoveryPhrase)
cy.getByTestId('toast').should('contain.text', 'Wallet imported to')
cy.getByTestId('toast').should('contain.text', 'Wallet imported')

// Can open newly imported wallet
unlockWallet(walletName.replace(' ', '-'), passphrase)
Expand All @@ -44,11 +44,11 @@ describe('import wallet', () => {
it('recover wallet with different version', () => {
const recoveryPhrase = Cypress.env('testWalletRecoveryPhrase')
fillInRecoveryForm('newwallet', '123', recoveryPhrase, 1)
cy.getByTestId('toast').should('contain.text', 'Wallet imported to')
cy.getByTestId('toast').should('contain.text', 'Wallet imported')
})

it('form validation', () => {
cy.getByTestId('submit').click()
cy.getByTestId('wallet-import-form-submit').click()
cy.getByTestId('helper-text').should('have.length', 4)
})

Expand All @@ -67,10 +67,10 @@ function fillInRecoveryForm(
recoveryPhrase: string,
version = 2
) {
cy.getByTestId('wallet-name').type(walletName)
cy.getByTestId('recovery-phrase').type(recoveryPhrase)
cy.getByTestId('wallet-import-form-name').type(walletName)
cy.getByTestId('wallet-import-form-recovery-phrase').type(recoveryPhrase)
cy.getByTestId('version').select(String(version))
cy.getByTestId('passphrase').type(passphrase)
cy.getByTestId('confirm-passphrase').type(passphrase)
cy.getByTestId('submit').click()
cy.getByTestId('wallet-import-form-passphrase').type(passphrase)
cy.getByTestId('wallet-import-form-passphrase-confirm').type(passphrase)
cy.getByTestId('wallet-import-form-submit').click()
}
2 changes: 1 addition & 1 deletion frontend/automation/e2e/onboarding.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('onboarding', () => {
cy.getByTestId('wallet-import-form-passphrase-confirm').type(passphrase)
cy.getByTestId('wallet-import-form-submit').click()

cy.getByTestId('toast').should('contain.text', 'Wallet imported to:')
cy.getByTestId('toast').should('contain.text', 'Wallet imported')
})

it('import wallet validation', () => {
Expand Down
3 changes: 1 addition & 2 deletions frontend/automation/e2e/wallet-edit.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { authenticate, unlockWallet } from '../support/helpers'
import { unlockWallet } from '../support/helpers'

const passphrase = Cypress.env('testWalletPassphrase')
const walletName = Cypress.env('testWalletName')
Expand All @@ -22,7 +22,6 @@ describe('edit wallet', () => {
cy.get('button[type="submit"]').click()
})
cy.getByTestId('edit-wallet-form').should('not.exist')
authenticate(passphrase)
cy.getByTestId('header-title').should('have.text', newWalletName)
})
})
1 change: 1 addition & 0 deletions frontend/automation/e2e/wallet-taint.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('wallet taint key', () => {
.contains('This key has been tainted')
.getByTestId('close')
.click({ multiple: true })
// 0001-WALL-060 I can see tainted keys flagged as tainted
cy.getByTestId('keypair-taint-notification')
.should('exist')
.within(() => {
Expand Down
7 changes: 5 additions & 2 deletions frontend/automation/support/commands/restore-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ Cypress.Commands.add('restoreNetwork', (name = 'test') => {
jsonrpc: '2.0',
method: 'admin.import_network',
params: {
filePath: Cypress.env('testNetworkPath'),
url: `file://${Cypress.env('testNetworkPath')}`,
name
}
})
.then(res => res.result)
.then(res => {
if ('error' in res) throw new Error(JSON.stringify(res.error))
else return res.result
})
})
})
8 changes: 6 additions & 2 deletions frontend/automation/support/commands/restore-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ Cypress.Commands.add('restoreWallet', () => {
params: {
wallet: 'test',
recoveryPhrase: Cypress.env('testWalletRecoveryPhrase'),
version: 2,
keyDerivationVersion: 2,
passphrase
}
})
)
.then(res => res.result)
.then(res => {
if ('error' in res) {
throw new Error(JSON.stringify(res.error))
} else return res.result
})
.then(() => cy.reload())
})
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vegawallet",
"author": "Gobalsky Labs Ltd.",
"version": "0.10.0",
"version": "0.11.0",
"private": true,
"engines": {
"node": "^18.12.0"
Expand Down
17 changes: 8 additions & 9 deletions frontend/src/wailsjs/go/backend/Handler.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {connections} from '../models';
import {menu} from '../models';
import {app} from '../models';
import {backend} from '../models';
import {service} from '../models';
import {interactor} from '../models';
import {jsonrpc} from '../models';
import {service} from '../models';

export function APIV2DeleteAPIToken(arg1:string):Promise<void>;

Expand All @@ -16,33 +15,33 @@ export function APIV2GenerateAPIToken(arg1:connections.GenerateAPITokenParams):P

export function APIV2ListAPITokens():Promise<connections.ListAPITokensResult>;

export function AppMenu():Promise<menu.Menu>;
export function AppMenu():Promise<any>;

export function GetAppConfig():Promise<app.Config>;

export function GetCurrentServiceInfo():Promise<backend.GetCurrentServiceInfo>;

export function GetLatestRelease():Promise<backend.LatestRelease>;

export function GetServiceConfig():Promise<service.Config>;
export function GetServiceConfig():Promise<any>;

export function GetVersion():Promise<backend.GetVersionResponse>;
export function GetVersion():Promise<any>;

export function InitialiseApp(arg1:backend.InitialiseAppRequest):Promise<void>;
export function InitialiseApp(arg1:any):Promise<void>;

export function IsAppInitialised():Promise<boolean>;

export function RespondToInteraction(arg1:interactor.Interaction):Promise<void>;

export function SearchForExistingConfiguration():Promise<backend.SearchForExistingConfigurationResponse>;
export function SearchForExistingConfiguration():Promise<any>;

export function StartService(arg1:backend.StartServiceRequest):Promise<void>;
export function StartService(arg1:any):Promise<void>;

export function StartupBackend():Promise<void>;

export function StopService():Promise<void>;

export function SubmitWalletAPIRequest(arg1:jsonrpc.Request):Promise<jsonrpc.Response>;
export function SubmitWalletAPIRequest(arg1:jsonrpc.Request):Promise<any>;

export function UpdateAppConfig(arg1:app.Config):Promise<void>;

Expand Down
12 changes: 6 additions & 6 deletions frontend/src/wailsjs/go/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ export namespace connections {
export class TokenSummary {
description: string;
token: string;
// Go type: time.Time
// Go type: time
creationDate: any;
// Go type: time.Time
// Go type: time
expirationDate?: any;

static createFrom(source: any = {}) {
Expand Down Expand Up @@ -301,9 +301,9 @@ export namespace connections {
}
export class TokenDescription {
description: string;
// Go type: time.Time
// Go type: time
creationDate: any;
// Go type: time.Time
// Go type: time
expirationDate?: any;
token: string;
wallet: WalletCredentials;
Expand Down Expand Up @@ -442,7 +442,7 @@ export namespace jsonrpc {
export namespace service {

export class APIV1Config {
// Go type: encoding.Duration
// Go type: encoding
maximumTokenDuration: any;

static createFrom(source: any = {}) {
Expand Down Expand Up @@ -487,7 +487,7 @@ export namespace service {
}
}
export class Config {
// Go type: encoding.LogLevel
// Go type: encoding
logLevel: any;
server: ServerConfig;
apiV1: APIV1Config;
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/wailsjs/runtime/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,11 @@ export function Hide(): void;
// [Show](https://wails.io/docs/reference/runtime/intro#show)
// Shows the application.
export function Show(): void;

// [ClipboardGetText](https://wails.io/docs/reference/runtime/clipboard#clipboardgettext)
// Returns the current text stored on clipboard
export function ClipboardGetText(): Promise<string>;

// [ClipboardSetText](https://wails.io/docs/reference/runtime/clipboard#clipboardsettext)
// Sets a text on the clipboard
export function ClipboardSetText(text: string): Promise<boolean>;
Loading

0 comments on commit 81629fe

Please sign in to comment.