Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add batch rpc queries #16

Merged
merged 4 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## `v0.0.39`

### Features

- Added the optional `height` params to the `FetchClient` to execute queries at a custom block height
- Added batching of queries to `FetchClient` (see `examples/batch-query`)

## `v0.0.38` [breaking change]

### Features
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ See [`examples/solid-vite`](./examples/solid-vite) for a working example.

## Examples

Docs do not exist yet - see the [`examples`](./examples) folder for various working examples.
Docs do not exist yet - see the [`examples`](./examples) folder for various working examples:

1. [How do I connect to third party wallets via browser extension or WalletConnect? How do I create, sign, and broadcast transactions?](./examples/solid-vite)
2. [How do I programmatically sign and broadcast transactions without relying on a third party wallet?](./examples/mnemonic-wallet)
3. [How do I verify signatures signed using the `signArbitrary` function?](./examples/verify-signatures)
4. [How do I batch queries to the blockchain?](./examples/batch-query)

## Modules

Expand Down
16 changes: 16 additions & 0 deletions examples/batch-query/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@cosmes/batch-query",
"private": true,
"main": "src/index.ts",
"scripts": {
"start": "tsx src/index.ts"
},
"dependencies": {
"cosmes": "link:../.."
},
"devDependencies": {
"@types/node": "^20.2.0",
"tsx": "^3.12.7",
"typescript": "^5.0.4"
}
}
312 changes: 312 additions & 0 deletions examples/batch-query/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading