@xylabs/eth-address
Advanced tools
Comparing version 3.6.12 to 4.0.0
@@ -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 }; |
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
20531
11
198
1
+ Added@xylabs/assert@4.3.4(transitive)
- Removed@xylabs/assert@3.6.12(transitive)
Updated@xylabs/assert@^4.0.0