Socket
Socket
Sign inDemoInstall

@toruslabs/base-controllers

Package Overview
Dependencies
Maintainers
4
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/base-controllers - npm Package Compare versions

Comparing version 5.2.15 to 5.3.0

15

dist/types/Network/INetworkController.d.ts
import { BaseBlockTrackerConfig } from "../Block/IBlockTrackerController";
import { BaseState, IController } from "../interfaces";
export declare const createRandomId: () => string;
export declare const CHAIN_NAMESPACES: {
readonly EIP155: "eip155";
readonly SOLANA: "solana";
readonly CASPER: "casper";
readonly XRPL: "xrpl";
readonly OTHER: "other";
};
export type ChainNamespaceType = (typeof CHAIN_NAMESPACES)[keyof typeof CHAIN_NAMESPACES];
export interface ProviderConfig {
chainNamespace: ChainNamespaceType;
/**

@@ -32,3 +41,3 @@ * Block explorer url for the chain

*/
wcTarget?: string;
wsTarget?: string;
/**

@@ -48,2 +57,6 @@ * Chain Id parameter(hex with 0x prefix) for the network. Mandatory for all networks. (assign one with a map to network identifier for platforms)

isTestnet?: boolean;
/**
* Number of decimals for the currency ticker (e.g: 18)
*/
decimals?: number;
}

@@ -50,0 +63,0 @@ /**

4

package.json
{
"name": "@toruslabs/base-controllers",
"version": "5.2.15",
"version": "5.3.0",
"homepage": "https://github.com/torusresearch/controllers#readme",

@@ -66,3 +66,3 @@ "license": "ISC",

},
"gitHead": "94fa568058975305722cfc9c7d41c6353d107e61"
"gitHead": "d55cc8b2f3322c082e6108778a5bc8d99621a29f"
}

@@ -5,3 +5,14 @@ import { BaseBlockTrackerConfig } from "../Block/IBlockTrackerController";

export const CHAIN_NAMESPACES = {
EIP155: "eip155",
SOLANA: "solana",
CASPER: "casper",
XRPL: "xrpl",
OTHER: "other",
} as const;
// eip155 for all evm chains
export type ChainNamespaceType = (typeof CHAIN_NAMESPACES)[keyof typeof CHAIN_NAMESPACES];
export interface ProviderConfig {
chainNamespace: ChainNamespaceType;
/**

@@ -35,3 +46,3 @@ * Block explorer url for the chain

*/
wcTarget?: string;
wsTarget?: string;
/**

@@ -51,2 +62,6 @@ * Chain Id parameter(hex with 0x prefix) for the network. Mandatory for all networks. (assign one with a map to network identifier for platforms)

isTestnet?: boolean;
/**
* Number of decimals for the currency ticker (e.g: 18)
*/
decimals?: number;
}

@@ -53,0 +68,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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