Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Oct 18, 2024
1 parent af93ab3 commit b30671e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
21 changes: 16 additions & 5 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -188,11 +204,6 @@ environment variable:
export CONTRACT_ADDRESS=<CONTRACT_ADDRESS>
```

You must also set the admin secret key:

```bash
export ADMIN_SK=ffc4d3c9119e9e8263de08c0f6e2368ac5c2dacecfeb393f6813da7d178873d2
```

3. Perform the handshake:
```bash
Expand Down
16 changes: 14 additions & 2 deletions docs/neutrond_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ We also have to give the chain a chain ID. We'll use `testing`.
Run

```bash
neutrond init <your name> --chain-id testing
neutrond init <your name> --chain-id testing --default-denom untrn
```

to initialize the local neutrond folder.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/transfers/quartz.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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"
enclave_rpc_addr = "http://127.0.0.1"
enclave_rpc_port = 11090
trusted_hash = ""
trusted_height = 0
release = true
release = true

0 comments on commit b30671e

Please sign in to comment.