Socket
Socket
Sign inDemoInstall

@neo-one/node-vm

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo-one/node-vm - npm Package Compare versions

Comparing version 2.7.0 to 3.0.0-preview3

dist/cjs/ApplicationEngine.d.ts

576

dist/cjs/errors.d.ts
/// <reference types="node" />
/// <reference types="pouchdb-core" />
import BN from 'bn.js';
import { ExecutionContext } from './constants';
export declare const ThrowError: {
new (context: ExecutionContext): {
export declare const InvalidUIntError: {
new (num: number): {
readonly name: string;

@@ -16,4 +13,4 @@ readonly code: string;

};
export declare const ShiftTooLargeError: {
new (context: ExecutionContext): {
export declare const InvalidIntError: {
new (num: number): {
readonly name: string;

@@ -28,4 +25,4 @@ readonly code: string;

};
export declare const ContainerTooLargeError: {
new (context: ExecutionContext): {
export declare const InvalidByteError: {
new (num: number): {
readonly name: string;

@@ -40,562 +37,1 @@ readonly code: string;

};
export declare const ItemTooLargeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownOpError: {
new (context: ExecutionContext, byteCode: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const StackUnderflowError: {
new (context: ExecutionContext, op: "PUSH0" | "PUSHBYTES1" | "PUSHBYTES2" | "PUSHBYTES3" | "PUSHBYTES4" | "PUSHBYTES5" | "PUSHBYTES6" | "PUSHBYTES7" | "PUSHBYTES8" | "PUSHBYTES9" | "PUSHBYTES10" | "PUSHBYTES11" | "PUSHBYTES12" | "PUSHBYTES13" | "PUSHBYTES14" | "PUSHBYTES15" | "PUSHBYTES16" | "PUSHBYTES17" | "PUSHBYTES18" | "PUSHBYTES19" | "PUSHBYTES20" | "PUSHBYTES21" | "PUSHBYTES22" | "PUSHBYTES23" | "PUSHBYTES24" | "PUSHBYTES25" | "PUSHBYTES26" | "PUSHBYTES27" | "PUSHBYTES28" | "PUSHBYTES29" | "PUSHBYTES30" | "PUSHBYTES31" | "PUSHBYTES32" | "PUSHBYTES33" | "PUSHBYTES34" | "PUSHBYTES35" | "PUSHBYTES36" | "PUSHBYTES37" | "PUSHBYTES38" | "PUSHBYTES39" | "PUSHBYTES40" | "PUSHBYTES41" | "PUSHBYTES42" | "PUSHBYTES43" | "PUSHBYTES44" | "PUSHBYTES45" | "PUSHBYTES46" | "PUSHBYTES47" | "PUSHBYTES48" | "PUSHBYTES49" | "PUSHBYTES50" | "PUSHBYTES51" | "PUSHBYTES52" | "PUSHBYTES53" | "PUSHBYTES54" | "PUSHBYTES55" | "PUSHBYTES56" | "PUSHBYTES57" | "PUSHBYTES58" | "PUSHBYTES59" | "PUSHBYTES60" | "PUSHBYTES61" | "PUSHBYTES62" | "PUSHBYTES63" | "PUSHBYTES64" | "PUSHBYTES65" | "PUSHBYTES66" | "PUSHBYTES67" | "PUSHBYTES68" | "PUSHBYTES69" | "PUSHBYTES70" | "PUSHBYTES71" | "PUSHBYTES72" | "PUSHBYTES73" | "PUSHBYTES74" | "PUSHBYTES75" | "PUSHDATA1" | "PUSHDATA2" | "PUSHDATA4" | "PUSHM1" | "PUSH1" | "PUSH2" | "PUSH3" | "PUSH4" | "PUSH5" | "PUSH6" | "PUSH7" | "PUSH8" | "PUSH9" | "PUSH10" | "PUSH11" | "PUSH12" | "PUSH13" | "PUSH14" | "PUSH15" | "PUSH16" | "NOP" | "JMP" | "JMPIF" | "JMPIFNOT" | "CALL" | "RET" | "APPCALL" | "SYSCALL" | "TAILCALL" | "DUPFROMALTSTACK" | "TOALTSTACK" | "FROMALTSTACK" | "XDROP" | "XSWAP" | "XTUCK" | "DEPTH" | "DROP" | "DUP" | "NIP" | "OVER" | "PICK" | "ROLL" | "ROT" | "SWAP" | "TUCK" | "CAT" | "SUBSTR" | "LEFT" | "RIGHT" | "SIZE" | "INVERT" | "AND" | "OR" | "XOR" | "EQUAL" | "OP_EQUALVERIFY" | "OP_RESERVED1" | "OP_RESERVED2" | "INC" | "DEC" | "SIGN" | "NEGATE" | "ABS" | "NOT" | "NZ" | "ADD" | "SUB" | "MUL" | "DIV" | "MOD" | "SHL" | "SHR" | "BOOLAND" | "BOOLOR" | "NUMEQUAL" | "NUMNOTEQUAL" | "LT" | "GT" | "LTE" | "GTE" | "MIN" | "MAX" | "WITHIN" | "SHA1" | "SHA256" | "HASH160" | "HASH256" | "CHECKSIG" | "VERIFY" | "CHECKMULTISIG" | "ARRAYSIZE" | "PACK" | "UNPACK" | "PICKITEM" | "SETITEM" | "NEWARRAY" | "NEWSTRUCT" | "NEWMAP" | "APPEND" | "REVERSE" | "REMOVE" | "HASKEY" | "KEYS" | "VALUES" | "CALL_I" | "CALL_E" | "CALL_ED" | "CALL_ET" | "CALL_EDT" | "THROW" | "THROWIFNOT", stackLength: number, expected: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const NumberTooLargeError: {
new (context: ExecutionContext, value: BN): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const AltStackUnderflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const StackOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvocationStackOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const OutOfGASError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const CodeOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownSysCallError: {
new (context: ExecutionContext, sysCall: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownOPError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XTuckNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XSwapNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XDropNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XDropUnderflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const PickNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RollNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const SubstrNegativeEndError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const SubstrNegativeStartError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const LeftNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RightNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RightLengthError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidAssetTypeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidCheckMultisigArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidPackCountError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidPickItemKeyError: {
new (context: ExecutionContext, key: string, value: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidRemoveIndexError: {
new (context: ExecutionContext, index: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidHasKeyIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidSetItemIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidCheckWitnessArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetHeaderArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetBlockArgumentsError: {
new (context: ExecutionContext, arg: Buffer | undefined): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidInvocationTransactionError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidClaimTransactionError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ContractNoStorageError: {
new (context: ExecutionContext, hash: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ContractNoDynamicInvokeError: {
new (context: ExecutionContext, hash: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const TooManyVotesError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const AccountFrozenError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const NotEligibleVoteError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const BadWitnessCheckError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnexpectedScriptContainerError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidContractGetStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ReadOnlyStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InsufficientReturnValueError: {
new (context: ExecutionContext, stackSize: number, count: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidTailCallReturnValueError: {
new (context: ExecutionContext, found: number, expected: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const TemplateVMError: {
new (context: ExecutionContext, message: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ConstantStorageError: {
new (context: ExecutionContext, key: Buffer): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidVerifySyscallError: {
new (context: ExecutionContext, syscall: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidVerifySyscallError = exports.ConstantStorageError = exports.TemplateVMError = exports.InvalidTailCallReturnValueError = exports.InsufficientReturnValueError = exports.ReadOnlyStorageContextError = exports.InvalidContractGetStorageContextError = exports.InvalidGetStorageContextError = exports.UnexpectedScriptContainerError = exports.BadWitnessCheckError = exports.NotEligibleVoteError = exports.AccountFrozenError = exports.TooManyVotesError = exports.ContractNoDynamicInvokeError = exports.ContractNoStorageError = exports.InvalidClaimTransactionError = exports.InvalidInvocationTransactionError = exports.InvalidIndexError = exports.InvalidGetBlockArgumentsError = exports.InvalidGetHeaderArgumentsError = exports.InvalidCheckWitnessArgumentsError = exports.InvalidSetItemIndexError = exports.InvalidHasKeyIndexError = exports.InvalidRemoveIndexError = exports.InvalidPickItemKeyError = exports.InvalidPackCountError = exports.InvalidCheckMultisigArgumentsError = exports.InvalidAssetTypeError = exports.RightLengthError = exports.RightNegativeError = exports.LeftNegativeError = exports.SubstrNegativeStartError = exports.SubstrNegativeEndError = exports.RollNegativeError = exports.PickNegativeError = exports.XDropUnderflowError = exports.XDropNegativeError = exports.XSwapNegativeError = exports.XTuckNegativeError = exports.UnknownError = exports.UnknownOPError = exports.UnknownSysCallError = exports.CodeOverflowError = exports.OutOfGASError = exports.InvocationStackOverflowError = exports.StackOverflowError = exports.AltStackUnderflowError = exports.NumberTooLargeError = exports.StackUnderflowError = exports.UnknownOpError = exports.ItemTooLargeError = exports.ContainerTooLargeError = exports.ShiftTooLargeError = exports.ThrowError = void 0;
const client_common_1 = require("@neo-one/client-common");
const node_core_1 = require("@neo-one/node-core");
exports.InvalidByteError = exports.InvalidIntError = exports.InvalidUIntError = void 0;
const utils_1 = require("@neo-one/utils");
const getLine = (context) => {
try {
const bytecode = node_core_1.disassembleByteCode(context.code);
const result = [...bytecode.entries()].find(([idx, { pc }]) => context.pc === pc);
return result === undefined ? 1 : result[0];
}
catch (_a) {
return 1;
}
};
const getMessage = (context, message) => {
const { pc } = context;
const stack = context.stack.map((item) => item.toString()).join('\n');
return `${message}\nPC:${pc}\nStack:\n${stack}\nLine:${getLine(context)}\nScript Hash:${client_common_1.common.uInt160ToString(context.scriptHash)}`;
};
exports.ThrowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Script execution threw an Error'));
exports.ShiftTooLargeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Shift value too large'));
exports.ContainerTooLargeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Container too large'));
exports.ItemTooLargeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Item too large'));
exports.UnknownOpError = utils_1.makeErrorWithCode('VM_ERROR', (context, byteCode) => getMessage(context, `Unknown op: ${byteCode}`));
exports.StackUnderflowError = utils_1.makeErrorWithCode('VM_ERROR', (context, op, stackLength, expected) => getMessage(context, `Stack Underflow. Op: ${op}. Stack Length: ${stackLength}. ` + `Expected: ${expected}`));
exports.NumberTooLargeError = utils_1.makeErrorWithCode('VM_ERROR', (context, value) => getMessage(context, `Number too large to be represented in Javascript: ${value.toString(10)}`));
exports.AltStackUnderflowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, `Stack Underflow.`));
exports.StackOverflowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Stack Overflow'));
exports.InvocationStackOverflowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invocation Stack Overflow'));
exports.OutOfGASError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Out of GAS'));
exports.CodeOverflowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Code Overflow'));
exports.UnknownSysCallError = utils_1.makeErrorWithCode('VM_ERROR', (context, sysCall) => getMessage(context, `Unknown SysCall: ${sysCall}`));
exports.UnknownOPError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unnown Op'));
exports.UnknownError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unknown Error'));
exports.XTuckNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XTUCK Negative Index'));
exports.XSwapNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XSWAP Negative Index'));
exports.XDropNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XDROP Negative Index'));
exports.XDropUnderflowError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XDROP Underflow'));
exports.PickNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'PICK Negative Index'));
exports.RollNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'ROLL Negative Index'));
exports.SubstrNegativeEndError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'SUBSTR Negative End'));
exports.SubstrNegativeStartError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'SUBSTR Negative Start'));
exports.LeftNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'LEFT Negative Index'));
exports.RightNegativeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'RIGHT Negative Index'));
exports.RightLengthError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'RIGHT Length Less Than Index'));
exports.InvalidAssetTypeError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Asset Type.'));
exports.InvalidCheckMultisigArgumentsError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid CHECKMULTISIG Arguments'));
exports.InvalidPackCountError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid PACK Count'));
exports.InvalidPickItemKeyError = utils_1.makeErrorWithCode('VM_ERROR', (context, key, value) => getMessage(context, `Invalid PICKITEM Index: ${key}. Value: ${value}`));
exports.InvalidRemoveIndexError = utils_1.makeErrorWithCode('VM_ERROR', (context, index) => getMessage(context, `Invalid REMOVE Index: ${index}`));
exports.InvalidHasKeyIndexError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid HASKEY Index'));
exports.InvalidSetItemIndexError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid SETITEM Index'));
exports.InvalidCheckWitnessArgumentsError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid CheckWitness Arguments'));
exports.InvalidGetHeaderArgumentsError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid GETHEADER Arguments'));
exports.InvalidGetBlockArgumentsError = utils_1.makeErrorWithCode('VM_ERROR', (context, arg) => getMessage(context, `Invalid GETBLOCK Argument: ` + `${arg === undefined ? 'null' : arg.toString('hex')}`));
exports.InvalidIndexError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Index.'));
exports.InvalidInvocationTransactionError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Expected InvocationTransaction.'));
exports.InvalidClaimTransactionError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Expected ClaimTransaction.'));
exports.ContractNoStorageError = utils_1.makeErrorWithCode('VM_ERROR', (context, hash) => getMessage(context, `Contract Does Not Have Storage: ${hash}`));
exports.ContractNoDynamicInvokeError = utils_1.makeErrorWithCode('VM_ERROR', (context, hash) => getMessage(context, `Contract Does Not Have Dynamic Invoke: ${hash}`));
exports.TooManyVotesError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Too Many Votes'));
exports.AccountFrozenError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Account Frozen'));
exports.NotEligibleVoteError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Ineligible To Vote'));
exports.BadWitnessCheckError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Bad Witness'));
exports.UnexpectedScriptContainerError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unexpected Script Container'));
exports.InvalidGetStorageContextError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Get Storage Context'));
exports.InvalidContractGetStorageContextError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Contract.GetStorageContext context'));
exports.ReadOnlyStorageContextError = utils_1.makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'StorageContext is read only'));
exports.InsufficientReturnValueError = utils_1.makeErrorWithCode('VM_ERROR', (context, stackSize, count) => getMessage(context, `Insufficient return values. Found ${stackSize}, expected ${count}`));
exports.InvalidTailCallReturnValueError = utils_1.makeErrorWithCode('VM_ERROR', (context, found, expected) => getMessage(context, `Invalid tail call return value count. Found ${found}, expected ${expected}`));
exports.TemplateVMError = utils_1.makeErrorWithCode('VM_ERROR', getMessage);
exports.ConstantStorageError = utils_1.makeErrorWithCode('VM_ERROR', (context, key) => getMessage(context, `Storage at ${key.toString('hex')} is read only`));
exports.InvalidVerifySyscallError = utils_1.makeErrorWithCode('INVALID_VERIFY_SYSCALL_ERROR', (context, syscall) => getMessage(context, `Syscall ${syscall} is not allowed during verification`));
exports.InvalidUIntError = utils_1.makeErrorWithCode('INVALID_UINT', (num) => `Expected number to be a 32-bit unsigned integer. Got: ${num}`);
exports.InvalidIntError = utils_1.makeErrorWithCode('INVALID_INT', (num) => `Expected number to be a 32-bit signed integer. Got: ${num}`);
exports.InvalidByteError = utils_1.makeErrorWithCode('INVALID_BYTE', (num) => `Expected number to be an 8-bit signed integer. Got: ${num}`);
//# sourceMappingURL=errors.js.map

@@ -1,15 +0,3 @@

export declare const vm: {
executeScripts: ({ scripts, blockchain, scriptContainer, triggerType, action, returnValueCount, gas: gasIn, listeners, skipWitnessVerify, persistingBlock, }: {
readonly scripts: readonly import("@neo-one/node-core").Script[];
readonly blockchain: import("@neo-one/node-core").WriteBlockchain;
readonly scriptContainer: import("@neo-one/node-core").ScriptContainer;
readonly triggerType: import("@neo-one/node-core").TriggerType;
readonly action: import("@neo-one/node-core").ExecutionAction;
readonly gas: import("bn.js");
readonly returnValueCount?: number | undefined;
readonly listeners?: import("@neo-one/node-core").VMListeners | undefined;
readonly skipWitnessVerify?: boolean | undefined;
readonly persistingBlock?: import("@neo-one/node-core").Block | undefined;
}) => Promise<import("@neo-one/node-core").ExecuteScriptsResult>;
};
export { StackItem, deserializeStackItem } from './stackItem';
export * from './ApplicationEngine';
export * from './Dispatcher';
export * from './utils';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.vm = void 0;
const execute_1 = require("./execute");
exports.vm = {
executeScripts: execute_1.execute,
};
var stackItem_1 = require("./stackItem");
Object.defineProperty(exports, "deserializeStackItem", { enumerable: true, get: function () { return stackItem_1.deserializeStackItem; } });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./ApplicationEngine"), exports);
tslib_1.__exportStar(require("./Dispatcher"), exports);
tslib_1.__exportStar(require("./utils"), exports);
//# sourceMappingURL=index.js.map
/// <reference types="node" />
import BN from 'bn.js';
import { ExecutionContext } from './constants';
export declare const ThrowError: {
new (context: ExecutionContext): {
export declare const InvalidUIntError: {
new (num: number): {
readonly name: string;

@@ -15,4 +13,4 @@ readonly code: string;

};
export declare const ShiftTooLargeError: {
new (context: ExecutionContext): {
export declare const InvalidIntError: {
new (num: number): {
readonly name: string;

@@ -27,4 +25,4 @@ readonly code: string;

};
export declare const ContainerTooLargeError: {
new (context: ExecutionContext): {
export declare const InvalidByteError: {
new (num: number): {
readonly name: string;

@@ -39,562 +37,1 @@ readonly code: string;

};
export declare const ItemTooLargeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownOpError: {
new (context: ExecutionContext, byteCode: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const StackUnderflowError: {
new (context: ExecutionContext, op: "PUSH0" | "PUSHBYTES1" | "PUSHBYTES2" | "PUSHBYTES3" | "PUSHBYTES4" | "PUSHBYTES5" | "PUSHBYTES6" | "PUSHBYTES7" | "PUSHBYTES8" | "PUSHBYTES9" | "PUSHBYTES10" | "PUSHBYTES11" | "PUSHBYTES12" | "PUSHBYTES13" | "PUSHBYTES14" | "PUSHBYTES15" | "PUSHBYTES16" | "PUSHBYTES17" | "PUSHBYTES18" | "PUSHBYTES19" | "PUSHBYTES20" | "PUSHBYTES21" | "PUSHBYTES22" | "PUSHBYTES23" | "PUSHBYTES24" | "PUSHBYTES25" | "PUSHBYTES26" | "PUSHBYTES27" | "PUSHBYTES28" | "PUSHBYTES29" | "PUSHBYTES30" | "PUSHBYTES31" | "PUSHBYTES32" | "PUSHBYTES33" | "PUSHBYTES34" | "PUSHBYTES35" | "PUSHBYTES36" | "PUSHBYTES37" | "PUSHBYTES38" | "PUSHBYTES39" | "PUSHBYTES40" | "PUSHBYTES41" | "PUSHBYTES42" | "PUSHBYTES43" | "PUSHBYTES44" | "PUSHBYTES45" | "PUSHBYTES46" | "PUSHBYTES47" | "PUSHBYTES48" | "PUSHBYTES49" | "PUSHBYTES50" | "PUSHBYTES51" | "PUSHBYTES52" | "PUSHBYTES53" | "PUSHBYTES54" | "PUSHBYTES55" | "PUSHBYTES56" | "PUSHBYTES57" | "PUSHBYTES58" | "PUSHBYTES59" | "PUSHBYTES60" | "PUSHBYTES61" | "PUSHBYTES62" | "PUSHBYTES63" | "PUSHBYTES64" | "PUSHBYTES65" | "PUSHBYTES66" | "PUSHBYTES67" | "PUSHBYTES68" | "PUSHBYTES69" | "PUSHBYTES70" | "PUSHBYTES71" | "PUSHBYTES72" | "PUSHBYTES73" | "PUSHBYTES74" | "PUSHBYTES75" | "PUSHDATA1" | "PUSHDATA2" | "PUSHDATA4" | "PUSHM1" | "PUSH1" | "PUSH2" | "PUSH3" | "PUSH4" | "PUSH5" | "PUSH6" | "PUSH7" | "PUSH8" | "PUSH9" | "PUSH10" | "PUSH11" | "PUSH12" | "PUSH13" | "PUSH14" | "PUSH15" | "PUSH16" | "NOP" | "JMP" | "JMPIF" | "JMPIFNOT" | "CALL" | "RET" | "APPCALL" | "SYSCALL" | "TAILCALL" | "DUPFROMALTSTACK" | "TOALTSTACK" | "FROMALTSTACK" | "XDROP" | "XSWAP" | "XTUCK" | "DEPTH" | "DROP" | "DUP" | "NIP" | "OVER" | "PICK" | "ROLL" | "ROT" | "SWAP" | "TUCK" | "CAT" | "SUBSTR" | "LEFT" | "RIGHT" | "SIZE" | "INVERT" | "AND" | "OR" | "XOR" | "EQUAL" | "OP_EQUALVERIFY" | "OP_RESERVED1" | "OP_RESERVED2" | "INC" | "DEC" | "SIGN" | "NEGATE" | "ABS" | "NOT" | "NZ" | "ADD" | "SUB" | "MUL" | "DIV" | "MOD" | "SHL" | "SHR" | "BOOLAND" | "BOOLOR" | "NUMEQUAL" | "NUMNOTEQUAL" | "LT" | "GT" | "LTE" | "GTE" | "MIN" | "MAX" | "WITHIN" | "SHA1" | "SHA256" | "HASH160" | "HASH256" | "CHECKSIG" | "VERIFY" | "CHECKMULTISIG" | "ARRAYSIZE" | "PACK" | "UNPACK" | "PICKITEM" | "SETITEM" | "NEWARRAY" | "NEWSTRUCT" | "NEWMAP" | "APPEND" | "REVERSE" | "REMOVE" | "HASKEY" | "KEYS" | "VALUES" | "CALL_I" | "CALL_E" | "CALL_ED" | "CALL_ET" | "CALL_EDT" | "THROW" | "THROWIFNOT", stackLength: number, expected: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const NumberTooLargeError: {
new (context: ExecutionContext, value: BN): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const AltStackUnderflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const StackOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvocationStackOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const OutOfGASError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const CodeOverflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownSysCallError: {
new (context: ExecutionContext, sysCall: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownOPError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnknownError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XTuckNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XSwapNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XDropNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const XDropUnderflowError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const PickNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RollNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const SubstrNegativeEndError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const SubstrNegativeStartError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const LeftNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RightNegativeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const RightLengthError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidAssetTypeError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidCheckMultisigArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidPackCountError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidPickItemKeyError: {
new (context: ExecutionContext, key: string, value: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidRemoveIndexError: {
new (context: ExecutionContext, index: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidHasKeyIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidSetItemIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidCheckWitnessArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetHeaderArgumentsError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetBlockArgumentsError: {
new (context: ExecutionContext, arg: Buffer | undefined): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidIndexError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidInvocationTransactionError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidClaimTransactionError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ContractNoStorageError: {
new (context: ExecutionContext, hash: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ContractNoDynamicInvokeError: {
new (context: ExecutionContext, hash: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const TooManyVotesError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const AccountFrozenError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const NotEligibleVoteError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const BadWitnessCheckError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const UnexpectedScriptContainerError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidGetStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidContractGetStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ReadOnlyStorageContextError: {
new (context: ExecutionContext): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InsufficientReturnValueError: {
new (context: ExecutionContext, stackSize: number, count: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidTailCallReturnValueError: {
new (context: ExecutionContext, found: number, expected: number): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const TemplateVMError: {
new (context: ExecutionContext, message: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const ConstantStorageError: {
new (context: ExecutionContext, key: Buffer): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};
export declare const InvalidVerifySyscallError: {
new (context: ExecutionContext, syscall: string): {
readonly name: string;
readonly code: string;
message: string;
stack?: string | undefined;
};
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
stackTraceLimit: number;
};

@@ -1,74 +0,6 @@

import { common } from '@neo-one/client-common';
import { disassembleByteCode } from '@neo-one/node-core';
import { makeErrorWithCode } from '@neo-one/utils';
const getLine = (context) => {
try {
const bytecode = disassembleByteCode(context.code);
const result = [...bytecode.entries()].find(([idx, { pc }]) => context.pc === pc);
return result === undefined ? 1 : result[0];
}
catch {
return 1;
}
};
const getMessage = (context, message) => {
const { pc } = context;
const stack = context.stack.map((item) => item.toString()).join('\n');
return `${message}\nPC:${pc}\nStack:\n${stack}\nLine:${getLine(context)}\nScript Hash:${common.uInt160ToString(context.scriptHash)}`;
};
export const ThrowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Script execution threw an Error'));
export const ShiftTooLargeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Shift value too large'));
export const ContainerTooLargeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Container too large'));
export const ItemTooLargeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Item too large'));
export const UnknownOpError = makeErrorWithCode('VM_ERROR', (context, byteCode) => getMessage(context, `Unknown op: ${byteCode}`));
export const StackUnderflowError = makeErrorWithCode('VM_ERROR', (context, op, stackLength, expected) => getMessage(context, `Stack Underflow. Op: ${op}. Stack Length: ${stackLength}. ` + `Expected: ${expected}`));
export const NumberTooLargeError = makeErrorWithCode('VM_ERROR', (context, value) => getMessage(context, `Number too large to be represented in Javascript: ${value.toString(10)}`));
export const AltStackUnderflowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, `Stack Underflow.`));
export const StackOverflowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Stack Overflow'));
export const InvocationStackOverflowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invocation Stack Overflow'));
export const OutOfGASError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Out of GAS'));
export const CodeOverflowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Code Overflow'));
export const UnknownSysCallError = makeErrorWithCode('VM_ERROR', (context, sysCall) => getMessage(context, `Unknown SysCall: ${sysCall}`));
export const UnknownOPError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unnown Op'));
export const UnknownError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unknown Error'));
export const XTuckNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XTUCK Negative Index'));
export const XSwapNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XSWAP Negative Index'));
export const XDropNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XDROP Negative Index'));
export const XDropUnderflowError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'XDROP Underflow'));
export const PickNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'PICK Negative Index'));
export const RollNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'ROLL Negative Index'));
export const SubstrNegativeEndError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'SUBSTR Negative End'));
export const SubstrNegativeStartError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'SUBSTR Negative Start'));
export const LeftNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'LEFT Negative Index'));
export const RightNegativeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'RIGHT Negative Index'));
export const RightLengthError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'RIGHT Length Less Than Index'));
export const InvalidAssetTypeError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Asset Type.'));
export const InvalidCheckMultisigArgumentsError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid CHECKMULTISIG Arguments'));
export const InvalidPackCountError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid PACK Count'));
export const InvalidPickItemKeyError = makeErrorWithCode('VM_ERROR', (context, key, value) => getMessage(context, `Invalid PICKITEM Index: ${key}. Value: ${value}`));
export const InvalidRemoveIndexError = makeErrorWithCode('VM_ERROR', (context, index) => getMessage(context, `Invalid REMOVE Index: ${index}`));
export const InvalidHasKeyIndexError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid HASKEY Index'));
export const InvalidSetItemIndexError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid SETITEM Index'));
export const InvalidCheckWitnessArgumentsError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid CheckWitness Arguments'));
export const InvalidGetHeaderArgumentsError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid GETHEADER Arguments'));
export const InvalidGetBlockArgumentsError = makeErrorWithCode('VM_ERROR', (context, arg) => getMessage(context, `Invalid GETBLOCK Argument: ` + `${arg === undefined ? 'null' : arg.toString('hex')}`));
export const InvalidIndexError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Index.'));
export const InvalidInvocationTransactionError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Expected InvocationTransaction.'));
export const InvalidClaimTransactionError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Expected ClaimTransaction.'));
export const ContractNoStorageError = makeErrorWithCode('VM_ERROR', (context, hash) => getMessage(context, `Contract Does Not Have Storage: ${hash}`));
export const ContractNoDynamicInvokeError = makeErrorWithCode('VM_ERROR', (context, hash) => getMessage(context, `Contract Does Not Have Dynamic Invoke: ${hash}`));
export const TooManyVotesError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Too Many Votes'));
export const AccountFrozenError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Account Frozen'));
export const NotEligibleVoteError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Ineligible To Vote'));
export const BadWitnessCheckError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Bad Witness'));
export const UnexpectedScriptContainerError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Unexpected Script Container'));
export const InvalidGetStorageContextError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Get Storage Context'));
export const InvalidContractGetStorageContextError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'Invalid Contract.GetStorageContext context'));
export const ReadOnlyStorageContextError = makeErrorWithCode('VM_ERROR', (context) => getMessage(context, 'StorageContext is read only'));
export const InsufficientReturnValueError = makeErrorWithCode('VM_ERROR', (context, stackSize, count) => getMessage(context, `Insufficient return values. Found ${stackSize}, expected ${count}`));
export const InvalidTailCallReturnValueError = makeErrorWithCode('VM_ERROR', (context, found, expected) => getMessage(context, `Invalid tail call return value count. Found ${found}, expected ${expected}`));
export const TemplateVMError = makeErrorWithCode('VM_ERROR', getMessage);
export const ConstantStorageError = makeErrorWithCode('VM_ERROR', (context, key) => getMessage(context, `Storage at ${key.toString('hex')} is read only`));
export const InvalidVerifySyscallError = makeErrorWithCode('INVALID_VERIFY_SYSCALL_ERROR', (context, syscall) => getMessage(context, `Syscall ${syscall} is not allowed during verification`));
export const InvalidUIntError = makeErrorWithCode('INVALID_UINT', (num) => `Expected number to be a 32-bit unsigned integer. Got: ${num}`);
export const InvalidIntError = makeErrorWithCode('INVALID_INT', (num) => `Expected number to be a 32-bit signed integer. Got: ${num}`);
export const InvalidByteError = makeErrorWithCode('INVALID_BYTE', (num) => `Expected number to be an 8-bit signed integer. Got: ${num}`);
//# sourceMappingURL=errors.js.map

@@ -1,15 +0,3 @@

export declare const vm: {
executeScripts: ({ scripts, blockchain, scriptContainer, triggerType, action, returnValueCount, gas: gasIn, listeners, skipWitnessVerify, persistingBlock, }: {
readonly scripts: readonly import("@neo-one/node-core/dist/esm").Script[];
readonly blockchain: import("@neo-one/node-core/dist/esm").WriteBlockchain;
readonly scriptContainer: import("@neo-one/node-core/dist/esm").ScriptContainer;
readonly triggerType: import("@neo-one/node-core/dist/esm").TriggerType;
readonly action: import("@neo-one/node-core/dist/esm").ExecutionAction;
readonly gas: import("bn.js");
readonly returnValueCount?: number | undefined;
readonly listeners?: import("@neo-one/node-core/dist/esm").VMListeners | undefined;
readonly skipWitnessVerify?: boolean | undefined;
readonly persistingBlock?: import("@neo-one/node-core/dist/esm").Block | undefined;
}) => Promise<import("@neo-one/node-core/dist/esm").ExecuteScriptsResult>;
};
export { StackItem, deserializeStackItem } from './stackItem';
export * from './ApplicationEngine';
export * from './Dispatcher';
export * from './utils';

@@ -1,7 +0,5 @@

import { execute } from './execute';
export const vm = {
executeScripts: execute,
};
export { deserializeStackItem } from './stackItem';
export * from './ApplicationEngine';
export * from './Dispatcher';
export * from './utils';
//# sourceMappingURL=index.js.map
{
"name": "@neo-one/node-vm",
"version": "2.7.0",
"description": "NEO•ONE NEO VM.",
"version": "3.0.0-preview3",
"description": "NEO•ONE C# Wrapper for neo3 VM",
"main": "./dist/cjs/index",
"module": "./dist/esm/index",
"scripts": {
"build": "gulp",
"lint": "node ./node_modules/@neo-one/build-tools/bin/neo-one-lint.js",
"install": "dotnet build ./lib",
"lint:staged": "lint-staged --relative",

@@ -16,14 +16,7 @@ "pack": "gulp pack",

"dependencies": {
"@neo-one/client-common": "^2.7.0",
"@neo-one/client-full-common": "^2.7.0",
"@neo-one/node-core": "^2.7.0",
"@neo-one/utils": "^2.6.1",
"@reactivex/ix-es2015-cjs": "^2.5.3",
"@reactivex/ix-esnext-esm": "^2.5.3",
"@types/bn.js": "^4.11.5",
"bitwise": "^2.0.3",
"bn.js": "^5.0.0",
"lodash": "^4.17.15",
"rxjs": "^6.5.3",
"tslib": "^1.10.0"
"@neo-one/edge": "^15.0.0",
"@neo-one/node-core": "3.0.0-preview3",
"@neo-one/client-common": "3.0.0-preview3",
"@neo-one/utils": "3.0.0-preview3",
"bn.js": "^5.0.0"
},

@@ -34,4 +27,6 @@ "devDependencies": {

"@types/lodash": "^4.14.138",
"gulp": "~4.0.2"
"gulp": "~4.0.2",
"lodash": "^4.17.15",
"tslib": "^1.10.0"
}
}

@@ -0,2 +1,11 @@

## Warning
This branch is under heavy development during our migration to neo3 protocols. Please see the [master-2.x](https://github.com/neo-one-suite/neo-one/tree/master-2.x) branch for currently published source code.
Currently we support syncing a NEO•ONE node and retrieving information from it.
We have a node deployed publicly at `staging.neotracker.io/rpc` which can be used for demonstrating the current capabilities.
For a more in-depth view of currently supported features visit our demo repository at: https://github.com/neo-one-suite/neo-one-3.0-alpha-demo
# NEO•ONE
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=shield)](#contributors)

@@ -23,2 +32,3 @@ [![CircleCI](https://circleci.com/gh/neo-one-suite/neo-one.svg?style=shield)](https://circleci.com/gh/neo-one-suite/neo-one)

| :---: | :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

@@ -25,0 +35,0 @@

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