Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMakarenko committed Mar 31, 2021
2 parents 251237d + e6f186c commit 31bf431
Show file tree
Hide file tree
Showing 14 changed files with 1,095 additions and 196 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,33 @@ 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.0] - 13-Mar-2021

**Milestone**: Symbol Mainnet
Package | Version | Link
---|---|---
SDK Core| v1.0.0 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)
Catbuffer | v0.1.1 | [catbuffer-typescript](https://www.npmjs.com/package/catbuffer-typescript)
Client Library | v0.11.1 | [symbol-openapi-typescript-fetch-client](https://www.npmjs.com/package/symbol-openapi-typescript-fetch-client)

- Added callback function in websocket listener for client to handle unsolicited websocket close event.
- Release for Symbol mainnet.

## [0.23.3] - 5-Mar-2021

**Milestone**: Catapult-server main(0.10.0.8)
Package | Version | Link
---|---|---
SDK Core| v0.23.3 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)
Catbuffer | v0.1.1 | [catbuffer-typescript](https://www.npmjs.com/package/catbuffer-typescript)
Client Library | v0.11.1 | [symbol-openapi-typescript-fetch-client](https://www.npmjs.com/package/symbol-openapi-typescript-fetch-client)

- Fixed `NodeVersion` schema issue.
- Added `onclose` event listener to capture unsolicited ws close event.

## [0.23.2] - 15-Feb-2021

**Milestone**: Catapult-server main(0.10.0.6)
**Milestone**: Catapult-server main(0.10.0.7)
Package | Version | Link
---|---|---
SDK Core| v0.23.2 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ The Symbol SDK for TypeScript / JavaScript allows you to develop web, mobile, an

## Important Notes

### _Catapult-Server_ Network Compatibility (catapult-server@0.10.0.7)
### _Catapult-Server_ Network Compatibility (catapult-server@0.10.0.8)

Symbol network pre-launch [catapult-server](https://github.com/nemtech/catapult-server/releases/tag/v0.10.0.7), **it is recommended to use this package's 0.23.2 version and upwards for the upcoming pre-release versions and final release**.
Symbol network pre-launch [catapult-server](https://github.com/nemtech/catapult-server/releases/tag/v0.10.0.8), **it is recommended to use this package's 0.23.3 version and upwards for the upcoming pre-release versions and final release**.

Find the complete release notes [here](CHANGELOG.md).

Expand Down
3 changes: 2 additions & 1 deletion e2e/e2e-preset.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
throttlingBurst: 35
throttlingRate: 1000
nemesis:
mosaics:
- accounts: 10
symbolRestImage: symbolplatform/symbol-rest:2.1.1-alpha-202011061935
22 changes: 3 additions & 19 deletions e2e/infrastructure/IntegrationTestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/
import { map } from 'rxjs/operators';
import { Addresses, BootstrapService, BootstrapUtils, Preset, StartParams } from 'symbol-bootstrap';
import { Addresses, BootstrapService, BootstrapUtils, ConfigLoader, StartParams } from 'symbol-bootstrap';
import { IListener, RepositoryFactory, RepositoryFactoryHttp } from '../../src/infrastructure';
import { UInt64 } from '../../src/model';
import { Account } from '../../src/model/account';
Expand Down Expand Up @@ -48,26 +48,10 @@ export class IntegrationTestHelper {
public epochAdjustment: number;
public bootstrapAddresses: Addresses;

private async startBootstrapServer(): Promise<{ accounts: string[]; apiUrl: string; addresses: Addresses }> {
this.config = {
report: false,
preset: Preset.bootstrap,
reset: this.startEachTime,
customPreset: './e2e/e2e-preset.yml',
timeout: 60000 * 3,
target: 'target/bootstrap-test',
detached: false,
user: 'current',
};

console.log('Starting bootstrap server');
const configResult = await this.service.start({ ...this.config, detached: true });
return this.toAccounts(configResult.addresses);
}
private async loadBootstrap(): Promise<{ accounts: string[]; apiUrl: string; addresses: Addresses }> {
const target = process.env.REST_DEV || true ? '../catapult-rest/rest/target' : 'target/bootstrap-test';
const target = process.env.REST_DEV ? '../catapult-rest/rest/target' : 'target/bootstrap-test';
console.log('Loading bootstrap server');
const addresses = BootstrapUtils.loadExistingAddresses(target);
const addresses = new ConfigLoader().loadExistingAddresses(target, false);
return this.toAccounts(addresses);
}

Expand Down
6 changes: 3 additions & 3 deletions e2e/infrastructure/PersistentHarvesting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('PersistentHarvesting', () => {
vrfAccount = Account.createFromPrivateKey('AA798EA9A2D2D202AFCCC82C40A287780BCA3C7F7A2FD5B754832804C6BE1BAA', networkType);
account = helper.account;
generationHash = helper.generationHash;
nodePublicKey = helper.bootstrapAddresses.nodes![0].signing!.publicKey;
nodePublicKey = helper.bootstrapAddresses.nodes![0].transport!.publicKey;
console.log('Remote: ', remoteAccount.publicAccount);
console.log('VRF: ', vrfAccount.publicAccount);
console.log('Node Public Key: ', nodePublicKey);
Expand Down Expand Up @@ -110,7 +110,7 @@ describe('PersistentHarvesting', () => {

describe('NodeKeyLinkTransaction', () => {
it('standalone', async () => {
const nodePublicKey = helper.bootstrapAddresses.nodes![0].signing!.publicKey;
const nodePublicKey = helper.bootstrapAddresses.nodes![0].transport!.publicKey;

const accountInfo = await helper.repositoryFactory.createAccountRepository().getAccountInfo(account.address).toPromise();

Expand Down Expand Up @@ -142,7 +142,7 @@ describe('PersistentHarvesting', () => {

describe('transactions', () => {
it('should create delegated harvesting transaction', async () => {
const nodePublicKey = helper.bootstrapAddresses.nodes![0].signing!.publicKey;
const nodePublicKey = helper.bootstrapAddresses.nodes![0].transport!.publicKey;
const tx = PersistentDelegationRequestTransaction.createPersistentDelegationRequestTransaction(
Deadline.create(helper.epochAdjustment),
remoteAccount.privateKey,
Expand Down
Loading

0 comments on commit 31bf431

Please sign in to comment.