mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Upgrade cosmjs-types to 0.7
This commit is contained in:
parent
97f0803c45
commit
4657858028
16
.pnp.cjs
generated
16
.pnp.cjs
generated
@ -1036,7 +1036,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
],\
|
],\
|
||||||
[\
|
[\
|
||||||
"cosmjs-types",\
|
"cosmjs-types",\
|
||||||
"npm:0.6.0"\
|
"npm:0.7.1"\
|
||||||
],\
|
],\
|
||||||
[\
|
[\
|
||||||
"cross-spawn",\
|
"cross-spawn",\
|
||||||
@ -3240,7 +3240,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
["axios", "npm:0.21.4"],\
|
["axios", "npm:0.21.4"],\
|
||||||
["babylon", "npm:6.18.0"],\
|
["babylon", "npm:6.18.0"],\
|
||||||
["chalk", "npm:4.1.2"],\
|
["chalk", "npm:4.1.2"],\
|
||||||
["cosmjs-types", "npm:0.6.0"],\
|
["cosmjs-types", "npm:0.7.1"],\
|
||||||
["diff", "npm:4.0.2"],\
|
["diff", "npm:4.0.2"],\
|
||||||
["eslint", "npm:7.26.0"],\
|
["eslint", "npm:7.26.0"],\
|
||||||
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.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"],\
|
["@types/pako", "npm:1.0.1"],\
|
||||||
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["cosmjs-types", "npm:0.6.0"],\
|
["cosmjs-types", "npm:0.7.1"],\
|
||||||
["eslint", "npm:7.26.0"],\
|
["eslint", "npm:7.26.0"],\
|
||||||
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
||||||
["eslint-import-resolver-node", "npm:0.3.4"],\
|
["eslint-import-resolver-node", "npm:0.3.4"],\
|
||||||
@ -3659,7 +3659,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
["@types/node", "npm:15.9.0"],\
|
["@types/node", "npm:15.9.0"],\
|
||||||
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["cosmjs-types", "npm:0.6.0"],\
|
["cosmjs-types", "npm:0.7.1"],\
|
||||||
["eslint", "npm:7.26.0"],\
|
["eslint", "npm:7.26.0"],\
|
||||||
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
||||||
["eslint-import-resolver-node", "npm:0.3.4"],\
|
["eslint-import-resolver-node", "npm:0.3.4"],\
|
||||||
@ -3760,7 +3760,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
["@types/node", "npm:15.9.0"],\
|
["@types/node", "npm:15.9.0"],\
|
||||||
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/eslint-plugin", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
["@typescript-eslint/parser", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.54.0"],\
|
||||||
["cosmjs-types", "npm:0.6.0"],\
|
["cosmjs-types", "npm:0.7.1"],\
|
||||||
["eslint", "npm:7.26.0"],\
|
["eslint", "npm:7.26.0"],\
|
||||||
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
["eslint-config-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.3.0"],\
|
||||||
["eslint-import-resolver-node", "npm:0.3.4"],\
|
["eslint-import-resolver-node", "npm:0.3.4"],\
|
||||||
@ -6931,10 +6931,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
["cosmjs-types", [\
|
["cosmjs-types", [\
|
||||||
["npm:0.6.0", {\
|
["npm:0.7.1", {\
|
||||||
"packageLocation": "./.yarn/cache/cosmjs-types-npm-0.6.0-4ad2730ce2-06000f10d9.zip/node_modules/cosmjs-types/",\
|
"packageLocation": "./.yarn/cache/cosmjs-types-npm-0.7.1-d44ec482fd-533d56d076.zip/node_modules/cosmjs-types/",\
|
||||||
"packageDependencies": [\
|
"packageDependencies": [\
|
||||||
["cosmjs-types", "npm:0.6.0"],\
|
["cosmjs-types", "npm:0.7.1"],\
|
||||||
["long", "npm:4.0.0"],\
|
["long", "npm:4.0.0"],\
|
||||||
["protobufjs", "npm:6.11.3"]\
|
["protobufjs", "npm:6.11.3"]\
|
||||||
],\
|
],\
|
||||||
|
BIN
.yarn/cache/cosmjs-types-npm-0.6.0-4ad2730ce2-06000f10d9.zip
(Stored with Git LFS)
vendored
BIN
.yarn/cache/cosmjs-types-npm-0.6.0-4ad2730ce2-06000f10d9.zip
(Stored with Git LFS)
vendored
Binary file not shown.
BIN
.yarn/cache/cosmjs-types-npm-0.7.1-d44ec482fd-533d56d076.zip
(Stored with Git LFS)
vendored
Normal file
BIN
.yarn/cache/cosmjs-types-npm-0.7.1-d44ec482fd-533d56d076.zip
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
@ -10,6 +10,7 @@ and this project adheres to
|
|||||||
|
|
||||||
- all: The TypeScript compilation target is now ES2020 ([#1002]).
|
- all: The TypeScript compilation target is now ES2020 ([#1002]).
|
||||||
- all: Add full support for Node.js 18 and run all CI tests with it ([#1240]).
|
- all: Add full support for Node.js 18 and run all CI tests with it ([#1240]).
|
||||||
|
- all: Upgrade cosmjs-types to 0.7.
|
||||||
- @cosmjs/tendermint-rpc: Remove unused `index` field from `RpcTxEvent` and
|
- @cosmjs/tendermint-rpc: Remove unused `index` field from `RpcTxEvent` and
|
||||||
`TxEvent`. This is unset starting with Tendermint 0.34.
|
`TxEvent`. This is unset starting with Tendermint 0.34.
|
||||||
- @cosmjs/proto-signing: Make input and output of `decodePubkey` non-optional
|
- @cosmjs/proto-signing: Make input and output of `decodePubkey` non-optional
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
"axios": "^0.21.2",
|
"axios": "^0.21.2",
|
||||||
"babylon": "^6.18.0",
|
"babylon": "^6.18.0",
|
||||||
"chalk": "^4",
|
"chalk": "^4",
|
||||||
"cosmjs-types": "^0.6.0",
|
"cosmjs-types": "^0.7.1",
|
||||||
"diff": "^4",
|
"diff": "^4",
|
||||||
"recast": "^0.20",
|
"recast": "^0.20",
|
||||||
"ts-node": "^8",
|
"ts-node": "^8",
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"@cosmjs/stargate": "workspace:^",
|
"@cosmjs/stargate": "workspace:^",
|
||||||
"@cosmjs/tendermint-rpc": "workspace:^",
|
"@cosmjs/tendermint-rpc": "workspace:^",
|
||||||
"@cosmjs/utils": "workspace:^",
|
"@cosmjs/utils": "workspace:^",
|
||||||
"cosmjs-types": "^0.6.0",
|
"cosmjs-types": "^0.7.1",
|
||||||
"long": "^4.0.0",
|
"long": "^4.0.0",
|
||||||
"pako": "^2.0.2"
|
"pako": "^2.0.2"
|
||||||
},
|
},
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"@cosmjs/encoding": "workspace:^",
|
"@cosmjs/encoding": "workspace:^",
|
||||||
"@cosmjs/math": "workspace:^",
|
"@cosmjs/math": "workspace:^",
|
||||||
"@cosmjs/utils": "workspace:^",
|
"@cosmjs/utils": "workspace:^",
|
||||||
"cosmjs-types": "^0.6.0",
|
"cosmjs-types": "^0.7.1",
|
||||||
"long": "^4.0.0"
|
"long": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"@cosmjs/stream": "workspace:^",
|
"@cosmjs/stream": "workspace:^",
|
||||||
"@cosmjs/tendermint-rpc": "workspace:^",
|
"@cosmjs/tendermint-rpc": "workspace:^",
|
||||||
"@cosmjs/utils": "workspace:^",
|
"@cosmjs/utils": "workspace:^",
|
||||||
"cosmjs-types": "^0.6.0",
|
"cosmjs-types": "^0.7.1",
|
||||||
"long": "^4.0.0",
|
"long": "^4.0.0",
|
||||||
"protobufjs": "~6.11.3",
|
"protobufjs": "~6.11.3",
|
||||||
"xstream": "^11.14.0"
|
"xstream": "^11.14.0"
|
||||||
|
@ -20,6 +20,7 @@ describe("AminoTypes", () => {
|
|||||||
revisionNumber: Long.fromString("456", true),
|
revisionNumber: Long.fromString("456", true),
|
||||||
},
|
},
|
||||||
timeoutTimestamp: Long.fromString("789", true),
|
timeoutTimestamp: Long.fromString("789", true),
|
||||||
|
memo: "",
|
||||||
};
|
};
|
||||||
const aminoTypes = new AminoTypes(createIbcAminoConverters());
|
const aminoTypes = new AminoTypes(createIbcAminoConverters());
|
||||||
const aminoMsg = aminoTypes.toAmino({
|
const aminoMsg = aminoTypes.toAmino({
|
||||||
@ -56,6 +57,7 @@ describe("AminoTypes", () => {
|
|||||||
revisionNumber: Long.UZERO,
|
revisionNumber: Long.UZERO,
|
||||||
},
|
},
|
||||||
timeoutTimestamp: Long.UZERO,
|
timeoutTimestamp: Long.UZERO,
|
||||||
|
memo: "",
|
||||||
};
|
};
|
||||||
const aminoTypes = new AminoTypes(createIbcAminoConverters());
|
const aminoTypes = new AminoTypes(createIbcAminoConverters());
|
||||||
const aminoMsg = aminoTypes.toAmino({
|
const aminoMsg = aminoTypes.toAmino({
|
||||||
@ -89,6 +91,7 @@ describe("AminoTypes", () => {
|
|||||||
receiver: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
|
receiver: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
|
||||||
timeoutHeight: undefined,
|
timeoutHeight: undefined,
|
||||||
timeoutTimestamp: Long.UZERO,
|
timeoutTimestamp: Long.UZERO,
|
||||||
|
memo: "",
|
||||||
};
|
};
|
||||||
const aminoMsg = new AminoTypes(createIbcAminoConverters()).toAmino({
|
const aminoMsg = new AminoTypes(createIbcAminoConverters()).toAmino({
|
||||||
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
||||||
@ -139,6 +142,7 @@ describe("AminoTypes", () => {
|
|||||||
revisionNumber: Long.fromString("456", true),
|
revisionNumber: Long.fromString("456", true),
|
||||||
},
|
},
|
||||||
timeoutTimestamp: Long.fromString("789", true),
|
timeoutTimestamp: Long.fromString("789", true),
|
||||||
|
memo: "",
|
||||||
};
|
};
|
||||||
expect(msg).toEqual({
|
expect(msg).toEqual({
|
||||||
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
||||||
@ -174,6 +178,7 @@ describe("AminoTypes", () => {
|
|||||||
revisionNumber: Long.UZERO,
|
revisionNumber: Long.UZERO,
|
||||||
},
|
},
|
||||||
timeoutTimestamp: Long.UZERO,
|
timeoutTimestamp: Long.UZERO,
|
||||||
|
memo: "",
|
||||||
};
|
};
|
||||||
expect(msg).toEqual({
|
expect(msg).toEqual({
|
||||||
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
||||||
|
@ -95,20 +95,21 @@ export function createIbcAminoConverters(): AminoConverters {
|
|||||||
receiver,
|
receiver,
|
||||||
timeout_height,
|
timeout_height,
|
||||||
timeout_timestamp,
|
timeout_timestamp,
|
||||||
}: AminoMsgTransfer["value"]): MsgTransfer => ({
|
}: AminoMsgTransfer["value"]): MsgTransfer =>
|
||||||
sourcePort: source_port,
|
MsgTransfer.fromPartial({
|
||||||
sourceChannel: source_channel,
|
sourcePort: source_port,
|
||||||
token: token,
|
sourceChannel: source_channel,
|
||||||
sender: sender,
|
token: token,
|
||||||
receiver: receiver,
|
sender: sender,
|
||||||
timeoutHeight: timeout_height
|
receiver: receiver,
|
||||||
? {
|
timeoutHeight: timeout_height
|
||||||
revisionHeight: Long.fromString(timeout_height.revision_height || "0", true),
|
? {
|
||||||
revisionNumber: Long.fromString(timeout_height.revision_number || "0", true),
|
revisionHeight: Long.fromString(timeout_height.revision_height || "0", true),
|
||||||
}
|
revisionNumber: Long.fromString(timeout_height.revision_number || "0", true),
|
||||||
: undefined,
|
}
|
||||||
timeoutTimestamp: Long.fromString(timeout_timestamp || "0", true),
|
: undefined,
|
||||||
}),
|
timeoutTimestamp: Long.fromString(timeout_timestamp || "0", true),
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
16
yarn.lock
16
yarn.lock
@ -362,7 +362,7 @@ __metadata:
|
|||||||
axios: ^0.21.2
|
axios: ^0.21.2
|
||||||
babylon: ^6.18.0
|
babylon: ^6.18.0
|
||||||
chalk: ^4
|
chalk: ^4
|
||||||
cosmjs-types: ^0.6.0
|
cosmjs-types: ^0.7.1
|
||||||
diff: ^4
|
diff: ^4
|
||||||
eslint: ^7.5
|
eslint: ^7.5
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
@ -408,7 +408,7 @@ __metadata:
|
|||||||
"@types/pako": ^1.0.1
|
"@types/pako": ^1.0.1
|
||||||
"@typescript-eslint/eslint-plugin": ^5.54.0
|
"@typescript-eslint/eslint-plugin": ^5.54.0
|
||||||
"@typescript-eslint/parser": ^5.54.0
|
"@typescript-eslint/parser": ^5.54.0
|
||||||
cosmjs-types: ^0.6.0
|
cosmjs-types: ^0.7.1
|
||||||
eslint: ^7.5
|
eslint: ^7.5
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
eslint-import-resolver-node: ^0.3.4
|
eslint-import-resolver-node: ^0.3.4
|
||||||
@ -767,7 +767,7 @@ __metadata:
|
|||||||
"@types/node": ^15.0.1
|
"@types/node": ^15.0.1
|
||||||
"@typescript-eslint/eslint-plugin": ^5.54.0
|
"@typescript-eslint/eslint-plugin": ^5.54.0
|
||||||
"@typescript-eslint/parser": ^5.54.0
|
"@typescript-eslint/parser": ^5.54.0
|
||||||
cosmjs-types: ^0.6.0
|
cosmjs-types: ^0.7.1
|
||||||
eslint: ^7.5
|
eslint: ^7.5
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
eslint-import-resolver-node: ^0.3.4
|
eslint-import-resolver-node: ^0.3.4
|
||||||
@ -864,7 +864,7 @@ __metadata:
|
|||||||
"@types/node": ^15.0.1
|
"@types/node": ^15.0.1
|
||||||
"@typescript-eslint/eslint-plugin": ^5.54.0
|
"@typescript-eslint/eslint-plugin": ^5.54.0
|
||||||
"@typescript-eslint/parser": ^5.54.0
|
"@typescript-eslint/parser": ^5.54.0
|
||||||
cosmjs-types: ^0.6.0
|
cosmjs-types: ^0.7.1
|
||||||
eslint: ^7.5
|
eslint: ^7.5
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
eslint-import-resolver-node: ^0.3.4
|
eslint-import-resolver-node: ^0.3.4
|
||||||
@ -2933,13 +2933,13 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"cosmjs-types@npm:^0.6.0":
|
"cosmjs-types@npm:^0.7.1":
|
||||||
version: 0.6.0
|
version: 0.7.1
|
||||||
resolution: "cosmjs-types@npm:0.6.0"
|
resolution: "cosmjs-types@npm:0.7.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
long: ^4.0.0
|
long: ^4.0.0
|
||||||
protobufjs: ~6.11.2
|
protobufjs: ~6.11.2
|
||||||
checksum: 06000f10d931bbd23381a2303337f6c203add988d2e4e63307a0b920b2c317197d3e17d4fc535e55e7fdc211e472ee3dff18847bb7f42704d194370a1c6ed581
|
checksum: 533d56d076a39fea98cac766ef965e92cc21e8de27cbebdd7396526c67167cef3aff683675337e95a21de212beedac8338a9e5405367115f68eb97cce2320aa8
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user