From a697bd8e55807249396f42b246cd09f5168ff62e Mon Sep 17 00:00:00 2001 From: samepant Date: Fri, 12 Mar 2021 22:03:36 -0500 Subject: [PATCH] remove extra files update readme --- README.md | 8 +++----- lambda/create-multisig.js | 31 ------------------------------- next.config.js | 10 ---------- pages/api/multisig/index.js | 1 - 4 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 lambda/create-multisig.js delete mode 100644 next.config.js diff --git a/README.md b/README.md index e2f00f8..73648dc 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Cosmoshub Legacy Multisig -### 🚧🚧🚧🚧🚧 UNDER CONSTRUCTION 🚧🚧🚧🚧🚧🚧 +### 🚧🚧🚧🚧🚧 In Active Development 🚧🚧🚧🚧🚧🚧 ## Reason for Being -This app allows for legacy multisig users to create, sign and broadcast transactions on the stargate enabled cosmos hub chain. It's built with Cosmjs, Next.js, FaunaDB and Netlify. +This app allows for legacy multisig users to create, sign and broadcast transactions on the stargate enabled cosmos hub chain. It's built with Cosmjs, Next.js, FaunaDB and Vercel. -[The app can be tested out here](https://cosmos-legacy-multisig.netlify.app/). (_*Note:*_ Only the UI and datastore are functional, waiting on some Cosmjs updates to handle multisig creation and signing) +[The app can be tested out here](https://cosmoshub-legacy-multisig.vercel.app/). (_*Note:*_ Only the UI and datastore are functional, waiting on some Cosmjs updates to handle multisig creation and signing) ## Dev Setup @@ -19,5 +19,3 @@ Clone the repo, then run: npm install npm run dev ``` - -Since this app uses Netlify based Lambda functions to interact with FaunaDB, when run locally it uses a proxy server locally (housed in `server.js`) to emulate Netlify's function endpoints. diff --git a/lambda/create-multisig.js b/lambda/create-multisig.js deleted file mode 100644 index f283aca..0000000 --- a/lambda/create-multisig.js +++ /dev/null @@ -1,31 +0,0 @@ -import faunadb from "faunadb"; /* Import faunaDB sdk */ - -/* configure faunaDB Client with our secret */ -const q = faunadb.query; -const client = new faunadb.Client({ - secret: process.env.FAUNADB_SECRET, -}); - -exports.handler = async (event, context, callback) => { - const data = JSON.parse(event.body); - console.log("Function `createMultisig` invoked", data); - const multisig = { - data: data, - }; - try { - const faunaRes = await client.query( - q.Create(q.Collection("Multisig"), multisig) - ); - console.log("success", faunaRes); - return { - statusCode: 200, - body: JSON.stringify(faunaRes), - }; - } catch (error) { - console.log("error", error); - return { - statusCode: 400, - body: JSON.stringify(error), - }; - } -}; diff --git a/next.config.js b/next.config.js deleted file mode 100644 index ab34276..0000000 --- a/next.config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - webpack: (config) => { - // Fixes npm packages that depend on `fs` module - config.node = { - fs: 'empty' - } - - return config - } -} diff --git a/pages/api/multisig/index.js b/pages/api/multisig/index.js index 2a07acc..3d738f8 100644 --- a/pages/api/multisig/index.js +++ b/pages/api/multisig/index.js @@ -8,7 +8,6 @@ export default async function (req, res) { const client = new faunadb.Client({ secret: process.env.FAUNADB_SECRET, }); - console.log(req.body); try { const data = req.body; console.log("Function `createMultisig` invoked", data);