Skip to content

Commit 1e752a0

Browse files
committed
wip
1 parent 7049c28 commit 1e752a0

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
##? Deployment environment
2+
PINATA_JWT=
3+
NEXT_PUBLIC_IPFS_GATEWAY_URL=potlock.mypinata.cloud
24

35
# test | staging | production
46
NEXT_PUBLIC_ENV=test

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"errorLens.statusBarMessageType": "activeLine",
4545
"errorLens.warningGutterIconColor": "#ff942f",
4646
"cSpell.words": [
47+
"=createproject",
4748
"amichaeltest",
4849
"Aptos",
4950
"Attributify",
@@ -76,6 +77,7 @@
7677
"METAPOOL",
7778
"mpdao",
7879
"mpdaovoting",
80+
"mypinata",
7981
"NADABOT",
8082
"narwallets",
8183
"naxios",
@@ -100,7 +102,6 @@
100102
"SOURCECODE",
101103
"stnear",
102104
"svgr",
103-
"=createproject",
104105
"typecheck",
105106
"uidotdev",
106107
"unfollow",

src/common/services/pinata/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { pinataClient as pinata } from "./singleton.client";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { PinataSDK } from "pinata-web3";
2+
3+
export const pinataClient = new PinataSDK({
4+
pinataJwt: process.env.PINATA_JWT!,
5+
pinataGateway: "example-gateway.mypinata.cloud",
6+
});

0 commit comments

Comments
 (0)