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

@haechi-labs/henesis-sdk-js

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haechi-labs/henesis-sdk-js - npm Package Compare versions

Comparing version 1.0.0-beta.6 to 1.0.0-beta.7

2

CHANGELOG.md

@@ -6,4 +6,4 @@ # Change Log

# [1.0.0-beta.6](https://github.com/HAECHI-LABS/henesis-sdk-js/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2019-10-28)
# [1.0.0-beta.7](https://github.com/HAECHI-LABS/henesis-sdk-js/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2019-10-28)
**Note:** Version bump only for package @haechi-labs/henesis-sdk-js

@@ -1,15 +0,3 @@

import { DataStreamOption, StreamedBlockTopic, StreamedBlockSubscriber, TransactionTopic, TrackerOption, TransactionsSubscriber } from "./types";
export default class Henesis {
private baseUrl;
private subscriptionFactory;
private readonly providerController;
private readonly clientId;
constructor(clientId: string, baseUrl?: string);
subscribe(topic: TransactionTopic, options: TrackerOption, callback?: (error: Error, result: any) => void): Promise<TransactionsSubscriber>;
subscribe(topic: StreamedBlockTopic, options: DataStreamOption, callback?: (error: Error, result: any) => void): Promise<StreamedBlockSubscriber>;
trackTransaction(txHash: string, options: {
confirmation: number;
timeout: number;
}): Promise<any>;
setBaseUrl(url: string): void;
}
import TransactionTracker from "@haechi-labs/henesis-tracker";
import EventStreamer from "@haechi-labs/henesis-streamer";
export { TransactionTracker, EventStreamer };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SubscriptionsFactory_1 = require("./factories/SubscriptionsFactory");
const ProviderController_1 = require("./controllers/ProviderController");
const henesis_provider_1 = require("@haechi-labs/henesis-provider");
const UrlResolver_1 = require("./resolvers/UrlResolver");
const MethodProxy_1 = require("./proxy/MethodProxy");
const MethodFactory_1 = require("./factories/MethodFactory");
class Henesis {
constructor(clientId, baseUrl = 'wss://privatebeta.henesis.io') {
this.subscriptionFactory = new SubscriptionsFactory_1.default();
this.providerController = new ProviderController_1.default(new henesis_provider_1.ProvidersFactory(), new UrlResolver_1.default(), baseUrl, clientId);
this.clientId = clientId;
this.baseUrl = baseUrl;
return new MethodProxy_1.default(this, new MethodFactory_1.default(this.providerController));
}
async subscribe(topic, options, callback) {
return this.subscriptionFactory
.createSubscription(this.providerController, topic, options)
.subscribe(options.subscriptionId, callback);
}
async trackTransaction(txHash, options) { }
;
setBaseUrl(url) {
this.baseUrl = url;
}
}
exports.default = Henesis;
const henesis_tracker_1 = require("@haechi-labs/henesis-tracker");
exports.TransactionTracker = henesis_tracker_1.default;
const henesis_streamer_1 = require("@haechi-labs/henesis-streamer");
exports.EventStreamer = henesis_streamer_1.default;
//# sourceMappingURL=Henesis.js.map

@@ -1,2 +0,1 @@

import Henesis from './Henesis';
export default Henesis;
export * from "./Henesis";
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
const Henesis_1 = require("./Henesis");
exports.default = Henesis_1.default;
__export(require("./Henesis"));
//# sourceMappingURL=index.js.map
{
"name": "@haechi-labs/henesis-sdk-js",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "henesis-sdk-js",

@@ -16,4 +16,3 @@ "main": "./lib/index.js",

"@haechi-labs/henesis-tracker": "^1.0.0-beta.6"
},
"gitHead": "5c387d574822a7fff07a244c4211e0767cd86c44"
}
}

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