-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
c98855a
to
b89abb2
Compare
|
||
-- | Given a CID @"abc...def"@ it returns a IPLD link JSON object | ||
-- @{"/": "abc...def"}@. | ||
ipldLink :: CID -> Aeson.Value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be nice to have in oscoin/ipfs somewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed. There is a couple of things we should backport, like the response types.
- multibase | ||
- multihash-cryptonite | ||
|
||
flags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang. bump monadic-xyz/ipfs#7
deriving (Show, Eq) | ||
|
||
instance Exception IpfsException where | ||
displayException (IpfsException msg) = "ipfs: " <> toS msg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL displayException
is a thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* Add a `MachineBackend` implementation based on IPFS * Extend `test/machine-backends.rad` to test IPFS backend against real IPFS daemon * Add commands `rad-ipfs`, `rad-ipfs-daemon`, and `rad-ipfs-machine-create` Follow-up * Replace `Wreq` with `servant-client` and `ipfs-api` from https://github.com/oscoin/ipfs/tree/master/ipfs-api
MachineBackend
implementation based on IPFStest/machine-backends.rad
to test IPFS backend against real IPFS daemonrad-ipfs
,rad-ipfs-daemon
, andrad-ipfs-machine-create
Follow-up
Wreq
withservant-client
andipfs-api
from https://github.com/oscoin/ipfs/tree/master/ipfs-apiipfs-api