@xylabs/eth-address 4.13.13 → 4.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/neutral/EthAddress.d.ts +21 -0
- package/build/neutral/EthAddress.d.ts.map +1 -0
- package/build/neutral/ellipsize.d.ts +2 -0
- package/build/neutral/ellipsize.d.ts.map +1 -0
- package/build/neutral/index.d.ts +4 -0
- package/build/neutral/index.d.ts.map +1 -0
- package/build/neutral/padHex.d.ts +3 -0
- package/build/neutral/padHex.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const isEthAddress: (obj: {
|
|
2
|
+
type: string;
|
|
3
|
+
}) => boolean;
|
|
4
|
+
export declare class EthAddress {
|
|
5
|
+
static readonly type = "EthAddress";
|
|
6
|
+
type: string;
|
|
7
|
+
private address;
|
|
8
|
+
private constructor();
|
|
9
|
+
static fromString(value?: string, base?: number): EthAddress | undefined;
|
|
10
|
+
static parse(value: unknown, base?: number): EthAddress | undefined;
|
|
11
|
+
static validate(address: string): boolean;
|
|
12
|
+
equals(address?: EthAddress | string | null): boolean;
|
|
13
|
+
toBigNumber(): bigint;
|
|
14
|
+
toHex(): string;
|
|
15
|
+
toJSON(): string;
|
|
16
|
+
toLowerCaseString(): string;
|
|
17
|
+
toShortString(length?: number): string;
|
|
18
|
+
toString(checksum?: boolean, chainId?: string): string;
|
|
19
|
+
validate(): boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=EthAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EthAddress.d.ts","sourceRoot":"","sources":["../../src/EthAddress.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,GAAI,KAAK;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,YAAkC,CAAA;AAEpF,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAe;IAEnC,IAAI,SAAkB;IAEtB,OAAO,CAAC,OAAO,CAAQ;IAEvB,OAAO;IAIP,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,SAAK;IAO3C,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM;IAM1C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM;IAI/B,MAAM,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO;IAQrD,WAAW;IAIX,KAAK;IAIL,MAAM,IAAI,MAAM;IAIhB,iBAAiB;IAIjB,aAAa,CAAC,MAAM,SAAI;IAIxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM;IAQ7C,QAAQ;CAGT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipsize.d.ts","sourceRoot":"","sources":["../../src/ellipsize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,EAAE,eAAU,WAIlD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"padHex.d.ts","sourceRoot":"","sources":["../../src/padHex.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,kBAAa,WAWzC,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/eth-address",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.15",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eth",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"packages/**/*"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xylabs/assert": "^4.13.
|
|
44
|
+
"@xylabs/assert": "^4.13.15",
|
|
45
45
|
"ethers": "^6.15.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
49
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
49
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
51
|
"vitest": "^3.2.4"
|
|
52
52
|
},
|