@andrewkimjoseph/celina-sdk 0.25.6 → 0.25.7

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 declare const Mento: typeof import("@mento-protocol/mento-sdk").Mento, ChainId: typeof import("@mento-protocol/mento-sdk").ChainId, deadlineFromMinutes: typeof import("@mento-protocol/mento-sdk").deadlineFromMinutes, RouteNotFoundError: typeof import("@mento-protocol/mento-sdk").RouteNotFoundError, FXMarketClosedError: typeof import("@mento-protocol/mento-sdk").FXMarketClosedError;
1
+ export { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } from "./generated/mento-sdk.bundle.js";
2
2
  export type { CallParams } from "@mento-protocol/mento-sdk";
@@ -1,9 +1,2 @@
1
- import { createRequire } from "node:module";
2
- /**
3
- * @mento-protocol/mento-sdk's ESM build omits .js extensions on internal imports.
4
- * Load the CJS entry via createRequire until upstream fixes exports.
5
- */
6
- const require = createRequire(import.meta.url);
7
- const mentoSdk = require("@mento-protocol/mento-sdk");
8
- export const { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } = mentoSdk;
1
+ export { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } from "./generated/mento-sdk.bundle.js";
9
2
  //# sourceMappingURL=mento-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mento-sdk.js","sourceRoot":"","sources":["../../src/clients/mento-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;GAGG;AACH,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,QAAQ,GAAG,OAAO,CAAC,2BAA2B,CAA+C,CAAC;AAEpG,MAAM,CAAC,MAAM,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"mento-sdk.js","sourceRoot":"","sources":["../../src/clients/mento-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const Actions: typeof import("@uniswap/v4-sdk").Actions, V4Planner: typeof import("@uniswap/v4-sdk").V4Planner;
2
- export declare const CommandType: typeof import("@uniswap/universal-router-sdk").CommandType, RoutePlanner: typeof import("@uniswap/universal-router-sdk").RoutePlanner;
3
- export declare const ChainId: typeof import("@uniswap/sdk-core").ChainId;
1
+ export { Actions, V4Planner } from "./generated/uniswap-sdk.bundle.js";
2
+ export { CommandType, RoutePlanner } from "./generated/uniswap-sdk.bundle.js";
3
+ export { ChainId } from "./generated/uniswap-sdk.bundle.js";
4
4
  export type { SwapExactInSingle, SwapExactIn } from "@uniswap/v4-sdk";
@@ -1,13 +1,4 @@
1
- /**
2
- * CJS re-exports for @uniswap/v4-sdk and @uniswap/universal-router-sdk.
3
- * Uses createRequire because upstream ESM builds omit .js extensions on internal imports.
4
- */
5
- import { createRequire } from "node:module";
6
- const require = createRequire(import.meta.url);
7
- const v4Sdk = require("@uniswap/v4-sdk");
8
- const universalRouterSdk = require("@uniswap/universal-router-sdk");
9
- const sdkCore = require("@uniswap/sdk-core");
10
- export const { Actions, V4Planner } = v4Sdk;
11
- export const { CommandType, RoutePlanner } = universalRouterSdk;
12
- export const { ChainId } = sdkCore;
1
+ export { Actions, V4Planner } from "./generated/uniswap-sdk.bundle.js";
2
+ export { CommandType, RoutePlanner } from "./generated/uniswap-sdk.bundle.js";
3
+ export { ChainId } from "./generated/uniswap-sdk.bundle.js";
13
4
  //# sourceMappingURL=uniswap-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uniswap-sdk.js","sourceRoot":"","sources":["../../src/clients/uniswap-sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAqC,CAAC;AAC7E,MAAM,kBAAkB,GACtB,OAAO,CAAC,+BAA+B,CAAmD,CAAC;AAC7F,MAAM,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAuC,CAAC;AAEnF,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;AAC5C,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,kBAAkB,CAAC;AAChE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"uniswap-sdk.js","sourceRoot":"","sources":["../../src/clients/uniswap-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- export declare const IdentitySDK: typeof import("@goodsdks/citizen-sdk").IdentityCustodialSDK;
1
+ export { IdentitySDK } from "./generated/citizen-sdk.bundle.js";
@@ -1,9 +1,2 @@
1
- /**
2
- * CJS re-export for @goodsdks/citizen-sdk.
3
- * Uses createRequire because upstream ESM/CJS interop needs a Node require shim.
4
- */
5
- import { createRequire } from "node:module";
6
- const require = createRequire(import.meta.url);
7
- const citizenSdk = require("@goodsdks/citizen-sdk");
8
- export const IdentitySDK = citizenSdk.IdentityCustodialSDK ?? citizenSdk.IdentitySDK;
1
+ export { IdentitySDK } from "./generated/citizen-sdk.bundle.js";
9
2
  //# sourceMappingURL=citizen-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"citizen-sdk.js","sourceRoot":"","sources":["../../../src/clients/citizen-sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,UAAU,GACd,OAAO,CAAC,uBAAuB,CAA2C,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GACtB,UAAU,CAAC,oBAAoB,IAAI,UAAU,CAAC,WAAW,CAAC"}
