@neo-one/node-vm
Advanced tools
Comparing version 3.6.1-rc4 to 3.7.1-n3
@@ -5,5 +5,5 @@ { | ||
{ | ||
"version": "3.6.0", | ||
"tag": "@neo-one/node-vm_v3.6.0", | ||
"date": "Thu, 05 Aug 2021 22:47:11 GMT", | ||
"version": "3.7.0", | ||
"tag": "@neo-one/node-vm_v3.7.0", | ||
"date": "Thu, 26 Aug 2021 21:09:01 GMT", | ||
"comments": { | ||
@@ -17,6 +17,3 @@ "minor": [ | ||
{ | ||
"comment": "Update VM for RC4" | ||
}, | ||
{ | ||
"comment": "Updates for RC4" | ||
"comment": "Updates for first N3 MainNet release" | ||
} | ||
@@ -26,3 +23,3 @@ ], | ||
{ | ||
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.6.0." | ||
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.7.0." | ||
}, | ||
@@ -29,0 +26,0 @@ { |
# Change Log - @neo-one/node-vm | ||
This log was last generated on Thu, 05 Aug 2021 22:47:11 GMT and should not be manually modified. | ||
This log was last generated on Thu, 26 Aug 2021 21:09:01 GMT and should not be manually modified. | ||
## 3.6.0 | ||
Thu, 05 Aug 2021 22:47:11 GMT | ||
## 3.7.0 | ||
Thu, 26 Aug 2021 21:09:01 GMT | ||
@@ -14,4 +14,3 @@ ### Minor changes | ||
- Update VM for RC4 | ||
- Updates for RC4 | ||
- Updates for first N3 MainNet release | ||
@@ -18,0 +17,0 @@ ## 3.1.0 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseChangeReturns = void 0; | ||
const node_core_1 = require("@neo-one/node-core"); | ||
exports.parseChangeReturns = (changes) => changes.map(parseChangeReturn); | ||
const appendStoragePrefix = (keyIn) => Buffer.concat([Buffer.from([node_core_1.StoragePrefix]), keyIn]); | ||
const parseChangeReturn = (change) => { | ||
@@ -10,3 +12,3 @@ switch (change.type) { | ||
type: 'put', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
value: change.value, | ||
@@ -17,3 +19,3 @@ }; | ||
type: 'put', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
value: change.value, | ||
@@ -24,3 +26,3 @@ }; | ||
type: 'del', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
}; | ||
@@ -27,0 +29,0 @@ default: |
@@ -7,3 +7,4 @@ /// <reference types="node" /> | ||
readonly message: string; | ||
readonly position: number; | ||
} | ||
export declare const convertLog: ({ containerHash, callingScriptHash, message }: LogReturn) => VMLog; | ||
export declare const convertLog: ({ containerHash, callingScriptHash, message, position }: LogReturn) => VMLog; |
@@ -5,8 +5,9 @@ "use strict"; | ||
const client_common_1 = require("@neo-one/client-common"); | ||
exports.convertLog = ({ containerHash, callingScriptHash, message }) => ({ | ||
exports.convertLog = ({ containerHash, callingScriptHash, message, position }) => ({ | ||
containerHash: containerHash ? client_common_1.common.asUInt256(containerHash) : undefined, | ||
callingScriptHash: client_common_1.common.asUInt160(callingScriptHash), | ||
message, | ||
position, | ||
}); | ||
//# sourceMappingURL=log.js.map |
@@ -10,3 +10,2 @@ import { VMProtocolSettingsIn, VMProtocolSettingsReturn } from '@neo-one/node-core'; | ||
readonly dispose_engine: DispatchMethod<boolean>; | ||
readonly snapshot_reset: DispatchMethod<boolean>; | ||
readonly dispose: DispatchMethod<boolean>; | ||
@@ -13,0 +12,0 @@ readonly get_config: DispatchMethod<VMProtocolSettingsReturn>; |
@@ -13,3 +13,4 @@ import { SnapshotName } from '@neo-one/node-core'; | ||
readonly snapshot_get_change_set: DispatchMethod<readonly ChangeReturn[], SnapshotChoice>; | ||
readonly snapshot_reset: DispatchMethod<boolean>; | ||
} | ||
export {}; |
@@ -15,3 +15,4 @@ import { SnapshotName } from '@neo-one/node-core'; | ||
clone(): void; | ||
reset(): boolean; | ||
} | ||
export {}; |
@@ -34,2 +34,7 @@ "use strict"; | ||
} | ||
reset() { | ||
return this.dispatch({ | ||
method: 'snapshot_reset', | ||
}); | ||
} | ||
} | ||
@@ -36,0 +41,0 @@ exports.SnapshotHandler = SnapshotHandler; |
@@ -1,2 +0,1 @@ | ||
export declare type ExecutionContext = any; | ||
export interface DispatchMethodNoArgs<Return = any> { | ||
@@ -3,0 +2,0 @@ readonly returnType: Return; |
@@ -0,2 +1,4 @@ | ||
import { StoragePrefix } from '@neo-one/node-core'; | ||
export const parseChangeReturns = (changes) => changes.map(parseChangeReturn); | ||
const appendStoragePrefix = (keyIn) => Buffer.concat([Buffer.from([StoragePrefix]), keyIn]); | ||
const parseChangeReturn = (change) => { | ||
@@ -7,3 +9,3 @@ switch (change.type) { | ||
type: 'put', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
value: change.value, | ||
@@ -14,3 +16,3 @@ }; | ||
type: 'put', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
value: change.value, | ||
@@ -21,3 +23,3 @@ }; | ||
type: 'del', | ||
key: change.key, | ||
key: appendStoragePrefix(change.key), | ||
}; | ||
@@ -24,0 +26,0 @@ default: |
@@ -7,3 +7,4 @@ /// <reference types="node" /> | ||
readonly message: string; | ||
readonly position: number; | ||
} | ||
export declare const convertLog: ({ containerHash, callingScriptHash, message }: LogReturn) => VMLog; | ||
export declare const convertLog: ({ containerHash, callingScriptHash, message, position }: LogReturn) => VMLog; |
import { common } from '@neo-one/client-common'; | ||
export const convertLog = ({ containerHash, callingScriptHash, message }) => ({ | ||
export const convertLog = ({ containerHash, callingScriptHash, message, position }) => ({ | ||
containerHash: containerHash ? common.asUInt256(containerHash) : undefined, | ||
callingScriptHash: common.asUInt160(callingScriptHash), | ||
message, | ||
position, | ||
}); | ||
//# sourceMappingURL=log.js.map |
@@ -10,3 +10,2 @@ import { VMProtocolSettingsIn, VMProtocolSettingsReturn } from '@neo-one/node-core'; | ||
readonly dispose_engine: DispatchMethod<boolean>; | ||
readonly snapshot_reset: DispatchMethod<boolean>; | ||
readonly dispose: DispatchMethod<boolean>; | ||
@@ -13,0 +12,0 @@ readonly get_config: DispatchMethod<VMProtocolSettingsReturn>; |
@@ -13,3 +13,4 @@ import { SnapshotName } from '@neo-one/node-core'; | ||
readonly snapshot_get_change_set: DispatchMethod<readonly ChangeReturn[], SnapshotChoice>; | ||
readonly snapshot_reset: DispatchMethod<boolean>; | ||
} | ||
export {}; |
@@ -15,3 +15,4 @@ import { SnapshotName } from '@neo-one/node-core'; | ||
clone(): void; | ||
reset(): boolean; | ||
} | ||
export {}; |
@@ -31,4 +31,9 @@ import { parseChangeReturns } from './converters'; | ||
} | ||
reset() { | ||
return this.dispatch({ | ||
method: 'snapshot_reset', | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=SnapshotHandler.js.map |
@@ -1,2 +0,1 @@ | ||
export declare type ExecutionContext = any; | ||
export interface DispatchMethodNoArgs<Return = any> { | ||
@@ -3,0 +2,0 @@ readonly returnType: Return; |
@@ -93,3 +93,2 @@ /Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/Dispatcher.deps.json | ||
/Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Resources.Writer.dll | ||
/Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Runtime.CompilerServices.Unsafe.dll | ||
/Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Runtime.CompilerServices.VisualC.dll | ||
@@ -346,1 +345,2 @@ /Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Runtime.dll | ||
/Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Security.Cryptography.Xml.dll | ||
/Users/spencercorwin/neo-one/packages/neo-one-node-vm/lib/bin/Debug/netcoreapp3.0/refs/System.Runtime.CompilerServices.Unsafe.dll |
{ | ||
"name": "@neo-one/node-vm", | ||
"version": "3.6.1-rc4", | ||
"version": "3.7.1-n3", | ||
"description": "NEO•ONE C# Wrapper for Neo3 VM", | ||
@@ -17,5 +17,5 @@ "main": "./dist/cjs/index", | ||
"@neo-one/edge": "^15.0.0", | ||
"@neo-one/node-core": "3.6.1-rc4", | ||
"@neo-one/client-common": "3.6.1-rc4", | ||
"@neo-one/utils": "3.3.0-rc4", | ||
"@neo-one/node-core": "3.7.1-n3", | ||
"@neo-one/client-common": "3.7.1-n3", | ||
"@neo-one/utils": "3.3.0-n3", | ||
"bn.js": "^5.0.0" | ||
@@ -22,0 +22,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
443
15001
57819194
+ Added@neo-one/client-common@3.7.1-n3(transitive)
+ Added@neo-one/client-full-common@3.7.1-n3(transitive)
+ Added@neo-one/node-core@3.7.1-n3(transitive)
+ Added@neo-one/utils@3.3.0-n3(transitive)
- Removed@neo-one/client-common@3.6.1-rc4(transitive)
- Removed@neo-one/client-full-common@3.6.1-rc4(transitive)
- Removed@neo-one/node-core@3.6.1-rc4(transitive)
- Removed@neo-one/utils@3.3.0-rc4(transitive)
Updated@neo-one/node-core@3.7.1-n3
Updated@neo-one/utils@3.3.0-n3