Skip to content

Commit 1ec76c0

Browse files
committed
Merge branch 'main' into any-removal-2
2 parents 9d17324 + 8754d39 commit 1ec76c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+485
-320
lines changed

.pnp.cjs

Lines changed: 178 additions & 154 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:93f9049b7800205bfa827bcf14e5bf8955ccdba442e7e86a87fe95099111ab07
3+
size 16675

.yarn/cache/readonly-date-npm-1.0.0-e93ba2496b-7ab32bf19f.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ and this project adheres to
4646

4747
This change requires users to use TypeScript 5.7 or newer. ([#1883])
4848

49+
- all: Migrate from `readonly-date` to `readonly-date-esm` ^2 which is an ESM
50+
package but otherwise equal to the previous version. If you are using
51+
`ReadonlyDate` in your codebase it is recommended to also update like this to
52+
avoid type mismatches:
53+
54+
```diff
55+
-import { ReadonlyDate } from "readonly-date";
56+
+import { ReadonlyDate } from "readonly-date-esm";
57+
```
58+
4959
- @cosmjs/tendermint-rpc: Remove union type `TendermintClient`. Use
5060
`CometClient` or just `Tendermint37Client` instead. ([#1866])
5161
- @cosmjs/tendermint-rpc: Remove `isTendermint34Client`. Remove
@@ -84,9 +94,11 @@ and this project adheres to
8494
- @cosmjs/crypto: Make
8595
`Secp256k1.verifySignature`/`.createSignature`/`.makeKeypair` synchonous and
8696
let them not return a Promise.
97+
- @cosmjs/cosmwasm-stargate: Rename package to @cosmjs/cosmwasm. ([#1903])
8798

8899
[#1883]: https://github.com/cosmos/cosmjs/issues/1883
89100
[#1866]: https://github.com/cosmos/cosmjs/issues/1866
101+
[#1903]: https://github.com/cosmos/cosmjs/pull/1903
90102

91103
## [0.37.0] - 2025-10-29
92104

HACKING.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ In the `scripts/` folder, a bunch of blockchains and other backend systems are
105105
started for testing purposes. Some ports need to be changed from the default in
106106
order to avoid conflicts. Here is an overview of the ports used:
107107

108-
| Port | Application | Usage |
109-
| ----- | ------------------------------ | ------------------------------- |
110-
| 1318 | simapp LCD API | Manual Stargate debugging |
111-
| 1319 | wasmd LCD API | Manual Stargate debugging |
112-
| 1320 | simapp slow LCD API | Manual Stargate debugging |
113-
| 4444 | socketserver | @cosmjs/sockets tests |
114-
| 4445 | socketserver slow | @cosmjs/sockets tests |
115-
| 5555 | httpserver | @cosmjs/tendermint-rpc tests |
116-
| 9090 | simapp gRPC | Manual Stargate debugging |
117-
| 11101 | Standalone CometBFT 1.x RPC | @cosmjs/tendermint-rpc tests |
118-
| 11137 | Standalone Tendermint 0.37 RPC | @cosmjs/tendermint-rpc tests |
119-
| 11138 | Standalone CometBFT 0.38 RPC | @cosmjs/tendermint-rpc tests |
120-
| 26658 | simapp Tendermint RPC | Stargate client tests |
121-
| 26659 | wasmd Tendermint RPC | @cosmjs/cosmwasm-stargate tests |
122-
| 26660 | simapp slow Tendermint RPC | Stargate client tests |
108+
| Port | Application | Usage |
109+
| ----- | ------------------------------ | ---------------------------- |
110+
| 1318 | simapp LCD API | Manual Stargate debugging |
111+
| 1319 | wasmd LCD API | Manual Stargate debugging |
112+
| 1320 | simapp slow LCD API | Manual Stargate debugging |
113+
| 4444 | socketserver | @cosmjs/sockets tests |
114+
| 4445 | socketserver slow | @cosmjs/sockets tests |
115+
| 5555 | httpserver | @cosmjs/tendermint-rpc tests |
116+
| 9090 | simapp gRPC | Manual Stargate debugging |
117+
| 11101 | Standalone CometBFT 1.x RPC | @cosmjs/tendermint-rpc tests |
118+
| 11137 | Standalone Tendermint 0.37 RPC | @cosmjs/tendermint-rpc tests |
119+
| 11138 | Standalone CometBFT 0.38 RPC | @cosmjs/tendermint-rpc tests |
120+
| 26658 | simapp Tendermint RPC | Stargate client tests |
121+
| 26659 | wasmd Tendermint RPC | @cosmjs/cosmwasm tests |
122+
| 26660 | simapp slow Tendermint RPC | Stargate client tests |

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ CosmJS is a library that consists of many smaller npm packages within the
5050
[@cosmjs namespace](https://www.npmjs.com/org/cosmjs), a so-called monorepo.
5151
Here are some of them to get an idea:
5252

53-
| Package | Description | Latest |
54-
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
55-
| [@cosmjs/stargate](packages/stargate) | A client library for the Cosmos SDK 0.40+ (Stargate) | [![npm version](https://img.shields.io/npm/v/@cosmjs/stargate.svg)](https://www.npmjs.com/package/@cosmjs/stargate) |
56-
| [@cosmjs/faucet](packages/faucet) | A faucet application for node.js | [![npm version](https://img.shields.io/npm/v/@cosmjs/faucet.svg)](https://www.npmjs.com/package/@cosmjs/faucet) |
57-
| [@cosmjs/cosmwasm-stargate](packages/cosmwasm-stargate) | Client for Stargate chains with the CosmWasm module enabled | [![npm version](https://img.shields.io/npm/v/@cosmjs/cosmwasm-stargate.svg)](https://www.npmjs.com/package/@cosmjs/cosmwasm-stargate) |
58-
| [@cosmjs/crypto](packages/crypto) | Cryptography for blockchain projects, e.g. hashing (SHA-2, Keccak256, Ripemd160), signing (secp256k1, ed25519), HD key derivation (BIP-39, SLIP-0010), KDFs and symmetric encryption for key storage (PBKDF2, Argon2, XChaCha20Poly1305) | [![npm version](https://img.shields.io/npm/v/@cosmjs/crypto.svg)](https://www.npmjs.com/package/@cosmjs/crypto) |
59-
| [@cosmjs/encoding](packages/encoding) | Encoding helpers for blockchain projects | [![npm version](https://img.shields.io/npm/v/@cosmjs/encoding.svg)](https://www.npmjs.com/package/@cosmjs/encoding) |
60-
| [@cosmjs/math](packages/math) | Safe integers; decimals for handling financial amounts | [![npm version](https://img.shields.io/npm/v/@cosmjs/math.svg)](https://www.npmjs.com/package/@cosmjs/math) |
53+
| Package | Description | Latest |
54+
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
55+
| [@cosmjs/stargate](packages/stargate) | A client library for the Cosmos SDK 0.40+ (Stargate) | [![npm version](https://img.shields.io/npm/v/@cosmjs/stargate.svg)](https://www.npmjs.com/package/@cosmjs/stargate) |
56+
| [@cosmjs/faucet](packages/faucet) | A faucet application for node.js | [![npm version](https://img.shields.io/npm/v/@cosmjs/faucet.svg)](https://www.npmjs.com/package/@cosmjs/faucet) |
57+
| [@cosmjs/cosmwasm](packages/cosmwasm) | Client for Stargate chains with the CosmWasm module enabled | [![npm version](https://img.shields.io/npm/v/@cosmjs/cosmwasm.svg)](https://www.npmjs.com/package/@cosmjs/cosmwasm) |
58+
| [@cosmjs/crypto](packages/crypto) | Cryptography for blockchain projects, e.g. hashing (SHA-2, Keccak256, Ripemd160), signing (secp256k1, ed25519), HD key derivation (BIP-39, SLIP-0010), KDFs and symmetric encryption for key storage (PBKDF2, Argon2, XChaCha20Poly1305) | [![npm version](https://img.shields.io/npm/v/@cosmjs/crypto.svg)](https://www.npmjs.com/package/@cosmjs/crypto) |
59+
| [@cosmjs/encoding](packages/encoding) | Encoding helpers for blockchain projects | [![npm version](https://img.shields.io/npm/v/@cosmjs/encoding.svg)](https://www.npmjs.com/package/@cosmjs/encoding) |
60+
| [@cosmjs/math](packages/math) | Safe integers; decimals for handling financial amounts | [![npm version](https://img.shields.io/npm/v/@cosmjs/math.svg)](https://www.npmjs.com/package/@cosmjs/math) |
6161

6262
### Modularity
6363

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"devDependencies": {
4545
"@cosmjs/amino": "workspace:^",
46-
"@cosmjs/cosmwasm-stargate": "workspace:^",
46+
"@cosmjs/cosmwasm": "workspace:^",
4747
"@cosmjs/crypto": "workspace:^",
4848
"@cosmjs/encoding": "workspace:^",
4949
"@cosmjs/proto-signing": "workspace:^",

packages/cosmwasm-stargate/README.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,5 @@
77
![minified size](https://img.shields.io/bundlephobia/min/@cosmjs/cosmwasm-stargate.svg)
88
![monthly downloads](https://img.shields.io/npm/dm/@cosmjs/cosmwasm-stargate.svg)
99

10-
An SDK to build CosmWasm clients.
11-
12-
## Compatibility
13-
14-
| CosmWasm | x/wasm | @cosmjs/cosmwasm-stargate |
15-
| --------------- | --------- | ------------------------- |
16-
| 0.16-1.0.0-beta | 0.21-0.23 | `^0.28.0` |
17-
| 0.16-1.0.0-beta | 0.21-0.23 | `^0.27.0` |
18-
| 0.16-1.0.0-beta | 0.18-0.20 | `^0.26.0` |
19-
| 0.14 | 0.16 | `^0.25.0` |
20-
| 0.13 | 0.14-0.15 | `^0.24.0` |
21-
22-
## Development
23-
24-
Updating Hackatom development contract in `src/testdata/contract.json`:
25-
26-
```sh
27-
cd packages/cosmwasm-stargate
28-
export HACKATOM_URL=https://github.com/CosmWasm/cosmwasm/releases/download/v1.0.0-beta/hackatom.wasm
29-
echo "{\"// source\": \"$HACKATOM_URL\", \"data\": \"$(curl -sS --location $HACKATOM_URL | base64 | tr -d '[:space:]')\" }" | jq > src/testdata/contract.json
30-
```
31-
32-
## License
33-
34-
This package is part of the cosmjs repository, licensed under the Apache License
35-
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
36-
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).
10+
@cosmjs/cosmwasm-stargate was renamed to @cosmjs/cosmwasm in CosmJS 0.38. Use
11+
@cosmjs/cosmwasm instead.
Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@cosmjs/cosmwasm-stargate",
3-
"version": "0.37.0",
4-
"description": "CosmWasm SDK",
3+
"version": "0.38.0",
4+
"description": "Old name of @cosmjs/cosmwasm. Use @cosmjs/cosmwasm instead.",
55
"contributors": [
6-
"Will Clark <willclarktech@users.noreply.github.com>"
6+
"Simon Warta <webmaster128@users.noreply.github.com>"
77
],
88
"license": "Apache-2.0",
99
"exports": {
@@ -32,47 +32,20 @@
3232
"format-text": "prettier --write \"./*.md\"",
3333
"build": "rm -rf ./build && tsc",
3434
"build-or-skip": "[ -n \"${SKIP_BUILD:-}\" ] || yarn build",
35-
"test-node": "yarn node jasmine-testrunner.cjs",
36-
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox karma.conf.cjs",
37-
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless karma.conf.cjs",
35+
"test-node": "exit 0",
36+
"test-firefox": "exit 0",
37+
"test-chrome": "exit 0",
3838
"test": "yarn build-or-skip && yarn test-node",
39-
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
40-
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.cjs"
39+
"coverage": "exit 0"
4140
},
4241
"dependencies": {
43-
"@cosmjs/amino": "workspace:^",
44-
"@cosmjs/crypto": "workspace:^",
45-
"@cosmjs/encoding": "workspace:^",
46-
"@cosmjs/math": "workspace:^",
47-
"@cosmjs/proto-signing": "workspace:^",
48-
"@cosmjs/stargate": "workspace:^",
49-
"@cosmjs/tendermint-rpc": "workspace:^",
50-
"@cosmjs/utils": "workspace:^",
51-
"cosmjs-types": "^0.10.1"
42+
"@cosmjs/cosmwasm": "workspace:^"
5243
},
5344
"devDependencies": {
54-
"@istanbuljs/nyc-config-typescript": "^1.0.1",
55-
"@types/jasmine": "^4",
56-
"@types/karma-firefox-launcher": "^2",
57-
"@types/karma-jasmine": "^4",
58-
"@types/karma-jasmine-html-reporter": "^1",
5945
"@types/node": "*",
6046
"glob": "^11",
61-
"jasmine": "^4",
62-
"jasmine-spec-reporter": "^6",
63-
"karma": "^6.3.14",
64-
"karma-chrome-launcher": "^3.1.0",
65-
"karma-firefox-launcher": "^2.1.0",
66-
"karma-jasmine": "^5",
67-
"karma-jasmine-html-reporter": "^1.5.4",
68-
"nyc": "^17.1.0",
6947
"prettier": "^3.6.2",
70-
"readonly-date": "^1.0.0",
71-
"ses": "^1.13.0",
72-
"source-map-support": "^0.5.19",
7348
"typedoc": "^0.28",
74-
"typescript": "~5.9",
75-
"webpack": "^5.76.0",
76-
"webpack-cli": "^4.6.0"
49+
"typescript": "~5.9"
7750
}
7851
}
Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1 @@
1-
export type { Code, CodeDetails, Contract, ContractCodeHistoryEntry } from "./cosmwasmclient";
2-
export { CosmWasmClient } from "./cosmwasmclient";
3-
export { fromBinary, toBinary } from "./encoding";
4-
export { _instantiate2AddressIntermediate, instantiate2Address } from "./instantiate2";
5-
export type {
6-
JsonObject,
7-
MsgClearAdminEncodeObject,
8-
MsgExecuteContractEncodeObject,
9-
MsgInstantiateContract2EncodeObject,
10-
MsgInstantiateContractEncodeObject,
11-
MsgMigrateContractEncodeObject,
12-
MsgStoreCodeEncodeObject,
13-
MsgUpdateAdminEncodeObject,
14-
WasmExtension,
15-
} from "./modules";
16-
export {
17-
createWasmAminoConverters,
18-
isMsgClearAdminEncodeObject,
19-
isMsgExecuteEncodeObject,
20-
isMsgInstantiateContract2EncodeObject,
21-
isMsgInstantiateContractEncodeObject,
22-
isMsgMigrateEncodeObject,
23-
isMsgStoreCodeEncodeObject,
24-
isMsgUpdateAdminEncodeObject,
25-
setupWasmExtension,
26-
wasmTypes,
27-
} from "./modules";
28-
export type {
29-
ChangeAdminResult,
30-
ExecuteInstruction,
31-
ExecuteResult,
32-
InstantiateOptions,
33-
InstantiateResult,
34-
MigrateResult,
35-
SigningCosmWasmClientOptions,
36-
UploadResult,
37-
} from "./signingcosmwasmclient";
38-
export { SigningCosmWasmClient } from "./signingcosmwasmclient";
39-
40-
// Re-exported because this is part of the CosmWasmClient/SigningCosmWasmClient APIs
41-
export type { Attribute, DeliverTxResponse, Event, IndexedTx } from "@cosmjs/stargate";
42-
export type { HttpEndpoint } from "@cosmjs/tendermint-rpc";
1+
export * from "@cosmjs/cosmwasm";

0 commit comments

Comments
 (0)