mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
feat(controller, orchestratror): Add bitcoin-seed command
This commit is contained in:
parent
0df8ea00d2
commit
ee71024466
7 changed files with 37 additions and 5 deletions
|
|
@ -8,6 +8,11 @@ pub struct BitcoinBalanceResponse {
|
|||
pub balance: bitcoin::Amount,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct BitcoinSeedResponse {
|
||||
pub descriptor: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct MoneroBalanceResponse {
|
||||
pub balance: u64,
|
||||
|
|
@ -46,6 +51,8 @@ pub trait AsbApi {
|
|||
async fn check_connection(&self) -> Result<(), ErrorObjectOwned>;
|
||||
#[method(name = "bitcoin_balance")]
|
||||
async fn bitcoin_balance(&self) -> Result<BitcoinBalanceResponse, ErrorObjectOwned>;
|
||||
#[method(name = "bitcoin_seed")]
|
||||
async fn bitcoin_seed(&self) -> Result<BitcoinSeedResponse, ErrorObjectOwned>;
|
||||
#[method(name = "monero_balance")]
|
||||
async fn monero_balance(&self) -> Result<MoneroBalanceResponse, ErrorObjectOwned>;
|
||||
#[method(name = "monero_address")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue