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

@0xsequence/network

Package Overview
Dependencies
Maintainers
7
Versions
508
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/network - npm Package Compare versions

Comparing version 0.0.0-20240315171450 to 0.0.0-20240321190537

2

dist/0xsequence-network.cjs.dev.js

@@ -223,3 +223,3 @@ 'use strict';

}
if (utils.isBigIntish(chainIdLike)) {
if (utils.isBigNumberish(chainIdLike)) {
return BigInt(chainIdLike);

@@ -226,0 +226,0 @@ }

@@ -223,3 +223,3 @@ 'use strict';

}
if (utils.isBigIntish(chainIdLike)) {
if (utils.isBigNumberish(chainIdLike)) {
return BigInt(chainIdLike);

@@ -226,0 +226,0 @@ }

import { networks, ChainId } from '../constants/dist/0xsequence-network-constants.esm.js';
export { ChainId, NetworkType, networks } from '../constants/dist/0xsequence-network-constants.esm.js';
import { isBigIntish, logger } from '@0xsequence/utils';
import { isBigNumberish, logger } from '@0xsequence/utils';
import { ethers } from 'ethers';

@@ -220,3 +220,3 @@

}
if (isBigIntish(chainIdLike)) {
if (isBigNumberish(chainIdLike)) {
return BigInt(chainIdLike);

@@ -223,0 +223,0 @@ }

import { ethers } from 'ethers';
import { Indexer } from '@0xsequence/indexer';
import { Relayer, RpcRelayerOptions } from '@0xsequence/relayer';
import { BigIntish } from '@0xsequence/utils';
import { NetworkMetadata } from "./constants.js";

@@ -19,4 +18,4 @@ export type NetworkConfig = NetworkMetadata & {

export declare function findSupportedNetwork(chainIdOrName: string | ChainIdLike): NetworkConfig | undefined;
export type ChainIdLike = NetworkConfig | BigIntish;
export type ChainIdLike = NetworkConfig | ethers.BigNumberish;
export declare function toChainIdNumber(chainIdLike: ChainIdLike): bigint;
export declare const allNetworks: NetworkConfig[];
{
"name": "@0xsequence/network",
"version": "0.0.0-20240315171450",
"version": "0.0.0-20240321190537",
"description": "network sub-package for Sequence",

@@ -12,6 +12,6 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network",

"dependencies": {
"@0xsequence/core": "0.0.0-20240315171450",
"@0xsequence/indexer": "0.0.0-20240315171450",
"@0xsequence/relayer": "0.0.0-20240315171450",
"@0xsequence/utils": "0.0.0-20240315171450"
"@0xsequence/core": "0.0.0-20240321190537",
"@0xsequence/indexer": "0.0.0-20240321190537",
"@0xsequence/relayer": "0.0.0-20240321190537",
"@0xsequence/utils": "0.0.0-20240321190537"
},

@@ -18,0 +18,0 @@ "peerDependencies": {

@@ -5,3 +5,3 @@ import { ethers } from 'ethers'

import { findNetworkConfig, stringTemplate, validateAndSortNetworks } from './utils'
import { isBigIntish, BigIntish } from '@0xsequence/utils'
import { isBigNumberish } from '@0xsequence/utils'
import { ChainId, NetworkMetadata, networks } from './constants'

@@ -34,3 +34,3 @@

export type ChainIdLike = NetworkConfig | BigIntish
export type ChainIdLike = NetworkConfig | ethers.BigNumberish

@@ -42,3 +42,3 @@ export function toChainIdNumber(chainIdLike: ChainIdLike): bigint {

if (isBigIntish(chainIdLike)) {
if (isBigNumberish(chainIdLike)) {
return BigInt(chainIdLike)

@@ -45,0 +45,0 @@ }

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

import { BigIntish } from '@0xsequence/utils'
import { ethers } from 'ethers'
import { ChainIdLike } from '.'

@@ -16,3 +16,3 @@ import { NetworkConfig } from './config'

}
return Number(BigInt(chainId as BigIntish))
return Number(BigInt(chainId as ethers.BigNumberish))
}

@@ -19,0 +19,0 @@

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