module Network.Ipfs.Api.Bitswap where
import Control.Monad.IO.Class (MonadIO (..))
import Data.Text (Text)
import Network.Ipfs.Api.Internal (_bitswapLedger,
_bitswapReprovide,
_bitswapStat, _bitswapWL)
import Network.Ipfs.Api.Internal.Call (call)
import Network.Ipfs.Api.Types (BitswapLedgerObj,
BitswapStatObj, BitswapWLObj,
ReprovideReturnType)
import Network.Ipfs.Client (IpfsT)
stat :: MonadIO m => IpfsT m BitswapStatObj
stat = call _bitswapStat
wl :: MonadIO m => IpfsT m BitswapWLObj
wl = call _bitswapWL
ledger :: MonadIO m => Text -> IpfsT m BitswapLedgerObj
ledger = call . _bitswapLedger
reprovide :: MonadIO m => IpfsT m ReprovideReturnType
reprovide = call _bitswapReprovide