-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: improve docs * fix: remove version from package.json * fix: update prepare-packages script * fix: update prepare-packages script --------- Co-authored-by: Rodolfo Pietro CalabrΓ² <[email protected]>
- Loading branch information
1 parent
15b145b
commit 6239b47
Showing
16 changed files
with
97 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,21 @@ | ||
# Code Examples & Documentation | ||
# Vechain SDK | ||
|
||
Welcome to the `/docs` folder, your go-to resource for comprehensive **SDK documentation** and executable code examples. We've designed these examples not just for learning purposes but also as integration tests, ensuring that the provided code snippets are always functional and up-to-date. | ||
Welcome to the official documentation for the vechain SDK! | ||
|
||
## Structure | ||
This SDK provides developers with tools and resources to integrate vechain blockchain functionality into their applications with ease. Whether you're building decentralized applications (dApps), managing digital assets, or exploring blockchain-based solutions, this SDK offers a comprehensive set of features to interact with the VeChainThor blockchain. | ||
|
||
### Examples | ||
## Installation | ||
|
||
Our code examples reside in the `/examples` folder. Each example is a stand-alone script that showcases various operations achievable with the SDK. | ||
To begin using the vechain SDK, run the following command: | ||
|
||
Some of the code examples require a Thor Solo node to be available. | ||
|
||
### Templates | ||
|
||
In the `/templates` folder, you'll find markdown files used to build our final documentation. These templates can include links to example files, dynamically expanded into code snippets during documentation generation. | ||
|
||
For instance: | ||
|
||
\[example](examples/accounts/bip39.ts) | ||
|
||
The above link, when processed during documentation build, expands into the content of the linked file, ensuring our documentation is as practical as possible. | ||
|
||
Note: links that are to be expanded must have text \[example] | ||
|
||
## Usage | ||
|
||
### Execute Examples as Tests | ||
|
||
To run the scripts within /examples as tests, use: | ||
``` bash | ||
yarn test:examples | ||
npm install @vechain/vechain-sdk | ||
``` | ||
|
||
**NOTE**: Tests require thor-solo to be running locally. You can run and stop separately thor solo node with `yarn start-thor-solo` and `yarn stop-thor-solo` or run all tests with `yarn test:examples:solo` which will start thor solo node, run all tests and stop thor solo at the end. | ||
|
||
## Contributing | ||
|
||
### Build Documentation | ||
|
||
To build the documentation, expanding examples into code snippets, use: | ||
``` bash | ||
yarn build | ||
``` | ||
We welcome contributions from the community to improve the vechain SDK. If you want to contribute, please review our Contribution Guidelines for more information. | ||
|
||
Feel free to explore the examples and templates, and don't hesitate to reach out if you have any questions or need further assistance. | ||
## License | ||
|
||
Happy coding with the vechain SDK! | ||
The vechain SDK is licensed under the MIT License, which allows for both personal and commercial use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6239b47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Coverage
Summary