safe-co-signer
is a project designed to provide a secure and efficient way to manage co-signing operations for Safe{Wallet}.
This repository includes basic Whitelist functionality and necessary configurations to get started quickly.
Supposed to run as a cron job task or cli tool.
- Secure co-signing operations
- Easy to configure and extend
- Lightweight and fast
- Node.js (version 14 or higher)
- pnpm (version 6 or higher)
-
Clone the repository:
git clone https://github.com/akme/safe-co-signer.git cd safe-co-signer
-
Install dependencies:
pnpm install
-
Copy the example environment file and configure it:
cp .env.example .env.local
-
Update
.env.local
with your configuration.
To start the application, run:
node --no-deprecation --env-file=.env.local index.js
To prettify logs, add:
| npx pino-pretty
To run the application as a cron job, follow these steps:
-
Open your crontab file for editing:
crontab -e
-
Add a new cron job entry. For example, to run the application every 10 minutes, add the following line:
*/10 * * * * cd /path/to/your/project && node --no-deprecation --env-file=.env.local index.js 2>&1 >> /path/to/your/project/actions.log
Replace
/path/to/your/project
with the actual path to your project directory. -
Save and close the crontab file.