Merge pull request #1408 from cosmos/upgrade-cosmjs-types

Upgrade cosmjs-types to 0.8.0
This commit is contained in:
Simon Warta 2023-05-24 00:41:43 +02:00 committed by GitHub
commit 94ed39b4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 69 additions and 63 deletions

16
.pnp.cjs generated
View File

@ -1040,7 +1040,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
],\
[\
"cosmjs-types",\
"npm:0.7.2"\
"npm:0.8.0"\
],\
[\
"cross-spawn",\
@ -3240,7 +3240,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["axios", "npm:0.21.4"],\
["babylon", "npm:6.18.0"],\
["chalk", "npm:4.1.2"],\
["cosmjs-types", "npm:0.7.2"],\
["cosmjs-types", "npm:0.8.0"],\
["diff", "npm:4.0.2"],\
["eslint", "npm:7.26.0"],\
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
@ -3286,7 +3286,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/pako", "npm:1.0.1"],\
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["cosmjs-types", "npm:0.7.2"],\
["cosmjs-types", "npm:0.8.0"],\
["eslint", "npm:7.26.0"],\
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
["eslint-import-resolver-node", "npm:0.3.4"],\
@ -3659,7 +3659,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/node", "npm:18.15.11"],\
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["cosmjs-types", "npm:0.7.2"],\
["cosmjs-types", "npm:0.8.0"],\
["eslint", "npm:7.26.0"],\
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
["eslint-import-resolver-node", "npm:0.3.4"],\
@ -3760,7 +3760,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/node", "npm:18.15.11"],\
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
["cosmjs-types", "npm:0.7.2"],\
["cosmjs-types", "npm:0.8.0"],\
["eslint", "npm:7.26.0"],\
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
["eslint-import-resolver-node", "npm:0.3.4"],\
@ -6992,10 +6992,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["cosmjs-types", [\
["npm:0.7.2", {\
"packageLocation": "./.yarn/cache/cosmjs-types-npm-0.7.2-655e4f4384-4a0b730a7f.zip/node_modules/cosmjs-types/",\
["npm:0.8.0", {\
"packageLocation": "./.yarn/cache/cosmjs-types-npm-0.8.0-4c175fd383-99714ec956.zip/node_modules/cosmjs-types/",\
"packageDependencies": [\
["cosmjs-types", "npm:0.7.2"],\
["cosmjs-types", "npm:0.8.0"],\
["long", "npm:4.0.0"],\
["protobufjs", "npm:6.11.3"]\
],\

Binary file not shown.

BIN
.yarn/cache/cosmjs-types-npm-0.8.0-4c175fd383-99714ec956.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -8,6 +8,8 @@ and this project adheres to
### Changed
- all: upgrade cosmjs-types to 0.8.0 to include Cosmos SDK 0.46/0.47 and IBC v7
types.
- @cosmjs/cosmwasm-stargate: Implement auto-detection for Tendermint 0.34/37
([#1411]).
- @cosmjs/cosmwasm-stargate: Remove structured `searchTx` queries. Only raw

View File

@ -54,7 +54,7 @@
"axios": "^0.21.2",
"babylon": "^6.18.0",
"chalk": "^4",
"cosmjs-types": "^0.7.1",
"cosmjs-types": "^0.8.0",
"diff": "^4",
"recast": "^0.20",
"ts-node": "^8",

View File

@ -46,7 +46,7 @@
"@cosmjs/stargate": "workspace:^",
"@cosmjs/tendermint-rpc": "workspace:^",
"@cosmjs/utils": "workspace:^",
"cosmjs-types": "^0.7.1",
"cosmjs-types": "^0.8.0",
"long": "^4.0.0",
"pako": "^2.0.2"
},

View File

@ -44,7 +44,7 @@
"@cosmjs/encoding": "workspace:^",
"@cosmjs/math": "workspace:^",
"@cosmjs/utils": "workspace:^",
"cosmjs-types": "^0.7.1",
"cosmjs-types": "^0.8.0",
"long": "^4.0.0"
},
"devDependencies": {

View File

@ -33,7 +33,7 @@ describe("decode", () => {
const decoded = decodeTxRaw(fromHex(testVector.outputs.signedTxBytes));
expect(decoded).toEqual({
authInfo: {
authInfo: jasmine.objectContaining({
signerInfos: [
{
publicKey: {
@ -55,7 +55,7 @@ describe("decode", () => {
granter: "",
amount: [{ amount: "2000", denom: "ucosm" }],
},
},
}),
body: {
memo: "",
timeoutHeight: Long.UZERO,

View File

@ -46,7 +46,7 @@
"@cosmjs/stream": "workspace:^",
"@cosmjs/tendermint-rpc": "workspace:^",
"@cosmjs/utils": "workspace:^",
"cosmjs-types": "^0.7.1",
"cosmjs-types": "^0.8.0",
"long": "^4.0.0",
"protobufjs": "~6.11.3",
"xstream": "^11.14.0"

View File

@ -150,25 +150,27 @@ describe("BankExtension", () => {
const [client, tmClient] = await makeClientWithBank(simapp.tendermintUrl);
const metadata = await client.bank.denomMetadata("ucosm");
expect(metadata).toEqual({
description: "The fee token of this test chain",
denomUnits: [
{
denom: "ucosm",
exponent: 0,
aliases: [],
},
{
denom: "COSM",
exponent: 6,
aliases: [],
},
],
base: "ucosm",
display: "COSM",
name: "",
symbol: "",
});
expect(metadata).toEqual(
jasmine.objectContaining({
description: "The fee token of this test chain",
denomUnits: [
{
denom: "ucosm",
exponent: 0,
aliases: [],
},
{
denom: "COSM",
exponent: 6,
aliases: [],
},
],
base: "ucosm",
display: "COSM",
name: "",
symbol: "",
}),
);
tmClient.disconnect();
});
@ -190,25 +192,27 @@ describe("BankExtension", () => {
const metadatas = await client.bank.denomsMetadata();
expect(metadatas.length).toEqual(1);
expect(metadatas[0]).toEqual({
description: "The fee token of this test chain",
denomUnits: [
{
denom: "ucosm",
exponent: 0,
aliases: [],
},
{
denom: "COSM",
exponent: 6,
aliases: [],
},
],
base: "ucosm",
display: "COSM",
name: "",
symbol: "",
});
expect(metadatas[0]).toEqual(
jasmine.objectContaining({
description: "The fee token of this test chain",
denomUnits: [
{
denom: "ucosm",
exponent: 0,
aliases: [],
},
{
denom: "COSM",
exponent: 6,
aliases: [],
},
],
base: "ucosm",
display: "COSM",
name: "",
symbol: "",
}),
);
tmClient.disconnect();
});

View File

@ -362,7 +362,7 @@ __metadata:
axios: ^0.21.2
babylon: ^6.18.0
chalk: ^4
cosmjs-types: ^0.7.1
cosmjs-types: ^0.8.0
diff: ^4
eslint: ^7.5
eslint-config-prettier: ^8.3.0
@ -408,7 +408,7 @@ __metadata:
"@types/pako": ^1.0.1
"@typescript-eslint/eslint-plugin": ^5.54.0
"@typescript-eslint/parser": ^5.54.0
cosmjs-types: ^0.7.1
cosmjs-types: ^0.8.0
eslint: ^7.5
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.4
@ -767,7 +767,7 @@ __metadata:
"@types/node": ^18
"@typescript-eslint/eslint-plugin": ^5.54.0
"@typescript-eslint/parser": ^5.54.0
cosmjs-types: ^0.7.1
cosmjs-types: ^0.8.0
eslint: ^7.5
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.4
@ -864,7 +864,7 @@ __metadata:
"@types/node": ^18
"@typescript-eslint/eslint-plugin": ^5.54.0
"@typescript-eslint/parser": ^5.54.0
cosmjs-types: ^0.7.1
cosmjs-types: ^0.8.0
eslint: ^7.5
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.4
@ -2982,13 +2982,13 @@ __metadata:
languageName: unknown
linkType: soft
"cosmjs-types@npm:^0.7.1":
version: 0.7.2
resolution: "cosmjs-types@npm:0.7.2"
"cosmjs-types@npm:^0.8.0":
version: 0.8.0
resolution: "cosmjs-types@npm:0.8.0"
dependencies:
long: ^4.0.0
protobufjs: ~6.11.2
checksum: 4a0b730a7f1ae8efa8bd044f9ebdd7921f26319ff2abf36ac7e2f93ef6f3e73d90c1775ce2325611d47c4ccc72a708a63e31e89d9d80ad75c1107c7228e09bc8
checksum: 99714ec956d2cb2e521d39896c9c9a24cf9df0d370265c203646ea015b51e86472efc0cb11f67a80f0649d178b0bcff77ac659e67fdfc8b2437cd7a42018577f
languageName: node
linkType: hard