Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Sprinter TS - Cross-Chain Developer Toolkit

## Table of Contents

- [Sprinter TS - Cross-Chain Developer Toolkit](#sprinter-ts---cross-chain-developer-toolkit)
- [Introduction](#introduction)
- [Prerequisites](#prerequisites)
- [Getting Started](#getting-started)
- [Building](#building)
- [Testing](#testing)
- [Linting and Formatting](#linting-and-formatting)

---

<a name="introduction"></a>
## Introduction

Sprinter TS is a powerful developer toolkit designed to simplify cross-chain integrations and enhance the developer experience. It includes:

- **TypeScript SDK** for strongly typed APIs and simplified interactions.
- **React SDK** with hooks and context for seamless integration into React applications.
- **Comprehensive Documentation** to guide and support developers.

Whether you're building cross-chain applications or experimenting with decentralized technologies, Sprinter provides the tools you need to succeed.

---

<a name="prerequisites"></a>
Copy link
Contributor

@Tbaut Tbaut Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit: nevermind, it works in the rendered file on the branch. https://stackoverflow.com/questions/6695439/how-to-link-to-a-named-anchor-in-multimarkdown

## Prerequisites

Before you begin, ensure you have the following installed:

- Node.js >= 20.0.0 (we recommend using [nvm](https://github.com/nvm-sh/nvm) for managing Node versions)
- Yarn >= 4.3 (via [corepack](https://github.com/nodejs/corepack))

---

<a name="getting-started"></a>
## Getting Started

To get started with the project:

1. Clone the repository:
```shell
git clone https://github.com/ChainSafe/sprinter-ts.git
```

2. Navigate to the project root:
```shell
cd sprinter-ts
```

3. Set Node.js to the compatible version _(skip if you use a manual approach)_:
```shell
nvm use
```

4. Enable Corepack:
```shell
corepack enable
```

5. Install the dependencies:
```shell
yarn install
```

---

<a name="building"></a>
## Building

To build all packages, run:

```shell
yarn build
```

---

Here's the corrected and updated **Testing** and **Linting and Formatting** documentation that reflects your unchanged `package.json`.

---

<a name="testing"></a>
## Testing

### Run Unit Tests

```shell
yarn test:unit
```

This command executes unit tests in all packages where they are defined.

### Run Integration Tests

```shell
yarn test:integrations
```

This command executes integration tests in all packages where they are defined.

---

<a name="linting-and-formatting"></a>
## Linting and Formatting

This project uses [ESLint](https://eslint.org/) to enforce code style and formatting. To ensure consistent code quality, you can use the following command:

### Check for Linting Issues

```shell
yarn lint
```

This command runs the linter across all workspaces to identify any issues.

Loading