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

@xyo-network/origin-chain

Package Overview
Dependencies
Maintainers
6
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/origin-chain - npm Package Compare versions

Comparing version 0.24.0 to 0.31.0

1

dist/xyo-bridge-hash-set.d.ts

@@ -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';

6

dist/xyo-origin-chain-in-memory-repository.js

@@ -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

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