@evergonlabs/tmi-protocol-api 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/dist/client.d.ts CHANGED
@@ -2982,4 +2982,5 @@ export declare function createClient(...args: Parameters<typeof hc>): {
2982
2982
  export type IApi = ReturnType<typeof createClient>;
2983
2983
  export type { InferRequestType, InferResponseType } from "hono/client";
2984
2984
  export type { ClientRequestOptions } from "hono/client";
2985
+ export { parseResponse } from "hono/client";
2985
2986
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1D;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
package/dist/client.js CHANGED
@@ -2,3 +2,4 @@ import { hc } from "hono/client";
2
2
  export function createClient(...args) {
3
3
  return hc(...args);
4
4
  }
5
+ export { parseResponse } from "hono/client";
@@ -38,7 +38,7 @@ export declare const TransactionSchema: z.ZodObject<{
38
38
  args: any[];
39
39
  };
40
40
  }>;
41
- export declare const GatedTransactionSchema: z.ZodObject<z.objectUtil.extendShape<{
41
+ export declare const GatedTransactionSchema: z.ZodObject<{
42
42
  data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
43
43
  to: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
44
44
  details: z.ZodObject<{
@@ -57,7 +57,7 @@ export declare const GatedTransactionSchema: z.ZodObject<z.objectUtil.extendShap
57
57
  abi: any[];
58
58
  args: any[];
59
59
  }>;
60
- }, {}>, "strip", z.ZodTypeAny, {
60
+ }, "strip", z.ZodTypeAny, {
61
61
  data: `0x${string}`;
62
62
  to: `0x${string}`;
63
63
  details: {
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { FractionSaleEventEnum, FractionSaleStatusEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
3
- export declare const FractionActivityEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ export declare const FractionActivityEntrySchema: z.ZodObject<{
4
4
  chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
5
5
  platform: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
6
6
  campaignId: z.ZodString;
@@ -8,7 +8,7 @@ export declare const FractionActivityEntrySchema: z.ZodObject<z.objectUtil.exten
8
8
  from: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
9
9
  createdAt: z.ZodDate;
10
10
  updatedAt: z.ZodDate;
11
- }, {
11
+ } & {
12
12
  metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
13
  type: z.ZodLiteral<FractionSaleEventEnum.CREATED>;
14
14
  }, "strip", z.ZodTypeAny, {
@@ -82,7 +82,7 @@ export declare const FractionActivityEntrySchema: z.ZodObject<z.objectUtil.exten
82
82
  type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
83
83
  amount: string;
84
84
  }>]>;
85
- }>, "strip", z.ZodTypeAny, {
85
+ }, "strip", z.ZodTypeAny, {
86
86
  chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
87
87
  platform: `0x${string}`;
88
88
  campaignId: string;
@@ -1,14 +1,14 @@
1
1
  import { Env } from "hono";
2
2
  import { Factory } from "hono/factory";
3
3
  import { z } from "zod";
4
- export declare const ReceiveFundsAfterNonFundedRequestSchema: z.ZodObject<z.objectUtil.extendShape<{
4
+ export declare const ReceiveFundsAfterNonFundedRequestSchema: z.ZodObject<{
5
5
  upperGenesisId: z.ZodOptional<z.ZodBigInt>;
6
6
  amountOfFractions: z.ZodBigInt;
7
7
  isDiscounted: z.ZodBoolean;
8
- }, {
8
+ } & {
9
9
  market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
10
10
  campaignId: z.ZodBigInt;
11
- }>, "strip", z.ZodTypeAny, {
11
+ }, "strip", z.ZodTypeAny, {
12
12
  campaignId: bigint;
13
13
  amountOfFractions: bigint;
14
14
  market: `0x${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,30 +20,29 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@evergonlabs/tmi-evm-contracts": "0.3.4",
23
+ "@evergonlabs/tmi-contracts-fractions-sdk": "1.1.0",
23
24
  "@evergonlabs/tmi-utils": "^0.2.0",
24
- "@evergonlabs/token-library": "^0.1.0",
25
- "@hono/node-server": "^1.13.8",
26
- "@hono/swagger-ui": "^0.5.0",
27
- "@hono/zod-openapi": "^0.18.4",
25
+ "@hono/node-server": "^1.19.3",
26
+ "@hono/swagger-ui": "^0.5.2",
27
+ "@hono/zod-openapi": "^0.19.10",
28
28
  "@ponder/client": "^0.11.4",
29
29
  "@quicknode/sdk": "^2.4.0",
30
- "@scalar/hono-api-reference": "^0.5.170",
31
30
  "abitype": "^1.0.8",
32
31
  "axios": "^1.8.4",
33
32
  "drizzle-orm": "0.41.0",
34
- "hono": "^4.6.20",
35
- "hono-openapi": "^0.4.4",
33
+ "hono": "^4.9.7",
34
+ "hono-openapi": "^0.4.8",
36
35
  "kysely": "^0.26.3",
37
36
  "type-fest": "^4.33.0",
38
37
  "viem": "^2.23.2",
39
- "zod": "^3.24.1",
40
- "zod-openapi": "^4.2.3",
41
- "@evergonlabs/tmi-protocol-indexer": "0.1.0",
38
+ "zod": "^3.25.0",
39
+ "zod-openapi": "^4.2.4",
42
40
  "@evergonlabs/tmi-protocol-fractions-sdk": "0.2.0",
43
41
  "@evergonlabs/tmi-protocol-shared": "0.1.0",
44
- "@evergonlabs/tmi-protocol-staking-sdk": "0.2.0",
45
42
  "@evergonlabs/tmi-protocol-types": "0.2.0",
46
- "@evergonlabs/tmi-protocol-utils": "0.2.0"
43
+ "@evergonlabs/tmi-protocol-utils": "0.2.0",
44
+ "@evergonlabs/tmi-protocol-staking-sdk": "0.2.0",
45
+ "@evergonlabs/tmi-protocol-indexer": "0.1.0"
47
46
  },
48
47
  "devDependencies": {
49
48
  "@evergonlabs/tmi-eslint-config": "^0.1.3",