@t3rn/pricer v1.7.10
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 --saveor
pnpm add npm i @t3rn/pricerUsage
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:
- Increase the library's version in
package.json, e.g.:"version": "1.5.4". - Run
npm run build. - Commit your changes:
git add . git commit -m "Version X.Y.Z: Description of changes" - Push your changes to your branch:
git push origin your-branch-name - Merge your changes into the master branch:
git checkout master git pull origin master git merge your-branch-name - 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.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago