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

Makercli testing #275

Closed

Conversation

007harshmahajan
Copy link
Collaborator

very rough, need to have very large refactoring

@007harshmahajan 007harshmahajan self-assigned this Oct 10, 2024
@007harshmahajan 007harshmahajan added the tests Testing related improvements label Oct 10, 2024
@007harshmahajan 007harshmahajan changed the title Makercli testing [WIP][Not ready for review] Makercli testing Nov 2, 2024
@007harshmahajan 007harshmahajan marked this pull request as ready for review November 2, 2024 17:40
Copy link

@mojoX911 mojoX911 left a comment

Choose a reason for hiding this comment

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

Ack

Please make the tests pass and remove the directory function.

Comment on lines +85 to +93
fn execute_directory_cli(&self, args: &[&str]) -> Result<String, Box<dyn std::error::Error>> {
let output = Command::new("cargo")
.args(&["run", "--bin", "directory-cli", "--"])
.args(args)
.output()?;

Ok(String::from_utf8(output.stdout)?.trim().to_string())
}
}
Copy link

Choose a reason for hiding this comment

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

Remove this.

@mojoX911 mojoX911 linked an issue Nov 7, 2024 that may be closed by this pull request
mojoX911 and others added 14 commits November 10, 2024 02:12
 This includes:
  - using `makerd` rpc socket instead of `directoryd`.
  - give correct `RpcMsgResp` as per the rpc call.
  - fixes some typos and increase UX.
This includes:
 - use better delay logic while waiting for any funding tx to be in mempool and confirming the fidelity tx.
 - use `get_next_external_address` for recieving any funds instead of `fidelity` address.
 - sync the wallet inside the `create_fidelity` api and save in-memory data while shutting down the maker server.
 - show balance in `BTC` as  bitcoin-cli wallet defaults to `btc` amounts.
 - Fund maker while running maker server instead of shutting down the server in case of `Insufficient Funds` and again restarting
 it after giving enough amount.
@mojoX911
Copy link

Override by #311

@mojoX911 mojoX911 closed this Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Testing related improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Integration Test for Maker's RPC
6 participants