mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Rename cosmwasm-faucet -> cosmos-faucet
This commit is contained in:
parent
a1e0e1cf9e
commit
bcf5ae9f1a
@ -28,6 +28,7 @@
|
|||||||
- @cosmjs/tendermint-rpc: Change type of `GenesisResponse.appState` to
|
- @cosmjs/tendermint-rpc: Change type of `GenesisResponse.appState` to
|
||||||
`Record<string, unknown> | undefined`.
|
`Record<string, unknown> | undefined`.
|
||||||
- @cosmjs/utils: Add `assertDefined`.
|
- @cosmjs/utils: Add `assertDefined`.
|
||||||
|
- @cosmjs/faucet: Rename binary from `cosmwasm-faucet` to `cosmos-faucet`.
|
||||||
|
|
||||||
## 0.22.2 (2020-08-11)
|
## 0.22.2 (2020-08-11)
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
# 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.18.3-alpine
|
||||||
|
|
||||||
RUN yarn global add @cosmjs/faucet@0.0.8
|
RUN yarn global add @cosmjs/faucet@0.23.0
|
||||||
|
|
||||||
# Check it exists
|
# Check it exists
|
||||||
RUN /usr/local/bin/cosmwasm-faucet version
|
RUN /usr/local/bin/cosmos-faucet version
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
ENTRYPOINT ["/usr/local/bin/cosmwasm-faucet"]
|
ENTRYPOINT ["/usr/local/bin/cosmos-faucet"]
|
||||||
CMD [""]
|
CMD [""]
|
||||||
|
@ -23,13 +23,13 @@ FAUCET_CREDIT_AMOUNT_COSM=10 \
|
|||||||
FAUCET_CREDIT_AMOUNT_STAKE=5 \
|
FAUCET_CREDIT_AMOUNT_STAKE=5 \
|
||||||
FAUCET_CONCURRENCY=3 \
|
FAUCET_CONCURRENCY=3 \
|
||||||
FAUCET_MNEMONIC="economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone" \
|
FAUCET_MNEMONIC="economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone" \
|
||||||
./bin/cosmwasm-faucet start "http://localhost:1317"
|
./bin/cosmos-faucet start "http://localhost:1317"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
Usage: cosmwasm-faucet action [arguments...]
|
Usage: cosmos-faucet action [arguments...]
|
||||||
|
|
||||||
Positional arguments per action are listed below. Arguments in parentheses are optional.
|
Positional arguments per action are listed below. Arguments in parentheses are optional.
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ The faucet uses standard HD paths for each blockchain, e.g.
|
|||||||
```
|
```
|
||||||
IOV m/44'/234'/a'
|
IOV m/44'/234'/a'
|
||||||
Lisk m/44'/134'/a'
|
Lisk m/44'/134'/a'
|
||||||
CosmWasm m/44'/118'/0'/0/a
|
Cosmos m/44'/118'/0'/0/a
|
||||||
```
|
```
|
||||||
|
|
||||||
where `a` is a 0-based index of the account. Account 0 is the token holder and
|
where `a` is a 0-based index of the account. Account 0 is the token holder and
|
||||||
@ -91,14 +91,14 @@ it up-to-date.
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd docs
|
cd docs
|
||||||
docker build -t local-cosmwasm-faucet:manual --file faucet.Dockerfile .
|
docker build -t local-cosmos-faucet:manual --file faucet.Dockerfile .
|
||||||
```
|
```
|
||||||
|
|
||||||
- Version and help
|
- Version and help
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run --read-only --rm local-cosmwasm-faucet:manual version
|
docker run --read-only --rm local-cosmos-faucet:manual version
|
||||||
docker run --read-only --rm local-cosmwasm-faucet:manual help
|
docker run --read-only --rm local-cosmos-faucet:manual help
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run faucet locally
|
- Run faucet locally
|
||||||
@ -110,7 +110,7 @@ DOCKER_HOST_IP=$(docker run --read-only --rm alpine ip route | awk 'NR==1 {print
|
|||||||
-e FAUCET_MNEMONIC \
|
-e FAUCET_MNEMONIC \
|
||||||
-e FAUCET_CONCURRENCY \
|
-e FAUCET_CONCURRENCY \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
local-cosmwasm-faucet:manual \
|
local-cosmos-faucet:manual \
|
||||||
start "http://$DOCKER_HOST_IP:1317"
|
start "http://$DOCKER_HOST_IP:1317"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2,10 +2,13 @@
|
|||||||
"name": "@cosmjs/faucet",
|
"name": "@cosmjs/faucet",
|
||||||
"version": "0.22.2",
|
"version": "0.22.2",
|
||||||
"description": "The faucet",
|
"description": "The faucet",
|
||||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
"contributors":[
|
||||||
|
"Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||||
|
"Simon Warta <webmaster128@users.noreply.github.com>"
|
||||||
|
],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"cosmwasm-faucet": "bin/cosmwasm-faucet"
|
"cosmos-faucet": "bin/cosmos-faucet"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"build/",
|
"build/",
|
||||||
@ -33,8 +36,8 @@
|
|||||||
"test-node": "node jasmine-testrunner.js",
|
"test-node": "node jasmine-testrunner.js",
|
||||||
"test": "yarn build-or-skip && yarn test-node",
|
"test": "yarn build-or-skip && yarn test-node",
|
||||||
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
|
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
|
||||||
"start-dev": "FAUCET_CREDIT_AMOUNT_COSM=10 FAUCET_CREDIT_AMOUNT_STAKE=5 FAUCET_CONCURRENCY=3 FAUCET_MNEMONIC=\"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone\" ./bin/cosmwasm-faucet start \"http://localhost:1317\"",
|
"start-dev": "FAUCET_CREDIT_AMOUNT_COSM=10 FAUCET_CREDIT_AMOUNT_STAKE=5 FAUCET_CONCURRENCY=3 FAUCET_MNEMONIC=\"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone\" ./bin/cosmos-faucet start \"http://localhost:1317\"",
|
||||||
"start-coralnet": "FAUCET_ADDRESS_PREFIX=coral FAUCET_TOKENS=\"SHELL=10^6ushell, REEF=10^6ureef\" FAUCET_CREDIT_AMOUNT_SHELL=10 FAUCET_CREDIT_AMOUNT_REEF=2 FAUCET_CONCURRENCY=3 FAUCET_MNEMONIC=\"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone\" ./bin/cosmwasm-faucet start \"https://lcd.coralnet.cosmwasm.com\""
|
"start-coralnet": "FAUCET_ADDRESS_PREFIX=coral FAUCET_TOKENS=\"SHELL=10^6ushell, REEF=10^6ureef\" FAUCET_CREDIT_AMOUNT_SHELL=10 FAUCET_CREDIT_AMOUNT_REEF=2 FAUCET_CONCURRENCY=3 FAUCET_MNEMONIC=\"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone\" ./bin/cosmos-faucet start \"https://lcd.coralnet.cosmwasm.com\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cosmjs/crypto": "^0.22.2",
|
"@cosmjs/crypto": "^0.22.2",
|
||||||
|
@ -3,7 +3,7 @@ import { Coin, parseCoins } from "@cosmjs/launchpad";
|
|||||||
import { TokenConfiguration } from "./tokenmanager";
|
import { TokenConfiguration } from "./tokenmanager";
|
||||||
import { parseBankTokens } from "./tokens";
|
import { parseBankTokens } from "./tokens";
|
||||||
|
|
||||||
export const binaryName = "cosmwasm-faucet";
|
export const binaryName = "cosmos-faucet";
|
||||||
export const memo: string | undefined = process.env.FAUCET_MEMO;
|
export const memo: string | undefined = process.env.FAUCET_MEMO;
|
||||||
export const fee: readonly Coin[] = parseCoins(process.env.FAUCET_FEE || "2000ucosm");
|
export const fee: readonly Coin[] = parseCoins(process.env.FAUCET_FEE || "2000ucosm");
|
||||||
export const gas: string = process.env.FAUCET_GAS || "80000";
|
export const gas: string = process.env.FAUCET_GAS || "80000";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user