@evergonlabs/tmi-protocol-api 0.11.0-rc.1 → 0.11.0-rc.3

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.
Files changed (40) hide show
  1. package/dist/app.d.ts +7 -7
  2. package/dist/client.d.ts +7 -7
  3. package/dist/common/models/asset.d.ts +1 -1
  4. package/dist/common/models/chainId.d.ts +1 -1
  5. package/dist/common/models/chainId.d.ts.map +1 -1
  6. package/dist/common/models/chainId.js +2 -4
  7. package/dist/common/models/transaction.d.ts +1 -1
  8. package/dist/fractions/index.d.ts +1 -1
  9. package/dist/fractions/markets/utils.d.ts +2 -2
  10. package/dist/fractions/sales/activityUtils.d.ts +1 -1
  11. package/dist/fractions/sales/common/fractionsSale.d.ts +4 -4
  12. package/dist/fractions/sales/createFractions.route.d.ts +1 -1
  13. package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +1 -1
  14. package/dist/fractions/sales/index.d.ts +1 -1
  15. package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +2 -2
  16. package/dist/fractions/sig/getAuthData.d.ts +1 -1
  17. package/dist/fractions/sig/getNonce.route.d.ts +1 -1
  18. package/dist/fractions/statistics/networkStatistics.route.js +3 -3
  19. package/dist/issuance/common/factories.base.d.ts +17 -23
  20. package/dist/issuance/common/factories.base.d.ts.map +1 -1
  21. package/dist/issuance/common/factories.base.js +3 -2
  22. package/dist/issuance/common/factories.d.ts.map +1 -1
  23. package/dist/issuance/common/factories.js +2 -4
  24. package/dist/issuance/erc1155/default/deploy.d.ts +2 -2
  25. package/dist/issuance/erc1155/gated/deploy.d.ts +2 -2
  26. package/dist/issuance/erc1155/index.d.ts +2 -2
  27. package/dist/issuance/erc20/default/deploy.d.ts +2 -2
  28. package/dist/issuance/erc20/gated/deploy.d.ts +2 -2
  29. package/dist/issuance/erc20/index.d.ts +2 -2
  30. package/dist/issuance/erc721/default/deploy.d.ts +2 -2
  31. package/dist/issuance/erc721/gated/deploy.d.ts +2 -2
  32. package/dist/issuance/erc721/index.d.ts +2 -2
  33. package/dist/issuance/index.d.ts +6 -6
  34. package/dist/staking/platforms/common/platform.d.ts +1 -1
  35. package/dist/staking/pools/common/pool.d.ts +1 -1
  36. package/dist/staking/roles/common/roleAssignment.d.ts +1 -1
  37. package/dist/staking/roles/common/roleEvent.d.ts +1 -1
  38. package/dist/staking/stakes/common/stake.d.ts +1 -1
  39. package/dist/staking/stakes/common/stakeEvent.d.ts +1 -1
  40. package/package.json +12 -12
