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

web3-eth-ens

Package Overview
Dependencies
Maintainers
4
Versions
483
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-ens - npm Package Compare versions

Comparing version 4.4.1-dev.8c55cb0.0 to 4.4.1-dev.926044b.0

lib/commonjs/tsconfig.cjs.tsbuildinfo

42

lib/commonjs/ens.d.ts

@@ -207,23 +207,2 @@ import { Web3Context, Web3ContextObject } from 'web3-core';

readonly internalType: "address";
/**
* This class is designed to interact with the ENS system on the Ethereum blockchain.
* For using ENS package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that ENS features can be used as mentioned in following snippet.
* ```ts
*
* import { Web3 } from 'web3';
*
* const web3 = new Web3('https://127.0.0.1:4545');
*
* console.log(await web3.eth.ens.getAddress('ethereum.eth'))
* ```
* For using individual package install `web3-eth-ens` packages using: `npm i web3-eth-ens` or `yarn add web3-eth-ens`. This is more efficient approach for building lightweight applications.
*
* ```ts
*import { ENS } from 'web3-eth-ens';
*
* const ens = new ENS(undefined,'https://127.0.0.1:4545');
*
* console.log(await ens.getAddress('vitalik.eth'));
* ```
*/
readonly name: "resolver";

@@ -353,23 +332,2 @@ readonly type: "address";

readonly internalType: "address";
/**
* This class is designed to interact with the ENS system on the Ethereum blockchain.
* For using ENS package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that ENS features can be used as mentioned in following snippet.
* ```ts
*
* import { Web3 } from 'web3';
*
* const web3 = new Web3('https://127.0.0.1:4545');
*
* console.log(await web3.eth.ens.getAddress('ethereum.eth'))
* ```
* For using individual package install `web3-eth-ens` packages using: `npm i web3-eth-ens` or `yarn add web3-eth-ens`. This is more efficient approach for building lightweight applications.
*
* ```ts
*import { ENS } from 'web3-eth-ens';
*
* const ens = new ENS(undefined,'https://127.0.0.1:4545');
*
* console.log(await ens.getAddress('vitalik.eth'));
* ```
*/
readonly name: "resolver";

@@ -376,0 +334,0 @@ readonly type: "address";

8

lib/commonjs/ens.js

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

*/
getAddress(ENSName, coinType = 60) {
return __awaiter(this, void 0, void 0, function* () {
getAddress(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, coinType = 60) {
return this._resolver.getAddress(ENSName, coinType);

@@ -176,4 +176,4 @@ });

*/
getName(ENSName, checkInterfaceSupport = true) {
return __awaiter(this, void 0, void 0, function* () {
getName(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, checkInterfaceSupport = true) {
return this._resolver.getName(ENSName, checkInterfaceSupport);

@@ -180,0 +180,0 @@ });

@@ -19,8 +19,8 @@ import { Contract } from 'web3-eth-contract';

readonly blockNumber: bigint;
readonly from: string;
readonly to: string;
readonly from: Address;
readonly to: Address;
readonly cumulativeGasUsed: bigint;
readonly gasUsed: bigint;
readonly effectiveGasPrice?: bigint | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: Address | undefined;
readonly logs: {

@@ -34,3 +34,3 @@ readonly id?: string | undefined;

readonly blockNumber?: bigint | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: string | undefined;

@@ -49,8 +49,8 @@ readonly topics?: string[] | undefined;

readonly transactionIndex?: bigint | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: bigint | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -63,3 +63,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -66,0 +66,0 @@ } | undefined;

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

checkInterfaceSupport(resolverContract, methodName) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
if ((0, web3_utils_1.isNullish)(config_js_1.interfaceIds[methodName]))

@@ -62,4 +62,4 @@ throw new web3_errors_1.ResolverMethodMissingError((_a = resolverContract.options.address) !== null && _a !== void 0 ? _a : '', methodName);

supportsInterface(ENSName, interfaceId) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const resolverContract = yield this.getResolverContractAdapter(ENSName);

@@ -77,4 +77,4 @@ let interfaceIdParam = interfaceId;

// eslint-disable-next-line @typescript-eslint/no-inferrable-types
getAddress(ENSName, coinType = 60) {
return __awaiter(this, void 0, void 0, function* () {
getAddress(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, coinType = 60) {
const resolverContract = yield this.getResolverContractAdapter(ENSName);

@@ -113,4 +113,4 @@ yield this.checkInterfaceSupport(resolverContract, config_js_1.methodsInInterface.addr);

}
getName(address, checkInterfaceSupport = true) {
return __awaiter(this, void 0, void 0, function* () {
getName(address_1) {
return __awaiter(this, arguments, void 0, function* (address, checkInterfaceSupport = true) {
const reverseName = `${address.toLowerCase().substring(2)}.addr.reverse`;

@@ -117,0 +117,0 @@ const resolverContract = yield this.getResolverContractAdapter(reverseName);

@@ -149,4 +149,4 @@ /*

*/
getAddress(ENSName, coinType = 60) {
return __awaiter(this, void 0, void 0, function* () {
getAddress(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, coinType = 60) {
return this._resolver.getAddress(ENSName, coinType);

@@ -173,4 +173,4 @@ });

*/
getName(ENSName, checkInterfaceSupport = true) {
return __awaiter(this, void 0, void 0, function* () {
getName(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, checkInterfaceSupport = true) {
return this._resolver.getName(ENSName, checkInterfaceSupport);

@@ -177,0 +177,0 @@ });

@@ -46,4 +46,4 @@ /*

checkInterfaceSupport(resolverContract, methodName) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
if (isNullish(interfaceIds[methodName]))

@@ -59,4 +59,4 @@ throw new ResolverMethodMissingError((_a = resolverContract.options.address) !== null && _a !== void 0 ? _a : '', methodName);

supportsInterface(ENSName, interfaceId) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const resolverContract = yield this.getResolverContractAdapter(ENSName);

@@ -74,4 +74,4 @@ let interfaceIdParam = interfaceId;

// eslint-disable-next-line @typescript-eslint/no-inferrable-types
getAddress(ENSName, coinType = 60) {
return __awaiter(this, void 0, void 0, function* () {
getAddress(ENSName_1) {
return __awaiter(this, arguments, void 0, function* (ENSName, coinType = 60) {
const resolverContract = yield this.getResolverContractAdapter(ENSName);

@@ -110,4 +110,4 @@ yield this.checkInterfaceSupport(resolverContract, methodsInInterface.addr);

}
getName(address, checkInterfaceSupport = true) {
return __awaiter(this, void 0, void 0, function* () {
getName(address_1) {
return __awaiter(this, arguments, void 0, function* (address, checkInterfaceSupport = true) {
const reverseName = `${address.toLowerCase().substring(2)}.addr.reverse`;

@@ -114,0 +114,0 @@ const resolverContract = yield this.getResolverContractAdapter(reverseName);

@@ -207,23 +207,2 @@ import { Web3Context, Web3ContextObject } from 'web3-core';

readonly internalType: "address";
/**
* This class is designed to interact with the ENS system on the Ethereum blockchain.
* For using ENS package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that ENS features can be used as mentioned in following snippet.
* ```ts
*
* import { Web3 } from 'web3';
*
* const web3 = new Web3('https://127.0.0.1:4545');
*
* console.log(await web3.eth.ens.getAddress('ethereum.eth'))
* ```
* For using individual package install `web3-eth-ens` packages using: `npm i web3-eth-ens` or `yarn add web3-eth-ens`. This is more efficient approach for building lightweight applications.
*
* ```ts
*import { ENS } from 'web3-eth-ens';
*
* const ens = new ENS(undefined,'https://127.0.0.1:4545');
*
* console.log(await ens.getAddress('vitalik.eth'));
* ```
*/
readonly name: "resolver";

@@ -353,23 +332,2 @@ readonly type: "address";

readonly internalType: "address";
/**
* This class is designed to interact with the ENS system on the Ethereum blockchain.
* For using ENS package, first install Web3 package using: `npm i web3` or `yarn add web3` based on your package manager, after that ENS features can be used as mentioned in following snippet.
* ```ts
*
* import { Web3 } from 'web3';
*
* const web3 = new Web3('https://127.0.0.1:4545');
*
* console.log(await web3.eth.ens.getAddress('ethereum.eth'))
* ```
* For using individual package install `web3-eth-ens` packages using: `npm i web3-eth-ens` or `yarn add web3-eth-ens`. This is more efficient approach for building lightweight applications.
*
* ```ts
*import { ENS } from 'web3-eth-ens';
*
* const ens = new ENS(undefined,'https://127.0.0.1:4545');
*
* console.log(await ens.getAddress('vitalik.eth'));
* ```
*/
readonly name: "resolver";

@@ -376,0 +334,0 @@ readonly type: "address";

@@ -19,8 +19,8 @@ import { Contract } from 'web3-eth-contract';

readonly blockNumber: bigint;
readonly from: string;
readonly to: string;
readonly from: Address;
readonly to: Address;
readonly cumulativeGasUsed: bigint;
readonly gasUsed: bigint;
readonly effectiveGasPrice?: bigint | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: Address | undefined;
readonly logs: {

@@ -34,3 +34,3 @@ readonly id?: string | undefined;

readonly blockNumber?: bigint | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: string | undefined;

@@ -49,8 +49,8 @@ readonly topics?: string[] | undefined;

readonly transactionIndex?: bigint | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: bigint | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -63,3 +63,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -66,0 +66,0 @@ } | undefined;

{
"name": "web3-eth-ens",
"version": "4.4.1-dev.8c55cb0.0+8c55cb0",
"version": "4.4.1-dev.926044b.0+926044b",
"description": "This package has ENS functions for interacting with Ethereum Name Service.",

@@ -58,16 +58,16 @@ "main": "./lib/commonjs/index.js",

"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
"typescript": "^5.5.4"
},
"dependencies": {
"@adraffy/ens-normalize": "^1.8.8",
"web3-core": "4.7.1-dev.8c55cb0.0+8c55cb0",
"web3-errors": "1.3.1-dev.8c55cb0.0+8c55cb0",
"web3-eth": "4.11.1-dev.8c55cb0.0+8c55cb0",
"web3-eth-contract": "4.7.2-dev.8c55cb0.0+8c55cb0",
"web3-net": "4.1.1-dev.8c55cb0.0+8c55cb0",
"web3-types": "1.9.1-dev.8c55cb0.0+8c55cb0",
"web3-utils": "4.3.3-dev.8c55cb0.0+8c55cb0",
"web3-validator": "2.0.7-dev.8c55cb0.0+8c55cb0"
"web3-core": "4.7.1-dev.926044b.0+926044b",
"web3-errors": "1.3.1-dev.926044b.0+926044b",
"web3-eth": "4.11.1-dev.926044b.0+926044b",
"web3-eth-contract": "4.7.2-dev.926044b.0+926044b",
"web3-net": "4.1.1-dev.926044b.0+926044b",
"web3-types": "1.9.1-dev.926044b.0+926044b",
"web3-utils": "4.3.3-dev.926044b.0+926044b",
"web3-validator": "2.0.7-dev.926044b.0+926044b"
},
"gitHead": "8c55cb0061a4089a2c5470b11834e18c6c1b11ea"
"gitHead": "926044bb8c49436b0d35449c5e98f776c4a6a740"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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