Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
PrathyushaLakkireddy committed Sep 25, 2024
2 parents 91ca44f + 67a3a53 commit 0a30a60
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 0 additions & 2 deletions chainclient/config.yaml

This file was deleted.

16 changes: 12 additions & 4 deletions integration_docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,27 @@ The default configuration file for the CADA module can be found [here](./config.

## Validator Key and Keyring Type Setup

To set up the cada, users must configure their `validatorKey` and `keyringType` in the [config.yaml](/chainclient/config.yaml) file:
To configure the CADA module, users are required to export the validatorKey and keyringType environment variables.

- **validatorKey**: This is the name of the key associated with the validator node. Replace `"alice"` with your specific validator's key.
**ValidatorKey**: Specifies the name of the key associated with the validator node.

- **keyringBackend**: Defines where the key is stored. Common options are `"test"` for testing or `"os"` for using the OS keyring in production.
**KeyringBackend**: Specifies where the key is stored. Common options include "test" for testing purposes or "os" for using the operating system’s keyring in production. By default, the keyring-backend is set to "test".

Export the ValidatorKey and KeyringBackend by running the following commands:

```sh
export VALIDATOR_KEY="alice"
export KEYRING_BACKEND="os"
```
Ensure that these values are correctly configured before proceeding with further steps.

## Integration with SDK-Based Applications

To integrate CADA into your Cosmos SDK-based application, follow these steps:

- Ensure you are using the latest version of Go for full compatibility.
- Add the CADA module to your application's app.go file.
- Modify the [config.yaml](/chainclient/config.yaml) file with validator and keyring setup.
- Export the values of the VALIDATOR_KEY and KEYRING_BACKEND environment variables.
- Modify the [configuration file](./config.md) to set how data is posted to the Avail network.

For a detailed walkthrough,refer to this [integration guide](./integration.md).
Expand Down
5 changes: 2 additions & 3 deletions relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ type Relayer struct {
AvailDAClient avail.DA
clientCtx client.Context

availChainID string
AvailConfig types.AvailConfiguration
NodeDir string
AvailConfig types.AvailConfiguration
NodeDir string
}

// NewRelayer creates a new Relayer instance
Expand Down

0 comments on commit 0a30a60

Please sign in to comment.