Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icq relayer keyring configuration added #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oldremez
Copy link
Collaborator

- `RELAYER_NEUTRON_CHAIN_OUTPUT_FORMAT` — Neutron chain provider output format;
- `RELAYER_NEUTRON_CHAIN_SIGN_MODE_STR` — described [here](https://docs.cosmos.network/master/core/transactions.html#signing-transactions), also consider use short variation, e.g. `direct`.

#### Keyring settings

- `RELAYER_NEUTRON_CHAIN_KEYRING_BACKEND` — the type of backend (more about keyring types [here](https://docs.cosmos.network/master/run-node/keyring.html#the-kwallet-backend));
Copy link
Contributor

@sotnikov-s sotnikov-s Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think we need the NEUTRON_CHAIN part in these variable names? I'd simplify to RELAYER_KEYRING_BACKEND and so on:

  1. we don't have corresponding values for the target chain, so no need to specify it. I mean, it should be obvious that we have keyring-related values only at the neutron's side, whereas such NEUTRON_CHAIN parts in names would only confuse the user like "oh, here's neutron's side keyring... is there a not-neutron's side keyring...?";
  2. these are not the neutron chain specific values, these are relayer's values.

given the above, I'd remove the NEUTRON_CHAIN part from all keyring related variables and also moved the gas-related values to this, say, "group":

RELAYER_NEUTRON_CHAIN_RPC_ADDR
RELAYER_NEUTRON_CHAIN_REST_ADDR
RELAYER_NEUTRON_CHAIN_HOME_DIR
RELAYER_NEUTRON_CHAIN_TIMEOUT
RELAYER_NEUTRON_CHAIN_CONNECTION_ID
RELAYER_NEUTRON_CHAIN_OUTPUT_FORMAT
RELAYER_NEUTRON_CHAIN_DEBUG

RELAYER_KEYRING_BACKEND
RELAYER_KEYRING_PASSWORD
RELAYER_SIGN_KEY_NAME
RELAYER_SIGN_KEY_SEED
RELAYER_SIGN_KEY_HD_PATH
RELAYER_SIGN_MODE_STR
RELAYER_GAS_PRICES
RELAYER_GAS_LIMIT
RELAYER_GAS_ADJUSTMENT

RELAYER_TARGET_CHAIN_RPC_ADDR
RELAYER_TARGET_CHAIN_ACCOUNT_PREFIX
RELAYER_TARGET_CHAIN_VALIDATOR_ACCOUNT_PREFIX
RELAYER_TARGET_CHAIN_TIMEOUT
RELAYER_TARGET_CHAIN_DEBUG
RELAYER_TARGET_CHAIN_OUTPUT_FORMAT

RELAYER_REGISTRY_ADDRESSES

what do you think?


```
...
RELAYER_NEUTRON_CHAIN_KEYRING_BACKEND=test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here should've been RELAYER_NEUTRON_CHAIN_KEYRING_BACKEND=memory I presume

@oldremez oldremez marked this pull request as draft December 14, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants