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

[wallet/desktop] task: release v1.0.10 #1895

Merged
merged 12 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ template.config.js
.env
keys-whitelist.json
keys-finance.json
.nyc_output
1 change: 1 addition & 0 deletions .gitlintmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wallet/desktop
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "_symbol"]
path = _symbol
url = https://github.com/symbol/symbol.git
branch = dev
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

77 changes: 60 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ All notable changes to this project will be documented in this file.
The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).


## [1.0.10][v1.0.10] - 17-Aug-2022
### Milestone: Bug fixes and security protection improvements

#### Added
- Added the blacklist/whitelist support for address book. Improved the multisig transaction co-signature form [#1739](https://github.com/symbol/desktop-wallet/issues/1739).
- Added the scam alert link to the docs in the harvesting view [#1860](https://github.com/symbol/desktop-wallet/pull/1860).
- Added nyc integration and enabled ci coverage check [#1869](https://github.com/symbol/desktop-wallet/pull/1869).
- Added unit tests [#1871](https://github.com/symbol/desktop-wallet/pull/1871).
- Added new multisig tree presentation and improved graph construction [#1881](https://github.com/symbol/desktop-wallet/pull/1881).
- Added property to the advanced settings to allow/disallow signing multisig transactions from unknown accounts [#1880](https://github.com/symbol/desktop-wallet/issues/1880).
- Added a signer public key field to the transaction details view [#1840](https://github.com/symbol/desktop-wallet/issues/1840).
- Added link to explorer for addresses in the transaction details view [#1843](https://github.com/symbol/desktop-wallet/issues/1843).
- Added option to block new contact [#1826](https://github.com/symbol/desktop-wallet/issues/1826).

#### Changed
- Removed dashes from addresses [#1841](https://github.com/symbol/desktop-wallet/pull/1841).

#### Fixed
- Improved localization in Japanese [#1819](https://github.com/symbol/desktop-wallet/pull/1819).
- Fixed the metadata non-ascii text update failure and the view refresh issue [#1837](https://github.com/symbol/desktop-wallet/pull/1837).
- Fixed the multisig graph sorting issue [#1890](https://github.com/symbol/desktop-wallet/pull/1890).
- Fixed an issue with editing the contact address in address book [#1834](https://github.com/symbol/desktop-wallet/issues/1834).
- Fixed an issue with address book import [#1827](https://github.com/symbol/desktop-wallet/issues/1827).
- Fixed the wrong contact names presented in the transaction list [#1831](https://github.com/symbol/desktop-wallet/issues/1831).
- Fixed the transaction detail "From" field is not replaced with a contact name [#1842](https://github.com/symbol/desktop-wallet/issues/1842).
- Fixed the signer from multilevel multisig tree presented as an unknown account in the multisig transaction co-signature form [#1848](https://github.com/symbol/desktop-wallet/issues/1848).
- Migrated to Jenkins and fixed failing unit tests [#1868](https://github.com/symbol/desktop-wallet/pull/1868).

## [1.0.9][v1.0.9] - 10-Dec-2021
### Milestone: Stabilize and bug fix

Expand Down Expand Up @@ -214,7 +242,7 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e
- Ledger with harvesting issues
- Confirm buttons where dispalced

## [1.0.1][1.0.1] - 29-Mar-2021
## [1.0.1][v1.0.1] - 29-Mar-2021

### Milestone: [[email protected]](https://github.com/symbol/catapult-server/releases/tag/v1.0.0.0)

Expand All @@ -223,20 +251,20 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e
- Changed transaction fee structure to align with network transaction fees. Reduced slow and average fee multipliers.
- Increased HashLock duration and AggregatedBonded transaction deadline to 48 hours.

## [1.0.0][1.0.0] - 15-Mar-2021
## [1.0.0][v1.0.0] - 15-Mar-2021

### Milestone: [[email protected]](https://github.com/symbol/catapult-server/releases/tag/v1.0.0.0)

- Symbol mainnet launch release.

## [0.15.1][0.15.1] - 13-Mar-2021
## [0.15.1][v0.15.1] - 13-Mar-2021

### Milestone: [[email protected]](https://github.com/symbol/catapult-server/releases/tag/v1.0.0.0)

- Pre Symbol launch release.
- Updated experimental Symbol mainnet node with final Opt In balances

## [0.15.0][0.15.0] - 11-Mar-2021
## [0.15.0][v0.15.0] - 11-Mar-2021

### Milestone: [[email protected]](https://github.com/symbol/catapult-server/releases/tag/v0.10.0.8)

Expand Down Expand Up @@ -817,16 +845,34 @@ NOTE: We have known issues which have been logged into github and will look for
- Missing harvesting setup (account link & persistent delegation requests)
- Some missing UI fixes for Symbol rebrand

[v0.13.6]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.5...v0.13.6
[v0.13.5]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.4...v0.13.5
[v0.13.4]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.3...v0.13.4
[v0.13.3]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.3...v0.13.3
[v0.13.2]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.0...v0.13.2
[v0.13.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.11.0...v0.13.0
[v0.12.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.11.0...v0.12.0
[v0.11.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.10.0...v0.11.0
[v0.10.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.9...v0.10.0
[v0.9.9]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.8-beta1...v0.9.9
[v1.0.10]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.10
[v1.0.9]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.9
[v1.0.8]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.8
[v1.0.7]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.7
[v1.0.6]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.6
[v1.0.5]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.5
[v1.0.4]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.4
[v1.0.3]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.3
[v1.0.2]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.2
[v1.0.1]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.1
[v1.0.0]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.0
[v1.0.0]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.0-beta.2
[v0.15.1]: https://github.com/symbol/desktop-wallet/releases/tag/v0.15.1
[v0.15.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.15.0
[v0.14.1]: https://github.com/symbol/desktop-wallet/releases/tag/v0.14.1
[v0.14.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.14.0
[v0.13.8]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.8
[v0.13.7]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.7
[v0.13.6]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.6
[v0.13.5]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.5
[v0.13.4]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.4
[v0.13.3]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.3
[v0.13.2]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.2
[v0.13.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.13.0
[v0.12.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.12.0
[v0.11.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.11.0
[v0.10.0]: https://github.com/symbol/desktop-wallet/releases/tag/v0.10.0
[v0.9.9]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.9
[v0.9.8]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.8-beta1
[v0.9.8-beta1]: https://github.com/symbol/desktop-wallet/compare/v0.9.7-beta1...v0.9.8-beta1
[v0.9.7]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.7-beta1
Expand All @@ -841,6 +887,3 @@ NOTE: We have known issues which have been logged into github and will look for
[v0.9.5-beta2]: https://github.com/symbol/desktop-wallet/compare/v0.9.5-beta1...v0.9.5-beta2
[v0.9.5-beta1]: https://github.com/symbol/desktop-wallet/compare/v0.9.4-beta...v0.9.5-beta1
[v0.9.4-beta]: https://github.com/symbol/desktop-wallet/releases/tag/v0.9.4-beta

[v1.0.5]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.5
[v1.0.6]: https://github.com/symbol/desktop-wallet/releases/tag/v1.0.6
12 changes: 12 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defaultCiPipeline {
platform = ['ubuntu']
ciBuildDockerfile = 'javascript.Dockerfile'

packageId = 'wallet-desktop'

publisher = 'docker'
dockerImageName = 'symbolplatform/symbol-desktop-wallet'

codeCoverageTool = 'nyc'
minimumCodeCoverage = 22
}
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# Symbol Desktop Wallet

[![Build Status](https://travis-ci.com/symbol/desktop-wallet.svg?branch=main)](https://travis-ci.com/symbol/desktop-wallet)
[![build][wallet-desktop-build]][wallet-desktop-job]
[![lint][wallet-desktop-lint]][wallet-desktop-job]
[![test][wallet-desktop-test]][wallet-desktop-job]
[![][wallet-desktop-cov]][wallet-desktop-cov-link]
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

[wallet-desktop-job]: https://jenkins.symboldev.com/blue/organizations/jenkins/Symbol%2FWallets%2Fdesktop-wallet/activity/?branch=dev
[wallet-desktop-build]: https://jenkins.symboldev.com/buildStatus/icon?job=Symbol%2FWallets%2Fdesktop-wallet%2Fdev
[wallet-desktop-lint]: https://jenkins.symboldev.com/buildStatus/icon?job=Symbol%2FWallets%2Fdesktop-wallet%2Fdev&config=wallet-desktop-lint
[wallet-desktop-test]: https://jenkins.symboldev.com/buildStatus/icon?job=Symbol%2FWallets%2Fdesktop-wallet%2Fdev&config=wallet-desktop-test
[wallet-desktop-cov]: https://codecov.io/gh/symbol/desktop-wallet/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=wallet-desktop
[wallet-desktop-cov-link]: https://codecov.io/gh/symbol/desktop-wallet/tree/dev/

Cross-platform client for Symbol to manage accounts, mosaics, namespaces, and issue transactions.

## Installation
Expand All @@ -17,7 +27,7 @@ Symbol Desktop Wallet is available for Mac, Windows, and as a web application.

## Building instructions

Symbol CLI require **Node.js 10 or 12 LTS** to execute.
Symbol CLI require **Node.js 16 LTS** to execute.

1. Clone the project.

Expand All @@ -28,13 +38,13 @@ git clone https://github.com/symbol/desktop-wallet.git
2. Install the dependencies.
```
cd symbol-desktop-wallet
npm install
npm install
```

3. Start the development server.

```
npm run dev
npm run dev
```

4. Visit http://localhost:8080/#/ in your browser.
Expand All @@ -44,12 +54,12 @@ npm run dev
Use the following available resources to get help:

- [Symbol Documentation][docs]
- Join the community [discord group][discord], [slack group (#sig-client)][slack]
- Join the community [discord group][discord], [slack group (#sig-client)][slack]
- If you found a bug, [open a new issue][issues]

## Contributing

Contributions are welcome and appreciated.
Contributions are welcome and appreciated.
Check [CONTRIBUTING](CONTRIBUTING.md) for information on how to contribute.

## License
Expand Down
11 changes: 11 additions & 0 deletions __mocks__/AddressBookMock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { AddressBook, IContact } from 'symbol-address-book';

export const addressBookMock: AddressBook = new AddressBook();
const contact1: IContact = {
id: '5c9093c7-2da2-476e-bc28-87f24a83cd0c',
address: 'TAVVVJBBCTYJDWC7TQPSVNHK2IPNY6URKK4DTHY',
name: 'Alice',
phone: '+34 000000000',
isBlackListed: true,
};
addressBookMock.addContact(contact1);
49 changes: 49 additions & 0 deletions __tests__/components/AccountAddressDisplay.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* (C) Symbol Contributors 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and limitations under the License.
*
*/
import AccountAddressDisplay from '@/components/AccountAddressDisplay/AccountAddressDisplay.vue';
import { AccountAddressDisplayTs } from '@/components/AccountAddressDisplay/AccountAddressDisplayTs';
import { getComponent } from '@MOCKS/Components';

describe('components/AccountAddressDisplay', () => {
const getAccountAddressDisplayValue = (address) => {
// Arrange:
const wrapper = getComponent(AccountAddressDisplay, {}, {}, { address });
const component = wrapper.vm as AccountAddressDisplayTs;

// Act:
const actual = component.plainAddress;

return actual;
};

test('returns empty string given no address', () => {
// Arrange + Act:
const actual = getAccountAddressDisplayValue(null);

// Assert:
expect(actual).toBeDefined();
expect(actual.length).toBe(0);
});

test('returns plain value of given address', () => {
// Arrange + Act:
const address = 'TBWALHG5EOT6JUWYUAWT6GYMRASATJVQBYH2XDY';
const actual = getAccountAddressDisplayValue(address);

// Assert:
expect(actual).toBe(address);
});
});
67 changes: 67 additions & 0 deletions __tests__/components/AccountAliasDisplay.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* (C) Symbol Contributors 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and limitations under the License.
*
*/
import AccountAliasDisplay from '@/components/AccountAliasDisplay/AccountAliasDisplay.vue';
import { AccountAliasDisplayTs } from '@/components/AccountAliasDisplay/AccountAliasDisplayTs';
import Account from '@/store/Account';
import { simpleWallet1, WalletsModel1 } from '@MOCKS/Accounts';
import { getComponent } from '@MOCKS/Components';
import { AccountNames, NamespaceId, NamespaceName } from 'symbol-sdk';

describe('components/AccountAliasDisplay', () => {
const accountModel = WalletsModel1;
const accountAddress = simpleWallet1.address;
const namespaceName = new NamespaceName(new NamespaceId('alias'), 'myAccountName');
const accountAliases: AccountNames[] = [
{
address: accountAddress,
names: [namespaceName],
},
];
const getAccountAliasDisplayValue = (currentAccountAliases: AccountNames[]) => {
// Arrange:
const wrapper = getComponent(
AccountAliasDisplay,
{ account: Account },
{ currentAccountAliases },
{
account: accountModel,
},
);
const component = wrapper.vm as AccountAliasDisplayTs;

// Act:
const actual = component.accountAliasNames;

return actual;
};

test('return empty string given no account aliases', () => {
// Arrange + Act:
const actual = getAccountAliasDisplayValue([]);

// Assert:
expect(actual).toBeDefined();
expect(actual.length).toBe(0);
});

test('return the given account alias', () => {
// Arrange + Act:
const actual = getAccountAliasDisplayValue(accountAliases);

// Assert:
expect(actual).toStrictEqual([namespaceName.name]);
});
});
Loading