Skip to content

Commit

Permalink
update vault traits
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jun 13, 2024
1 parent 0a11d36 commit 90b5058
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/traits/vault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use crate::{Result, RpcApi};
use defichain_rpc_json::{common::UTXO, vault::*};

pub trait VaultRPC: RpcApi {
fn close_vault(&self, close_vault: CloseVault, utxos: Option<UTXO>) -> Result<String>;
fn create_vault(&self, vault: CreateVault, utxos: Option<UTXO>) -> Result<String>;
Expand All @@ -16,7 +19,7 @@ pub trait VaultRPC: RpcApi {
pagination: Option<ListAuctionHistoryPagination>,
) -> Result<Vec<ListAuctionHistoryDetail>>;
fn list_auctions(&self) -> Result<Vec<VaultLiquidation>>;
fn list_vaults(&self) -> Result<Array>;
fn list_vaults(&self) -> Result<VaultActive>;
fn place_auction_bid(
&self,
place_auction_bid: PlaceAuctionBid,
Expand Down

0 comments on commit 90b5058

Please sign in to comment.