g1-papi
v0.1.3
Published
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~~.
Readme
g1-papi 👴🏼
A library for interacting with the G1 duniter API.
Use polkadot-api (papi) to interact with the Polkadot blockchain.
Not ~~polkadot.js~~.
Features
- ✨ 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
Get started
Install dependencies:
pnpm iStart a local instance of Duniter:
pnpm duniter:start
pnpm duniter:sealing # with sealing modeRun tests:
pnpm test:uiIt 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.
GitHub Template
This project is based on the template vite-vanilla-library-template.
Npm scripts
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
Vault in test/gcli.sqlite
┌──────────────────────────────────────────────────────────────────────────────────────┐
│ SS58 Address Crypto Path Name │
╞══════════════════════════════════════════════════════════════════════════════════════╡
│ 5DfhGyQdFobKM8NsWvEeAKk5EQQgYe9AydgJ7rMB6E1EqRzV sr25519 <Base> base │
│ ├ 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY //Alice Alice │
│ │ ├ 5Dc96kiTPTfZHmq6yTFSqejJzfUNfQQjneNesRWf9MDppJsd //0 0 │
│ │ ├ 5Ecc8G1JPhegXjCruhX2xk8PcSycis136rASEKSv558XvTZu //1 1 │
│ │ ├ 5EoE7wjzjqYJPGAs382aDWEFpMFgP4H62pRC3MR6Q9ZT6zHC //30 30 │
│ ├ 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty //Bob Bob │
│ ├ 5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y //Charlie Charlie │
│ ├ 5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy //Dave Dave │
│ ├ 5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw //Eve Eve │
└──────────────────────────────────────────────────────────────────────────────────────┘License
This template was created under the MIT License.
