Rename packages @cosmwasm/* to @cosmjs/*

This commit is contained in:
Simon Warta 2020-06-04 19:53:58 +02:00
parent fcddf6414a
commit 16df23f79b
46 changed files with 67 additions and 67 deletions

View File

@ -1,11 +1,11 @@
# The only officially supported distribution channel of the faucet binary is @cosmwasm/faucet on npmjs.com
# The only officially supported distribution channel of the faucet binary is @cosmjs/faucet on npmjs.com
# This is an example file of how to wrap the faucet in a docker container.
# This file will be outdated very soon, but should work as a template for your custom docker setup.
# Coose from https://hub.docker.com/_/node/
FROM node:12.14.1-alpine
RUN yarn global add @cosmwasm/faucet@0.0.8
RUN yarn global add @cosmjs/faucet@0.0.8
# Check it exists
RUN /usr/local/bin/cosmwasm-faucet version

View File

@ -39,7 +39,7 @@
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
},
"dependencies": {
"@cosmwasm/sdk38": "^0.8.0",
"@cosmjs/sdk38": "^0.8.0",
"@iov/bcp": "^2.1.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",

View File

@ -1,4 +1,4 @@
import { PubKey, pubkeyToAddress as sdkPubkeyToAddress, pubkeyType } from "@cosmwasm/sdk38";
import { PubKey, pubkeyToAddress as sdkPubkeyToAddress, pubkeyType } from "@cosmjs/sdk38";
import { Address, Algorithm, PubkeyBundle } from "@iov/bcp";
import { Secp256k1 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";

View File

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/camelcase */
import { makeSignBytes, marshalTx, unmarshalTx } from "@cosmwasm/sdk38";
import { makeSignBytes, marshalTx, unmarshalTx } from "@cosmjs/sdk38";
import {
Address,
ChainId,

View File

@ -1,4 +1,4 @@
import { decodeSignature } from "@cosmwasm/sdk38";
import { decodeSignature } from "@cosmjs/sdk38";
import {
Account,
Address,

View File

@ -5,7 +5,7 @@ import {
isMsgSend,
isStdTx,
SearchTxFilter,
} from "@cosmwasm/sdk38";
} from "@cosmjs/sdk38";
import {
Account,
AccountQuery,

View File

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/camelcase */
import { Coin, IndexedTx, Msg, PubKey, StdSignature } from "@cosmwasm/sdk38";
import { Coin, IndexedTx, Msg, PubKey, StdSignature } from "@cosmjs/sdk38";
import { Address, Algorithm, SendTransaction, TokenTicker } from "@iov/bcp";
import { Encoding } from "@iov/encoding";

View File

@ -9,7 +9,7 @@ import {
StdFee,
StdSignature,
StdTx,
} from "@cosmwasm/sdk38";
} from "@cosmjs/sdk38";
import {
Address,
Algorithm,

View File

@ -8,7 +8,7 @@ import {
pubkeyType,
StdFee,
StdSignature,
} from "@cosmwasm/sdk38";
} from "@cosmjs/sdk38";
import {
Algorithm,
Amount,

View File

@ -1,4 +1,4 @@
import { Coin, IndexedTx, Msg, PubKey, StdFee, StdSignature, StdTx } from "@cosmwasm/sdk38";
import { Coin, IndexedTx, Msg, PubKey, StdFee, StdSignature, StdTx } from "@cosmjs/sdk38";
import {
Amount,
ChainId,

View File

@ -1,4 +1,4 @@
import { Coin, CosmosSdkTx, PubKey, StdFee, StdSignature } from "@cosmwasm/sdk38";
import { Coin, CosmosSdkTx, PubKey, StdFee, StdSignature } from "@cosmjs/sdk38";
import { Amount, Fee, FullSignature, PubkeyBundle, SignedTransaction, UnsignedTransaction } from "@iov/bcp";
import { BankToken } from "./types";
export declare function encodePubkey(pubkey: PubkeyBundle): PubKey;

View File

@ -1,6 +1,6 @@
# @cosmwasm/cli
# @cosmjs/cli
[![npm version](https://img.shields.io/npm/v/@cosmwasm/cli.svg)](https://www.npmjs.com/package/@cosmwasm/cli)
[![npm version](https://img.shields.io/npm/v/@cosmjs/cli.svg)](https://www.npmjs.com/package/@cosmjs/cli)
## Installation and first run
@ -11,34 +11,34 @@ installations to your demo project. If you don't have one yet, just
### locally with yarn
```
$ yarn add @cosmwasm/cli --dev
$ yarn add @cosmjs/cli --dev
$ ./node_modules/.bin/cosmwasm-cli
```
### locally with npm
```
$ npm install @cosmwasm/cli --save-dev
$ npm install @cosmjs/cli --save-dev
$ ./node_modules/.bin/cosmwasm-cli
```
### globally with yarn
```
$ yarn global add @cosmwasm/cli
$ yarn global add @cosmjs/cli
$ cosmwasm-cli
```
### globally with npm
```
$ npm install -g @cosmwasm/cli
$ npm install -g @cosmjs/cli
$ cosmwasm-cli
```
## Getting started
1. Install `@cosmwasm/cli` and run `cosmwasm-cli` as shown above
1. Install `@cosmjs/cli` and run `cosmwasm-cli` as shown above
2. Start a local wasmd blockchain
3. Start with `./bin/cosmwasm-cli --init examples/local_faucet.ts`
4. Play around as in the following example code

View File

@ -1,5 +1,5 @@
{
"name": "@cosmwasm/cli",
"name": "@cosmjs/cli",
"version": "0.8.0",
"description": "Command line interface",
"contributors": [
@ -38,8 +38,8 @@
"!**/testdata/"
],
"dependencies": {
"@cosmwasm/cosmwasm": "^0.8.0",
"@cosmwasm/sdk38": "^0.8.0",
"@cosmjs/cosmwasm": "^0.8.0",
"@cosmjs/sdk38": "^0.8.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",
"@iov/utils": "^2.0.2",

View File

@ -30,7 +30,7 @@ export function main(originalArgs: readonly string[]): void {
const imports = new Map<string, readonly string[]>([
[
"@cosmwasm/cosmwasm",
"@cosmjs/cosmwasm",
[
// cosmwasmclient
"Account",
@ -60,7 +60,7 @@ export function main(originalArgs: readonly string[]): void {
],
],
[
"@cosmwasm/sdk38",
"@cosmjs/sdk38",
[
"coin",
"coins",

View File

@ -80,7 +80,7 @@ export class TsRepl {
// '/home/me/.node_modules',
// '/home/me/.node_libraries',
// '/usr/lib/nodejs' ]
// However, this does not include the installation path of @cosmwasm/cli because
// However, this does not include the installation path of @cosmjs/cli because
// REPL does not inherit module paths from the current process. Thus we override
// the repl paths with the current process' paths
unsafeReplContext.module.paths = module.paths;

View File

@ -1,6 +1,6 @@
# @cosmwasm/cosmwasm
# @cosmjs/cosmwasm
[![npm version](https://img.shields.io/npm/v/@cosmwasm/cosmwasm.svg)](https://www.npmjs.com/package/@cosmwasm/cosmwasm)
[![npm version](https://img.shields.io/npm/v/@cosmjs/cosmwasm.svg)](https://www.npmjs.com/package/@cosmjs/cosmwasm)
An SDK to build CosmWasm clients.

View File

@ -1,5 +1,5 @@
{
"name": "@cosmwasm/cosmwasm",
"name": "@cosmjs/cosmwasm",
"version": "0.8.0",
"description": "CosmWasm SDK",
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
@ -36,7 +36,7 @@
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
},
"dependencies": {
"@cosmwasm/sdk38": "^0.8.0",
"@cosmjs/sdk38": "^0.8.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",
"@iov/utils": "^2.0.2",

View File

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/camelcase */
import { Coin, CosmosSdkTx, isMsgSend, makeSignBytes, MsgSend, Secp256k1Pen } from "@cosmwasm/sdk38";
import { Coin, CosmosSdkTx, isMsgSend, makeSignBytes, MsgSend, Secp256k1Pen } from "@cosmjs/sdk38";
import { assert, sleep } from "@iov/utils";
import { CosmWasmClient } from "./cosmwasmclient";

View File

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/camelcase */
import { makeSignBytes, MsgSend, Secp256k1Pen, StdFee } from "@cosmwasm/sdk38";
import { makeSignBytes, MsgSend, Secp256k1Pen, StdFee } from "@cosmjs/sdk38";
import { Sha256 } from "@iov/crypto";
import { Bech32, Encoding } from "@iov/encoding";
import { assert, sleep } from "@iov/utils";

View File

@ -6,7 +6,7 @@ import {
IndexedTx,
PubKey,
StdTx,
} from "@cosmwasm/sdk38";
} from "@cosmjs/sdk38";
import { Sha256 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";

View File

@ -1,4 +1,4 @@
import { Coin, Msg } from "@cosmwasm/sdk38";
import { Coin, Msg } from "@cosmjs/sdk38";
/**
* Uploads Wam code to the chain

View File

@ -13,7 +13,7 @@ import {
StdFee,
StdSignature,
StdTx,
} from "@cosmwasm/sdk38";
} from "@cosmjs/sdk38";
import { Sha256 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";
import { assert, sleep } from "@iov/utils";

View File

@ -1,4 +1,4 @@
import { BroadcastMode, CosmosSdkTx, RestClient as BaseRestClient } from "@cosmwasm/sdk38";
import { BroadcastMode, CosmosSdkTx, RestClient as BaseRestClient } from "@cosmjs/sdk38";
import { Encoding } from "@iov/encoding";
import { JsonObject, Model, parseWasmData, WasmData } from "./types";

View File

@ -1,4 +1,4 @@
import { Coin, Secp256k1Pen } from "@cosmwasm/sdk38";
import { Coin, Secp256k1Pen } from "@cosmjs/sdk38";
import { Sha256 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";
import { assert } from "@iov/utils";

View File

@ -1,4 +1,4 @@
import { BroadcastMode, Coin, coins, makeSignBytes, MsgSend, StdFee, StdSignature } from "@cosmwasm/sdk38";
import { BroadcastMode, Coin, coins, makeSignBytes, MsgSend, StdFee, StdSignature } from "@cosmjs/sdk38";
import { Sha256 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";
import pako from "pako";

View File

@ -1,4 +1,4 @@
import { BroadcastMode, Coin, CosmosSdkTx, IndexedTx, PubKey, StdTx } from "@cosmwasm/sdk38";
import { BroadcastMode, Coin, CosmosSdkTx, IndexedTx, PubKey, StdTx } from "@cosmjs/sdk38";
import { Log } from "./logs";
import { RestClient } from "./restclient";
import { JsonObject } from "./types";

View File

@ -1,4 +1,4 @@
import { Coin, Msg } from "@cosmwasm/sdk38";
import { Coin, Msg } from "@cosmjs/sdk38";
/**
* Uploads Wam code to the chain
*

View File

@ -1,4 +1,4 @@
import { BroadcastMode, CosmosSdkTx, RestClient as BaseRestClient } from "@cosmwasm/sdk38";
import { BroadcastMode, CosmosSdkTx, RestClient as BaseRestClient } from "@cosmjs/sdk38";
import { JsonObject, Model } from "./types";
export interface TxsResponse {
readonly height: string;

View File

@ -1,4 +1,4 @@
import { BroadcastMode, Coin, StdFee, StdSignature } from "@cosmwasm/sdk38";
import { BroadcastMode, Coin, StdFee, StdSignature } from "@cosmjs/sdk38";
import { Account, CosmWasmClient, GetNonceResult, PostTxResult } from "./cosmwasmclient";
import { Log } from "./logs";
export interface SigningCallback {

View File

@ -1,4 +1,4 @@
# @cosmwasm/demo-staking
# @cosmjs/demo-staking
## License

View File

@ -1,5 +1,5 @@
{
"name": "@cosmwasm/demo-staking",
"name": "@cosmjs/demo-staking",
"version": "0.8.0",
"description": "Demo interaction with the staking contract",
"author": "Simon Warta <webmaster128@users.noreply.github.com>",
@ -34,8 +34,8 @@
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
},
"dependencies": {
"@cosmwasm/cosmwasm": "^0.8.0",
"@cosmwasm/sdk38": "^0.8.0",
"@cosmjs/cosmwasm": "^0.8.0",
"@cosmjs/sdk38": "^0.8.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",
"@iov/stream": "^2.0.2",

View File

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/camelcase */
import { SigningCosmWasmClient } from "@cosmwasm/cosmwasm";
import { Coin, coins, makeCosmoshubPath, Secp256k1Pen } from "@cosmwasm/sdk38";
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm";
import { Coin, coins, makeCosmoshubPath, Secp256k1Pen } from "@cosmjs/sdk38";
import {
BalanceResponse,

View File

@ -1,6 +1,6 @@
# @cosmwasm/faucet
# @cosmjs/faucet
[![npm version](https://img.shields.io/npm/v/@cosmwasm/faucet.svg)](https://www.npmjs.com/package/@cosmwasm/faucet)
[![npm version](https://img.shields.io/npm/v/@cosmjs/faucet.svg)](https://www.npmjs.com/package/@cosmjs/faucet)
The faucet is built as part of the monorepo. In the repo root do:

View File

@ -1,5 +1,5 @@
{
"name": "@cosmwasm/faucet",
"name": "@cosmjs/faucet",
"version": "0.8.0",
"description": "The faucet",
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
@ -35,7 +35,7 @@
"test": "yarn build-or-skip && yarn test-node"
},
"dependencies": {
"@cosmwasm/sdk38": "^0.8.0",
"@cosmjs/sdk38": "^0.8.0",
"@iov/crypto": "^2.1.0",
"@iov/encoding": "^2.1.0",
"@iov/utils": "^2.0.2",

View File

@ -1,4 +1,4 @@
import { CosmosClient } from "@cosmwasm/sdk38";
import { CosmosClient } from "@cosmjs/sdk38";
import { Webserver } from "../../api/webserver";
import * as constants from "../../constants";

View File

@ -1,4 +1,4 @@
import { Coin } from "@cosmwasm/sdk38";
import { Coin } from "@cosmjs/sdk38";
import { Decimal } from "@iov/encoding";
import { MinimalAccount, SendJob, TokenConfiguration } from "./types";

View File

@ -1,4 +1,4 @@
import { CosmosClient } from "@cosmwasm/sdk38";
import { CosmosClient } from "@cosmjs/sdk38";
import { Random } from "@iov/crypto";
import { Bech32 } from "@iov/encoding";
import { assert } from "@iov/utils";

View File

@ -1,4 +1,4 @@
import { CosmosClient, Pen, SigningCosmosClient } from "@cosmwasm/sdk38";
import { CosmosClient, Pen, SigningCosmosClient } from "@cosmjs/sdk38";
import { sleep } from "@iov/utils";
import { debugAccount, logAccountsState, logSendJob } from "./debugging";

View File

@ -1,4 +1,4 @@
import { makeCosmoshubPath, Pen, Secp256k1Pen } from "@cosmwasm/sdk38";
import { makeCosmoshubPath, Pen, Secp256k1Pen } from "@cosmjs/sdk38";
import { debugPath } from "./hdpaths";

View File

@ -1,4 +1,4 @@
import { Coin } from "@cosmwasm/sdk38";
import { Coin } from "@cosmjs/sdk38";
import { Decimal, Uint53 } from "@iov/encoding";
import { BankTokenMeta, MinimalAccount, TokenConfiguration } from "./types";

View File

@ -1,4 +1,4 @@
import { Account, Coin } from "@cosmwasm/sdk38";
import { Account, Coin } from "@cosmjs/sdk38";
export interface SendJob {
readonly sender: string;

View File

@ -1,6 +1,6 @@
# @cosmwasm/sdk38
# @cosmjs/sdk38
[![npm version](https://img.shields.io/npm/v/@cosmwasm/sdk38.svg)](https://www.npmjs.com/package/@cosmwasm/sdk38)
[![npm version](https://img.shields.io/npm/v/@cosmjs/sdk38.svg)](https://www.npmjs.com/package/@cosmjs/sdk38)
A client library for the Cosmos SDK 0.38.

View File

@ -1,5 +1,5 @@
{
"name": "@cosmwasm/sdk38",
"name": "@cosmjs/sdk38",
"version": "0.8.0",
"description": "Utilities for Cosmos SDK 0.38",
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",

View File

@ -1,8 +1,8 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/camelcase */
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
const { Secp256k1Pen } = require("@cosmjs/sdk38");
const fs = require("fs");
const httpUrl = "http://localhost:1317";

View File

@ -1,8 +1,8 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/camelcase */
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
const { Secp256k1Pen } = require("@cosmjs/sdk38");
const fs = require("fs");
const httpUrl = "http://localhost:1317";

View File

@ -1,8 +1,8 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/camelcase */
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
const { Secp256k1Pen } = require("@cosmjs/sdk38");
const fs = require("fs");
const httpUrl = "http://localhost:1317";