Socket
Socket
Sign inDemoInstall

@oasisdex/automation

Package Overview
Dependencies
Maintainers
9
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oasisdex/automation

The set of utilities for Oasis automation


Version published
Weekly downloads
26
decreased by-82.78%
Maintainers
9
Weekly downloads
 
Created
Source

automation

The package provides a set of utility functions to handle interactions with Automation smart contracts.

Automation V2 triggers start with id = 101.

Usage

Encoding


import { encodeTriggerData } from '@oasisdex/automation'

const network = 1; // mainnet
const closeCommandAddress = '0x...';

const encodedData = encodeTriggerData(closeCommandAddress, network, [cdpId, triggerType, ...params]);

Decoding


import { decodeTriggerData } from '@oasisdex/automation'

const network = 1; // mainnet
const closeCommandAddress = '0x...';
const { triggerData } = triggerInfo

const [ cdpId, triggerType, ...params ] = decodeTriggerData(closeCommandAddress, network, triggerData);

FAQs

Package last updated on 14 Feb 2024

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