1
+ {"version":3,"file":"citizen-sdk.js","sourceRoot":"","sources":["../../../src/clients/citizen-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const Mento: typeof import("@mento-protocol/mento-sdk").Mento, ChainId: typeof import("@mento-protocol/mento-sdk").ChainId, deadlineFromMinutes: typeof import("@mento-protocol/mento-sdk").deadlineFromMinutes, RouteNotFoundError: typeof import("@mento-protocol/mento-sdk").RouteNotFoundError, FXMarketClosedError: typeof import("@mento-protocol/mento-sdk").FXMarketClosedError;
1
+ export { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } from "./generated/mento-sdk.bundle.js";
2
2
  export type { CallParams } from "@mento-protocol/mento-sdk";
@@ -1,9 +1,2 @@
1
- import { createRequire } from "node:module";
2
- /**
3
- * @mento-protocol/mento-sdk's ESM build omits .js extensions on internal imports.
4
- * Load the CJS entry via createRequire until upstream fixes exports.
5
- */
6
- const require = createRequire(import.meta.url);
7
- const mentoSdk = require("@mento-protocol/mento-sdk");
8
- export const { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } = mentoSdk;
1
+ export { Mento, ChainId, deadlineFromMinutes, RouteNotFoundError, FXMarketClosedError, } from "./generated/mento-sdk.bundle.js";
9
2
  //# sourceMappingURL=mento-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mento-sdk.js","sourceRoot":"","sources":["../../../src/clients/mento-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;GAGG;AACH,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,QAAQ,GAAG,OAAO,CAAC,2BAA2B,CAA+C,CAAC;AAEpG,MAAM,CAAC,MAAM,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"mento-sdk.js","sourceRoot":"","sources":["../../../src/clients/mento-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const Actions: typeof import("@uniswap/v4-sdk").Actions, V4Planner: typeof import("@uniswap/v4-sdk").V4Planner;
2
- export declare const CommandType: typeof import("@uniswap/universal-router-sdk").CommandType, RoutePlanner: typeof import("@uniswap/universal-router-sdk").RoutePlanner;
3
- export declare const ChainId: typeof import("@uniswap/sdk-core").ChainId;
1
+ export { Actions, V4Planner } from "./generated/uniswap-sdk.bundle.js";
2
+ export { CommandType, RoutePlanner } from "./generated/uniswap-sdk.bundle.js";
3
+ export { ChainId } from "./generated/uniswap-sdk.bundle.js";
4
4
  export type { SwapExactInSingle, SwapExactIn } from "@uniswap/v4-sdk";
@@ -1,13 +1,4 @@
1
- /**
2
- * CJS re-exports for @uniswap/v4-sdk and @uniswap/universal-router-sdk.
3
- * Uses createRequire because upstream ESM builds omit .js extensions on internal imports.
4
- */
5
- import { createRequire } from "node:module";
6
- const require = createRequire(import.meta.url);
7
- const v4Sdk = require("@uniswap/v4-sdk");
8
- const universalRouterSdk = require("@uniswap/universal-router-sdk");
9
- const sdkCore = require("@uniswap/sdk-core");
10
- export const { Actions, V4Planner } = v4Sdk;
11
- export const { CommandType, RoutePlanner } = universalRouterSdk;
12
- export const { ChainId } = sdkCore;
1
+ export { Actions, V4Planner } from "./generated/uniswap-sdk.bundle.js";
2
+ export { CommandType, RoutePlanner } from "./generated/uniswap-sdk.bundle.js";
3
+ export { ChainId } from "./generated/uniswap-sdk.bundle.js";
13
4
  //# sourceMappingURL=uniswap-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uniswap-sdk.js","sourceRoot":"","sources":["../../../src/clients/uniswap-sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAqC,CAAC;AAC7E,MAAM,kBAAkB,GACtB,OAAO,CAAC,+BAA+B,CAAmD,CAAC;AAC7F,MAAM,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAuC,CAAC;AAEnF,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;AAC5C,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,kBAAkB,CAAC;AAChE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"uniswap-sdk.js","sourceRoot":"","sources":["../../../src/clients/uniswap-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrewkimjoseph/celina-sdk",
3
- "version": "0.25.6",
3
+ "version": "0.25.7",
4
4
  "description": "Celina SDK — Celo mainnet reads, unsigned transaction preparation, and ERC-4337 createAAClient for sponsored UserOps.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -49,11 +49,11 @@
49
49
  "LICENSE"
50
50
  ],
51
51
  "scripts": {
52
- "prebuild": "node scripts/generate-mcp-analytics-map.mjs",
53
- "build": "npm run prebuild && rm -rf build && tsc && tsc -p tsconfig.testing.json",
52
+ "prebuild": "node scripts/generate-mcp-analytics-map.mjs && node scripts/bundle-cjs-deps.mjs",
53
+ "build": "npm run prebuild && rm -rf build && tsc && tsc -p tsconfig.testing.json && node scripts/copy-generated-bundles.mjs",
54
54
  "dev": "tsc --watch",
55
- "test": "vitest run",
56
- "test:unit": "vitest run --config vitest.unit.config.ts",
55
+ "test": "node scripts/bundle-cjs-deps.mjs && vitest run",
56
+ "test:unit": "node scripts/bundle-cjs-deps.mjs && vitest run --config vitest.unit.config.ts",
57
57
  "test:fork": "vitest run --config vitest.fork.config.ts",
58
58
  "docs:api": "typedoc",
59
59
  "docs:summary": "node scripts/update-api-summary.mjs",
@@ -112,7 +112,7 @@
112
112
  "zod": "^3.24.3"
113
113
  },
114
114
  "devDependencies": {
115
- "dotenv": "^17.4.2",
115
+ "esbuild": "^0.25.9",
116
116
  "@celo/devchain-anvil": "^17.0.7",
117
117
  "@types/node": "^22.0.0",
118
118
  "@viem/anvil": "^0.0.10",