A library for interacting with the [G1 duniter](https://duniter.org) API.\ Use [polkadot-api](https://papi.how) (papi) to interact with the Polkadot blockchain.\ Not ~~polkadot.js~~.
npm install g1-papiA library for interacting with the G1 duniter API.\
Use polkadot-api (papi) to interact with the Polkadot blockchain.\
Not ~~polkadot.js~~.
* β¨ Fully customized eslint configuration based on the config by Antfu
* π§ͺ Write tests quickly and conveniently with vitest
* π€ Supports conventional commits
* π
Generate beautiful changelogs with changelogen
* βΎοΈ GitHub CI for your build
* π’ Issue templates
* π Pull request template
* π€ Ready configuration for renovatebot with renovate-config
* π Library releases with just one command
Install dependencies:
``bash`
pnpm i
Start a local instance of Duniter:
`bash`
pnpm duniter:start
pnpm duniter:sealing # with sealing mode
Run tests:
`bash`
pnpm test:ui
It runs Vitest UI in standalone mode.
Go to http://localhost:51204/__vitest__/ to watch live tests.
Launch the tests, it will automatically restart duniter in sealing mode before running tests.
This project is based on the template vite-vanilla-library-template.
It uses pnpm as package manager.
- dev - Start the development serverbuild
- - Build for productionrelease
- - Generate changelog and npm publishlint
- - Checks your code for any linting errorstest
- - Run all teststest:ui
- - Run all tests with UItest:watch
- - Run all tests with watch modetest:coverage
- - Run all tests with code coverage reportpapi
- - Generate types from local instance of Duniterprepare
- - Script for setting up husky hooksduniter:start
- - Start a local instance of Duniterduniter:sealing
- - Start a local instance of Duniter with sealing enabledduniter:stop
- - Stop the local instance of Duniter
```
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SS58 Address Crypto Path Name β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ‘
β 5DfhGyQdFobKM8NsWvEeAKk5EQQgYe9AydgJ7rMB6E1EqRzV sr25519
β β 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY //Alice Alice β
β β β 5Dc96kiTPTfZHmq6yTFSqejJzfUNfQQjneNesRWf9MDppJsd //0 0 β
β β β 5Ecc8G1JPhegXjCruhX2xk8PcSycis136rASEKSv558XvTZu //1 1 β
β β β 5EoE7wjzjqYJPGAs382aDWEFpMFgP4H62pRC3MR6Q9ZT6zHC //30 30 β
β β 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty //Bob Bob β
β β 5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y //Charlie Charlie β
β β 5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy //Dave Dave β
β β 5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw //Eve Eve β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
This template was created under the MIT License.