@epoch-protocol/epoch-commons-sdk 0.1.7 → 0.1.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.
@@ -1,2 +1,2 @@
1
- export * from "./contractAddresses";
2
- export * from "./compact";
1
+ export * from "./contractAddresses.js";
2
+ export * from "./compact.js";
@@ -1,2 +1,2 @@
1
- export * from "./contractAddresses";
2
- export * from "./compact";
1
+ export * from "./contractAddresses.js";
2
+ export * from "./compact.js";
@@ -1,3 +1,3 @@
1
- import mainnetGraph from "./epochgraphmainnet.json";
2
- import testnetGraph from "./epochgraphtestnet.json";
1
+ import mainnetGraph from "./epochgraphmainnet.json" with { type: "json" };
2
+ import testnetGraph from "./epochgraphtestnet.json" with { type: "json" };
3
3
  export { mainnetGraph, testnetGraph };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./types";
2
- export * from "./data";
3
- export * from "./constants";
4
- export * from "./utils";
5
- export * from "./web3";
1
+ export * from "./types/index.js";
2
+ export * from "./data/index.js";
3
+ export * from "./constants/index.js";
4
+ export * from "./utils/index.js";
5
+ export * from "./web3/index.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Export types
2
- export * from "./types";
3
- export * from "./data";
4
- export * from "./constants";
5
- export * from "./utils";
6
- export * from "./web3";
2
+ export * from "./types/index.js";
3
+ export * from "./data/index.js";
4
+ export * from "./constants/index.js";
5
+ export * from "./utils/index.js";
6
+ export * from "./web3/index.js";
@@ -1,4 +1,4 @@
1
1
  import { type Hex } from 'viem';
2
- import { CompactData } from '../types';
2
+ import { CompactData } from '../types/index.js';
3
3
  export declare function getCompactTypehash(witnessTypeString?: string): Hex;
4
4
  export declare function getClaimHash(message: CompactData, witnessTypeString: string): `0x${string}`;
@@ -1,2 +1,2 @@
1
- export * from "./compact";
2
- export * from "./path";
1
+ export * from "./compact.js";
2
+ export * from "./path.js";
@@ -1,2 +1,2 @@
1
- export * from "./compact";
2
- export * from "./path";
1
+ export * from "./compact.js";
2
+ export * from "./path.js";
@@ -1,4 +1,4 @@
1
- import type { Path } from "../types";
1
+ import type { Path } from "../types/index.js";
2
2
  /**
3
3
  * Extracts tokenIn (first token amount) and tokenOut (last token amount) from a path.
4
4
  * Path structure: path[chainPathIndex][entityRow][item].
@@ -1,3 +1,3 @@
1
1
  import COMPACT_ABI from "./abis/COMPACT_ABI.json";
2
- export * from "./intents";
2
+ export * from "./intents.js";
3
3
  export { COMPACT_ABI };
@@ -1,3 +1,3 @@
1
- import COMPACT_ABI from "./abis/COMPACT_ABI.json";
2
- export * from "./intents";
1
+ import COMPACT_ABI from "./abis/COMPACT_ABI.json" with { type: "json" };
2
+ export * from "./intents.js";
3
3
  export { COMPACT_ABI };
@@ -1,4 +1,4 @@
1
- import { Intent } from "../types";
1
+ import { Intent } from "../types/index.js";
2
2
  declare const getEncodedIntent: (intent: Intent) => Uint8Array<ArrayBufferLike>;
3
3
  declare const getIntentHash: (intent: Intent) => string;
4
4
  declare const getEIP191IntentHash: (intent: Intent) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-protocol/epoch-commons-sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "SDK for interacting with Epoch Commons Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",