Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create payment api #1

Merged
merged 11 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PORT=3002
CORS_REGEX=http[s]?:\/\/.*\.circles\.garden.*
FUNDER_ACCOUNT_PRIVATE_KEY=
GELATO_RELAY_API_KEY=
RPC_URL=https://rpc.chiadochain.net
CHAIN_ID=10200
FASTIFY_LOG_LEVEL=info
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"env": {
"es6": true,
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": "latest"
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"rules": {
"no-console": "error"
"no-console": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged --quiet
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# circles-payment-api

Proxy API for funding transactions with Gelato 1Balance and deploying safes with a funder account

## Local Development

### Installation

```bash
npm install
```

### Set up .env file

```bash
cp .env.example .env
```

Required env variables to run:

- `FUNDER_ACCOUNT_PRIVATE_KEY`
- `GELATO_RELAY_API_KEY`
- `RPC_URL`
- `CHAIN_ID`

### Run

```bash
$ npm start
```

This command starts a local development server and serves a Swagger UI at the `/docs` endpoint for documentation and example usage.
Loading