@evergonlabs/tmi-protocol-api 0.1.4 → 0.2.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/app.d.ts +71 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +2 -0
- package/dist/client.d.ts +83 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.d.ts +45 -9
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/utils.d.ts +91 -15
- package/dist/fractions/activity/utils.d.ts.map +1 -1
- package/dist/fractions/activity/utils.js +12 -3
- package/dist/fractions/deployMarket/v0/index.d.ts +3 -0
- package/dist/fractions/deployMarket/v0/index.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/index.js +2 -0
- package/dist/fractions/index.d.ts +15 -3
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/sales/searchActivity.route.js +2 -2
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +6 -6
- package/dist/general/balanceClient.d.ts +21 -5
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +19 -3
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +8 -3
- package/dist/issuance/deploy.d.ts +63 -0
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +78 -0
- package/dist/issuance/index.d.ts +56 -0
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +6 -2
- package/dist/issuance/upgrade.d.ts +82 -0
- package/dist/issuance/upgrade.d.ts.map +1 -0
- package/dist/issuance/upgrade.js +46 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts +57 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts.map +1 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.js +33 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts +12 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts.map +1 -0
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.js +10 -0
- package/dist/lending/buyback/v0/buyback.routes.d.ts +61 -0
- package/dist/lending/buyback/v0/buyback.routes.d.ts.map +1 -0
- package/dist/lending/buyback/v0/buyback.routes.js +33 -0
- package/dist/lending/buyback/v0/buyback.schema.d.ts +15 -0
- package/dist/lending/buyback/v0/buyback.schema.d.ts.map +1 -0
- package/dist/lending/buyback/v0/buyback.schema.js +13 -0
- package/dist/lending/createLendingSale.d.ts +585 -0
- package/dist/lending/createLendingSale.d.ts.map +1 -0
- package/dist/lending/createLendingSale.js +81 -0
- package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts +117 -0
- package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/lending/deployMarket/v0/deployMarket.routes.js +34 -0
- package/dist/lending/deployMarket/v0/deployMarket.schema.d.ts +105 -0
- package/dist/lending/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/lending/deployMarket/v0/deployMarket.schema.js +12 -0
- package/dist/lending/deployMarket/v0/lending.routes.d.ts +105 -0
- package/dist/lending/deployMarket/v0/lending.routes.d.ts.map +1 -0
- package/dist/lending/deployMarket/v0/lending.routes.js +35 -0
- package/dist/lending/deployMarket/v0/lending.schema.d.ts +99 -0
- package/dist/lending/deployMarket/v0/lending.schema.d.ts.map +1 -0
- package/dist/lending/deployMarket/v0/lending.schema.js +14 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts +57 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts.map +1 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.js +33 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts +12 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts.map +1 -0
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.js +10 -0
- package/dist/lending/index.d.ts +226 -0
- package/dist/lending/index.d.ts.map +1 -0
- package/dist/lending/index.js +24 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts +61 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts.map +1 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.js +33 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts +15 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts.map +1 -0
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.js +13 -0
- package/package.json +6 -6
- package/dist/fractions/sales/searchClaim.route.d.ts +0 -62
- package/dist/fractions/sales/searchClaim.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchClaim.route.js +0 -47
- package/dist/fractions/sales/searchPurchase.route.d.ts +0 -120
- package/dist/fractions/sales/searchPurchase.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchPurchase.route.js +0 -70
package/dist/app.d.ts
CHANGED
|
@@ -2064,13 +2064,20 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
|
|
|
2064
2064
|
} | {
|
|
2065
2065
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
2066
2066
|
amountOfFractions: string;
|
|
2067
|
+
amountPaid: string;
|
|
2068
|
+
amountBurnt: string;
|
|
2067
2069
|
priceId: string;
|
|
2068
2070
|
purchaser: string;
|
|
2069
2071
|
} | {
|
|
2072
|
+
received: {
|
|
2073
|
+
tokenId: string;
|
|
2074
|
+
tokenAddress: string;
|
|
2075
|
+
amount: string;
|
|
2076
|
+
}[];
|
|
2070
2077
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
2071
2078
|
receiver: string;
|
|
2072
|
-
|
|
2073
|
-
|
|
2079
|
+
claimId: string;
|
|
2080
|
+
fractionsBurnt: string;
|
|
2074
2081
|
} | {
|
|
2075
2082
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
2076
2083
|
amount: string;
|
|
@@ -2078,8 +2085,13 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
|
|
|
2078
2085
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
2079
2086
|
amount: string;
|
|
2080
2087
|
} | {
|
|
2088
|
+
received: {
|
|
2089
|
+
tokenId: string;
|
|
2090
|
+
tokenAddress: string;
|
|
2091
|
+
amount: string;
|
|
2092
|
+
}[];
|
|
2081
2093
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
2082
|
-
|
|
2094
|
+
receiver: string;
|
|
2083
2095
|
};
|
|
2084
2096
|
}[];
|
|
2085
2097
|
outputFormat: "json";
|
|
@@ -2486,6 +2498,62 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
|
|
|
2486
2498
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2487
2499
|
};
|
|
2488
2500
|
};
|
|
2501
|
+
} & {
|
|
2502
|
+
"/proxy/deployTransparentProxy": {
|
|
2503
|
+
$post: {
|
|
2504
|
+
input: {
|
|
2505
|
+
json: {
|
|
2506
|
+
implementation: `0x${string}`;
|
|
2507
|
+
proxyAdmin: `0x${string}`;
|
|
2508
|
+
data?: `0x${string}` | undefined;
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2511
|
+
output: {
|
|
2512
|
+
abi: any[];
|
|
2513
|
+
args: any[];
|
|
2514
|
+
bytecode: `0x${string}`;
|
|
2515
|
+
};
|
|
2516
|
+
outputFormat: "json";
|
|
2517
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
} & {
|
|
2521
|
+
"/proxy/deployProxyAdmin": {
|
|
2522
|
+
$get: {
|
|
2523
|
+
input: {};
|
|
2524
|
+
output: {
|
|
2525
|
+
abi: any[];
|
|
2526
|
+
bytecode: `0x${string}`;
|
|
2527
|
+
};
|
|
2528
|
+
outputFormat: "json";
|
|
2529
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
} & {
|
|
2533
|
+
"/proxy/upgradeTransparentProxy": {
|
|
2534
|
+
$post: {
|
|
2535
|
+
input: {
|
|
2536
|
+
json: {
|
|
2537
|
+
newImplementation: `0x${string}`;
|
|
2538
|
+
proxyAdminAddress: `0x${string}`;
|
|
2539
|
+
proxyAddress: `0x${string}`;
|
|
2540
|
+
data?: `0x${string}` | undefined;
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
output: {
|
|
2544
|
+
data: `0x${string}`;
|
|
2545
|
+
to: `0x${string}`;
|
|
2546
|
+
details: {
|
|
2547
|
+
functionName: string;
|
|
2548
|
+
address: `0x${string}`;
|
|
2549
|
+
abi: any[];
|
|
2550
|
+
args: any[];
|
|
2551
|
+
};
|
|
2552
|
+
};
|
|
2553
|
+
outputFormat: "json";
|
|
2554
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2489
2557
|
}, "/issuance">, "/">, "/">;
|
|
2490
2558
|
export type IApp = ReturnType<typeof getApp>;
|
|
2491
2559
|
export declare const appConfig: {
|
package/dist/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAWtC;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,SAAS;;;CAGpB,CAAC"}
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cors } from "hono/cors";
|
|
2
|
+
import { logger } from "hono/logger";
|
|
2
3
|
import { stakingApi } from "./staking/index.js";
|
|
3
4
|
import { stakingTemplatesApi } from "./staking-templates/index.js";
|
|
4
5
|
import { createErrorHandler } from "./error.js";
|
|
@@ -10,6 +11,7 @@ export function getApp(factory) {
|
|
|
10
11
|
return factory
|
|
11
12
|
.createApp()
|
|
12
13
|
.use("/*", cors())
|
|
14
|
+
.use("/*", logger())
|
|
13
15
|
.route("/", stakingApi.createApp(factory))
|
|
14
16
|
.route("/", stakingTemplatesApi.createApp(factory))
|
|
15
17
|
.route("/", fractionsApi.createApp(factory))
|
package/dist/client.d.ts
CHANGED
|
@@ -2535,13 +2535,20 @@ export declare function createClient(...args: Parameters<typeof hc>): {
|
|
|
2535
2535
|
} | {
|
|
2536
2536
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
2537
2537
|
amountOfFractions: string;
|
|
2538
|
+
amountPaid: string;
|
|
2539
|
+
amountBurnt: string;
|
|
2538
2540
|
priceId: string;
|
|
2539
2541
|
purchaser: string;
|
|
2540
2542
|
} | {
|
|
2543
|
+
received: {
|
|
2544
|
+
tokenId: string;
|
|
2545
|
+
tokenAddress: string;
|
|
2546
|
+
amount: string;
|
|
2547
|
+
}[];
|
|
2541
2548
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
2542
2549
|
receiver: string;
|
|
2543
|
-
|
|
2544
|
-
|
|
2550
|
+
claimId: string;
|
|
2551
|
+
fractionsBurnt: string;
|
|
2545
2552
|
} | {
|
|
2546
2553
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
2547
2554
|
amount: string;
|
|
@@ -2549,8 +2556,13 @@ export declare function createClient(...args: Parameters<typeof hc>): {
|
|
|
2549
2556
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
2550
2557
|
amount: string;
|
|
2551
2558
|
} | {
|
|
2559
|
+
received: {
|
|
2560
|
+
tokenId: string;
|
|
2561
|
+
tokenAddress: string;
|
|
2562
|
+
amount: string;
|
|
2563
|
+
}[];
|
|
2552
2564
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
2553
|
-
|
|
2565
|
+
receiver: string;
|
|
2554
2566
|
};
|
|
2555
2567
|
}[];
|
|
2556
2568
|
outputFormat: "json";
|
|
@@ -3034,6 +3046,74 @@ export declare function createClient(...args: Parameters<typeof hc>): {
|
|
|
3034
3046
|
}>;
|
|
3035
3047
|
};
|
|
3036
3048
|
};
|
|
3049
|
+
} & {
|
|
3050
|
+
issuance: {
|
|
3051
|
+
proxy: {
|
|
3052
|
+
deployTransparentProxy: import("hono/client").ClientRequest<{
|
|
3053
|
+
$post: {
|
|
3054
|
+
input: {
|
|
3055
|
+
json: {
|
|
3056
|
+
implementation: `0x${string}`;
|
|
3057
|
+
proxyAdmin: `0x${string}`;
|
|
3058
|
+
data?: `0x${string}` | undefined;
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
output: {
|
|
3062
|
+
abi: any[];
|
|
3063
|
+
args: any[];
|
|
3064
|
+
bytecode: `0x${string}`;
|
|
3065
|
+
};
|
|
3066
|
+
outputFormat: "json";
|
|
3067
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3068
|
+
};
|
|
3069
|
+
}>;
|
|
3070
|
+
};
|
|
3071
|
+
};
|
|
3072
|
+
} & {
|
|
3073
|
+
issuance: {
|
|
3074
|
+
proxy: {
|
|
3075
|
+
deployProxyAdmin: import("hono/client").ClientRequest<{
|
|
3076
|
+
$get: {
|
|
3077
|
+
input: {};
|
|
3078
|
+
output: {
|
|
3079
|
+
abi: any[];
|
|
3080
|
+
bytecode: `0x${string}`;
|
|
3081
|
+
};
|
|
3082
|
+
outputFormat: "json";
|
|
3083
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3084
|
+
};
|
|
3085
|
+
}>;
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
} & {
|
|
3089
|
+
issuance: {
|
|
3090
|
+
proxy: {
|
|
3091
|
+
upgradeTransparentProxy: import("hono/client").ClientRequest<{
|
|
3092
|
+
$post: {
|
|
3093
|
+
input: {
|
|
3094
|
+
json: {
|
|
3095
|
+
newImplementation: `0x${string}`;
|
|
3096
|
+
proxyAdminAddress: `0x${string}`;
|
|
3097
|
+
proxyAddress: `0x${string}`;
|
|
3098
|
+
data?: `0x${string}` | undefined;
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
output: {
|
|
3102
|
+
data: `0x${string}`;
|
|
3103
|
+
to: `0x${string}`;
|
|
3104
|
+
details: {
|
|
3105
|
+
functionName: string;
|
|
3106
|
+
address: `0x${string}`;
|
|
3107
|
+
abi: any[];
|
|
3108
|
+
args: any[];
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
3111
|
+
outputFormat: "json";
|
|
3112
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3113
|
+
};
|
|
3114
|
+
}>;
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3037
3117
|
};
|
|
3038
3118
|
export type IApi = ReturnType<typeof createClient>;
|
|
3039
3119
|
export type { InferRequestType, InferResponseType } from "hono/client";
|
package/dist/client.d.ts.map
CHANGED
|
@@ -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
|
|
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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aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -17,13 +17,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
17
17
|
} | {
|
|
18
18
|
type: FractionSaleEventEnum.PURCHASE;
|
|
19
19
|
amountOfFractions: string;
|
|
20
|
+
amountPaid: string;
|
|
21
|
+
amountBurnt: string;
|
|
20
22
|
priceId: string;
|
|
21
23
|
purchaser: string;
|
|
22
24
|
} | {
|
|
25
|
+
received: {
|
|
26
|
+
tokenId: string;
|
|
27
|
+
tokenAddress: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
}[];
|
|
23
30
|
type: FractionSaleEventEnum.CLAIM;
|
|
24
31
|
receiver: string;
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
claimId: string;
|
|
33
|
+
fractionsBurnt: string;
|
|
27
34
|
} | {
|
|
28
35
|
type: FractionSaleEventEnum.REFUND;
|
|
29
36
|
amount: string;
|
|
@@ -31,8 +38,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
31
38
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
32
39
|
amount: string;
|
|
33
40
|
} | {
|
|
41
|
+
received: {
|
|
42
|
+
tokenId: string;
|
|
43
|
+
tokenAddress: string;
|
|
44
|
+
amount: string;
|
|
45
|
+
}[];
|
|
34
46
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
35
|
-
|
|
47
|
+
receiver: string;
|
|
36
48
|
};
|
|
37
49
|
}[], import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
38
50
|
in: {
|
|
@@ -79,13 +91,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
79
91
|
} | {
|
|
80
92
|
type: FractionSaleEventEnum.PURCHASE;
|
|
81
93
|
amountOfFractions: string;
|
|
94
|
+
amountPaid: string;
|
|
95
|
+
amountBurnt: string;
|
|
82
96
|
priceId: string;
|
|
83
97
|
purchaser: string;
|
|
84
98
|
} | {
|
|
99
|
+
received: {
|
|
100
|
+
tokenId: string;
|
|
101
|
+
tokenAddress: string;
|
|
102
|
+
amount: string;
|
|
103
|
+
}[];
|
|
85
104
|
type: FractionSaleEventEnum.CLAIM;
|
|
86
105
|
receiver: string;
|
|
87
|
-
|
|
88
|
-
|
|
106
|
+
claimId: string;
|
|
107
|
+
fractionsBurnt: string;
|
|
89
108
|
} | {
|
|
90
109
|
type: FractionSaleEventEnum.REFUND;
|
|
91
110
|
amount: string;
|
|
@@ -93,8 +112,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
93
112
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
94
113
|
amount: string;
|
|
95
114
|
} | {
|
|
115
|
+
received: {
|
|
116
|
+
tokenId: string;
|
|
117
|
+
tokenAddress: string;
|
|
118
|
+
amount: string;
|
|
119
|
+
}[];
|
|
96
120
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
97
|
-
|
|
121
|
+
receiver: string;
|
|
98
122
|
};
|
|
99
123
|
}[], import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
100
124
|
in: {
|
|
@@ -141,13 +165,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
141
165
|
} | {
|
|
142
166
|
type: FractionSaleEventEnum.PURCHASE;
|
|
143
167
|
amountOfFractions: string;
|
|
168
|
+
amountPaid: string;
|
|
169
|
+
amountBurnt: string;
|
|
144
170
|
priceId: string;
|
|
145
171
|
purchaser: string;
|
|
146
172
|
} | {
|
|
173
|
+
received: {
|
|
174
|
+
tokenId: string;
|
|
175
|
+
tokenAddress: string;
|
|
176
|
+
amount: string;
|
|
177
|
+
}[];
|
|
147
178
|
type: FractionSaleEventEnum.CLAIM;
|
|
148
179
|
receiver: string;
|
|
149
|
-
|
|
150
|
-
|
|
180
|
+
claimId: string;
|
|
181
|
+
fractionsBurnt: string;
|
|
151
182
|
} | {
|
|
152
183
|
type: FractionSaleEventEnum.REFUND;
|
|
153
184
|
amount: string;
|
|
@@ -155,8 +186,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
155
186
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
156
187
|
amount: string;
|
|
157
188
|
} | {
|
|
189
|
+
received: {
|
|
190
|
+
tokenId: string;
|
|
191
|
+
tokenAddress: string;
|
|
192
|
+
amount: string;
|
|
193
|
+
}[];
|
|
158
194
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
159
|
-
|
|
195
|
+
receiver: string;
|
|
160
196
|
};
|
|
161
197
|
}[], import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
162
198
|
//# sourceMappingURL=searchActivity.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/searchActivity.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAIjF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/searchActivity.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAIjF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEA+D3E"}
|
|
@@ -29,31 +29,60 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
29
29
|
purchaser: z.ZodString;
|
|
30
30
|
priceId: z.ZodString;
|
|
31
31
|
amountOfFractions: z.ZodString;
|
|
32
|
+
amountPaid: z.ZodString;
|
|
33
|
+
amountBurnt: z.ZodString;
|
|
32
34
|
}, "strip", z.ZodTypeAny, {
|
|
33
35
|
type: FractionSaleEventEnum.PURCHASE;
|
|
34
36
|
amountOfFractions: string;
|
|
37
|
+
amountPaid: string;
|
|
38
|
+
amountBurnt: string;
|
|
35
39
|
priceId: string;
|
|
36
40
|
purchaser: string;
|
|
37
41
|
}, {
|
|
38
42
|
type: FractionSaleEventEnum.PURCHASE;
|
|
39
43
|
amountOfFractions: string;
|
|
44
|
+
amountPaid: string;
|
|
45
|
+
amountBurnt: string;
|
|
40
46
|
priceId: string;
|
|
41
47
|
purchaser: string;
|
|
42
48
|
}>, z.ZodObject<{
|
|
43
49
|
type: z.ZodLiteral<FractionSaleEventEnum.CLAIM>;
|
|
44
50
|
receiver: z.ZodString;
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
claimId: z.ZodString;
|
|
52
|
+
fractionsBurnt: z.ZodString;
|
|
53
|
+
received: z.ZodArray<z.ZodObject<{
|
|
54
|
+
tokenAddress: z.ZodString;
|
|
55
|
+
amount: z.ZodString;
|
|
56
|
+
tokenId: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
tokenId: string;
|
|
59
|
+
tokenAddress: string;
|
|
60
|
+
amount: string;
|
|
61
|
+
}, {
|
|
62
|
+
tokenId: string;
|
|
63
|
+
tokenAddress: string;
|
|
64
|
+
amount: string;
|
|
65
|
+
}>, "many">;
|
|
47
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
received: {
|
|
68
|
+
tokenId: string;
|
|
69
|
+
tokenAddress: string;
|
|
70
|
+
amount: string;
|
|
71
|
+
}[];
|
|
48
72
|
type: FractionSaleEventEnum.CLAIM;
|
|
49
73
|
receiver: string;
|
|
50
|
-
|
|
51
|
-
|
|
74
|
+
claimId: string;
|
|
75
|
+
fractionsBurnt: string;
|
|
52
76
|
}, {
|
|
77
|
+
received: {
|
|
78
|
+
tokenId: string;
|
|
79
|
+
tokenAddress: string;
|
|
80
|
+
amount: string;
|
|
81
|
+
}[];
|
|
53
82
|
type: FractionSaleEventEnum.CLAIM;
|
|
54
83
|
receiver: string;
|
|
55
|
-
|
|
56
|
-
|
|
84
|
+
claimId: string;
|
|
85
|
+
fractionsBurnt: string;
|
|
57
86
|
}>, z.ZodObject<{
|
|
58
87
|
type: z.ZodLiteral<FractionSaleEventEnum.REFUND>;
|
|
59
88
|
amount: z.ZodString;
|
|
@@ -74,13 +103,36 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
74
103
|
amount: string;
|
|
75
104
|
}>, z.ZodObject<{
|
|
76
105
|
type: z.ZodLiteral<FractionSaleEventEnum.WITHDRAW_NON_WRAPPED>;
|
|
77
|
-
|
|
106
|
+
receiver: z.ZodString;
|
|
107
|
+
received: z.ZodArray<z.ZodObject<{
|
|
108
|
+
tokenAddress: z.ZodString;
|
|
109
|
+
amount: z.ZodString;
|
|
110
|
+
tokenId: z.ZodString;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
tokenId: string;
|
|
113
|
+
tokenAddress: string;
|
|
114
|
+
amount: string;
|
|
115
|
+
}, {
|
|
116
|
+
tokenId: string;
|
|
117
|
+
tokenAddress: string;
|
|
118
|
+
amount: string;
|
|
119
|
+
}>, "many">;
|
|
78
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
received: {
|
|
122
|
+
tokenId: string;
|
|
123
|
+
tokenAddress: string;
|
|
124
|
+
amount: string;
|
|
125
|
+
}[];
|
|
79
126
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
80
|
-
|
|
127
|
+
receiver: string;
|
|
81
128
|
}, {
|
|
129
|
+
received: {
|
|
130
|
+
tokenId: string;
|
|
131
|
+
tokenAddress: string;
|
|
132
|
+
amount: string;
|
|
133
|
+
}[];
|
|
82
134
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
83
|
-
|
|
135
|
+
receiver: string;
|
|
84
136
|
}>]>;
|
|
85
137
|
}, "strip", z.ZodTypeAny, {
|
|
86
138
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
@@ -98,13 +150,20 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
98
150
|
} | {
|
|
99
151
|
type: FractionSaleEventEnum.PURCHASE;
|
|
100
152
|
amountOfFractions: string;
|
|
153
|
+
amountPaid: string;
|
|
154
|
+
amountBurnt: string;
|
|
101
155
|
priceId: string;
|
|
102
156
|
purchaser: string;
|
|
103
157
|
} | {
|
|
158
|
+
received: {
|
|
159
|
+
tokenId: string;
|
|
160
|
+
tokenAddress: string;
|
|
161
|
+
amount: string;
|
|
162
|
+
}[];
|
|
104
163
|
type: FractionSaleEventEnum.CLAIM;
|
|
105
164
|
receiver: string;
|
|
106
|
-
|
|
107
|
-
|
|
165
|
+
claimId: string;
|
|
166
|
+
fractionsBurnt: string;
|
|
108
167
|
} | {
|
|
109
168
|
type: FractionSaleEventEnum.REFUND;
|
|
110
169
|
amount: string;
|
|
@@ -112,8 +171,13 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
112
171
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
113
172
|
amount: string;
|
|
114
173
|
} | {
|
|
174
|
+
received: {
|
|
175
|
+
tokenId: string;
|
|
176
|
+
tokenAddress: string;
|
|
177
|
+
amount: string;
|
|
178
|
+
}[];
|
|
115
179
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
116
|
-
|
|
180
|
+
receiver: string;
|
|
117
181
|
};
|
|
118
182
|
}, {
|
|
119
183
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
@@ -131,13 +195,20 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
131
195
|
} | {
|
|
132
196
|
type: FractionSaleEventEnum.PURCHASE;
|
|
133
197
|
amountOfFractions: string;
|
|
198
|
+
amountPaid: string;
|
|
199
|
+
amountBurnt: string;
|
|
134
200
|
priceId: string;
|
|
135
201
|
purchaser: string;
|
|
136
202
|
} | {
|
|
203
|
+
received: {
|
|
204
|
+
tokenId: string;
|
|
205
|
+
tokenAddress: string;
|
|
206
|
+
amount: string;
|
|
207
|
+
}[];
|
|
137
208
|
type: FractionSaleEventEnum.CLAIM;
|
|
138
209
|
receiver: string;
|
|
139
|
-
|
|
140
|
-
|
|
210
|
+
claimId: string;
|
|
211
|
+
fractionsBurnt: string;
|
|
141
212
|
} | {
|
|
142
213
|
type: FractionSaleEventEnum.REFUND;
|
|
143
214
|
amount: string;
|
|
@@ -145,8 +216,13 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
145
216
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
146
217
|
amount: string;
|
|
147
218
|
} | {
|
|
219
|
+
received: {
|
|
220
|
+
tokenId: string;
|
|
221
|
+
tokenAddress: string;
|
|
222
|
+
amount: string;
|
|
223
|
+
}[];
|
|
148
224
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
149
|
-
|
|
225
|
+
receiver: string;
|
|
150
226
|
};
|
|
151
227
|
}>;
|
|
152
228
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AA6DzG,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcpC,CAAC"}
|
|
@@ -11,6 +11,11 @@ const baseSchema = z.object({
|
|
|
11
11
|
createdAt: z.date(),
|
|
12
12
|
updatedAt: z.date(),
|
|
13
13
|
});
|
|
14
|
+
const wrappedAssetAmountSchema = z.object({
|
|
15
|
+
tokenAddress: z.string(),
|
|
16
|
+
amount: z.string(),
|
|
17
|
+
tokenId: z.string(),
|
|
18
|
+
});
|
|
14
19
|
const createdEventSchema = z.object({
|
|
15
20
|
type: z.literal(FractionSaleEventEnum.CREATED),
|
|
16
21
|
});
|
|
@@ -23,12 +28,15 @@ const purchaseEventSchema = z.object({
|
|
|
23
28
|
purchaser: z.string(),
|
|
24
29
|
priceId: z.string(),
|
|
25
30
|
amountOfFractions: z.string(),
|
|
31
|
+
amountPaid: z.string(),
|
|
32
|
+
amountBurnt: z.string(),
|
|
26
33
|
});
|
|
27
34
|
const claimEventSchema = z.object({
|
|
28
35
|
type: z.literal(FractionSaleEventEnum.CLAIM),
|
|
29
36
|
receiver: z.string(),
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
claimId: z.string(),
|
|
38
|
+
fractionsBurnt: z.string(),
|
|
39
|
+
received: z.array(wrappedAssetAmountSchema),
|
|
32
40
|
});
|
|
33
41
|
const refundEventSchema = z.object({
|
|
34
42
|
type: z.literal(FractionSaleEventEnum.REFUND),
|
|
@@ -40,7 +48,8 @@ const withdrawEventSchema = z.object({
|
|
|
40
48
|
});
|
|
41
49
|
const withdrawNonWrappedEventSchema = z.object({
|
|
42
50
|
type: z.literal(FractionSaleEventEnum.WITHDRAW_NON_WRAPPED),
|
|
43
|
-
|
|
51
|
+
receiver: z.string(),
|
|
52
|
+
received: z.array(wrappedAssetAmountSchema),
|
|
44
53
|
});
|
|
45
54
|
export const FractionActivityEntrySchema = baseSchema
|
|
46
55
|
.extend({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/fractions/deployMarket/v0/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1077,13 +1077,20 @@ export declare const fractionsApi: {
|
|
|
1077
1077
|
} | {
|
|
1078
1078
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
1079
1079
|
amountOfFractions: string;
|
|
1080
|
+
amountPaid: string;
|
|
1081
|
+
amountBurnt: string;
|
|
1080
1082
|
priceId: string;
|
|
1081
1083
|
purchaser: string;
|
|
1082
1084
|
} | {
|
|
1085
|
+
received: {
|
|
1086
|
+
tokenId: string;
|
|
1087
|
+
tokenAddress: string;
|
|
1088
|
+
amount: string;
|
|
1089
|
+
}[];
|
|
1083
1090
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
1084
1091
|
receiver: string;
|
|
1085
|
-
|
|
1086
|
-
|
|
1092
|
+
claimId: string;
|
|
1093
|
+
fractionsBurnt: string;
|
|
1087
1094
|
} | {
|
|
1088
1095
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
1089
1096
|
amount: string;
|
|
@@ -1091,8 +1098,13 @@ export declare const fractionsApi: {
|
|
|
1091
1098
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
1092
1099
|
amount: string;
|
|
1093
1100
|
} | {
|
|
1101
|
+
received: {
|
|
1102
|
+
tokenId: string;
|
|
1103
|
+
tokenAddress: string;
|
|
1104
|
+
amount: string;
|
|
1105
|
+
}[];
|
|
1094
1106
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
1095
|
-
|
|
1107
|
+
receiver: string;
|
|
1096
1108
|
};
|
|
1097
1109
|
}[];
|
|
1098
1110
|
outputFormat: "json";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0GvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0GvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;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