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

@xylabs/eth-address

Package Overview
Dependencies
Maintainers
0
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/eth-address - npm Package Compare versions

Comparing version 3.6.12 to 4.0.0

xy.config.ts

30

dist/neutral/index.d.ts

@@ -1,4 +0,26 @@

export * from './ellipsize.ts';
export * from './EthAddress.ts';
export * from './padHex.ts';
//# sourceMappingURL=index.d.ts.map
declare const ellipsize: (value: string, length?: number) => string;
declare const isEthAddress: (obj: {
type: string;
}) => boolean;
declare class EthAddress {
static readonly type = "EthAddress";
type: string;
private address;
private constructor();
static fromString(value?: string, base?: number): EthAddress | undefined;
static parse(value: unknown, base?: number): EthAddress | undefined;
static validate(address: string): boolean;
equals(address?: EthAddress | string | null): boolean;
toBigNumber(): bigint;
toHex(): string;
toJSON(): string;
toLowerCaseString(): string;
toShortString(length?: number): string;
toString(checksum?: boolean, chainId?: string): string;
validate(): boolean;
}
declare const padHex: (hex: string, byteCount?: number) => string;
export { EthAddress, ellipsize, isEthAddress, padHex };

21

package.json

@@ -19,14 +19,7 @@ {

".": {
"require": {
"types": "./dist/neutral/index.d.cts",
"default": "./dist/neutral/index.cjs"
},
"import": {
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "./dist/neutral/index.cjs",
"types": "./dist/neutral/index.d.ts",

@@ -45,9 +38,9 @@ "module": "./dist/neutral/index.mjs",

"dependencies": {
"@xylabs/assert": "^3.6.12",
"@xylabs/assert": "^4.0.0",
"ethers": "^6.13.2"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/tsconfig-jest": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
"@xylabs/tsconfig": "^4.0.0-rc.15",
"@xylabs/tsconfig-jest": "^4.0.0-rc.15",
"typescript": "^5.5.4"

@@ -66,4 +59,4 @@ },

"sideEffects": false,
"version": "3.6.12",
"version": "4.0.0",
"type": "module"
}
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