Skip to content

Commit

Permalink
feat: broadcast directly instead of via wallet (#47)
Browse files Browse the repository at this point in the history
This PR changes the behaviour of all wallets such that the
`signAndBroadcastTx` method will always broadcast via the user specified
RPC, rather than broadcasted via the wallet extension.

Unfortunately, Station mobile app does not support signing a tx without
broadcasting it.

Closes #17
  • Loading branch information
AaronCQL authored Mar 21, 2024
1 parent 7df01d9 commit 5029b5d
Show file tree
Hide file tree
Showing 13 changed files with 123 additions and 742 deletions.
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.62`

### Improvements

- Txs are now broadcasted directly via the user-specified RPC instead of via the wallet (closes <https://github.com/coinhall/cosmes/issues/17>)
- Update Station extension to use Keplr's API interface

## `v0.0.60`

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ See the [`benchmarks`](./benchmarks) folder, where the JS bundle size of CosmES

| Package | Minified | Gzipped |
|---------------|----------|---------|
| CosmES | 540 KB | 146 KB |
| CosmES | 537 KB | 147 KB |
| Cosmos Kit v1 | 6004 KB | 1392 KB |
| Cosmos Kit v2 | 6273 KB | 1453 KB |

Expand Down
5 changes: 1 addition & 4 deletions examples/verify-signatures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
"start": "tsx src/index.ts"
},
"dependencies": {
"@keplr-wallet/cosmos": "^0.11.63",
"cosmes": "link:../..",
"secp256k1": "^5.0.0"
"cosmes": "link:../.."
},
"devDependencies": {
"@types/node": "^20.2.0",
"@types/secp256k1": "^4.0.3",
"tsx": "^3.12.7",
"typescript": "^5.0.4"
}
Expand Down
Loading

0 comments on commit 5029b5d

Please sign in to comment.