Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
docs: add deployement instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
politeWall committed Dec 6, 2023
1 parent 94d4f12 commit dc1eedd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,48 @@ To start using TradeShield, follow these steps:
4. Review the example implementations provided in the repository to understand the integration process.
5. Customize and deploy the TradeShield smart contracts according to your specific project requirements.

## Deployment Steps for Elys Network

1. Install Ignite CLI
Begin by installing the Ignite CLI tool by following the instructions provided in the [Ignite CLI documentation](https://docs.ignite.com/welcome/install).

2. Clone the Elys Repository
Clone the [Elys repository](https://github.com/elys-network/elys/releases) from GitHub and carefully follow the installation instructions provided.

3. Modify `config.yml`
Within the Elys repository, navigate to the root directory and locate the `config.yml` file. Modify the following lines:

- Change the `contract_addresses` value (line 38) to `["elys14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9s3fsthx"]`.
- Modify the `broker_address` (line 439) to `"elys14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9s3fsthx"`.

4. Start Ignite Node
Open a separate terminal within the Elys repository and run the command:

```sh
ignite chain serve -r
```

Optionally, use `-v` to display the node logs.

5. Download the Contract
Download the desired version of the contract from the [contract repository](https://github.com/elys-network/trade-shield-contract/releases).

6. Store Contract on Chain
Run the following command to store the contract on the chain:

```sh
elysd tx wasm store path/to/account_history_contract.wasm --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --gas=auto --gas-adjustment=1.3 -y -b=sync
```

Ensure to replace `path/to/account_history_contract.wasm` with the actual path to the downloaded contract.

7. Instantiate Contract
Execute the command below to instantiate the contract on the Elys network:

```sh
elysd tx wasm instantiate 1 '{}' --from=treasury --label "Contract" --chain-id=elystestnet-1 --gas=auto --gas-adjustment=1.3 -b=sync --keyring-backend=test --no-admin -y
```

## Contributing

We welcome contributions from the community to enhance TradeShield's functionality and usability. If you would like to contribute, please follow the guidelines outlined in the `CONTRIBUTING.md` file.
Expand Down

0 comments on commit dc1eedd

Please sign in to comment.