Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

depay-blockchain-constants

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depay-blockchain-constants

``` yarn add depay-blockchain-token ```

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Quickstart

yarn add depay-blockchain-token

or

npm install --save depay-blockchain-token
import CONSTANTS from 'depay-blockchain-constants'

CONSTANTS['ethereum'].ZERO  // '0x0000000000000000000000000000000000000000'
CONSTANTS['ethereum'].MAXINT  // '115792089237316195423570985008687907853269984665640564039457584007913129639935'
CONSTANTS['ethereum'].NATIVE  // '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
CONSTANTS['ethereum'].WRAPPED  // '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'

CONSTANTS['bsc'].ZERO  // '0x0000000000000000000000000000000000000000'
CONSTANTS['bsc'].MAXINT  // '115792089237316195423570985008687907853269984665640564039457584007913129639935'
CONSTANTS['bsc'].NATIVE  // '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
CONSTANTS['bsc'].WRAPPED  // '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'

Constants

ZERO

The Address Zero.

CONSTANTS[blockchain].ZERO

e.g. CONSTANTS['ethereum'].ZERO // 0x0000000000000000000000000000000000000000

MAXINT

The number value (as a string) representing the maximum integer value (usually uint256).

CONSTANTS[blockchain].MAXINT

e.g. CONSTANTS['ethereum'].ZERO // 115792089237316195423570985008687907853269984665640564039457584007913129639935

NATIVE

The address used to represent the native blockchain token alongside other token addresses.

CONSTANTS[blockchain].NATIVE

e.g. CONSTANTS['ethereum'].NATIVE // 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

WRAPPED

The address of the token contract providing a wrapped token of individual blockchain's native token.

CONSTANTS[blockchain].WRAPPED

e.g. CONSTANTS['ethereum'].WRAPPED // 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Development

Get started

yarn install
yarn start

Release

npm publish

Keywords

FAQs

Package last updated on 29 Jun 2021

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