New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ckb-lumos/rpc

Package Overview
Dependencies
Maintainers
3
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckb-lumos/rpc - npm Package Compare versions

Comparing version 0.16.0 to 0.17.0-rc5

3

lib/index.d.ts

@@ -13,5 +13,6 @@ import { Alert, BannedAddr, Block, BlockEconomicState, CellWithStatus, ChainInfo, Consensus, DryRunResult, Epoch, Hash, Header, HexNumber, HexString, Indexer, LocalNode, OutPoint, RemoteNode, SyncState, Transaction, TransactionProof, TransactionWithStatus, TxPoolIds, TxPoolInfo, TxPoolVerbosity } from "@ckb-lumos/base";

*/
constructor(uri: string, indexer?: Indexer, { waitForSyncCheckIntervalSeconds, blockDifference, }?: {
constructor(uri: string, indexer?: Indexer, { waitForSyncCheckIntervalSeconds, blockDifference, rpcOptions, }?: {
waitForSyncCheckIntervalSeconds?: number;
blockDifference?: number;
rpcOptions?: object;
});

@@ -18,0 +19,0 @@ /**

@@ -20,4 +20,4 @@ "use strict";

class RpcProxy {
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, } = {}) {
this.rpc = new ckb_js_toolkit_1.RPC(uri);
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, rpcOptions = {}, } = {}) {
this.rpc = new ckb_js_toolkit_1.RPC(uri, rpcOptions);
this.indexer = indexer;

@@ -59,6 +59,7 @@ this.waitForSyncCheckIntervalSeconds = waitForSyncCheckIntervalSeconds;

*/
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, } = {}) {
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, rpcOptions = {}, } = {}) {
this.rpcProxy = new RpcProxy(uri, indexer, {
waitForSyncCheckIntervalSeconds,
blockDifference,
rpcOptions,
}).getProxy();

@@ -65,0 +66,0 @@ }

{
"name": "@ckb-lumos/rpc",
"version": "0.16.0",
"version": "0.17.0-rc5",
"description": "RPC module for CKB",

@@ -13,5 +13,2 @@ "author": "Xuejie Xiao <xxuejie@gmail.com>",

},
"cpu": [
"x64"
],
"os": [

@@ -50,3 +47,3 @@ "win32",

"dependencies": {
"@ckb-lumos/base": "^0.16.0",
"@ckb-lumos/base": "^0.17.0-rc5",
"ckb-js-toolkit": "^0.10.2"

@@ -53,0 +50,0 @@ },

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