https://github.com/threefoldtech/tfgrid-sdk-dart
https://github.com/threefoldtech/tfgrid-sdk-dart
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/threefoldtech/tfgrid-sdk-dart
- Owner: threefoldtech
- Created: 2023-11-19T09:32:58.000Z (over 2 years ago)
- Default Branch: development
- Last Pushed: 2025-04-09T09:43:06.000Z (about 1 year ago)
- Last Synced: 2025-04-09T17:09:52.202Z (about 1 year ago)
- Language: Dart
- Size: 14.4 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# tfgrid-sdk-dart
[](https://github.com/invertase/melos) [](https://codecov.io/gh/threefoldtech/tfgrid-sdk-dart)
This repo contains the dart clients for Threefold grid.
## Packages
- [signer](./packages/signer/README.md)
- [tfchain_client](./packages/tfchain_client/README.md)
- [gridproxy_client](./packages/gridproxy_client/README.md)
- [graphql_client](./packages/graphql_client/README.md)
- [stellar_client](./packages/stellar_client/README.md)
## Prerequisites
Make sure you have the following tools installed:
- [Dart SDK](https://dart.dev/get-dart)
- [Melos](https://pub.dev/packages/melos)
- [Coverde](https://pub.dev/packages/coverde)
## Initialize Workspace
To initialize workspace in all packages run the following command
```bash
melos bootstrap
```
## Code Analysis
To analyze code in all dart package run the following command
```bash
melos run analyze
```
## Run Unit Tests
To run unit tests in all packages that have `test` directory, run the following command
```bash
docker run --network host ghcr.io/threefoldtech/tfchain --dev --rpc-cors all --rpc-external --rpc-methods=safe
```
Then run :
```bash
melos run unit_test
```
## Generate Coverage
To generate coverage for all packages and merge the results, use the following commands
```bash
melos run unit_test_and_coverage
```
Check results from `result.txt` with the following command
```bash
cat coverage/result.txt
```