diff --git a/docs/getting_started.md b/docs/getting_started.md index 11b47a1d..9b576569 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -139,6 +139,22 @@ We can deploy the enclave and contract all at once using the `quartz dev` convenience command (like in the [quick start](#quick-start)), but here we'll show the individual commands. +### Configure Key + +At the moment, we have to do an insecure operation to export the private key to +be used for signing transactions so it can be used by the enclave. This is a +temporary hack: + +```bash +export ADMIN_SK=$(yes | neutrond keys export admin --unsafe --unarmored-hex) +``` + +Make sure the key is set: + +```bash +echo $ADMIN_SK +``` + ### Enclave First we build and run the enclave code. @@ -188,11 +204,6 @@ environment variable: export CONTRACT_ADDRESS= ``` -You must also set the admin secret key: - -```bash -export ADMIN_SK=ffc4d3c9119e9e8263de08c0f6e2368ac5c2dacecfeb393f6813da7d178873d2 -``` 3. Perform the handshake: ```bash diff --git a/docs/neutrond_setup.md b/docs/neutrond_setup.md index c2536788..2ccf63e2 100644 --- a/docs/neutrond_setup.md +++ b/docs/neutrond_setup.md @@ -45,7 +45,7 @@ We also have to give the chain a chain ID. We'll use `testing`. Run ```bash -neutrond init --chain-id testing +neutrond init --chain-id testing --default-denom untrn ``` to initialize the local neutrond folder. @@ -70,7 +70,7 @@ Now create the genesis file. ```bash # fund the account in genesis -neutrond add-genesis-account admin 100000000000ucosm +neutrond add-genesis-account admin 100000000000untrn # configure the ICS setup (neutrond expects to run as a consumer chain) neutrond add-consumer-section @@ -107,6 +107,18 @@ In `~/.neutrond/config/app.toml`, set the min gas price: minimum-gas-prices = "0.0025untrn" ``` +And in `~/.neutrond/config/genesis.json`, set the feemarket min gas price: + +```json + "min_base_gas_price": "0.002500000000000000", +``` + +and + +```json + "base_gas_price": "0.002500000000000000", +``` + Now, finally: ## neutrond start diff --git a/examples/transfers/quartz.toml b/examples/transfers/quartz.toml index 3be29cae..062f6c10 100644 --- a/examples/transfers/quartz.toml +++ b/examples/transfers/quartz.toml @@ -1,6 +1,6 @@ mock_sgx = true tx_sender = "admin" -chain_id = "test-1" +chain_id = "testing" node_url = "http://127.0.0.1:26657" ws_url = "ws://127.0.0.1:26657/websocket" grpc_url = "http://127.0.0.1:9090" @@ -8,4 +8,4 @@ enclave_rpc_addr = "http://127.0.0.1" enclave_rpc_port = 11090 trusted_hash = "" trusted_height = 0 -release = true \ No newline at end of file +release = true