Skip to content

Commit

Permalink
docs: move to root
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongsu-hong committed Feb 29, 2024
1 parent 5896800 commit 6a600c5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
51 changes: 26 additions & 25 deletions example/README.md → DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,31 @@ deploy:

hooks:
default:
type: mock

required:
type: aggregate
# if you keep it as "<signer>", the script will identify this as deployer address
owner: <signer>
hooks:
- type: merkle

- type: igp
owner: <signer>
configs:
11155111:
exchange_rate: 3000
gas_price: 5000
default_gas_usage: 30000

required:
type: aggregate
owner: <signer>
hooks:
- type: pausable
owner: <signer>
paused: false

- type: fee
owner: <signer>
fee:
# if you didn't set the denom, it will be set as gas denom of network config
denom: uosmo
amount: 1

- type: igp
owner: <signer>
configs:
11155111:
exchange_rate: 3000
gas_price: 5000
default_gas_usage: 30000
```

## 2. Upload Contract Codes
Expand Down Expand Up @@ -135,35 +133,38 @@ Replace every `{sepolia_private_key}` and `{osmosis_private_key}` from files bel

- Sepolia Testnet (`{sepolia_private_key}`)

* [./hyperlane/relayer.json](./hyperlane/relayer.json)
* [./hyperlane/validator.sepolia.json](./hyperlane/validator.sepolia.json)
- [./example/hyperlane/relayer.json](./example/hyperlane/relayer.json)
- [./example/hyperlane/validator.sepolia.json](./example/hyperlane/validator.sepolia.json)

- Osmosis Testnet (`{osmosis_private_key}`)

* [./hyperlane/relayer.json](./hyperlane/relayer.json)
* [./hyperlane/validator.osmotest5.json](./hyperlane/validator.osmotest5.json)
- [./example/hyperlane/relayer.json](./example/hyperlane/relayer.json)
- [./example/hyperlane/validator.osmotest5.json](./example/hyperlane/validator.osmotest5.json)

And run with below command.

```bash
# Merge osmo-test-5.config.json and agent-config.docker.json
$ OSMOSIS_TESTNET_AGENT_CONFIG=$(cat ../context/osmo-test-5.config.json) && \
OSMOSIS_TESTNET_AGENT_CONFIG=$(cat ./context/osmo-test-5.config.json) && \
OSMOSIS_TESTNET_AGENT_CONFIG_NAME=$(echo $OSMOSIS_TESTNET_AGENT_CONFIG | jq -r '.name') && \
cat ./hyperlane/agent-config.docker.json \
cat ./example/hyperlane/agent-config.docker.json \
| jq ".chains.$OSMOSIS_TESTNET_AGENT_CONFIG_NAME=$(echo $OSMOSIS_TESTNET_AGENT_CONFIG)" > merge.tmp && \
mv merge.tmp ./hyperlane/agent-config.docker.json
mv merge.tmp ./example/hyperlane/agent-config.docker.json

# Change workdir to example
cd example

# Run Hyperlane with docker-compose
$ docker compose up
docker compose up

# Run this if you want to run in background
$ docker compose up -d
docker compose up -d

# Run this if you want to see logs
$ docker compose logs -f
docker compose logs -f

# Run this if you want to stop
$ docker compose down
docker compose down
```

## 5. Deploy Test contracts on Sepolia
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Prerequisites](#prerequisites)
- [How to build](#how-to-build)
- [How to test](#how-to-test)
- [How to deploy](#how-to-deploy)

## Architecture

Expand Down Expand Up @@ -37,11 +38,7 @@ cargo test --workspace --exclude hpl-tests
cargo llvm-cov --workspace --exclude hpl-tests
```

## How to deploy

[Go to README of ./example](./example/README.md)

[Go to README of ./script](./script/README.md)
## [How to deploy](./DEPLOYMENT.md)

## Project Structure

Expand Down

0 comments on commit 6a600c5

Please sign in to comment.