Socket
Socket
Sign inDemoInstall

@neo-one/node-core

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.5.2-rc3 to 3.5.4-rc3

32

CHANGELOG.json

@@ -5,29 +5,9 @@ {

{
"version": "3.5.1",
"tag": "@neo-one/node-core_v3.5.1",
"date": "Fri, 04 Jun 2021 00:05:29 GMT",
"version": "3.5.3",
"tag": "@neo-one/node-core_v3.5.3",
"date": "Fri, 02 Jul 2021 23:18:53 GMT",
"comments": {
"dependency": [
{
"comment": "Dependency @neo-one/client-common version bump from ^3.5.0 to ^3.5.1."
},
{
"comment": "Dependency @neo-one/client-full-common version bump from ^3.5.0 to ^3.5.1."
}
]
}
},
{
"version": "3.5.0",
"tag": "@neo-one/node-core_v3.5.0",
"date": "Thu, 03 Jun 2021 23:57:28 GMT",
"comments": {
"minor": [
{
"comment": "Updates for Preview5"
}
],
"none": [
{
"comment": "Update packages for RC3"
"comment": "Update package versions for RC3"
}

@@ -37,6 +17,6 @@ ],

{
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.5.0."
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.5.3."
},
{
"comment": "Dependency @neo-one/client-full-common version bump from ^3.1.0 to ^3.5.0."
"comment": "Dependency @neo-one/client-full-common version bump from ^3.1.0 to ^3.5.3."
},

@@ -43,0 +23,0 @@ {

17

CHANGELOG.md
# Change Log - @neo-one/node-core
This log was last generated on Fri, 04 Jun 2021 00:05:29 GMT and should not be manually modified.
This log was last generated on Fri, 02 Jul 2021 23:18:53 GMT and should not be manually modified.
## 3.5.1
Fri, 04 Jun 2021 00:05:29 GMT
## 3.5.3
Fri, 02 Jul 2021 23:18:53 GMT
*Version update only*
## 3.5.0
Thu, 03 Jun 2021 23:57:28 GMT
### Minor changes
- Updates for Preview5
### Updates
- Update packages for RC3
- Update package versions for RC3

@@ -21,0 +12,0 @@ ## 3.1.0

@@ -14,2 +14,3 @@ /// <reference types="node" />

readonly validators: readonly ECPoint[];
readonly maxValidUntilBlockIncrement: number;
readonly blockReceivedTimeMS: number;

@@ -50,2 +51,3 @@ readonly verificationContext: TransactionVerificationContext;

readonly validators: readonly ECPoint[];
readonly maxValidUntilBlockIncrement: number;
readonly blockReceivedTimeMS: number;

@@ -68,3 +70,3 @@ readonly verificationContext: TransactionVerificationContext;

private readonly mutableCachedMessages;
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads, commitPayloads, changeViewPayloads, lastChangeViewPayloads, lastSeenMessage, transactions, transactionHashes, witnessSize, }: ConsensusContextAdd);
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads, commitPayloads, changeViewPayloads, lastChangeViewPayloads, lastSeenMessage, transactions, transactionHashes, witnessSize, maxValidUntilBlockIncrement, }: ConsensusContextAdd);
getMessage<T extends ConsensusMessage>(payload: ExtensiblePayload): T;

@@ -71,0 +73,0 @@ createPayload(message: ConsensusMessage, network: number, invocationScript: Buffer): ExtensiblePayload;

@@ -12,3 +12,3 @@ "use strict";

class ConsensusContext {
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads = [], commitPayloads = [], changeViewPayloads = [], lastChangeViewPayloads = [], lastSeenMessage = {}, transactions = {}, transactionHashes, witnessSize = 0, }) {
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads = [], commitPayloads = [], changeViewPayloads = [], lastChangeViewPayloads = [], lastSeenMessage = {}, transactions = {}, transactionHashes, witnessSize = 0, maxValidUntilBlockIncrement, }) {
this.mutableCachedMessages = {};

@@ -30,2 +30,3 @@ this.viewNumber = viewNumber;

this.witnessSize = witnessSize;
this.maxValidUntilBlockIncrement = maxValidUntilBlockIncrement;
}

@@ -103,3 +104,7 @@ get F() {

buffer: payload.data,
context: { network: payload.network, validatorsCount: this.validators.length },
context: {
network: payload.network,
validatorsCount: this.validators.length,
maxValidUntilBlockIncrement: this.maxValidUntilBlockIncrement,
},
});

@@ -129,3 +134,3 @@ this.mutableCachedMessages[client_common_1.common.uInt256ToString(payload.hash)] = message;

? this.blockBuilder
: Object.assign(Object.assign({}, this.blockBuilder), blockOptions), preparationPayloads: this.preparationPayloads, commitPayloads: this.commitPayloads, changeViewPayloads: this.changeViewPayloads, lastChangeViewPayloads: this.lastChangeViewPayloads, transactions: this.transactions, transactionHashes: this.transactionHashes, lastSeenMessage: this.lastSeenMessage }, rest));
: Object.assign(Object.assign({}, this.blockBuilder), blockOptions), preparationPayloads: this.preparationPayloads, commitPayloads: this.commitPayloads, changeViewPayloads: this.changeViewPayloads, lastChangeViewPayloads: this.lastChangeViewPayloads, transactions: this.transactions, transactionHashes: this.transactionHashes, lastSeenMessage: this.lastSeenMessage, maxValidUntilBlockIncrement: this.maxValidUntilBlockIncrement }, rest));
}

