From 2ec4eb7c66e8e19498872a93eaf782e660dc7c8c Mon Sep 17 00:00:00 2001 From: Gizmotronn Date: Sun, 1 Jan 2023 13:36:43 +1100 Subject: [PATCH] =?UTF-8?q?=E2=98=84=EF=B8=8F=F0=9F=8C=8A=20=E2=86=9D=20Ad?= =?UTF-8?q?ding=20Write=20options=20to=20GraphQL=20function=20(lens)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/signal-k/polygon/issues/24 Hex error issues (toHexString...~~). Will rebuild this frontend interaction in TS. --- Server/frontend/components/Navbar.js | 6 +- Server/frontend/components/PostContent.js | 10 + Server/frontend/components/PostFeed.jsx | 22 +- Server/frontend/components/WritePost.js | 130 ++ .../frontend/constants/contractConstants.js | 38 + Server/frontend/constants/lensConstants.js | 336 ++-- Server/frontend/context/lensContext.js | 164 +- Server/frontend/contracts/lensABI.json | 1442 +++++++++++++++++ Server/frontend/package.json | 3 + Server/frontend/pages/lens/index.jsx | 22 +- .../pages/lens/posts/[publicationId].jsx | 42 + Server/frontend/pages/lens/write-post.jsx | 5 + Server/frontend/yarn.lock | 516 +++++- package.json | 3 +- yarn.lock | 525 +++++- 15 files changed, 2992 insertions(+), 272 deletions(-) create mode 100644 Server/frontend/components/PostContent.js create mode 100644 Server/frontend/components/WritePost.js create mode 100644 Server/frontend/constants/contractConstants.js create mode 100644 Server/frontend/contracts/lensABI.json create mode 100644 Server/frontend/pages/lens/posts/[publicationId].jsx create mode 100644 Server/frontend/pages/lens/write-post.jsx diff --git a/Server/frontend/components/Navbar.js b/Server/frontend/components/Navbar.js index 8ee7f9c9..d38dd467 100644 --- a/Server/frontend/components/Navbar.js +++ b/Server/frontend/components/Navbar.js @@ -1,11 +1,11 @@ import { ConnectButton } from "web3uikit"; - +import Link from "next/link"; export default function Navbar() { return (