@windingtree/sdk-constants
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

@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

pnpm i @windingtree/sdk-constants

Usage

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

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

Testing

pnpm test

Contributing

Contribution guidelines

Readme

Keywords

none

Package Sidebar

Install

npm i @windingtree/sdk-constants

Weekly Downloads

0

Version

1.2.3

License

MIT

Unpacked Size

8.21 kB

Total Files

10

Last publish

Collaborators

  • kostysh
  • kvakes
  • tomashq