Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/v4-optimism-prizeflush-autotask
https://github.com/pooltogether/v4-optimism-prizeflush-autotask
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/v4-optimism-prizeflush-autotask
- Owner: pooltogether
- License: gpl-3.0
- Created: 2022-08-08T16:23:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T19:34:29.000Z (over 2 years ago)
- Last Synced: 2024-04-23T21:42:42.045Z (9 months ago)
- Language: TypeScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- 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`
#### ID
```
export AUTOTASK_ID=1bd7d892-abde-4f66-82f2-f785aaa67117
```#### 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
```