mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Rename packages @cosmwasm/* to @cosmjs/*
This commit is contained in:
parent
fcddf6414a
commit
16df23f79b
@ -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 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.
|
# 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/
|
# Coose from https://hub.docker.com/_/node/
|
||||||
FROM node:12.14.1-alpine
|
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
|
# Check it exists
|
||||||
RUN /usr/local/bin/cosmwasm-faucet version
|
RUN /usr/local/bin/cosmwasm-faucet version
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmwasm/sdk38": "^0.8.0",
|
"@cosmjs/sdk38": "^0.8.0",
|
||||||
"@iov/bcp": "^2.1.0",
|
"@iov/bcp": "^2.1.0",
|
||||||
"@iov/crypto": "^2.1.0",
|
"@iov/crypto": "^2.1.0",
|
||||||
"@iov/encoding": "^2.1.0",
|
"@iov/encoding": "^2.1.0",
|
||||||
|
@ -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 { Address, Algorithm, PubkeyBundle } from "@iov/bcp";
|
||||||
import { Secp256k1 } from "@iov/crypto";
|
import { Secp256k1 } from "@iov/crypto";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { makeSignBytes, marshalTx, unmarshalTx } from "@cosmwasm/sdk38";
|
import { makeSignBytes, marshalTx, unmarshalTx } from "@cosmjs/sdk38";
|
||||||
import {
|
import {
|
||||||
Address,
|
Address,
|
||||||
ChainId,
|
ChainId,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { decodeSignature } from "@cosmwasm/sdk38";
|
import { decodeSignature } from "@cosmjs/sdk38";
|
||||||
import {
|
import {
|
||||||
Account,
|
Account,
|
||||||
Address,
|
Address,
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
isMsgSend,
|
isMsgSend,
|
||||||
isStdTx,
|
isStdTx,
|
||||||
SearchTxFilter,
|
SearchTxFilter,
|
||||||
} from "@cosmwasm/sdk38";
|
} from "@cosmjs/sdk38";
|
||||||
import {
|
import {
|
||||||
Account,
|
Account,
|
||||||
AccountQuery,
|
AccountQuery,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* 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 { Address, Algorithm, SendTransaction, TokenTicker } from "@iov/bcp";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
StdFee,
|
StdFee,
|
||||||
StdSignature,
|
StdSignature,
|
||||||
StdTx,
|
StdTx,
|
||||||
} from "@cosmwasm/sdk38";
|
} from "@cosmjs/sdk38";
|
||||||
import {
|
import {
|
||||||
Address,
|
Address,
|
||||||
Algorithm,
|
Algorithm,
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
pubkeyType,
|
pubkeyType,
|
||||||
StdFee,
|
StdFee,
|
||||||
StdSignature,
|
StdSignature,
|
||||||
} from "@cosmwasm/sdk38";
|
} from "@cosmjs/sdk38";
|
||||||
import {
|
import {
|
||||||
Algorithm,
|
Algorithm,
|
||||||
Amount,
|
Amount,
|
||||||
|
2
packages/bcp/types/decode.d.ts
vendored
2
packages/bcp/types/decode.d.ts
vendored
@ -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 {
|
import {
|
||||||
Amount,
|
Amount,
|
||||||
ChainId,
|
ChainId,
|
||||||
|
2
packages/bcp/types/encode.d.ts
vendored
2
packages/bcp/types/encode.d.ts
vendored
@ -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 { Amount, Fee, FullSignature, PubkeyBundle, SignedTransaction, UnsignedTransaction } from "@iov/bcp";
|
||||||
import { BankToken } from "./types";
|
import { BankToken } from "./types";
|
||||||
export declare function encodePubkey(pubkey: PubkeyBundle): PubKey;
|
export declare function encodePubkey(pubkey: PubkeyBundle): PubKey;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# @cosmwasm/cli
|
# @cosmjs/cli
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@cosmwasm/cli)
|
[](https://www.npmjs.com/package/@cosmjs/cli)
|
||||||
|
|
||||||
## Installation and first run
|
## Installation and first run
|
||||||
|
|
||||||
@ -11,34 +11,34 @@ installations to your demo project. If you don't have one yet, just
|
|||||||
### locally with yarn
|
### locally with yarn
|
||||||
|
|
||||||
```
|
```
|
||||||
$ yarn add @cosmwasm/cli --dev
|
$ yarn add @cosmjs/cli --dev
|
||||||
$ ./node_modules/.bin/cosmwasm-cli
|
$ ./node_modules/.bin/cosmwasm-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
### locally with npm
|
### locally with npm
|
||||||
|
|
||||||
```
|
```
|
||||||
$ npm install @cosmwasm/cli --save-dev
|
$ npm install @cosmjs/cli --save-dev
|
||||||
$ ./node_modules/.bin/cosmwasm-cli
|
$ ./node_modules/.bin/cosmwasm-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
### globally with yarn
|
### globally with yarn
|
||||||
|
|
||||||
```
|
```
|
||||||
$ yarn global add @cosmwasm/cli
|
$ yarn global add @cosmjs/cli
|
||||||
$ cosmwasm-cli
|
$ cosmwasm-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
### globally with npm
|
### globally with npm
|
||||||
|
|
||||||
```
|
```
|
||||||
$ npm install -g @cosmwasm/cli
|
$ npm install -g @cosmjs/cli
|
||||||
$ cosmwasm-cli
|
$ cosmwasm-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting started
|
## 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
|
2. Start a local wasmd blockchain
|
||||||
3. Start with `./bin/cosmwasm-cli --init examples/local_faucet.ts`
|
3. Start with `./bin/cosmwasm-cli --init examples/local_faucet.ts`
|
||||||
4. Play around as in the following example code
|
4. Play around as in the following example code
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@cosmwasm/cli",
|
"name": "@cosmjs/cli",
|
||||||
"version": "0.8.0",
|
"version": "0.8.0",
|
||||||
"description": "Command line interface",
|
"description": "Command line interface",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
@ -38,8 +38,8 @@
|
|||||||
"!**/testdata/"
|
"!**/testdata/"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmwasm/cosmwasm": "^0.8.0",
|
"@cosmjs/cosmwasm": "^0.8.0",
|
||||||
"@cosmwasm/sdk38": "^0.8.0",
|
"@cosmjs/sdk38": "^0.8.0",
|
||||||
"@iov/crypto": "^2.1.0",
|
"@iov/crypto": "^2.1.0",
|
||||||
"@iov/encoding": "^2.1.0",
|
"@iov/encoding": "^2.1.0",
|
||||||
"@iov/utils": "^2.0.2",
|
"@iov/utils": "^2.0.2",
|
||||||
|
@ -30,7 +30,7 @@ export function main(originalArgs: readonly string[]): void {
|
|||||||
|
|
||||||
const imports = new Map<string, readonly string[]>([
|
const imports = new Map<string, readonly string[]>([
|
||||||
[
|
[
|
||||||
"@cosmwasm/cosmwasm",
|
"@cosmjs/cosmwasm",
|
||||||
[
|
[
|
||||||
// cosmwasmclient
|
// cosmwasmclient
|
||||||
"Account",
|
"Account",
|
||||||
@ -60,7 +60,7 @@ export function main(originalArgs: readonly string[]): void {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"@cosmwasm/sdk38",
|
"@cosmjs/sdk38",
|
||||||
[
|
[
|
||||||
"coin",
|
"coin",
|
||||||
"coins",
|
"coins",
|
||||||
|
@ -80,7 +80,7 @@ export class TsRepl {
|
|||||||
// '/home/me/.node_modules',
|
// '/home/me/.node_modules',
|
||||||
// '/home/me/.node_libraries',
|
// '/home/me/.node_libraries',
|
||||||
// '/usr/lib/nodejs' ]
|
// '/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
|
// REPL does not inherit module paths from the current process. Thus we override
|
||||||
// the repl paths with the current process' paths
|
// the repl paths with the current process' paths
|
||||||
unsafeReplContext.module.paths = module.paths;
|
unsafeReplContext.module.paths = module.paths;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# @cosmwasm/cosmwasm
|
# @cosmjs/cosmwasm
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@cosmwasm/cosmwasm)
|
[](https://www.npmjs.com/package/@cosmjs/cosmwasm)
|
||||||
|
|
||||||
An SDK to build CosmWasm clients.
|
An SDK to build CosmWasm clients.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@cosmwasm/cosmwasm",
|
"name": "@cosmjs/cosmwasm",
|
||||||
"version": "0.8.0",
|
"version": "0.8.0",
|
||||||
"description": "CosmWasm SDK",
|
"description": "CosmWasm SDK",
|
||||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
"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"
|
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmwasm/sdk38": "^0.8.0",
|
"@cosmjs/sdk38": "^0.8.0",
|
||||||
"@iov/crypto": "^2.1.0",
|
"@iov/crypto": "^2.1.0",
|
||||||
"@iov/encoding": "^2.1.0",
|
"@iov/encoding": "^2.1.0",
|
||||||
"@iov/utils": "^2.0.2",
|
"@iov/utils": "^2.0.2",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* 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 { assert, sleep } from "@iov/utils";
|
||||||
|
|
||||||
import { CosmWasmClient } from "./cosmwasmclient";
|
import { CosmWasmClient } from "./cosmwasmclient";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* 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 { Sha256 } from "@iov/crypto";
|
||||||
import { Bech32, Encoding } from "@iov/encoding";
|
import { Bech32, Encoding } from "@iov/encoding";
|
||||||
import { assert, sleep } from "@iov/utils";
|
import { assert, sleep } from "@iov/utils";
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
IndexedTx,
|
IndexedTx,
|
||||||
PubKey,
|
PubKey,
|
||||||
StdTx,
|
StdTx,
|
||||||
} from "@cosmwasm/sdk38";
|
} from "@cosmjs/sdk38";
|
||||||
import { Sha256 } from "@iov/crypto";
|
import { Sha256 } from "@iov/crypto";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Coin, Msg } from "@cosmwasm/sdk38";
|
import { Coin, Msg } from "@cosmjs/sdk38";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uploads Wam code to the chain
|
* Uploads Wam code to the chain
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
StdFee,
|
StdFee,
|
||||||
StdSignature,
|
StdSignature,
|
||||||
StdTx,
|
StdTx,
|
||||||
} from "@cosmwasm/sdk38";
|
} from "@cosmjs/sdk38";
|
||||||
import { Sha256 } from "@iov/crypto";
|
import { Sha256 } from "@iov/crypto";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
import { assert, sleep } from "@iov/utils";
|
import { assert, sleep } from "@iov/utils";
|
||||||
|
@ -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 { Encoding } from "@iov/encoding";
|
||||||
|
|
||||||
import { JsonObject, Model, parseWasmData, WasmData } from "./types";
|
import { JsonObject, Model, parseWasmData, WasmData } from "./types";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Coin, Secp256k1Pen } from "@cosmwasm/sdk38";
|
import { Coin, Secp256k1Pen } from "@cosmjs/sdk38";
|
||||||
import { Sha256 } from "@iov/crypto";
|
import { Sha256 } from "@iov/crypto";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
import { assert } from "@iov/utils";
|
import { assert } from "@iov/utils";
|
||||||
|
@ -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 { Sha256 } from "@iov/crypto";
|
||||||
import { Encoding } from "@iov/encoding";
|
import { Encoding } from "@iov/encoding";
|
||||||
import pako from "pako";
|
import pako from "pako";
|
||||||
|
2
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
2
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
@ -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 { Log } from "./logs";
|
||||||
import { RestClient } from "./restclient";
|
import { RestClient } from "./restclient";
|
||||||
import { JsonObject } from "./types";
|
import { JsonObject } from "./types";
|
||||||
|
2
packages/cosmwasm/types/msgs.d.ts
vendored
2
packages/cosmwasm/types/msgs.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
import { Coin, Msg } from "@cosmwasm/sdk38";
|
import { Coin, Msg } from "@cosmjs/sdk38";
|
||||||
/**
|
/**
|
||||||
* Uploads Wam code to the chain
|
* Uploads Wam code to the chain
|
||||||
*
|
*
|
||||||
|
2
packages/cosmwasm/types/restclient.d.ts
vendored
2
packages/cosmwasm/types/restclient.d.ts
vendored
@ -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";
|
import { JsonObject, Model } from "./types";
|
||||||
export interface TxsResponse {
|
export interface TxsResponse {
|
||||||
readonly height: string;
|
readonly height: string;
|
||||||
|
@ -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 { Account, CosmWasmClient, GetNonceResult, PostTxResult } from "./cosmwasmclient";
|
||||||
import { Log } from "./logs";
|
import { Log } from "./logs";
|
||||||
export interface SigningCallback {
|
export interface SigningCallback {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# @cosmwasm/demo-staking
|
# @cosmjs/demo-staking
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@cosmwasm/demo-staking",
|
"name": "@cosmjs/demo-staking",
|
||||||
"version": "0.8.0",
|
"version": "0.8.0",
|
||||||
"description": "Demo interaction with the staking contract",
|
"description": "Demo interaction with the staking contract",
|
||||||
"author": "Simon Warta <webmaster128@users.noreply.github.com>",
|
"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"
|
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmwasm/cosmwasm": "^0.8.0",
|
"@cosmjs/cosmwasm": "^0.8.0",
|
||||||
"@cosmwasm/sdk38": "^0.8.0",
|
"@cosmjs/sdk38": "^0.8.0",
|
||||||
"@iov/crypto": "^2.1.0",
|
"@iov/crypto": "^2.1.0",
|
||||||
"@iov/encoding": "^2.1.0",
|
"@iov/encoding": "^2.1.0",
|
||||||
"@iov/stream": "^2.0.2",
|
"@iov/stream": "^2.0.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { SigningCosmWasmClient } from "@cosmwasm/cosmwasm";
|
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm";
|
||||||
import { Coin, coins, makeCosmoshubPath, Secp256k1Pen } from "@cosmwasm/sdk38";
|
import { Coin, coins, makeCosmoshubPath, Secp256k1Pen } from "@cosmjs/sdk38";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BalanceResponse,
|
BalanceResponse,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# @cosmwasm/faucet
|
# @cosmjs/faucet
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@cosmwasm/faucet)
|
[](https://www.npmjs.com/package/@cosmjs/faucet)
|
||||||
|
|
||||||
The faucet is built as part of the monorepo. In the repo root do:
|
The faucet is built as part of the monorepo. In the repo root do:
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@cosmwasm/faucet",
|
"name": "@cosmjs/faucet",
|
||||||
"version": "0.8.0",
|
"version": "0.8.0",
|
||||||
"description": "The faucet",
|
"description": "The faucet",
|
||||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||||
@ -35,7 +35,7 @@
|
|||||||
"test": "yarn build-or-skip && yarn test-node"
|
"test": "yarn build-or-skip && yarn test-node"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmwasm/sdk38": "^0.8.0",
|
"@cosmjs/sdk38": "^0.8.0",
|
||||||
"@iov/crypto": "^2.1.0",
|
"@iov/crypto": "^2.1.0",
|
||||||
"@iov/encoding": "^2.1.0",
|
"@iov/encoding": "^2.1.0",
|
||||||
"@iov/utils": "^2.0.2",
|
"@iov/utils": "^2.0.2",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CosmosClient } from "@cosmwasm/sdk38";
|
import { CosmosClient } from "@cosmjs/sdk38";
|
||||||
|
|
||||||
import { Webserver } from "../../api/webserver";
|
import { Webserver } from "../../api/webserver";
|
||||||
import * as constants from "../../constants";
|
import * as constants from "../../constants";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Coin } from "@cosmwasm/sdk38";
|
import { Coin } from "@cosmjs/sdk38";
|
||||||
import { Decimal } from "@iov/encoding";
|
import { Decimal } from "@iov/encoding";
|
||||||
|
|
||||||
import { MinimalAccount, SendJob, TokenConfiguration } from "./types";
|
import { MinimalAccount, SendJob, TokenConfiguration } from "./types";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CosmosClient } from "@cosmwasm/sdk38";
|
import { CosmosClient } from "@cosmjs/sdk38";
|
||||||
import { Random } from "@iov/crypto";
|
import { Random } from "@iov/crypto";
|
||||||
import { Bech32 } from "@iov/encoding";
|
import { Bech32 } from "@iov/encoding";
|
||||||
import { assert } from "@iov/utils";
|
import { assert } from "@iov/utils";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CosmosClient, Pen, SigningCosmosClient } from "@cosmwasm/sdk38";
|
import { CosmosClient, Pen, SigningCosmosClient } from "@cosmjs/sdk38";
|
||||||
import { sleep } from "@iov/utils";
|
import { sleep } from "@iov/utils";
|
||||||
|
|
||||||
import { debugAccount, logAccountsState, logSendJob } from "./debugging";
|
import { debugAccount, logAccountsState, logSendJob } from "./debugging";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { makeCosmoshubPath, Pen, Secp256k1Pen } from "@cosmwasm/sdk38";
|
import { makeCosmoshubPath, Pen, Secp256k1Pen } from "@cosmjs/sdk38";
|
||||||
|
|
||||||
import { debugPath } from "./hdpaths";
|
import { debugPath } from "./hdpaths";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Coin } from "@cosmwasm/sdk38";
|
import { Coin } from "@cosmjs/sdk38";
|
||||||
import { Decimal, Uint53 } from "@iov/encoding";
|
import { Decimal, Uint53 } from "@iov/encoding";
|
||||||
|
|
||||||
import { BankTokenMeta, MinimalAccount, TokenConfiguration } from "./types";
|
import { BankTokenMeta, MinimalAccount, TokenConfiguration } from "./types";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Account, Coin } from "@cosmwasm/sdk38";
|
import { Account, Coin } from "@cosmjs/sdk38";
|
||||||
|
|
||||||
export interface SendJob {
|
export interface SendJob {
|
||||||
readonly sender: string;
|
readonly sender: string;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# @cosmwasm/sdk38
|
# @cosmjs/sdk38
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@cosmwasm/sdk38)
|
[](https://www.npmjs.com/package/@cosmjs/sdk38)
|
||||||
|
|
||||||
A client library for the Cosmos SDK 0.38.
|
A client library for the Cosmos SDK 0.38.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@cosmwasm/sdk38",
|
"name": "@cosmjs/sdk38",
|
||||||
"version": "0.8.0",
|
"version": "0.8.0",
|
||||||
"description": "Utilities for Cosmos SDK 0.38",
|
"description": "Utilities for Cosmos SDK 0.38",
|
||||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
|
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||||
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
|
const { Secp256k1Pen } = require("@cosmjs/sdk38");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
const httpUrl = "http://localhost:1317";
|
const httpUrl = "http://localhost:1317";
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
|
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||||
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
|
const { Secp256k1Pen } = require("@cosmjs/sdk38");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
const httpUrl = "http://localhost:1317";
|
const httpUrl = "http://localhost:1317";
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/camelcase */
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
const { SigningCosmWasmClient } = require("@cosmwasm/cosmwasm");
|
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||||
const { Secp256k1Pen } = require("@cosmwasm/sdk38");
|
const { Secp256k1Pen } = require("@cosmjs/sdk38");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
const httpUrl = "http://localhost:1317";
|
const httpUrl = "http://localhost:1317";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user