https://github.com/pooltogether/defender-autotask-template
Template repository to kickstart an OpenZeppelin Defender autotask
https://github.com/pooltogether/defender-autotask-template
Last synced: 9 months ago
JSON representation
Template repository to kickstart an OpenZeppelin Defender autotask
- Host: GitHub
- URL: https://github.com/pooltogether/defender-autotask-template
- Owner: pooltogether
- License: gpl-3.0
- Created: 2021-11-02T23:31:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T19:33:39.000Z (almost 4 years ago)
- Last Synced: 2025-05-27T00:13:26.410Z (about 1 year ago)
- Language: TypeScript
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# defender-autotask-template
Template repository to kickstart an OpenZeppelin Defender autotask
## Development
### Env
We use [direnv](https://direnv.net) to manage environment variables. You'll likely need to install it.
Copy `.envrc.example` and write down the env variables needed to run this project.
```
cp .envrc.example .envrc
```
Once your env variables are setup, load them with:
```
direnv allow
```
### Autotask
Entrypoint for the autotask is located in `src/handler.ts`
#### Test
To test your autotask locally, run the command:
```
yarn start
```
#### Update
Once your task is properly working, you can push it to defender by running:
```
yarn update
```
### Code quality
[Prettier](https://prettier.io) is used to format TypeScript code. Use it by running:
```
yarn format
```