@evergonlabs/tmi-protocol-api 0.11.1 → 0.11.2-rc.0
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/common/models/chainId.d.ts +2 -2
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/exports.d.ts +1 -1
- package/dist/common/models/exports.d.ts.map +1 -1
- package/dist/common/models/exports.js +1 -1
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +1 -1
- package/dist/fractions/sales/searchActivity.js +1 -1
- package/dist/staking/platforms/common/platform.js +1 -1
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +2 -2
- package/dist/staking/roles/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents.js +2 -2
- package/dist/staking/roles/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles.js +2 -2
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +2 -2
- package/dist/staking/stakes/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents.js +2 -2
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
-
export { FractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
2
|
+
export { FractionsChainId, type IFractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
3
3
|
export { FractionsChainId as NextFractionsChainId } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
export { StakingChainId } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
4
|
+
export { type IStakingChainId, StakingChainId } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
5
5
|
export declare const PolymorphicChainIds: ("1" | "31337" | "11155111" | "84532" | "72080")[];
|
|
6
6
|
export declare const PolymorphicChainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
7
7
|
export type IPolymorphicChainId = (typeof PolymorphicChainIds)[number];
|
|
@@ -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;
|
|
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,KAAK,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACxG,OAAO,EAAE,KAAK,eAAe,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE7F,eAAO,MAAM,mBAAmB,oDAAyE,CAAC;AAG1G,eAAO,MAAM,kBAAkB,4EAI7B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FractionsChainId, type IPolymorphicChainId, PolymorphicChainId, StakingChainId } from "./chainId.js";
|
|
1
|
+
export { FractionsChainId, type IFractionsChainId, type IPolymorphicChainId, type IStakingChainId, PolymorphicChainId, StakingChainId, } from "./chainId.js";
|
|
2
2
|
export { DeployTransactionSchema, type IDeployTransactionSchema } from "./deployTransaction.js";
|
|
3
3
|
export { type IPageSchema, PageSchema } from "./page.js";
|
|
4
4
|
export { type ITransactionSchema, TransactionSchema } from "./transaction.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/models/exports.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/models/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,kBAAkB,EAClB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,KAAK,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,KAAK,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,KAAK,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FractionsChainId, PolymorphicChainId, StakingChainId } from "./chainId.js";
|
|
1
|
+
export { FractionsChainId, PolymorphicChainId, StakingChainId, } from "./chainId.js";
|
|
2
2
|
export { DeployTransactionSchema } from "./deployTransaction.js";
|
|
3
3
|
export { PageSchema } from "./page.js";
|
|
4
4
|
export { TransactionSchema } from "./transaction.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAcxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDL,CAAC;AAE5B,wBAAgB,eAAe,CAC7B,GAAG,EAAE,OAAO,cAAc,CAAC,SAAS,CAAC,cAAc,CAAC,YAAY,EAChE,cAAc,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,EAEzD,aAAa,EAAE,GAAG,EAAE,EACpB,aAAa,EAAE,GAAG,EAAE,GACnB,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CA6BrC"}
|
|
@@ -54,7 +54,7 @@ wrappedAssets, fundingAssets) {
|
|
|
54
54
|
const timeline = toSaleTimeline(raw);
|
|
55
55
|
const vesting = toSaleVesting(raw);
|
|
56
56
|
return {
|
|
57
|
-
chainId:
|
|
57
|
+
chainId: `${raw.chainId}`,
|
|
58
58
|
platform: AddressSchema.parse(raw.diamondAddress),
|
|
59
59
|
campaignId: toInt256Json(raw.saleId),
|
|
60
60
|
nftId: toInt256Json(raw.nftId),
|
|
@@ -52,7 +52,7 @@ export const SearchActivityV0 = createController({
|
|
|
52
52
|
orderBy: desc(fractionsSaleActivity.createdAt),
|
|
53
53
|
});
|
|
54
54
|
return c.json(result.map((i) => FractionActivityEntrySchema.parse({
|
|
55
|
-
chainId: i.chainId
|
|
55
|
+
chainId: `${i.chainId}`,
|
|
56
56
|
platform: i.diamondAddress,
|
|
57
57
|
campaignId: toInt256Json(i.saleId),
|
|
58
58
|
metadata: i.metadata,
|
|
@@ -15,7 +15,7 @@ export const PlatformSchema = z
|
|
|
15
15
|
.openapi("Platform");
|
|
16
16
|
export function mapToPlatform(diamond) {
|
|
17
17
|
return {
|
|
18
|
-
chainId:
|
|
18
|
+
chainId: `${diamond.chainId}`,
|
|
19
19
|
transactionHash: diamond.txHash,
|
|
20
20
|
contractAddress: diamond.contractAddress,
|
|
21
21
|
adminAddress: diamond.adminAddress,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../src/staking/pools/common/pool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../src/staking/pools/common/pool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAaxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,UAAU;;;;;;;;iBAUL,CAAC;AAEnB,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,cAAc,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAUpG"}
|
|
@@ -3,7 +3,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
|
3
3
|
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
4
4
|
import { ISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
-
import { AddressSchema, HashSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../common/index.js";
|
|
6
|
+
import { AddressSchema, HashSchema, PlatformContractAddress, PoolIdSchema, StakingChainId, } from "../../../common/index.js";
|
|
7
7
|
export const PoolSchema = z
|
|
8
8
|
.object({
|
|
9
9
|
chainId: StakingChainId,
|
|
@@ -17,7 +17,7 @@ export const PoolSchema = z
|
|
|
17
17
|
.openapi("Pool");
|
|
18
18
|
export function mapToPool(raw) {
|
|
19
19
|
return {
|
|
20
|
-
chainId:
|
|
20
|
+
chainId: `${raw.chainId}`,
|
|
21
21
|
platform: raw.diamondAddress,
|
|
22
22
|
rewardsHandler: raw.rewardsHandler,
|
|
23
23
|
assetHandler: raw.assetsHandler,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchRoleEvents.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/searchRoleEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"searchRoleEvents.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/searchRoleEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAiBxD,eAAO,MAAM,wBAAwB;;;;;;;;;kBAA+D,CAAC;AAErG,eAAO,MAAM,qBAAqB;;;;;;;iBASC,CAAC;AAEpC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aA8C3B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { describeRoute } from "hono-openapi";
|
|
|
3
3
|
import { resolver, validator } from "hono-openapi";
|
|
4
4
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
|
-
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../common/index.js";
|
|
6
|
+
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId, } from "../../common/index.js";
|
|
7
7
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
8
8
|
import { PageSchema } from "../../common/models/page.js";
|
|
9
9
|
import { createTag } from "../../common/tag.js";
|
|
@@ -55,7 +55,7 @@ export const SearchRoleEvents = createController({
|
|
|
55
55
|
function toRoleEvent(raw) {
|
|
56
56
|
return {
|
|
57
57
|
id: raw.id,
|
|
58
|
-
chainId:
|
|
58
|
+
chainId: `${raw.chainId}`,
|
|
59
59
|
platform: raw.diamondAddress,
|
|
60
60
|
owner: raw.walletAddress,
|
|
61
61
|
roleId: raw.roleId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchRoles.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/searchRoles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"searchRoles.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/searchRoles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAkBxD,eAAO,MAAM,mBAAmB;;;;;;;;kBAA+D,CAAC;AAEhG,eAAO,MAAM,gBAAgB;;;;;;;iBASC,CAAC;AAE/B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;aA6CtB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
|
5
5
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
6
6
|
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
7
7
|
import { createController } from "../../common/controller.js";
|
|
8
|
-
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../common/index.js";
|
|
8
|
+
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId, } from "../../common/index.js";
|
|
9
9
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
10
10
|
import { PageSchema } from "../../common/models/page.js";
|
|
11
11
|
import { createTag } from "../../common/tag.js";
|
|
@@ -56,7 +56,7 @@ export const SearchRoles = createController({
|
|
|
56
56
|
});
|
|
57
57
|
function toRoleAssignment(raw) {
|
|
58
58
|
return {
|
|
59
|
-
chainId:
|
|
59
|
+
chainId: `${raw.chainId}`,
|
|
60
60
|
platform: raw.diamondAddress,
|
|
61
61
|
owner: raw.walletAddress,
|
|
62
62
|
roleId: raw.roleId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/common/stake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/common/stake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAaxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,WAAW;;;;;;;;;;;;;iBAqBL,CAAC;AAEpB,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAetG"}
|
|
@@ -3,7 +3,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
|
3
3
|
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
4
4
|
import { ISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
-
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakeIdSchema, StakingChainId } from "../../../common/index.js";
|
|
6
|
+
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakeIdSchema, StakingChainId, } from "../../../common/index.js";
|
|
7
7
|
export const StakeSchema = z
|
|
8
8
|
.object({
|
|
9
9
|
chainId: StakingChainId,
|
|
@@ -28,7 +28,7 @@ export const StakeSchema = z
|
|
|
28
28
|
.openapi("Stake");
|
|
29
29
|
export function mapToStake(raw) {
|
|
30
30
|
return {
|
|
31
|
-
chainId: `${
|
|
31
|
+
chainId: `${raw.chainId}`,
|
|
32
32
|
platform: raw.diamondAddress,
|
|
33
33
|
owner: raw.walletAddress,
|
|
34
34
|
poolId: toInt256Json(raw.poolId),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchStakeEvents.d.ts","sourceRoot":"","sources":["../../../src/staking/stakes/searchStakeEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"searchStakeEvents.d.ts","sourceRoot":"","sources":["../../../src/staking/stakes/searchStakeEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAmBxD,eAAO,MAAM,yBAAyB;;;;;;;;;kBAAiE,CAAC;AAExG,eAAO,MAAM,sBAAsB;;;;;;;iBASC,CAAC;AAErC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;aA8C5B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
|
6
6
|
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
7
7
|
import { toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
8
8
|
import { createController } from "../../common/controller.js";
|
|
9
|
-
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../common/index.js";
|
|
9
|
+
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId, } from "../../common/index.js";
|
|
10
10
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
11
11
|
import { PageSchema } from "../../common/models/page.js";
|
|
12
12
|
import { createTag } from "../../common/tag.js";
|
|
@@ -59,7 +59,7 @@ function toStakeEvent(raw) {
|
|
|
59
59
|
return {
|
|
60
60
|
id: raw.id,
|
|
61
61
|
txHash: raw.txHash,
|
|
62
|
-
chainId:
|
|
62
|
+
chainId: `${raw.chainId}`,
|
|
63
63
|
platform: raw.diamondAddress,
|
|
64
64
|
owner: raw.walletAddress,
|
|
65
65
|
poolId: raw.poolId ? toInt256Json(raw.poolId) : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evergonlabs/tmi-protocol-api",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -57,13 +57,13 @@
|
|
|
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.
|
|
61
|
-
"@evergonlabs/tmi-protocol-fractions-sdk": "0.11.
|
|
62
|
-
"@evergonlabs/tmi-protocol-indexer": "0.11.
|
|
63
|
-
"@evergonlabs/tmi-protocol-shared": "0.11.
|
|
64
|
-
"@evergonlabs/tmi-protocol-staking-sdk": "0.11.
|
|
65
|
-
"@evergonlabs/tmi-protocol-types": "0.11.
|
|
66
|
-
"@evergonlabs/tmi-protocol-utils": "0.11.
|
|
60
|
+
"@evergonlabs/tmi-protocol-contracts": "0.11.2-rc.0",
|
|
61
|
+
"@evergonlabs/tmi-protocol-fractions-sdk": "0.11.2-rc.0",
|
|
62
|
+
"@evergonlabs/tmi-protocol-indexer": "0.11.2-rc.0",
|
|
63
|
+
"@evergonlabs/tmi-protocol-shared": "0.11.2-rc.0",
|
|
64
|
+
"@evergonlabs/tmi-protocol-staking-sdk": "0.11.2-rc.0",
|
|
65
|
+
"@evergonlabs/tmi-protocol-types": "0.11.2-rc.0",
|
|
66
|
+
"@evergonlabs/tmi-protocol-utils": "0.11.2-rc.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@evergonlabs/tmi-eslint-config": "0.8.0-rc.1",
|