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

@neo-one/node-storage-common

Package Overview
Dependencies
Maintainers
3
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo-one/node-storage-common - npm Package Compare versions

Comparing version 3.0.1-preview3.1.1 to 3.0.1-preview4

22

dist/cjs/keys.d.ts
/// <reference types="node" />
import { UInt160, UInt256 } from '@neo-one/client-common';
import { BlockKey, Nep5BalanceKey, Nep5TransferKey, StorageKey, StreamOptions } from '@neo-one/node-core';
import { BlockKey, Nep17BalanceKey, Nep17TransferKey, StorageKey, StreamOptions } from '@neo-one/node-core';
export declare enum Prefix {

@@ -14,5 +14,5 @@ Block = 1,

ConsensusState = 244,
Nep5Balance = 248,
Nep5TransferSent = 249,
Nep5TransferReceived = 250,
Nep17Balance = 248,
Nep17TransferSent = 249,
Nep17TransferReceived = 250,
ApplicationLog = 251,

@@ -23,5 +23,5 @@ Settings = 221

createBlockKey: (key: BlockKey) => Buffer;
createNep5BalanceKey: (key: Nep5BalanceKey) => Buffer;
createNep5TransferSentKey: (key: Nep5TransferKey) => Buffer;
createNep5TransferReceivedKey: (key: Nep5TransferKey) => Buffer;
createNep17BalanceKey: (key: Nep17BalanceKey) => Buffer;
createNep17TransferSentKey: (key: Nep17TransferKey) => Buffer;
createNep17TransferReceivedKey: (key: Nep17TransferKey) => Buffer;
createApplicationLogKey: (key: UInt256) => Buffer;

@@ -32,9 +32,9 @@ createTransactionKey: (key: UInt256) => Buffer;

getStorageSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep5BalanceSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getAllNep5BalanceSearchRange: {
getNep17BalanceSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getAllNep17BalanceSearchRange: {
gte: Buffer;
lte: Buffer;
};
getNep5TransferReceivedSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep5TransferSentSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep17TransferReceivedSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep17TransferSentSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
createHeaderHashListKey: (key: number) => Buffer;

@@ -41,0 +41,0 @@ blockHashIndexKey: Buffer;

@@ -17,5 +17,5 @@ "use strict";

Prefix[Prefix["ConsensusState"] = 244] = "ConsensusState";
Prefix[Prefix["Nep5Balance"] = 248] = "Nep5Balance";
Prefix[Prefix["Nep5TransferSent"] = 249] = "Nep5TransferSent";
Prefix[Prefix["Nep5TransferReceived"] = 250] = "Nep5TransferReceived";
Prefix[Prefix["Nep17Balance"] = 248] = "Nep17Balance";
Prefix[Prefix["Nep17TransferSent"] = 249] = "Nep17TransferSent";
Prefix[Prefix["Nep17TransferReceived"] = 250] = "Nep17TransferReceived";
Prefix[Prefix["ApplicationLog"] = 251] = "ApplicationLog";

@@ -82,13 +82,13 @@ Prefix[Prefix["Settings"] = 221] = "Settings";

});
const createNep5BalanceKey = getCreateKey({
const createNep17BalanceKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5Balance,
prefix: Prefix.Nep17Balance,
});
const createNep5TransferSentKey = getCreateKey({
const createNep17TransferSentKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5TransferSent,
prefix: Prefix.Nep17TransferSent,
});
const createNep5TransferReceivedKey = getCreateKey({
const createNep17TransferReceivedKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5TransferReceived,
prefix: Prefix.Nep17TransferReceived,
});

