UNPKG
namillum
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.1
1.0.0
Bubble Protocol SDK
github.com/ValentinaKohler/namillum
ValentinaKohler/namillum
namillum
/
products
/
governance-snapshot
/
src
/
helpers
/
ipfs.ts
11 lines
(8 loc)
•
251 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
class
Client
{
get
(
ipfsHash, protocolType =
'ipfs'
) {
const
url =
`https://
${process.env.VUE_APP_IPFS_NODE}
/
${protocolType}
/
${ipfsHash}
`
;
return
fetch
(url).
then
(
res
=>
res.
json
()); } }
const
client =
new
Client
();
export
default
client;