mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
feat(swap-controller): Add monero-seed RPC command (#511)
This commit is contained in:
parent
dac835f925
commit
6861f38f16
5 changed files with 37 additions and 2 deletions
|
|
@ -34,6 +34,12 @@ pub struct Swap {
|
|||
pub state: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct MoneroSeedResponse {
|
||||
pub seed: String,
|
||||
pub restore_height: u64,
|
||||
}
|
||||
|
||||
#[rpc(client, server)]
|
||||
pub trait AsbApi {
|
||||
#[method(name = "check_connection")]
|
||||
|
|
@ -44,6 +50,8 @@ pub trait AsbApi {
|
|||
async fn monero_balance(&self) -> Result<MoneroBalanceResponse, ErrorObjectOwned>;
|
||||
#[method(name = "monero_address")]
|
||||
async fn monero_address(&self) -> Result<MoneroAddressResponse, ErrorObjectOwned>;
|
||||
#[method(name = "monero_seed")]
|
||||
async fn monero_seed(&self) -> Result<MoneroSeedResponse, ErrorObjectOwned>;
|
||||
#[method(name = "multiaddresses")]
|
||||
async fn multiaddresses(&self) -> Result<MultiaddressesResponse, ErrorObjectOwned>;
|
||||
#[method(name = "active_connections")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue