Skip to content

Commit 98cca54

Browse files
committed
0.20.7 release
1 parent b4e993f commit 98cca54

File tree

5 files changed

+149
-7
lines changed

5 files changed

+149
-7
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
44

55
The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [0.20.7] - 14-Aug-2020
8+
9+
**Milestone**: Gorilla.1(0.9.6.4)
10+
Package | Version | Link
11+
---|---|---
12+
SDK Core| v0.20.7 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)
13+
Catbuffer | v0.0.21 | [catbuffer-typescript](https://www.npmjs.com/package/catbuffer-typescript)
14+
Client Library | v0.9.6 | [symbol-openapi-typescript-fetch-client](https://www.npmjs.com/package/symbol-openapi-typescript-fetch-client)
15+
16+
- **[BREAKING CHANGE]** Refactored `Namespace`, `Receipt` and `Metadata` endpoints. Added new search endpoint and removed old endpoints.
17+
- **[BREAKING CHANGE]** Updated encryption / decryption algorithm from `AES-CBC` to `AES-GCM` to meet the security standard.
18+
- **[BREAKING CHANGE]** Updated PersistentDelegatedHarvesting message marker. Also added VRF private key paramter in PersistentDelegatedHarvesting message & trsnaction creation.
19+
- Added optional parameter `TransactionHash` in `AggregateTransaction.signWith` method.
20+
- Updated encoding methods to support emoji in message payload.
21+
722
## [0.20.6] - 02-Jul-2020
823

924
**Milestone**: Gorilla.1(0.9.6.2)
@@ -625,6 +640,7 @@ Client Library | v0.7.20-alpha.6 | [nem2-sdk-openapi-typescript-node-client](ht
625640

626641
- Initial code release.
627642

643+
[0.20.7]: https://github.com/nemtech/symbol-sdk-typescript-javascript/compare/v0.20.6...v0.20.7
628644
[0.20.6]: https://github.com/nemtech/symbol-sdk-typescript-javascript/compare/v0.20.5...v0.20.6
629645
[0.20.5]: https://github.com/nemtech/symbol-sdk-typescript-javascript/compare/v0.20.4...v0.20.5
630646
[0.20.4]: https://github.com/nemtech/symbol-sdk-typescript-javascript/compare/v0.20.3...v0.20.4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ The Symbol SDK for TypeScript / JavaScript allows you to develop web, mobile, an
99

1010
## Important Notes
1111

12-
### _Gorilla.1_ Network Compatibility ([email protected].2)
12+
### _Gorilla.1_ Network Compatibility ([email protected].4)
1313

14-
Due to a network upgrade with [catapult-server@Gorilla](https://github.com/nemtech/catapult-server/releases/tag/v0.9.6.2) version, **it is recommended to use this package's 0.20.6 version and upwards to use this package with Fushicho versioned networks**.
14+
Due to a network upgrade with [catapult-server@Gorilla](https://github.com/nemtech/catapult-server/releases/tag/v0.9.6.4) version, **it is recommended to use this package's 0.20.7 version and upwards to use this package with Fushicho versioned networks**.
1515

1616
The upgrade to this package's [version v0.20.6](https://github.com/nemtech/symbol-sdk-typescript-javascript/releases/tag/v0.20.6) is mandatory for **_Gorilla compatibility**.
1717

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
/*
2+
* Copyright 2018 NEM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import { Account } from '../../src/model/account/Account';
18+
import { NetworkType } from '../../src/model/network/NetworkType';
19+
import { Deadline } from '../../src/model/transaction/Deadline';
20+
import { IntegrationTestHelper } from './IntegrationTestHelper';
21+
import { LinkAction } from '../../src/model/transaction/LinkAction';
22+
import { AccountKeyLinkTransaction } from '../../src/model/transaction/AccountKeyLinkTransaction';
23+
import { PersistentDelegationRequestTransaction } from '../../src/model/transaction/PersistentDelegationRequestTransaction';
24+
import { VrfKeyLinkTransaction } from '../../src/model/transaction/VrfKeyLinkTransaction';
25+
import { NodeKeyLinkTransaction } from '../../src/model/transaction/NodeKeyLinkTransaction';
26+
27+
describe('PersistentHarvesting', () => {
28+
const helper = new IntegrationTestHelper();
29+
let account: Account;
30+
let generationHash: string;
31+
let networkType: NetworkType;
32+
let remoteAccount: Account;
33+
const vrfKeyPair = Account.createFromPrivateKey(
34+
'82798EA9A2D2D202AFCCC82C40A287780BCA3C7F7A2FD5B754832804C6BE1BAA',
35+
NetworkType.MIJIN_TEST,
36+
);
37+
38+
before(() => {
39+
return helper.start().then(() => {
40+
remoteAccount = Account.generateNewAccount(helper.networkType);
41+
console.log(remoteAccount.privateKey, remoteAccount.publicAccount);
42+
account = helper.harvestingAccount;
43+
generationHash = helper.generationHash;
44+
networkType = helper.networkType;
45+
});
46+
});
47+
before(() => {
48+
return helper.listener.open();
49+
});
50+
51+
after(() => {
52+
helper.listener.close();
53+
});
54+
55+
/**
56+
* =========================
57+
* Setup test data
58+
* =========================
59+
*/
60+
61+
describe('AccountKeyLinkTransaction', () => {
62+
it('standalone', () => {
63+
const accountLinkTransaction = AccountKeyLinkTransaction.create(
64+
Deadline.create(),
65+
remoteAccount.publicKey,
66+
LinkAction.Link,
67+
networkType,
68+
helper.maxFee,
69+
);
70+
const signedTransaction = accountLinkTransaction.signWith(account, generationHash);
71+
72+
return helper.announce(signedTransaction);
73+
});
74+
});
75+
76+
describe('VrfKeyLinkTransaction', () => {
77+
it('standalone', () => {
78+
const vrfKeyLinkTransaction = VrfKeyLinkTransaction.create(
79+
Deadline.create(),
80+
vrfKeyPair.publicKey,
81+
LinkAction.Link,
82+
networkType,
83+
helper.maxFee,
84+
);
85+
const signedTransaction = vrfKeyLinkTransaction.signWith(account, generationHash);
86+
87+
return helper.announce(signedTransaction);
88+
});
89+
});
90+
91+
describe('NodeKeyLinkTransaction', () => {
92+
it('standalone', () => {
93+
const nodeKeyLinkTransaction = NodeKeyLinkTransaction.create(
94+
Deadline.create(),
95+
'cfd84eca83508bbee954668e4aecca736caefa615367da76afe6985d695381db',
96+
LinkAction.Link,
97+
networkType,
98+
helper.maxFee,
99+
);
100+
const signedTransaction = nodeKeyLinkTransaction.signWith(account, generationHash);
101+
102+
return helper.announce(signedTransaction);
103+
});
104+
});
105+
/**
106+
* =========================
107+
* Tests
108+
* =========================
109+
*/
110+
111+
describe('transactions', () => {
112+
it('should create delegated harvesting transaction', () => {
113+
const tx = PersistentDelegationRequestTransaction.createPersistentDelegationRequestTransaction(
114+
Deadline.create(),
115+
remoteAccount.privateKey,
116+
vrfKeyPair.privateKey,
117+
'cfd84eca83508bbee954668e4aecca736caefa615367da76afe6985d695381db',
118+
NetworkType.MIJIN_TEST,
119+
helper.maxFee,
120+
);
121+
122+
const signedTransaction = tx.signWith(account, generationHash);
123+
return helper.announce(signedTransaction);
124+
});
125+
});
126+
});

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"ripemd160": "^2.0.2",
100100
"rxjs": "^6.5.3",
101101
"rxjs-compat": "^6.5.3",
102-
"symbol-openapi-typescript-fetch-client": "0.9.6-SNAPSHOT.202007311152",
102+
"symbol-openapi-typescript-fetch-client": "0.9.6",
103103
"tweetnacl": "^1.0.3",
104104
"utf8": "^3.0.0",
105105
"ws": "^7.2.3"

0 commit comments

Comments
 (0)