@longdotxyz/shared 0.0.10 → 0.0.11

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.
@@ -1,3 +1,3 @@
1
1
  import z from "zod";
2
- declare const hex: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
3
- export { hex };
2
+ export type Hex = `0x${string}`;
3
+ export declare const hex: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hex = void 0;
4
4
  const zod_1 = require("zod");
5
- const hex = zod_1.default.custom((value) => {
5
+ exports.hex = zod_1.default.custom((value) => {
6
6
  return typeof value === "string" && value.startsWith("0x");
7
7
  });
8
- exports.hex = hex;
9
8
  //# sourceMappingURL=hex.type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hex.type.js","sourceRoot":"","sources":["../../src/types/hex.type.ts"],"names":[],"mappings":";;;AACA,6BAAoB;AAEpB,MAAM,GAAG,GAAG,aAAC,CAAC,MAAM,CAAM,CAAC,KAAK,EAAE,EAAE;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEM,kBAAG"}
1
+ {"version":3,"file":"hex.type.js","sourceRoot":"","sources":["../../src/types/hex.type.ts"],"names":[],"mappings":";;;AAAA,6BAAoB;AAIP,QAAA,GAAG,GAAG,aAAC,CAAC,MAAM,CAAM,CAAC,KAAK,EAAE,EAAE;IACvC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./bigint.type";
2
2
  export * from "./hex.type";
3
3
  export * from "./pool-key.type";
4
+ export * from "./zero-address.type";
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bigint.type"), exports);
18
18
  __exportStar(require("./hex.type"), exports);
19
19
  __exportStar(require("./pool-key.type"), exports);
20
+ __exportStar(require("./zero-address.type"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6CAA2B;AAC3B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC"}
@@ -0,0 +1 @@
1
+ export declare const zeroAddress: "0x0000000000000000000000000000000000000000";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zeroAddress = void 0;
4
+ exports.zeroAddress = "0x0000000000000000000000000000000000000000";
5
+ //# sourceMappingURL=zero-address.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zero-address.type.js","sourceRoot":"","sources":["../../src/types/zero-address.type.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,4CAAqD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Hex } from "viem";
1
+ import { Hex } from "../types";
2
2
  export declare const NATIVE_ETH_ADDRESS: Hex;
3
3
  export declare const WETH_ADDRESSES: Record<number, Hex>;
4
4
  export declare function getWETHAddress(chainId: number): Hex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longdotxyz/shared",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Shared types and utilities for Long.xyz API",
5
5
  "files": [
6
6
  "dist"