remove extra files update readme

This commit is contained in:
samepant
2021-03-12 22:03:36 -05:00
parent e23aeca8c7
commit a697bd8e55
4 changed files with 3 additions and 47 deletions
+3 -5
View File
@@ -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.
-31
View File
@@ -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),
};
}
};
-10
View File
@@ -1,10 +0,0 @@
module.exports = {
webpack: (config) => {
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty'
}
return config
}
}
-1
View File
@@ -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);