New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@generationsoftware/pt-v5-autotasks-library

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@generationsoftware/pt-v5-autotasks-library

Library of shared utils to run PoolTogether v5 hyperstructure autotasks.

  • 0.0.1-beta.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
increased by28.19%
Maintainers
2
Weekly downloads
 
Created
Source

@generationsoftware/pt-v5-autotasks-library

PoolTogether hyperstructure (v5) supporting functions for the bots.

Install

yarn add @generationsoftware/pt-v5-autotasks-library

or

npm install @generationsoftware/pt-v5-autotasks-library

Usage

You can use this library in your own code, for instance if you would rather not use OpenZeppelin Defender for your automated/cron-based bots. Here's an example:

import { downloadContractsBlob } from "@generationsoftware/pt-v5-utils-js";
import { executeClaimerProfitablePrizeTxs } from "@generationsoftware/pt-v5-autotasks-library";

interface Params {
  contracts: ContractsBlob;
  readProvider: Provider;
  config: ExecuteClaimerProfitablePrizeTxsParams;
}

async function main() {
  const contracts = await downloadContractsBlob(chainId);
  const params: Params = { contracts, readProvider, config };
  executeClaimerProfitablePrizeTxs(params);
}

main();

Where readProvider is any ethers Provider, and params is of the ExecuteClaimerProfitablePrizeTxsParams type. You can then pass the list of populated transactions populatedTxs to whichever relayer/write provider you would like to send transactions with.

FAQs

Package last updated on 04 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc