fp/packages/next/app/lib/ipfs.ts

8 lines
255 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
export function buildIpfsUrl (urlFragment: string): string {
return `https://ipfs.io/ipfs/${urlFragment}`
}
export function buildPatronIpfsUrl (cid: string, token: string): string {
return `https://gw.futureporn.net/ipfs/${cid}?token=${token}`
}