Skip to content

Commit

Permalink
feat: add registry pkg (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: ryoid <[email protected]>
  • Loading branch information
AaronCQL and ryoid authored Oct 12, 2023
1 parent 3539799 commit c7c2964
Show file tree
Hide file tree
Showing 12 changed files with 888 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ pnpm add --save-peer [dependency_name]
### Building For Production

```sh
# [OPTIONAL] To regenerate the code built using scripts
pnpm gen:protobufs
pnpm gen:registry

# To build to the `dist` directory
pnpm build
```
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A tree-shakeable, framework agnostic, [pure ESM](https://gist.github.com/sindres
- [`cosmes/client`](#cosmesclient)
- [`cosmes/codec`](#cosmescodec)
- [`cosmes/protobufs`](#cosmesprotobufs)
- [`cosmes/registry`](#cosmesregistry)
- [`cosmes/wallet`](#cosmeswallet)
- [Benchmarks](#benchmarks)
- [Results](#results)
Expand Down Expand Up @@ -108,6 +109,10 @@ This directory contains various encoding and decoding functions that relies sole

This directory contains the auto-generated code for various Cosmos SDK based protobufs. See `scripts/gen-protobufs.mjs` for the script that generates the code.

### `cosmes/registry`

This directory contains various APIs, data, and types needed for wallet interactions (ie. Keplr). Some types are auto-generated, see `scripts/gen-registry.mjs` for the script that generates the types.

### `cosmes/wallet`

This directory is a [Cosmos Kit](https://cosmoskit.com) alternative to manage various wallets (Keplr, Station, Cosmostation, Leap, etc.) across various different Cosmos SDK based blockchains. See [`examples/solid-vite`](./examples/solid-vite) for a working example.
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"./client": "./dist/client/index.js",
"./codec": "./dist/codec/index.js",
"./protobufs": "./dist/protobufs/index.js",
"./registry": "./dist/registry/index.js",
"./wallet": "./dist/wallet/index.js"
},
"scripts": {
"clean": "rimraf dist",
"build": "pnpm clean && tsc && tsc-alias",
"dev": "concurrently \"tsc -w\" \"tsc-alias -w\"",
"gen:protobufs": "node scripts/gen-protobufs.mjs",
"gen:registry": "node scripts/gen-registry.mjs",
"lint": "eslint **/*.ts",
"typecheck": "tsc --noEmit",
"test": "vitest --run",
Expand Down Expand Up @@ -52,6 +54,7 @@
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"glob": "^10.2.3",
"json-schema-to-typescript": "^13.1.1",
"lodash-es": "^4.17.21",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
Expand Down
Loading

0 comments on commit c7c2964

Please sign in to comment.