@xccy/ts-sdk 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xccy/ts-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "files": [
12
12
  "src/index.ts",
13
+ "src/types.ts",
13
14
  "src/addresses.ts",
14
15
  "src/typechain/**/*.ts"
15
16
  ],
package/src/index.ts CHANGED
@@ -2,5 +2,13 @@ export type { CollateralEngine as CollateralEngineContract } from "./typechain/C
2
2
  export type { VAMMManager as VammManagerContract } from "./typechain/VAMMManager";
3
3
  export { CollateralEngine__factory as CollateralEngineFactory } from "./typechain/factories/CollateralEngine__factory";
4
4
  export { VAMMManager__factory as VammManagerFactory } from "./typechain/factories/VAMMManager__factory";
5
+ export type {
6
+ AccountId,
7
+ AccountIdOutput,
8
+ PoolKey,
9
+ PoolKeyOutput,
10
+ SwapParams,
11
+ SwapParamsOutput,
12
+ } from "./types";
5
13
 
6
14
  export { arbitrum, polygon } from "./addresses";
package/src/types.ts ADDED
@@ -0,0 +1,19 @@
1
+ import type {
2
+ Account as VammAccount,
3
+ PoolKey as VammPoolKey,
4
+ VAMMTypes,
5
+ } from "./typechain/VAMMManager";
6
+
7
+ /**
8
+ * Canonical shared protocol structs derived from TypeChain.
9
+ * These aliases should be reused by higher-level SDKs/apps instead of
10
+ * re-declaring the same shapes manually.
11
+ */
12
+ export type AccountId = VammAccount.AccountIdStruct;
13
+ export type AccountIdOutput = VammAccount.AccountIdStructOutput;
14
+
15
+ export type PoolKey = VammPoolKey.KeyStruct;
16
+ export type PoolKeyOutput = VammPoolKey.KeyStructOutput;
17
+
18
+ export type SwapParams = VAMMTypes.SwapParamsStruct;
19
+ export type SwapParamsOutput = VAMMTypes.SwapParamsStructOutput;