package/dist/app.d.ts CHANGED
@@ -1386,7 +1386,7 @@ export declare function buildApps(config?: IAppConfig): {
1386
1386
  $post: {
1387
1387
  input: {
1388
1388
  json: {
1389
- chainId: number;
1389
+ chainId: "1" | "31337" | "11155111" | "84532" | "72080";
1390
1390
  market: string;
1391
1391
  fractions: {
1392
1392
  symbol: string;
@@ -2563,7 +2563,7 @@ export declare function buildApps(config?: IAppConfig): {
2563
2563
  $post: {
2564
2564
  input: {
2565
2565
  json: {
2566
- chainId: 11155111 | 84532 | 72080;
2566
+ chainId: "11155111" | "84532" | "72080";
2567
2567
  tokenName: string;
2568
2568
  tokenSymbol: string;
2569
2569
  supplyCap: string;
@@ -2638,7 +2638,7 @@ export declare function buildApps(config?: IAppConfig): {
2638
2638
  $post: {
2639
2639
  input: {
2640
2640
  json: {
2641
- chainId: 11155111 | 84532 | 72080;
2641
+ chainId: "11155111" | "84532" | "72080";
2642
2642
  tokenName: string;
2643
2643
  tokenSymbol: string;
2644
2644
  supplyCap: string;
@@ -2981,7 +2981,7 @@ export declare function buildApps(config?: IAppConfig): {
2981
2981
  $post: {
2982
2982
  input: {
2983
2983
  json: {
2984
- chainId: 11155111 | 84532 | 72080;
2984
+ chainId: "11155111" | "84532" | "72080";
2985
2985
  tokenName: string;
2986
2986
  tokenSymbol: string;
2987
2987
  baseURI: string;
@@ -3056,7 +3056,7 @@ export declare function buildApps(config?: IAppConfig): {
3056
3056
  $post: {
3057
3057
  input: {
3058
3058
  json: {
3059
- chainId: 11155111 | 84532 | 72080;
3059
+ chainId: "11155111" | "84532" | "72080";
3060
3060
  tokenName: string;
3061
3061
  tokenSymbol: string;
3062
3062
  baseURI: string;
@@ -3388,7 +3388,7 @@ export declare function buildApps(config?: IAppConfig): {
3388
3388
  $post: {
3389
3389
  input: {
3390
3390
  json: {
3391
- chainId: 11155111 | 84532 | 72080;
3391
+ chainId: "11155111" | "84532" | "72080";
3392
3392
  baseURI: string;
3393
3393
  defaultTokenAdmin: string;
3394
3394
  minter: string;
@@ -3457,7 +3457,7 @@ export declare function buildApps(config?: IAppConfig): {
3457
3457
  $post: {
3458
3458
  input: {
3459
3459
  json: {
3460
- chainId: 11155111 | 84532 | 72080;
3460
+ chainId: "11155111" | "84532" | "72080";
3461
3461
  baseURI: string;
3462
3462
  defaultTokenAdmin: string;
3463
3463
  minter: string;
package/dist/client.d.ts CHANGED
@@ -1572,7 +1572,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
1572
1572
  $post: {
1573
1573
  input: {
1574
1574
  json: {
1575
- chainId: number;
1575
+ chainId: "1" | "31337" | "11155111" | "84532" | "72080";
1576
1576
  market: string;
1577
1577
  fractions: {
1578
1578
  symbol: string;
@@ -2825,7 +2825,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
2825
2825
  $post: {
2826
2826
  input: {
2827
2827
  json: {
2828
- chainId: 11155111 | 84532 | 72080;
2828
+ chainId: "11155111" | "84532" | "72080";
2829
2829
  tokenName: string;
2830
2830
  tokenSymbol: string;
2831
2831
  supplyCap: string;
@@ -2906,7 +2906,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
2906
2906
  $post: {
2907
2907
  input: {
2908
2908
  json: {
2909
- chainId: 11155111 | 84532 | 72080;
2909
+ chainId: "11155111" | "84532" | "72080";
2910
2910
  tokenName: string;
2911
2911
  tokenSymbol: string;
2912
2912
  supplyCap: string;
@@ -3279,7 +3279,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3279
3279
  $post: {
3280
3280
  input: {
3281
3281
  json: {
3282
- chainId: 11155111 | 84532 | 72080;
3282
+ chainId: "11155111" | "84532" | "72080";
3283
3283
  tokenName: string;
3284
3284
  tokenSymbol: string;
3285
3285
  baseURI: string;
@@ -3360,7 +3360,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3360
3360
  $post: {
3361
3361
  input: {
3362
3362
  json: {
3363
- chainId: 11155111 | 84532 | 72080;
3363
+ chainId: "11155111" | "84532" | "72080";
3364
3364
  tokenName: string;
3365
3365
  tokenSymbol: string;
3366
3366
  baseURI: string;
@@ -3720,7 +3720,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3720
3720
  $post: {
3721
3721
  input: {
3722
3722
  json: {
3723
- chainId: 11155111 | 84532 | 72080;
3723
+ chainId: "11155111" | "84532" | "72080";
3724
3724
  baseURI: string;
3725
3725
  defaultTokenAdmin: string;
3726
3726
  minter: string;
@@ -3795,7 +3795,7 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3795
3795
  $post: {
3796
3796
  input: {
3797
3797
  json: {
3798
- chainId: 11155111 | 84532 | 72080;
3798
+ chainId: "11155111" | "84532" | "72080";
3799
3799
  baseURI: string;
3800
3800
  defaultTokenAdmin: string;
3801
3801
  minter: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const AssetSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
3
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
4
4
  address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
5
  type: z.ZodString;
6
6
  symbol: z.ZodString;
@@ -3,6 +3,6 @@ export { FractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
3
3
  export { FractionsChainId as NextFractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
4
4
  export { StakingChainId } from "@evergonlabs/tmi-protocol-staking-sdk";
5
5
  export declare const PolymorphicChainIds: ("1" | "31337" | "11155111" | "84532" | "72080")[];
6
- export declare const PolymorphicChainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
6
+ export declare const PolymorphicChainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
7
7
  export type IPolymorphicChainId = (typeof PolymorphicChainIds)[number];
8
8
  //# sourceMappingURL=chainId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../../../src/common/models/chainId.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,oDAE/B,CAAC;AAGF,eAAO,MAAM,kBAAkB,+IAM3B,CAAC;AAEL,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../../../src/common/models/chainId.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,oDAAyE,CAAC;AAG1G,eAAO,MAAM,kBAAkB,4EAI7B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -5,11 +5,9 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
5
  export { FractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
6
6
  export { FractionsChainId as NextFractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
7
7
  export { StakingChainId } from "@evergonlabs/tmi-protocol-staking-sdk";
8
- export const PolymorphicChainIds = [...new Set([...FractionsChains.chainIds, ...StakingChains.chainIds])].map((id) => `${id}`);
8
+ export const PolymorphicChainIds = [...new Set([...FractionsChains.chainIds, ...StakingChains.chainIds])];
9
9
  const polymorphicStringLiterals = PolymorphicChainIds.map((id) => z.literal(id));
10
- export const PolymorphicChainId = z
11
- .union(polymorphicStringLiterals)
12
- .openapi({
10
+ export const PolymorphicChainId = z.union(polymorphicStringLiterals).openapi({
13
11
  enum: PolymorphicChainIds,
14
12
  description: "Supported chain id",
15
13
  example: `${sepolia.id}`,
@@ -23,7 +23,7 @@ export declare const GatedTransactionSchema: z.ZodObject<{
23
23
  }, z.core.$strip>;
24
24
  export declare function toTransaction(tx: ITransaction): z.infer<typeof TransactionSchema>;
25
25
  export declare const SentTransactionParamsSchema: z.ZodObject<{
26
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
26
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
27
27
  hash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
28
28
  }, z.core.$strip>;
29
29
  //# sourceMappingURL=transaction.d.ts.map
@@ -325,7 +325,7 @@ export declare const FractionsApi: import("../common/controller.js").IApi<import
325
325
  $post: {
326
326
  input: {
327
327
  json: {
328
- chainId: number;
328
+ chainId: "1" | "31337" | "11155111" | "84532" | "72080";
329
329
  market: string;
330
330
  fractions: {
331
331
  symbol: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  import { indexerSchemas } from "../../common/indexer/schemas.js";
3
3
  export declare const FractionsMarketSchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
5
5
  transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  template: z.ZodEnum<{
7
7
  unknown: "unknown";
@@ -15,7 +15,7 @@ export declare const FractionsMarketSchema: z.ZodObject<{
15
15
  adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
16
16
  wrapperAddress: z.ZodNullable<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
17
17
  burnAsset: z.ZodNullable<z.ZodObject<{
18
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
18
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
19
19
  address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
20
20
  type: z.ZodString;
21
21
  symbol: z.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { FractionSaleEventEnum, FractionSaleStatusEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
2
2
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
3
3
  export declare const FractionActivityEntrySchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
5
5
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
7
7
  transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  import { indexerSchemas } from "../../../common/indexer/schemas.js";
3
3
  export declare const FractionsSaleSchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
5
5
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
7
7
  nftId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
@@ -15,7 +15,7 @@ export declare const FractionsSaleSchema: z.ZodObject<{
15
15
  owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
16
16
  fractions: z.ZodObject<{
17
17
  asset: z.ZodObject<{
18
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
18
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
19
19
  address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
20
20
  type: z.ZodString;
21
21
  symbol: z.ZodString;
@@ -44,7 +44,7 @@ export declare const FractionsSaleSchema: z.ZodObject<{
44
44
  }, z.core.$strip>>;
45
45
  wrappedAssets: z.ZodArray<z.ZodObject<{
46
46
  asset: z.ZodObject<{
47
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
47
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
48
48
  address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
49
49
  type: z.ZodString;
50
50
  symbol: z.ZodString;
@@ -57,7 +57,7 @@ export declare const FractionsSaleSchema: z.ZodObject<{
57
57
  }, z.core.$strip>>;
58
58
  fundingAssets: z.ZodArray<z.ZodObject<{
59
59
  asset: z.ZodObject<{
60
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
60
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
61
61
  address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
62
62
  type: z.ZodString;
63
63
  symbol: z.ZodString;
@@ -3,7 +3,7 @@ export declare const CreateFractionsV0: import("../../common/controller.js").ICo
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: number;
6
+ chainId: "1" | "31337" | "11155111" | "84532" | "72080";
7
7
  market: string;
8
8
  fractions: {
9
9
  symbol: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const FractionsSaleStatisticSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
3
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
4
4
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
5
  campaignId: z.ZodCoercedString<unknown>;
6
6
  statistics: z.ZodArray<z.ZodObject<{
@@ -3,7 +3,7 @@ export declare const SalesController: import("../../common/controller.js").ICont
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: number;
6
+ chainId: "1" | "31337" | "11155111" | "84532" | "72080";
7
7
  market: string;
8
8
  fractions: {
9
9
  symbol: string;
@@ -1,12 +1,12 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const ClaimStatisticsRequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
3
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
4
4
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
5
  campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
6
6
  walletAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
7
  }, z.core.$strip>;
8
8
  export declare const ClaimStatisticsResponseSchema: z.ZodObject<{
9
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
9
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
10
10
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
11
11
  campaignId: z.ZodCoercedString<unknown>;
12
12
  totalClaims: z.ZodNumber;
@@ -10,7 +10,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
10
10
  export declare const TxAuthDataRequestSchema: z.ZodObject<{
11
11
  marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
12
12
  userAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
13
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
13
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
14
14
  nonce: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
15
15
  blockExpiration: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
16
16
  callData: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -2,7 +2,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const NonceRequestSchema: z.ZodObject<{
3
3
  marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
4
4
  userAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
- chainId: z.ZodUnion<[z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">, ...z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]]>;
5
+ chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
6
6
  }, z.core.$strip>;
7
7
  export declare const GetNonceV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
8
8
  "/": {
@@ -70,9 +70,9 @@ async function fetchPerChainStatistics(c, chainIdFilter) {
70
70
  .groupBy(fractionsPurchases.chainId),
71
71
  ]);
72
72
  const val = FractionsChains.chainIds.reduce((prev, curr) => {
73
- const holdersByChain = holders.find((x) => x.chainId === curr);
74
- const salesByChain = sales.find((x) => x.chainId === curr);
75
- const ttvByChain = ttv.find((x) => x.chainId === curr);
73
+ const holdersByChain = holders.find((x) => x.chainId === Number(curr));
74
+ const salesByChain = sales.find((x) => x.chainId === Number(curr));
75
+ const ttvByChain = ttv.find((x) => x.chainId === Number(curr));
76
76
  return {
77
77
  ...prev,
78
78
  [curr]: {
@@ -1,5 +1,5 @@
1
1
  export declare const FactoryChainId: {
2
- Schema: import("zod").ZodUnion<[import("zod").ZodLiteral<11155111 | 84532 | 72080>, import("zod").ZodLiteral<11155111 | 84532 | 72080>, ...import("zod").ZodLiteral<11155111 | 84532 | 72080>[]]>;
2
+ Schema: import("zod").ZodUnion<[import("zod").ZodLiteral<"11155111" | "84532" | "72080">, import("zod").ZodLiteral<"11155111" | "84532" | "72080">, ...import("zod").ZodLiteral<"11155111" | "84532" | "72080">[]]>;
3
3
  chains: ({
4
4
  blockExplorers: {
5
5
  readonly default: {
@@ -407,9 +407,9 @@ export declare const FactoryChainId: {
407
407
  serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
408
408
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
409
409
  })[];
410
- chainIds: (11155111 | 84532 | 72080)[];
411
- isSupported: (chainId: number) => chainId is 11155111 | 84532 | 72080;
412
- get: <T extends 11155111 | 84532 | 72080>(chainId: T) => Extract<{
410
+ chainIds: ("11155111" | "84532" | "72080")[];
411
+ isSupported: (chainId: string) => chainId is "11155111" | "84532" | "72080";
412
+ get: <T extends "11155111" | "84532" | "72080">(chainId: T) => {
413
413
  blockExplorers: {
414
414
  readonly default: {
415
415
  readonly name: "Etherscan";
@@ -457,9 +457,7 @@ export declare const FactoryChainId: {
457
457
  }] | undefined;
458
458
  serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
459
459
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
460
- }, {
461
- id: T;
462
- }> | Extract<{
460
+ } | {
463
461
  blockExplorers: {
464
462
  readonly default: {
465
463
  readonly name: "Basescan";
@@ -776,9 +774,7 @@ export declare const FactoryChainId: {
776
774
  };
777
775
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
778
776
  readonly network: "base-sepolia";
779
- }, {
780
- id: T;
781
- }> | Extract<{
777
+ } | {
782
778
  blockExplorers: {
783
779
  readonly default: {
784
780
  readonly name: "Nexera Blockscout";
@@ -819,13 +815,11 @@ export declare const FactoryChainId: {
819
815
  }] | undefined;
820
816
  serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
821
817
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
822
- }, {
823
- id: T;
824
- }>;
818
+ };
825
819
  };
826
- export declare const factoryChainIds: (11155111 | 84532 | 72080)[];
820
+ export declare const factoryChainIds: ("11155111" | "84532" | "72080")[];
827
821
  export type IFactoryChainId = (typeof factoryChainIds)[number];
828
- export declare function getFactories<T extends IFactoryChainId>(id: T): {
822
+ export declare function getFactories(id: IFactoryChainId): {
829
823
  readonly DiamondFactory: "0x4be118d8a3a6f1490162e134E7419284827dbdBb";
830
824
  readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0xc29A12b1dF6f6F285f66fdd879b2feBc50a3bbEf";
831
825
  readonly ERC1155AutoIdPausableRecoverableFactory: "0xAc373c72e4683F8eFc5303d060703a480bfAA74A";
@@ -833,14 +827,6 @@ export declare function getFactories<T extends IFactoryChainId>(id: T): {
833
827
  readonly ERC20PausableRecoverableFactory: "0xFea92aC14C5B39590b29C86370D0A710aE02B45D";
834
828
  readonly ERC721AutoIdGatedPausableRecoverableFactory: "0xdB2b8eB6df1C89C1887ad9A38938153cc896AB37";
835
829
  readonly ERC721AutoIdPausableRecoverableFactory: "0xFE98EF8Ba0f70f59D18862F2528071F00A94f0C3";
836
- } | {
837
- readonly DiamondFactory: "0xAAd3aDadf5e0478B61AfBaf6FC5e9014FAAce613";
838
- readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0x9DE22869A7c1c861B62D3CdBE9242B2143060E25";
839
- readonly ERC1155AutoIdPausableRecoverableFactory: "0x122eCE2E44166646004028F393C04A4fB0f771C3";
840
- readonly ERC20GatedPausableRecoverableFactory: "0x8224a725B7F5E610DF3D02C638b0a2d2871713E7";
841
- readonly ERC20PausableRecoverableFactory: "0x58d01bf022a7d028bA03a9812146Fd7F08F16E5F";
842
- readonly ERC721AutoIdGatedPausableRecoverableFactory: "0x7dC36199B2b7117D8f587DB71D24976EabEbde5c";
843
- readonly ERC721AutoIdPausableRecoverableFactory: "0x1887C1402F8Fa1360077F7e7CB75071E5641a99b";
844
830
  } | {
845
831
  readonly DiamondFactory: "0x141c8f5BC8f7895E800518dc799f3D6e419b30Ac";
846
832
  readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0x059A29005D665134a2BDe3828053dA09C0423E68";
@@ -849,5 +835,13 @@ export declare function getFactories<T extends IFactoryChainId>(id: T): {
849
835
  readonly ERC20PausableRecoverableFactory: "0x868d1414BAc904175ba9c905EeE38150BDE34eBb";
850
836
  readonly ERC721AutoIdGatedPausableRecoverableFactory: "0x0fee6C8Cde9Ab6C59DA9a6b19127b9e616D7bE49";
851
837
  readonly ERC721AutoIdPausableRecoverableFactory: "0x0d6E0315119DBE67F717F76B75f2A0FBd8FF3858";
838
+ } | {
839
+ readonly DiamondFactory: "0xAAd3aDadf5e0478B61AfBaf6FC5e9014FAAce613";
840
+ readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0x9DE22869A7c1c861B62D3CdBE9242B2143060E25";
841
+ readonly ERC1155AutoIdPausableRecoverableFactory: "0x122eCE2E44166646004028F393C04A4fB0f771C3";
842
+ readonly ERC20GatedPausableRecoverableFactory: "0x8224a725B7F5E610DF3D02C638b0a2d2871713E7";
843
+ readonly ERC20PausableRecoverableFactory: "0x58d01bf022a7d028bA03a9812146Fd7F08F16E5F";
844
+ readonly ERC721AutoIdGatedPausableRecoverableFactory: "0x7dC36199B2b7117D8f587DB71D24976EabEbde5c";
845
+ readonly ERC721AutoIdPausableRecoverableFactory: "0x1887C1402F8Fa1360077F7e7CB75071E5641a99b";
852
846
  };
853
847
  //# sourceMappingURL=factories.base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories.base.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.base.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAa4Y,MAAgB;;mDAA+G,MAAgB;;6BAAoK,MAAgB,8DAA8D,MAAgB;;6BAAoK,MAAgB;;;6BAAmN,MAAgB,qCAAqC,MAAgB;sCAA0E,MAAgB,6BAA6B,MAAgB,gDAAgD,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAqP,MAAgB;;;;sCAAuJ,aAAa,yBAAyB,CAAC;;;;;sCAA2N,MAAgB;;;;;kCAAqM,MAAS;oCAA2C,MAAgB;;;yCAAiI,CAAC;uCAAgE,MAAgB;yCAA6C,MAAgB;uCAA0C,MAAgB;uCAA4C,MAAgB;;sCAAwE,MAAgB;;;2DAAkJ,aAAa;6CAA0E,MAAgB;mCAAuC,MAAgB;+BAAqC,CAAC,SAAS,MAAgB;mCAAuE,CAAC;;;;;;sCAA8L,aAAa,+BAA+B,CAAC;;;iCAAsJ,MAAS;;iCAAqE,MAAgB;kCAAsC,MAAgB;;8BAAgE,MAAgB;8BAAiC,MAAgB;+BAAkC,MAAS;;oCAAmG,MAAgB;;;;4BAAiI,CAAC;oCAAyD,CAAC;;;8BAAuI,CAAC;wBAA+B,CAAC;uCAAqE,MAAgB;;;8BAAoF,MAAgB;8BAAiC,MAAgB;;+BAA6D,MAAS;iCAA+C,MAAS;;;;;;iCAAgO,MAAgB;kCAA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8BAAmD,CAAC;;;;iCAAqK,MAAS;;iCAAqE,MAAgB;kCAAsC,MAAgB;;8BAAgE,MAAgB;8BAAiC,MAAgB;+BAAkC,MAAS;;oCAAmG,MAAgB;;;;uCAA4I,MAAgB;8CAAwD,MAAgB;uCAA8D,CAAC;;;4BAAmH,CAAC;oCAAyD,CAAC;;;8BAAuI,CAAC;wBAA6C,CAAC;8BAAmD,CAAC;;;;;;sCAAwM,aAAa,sCAAsC,CAAC;gCAAuD,CAAC;+BAAiD,CAAC;sCAAwD,MAAgB;;4CAAqF,MAAS;;;iCAAiJ,MAAS;;iCAAyE,MAAgB;sCAAkE,MAAgB;wBAA2B,CAAC;;+BAAwG,MAAS;4CAA0D,MAAgB;;iCAA+E,MAAgB;;;;;;;;;mDAAuT,MAAgB;;6BAAoK,MAAgB,8DAA8D,MAAgB;;6BAAoK,MAAgB;;;;gDAAyP,aAAa;;sCAAwE,MAAgB,6BAA6B,MAAgB,gDAAgD,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAdtka,CAAC;AAE3F,eAAO,MAAM,eAAe,oCAA0B,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,wBAAgB,YAAY,CAAC,EAAE,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAQ/C"}
@@ -6,8 +6,9 @@ import { HttpError } from "../../common/http-error.js";
6
6
  export const FactoryChainId = createSupportedChains([sepolia, baseSepolia, nexeraTestnet]);
7
7
  export const factoryChainIds = FactoryChainId.chainIds;
8
8
  export function getFactories(id) {
9
- if (id in constants.factoryAddresses) {
10
- return constants.factoryAddresses[id];
9
+ const numericId = Number(id);
10
+ if (numericId in constants.factoryAddresses) {
11
+ return constants.factoryAddresses[numericId];
11
12
  }
12
13
  throw new HttpError(400, {
13
14
  message: "This chain id is not supported yet",
@@ -1 +1 @@
1
- {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG1G,eAAO,MAAM,mBAAmB,+GAM5B,CAAC"}
1
+ {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG1G,eAAO,MAAM,mBAAmB,+GAI9B,CAAC"}
@@ -2,10 +2,8 @@ import { sepolia } from "viem/chains";
2
2
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
3
3
  import { FactoryChainId } from "./factories.base.js";
4
4
  export { FactoryChainId, factoryChainIds, getFactories } from "./factories.base.js";
5
- const stringLiterals = FactoryChainId.chainIds.map((id) => z.literal(`${id}`));
6
- export const FactoryChainIdQuery = z
7
- .union(stringLiterals)
8
- .openapi({
5
+ const literals = FactoryChainId.chainIds.map((id) => z.literal(id));
6
+ export const FactoryChainIdQuery = z.union(literals).openapi({
9
7
  enum: FactoryChainId.chainIds,
10
8
  description: "Supported chain id",
11
9
  example: `${sepolia.id}`,
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployErc1155RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  baseURI: z.ZodString;
5
5
  defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -10,7 +10,7 @@ export declare const CreateErc1155Token: import("../../../common/controller.js")
10
10
  $post: {
11
11
  input: {
12
12
  json: {
13
- chainId: 11155111 | 84532 | 72080;
13
+ chainId: "11155111" | "84532" | "72080";
14
14
  baseURI: string;
15
15
  defaultTokenAdmin: string;
16
16
  minter: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployGatedErc1155RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  baseURI: z.ZodString;
5
5
  defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -11,7 +11,7 @@ export declare const CreateGatedErc1155Token: import("../../../common/controller
11
11
  $post: {
12
12
  input: {
13
13
  json: {
14
- chainId: 11155111 | 84532 | 72080;
14
+ chainId: "11155111" | "84532" | "72080";
15
15
  baseURI: string;
16
16
  defaultTokenAdmin: string;
17
17
  minter: string;
@@ -3,7 +3,7 @@ export declare const Erc1155Controller: import("../../common/controller.js").ICo
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: 11155111 | 84532 | 72080;
6
+ chainId: "11155111" | "84532" | "72080";
7
7
  baseURI: string;
8
8
  defaultTokenAdmin: string;
9
9
  minter: string;
@@ -72,7 +72,7 @@ export declare const Erc1155Controller: import("../../common/controller.js").ICo
72
72
  $post: {
73
73
  input: {
74
74
  json: {
75
- chainId: 11155111 | 84532 | 72080;
75
+ chainId: "11155111" | "84532" | "72080";
76
76
  baseURI: string;
77
77
  defaultTokenAdmin: string;
78
78
  minter: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployErc20RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  tokenName: z.ZodString;
5
5
  tokenSymbol: z.ZodString;
6
6
  supplyCap: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
@@ -12,7 +12,7 @@ export declare const CreateErc20Token: import("../../../common/controller.js").I
12
12
  $post: {
13
13
  input: {
14
14
  json: {
15
- chainId: 11155111 | 84532 | 72080;
15
+ chainId: "11155111" | "84532" | "72080";
16
16
  tokenName: string;
17
17
  tokenSymbol: string;
18
18
  supplyCap: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployGatedErc20RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  tokenName: z.ZodString;
5
5
  tokenSymbol: z.ZodString;
6
6
  supplyCap: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
@@ -13,7 +13,7 @@ export declare const CreateGatedErc20Token: import("../../../common/controller.j
13
13
  $post: {
14
14
  input: {
15
15
  json: {
16
- chainId: 11155111 | 84532 | 72080;
16
+ chainId: "11155111" | "84532" | "72080";
17
17
  tokenName: string;
18
18
  tokenSymbol: string;
19
19
  supplyCap: string;
@@ -3,7 +3,7 @@ export declare const Erc20Controller: import("../../common/controller.js").ICont
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: 11155111 | 84532 | 72080;
6
+ chainId: "11155111" | "84532" | "72080";
7
7
  tokenName: string;
8
8
  tokenSymbol: string;
9
9
  supplyCap: string;
@@ -78,7 +78,7 @@ export declare const Erc20Controller: import("../../common/controller.js").ICont
78
78
  $post: {
79
79
  input: {
80
80
  json: {
81
- chainId: 11155111 | 84532 | 72080;
81
+ chainId: "11155111" | "84532" | "72080";
82
82
  tokenName: string;
83
83
  tokenSymbol: string;
84
84
  supplyCap: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployErc721RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  tokenName: z.ZodString;
5
5
  tokenSymbol: z.ZodString;
6
6
  baseURI: z.ZodString;
@@ -12,7 +12,7 @@ export declare const CreateErc721Token: import("../../../common/controller.js").
12
12
  $post: {
13
13
  input: {
14
14
  json: {
15
- chainId: 11155111 | 84532 | 72080;
15
+ chainId: "11155111" | "84532" | "72080";
16
16
  tokenName: string;
17
17
  tokenSymbol: string;
18
18
  baseURI: string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const DeployGatedErc721RequestSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 84532 | 72080>, z.ZodLiteral<11155111 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 84532 | 72080>[]]>;
3
+ chainId: z.ZodUnion<[z.ZodLiteral<"11155111" | "84532" | "72080">, z.ZodLiteral<"11155111" | "84532" | "72080">, ...z.ZodLiteral<"11155111" | "84532" | "72080">[]]>;
4
4
  tokenName: z.ZodString;
5
5
  tokenSymbol: z.ZodString;
6
6
  baseURI: z.ZodString;
@@ -13,7 +13,7 @@ export declare const CreateGatedErc721Token: import("../../../common/controller.
13
13
  $post: {
14
14
  input: {
15
15
  json: {
16
- chainId: 11155111 | 84532 | 72080;
16
+ chainId: "11155111" | "84532" | "72080";
17
17
  tokenName: string;
18
18
  tokenSymbol: string;
19
19
  baseURI: string;
@@ -3,7 +3,7 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: 11155111 | 84532 | 72080;
6
+ chainId: "11155111" | "84532" | "72080";
7
7
  tokenName: string;
8
8
  tokenSymbol: string;
9
9
  baseURI: string;
@@ -78,7 +78,7 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
78
78
  $post: {
79
79
  input: {
80
80
  json: {
81
- chainId: 11155111 | 84532 | 72080;
81
+ chainId: "11155111" | "84532" | "72080";
82
82
  tokenName: string;
83
83
  tokenSymbol: string;
84
84
  baseURI: string;
@@ -3,7 +3,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
3
3
  $post: {
4
4
  input: {
5
5
  json: {
6
- chainId: 11155111 | 84532 | 72080;
6
+ chainId: "11155111" | "84532" | "72080";
7
7
  tokenName: string;
8
8
  tokenSymbol: string;
9
9
  supplyCap: string;
@@ -78,7 +78,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
78
78
  $post: {
79
79
  input: {
80
80
  json: {
81
- chainId: 11155111 | 84532 | 72080;
81
+ chainId: "11155111" | "84532" | "72080";
82
82
  tokenName: string;
83
83
  tokenSymbol: string;
84
84
  supplyCap: string;
@@ -421,7 +421,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
421
421
  $post: {
422
422
  input: {
423
423
  json: {
424
- chainId: 11155111 | 84532 | 72080;
424
+ chainId: "11155111" | "84532" | "72080";
425
425
  tokenName: string;
426
426
  tokenSymbol: string;
427
427
  baseURI: string;
@@ -496,7 +496,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
496
496
  $post: {
497
497
  input: {
498
498
  json: {
499
- chainId: 11155111 | 84532 | 72080;
499
+ chainId: "11155111" | "84532" | "72080";
500
500
  tokenName: string;
501
501
  tokenSymbol: string;
502
502
  baseURI: string;
@@ -828,7 +828,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
828
828
  $post: {
829
829
  input: {
830
830
  json: {
831
- chainId: 11155111 | 84532 | 72080;
831
+ chainId: "11155111" | "84532" | "72080";
832
832
  baseURI: string;
833
833
  defaultTokenAdmin: string;
834
834
  minter: string;
@@ -897,7 +897,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
897
897
  $post: {
898
898
  input: {
899
899
  json: {
900
- chainId: 11155111 | 84532 | 72080;
900
+ chainId: "11155111" | "84532" | "72080";
901
901
  baseURI: string;
902
902
  defaultTokenAdmin: string;
903
903
  minter: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  import { indexerSchemas } from "../../../common/indexer/schemas.js";
3
3
  export declare const PlatformSchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
5
5
  transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
7
7
  contractAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  import { indexerSchemas } from "../../../common/indexer/schemas.js";
3
3
  export declare const PoolSchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
5
5
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  rewardsHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
7
  assetHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const RoleAssignmentSchema: z.ZodObject<{
3
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
3
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
4
4
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
5
  roleId: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  poolId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
@@ -2,7 +2,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const RoleEventSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  roleId: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
5
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
6
6
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
7
  txHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
8
  owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  import { indexerSchemas } from "../../../common/indexer/schemas.js";
3
3
  export declare const StakeSchema: z.ZodObject<{
4
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
5
5
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  poolId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
7
7
  owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const StakeEventSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
- chainId: z.ZodUnion<[z.ZodLiteral<"31337" | "11155111" | "84532">, ...z.ZodLiteral<"31337" | "11155111" | "84532">[]]>;
4
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
5
5
  platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
6
  poolId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
7
7
  owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.11.0-rc.1",
3
+ "version": "0.11.0-rc.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,9 +38,9 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@evergonlabs/tmi-contracts-fractions-sdk": "1.2.3",
41
- "@evergonlabs/tmi-evm-contracts": "0.7.1",
41
+ "@evergonlabs/tmi-evm-contracts": "0.8.0-rc.0",
42
42
  "@evergonlabs/tmi-factories-sdk": "0.3.1",
43
- "@evergonlabs/tmi-utils": "0.7.1",
43
+ "@evergonlabs/tmi-utils": "0.8.0-rc.0",
44
44
  "@hono/node-server": "^1.19.9",
45
45
  "@hono/standard-validator": "^0.2.2",
46
46
  "@hono/swagger-ui": "^0.5.3",
@@ -57,17 +57,17 @@
57
57
  "viem": "2.46.2",
58
58
  "zod": "^4.3.6",
59
59
  "zod-openapi": "^5.4.6",
60
- "@evergonlabs/tmi-protocol-contracts": "0.11.0-rc.1",
61
- "@evergonlabs/tmi-protocol-fractions-sdk": "0.11.0-rc.1",
62
- "@evergonlabs/tmi-protocol-indexer": "0.11.0-rc.1",
63
- "@evergonlabs/tmi-protocol-shared": "0.11.0-rc.1",
64
- "@evergonlabs/tmi-protocol-staking-sdk": "0.11.0-rc.1",
65
- "@evergonlabs/tmi-protocol-types": "0.11.0-rc.1",
66
- "@evergonlabs/tmi-protocol-utils": "0.11.0-rc.1"
60
+ "@evergonlabs/tmi-protocol-contracts": "0.11.0-rc.3",
61
+ "@evergonlabs/tmi-protocol-fractions-sdk": "0.11.0-rc.3",
62
+ "@evergonlabs/tmi-protocol-indexer": "0.11.0-rc.3",
63
+ "@evergonlabs/tmi-protocol-shared": "0.11.0-rc.3",
64
+ "@evergonlabs/tmi-protocol-staking-sdk": "0.11.0-rc.3",
65
+ "@evergonlabs/tmi-protocol-types": "0.11.0-rc.3",
66
+ "@evergonlabs/tmi-protocol-utils": "0.11.0-rc.3"
67
67
  },
68
68
  "devDependencies": {
69
- "@evergonlabs/tmi-eslint-config": "0.7.1",
70
- "@evergonlabs/tmi-typescript-config": "0.7.1",
69
+ "@evergonlabs/tmi-eslint-config": "0.8.0-rc.0",
70
+ "@evergonlabs/tmi-typescript-config": "0.8.0-rc.0",
71
71
  "@topcli/prompts": "^2.1.0",
72
72
  "dotenv": "^17.2.2",
73
73
  "esbuild": "^0.25.0",