1.7.10 • Published 2 years ago

@t3rn/pricer v1.7.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Pricer

Overview

@t3rn/pricer provides functionality for retrieving asset prices, evaluating deals, and proposing deals for a given set amount.

Development

For development related questions refer to HOW_TO.md

Installation

npm i @t3rn/pricer --save

or

pnpm add npm i @t3rn/pricer

Usage

const pricer = new Pricer(config)
...
const assetValueUSD = await pricer.receiveAssetUSDValue(
    assetNamePriceProvider,
    networkNamePriceProvider,
    order.maxReward,
)

Publishing

Follow these steps to publish the package to npm after introducing new features/fixes:

  1. Increase the library's version in package.json, e.g.: "version": "1.5.4".
  2. Run npm run build.
  3. Commit your changes:
    git add .
    git commit -m "Version X.Y.Z: Description of changes"
  4. Push your changes to your branch:
    git push origin your-branch-name
  5. Merge your changes into the master branch:
    git checkout master
    git pull origin master
    git merge your-branch-name
  6. Publish the package to npm:
    npm publish

Documentation

For detailed information on each method and its parameters, refer to the Pricer class definition.

License

This project is licensed under the MIT License.

1.7.10

2 years ago

1.7.9

2 years ago

1.7.8

2 years ago

1.7.7

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.9

2 years ago

1.6.8

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.7

2 years ago

1.6.6

2 years ago

1.6.5

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago