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

@0xsequence/network

Package Overview
Dependencies
Maintainers
6
Versions
477
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 2.0.19 to 2.0.20

2

constants/dist/0xsequence-network-constants.cjs.d.ts

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

export * from "../../dist/declarations/src/constants";
export * from "../../dist/declarations/src/constants.js";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1uZXR3b3JrLWNvbnN0YW50cy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9jb25zdGFudHMuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9

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

export * from "./declarations/src/index";
export * from "./declarations/src/index.js";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1uZXR3b3JrLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==

@@ -10,14 +10,9 @@ 'use strict';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return target;
};
return _extends.apply(this, arguments);
return n;
}, _extends.apply(null, arguments);
}

@@ -724,17 +719,15 @@

function _classPrivateFieldBase(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver;
function _classPrivateFieldLooseBase(e, t) {
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var id = 0;
function _classPrivateFieldKey(name) {
return "__private_" + id++ + "_" + name;
function _classPrivateFieldLooseKey(e) {
return "__private_" + id++ + "_" + e;
}
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender");
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender");
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware.

@@ -770,3 +763,3 @@ class JsonRpcProvider extends ethers.ethers.JsonRpcProvider {

params,
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++,
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++,
jsonrpc: '2.0'

@@ -812,3 +805,3 @@ };

const blockCache = options == null ? void 0 : options.blockCache;
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId;
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId;

@@ -827,6 +820,6 @@ // NOTE: it will either use the middleware stack passed to the constructor

})], new JsonRpcHandler(this.fetch, chainId));
_classPrivateFieldBase(this, _sender)[_sender] = router;
_classPrivateFieldLooseBase(this, _sender)[_sender] = router;
}
async request(request) {
return _classPrivateFieldBase(this, _sender)[_sender].request(request);
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request);
}

@@ -841,3 +834,3 @@ async send(method, params, chainId) {

async getNetwork() {
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId];
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId];
if (chainId) {

@@ -854,3 +847,3 @@ const network = constants_dist_0xsequenceNetworkConstants.networks[chainId];

const chainIdHex = await this.send('eth_chainId', []);
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex);
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex);
return this.getNetwork();

@@ -857,0 +850,0 @@ }

@@ -10,14 +10,9 @@ 'use strict';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return target;
};
return _extends.apply(this, arguments);
return n;
}, _extends.apply(null, arguments);
}

@@ -724,17 +719,15 @@

function _classPrivateFieldBase(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver;
function _classPrivateFieldLooseBase(e, t) {
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var id = 0;
function _classPrivateFieldKey(name) {
return "__private_" + id++ + "_" + name;
function _classPrivateFieldLooseKey(e) {
return "__private_" + id++ + "_" + e;
}
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender");
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender");
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware.

@@ -770,3 +763,3 @@ class JsonRpcProvider extends ethers.ethers.JsonRpcProvider {

params,
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++,
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++,
jsonrpc: '2.0'

@@ -812,3 +805,3 @@ };

const blockCache = options == null ? void 0 : options.blockCache;
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId;
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId;

@@ -827,6 +820,6 @@ // NOTE: it will either use the middleware stack passed to the constructor

})], new JsonRpcHandler(this.fetch, chainId));
_classPrivateFieldBase(this, _sender)[_sender] = router;
_classPrivateFieldLooseBase(this, _sender)[_sender] = router;
}
async request(request) {
return _classPrivateFieldBase(this, _sender)[_sender].request(request);
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request);
}

@@ -841,3 +834,3 @@ async send(method, params, chainId) {

async getNetwork() {
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId];
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId];
if (chainId) {

@@ -854,3 +847,3 @@ const network = constants_dist_0xsequenceNetworkConstants.networks[chainId];

const chainIdHex = await this.send('eth_chainId', []);
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex);
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex);
return this.getNetwork();

@@ -857,0 +850,0 @@ }

@@ -7,14 +7,9 @@ import { networks, ChainId } from '../constants/dist/0xsequence-network-constants.esm.js';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return target;
};
return _extends.apply(this, arguments);
return n;
}, _extends.apply(null, arguments);
}

@@ -721,17 +716,15 @@

function _classPrivateFieldBase(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver;
function _classPrivateFieldLooseBase(e, t) {
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var id = 0;
function _classPrivateFieldKey(name) {
return "__private_" + id++ + "_" + name;
function _classPrivateFieldLooseKey(e) {
return "__private_" + id++ + "_" + e;
}
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender");
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId");
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId");
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender");
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware.

@@ -767,3 +760,3 @@ class JsonRpcProvider extends ethers.JsonRpcProvider {

params,
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++,
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++,
jsonrpc: '2.0'

@@ -809,3 +802,3 @@ };

const blockCache = options == null ? void 0 : options.blockCache;
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId;
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId;

@@ -824,6 +817,6 @@ // NOTE: it will either use the middleware stack passed to the constructor

})], new JsonRpcHandler(this.fetch, chainId));
_classPrivateFieldBase(this, _sender)[_sender] = router;
_classPrivateFieldLooseBase(this, _sender)[_sender] = router;
}
async request(request) {
return _classPrivateFieldBase(this, _sender)[_sender].request(request);
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request);
}

@@ -838,3 +831,3 @@ async send(method, params, chainId) {

async getNetwork() {
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId];
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId];
if (chainId) {

@@ -851,3 +844,3 @@ const network = networks[chainId];

const chainIdHex = await this.send('eth_chainId', []);
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex);
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex);
return this.getNetwork();

@@ -854,0 +847,0 @@ }

@@ -29,10 +29,10 @@ import { ethers } from 'ethers';

chainId: ChainId;
type?: import("./constants.js").NetworkType | undefined;
type?: import("./constants.js").NetworkType;
name: string;
title?: string | undefined;
logoURI?: string | undefined;
blockExplorer?: import("./constants.js").BlockExplorerConfig | undefined;
ensAddress?: string | undefined;
testnet?: boolean | undefined;
deprecated?: boolean | undefined;
title?: string;
logoURI?: string;
blockExplorer?: import("./constants.js").BlockExplorerConfig;
ensAddress?: string;
testnet?: boolean;
deprecated?: boolean;
nativeToken: {

@@ -39,0 +39,0 @@ symbol: string;

{
"name": "@0xsequence/network",
"version": "2.0.19",
"version": "2.0.20",
"description": "network sub-package for Sequence",

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

"license": "Apache-2.0",
"dependencies": {
"@0xsequence/indexer": "2.0.19",
"@0xsequence/core": "2.0.19",
"@0xsequence/relayer": "2.0.19",
"@0xsequence/utils": "2.0.19"
},
"peerDependencies": {
"ethers": ">=6"
},
"dependencies": {
"@0xsequence/core": "2.0.20",
"@0xsequence/utils": "2.0.20",
"@0xsequence/indexer": "2.0.20",
"@0xsequence/relayer": "2.0.20"
},
"devDependencies": {
"ethers": "^6.13.0"
"ethers": "6.13.4"
},

@@ -24,0 +24,0 @@ "files": [

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