Skip to content

Commit 6a2d7a2

Browse files
authored
Merge pull request #30 from DIG-Network/2.0.0
2.0.0
2 parents 0b33be8 + e5bec2f commit 6a2d7a2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

src/wallet.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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)
263264
pub 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.
365368
pub 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
13421347
pub async fn prove_dig_cat_coin(
13431348
peer: &Peer,
13441349
coin: &Coin,

0 commit comments

Comments
 (0)