A lambda may require specific NPM packages that are present in this list. To request any additional NPM packages to be whitelisted, please open an issue on the main Orbs Lambda repo.
You can see the exact versions of all packages by inspecting package.json
in the main Orbs Lambda repo.
Package: https://www.npmjs.com/package/web3
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");
Package: https://www.npmjs.com/package/ethereum-multicall
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");
Package: https://www.npmjs.com/package/bn.js
Big numbers in JavaScript without floating point support, only integers. Compatible with the numeric types of all EVM blockchains.
const BN = require("bn.js");
Package: https://www.npmjs.com/package/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");
Package: https://www.npmjs.com/package/node-fetch
A light-weight module that brings Fetch API to Node.js and allows to make arbitrary HTTP requests to external websites and endpoints.
const fetch = require("node-fetch");
Package: https://www.npmjs.com/package/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;
Packages: https://www.npmjs.com/org/orbs-network
All packages published by the Orbs organization on NPM are allowed for use.