module Network.Ipfs.Api.Bootstrap where
import Control.Monad.IO.Class (MonadIO)
import Data.Text (Text)
import Network.Ipfs.Api.Internal (_bootstrapAdd, _bootstrapList,
_bootstrapRM)
import Network.Ipfs.Api.Internal.Call (call)
import Network.Ipfs.Api.Types (BootstrapObj)
import Network.Ipfs.Client (IpfsT)
add :: MonadIO m => Text -> IpfsT m BootstrapObj
add = call . _bootstrapAdd . Just
list :: MonadIO m => IpfsT m BootstrapObj
list = call _bootstrapList
rm :: MonadIO m => Text -> IpfsT m BootstrapObj
rm = call . _bootstrapRM . Just