Skip to content

Commit 709cb4b

Browse files
authored
Cleaned README
1 parent 3ff9967 commit 709cb4b

File tree

1 file changed

+16
-125
lines changed

1 file changed

+16
-125
lines changed

README.md

Lines changed: 16 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
[![Coverage Status](https://coveralls.io/repos/github/nemtech/nem2-sdk-typescript-javascript/badge.svg?branch=travis-ci)](https://coveralls.io/github/nemtech/nem2-sdk-typescript-javascript?branch=travis-ci)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
77

8-
The official nem2-sdk for TypeScript and JavaScript, available for browsers, mobile applications and NodeJS, to work
8+
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

1111
## Important Notes
1212

13-
1413
### _Dragon_ Network Compatibility (catapult-server@0.4.0.1)
1514

16-
Due to a network upgrade with [catapult-server@dragon](https://github.com/nemtech/catapult-server/releases/tag/v0.4.0.1) version, **it is recommended to use this package's 0.12.2 version and upwards in order to use this package with Dragon versioned networks**.
15+
Due to a network upgrade with [catapult-server@dragon](https://github.com/nemtech/catapult-server/releases/tag/v0.4.0.1) version, **it is recommended to use this package's 0.12.2 version and upwards to use this package with Dragon versioned networks**.
1716

1817
The upgrade to this package's [version v0.12.2](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.12.2) is mandatory for **dragon compatibility**.
1918

@@ -25,7 +24,9 @@ Due to a network upgrade with [catapult-server@cow](https://github.com/nemtech/c
2524

2625
### _Alpaca_ / _Bison_ Network Compatibility (catapult-server@0.1 & 0.2)
2726

28-
In order to be able to use this package with _Alpaca_ or _Bison_ versioned network, you must use [version v0.10.1-beta](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.10.1-beta).
27+
To be able to use this package with _Alpaca_ or _Bison_ versioned network, you must use [version v0.10.1-beta](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.10.1-beta).
28+
29+
You can find the complete changelog [here](CHANGELOG.md).
2930

3031
## Requirements
3132

@@ -41,137 +42,26 @@ In order to be able to use this package with _Alpaca_ or _Bison_ versioned netwo
4142
npm install nem2-sdk rxjs
4243
```
4344

44-
## Documentation and Getting Started
45-
46-
Get started and learn more about nem2-sdk-typescript-javascript, check the [official documentation][docs].
47-
48-
Check SDK reference [here][sdk-ref]
45+
## Usage
4946

50-
## nem2-sdk Releases
51-
52-
The release notes for the nem2-sdk can be found [here](CHANGELOG.md).
53-
54-
## Contributing
55-
56-
This project is developed and maintained by NEM Foundation. Contributions are welcome and appreciated. You can find [nem2-sdk on GitHub][self];
57-
Feel free to start an issue or create a pull request. Check [CONTRIBUTING](CONTRIBUTING.md) before start.
47+
Surf the [NEM Developer Center][docs] to get started into NEM development. You will find self-paced guides and useful code snippets using the TypeScript/Javascript SDK.
5848

49+
To get the full description of the available classes and their functions, check the [SDK reference][sdk-ref].
50+
5951
## Getting help
6052

61-
We use GitHub issues for tracking bugs and have limited bandwidth to address them.
62-
Please, use the following available resources to get help:
53+
Use the following available resources to get help:
6354

64-
- [nem2-cli documentation][docs]
55+
- [nem2-sdk-typescript-javascript documentation][docs]
6556
- If you found a bug, [open a new issue][issues]
6657

67-
## Changelog
68-
69-
Important versions listed below. Refer to the [Changelog](CHANGELOG.md) for a full history of the project.
70-
71-
- [0.12.2](CHANGELOG.md#0121-05-Jun-2019) - **Dragon compatible** - 17.06.2019
72-
- [0.11.6](CHANGELOG.md#0116-03-Jun-2019) - **Cow compatible** - 03.06.2019
73-
- [0.11.5](CHANGELOG.md#0115-18-Apr-2019) - **Cow compatible** - 18.04.2019
74-
- [0.11.4](CHANGELOG.md#0114-17-Apr-2019) - **Cow compatible** - 17.04.2019
75-
- [0.11.3](CHANGELOG.md#0113-10-Apr-2019) - **Cow compatible** - 10.04.2019
76-
- [0.11.2](CHANGELOG.md#0112-1-Apr-2019) - **Cow compatible** - 01.04.2019
77-
- [0.11](CHANGELOG.md#011-14-Mar-2019) - **Cow compatible** - 14.03.2019
78-
- [0.10.1-beta](CHANGELOG.md#v0101-beta) - **Alpaca compatible** 07.2018
79-
- [0.9.5](CHANGELOG.md#095-27-Jun-2018) - **Alpaca compatible** 07.2018
58+
## Contributing
8059

81-
## Notes on generation of catapult-rest DTO and API client
60+
This project is developed and maintained by NEM Foundation. Contributions are welcome and appreciated. You can find [nem2-sdk on GitHub][self].
8261

83-
Following command can be used to generate DTOs and Api clients for the [nem2-sdk-typescript-javascript](https://github.com/nemtech/nem2-sdk-typescript-javascript) :
62+
Feel free to start an issue or create a pull request. Check [CONTRIBUTING](CONTRIBUTING.md) before start.
8463

85-
1. Download latest NEM2 swagger definition
86-
```bash
87-
$ git clone git@github.com:nemtech/nem2-docs
88-
$ cd nem2-docs && mkdir sdks && cd sdks
89-
$ cp ../source/resources/collections/swagger.yaml .
90-
```
91-
2. Copy OpenAPI generator template
92-
93-
Copy the `templates` folder from {nem2-sdk-typescript-javascript}/infrastructure/ into `sdk` folder
94-
95-
3. Download OpenAPI generator and generate codes
96-
```bash
97-
$ brew install openapi-generator
98-
$ openapi-generator generate -i ./swagger2.yaml -g typescript-node -t templates/ -o ./nem2-ts-sdk/ && rm -R nem2-ts-sdk/test
99-
```
100-
** Note openapi-generator is also available on docker. (`https://hub.docker.com/r/openapitools/openapi-generator`)
101-
4. Fix enum type definitions
102-
103-
As the generator doesn't recognize `enum` type alias, we need to manually move enum classes in to the `enumsMap` list.
104-
- Open generated file `./nem2-ts-sdk/model/models.ts` in editor
105-
- Search for line contains `let enumsMap: {[index: string]: any}`.
106-
- Move all `xxxTypeEnum` entries from below `typeMap` into `enumsMap`.
107-
108-
example below:
109-
```js
110-
let enumsMap: {[index: string]: any} = {
111-
"AccountPropertyTypeEnum": AccountPropertyTypeEnum,
112-
"AliasTypeEnum": AliasTypeEnum,
113-
"ResolutionStatementDTO": ResolutionStatementDTO,
114-
"MosaicPropertyIdEnum": MosaicPropertyIdEnum,
115-
"MultisigModificationTypeEnum": MultisigModificationTypeEnum,
116-
"NamespaceTypeEnum": NamespaceTypeEnum,
117-
"ReceiptTypeEnum": ReceiptTypeEnum,
118-
"RolesTypeEnum": RolesTypeEnum,
119-
}
120-
121-
let typeMap: {[index: string]: any} = {
122-
"AccountDTO": AccountDTO,
123-
"AccountIds": AccountIds,
124-
"AccountInfoDTO": AccountInfoDTO,
125-
"AccountMetaDTO": AccountMetaDTO,
126-
"AccountNamesDTO": AccountNamesDTO,
127-
"AccountPropertiesDTO": AccountPropertiesDTO,
128-
"AccountPropertiesInfoDTO": AccountPropertiesInfoDTO,
129-
"AccountPropertyDTO": AccountPropertyDTO,
130-
"AliasDTO": AliasDTO,
131-
"AnnounceTransactionInfoDTO": AnnounceTransactionInfoDTO,
132-
"BlockDTO": BlockDTO,
133-
"BlockInfoDTO": BlockInfoDTO,
134-
"BlockMetaDTO": BlockMetaDTO,
135-
"BlockchainScoreDTO": BlockchainScoreDTO,
136-
"CommunicationTimestamps": CommunicationTimestamps,
137-
"Cosignature": Cosignature,
138-
"HeightInfoDTO": HeightInfoDTO,
139-
"MerklePathItem": MerklePathItem,
140-
"MerkleProofInfo": MerkleProofInfo,
141-
"MerkleProofInfoDTO": MerkleProofInfoDTO,
142-
"MosaicDTO": MosaicDTO,
143-
"MosaicDefinitionDTO": MosaicDefinitionDTO,
144-
"MosaicIds": MosaicIds,
145-
"MosaicInfoDTO": MosaicInfoDTO,
146-
"MosaicMetaDTO": MosaicMetaDTO,
147-
"MosaicNamesDTO": MosaicNamesDTO,
148-
"MosaicPropertyDTO": MosaicPropertyDTO,
149-
"MultisigAccountGraphInfoDTO": MultisigAccountGraphInfoDTO,
150-
"MultisigAccountInfoDTO": MultisigAccountInfoDTO,
151-
"MultisigDTO": MultisigDTO,
152-
"NamespaceDTO": NamespaceDTO,
153-
"NamespaceIds": NamespaceIds,
154-
"NamespaceInfoDTO": NamespaceInfoDTO,
155-
"NamespaceMetaDTO": NamespaceMetaDTO,
156-
"NamespaceNameDTO": NamespaceNameDTO,
157-
"NetworkTypeDTO": NetworkTypeDTO,
158-
"NodeInfoDTO": NodeInfoDTO,
159-
"NodeTimeDTO": NodeTimeDTO,
160-
"ResolutionEntryDTO": ResolutionEntryDTO,
161-
"ServerDTO": ServerDTO,
162-
"ServerInfoDTO": ServerInfoDTO,
163-
"SourceDTO": SourceDTO,
164-
"StatementsDTO": StatementsDTO,
165-
"StorageInfoDTO": StorageInfoDTO,
166-
"TransactionHashes": TransactionHashes,
167-
"TransactionIds": TransactionIds,
168-
"TransactionInfoDTO": TransactionInfoDTO,
169-
"TransactionMetaDTO": TransactionMetaDTO,
170-
"TransactionPayload": TransactionPayload,
171-
"TransactionStatementDTO": TransactionStatementDTO,
172-
"TransactionStatusDTO": TransactionStatusDTO,
173-
}
174-
```
64+
You can also find useful notes for developers under our documentation [guidelines][guidelines] section.
17565

17666
## License
17767

@@ -182,3 +72,4 @@ Licensed under the [Apache License 2.0](LICENSE)
18272
[docs]: http://nemtech.github.io/getting-started/setup-workstation.html
18373
[issues]: https://github.com/nemtech/nem2-sdk-typescript-javascript/issues
18474
[sdk-ref]: http://nemtech.github.io/nem2-sdk-typescript-javascript
75+
[guidelines]: https://nemtech.github.io/contribute/contributing.html#sdk

0 commit comments

Comments
 (0)