# @windingtree/sdk-constants

> libp2p PubSub protocol implementation for the WindingTree market protocol

Latest version **1.2.3** (published 2024-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @windingtree/sdk-constants
pnpm add @windingtree/sdk-constants
yarn add @windingtree/sdk-constants
bun add @windingtree/sdk-constants
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2024-01-17 |
| First published | 2023-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Kostiantyn Smyrnov |
| Maintainers | valera_rozuvan, kostysh, kvakes, tomashq |

## Links

- npm: https://www.npmjs.com/package/@windingtree/sdk-constants
- Repository: https://github.com/windingtree/sdk.git#readme
- Homepage: https://github.com/windingtree/sdk/tree/readme#readme
- Issues: https://github.com/windingtree/sdk/issues
- npm.io page: https://npm.io/package/@windingtree/sdk-constants

## Recent versions

- 1.2.3 (latest) — 2024-01-17
- 1.2.3-beta.0 (beta) — 2024-01-17
- 1.2.2 — 2023-12-11
- 1.2.1 — 2023-10-31
- 1.2.0 — 2023-10-25
- 1.2.0-beta.0 — 2023-10-25
- 1.1.0 — 2023-07-27
- 1.1.0-beta.3 — 2023-07-27
- 1.1.0-beta.2 — 2023-07-27
- 1.1.0-beta.1 — 2023-07-23
- 1.1.0-beta.0 — 2023-07-23

## README

# @windingtree/sdk-constants

This package is a part of the Winding Tree SDK. It provides a set of predefined constants that are commonly used throughout the Winding Tree market protocol implementations. This package facilitates consistent timing and configuration across various aspects of the protocol, such as message expiration times, outbound stream delays, nonce periods, queue job parameters, and more.

## Installation

```bash
pnpm i @windingtree/sdk-constants
```

## Usage

Here's a basic example of how to use this package:

```typescript
import {
  defaultExpirationTime,
  outboundStreamDelay,
  noncePeriod,
  queueConcurrentJobsNumber,
  queueJobAttemptsDelay,
  queueHeartbeat,
} from '@windingtree/sdk-constants';

console.log('Default Expiration Time:', defaultExpirationTime);
console.log('Outbound Stream Delay:', outboundStreamDelay);
console.log('Nonce Period:', noncePeriod);
console.log('Queue Concurrent Jobs Number:', queueConcurrentJobsNumber);
console.log('Queue Job Attempts Delay:', queueJobAttemptsDelay);
console.log('Queue Heartbeat:', queueHeartbeat);
```

This will log the values of various constants to the console.

## Documentation

For full documentation and examples, visit [windingtree.github.io/sdk](https://windingtree.github.io/sdk)

## Testing

```bash
pnpm test
```

## Contributing

[Contribution guidelines](https://windingtree.github.io/sdk/#/docs/contribution)

---
_Source: https://npm.io/package/@windingtree/sdk-constants · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
