File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,8 @@ pub mod async_api {
630630 Ok ( wallet:: broadcast_spend_bundle ( peer, spend_bundle) . await ?)
631631 }
632632
633+ /// Utility function to validate that a coin is a $DIG CAT coin. Returns an instantiated Cat
634+ /// utility for the coin if it's a valid $DIG CAT
633635 pub async fn prove_dig_cat_coin (
634636 peer : & Peer ,
635637 coin : & Coin ,
Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ pub fn send_xch(
260260 Ok ( ctx. take ( ) )
261261}
262262
263+ /// Uses the specified $DIG to create a collateral coin for the provided DIG store ID (launcher ID)
263264pub fn create_dig_collateral_coin (
264265 dig_cats : Vec < Cat > ,
265266 collateral_amount : u64 ,
@@ -362,6 +363,8 @@ pub fn create_server_coin(
362363 } )
363364}
364365
366+ /// Spends the specified $DIG collateral coin to de-collateralize the store and return spendable
367+ /// $DIG to the wallet that created the collateral coin.
365368pub fn spend_dig_collateral_coin (
366369 synthetic_key : PublicKey ,
367370 fee_coins : Vec < Coin > ,
@@ -1339,6 +1342,8 @@ pub async fn look_up_possible_launchers(
13391342 } )
13401343}
13411344
1345+ /// Utility function to validate that a coin is a $DIG CAT coin. Returns an instantiated Cat
1346+ /// utility for the coin if it's a valid $DIG CAT
13421347pub async fn prove_dig_cat_coin (
13431348 peer : & Peer ,
13441349 coin : & Coin ,
You can’t perform that action at this time.
0 commit comments