https://github.com/openzeppelin/defender-autotask-examples
Example snippets for Defender Autotasks
https://github.com/openzeppelin/defender-autotask-examples
Last synced: 10 months ago
JSON representation
Example snippets for Defender Autotasks
- Host: GitHub
- URL: https://github.com/openzeppelin/defender-autotask-examples
- Owner: OpenZeppelin
- Created: 2020-11-04T22:58:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-29T11:02:45.000Z (almost 5 years ago)
- Last Synced: 2023-04-09T18:37:56.739Z (about 3 years ago)
- Language: JavaScript
- Size: 411 KB
- Stars: 43
- Watchers: 16
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Defender Autotask Examples
This repository contains sample code snippets for [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks). Follow the instructions in each folder for more info on how to use them.
**Disclaimer**: The scripts in this repository have not been audited. Please file an issue if you stumble upon any mistake.
- The [`relay`](relay) folder contains detailed examples on how to use the `defender-relay-client` package from an Autotask, both standalone and integrated with `ethers.js`, including local development and unit testing.
- The [`typescript`](typescript) folder shows how to write an autotask in typescript, and use `tsc` to compile it to javascript that can be run within Defender.
- The [`rollup`](rollup) folder includes a more complex example, that generates a bundle that incorporates additional dependencies not available in the Autotasks runtime, and embeds contract ABIs in the generated output.
- The [`webpack`](webpack) folder is similar to the previous one, bundling dependencies and ABIs into a single file, but uses webpack as a code bundler instead of rollup.
- The [`keep3rs`](keep3rs) folder contains autotasks to execute jobs as a keeper within the [Keep3r Network](https://keep3r.network/), along with their respective unit tests.