@@ -132,0 +137,0 @@ getSender(index) {

@@ -13,4 +13,6 @@ "use strict";

}
const allowedContracts = client_common_1.hasCustomContracts(scopes) ? reader.readArray(reader.readUInt160, this.maxSubItems) : [];
const allowedGroups = client_common_1.hasCustomGroups(scopes) ? reader.readArray(reader.readECPoint, this.maxSubItems) : [];
const allowedContracts = client_common_1.hasCustomContracts(scopes)
? reader.readArray(() => reader.readUInt160(), this.maxSubItems)
: [];
const allowedGroups = client_common_1.hasCustomGroups(scopes) ? reader.readArray(() => reader.readECPoint(), this.maxSubItems) : [];
return new Signer({

@@ -17,0 +19,0 @@ account,

@@ -14,2 +14,3 @@ /// <reference types="node" />

readonly validators: readonly ECPoint[];
readonly maxValidUntilBlockIncrement: number;
readonly blockReceivedTimeMS: number;

@@ -50,2 +51,3 @@ readonly verificationContext: TransactionVerificationContext;

readonly validators: readonly ECPoint[];
readonly maxValidUntilBlockIncrement: number;
readonly blockReceivedTimeMS: number;

@@ -68,3 +70,3 @@ readonly verificationContext: TransactionVerificationContext;

private readonly mutableCachedMessages;
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads, commitPayloads, changeViewPayloads, lastChangeViewPayloads, lastSeenMessage, transactions, transactionHashes, witnessSize, }: ConsensusContextAdd);
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads, commitPayloads, changeViewPayloads, lastChangeViewPayloads, lastSeenMessage, transactions, transactionHashes, witnessSize, maxValidUntilBlockIncrement, }: ConsensusContextAdd);
getMessage<T extends ConsensusMessage>(payload: ExtensiblePayload): T;

@@ -71,0 +73,0 @@ createPayload(message: ConsensusMessage, network: number, invocationScript: Buffer): ExtensiblePayload;

@@ -8,3 +8,3 @@ import { common, crypto } from '@neo-one/client-common';

export class ConsensusContext {
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads = [], commitPayloads = [], changeViewPayloads = [], lastChangeViewPayloads = [], lastSeenMessage = {}, transactions = {}, transactionHashes, witnessSize = 0, }) {
constructor({ viewNumber, myIndex, validators, blockReceivedTimeMS, verificationContext, blockOptions, preparationPayloads = [], commitPayloads = [], changeViewPayloads = [], lastChangeViewPayloads = [], lastSeenMessage = {}, transactions = {}, transactionHashes, witnessSize = 0, maxValidUntilBlockIncrement, }) {
this.mutableCachedMessages = {};

@@ -26,2 +26,3 @@ this.viewNumber = viewNumber;

this.witnessSize = witnessSize;
this.maxValidUntilBlockIncrement = maxValidUntilBlockIncrement;
}

@@ -98,3 +99,7 @@ get F() {

buffer: payload.data,
context: { network: payload.network, validatorsCount: this.validators.length },
context: {
network: payload.network,
validatorsCount: this.validators.length,
maxValidUntilBlockIncrement: this.maxValidUntilBlockIncrement,
},
});

@@ -141,2 +146,3 @@ this.mutableCachedMessages[common.uInt256ToString(payload.hash)] = message;

lastSeenMessage: this.lastSeenMessage,
maxValidUntilBlockIncrement: this.maxValidUntilBlockIncrement,
...rest,

@@ -143,0 +149,0 @@ });

@@ -10,4 +10,6 @@ import { assertWitnessScope, hasCustomContracts, hasCustomGroups, InvalidFormatError, JSONHelper, SignerModel, toWitnessScope, witnessScopeHasFlag, WitnessScopeModel, } from '@neo-one/client-common';

}
const allowedContracts = hasCustomContracts(scopes) ? reader.readArray(reader.readUInt160, this.maxSubItems) : [];
const allowedGroups = hasCustomGroups(scopes) ? reader.readArray(reader.readECPoint, this.maxSubItems) : [];
const allowedContracts = hasCustomContracts(scopes)
? reader.readArray(() => reader.readUInt160(), this.maxSubItems)
: [];
const allowedGroups = hasCustomGroups(scopes) ? reader.readArray(() => reader.readECPoint(), this.maxSubItems) : [];
return new Signer({

@@ -14,0 +16,0 @@ account,

{
"name": "@neo-one/node-core",
"version": "3.5.2-rc3",
"version": "3.5.4-rc3",
"description": "NEO•ONE core types for node packages",

@@ -15,4 +15,4 @@ "main": "./dist/cjs/index",

"dependencies": {
"@neo-one/client-common": "3.5.2-rc3",
"@neo-one/client-full-common": "3.5.2-rc3",
"@neo-one/client-common": "3.5.4-rc3",
"@neo-one/client-full-common": "3.5.4-rc3",
"@neo-one/utils": "3.3.0-rc3",

@@ -19,0 +19,0 @@ "bignumber.js": "^9.0.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