Migrate cli to @cosmwasm/cosmwasm and @cosmwasm/sdk38

This commit is contained in:
Simon Warta 2020-06-02 13:57:28 +02:00
parent 948d24aef7
commit 2c8349a10c
2 changed files with 20 additions and 14 deletions

View File

@ -38,7 +38,8 @@
"!**/testdata/"
],
"dependencies": {
"@cosmwasm/sdk": "^0.8.0",
"@cosmwasm/cosmwasm": "^0.8.0",
"@cosmwasm/sdk38": "^0.8.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",
"@iov/utils": "^2.0.2",

View File

@ -30,19 +30,8 @@ export function main(originalArgs: readonly string[]): void {
const imports = new Map<string, readonly string[]>([
[
"@cosmwasm/sdk",
"@cosmwasm/cosmwasm",
[
"encodeSecp256k1Pubkey",
"encodeSecp256k1Signature",
"logs",
"makeCosmoshubPath",
"makeSignBytes",
"marshalTx",
"Pen",
"pubkeyToAddress",
"RestClient",
"Secp256k1Pen",
"types",
// cosmwasmclient
"Account",
"Block",
@ -53,7 +42,6 @@ export function main(originalArgs: readonly string[]): void {
"ContractDetails",
"CosmWasmClient",
"GetNonceResult",
"IndexedTx",
"PostTxResult",
"SearchByHeightQuery",
"SearchByIdQuery",
@ -71,6 +59,23 @@ export function main(originalArgs: readonly string[]): void {
"UploadResult",
],
],
[
"@cosmwasm/sdk38",
[
"encodeSecp256k1Pubkey",
"encodeSecp256k1Signature",
"logs",
"makeCosmoshubPath",
"makeSignBytes",
"marshalTx",
"Pen",
"pubkeyToAddress",
"RestClient",
"Secp256k1Pen",
"types",
"IndexedTx",
],
],
[
"@iov/crypto",
[