2.5.2 • Published 9 months ago
@readyio/ready-lib v2.5.2
Ready Lib
Installing Ready Lib for a project
Add ready lib dependencies via gitlab: Modify package.json as
"dependencies": { "ready-lib": "git+https://git.cystack.org/ready/ready-lib.git" }
Install with npm
npm install
or with yarn
yarn
Reintall library when there's new version
npm install ready-lib -f
Usage
- TODO: update docs to docs folder with jsdoc
Get started for developing Ready Lib
Prerequisite:
- Node.js
- Yarn/Npm
- pre-commit
Steps
Download dependencies with yarn or npm
yarn
- Note that, as a library's perspective, package.json is the single source of truth and developers should not rely on
package-lock.json
oryarn.lock
to re-create the same environment. A good practice is to delete those lock files &node_modules
and then reinstall dependencies to test ifpackage.json
is good to go.
- Note that, as a library's perspective, package.json is the single source of truth and developers should not rely on
Installing pre-commit hooks (for god's sake, we should avoid commiting & pushing those stealthy secrets asap)
pre-commit install
Quick Nodes (todo: categorize these notes)
- Use *.spec.ts for quickly testing our modules. We will add more cases in the future. The code base now is not in good coverage yet.
- Put secrets concentrating in a place for easier ignoring pushing them.
- For mock data that we're afraid of being catched by gitleaks, use
.gitleaksignore
TODO:
Features (most of these features are implemented already by chauntm and thangnx, but we need to re-add them again but this time is slowly with carefully testing)
- approve, check allowance, swap, wrap/unwrap
- get usd prices (calling directly from lib, instead of calling to Ready api)
- support basic functions for tron
- support basic functions for solana
- pack library & publish it to npm / yarn registry
Development Helpers
- add more tests (both happy & unhappy cases)
- generate doc folders and host them
- auto install pre-commit hooks between team members
- config example folder for a greater usability
- add dependency bot for real-time alert
CI/CD
- run all unit tests before merging
- run examples as a test pipeline
2.5.2
9 months ago
2.5.1
9 months ago
2.5.0
9 months ago
2.4.3
10 months ago
2.4.2
10 months ago
2.4.1
10 months ago
2.4.0
10 months ago
2.3.9
10 months ago
2.3.11
10 months ago
2.3.10
10 months ago
2.3.8
10 months ago
2.2.1
1 year ago
2.3.2
1 year ago
2.3.1
1 year ago
2.3.4
1 year ago
2.3.3
1 year ago
2.3.6
11 months ago
2.3.5
11 months ago
2.3.7
11 months ago
2.0.7
1 year ago
2.0.4
1 year ago