https://github.com/astarnetwork/dapp-staking
Astar dApp staking library
https://github.com/astarnetwork/dapp-staking
Last synced: 5 months ago
JSON representation
Astar dApp staking library
- Host: GitHub
- URL: https://github.com/astarnetwork/dapp-staking
- Owner: AstarNetwork
- License: gpl-3.0
- Created: 2024-09-25T08:28:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T07:58:00.000Z (over 1 year ago)
- Last Synced: 2025-04-07T21:07:04.071Z (about 1 year ago)
- Language: TypeScript
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Astar dApp staking v3 library
## Intro
The library contains set of function to be used to access Astar dApp staking v3 pallet.
More info on dApp staking can be found in the [docs](https://docs.astar.network/docs/use/dapp-staking/).
## How to start
**Install dependencies**
`npm i`
**Build the project**
`npm run build`
**Run test script**
For ad hoc lib features testing
`npm run test`
**Run demo app**
Starts Next js demo app. The app is intended to be a sample on how to use this lib
`npm start`
**Run tests**
`npm run test:staking`
**Generate documentation**
`npm run docgen:staking`
Publish package to NPM
`npm run publish:staking`
Create local package (tgz) which can be installed to some other local projects which are not part of this repo.
`npm run pack:staking`