@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.15 to 5.3.0
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 @@ /** |
{ | ||
"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
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
4027999
12290