Skip to content

Commit 7cf3cce

Browse files
author
Grégory Saive
authored
Merge branch 'master' into task/ws-channel-unsubscription
2 parents e841151 + c778de5 commit 7cf3cce

File tree

81 files changed

+2438
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2438
-599
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ script:
1313
before_deploy:
1414
- npm install --global typedoc
1515
- typedoc --out ts-docs src
16+
- touch ./ts-docs/.nojekyll
1617
deploy:
1718
provider: pages
1819
skip_cleanup: true
19-
keep-history: true
2020
local_dir: ts-docs
2121
github_token: $GITHUB_TOKEN
2222
on:
2323
branch: master
24-
24+

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
11
# CHANGELOG
22

3+
# v0.10.3
4+
5+
- Fixed NetworkCurrencyMosaic, NetworkHarvestMosaic
6+
- Added exposed UInt64.fromHex and UInt64.toHex
7+
- Added MosaicId.createFromNonce
8+
- Added MosaicNonce, MosaicNonce.createRandom
9+
- Fixed AliasDTO.mosaicId to be UInt64
10+
- Added nem2-library@v0.9.8 version update (cow compatibility)
11+
12+
# v0.10.2
13+
14+
- Added cow network update *base* compatibility
15+
- Added AliasTransaction, AddressAliasTransaction, MosaicAliasTransaction
16+
- Changed MosaicDefinition to hold MosaicNonce
17+
- Changed SecretLock transaction to work with Sha3_256 instead of Sha3_512
18+
19+
# v0.10.1-beta
20+
21+
- added replyGiven in Transaction model
22+
- several linter fixes
23+
24+
# v0.10.0-beta
25+
26+
- update rxjs to v6
27+
- use observableFrom
28+
29+
# v0.9.5
30+
31+
- data signatures
32+
- nodejs version 10 updates

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
The official nem2-sdk for TypeScript and JavaScript, available for browsers, mobile applications and NodeJS, to work
99
with the NEM2 (a.k.a Catapult)
1010

11+
## Important Notes
12+
13+
Due to a network upgrade with [catapult-server@cow](https://github.com/nemtech/catapult-server/releases/tag/v0.3.0.1) version, **transactions from Alpaca&Bison are not compatible anymore**.
14+
15+
The upgrade to this SDK's [version v0.10.2](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.10.2) is mandatory for **cow compatibility**.
16+
17+
Other versions like [version v0.10.1-beta](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.10.1-beta) can be used for **bison** network version.
18+
1119
## Requirements
1220

1321
### NodeJS
@@ -43,9 +51,17 @@ Please, use the following available resources to get help:
4351
- [nem2-cli documentation][docs]
4452
- If you found a bug, [open a new issue][issues]
4553

54+
## Changelog
55+
56+
Important versions listed below. Refer to the [Changelog](CHANGELOG.md) for a full history of the project.
57+
58+
- [0.10.3](CHANGELOG.md#v0103) - **Cow compatible** - TBD
59+
- [0.10.2](CHANGELOG.md#v0102) - **Cow compatible** - 2019-02-25
60+
- [0.10.1-beta](CHANGELOG.md#v0101-beta) - **Alpaca compatible**
61+
4662
## License
4763

48-
Copyright (c) 2018 NEM
64+
Copyright (c) 2018-2019 NEM
4965
Licensed under the [Apache License 2.0](LICENSE)
5066

5167
[self]: https://github.com/nemtech/nem2-sdk-typescript-javascript

e2e/infrastructure/MosaicHttp.spec.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,4 @@ describe('MosaicHttp', () => {
5353
});
5454
});
5555
});
56-
57-
describe('getMosaicsFromNamespace', () => {
58-
it('should return mosaics given namespaceId', (done) => {
59-
mosaicHttp.getMosaicsFromNamespace(namespaceId)
60-
.subscribe((mosaicInfos) => {
61-
expect(mosaicInfos[0].height.lower).to.be.equal(1);
62-
expect(mosaicInfos[0].height.higher).to.be.equal(0);
63-
expect(mosaicInfos[0].divisibility).to.be.equal(6);
64-
expect(mosaicInfos[0].isSupplyMutable()).to.be.equal(false);
65-
expect(mosaicInfos[0].isTransferable()).to.be.equal(true);
66-
expect(mosaicInfos[0].isLevyMutable()).to.be.equal(false);
67-
done();
68-
});
69-
});
70-
});
71-
72-
describe('getMosaicsName', () => {
73-
it('should return mosaics name given array of mosaicIds', (done) => {
74-
mosaicHttp.getMosaicsName([mosaicId])
75-
.subscribe((mosaicNames) => {
76-
expect(mosaicNames[0].name).to.be.equal('xem');
77-
done();
78-
});
79-
});
80-
});
8156
});

e2e/infrastructure/NamespaceHttp.spec.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import {deepEqual} from 'assert';
1617
import {expect} from 'chai';
1718
import {NamespaceHttp} from '../../src/infrastructure/NamespaceHttp';
1819
import {PublicAccount} from '../../src/model/account/PublicAccount';
1920
import {NetworkType} from '../../src/model/blockchain/NetworkType';
21+
import {NetworkCurrencyMosaic} from '../../src/model/mosaic/NetworkCurrencyMosaic';
2022
import {NamespaceId} from '../../src/model/namespace/NamespaceId';
2123
import {APIUrl} from '../conf/conf.spec';
2224

2325
describe('NamespaceHttp', () => {
24-
const namespaceId = new NamespaceId([929036875, 2226345261]);
26+
const namespaceId = NetworkCurrencyMosaic.NAMESPACE_ID;
2527
const publicAccount = PublicAccount.createFromPublicKey('B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
2628
NetworkType.MIJIN_TEST);
2729
const namespaceHttp = new NamespaceHttp(APIUrl);
@@ -69,4 +71,24 @@ describe('NamespaceHttp', () => {
6971
});
7072
});
7173
});
74+
75+
describe('getLinkedMosaicId', () => {
76+
it('should return mosaicId given currency namespaceId', (done) => {
77+
namespaceHttp.getLinkedMosaicId(namespaceId)
78+
.subscribe((mosaicId) => {
79+
expect(mosaicId).to.not.be.null;
80+
done();
81+
});
82+
});
83+
});
84+
85+
describe('getLinkedAddress', () => {
86+
it('should return address given namespaceId', (done) => {
87+
namespaceHttp.getLinkedAddress(namespaceId)
88+
.subscribe((address) => {
89+
expect(address).to.be.null;
90+
done();
91+
});
92+
});
93+
});
7294
});

0 commit comments

Comments
 (0)