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
  • web3
  • ethereum-multicall
  • bn.js
  • bignumber.js
  • node-fetch
  • axios
  • @orbs-network/*
  1. Orbs Lambda
  2. Step by Step Overview
  3. index.js Implementation

Allowed Packages

PreviousExecution EnvironmentNextSupported Networks

Last updated 4 months ago

A lambda may require specific that are present in this list. To request any additional NPM packages to be whitelisted, please open an issue on the main .

You can see the exact versions of all packages by inspecting in the main Orbs Lambda repo.

web3

Package:

Provides basic interaction with EVM blockchains and smart contracts through simple JavaScript API. Note that most trigger event handlers receive an initialized web3 object that is ready for mainnet interaction.

const Web3 = require("web3");

ethereum-multicall

Package:

Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result. This reduces the number of separate JSON RPC requests that need to be sent over the network and provides the guarantee that all values returned are from the same block.

const { Multicall } = require("ethereum-multicall");

bn.js

Package:

Big numbers in JavaScript without floating point support, only integers. Compatible with the numeric types of all EVM blockchains.

const BN = require("bn.js");

bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic. Supports floating point numbers, not just integers.

const BigNumber = require("bignumber.js");

node-fetch

const fetch = require("node-fetch");

axios

Promise based HTTP client for the browser and Node.js. Different package that allows to make arbitrary HTTP requests to external websites and endpoints.

const axios = require("axios").default;

@orbs-network/*

All packages published by the Orbs organization on NPM are allowed for use.

Package:

Package:

A light-weight module that brings to Node.js and allows to make arbitrary HTTP requests to external websites and endpoints.

Package:

Packages:

NPM packages
Orbs Lambda repo
package.json
https://www.npmjs.com/package/web3
https://www.npmjs.com/package/ethereum-multicall
https://www.npmjs.com/package/bn.js
https://www.npmjs.com/package/bignumber.js
https://www.npmjs.com/package/node-fetch
Fetch API
https://www.npmjs.com/package/axios
https://www.npmjs.com/org/orbs-network