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

@neo-one/client-common

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo-one/client-common - npm Package Compare versions

Comparing version 3.7.1-n3 to 3.8.0

13

CHANGELOG.json

@@ -5,14 +5,9 @@ {

{
"version": "3.7.0",
"tag": "@neo-one/client-common_v3.7.0",
"date": "Thu, 26 Aug 2021 21:09:01 GMT",
"version": "3.8.0",
"tag": "@neo-one/client-common_v3.8.0",
"date": "Thu, 23 Sep 2021 21:28:34 GMT",
"comments": {
"minor": [
{
"comment": "Updates for Preview5"
}
],
"none": [
{
"comment": "Updates for first N3 MainNet release"
"comment": "Updates for MainNet updates"
}

@@ -19,0 +14,0 @@ ],

# Change Log - @neo-one/client-common
This log was last generated on Thu, 26 Aug 2021 21:09:01 GMT and should not be manually modified.
This log was last generated on Thu, 23 Sep 2021 21:28:34 GMT and should not be manually modified.
## 3.7.0
Thu, 26 Aug 2021 21:09:01 GMT
## 3.8.0
Thu, 23 Sep 2021 21:28:34 GMT
### Minor changes
- Updates for Preview5
### Updates
- Updates for first N3 MainNet release
- Updates for MainNet updates

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

@@ -5,2 +5,8 @@ /// <reference types="node" />

import { SerializableWire, SerializeWire } from '../Serializable';
import { VMState } from '../vm';
export declare enum Nep17TransferSource {
All = 255,
Transaction = 0,
Block = 1
}
export interface Nep17TransferModelAdd {

@@ -11,2 +17,4 @@ readonly userScriptHash: UInt160;

readonly amountBuffer: Buffer;
readonly source: 'Block' | 'Transaction';
readonly state: VMState;
}

@@ -18,5 +26,7 @@ export declare class Nep17TransferModel implements SerializableWire {

readonly amountInternal: Buffer;
readonly source: Nep17TransferSource;
readonly state: VMState;
readonly serializeWire: SerializeWire;
constructor({ userScriptHash, blockIndex, txHash, amountBuffer }: Nep17TransferModelAdd);
constructor({ userScriptHash, blockIndex, txHash, amountBuffer, source, state }: Nep17TransferModelAdd);
serializeWireBase(writer: BinaryWriter): void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Nep17TransferModel = void 0;
exports.Nep17TransferModel = exports.Nep17TransferSource = void 0;
const Serializable_1 = require("../Serializable");
var Nep17TransferSource;
(function (Nep17TransferSource) {
Nep17TransferSource[Nep17TransferSource["All"] = 255] = "All";
Nep17TransferSource[Nep17TransferSource["Transaction"] = 0] = "Transaction";
Nep17TransferSource[Nep17TransferSource["Block"] = 1] = "Block";
})(Nep17TransferSource = exports.Nep17TransferSource || (exports.Nep17TransferSource = {}));
class Nep17TransferModel {
constructor({ userScriptHash, blockIndex, txHash, amountBuffer }) {
constructor({ userScriptHash, blockIndex, txHash, amountBuffer, source, state }) {
this.serializeWire = Serializable_1.createSerializeWire(this.serializeWireBase.bind(this));

@@ -12,2 +18,4 @@ this.userScriptHash = userScriptHash;

this.amountInternal = amountBuffer;
this.source = source === 'Block' ? Nep17TransferSource.Block : Nep17TransferSource.Transaction;
this.state = state;
}

@@ -19,2 +27,4 @@ serializeWireBase(writer) {

writer.writeVarBytesLE(this.amountInternal);
writer.writeUInt8(this.source);
writer.writeUInt8(this.state);
}

@@ -21,0 +31,0 @@ }

@@ -8,2 +8,3 @@ import { JSONObject } from '@neo-one/utils';

import { VerifyResultModel } from './VerifyResultModel';
import { VMStateJSON } from './vm';
import { WitnessScopeModel } from './WitnessScopeModel';

@@ -117,2 +118,3 @@ export interface AnyContractParameterJSON {

export interface ActionBaseJSON {
readonly source: 'Transaction' | 'Block';
readonly version: number;

@@ -318,3 +320,3 @@ readonly index: string;

readonly assethash: string;
readonly transferaddress: string;
readonly transferaddress: string | null;
readonly amount: string;

@@ -324,2 +326,4 @@ readonly blockindex: number;

readonly txhash: string;
readonly source: string;
readonly state: VMStateJSON;
}

@@ -332,3 +336,4 @@ export interface HeaderJSON {

readonly merkleroot: string;
readonly time: number;
readonly time: string;
readonly timeseconds: number;
readonly nonce: string;

@@ -344,3 +349,7 @@ readonly index: number;

readonly tx: readonly ConfirmedTransactionJSON[];
readonly blockData?: BlockDataJSON;
}
export interface BlockDataJSON {
readonly blockActions: readonly ActionJSON[];
}
export interface NetworkSettingsJSON {

@@ -403,2 +412,6 @@ readonly blockcount: number;

}
export interface ValidateAddressJSON {
readonly address: string;
readonly isvalid: boolean;
}
export interface PluginJSON {

@@ -405,0 +418,0 @@ readonly name: string;

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

readonly time: BigNumber;
readonly timeSeconds: number;
readonly nonce: BigNumber;

@@ -75,3 +76,7 @@ readonly index: number;

readonly transactions: readonly ConfirmedTransaction[];
readonly blockData: RawBlockData;
}
export interface RawBlockData {
readonly blockActions: readonly RawAction[];
}
export interface RawTransactionData extends TransactionReceipt {

@@ -465,3 +470,3 @@ readonly deletedContractHashes: readonly UInt160Hex[];

readonly compiler: string;
readonly script: string;
readonly script: BufferString;
readonly tokens: readonly MethodToken[];

@@ -601,2 +606,3 @@ readonly checksum: number;

export interface RawActionBase {
readonly source: 'Block' | 'Transaction';
readonly version: number;

@@ -693,5 +699,5 @@ readonly blockIndex: number;

export interface StorageItem {
readonly key: string;
readonly value: string;
readonly key: BufferString;
readonly value: BufferString;
}
export {};

@@ -5,2 +5,8 @@ /// <reference types="node" />

import { SerializableWire, SerializeWire } from '../Serializable';
import { VMState } from '../vm';
export declare enum Nep17TransferSource {
All = 255,
Transaction = 0,
Block = 1
}
export interface Nep17TransferModelAdd {

@@ -11,2 +17,4 @@ readonly userScriptHash: UInt160;

readonly amountBuffer: Buffer;
readonly source: 'Block' | 'Transaction';
readonly state: VMState;
}

@@ -18,5 +26,7 @@ export declare class Nep17TransferModel implements SerializableWire {

readonly amountInternal: Buffer;
readonly source: Nep17TransferSource;
readonly state: VMState;
readonly serializeWire: SerializeWire;
constructor({ userScriptHash, blockIndex, txHash, amountBuffer }: Nep17TransferModelAdd);
constructor({ userScriptHash, blockIndex, txHash, amountBuffer, source, state }: Nep17TransferModelAdd);
serializeWireBase(writer: BinaryWriter): void;
}
import { createSerializeWire } from '../Serializable';
export var Nep17TransferSource;
(function (Nep17TransferSource) {
Nep17TransferSource[Nep17TransferSource["All"] = 255] = "All";
Nep17TransferSource[Nep17TransferSource["Transaction"] = 0] = "Transaction";
Nep17TransferSource[Nep17TransferSource["Block"] = 1] = "Block";
})(Nep17TransferSource || (Nep17TransferSource = {}));
export class Nep17TransferModel {
constructor({ userScriptHash, blockIndex, txHash, amountBuffer }) {
constructor({ userScriptHash, blockIndex, txHash, amountBuffer, source, state }) {
this.serializeWire = createSerializeWire(this.serializeWireBase.bind(this));

@@ -9,2 +15,4 @@ this.userScriptHash = userScriptHash;

this.amountInternal = amountBuffer;
this.source = source === 'Block' ? Nep17TransferSource.Block : Nep17TransferSource.Transaction;
this.state = state;
}

@@ -16,2 +24,4 @@ serializeWireBase(writer) {

writer.writeVarBytesLE(this.amountInternal);
writer.writeUInt8(this.source);
writer.writeUInt8(this.state);
}

@@ -18,0 +28,0 @@ }

@@ -8,2 +8,3 @@ import { JSONObject } from '@neo-one/utils';

import { VerifyResultModel } from './VerifyResultModel';
import { VMStateJSON } from './vm';
import { WitnessScopeModel } from './WitnessScopeModel';

@@ -117,2 +118,3 @@ export interface AnyContractParameterJSON {

export interface ActionBaseJSON {
readonly source: 'Transaction' | 'Block';
readonly version: number;

@@ -318,3 +320,3 @@ readonly index: string;

readonly assethash: string;
readonly transferaddress: string;
readonly transferaddress: string | null;
readonly amount: string;

@@ -324,2 +326,4 @@ readonly blockindex: number;

readonly txhash: string;
readonly source: string;
readonly state: VMStateJSON;
}

@@ -332,3 +336,4 @@ export interface HeaderJSON {

readonly merkleroot: string;
readonly time: number;
readonly time: string;
readonly timeseconds: number;
readonly nonce: string;

@@ -344,3 +349,7 @@ readonly index: number;

readonly tx: readonly ConfirmedTransactionJSON[];
readonly blockData?: BlockDataJSON;
}
export interface BlockDataJSON {
readonly blockActions: readonly ActionJSON[];
}
export interface NetworkSettingsJSON {

@@ -403,2 +412,6 @@ readonly blockcount: number;

}
export interface ValidateAddressJSON {
readonly address: string;
readonly isvalid: boolean;
}
export interface PluginJSON {

@@ -405,0 +418,0 @@ readonly name: string;

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

readonly time: BigNumber;
readonly timeSeconds: number;
readonly nonce: BigNumber;

@@ -75,3 +76,7 @@ readonly index: number;

readonly transactions: readonly ConfirmedTransaction[];
readonly blockData: RawBlockData;
}
export interface RawBlockData {
readonly blockActions: readonly RawAction[];
}
export interface RawTransactionData extends TransactionReceipt {

@@ -465,3 +470,3 @@ readonly deletedContractHashes: readonly UInt160Hex[];

readonly compiler: string;
readonly script: string;
readonly script: BufferString;
readonly tokens: readonly MethodToken[];

@@ -601,2 +606,3 @@ readonly checksum: number;

export interface RawActionBase {
readonly source: 'Block' | 'Transaction';
readonly version: number;

@@ -693,5 +699,5 @@ readonly blockIndex: number;

export interface StorageItem {
readonly key: string;
readonly value: string;
readonly key: BufferString;
readonly value: BufferString;
}
export {};
{
"name": "@neo-one/client-common",
"version": "3.7.1-n3",
"version": "3.8.0",
"description": "NEO•ONE client common code.",

@@ -17,3 +17,3 @@ "main": "./dist/cjs/index",

"@neo-one/ec-key": "^0.1.0",
"@neo-one/utils": "3.3.0-n3",
"@neo-one/utils": "^3.2.0",
"@types/bn.js": "^4.11.5",

@@ -20,0 +20,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