@@ -114,9 +114,9 @@ const createHeaderHashListKey = getCreateKey({

const getStorageSearchRange = createGetSearchRange(Prefix.Storage);
const getAllNep5BalanceSearchRange = {
gte: Buffer.from([Prefix.Nep5Balance]),
lte: Buffer.from([Prefix.Nep5TransferSent]),
const getAllNep17BalanceSearchRange = {
gte: Buffer.from([Prefix.Nep17Balance]),
lte: Buffer.from([Prefix.Nep17TransferSent]),
};
const getNep5BalanceSearchRange = createGetSearchRange(Prefix.Nep5Balance);
const getNep5TransferReceivedSearchRange = createGetSearchRange(Prefix.Nep5TransferReceived);
const getNep5TransferSentSearchRange = createGetSearchRange(Prefix.Nep5TransferSent);
const getNep17BalanceSearchRange = createGetSearchRange(Prefix.Nep17Balance);
const getNep17TransferReceivedSearchRange = createGetSearchRange(Prefix.Nep17TransferReceived);
const getNep17TransferSentSearchRange = createGetSearchRange(Prefix.Nep17TransferSent);
const createApplicationLogKey = getCreateKey({

@@ -128,5 +128,5 @@ serializeKey: (key) => key,

createBlockKey,
createNep5BalanceKey,
createNep5TransferSentKey,
createNep5TransferReceivedKey,
createNep17BalanceKey,
createNep17TransferSentKey,
createNep17TransferReceivedKey,
createApplicationLogKey,

@@ -137,6 +137,6 @@ createTransactionKey,

getStorageSearchRange,
getNep5BalanceSearchRange,
getAllNep5BalanceSearchRange,
getNep5TransferReceivedSearchRange,
getNep5TransferSentSearchRange,
getNep17BalanceSearchRange,
getAllNep17BalanceSearchRange,
getNep17TransferReceivedSearchRange,
getNep17TransferSentSearchRange,
createHeaderHashListKey,

@@ -143,0 +143,0 @@ blockHashIndexKey,

/// <reference types="node" />
import { UInt160, UInt256 } from '@neo-one/client-common';
import { BlockKey, Nep5BalanceKey, Nep5TransferKey, StorageKey, StreamOptions } from '@neo-one/node-core';
import { BlockKey, Nep17BalanceKey, Nep17TransferKey, StorageKey, StreamOptions } from '@neo-one/node-core';
export declare enum Prefix {

@@ -14,5 +14,5 @@ Block = 1,

ConsensusState = 244,
Nep5Balance = 248,
Nep5TransferSent = 249,
Nep5TransferReceived = 250,
Nep17Balance = 248,
Nep17TransferSent = 249,
Nep17TransferReceived = 250,
ApplicationLog = 251,

@@ -23,5 +23,5 @@ Settings = 221

createBlockKey: (key: BlockKey) => Buffer;
createNep5BalanceKey: (key: Nep5BalanceKey) => Buffer;
createNep5TransferSentKey: (key: Nep5TransferKey) => Buffer;
createNep5TransferReceivedKey: (key: Nep5TransferKey) => Buffer;
createNep17BalanceKey: (key: Nep17BalanceKey) => Buffer;
createNep17TransferSentKey: (key: Nep17TransferKey) => Buffer;
createNep17TransferReceivedKey: (key: Nep17TransferKey) => Buffer;
createApplicationLogKey: (key: UInt256) => Buffer;

@@ -32,9 +32,9 @@ createTransactionKey: (key: UInt256) => Buffer;

getStorageSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep5BalanceSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getAllNep5BalanceSearchRange: {
getNep17BalanceSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getAllNep17BalanceSearchRange: {
gte: Buffer;
lte: Buffer;
};
getNep5TransferReceivedSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep5TransferSentSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep17TransferReceivedSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
getNep17TransferSentSearchRange: (lookupKey: Buffer, secondaryLookupKey?: Buffer | undefined) => Required<StreamOptions>;
createHeaderHashListKey: (key: number) => Buffer;

@@ -41,0 +41,0 @@ blockHashIndexKey: Buffer;

@@ -14,5 +14,5 @@ import { common, InvalidFormatError } from '@neo-one/client-common';

Prefix[Prefix["ConsensusState"] = 244] = "ConsensusState";
Prefix[Prefix["Nep5Balance"] = 248] = "Nep5Balance";
Prefix[Prefix["Nep5TransferSent"] = 249] = "Nep5TransferSent";
Prefix[Prefix["Nep5TransferReceived"] = 250] = "Nep5TransferReceived";
Prefix[Prefix["Nep17Balance"] = 248] = "Nep17Balance";
Prefix[Prefix["Nep17TransferSent"] = 249] = "Nep17TransferSent";
Prefix[Prefix["Nep17TransferReceived"] = 250] = "Nep17TransferReceived";
Prefix[Prefix["ApplicationLog"] = 251] = "ApplicationLog";

@@ -79,13 +79,13 @@ Prefix[Prefix["Settings"] = 221] = "Settings";

});
const createNep5BalanceKey = getCreateKey({
const createNep17BalanceKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5Balance,
prefix: Prefix.Nep17Balance,
});
const createNep5TransferSentKey = getCreateKey({
const createNep17TransferSentKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5TransferSent,
prefix: Prefix.Nep17TransferSent,
});
const createNep5TransferReceivedKey = getCreateKey({
const createNep17TransferReceivedKey = getCreateKey({
serializeKey: (key) => key.serializeWire(),
prefix: Prefix.Nep5TransferReceived,
prefix: Prefix.Nep17TransferReceived,
});

@@ -111,9 +111,9 @@ const createHeaderHashListKey = getCreateKey({

const getStorageSearchRange = createGetSearchRange(Prefix.Storage);
const getAllNep5BalanceSearchRange = {
gte: Buffer.from([Prefix.Nep5Balance]),
lte: Buffer.from([Prefix.Nep5TransferSent]),
const getAllNep17BalanceSearchRange = {
gte: Buffer.from([Prefix.Nep17Balance]),
lte: Buffer.from([Prefix.Nep17TransferSent]),
};
const getNep5BalanceSearchRange = createGetSearchRange(Prefix.Nep5Balance);
const getNep5TransferReceivedSearchRange = createGetSearchRange(Prefix.Nep5TransferReceived);
const getNep5TransferSentSearchRange = createGetSearchRange(Prefix.Nep5TransferSent);
const getNep17BalanceSearchRange = createGetSearchRange(Prefix.Nep17Balance);
const getNep17TransferReceivedSearchRange = createGetSearchRange(Prefix.Nep17TransferReceived);
const getNep17TransferSentSearchRange = createGetSearchRange(Prefix.Nep17TransferSent);
const createApplicationLogKey = getCreateKey({

@@ -125,5 +125,5 @@ serializeKey: (key) => key,

createBlockKey,
createNep5BalanceKey,
createNep5TransferSentKey,
createNep5TransferReceivedKey,
createNep17BalanceKey,
createNep17TransferSentKey,
createNep17TransferReceivedKey,
createApplicationLogKey,

@@ -134,6 +134,6 @@ createTransactionKey,

getStorageSearchRange,
getNep5BalanceSearchRange,
getAllNep5BalanceSearchRange,
getNep5TransferReceivedSearchRange,
getNep5TransferSentSearchRange,
getNep17BalanceSearchRange,
getAllNep17BalanceSearchRange,
getNep17TransferReceivedSearchRange,
getNep17TransferSentSearchRange,
createHeaderHashListKey,

@@ -140,0 +140,0 @@ blockHashIndexKey,

{
"name": "@neo-one/node-storage-common",
"version": "3.0.1-preview3.1.1",
"version": "3.0.1-preview4",
"description": "NEO•ONE node storage common.",

@@ -16,5 +16,5 @@ "main": "./dist/cjs/index",

"dependencies": {
"@neo-one/client-common": "3.1.0-preview3.1.1",
"@neo-one/node-core": "3.1.0-preview3.1.1",
"@neo-one/utils": "3.0.1-preview3.1.1",
"@neo-one/client-common": "3.1.0-preview4",
"@neo-one/node-core": "3.1.0-preview4",
"@neo-one/utils": "3.0.1-preview4",
"bn.js": "^5.0.0",

@@ -21,0 +21,0 @@ "tslib": "^1.10.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