How to use the ethereumjs-vm.deps function in ethereumjs-vm

To help you get started, we’ve selected a few ethereumjs-vm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github leapdao / leap-node / src / tx / applyTx / checkSpendCond.js View on Github external
} = require('jsbi-utils');
const isEqual = require('lodash/isEqual');
const getColors = require('../../api/methods/getColors');
const {
  NFT_COLOR_BASE,
  NST_COLOR_BASE,
} = require('../../api/methods/constants');
const {
  ERC20_BYTECODE,
  ERC721_BYTECODE,
  ERC1948_BYTECODE,
  ERC1948_BYTECODE_218508104,
} = require('./ercBytecode');
const { isNFT, isNST } = require('./../../utils');

const { Account } = VM.deps;

const REACTOR_ADDR = Buffer.from(
  '0000000000000000000000000000000000000001',
  'hex'
);

const ERC20_MINT_FUNCSIG = Buffer.from(
  '40c10f19000000000000000000000000',
  'hex'
);

const ERC721_MINT_FUNCSIG = Buffer.from(
  '40c10f19000000000000000000000000',
  'hex'
);

ethereumjs-vm

An Ethereum VM implementation

MPL-2.0
Latest version published 5 years ago

Package Health Score

58 / 100
Full package analysis