@xyo-network/origin-chain
Advanced tools
Comparing version 0.24.0 to 0.31.0
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { XyoBaseSerializable, IXyoSerializableObject, IXyoDeserializer } from "@xyo-network/serialization"; | ||
@@ -2,0 +3,0 @@ import { IXyoHash } from "@xyo-network/hashing"; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { XyoBaseSerializable, IXyoDeserializer } from "@xyo-network/serialization"; | ||
@@ -2,0 +3,0 @@ export declare class XyoIndex extends XyoBaseSerializable { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IXyoHash } from '@xyo-network/hashing'; | ||
@@ -2,0 +3,0 @@ import { IXyoSigner, IXyoPublicKey } from '@xyo-network/signing'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Friday, 22nd February 2019 10:14:46 am | ||
* @Last modified time: Wednesday, 6th March 2019 4:42:51 pm | ||
* @License: All Rights Reserved | ||
@@ -75,3 +75,3 @@ * @Copyright: Copyright XY | The Findables Company | ||
if (this.mutex !== mutex) | ||
throw new errors_1.XyoError(`Can not release mutex, does not exist`, errors_1.XyoErrors.CRITICAL); | ||
throw new errors_1.XyoError(`Can not release mutex, does not exist`); | ||
this.mutex.isActive = false; | ||
@@ -107,3 +107,3 @@ this.mutex = undefined; | ||
if (currentIndex !== 0) { | ||
throw new errors_1.XyoError(`Could not create Genesis block as one already exists`, errors_1.XyoErrors.CRITICAL); | ||
throw new errors_1.XyoError(`Could not create Genesis block as one already exists`); | ||
} | ||
@@ -110,0 +110,0 @@ this.logInfo(`Creating genesis block`); |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IXyoOriginChainRepository, IBlockInOriginChainResult, IXyoOriginChainMutex } from './@types'; | ||
@@ -13,5 +14,3 @@ import { IXyoStorageProvider } from '@xyo-network/storage'; | ||
private inMemoryDelegate; | ||
constructor(storageProvider: IXyoStorageProvider, originBlockResolver: { | ||
getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined>; | ||
}, serializationService: IXyoSerializationService); | ||
constructor(storageProvider: IXyoStorageProvider, originBlockResolver: IXyoOriginBlockByHash, serializationService: IXyoSerializationService); | ||
acquireMutex(): Promise<IXyoOriginChainMutex | undefined>; | ||
@@ -41,2 +40,6 @@ releaseMutex(mutex: IXyoOriginChainMutex): Promise<void>; | ||
} | ||
interface IXyoOriginBlockByHash { | ||
getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=xyo-origin-chain-local-storage-repository.d.ts.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Friday, 22nd February 2019 10:15:38 am | ||
* @Last modified time: Wednesday, 6th March 2019 1:52:49 pm | ||
* @License: All Rights Reserved | ||
@@ -11,0 +11,0 @@ * @Copyright: Copyright XY | The Findables Company |
{ | ||
"name": "@xyo-network/origin-chain", | ||
"version": "0.24.0", | ||
"version": "0.31.0", | ||
"description": "Utilities for managing an origin chain in the xyo network", | ||
@@ -10,11 +10,11 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@xyo-network/base": "^0.24.0", | ||
"@xyo-network/bound-witness": "^0.24.0", | ||
"@xyo-network/buffer-utils": "^0.24.0", | ||
"@xyo-network/errors": "^0.24.0", | ||
"@xyo-network/hashing": "^0.24.0", | ||
"@xyo-network/serialization": "^0.24.0", | ||
"@xyo-network/serialization-schema": "^0.24.0", | ||
"@xyo-network/signing": "^0.24.0", | ||
"@xyo-network/storage": "^0.24.0" | ||
"@xyo-network/base": "^0.31.0", | ||
"@xyo-network/bound-witness": "^0.31.0", | ||
"@xyo-network/buffer-utils": "^0.31.0", | ||
"@xyo-network/errors": "^0.31.0", | ||
"@xyo-network/hashing": "^0.31.0", | ||
"@xyo-network/serialization": "^0.31.0", | ||
"@xyo-network/serialization-schema": "^0.31.0", | ||
"@xyo-network/signing": "^0.31.0", | ||
"@xyo-network/storage": "^0.31.0" | ||
}, | ||
@@ -30,3 +30,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "629618ae9a38cc374b662561d1786827b618c2fd" | ||
"gitHead": "19f9752b9915e96430496a0adf86e5dc79c08ded" | ||
} |
@@ -7,3 +7,3 @@ /* | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Friday, 22nd February 2019 10:14:46 am | ||
* @Last modified time: Wednesday, 6th March 2019 4:42:51 pm | ||
* @License: All Rights Reserved | ||
@@ -82,3 +82,3 @@ * @Copyright: Copyright XY | The Findables Company | ||
if (this.mutex !== mutex) throw new XyoError(`Can not release mutex, does not exist`, XyoErrors.CRITICAL) | ||
if (this.mutex !== mutex) throw new XyoError(`Can not release mutex, does not exist`) | ||
this.mutex.isActive = false | ||
@@ -116,3 +116,3 @@ this.mutex = undefined | ||
if (currentIndex !== 0) { | ||
throw new XyoError(`Could not create Genesis block as one already exists`, XyoErrors.CRITICAL) | ||
throw new XyoError(`Could not create Genesis block as one already exists`) | ||
} | ||
@@ -119,0 +119,0 @@ |
@@ -7,3 +7,3 @@ /* | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Friday, 22nd February 2019 10:15:38 am | ||
* @Last modified time: Wednesday, 6th March 2019 1:52:49 pm | ||
* @License: All Rights Reserved | ||
@@ -16,3 +16,3 @@ * @Copyright: Copyright XY | The Findables Company | ||
import { IXyoStorageProvider } from '@xyo-network/storage' | ||
import { IXyoSigner, IXyoPublicKey, IXyoSignerProvider } from '@xyo-network/signing' | ||
import { IXyoSigner, IXyoPublicKey } from '@xyo-network/signing' | ||
import { IXyoHash } from '@xyo-network/hashing' | ||
@@ -30,3 +30,3 @@ import { IXyoSerializationService } from '@xyo-network/serialization' | ||
private readonly storageProvider: IXyoStorageProvider, | ||
private readonly originBlockResolver: { getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined> }, | ||
private readonly originBlockResolver: IXyoOriginBlockByHash, | ||
private readonly serializationService: IXyoSerializationService | ||
@@ -260,1 +260,5 @@ ) { | ||
} | ||
interface IXyoOriginBlockByHash { | ||
getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined> | ||
} |
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
110680
1907
+ Added@xyo-network/base@0.31.0(transitive)
+ Added@xyo-network/bound-witness@0.31.0(transitive)
+ Added@xyo-network/buffer-utils@0.31.0(transitive)
+ Added@xyo-network/errors@0.31.0(transitive)
+ Added@xyo-network/hashing@0.31.0(transitive)
+ Added@xyo-network/meta-list@0.31.0(transitive)
+ Added@xyo-network/serialization@0.31.0(transitive)
+ Added@xyo-network/serialization-schema@0.31.0(transitive)
+ Added@xyo-network/signing@0.31.0(transitive)
+ Added@xyo-network/storage@0.31.0(transitive)
+ Added@xyo-network/utils@0.31.0(transitive)
+ Addedbase-x@3.0.10(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbs58@4.0.1(transitive)
+ Addedbuffer-to-arraybuffer@0.0.5(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddom-walk@0.1.2(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedeth-lib@0.2.8(transitive)
+ Addedglobal@4.4.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-function@1.0.2(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addedmin-document@2.19.0(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedparse-headers@2.0.5(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@2.8.2(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)
+ Addedtimed-out@4.0.1(transitive)
+ Addedurl-set-query@1.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxhr@2.6.0(transitive)
+ Addedxhr-request@1.1.0(transitive)
+ Addedxhr-request-promise@0.1.3(transitive)
+ Addedxtend@4.0.2(transitive)
- Removed@xyo-network/base@0.24.0(transitive)
- Removed@xyo-network/bound-witness@0.24.0(transitive)
- Removed@xyo-network/buffer-utils@0.24.0(transitive)
- Removed@xyo-network/errors@0.24.0(transitive)
- Removed@xyo-network/hashing@0.24.0(transitive)
- Removed@xyo-network/serialization@0.24.0(transitive)
- Removed@xyo-network/serialization-schema@0.24.0(transitive)
- Removed@xyo-network/signing@0.24.0(transitive)
- Removed@xyo-network/storage@0.24.0(transitive)
Updated@xyo-network/base@^0.31.0
Updated@xyo-network/errors@^0.31.0
Updated@xyo-network/hashing@^0.31.0
Updated@xyo-network/signing@^0.31.0
Updated@xyo-network/storage@^0.31.0