@xylabs/eth-address 2.12.7 → 2.12.9

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.
@@ -0,0 +1,20 @@
1
+ import { BigNumber } from '@xylabs/bignumber';
2
+ export declare const isEthAddress: (obj: {
3
+ type: string;
4
+ }) => boolean;
5
+ export declare class EthAddress {
6
+ static type: string;
7
+ type: string;
8
+ private address;
9
+ private constructor();
10
+ static fromString(value?: string, base?: number): EthAddress | undefined;
11
+ static parse(value: unknown, base?: number): EthAddress | undefined;
12
+ equals(address?: EthAddress | string | null): boolean;
13
+ toBigNumber(): BigNumber;
14
+ toHex(): string;
15
+ toJSON(): string;
16
+ toLowerCaseString(): string;
17
+ toShortString(length?: number): string;
18
+ toString(): string;
19
+ }
20
+ //# sourceMappingURL=EthAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EthAddress.d.ts","sourceRoot":"","sources":["../../src/EthAddress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,eAAO,MAAM,YAAY,QAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,YAAkC,CAAA;AAEpF,qBAAa,UAAU;IACrB,MAAM,CAAC,IAAI,SAAe;IAE1B,IAAI,SAAkB;IAEtB,OAAO,CAAC,OAAO,CAAW;IAE1B,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,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO;IAarD,WAAW;IAIX,KAAK;IAIL,MAAM,IAAI,MAAM;IAIhB,iBAAiB;IAIjB,aAAa,CAAC,MAAM,SAAI;IAIxB,QAAQ;CAGT"}
@@ -0,0 +1,2 @@
1
+ export declare const ellipsize: (value: string, length?: number) => string;
2
+ //# sourceMappingURL=ellipsize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsize.d.ts","sourceRoot":"","sources":["../../src/ellipsize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,UAAW,MAAM,4BAItC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './ellipsize';
2
+ export * from './EthAddress';
3
+ export * from './padHex';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const padHex: (hex: string, byteCount?: number) => string;
2
+ export { padHex };
3
+ //# sourceMappingURL=padHex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padHex.d.ts","sourceRoot":"","sources":["../../src/padHex.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,QAAS,MAAM,cAAc,MAAM,WAW9C,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { BigNumber } from '@xylabs/bignumber';
2
+ export declare const isEthAddress: (obj: {
3
+ type: string;
4
+ }) => boolean;
5
+ export declare class EthAddress {
6
+ static type: string;
7
+ type: string;
8
+ private address;
9
+ private constructor();
10
+ static fromString(value?: string, base?: number): EthAddress | undefined;
11
+ static parse(value: unknown, base?: number): EthAddress | undefined;
12
+ equals(address?: EthAddress | string | null): boolean;
13
+ toBigNumber(): BigNumber;
14
+ toHex(): string;
15
+ toJSON(): string;
16
+ toLowerCaseString(): string;
17
+ toShortString(length?: number): string;
18
+ toString(): string;
19
+ }
20
+ //# sourceMappingURL=EthAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EthAddress.d.ts","sourceRoot":"","sources":["../../src/EthAddress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,eAAO,MAAM,YAAY,QAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,YAAkC,CAAA;AAEpF,qBAAa,UAAU;IACrB,MAAM,CAAC,IAAI,SAAe;IAE1B,IAAI,SAAkB;IAEtB,OAAO,CAAC,OAAO,CAAW;IAE1B,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,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO;IAarD,WAAW;IAIX,KAAK;IAIL,MAAM,IAAI,MAAM;IAIhB,iBAAiB;IAIjB,aAAa,CAAC,MAAM,SAAI;IAIxB,QAAQ;CAGT"}
@@ -0,0 +1,2 @@
1
+ export declare const ellipsize: (value: string, length?: number) => string;
2
+ //# sourceMappingURL=ellipsize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsize.d.ts","sourceRoot":"","sources":["../../src/ellipsize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,UAAW,MAAM,4BAItC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './ellipsize';
2
+ export * from './EthAddress';
3
+ export * from './padHex';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const padHex: (hex: string, byteCount?: number) => string;
2
+ export { padHex };
3
+ //# sourceMappingURL=padHex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padHex.d.ts","sourceRoot":"","sources":["../../src/padHex.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,QAAS,MAAM,cAAc,MAAM,WAW9C,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "exports": {
19
19
  ".": {
20
20
  "require": {
21
- "types": "./dist/node/index.d.ts",
21
+ "types": "./dist/node/index.d.cts",
22
22
  "default": "./dist/node/index.cjs"
23
23
  },
24
24
  "import": {
@@ -42,13 +42,13 @@
42
42
  "esm"
43
43
  ],
44
44
  "dependencies": {
45
- "@xylabs/assert": "~2.12.7",
46
- "@xylabs/bignumber": "~2.12.7"
45
+ "@xylabs/assert": "~2.12.9",
46
+ "@xylabs/bignumber": "~2.12.9"
47
47
  },
48
48
  "devDependencies": {
49
- "@xylabs/ts-scripts-yarn3": "^3.0.74",
50
- "@xylabs/tsconfig": "^3.0.74",
51
- "@xylabs/tsconfig-jest": "^3.0.74",
49
+ "@xylabs/ts-scripts-yarn3": "^3.0.75",
50
+ "@xylabs/tsconfig": "^3.0.75",
51
+ "@xylabs/tsconfig-jest": "^3.0.75",
52
52
  "typescript": "^5.2.2"
53
53
  },
54
54
  "publishConfig": {
@@ -59,6 +59,6 @@
59
59
  "url": "https://github.com/xylabs/sdk-js.git"
60
60
  },
61
61
  "sideEffects": false,
62
- "version": "2.12.7",
62
+ "version": "2.12.9",
63
63
  "type": "module"
64
64
  }