Crate dig_store_coin

Crate dig_store_coin 

Source

Structs§

AllMirrorCoins
CheckCollateralizationParams
CollateralizeStoreParams
CreateMirrorParams
GetStoreMirrorCoinsParams
MintParams
ReclaimCollateralParams
UpdateParams

Constants§

DIG_MOJO_COLLATERAL_PER_MB
0.005 $DIG per MB. 1000 mojos per $DIG

Functions§

calc_required_collateral
check_store_collateralization
fetches and returns the highest value valid collateral coin, if it exists. returns None if there are no coins hinted for the store ID, or if no hinted coins have sufficient value
collateralize_store
create_store_mirror
Create a mirror coin for a store with memo URLs. Requires the same $DIG collateral as the store size.
get_mirror_coins
mint
reclaim_mirror_coin
Convenience alias for reclaiming a mirror coin; identical to reclaim_store_collateral
reclaim_store_collateral
spend a collateral coin to remove store collateral or mirror coin and return spendable $DIG to wallet
update