Orbs Network
  • Overview
    • What is Orbs?
    • Layer 3 Protocol
    • Running on EVM and TON
    • Enhanced Execution
    • L3 for Advanced Trading
    • Network Diagram
    • White Papers and Spec
  • Orbs Lambda
    • What is Orbs Lambda?
    • Network Diagram
    • Example Use Cases
    • Step by Step Overview
      • Development Requirements
      • Select Unique ID
      • Project Template
      • index.js Implementation
        • Execution Environment
        • Allowed Packages
        • Supported Networks
        • Execution Triggers
        • Sending Transactions
      • Testing Locally
      • Deploying to Production
      • Analyzing Execution
  • Orbs VM
    • What is Orbs VM?
    • Network Diagram
    • Example Use Cases
    • Step by Step Overview
      • Development Requirements
      • Select Unique ID
      • Docker Image Implementation
        • Execution Environment
        • Working Directory
        • Entry Point
        • Health Check
        • status.json
      • Testing Locally
      • Deploying to Production
      • Analyzing Execution
  • Powered by Orbs
    • Liquidity Hub
      • Integration Spec
    • Perpetual Hub
    • dTWAP Protocol
      • Integration Spec
      • Network Diagram
      • dTWAP Tutorial
      • FAQ
    • dLIMIT Protocol
      • Integration Spec
      • dLIMIT Tutorial
      • FAQ
  • Community Projects
    • Notification Protocol
      • Integrate a New Project
      • Network Diagram
    • TON Access
      • Network Diagram
    • TON Vote
Powered by GitBook
On this page
  • How to integrate a new project
  • Example - low health notification for Aave
  • Documentation and more examples
  • Testing your integration
  • Execution environment
  1. Community Projects
  2. Notification Protocol

Integrate a New Project

PreviousNotification ProtocolNextNetwork Diagram

Last updated 4 months ago

How to integrate a new project

Integrating notifications for a new project requires implementing a small -compatible JavaScript class and creating a new to add the class to this repo.

Example - low health notification for Aave

This notification aims to protect Aave users from liquidation by notifying them when their position health factor drops below 1.1:

Documentation and more examples

Testing your integration

Before submitting the PR, you should test your integration manually. Let's assume that you're integrating a new lending project called "SuperLend". You've git cloned this repo locally, created your new integration in the new directory superlend and created the following new files:

/superlend/project.json /superlend/near-liquidation.js

To test your integration for the near liquidation notification do the following:

  1. Make sure you're in the repo root

  2. Run npm install

  3. Create /_test/dev-keys.json (see example in that directory) containing your API key for a web3 service like Infura or Alchemy

  4. Create /_test/test-superlend.js for your test, you can copy one of the other example test files

  5. Run node ./_test/test-superlend.js

Execution environment

Recent Community Contributions

Formal TypeScript type definitions for the class interface are available . Explore example integrations to different projects by browsing the different directories in this repo.

These JavaScript classes are constantly executed by protocol alert nodes in order to analyze new blocks of on-chain data for notifying protocol subscribers. Alert nodes are currently supported on the and executed by the public validators of the network.

here
Orbs Network
web3
PR