GithubHelp home page GithubHelp logo

isabella232 / defender-autotask-prize-strategy-upkeep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pooltogether/defender-autotask-prize-strategy-upkeep

0.0 0.0 0.0 509 KB

JavaScript 100.00%

defender-autotask-prize-strategy-upkeep's Introduction

PoolTogether V3 Prize Strategy Upkeep Defender Autotask

This project implements an Autotask for OpenZeppelin Defender that rewards the PoolTogether V3 prize strategies automatically using the Upkeep contracts.

Setup

  1. Copy .envrc.example to .envrc
  2. Update .envrc with the appropriate variables
  3. Run direnv allow. See direnv
  4. Run yarn update to update the autotasks.

Usage

First build the project:

$ yarn build

This will create:

  • dist/rinkeby-build.js
  • dist/ropsten-build.js

Copy the contents of those files into their respectives Autotasks in OpenZeppelin Defender.

Running locally

You can use the CLI as well to test out the task:

$ yarn cli

There's a precooked command called rinkeby that uses env vars.

First setup the vars:

$ cp .envrc.example .envrc

Now allow direnv

$ direnv allow

Set the vars to what you need, then run:

$ yarn reward [network]

Where [network] is rinkeby or ropsten

defender-autotask-prize-strategy-upkeep's People

Contributors

aodhgan avatar asselstine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.