From 3d0c6ed347f857c2c640b3d1a5f9bdbd8e215a89 Mon Sep 17 00:00:00 2001 From: Taariq Levack Date: Wed, 8 Apr 2020 07:49:46 +0200 Subject: [PATCH] denom uscrt for enigma --- packages/cli/examples/local_faucet.ts | 4 ++-- packages/faucet/README.md | 2 +- packages/faucet/package.json | 2 +- packages/faucet/src/constants.ts | 20 +++----------------- 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/packages/cli/examples/local_faucet.ts b/packages/cli/examples/local_faucet.ts index 21199c9cd0..36c3a9faa2 100644 --- a/packages/cli/examples/local_faucet.ts +++ b/packages/cli/examples/local_faucet.ts @@ -4,7 +4,7 @@ const defaultFee: types.StdFee = { amount: [ { amount: "5000", - denom: "ucosm", + denom: "uscrt", }, ], gas: "890000", @@ -12,7 +12,7 @@ const defaultFee: types.StdFee = { const faucetMnemonic = "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone"; -const faucetAddress = "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6"; +const faucetAddress = "enigma1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6"; const pen = await Secp256k1Pen.fromMnemonic(faucetMnemonic); const client = new RestClient(defaultHttpUrl); diff --git a/packages/faucet/README.md b/packages/faucet/README.md index ec983ca5b0..b17aa926f2 100644 --- a/packages/faucet/README.md +++ b/packages/faucet/README.md @@ -19,7 +19,7 @@ yarn dev-start Advanced users that want to provide their custom config can start as follows: ``` -FAUCET_CREDIT_AMOUNT_COSM=10 \ +FAUCET_CREDIT_AMOUNT_SCRT=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" \ diff --git a/packages/faucet/package.json b/packages/faucet/package.json index ea49239fbc..02b1090b8f 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -24,7 +24,7 @@ "access": "public" }, "scripts": { - "dev-start": "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\"", + "dev-start": "FAUCET_CREDIT_AMOUNT_SCRT=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\"", "docs": "shx rm -rf docs && typedoc --options typedoc.js", "format": "prettier --write --loglevel warn \"./src/**/*.ts\"", "lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"", diff --git a/packages/faucet/src/constants.ts b/packages/faucet/src/constants.ts index 510c5b9801..d712925fbc 100644 --- a/packages/faucet/src/constants.ts +++ b/packages/faucet/src/constants.ts @@ -5,7 +5,7 @@ export const concurrency: number = Number.parseInt(process.env.FAUCET_CONCURRENC export const port: number = Number.parseInt(process.env.FAUCET_PORT || "", 10) || 8000; export const mnemonic: string | undefined = process.env.FAUCET_MNEMONIC; -export const addressPrefix = "cosmos"; +export const addressPrefix = "enigma"; /** For the local development chain */ export const developmentTokenConfig: TokenConfiguration = { @@ -13,22 +13,8 @@ export const developmentTokenConfig: TokenConfiguration = { { fractionalDigits: 6, name: "Fee Token", - ticker: "COSM", - denom: "ucosm", - }, - { - fractionalDigits: 6, - name: "Staking Token", - ticker: "STAKE", - denom: "ustake", - }, - ], - erc20Tokens: [ - { - contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd", - fractionalDigits: 0, - ticker: "ISA", - name: "Isa Token", + ticker: "SCRT", + denom: "uscrt", }, ], };