Refactoring of the CLI #482
Replies: 2 comments
-
Some ideas that have been discussed: Enhancements
From @ilblackdragon in #338 (comment)
It requires some investigation to figure out what is the best way for key management in ethereum. Instead of managing keys directly in the CLI we can have a Provider that allows us to sign messages, the key doesn't necessarily be in memory, it can be in web wallet, hardware wallet, etc... With this done we should move the secret keys out of the config file.
In this case we can keep
I propose we start using https://hardhat.org/ for this, since we are migrating our tests involving ethereum contracts to hardhat. New features
|
Beta Was this translation helpful? Give feedback.
-
Re-organizationI propose to move all command of the CLI related to the token-connector from this repository to the rainbow-token-connector repository, so we don't need to maintain code in this repository related to it. Commands related to token-connector are those that deploy the connector contract to both networks, and those that execute transactions between networks (notice that the latter are made for testing only). However we still want to have access to the token connector commands (and probably have it as a dependency)
How to do itTo avoid duplication of the code on both repositories (thinking about configuration storage mostly) I think we should split current CLI in three components:
Important: Before making this changes let's discuss the role of rainbow-bridge-client repository. MotivationWhile updating the token-connector several changes to the interface of the contract were done, and it involves updating the way off-chain tools are interacting with these contracts. Ideally those tools lives in the same repository so making changes and tests is more straight forward. |
Beta Was this translation helpful? Give feedback.
-
Some relevant issues from the past:
Beta Was this translation helpful? Give feedback.
All reactions