Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const ADDRESS_SIZE

ADDRESS_SIZE: 20 = 20

Const MAX_WORD

MAX_WORD: BN = new BN(-1).toTwos(WORD_SIZE * 8)

Const PC_SIZE

PC_SIZE: 4 = 4

Const SELECTOR_SIZE

SELECTOR_SIZE: 4 = 4

Const WORD_SIZE

WORD_SIZE: 32 = 32

Const Web3Utils

Web3Utils: any = require("web3-utils")

Const ZERO_ADDRESS

ZERO_ADDRESS: string = "0x" + "00".repeat(ADDRESS_SIZE)

Const debug

debug: IDebugger = debugModule("codec:evm:utils")

Functions

equalData

  • equalData(bytes1: Uint8Array | undefined, bytes2: Uint8Array | undefined): boolean
  • Parameters

    • bytes1: Uint8Array | undefined
    • bytes2: Uint8Array | undefined

    Returns boolean

keccak256

  • keccak256(...args: any[]): BN

toAddress

  • toAddress(bytes: Uint8Array | string): string

Generated using TypeDoc