@evergonlabs/tmi-protocol-indexer 0.10.1 → 0.11.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,12 @@ export declare enum FractionSaleEventEnum {
|
|
|
14
14
|
CLAIM = "claim",
|
|
15
15
|
WITHDRAW = "withdraw",
|
|
16
16
|
WITHDRAW_NON_WRAPPED = "withdraw_non_wrapped",
|
|
17
|
-
REFUND = "refund"
|
|
17
|
+
REFUND = "refund",
|
|
18
|
+
EPOCH_PURCHASE = "epoch_purchase",
|
|
19
|
+
EPOCH_EXCHANGE = "epoch_exchange",
|
|
20
|
+
WITHDRAWAL_REQUESTED = "withdrawal_requested",
|
|
21
|
+
WITHDRAWAL_COMPLETED = "withdrawal_completed",
|
|
22
|
+
EPOCH_PRICE_SET = "epoch_price_set"
|
|
18
23
|
}
|
|
19
24
|
export type IWrappedAssetAmount = {
|
|
20
25
|
tokenAddress: Address;
|
|
@@ -59,11 +64,40 @@ export type IFractionEventData<TEvent extends FractionSaleEventEnum = FractionSa
|
|
|
59
64
|
[FractionSaleEventEnum.REFUND]: {
|
|
60
65
|
type: FractionSaleEventEnum.REFUND;
|
|
61
66
|
};
|
|
67
|
+
[FractionSaleEventEnum.EPOCH_PURCHASE]: {
|
|
68
|
+
type: FractionSaleEventEnum.EPOCH_PURCHASE;
|
|
69
|
+
nftId: bigint;
|
|
70
|
+
purchaser: Address;
|
|
71
|
+
amountProvided: bigint;
|
|
72
|
+
amountAfterFees: bigint;
|
|
73
|
+
epochPurchased: bigint;
|
|
74
|
+
};
|
|
75
|
+
[FractionSaleEventEnum.EPOCH_EXCHANGE]: {
|
|
76
|
+
type: FractionSaleEventEnum.EPOCH_EXCHANGE;
|
|
77
|
+
purchaser: Address;
|
|
78
|
+
amountOfFractions: bigint;
|
|
79
|
+
};
|
|
80
|
+
[FractionSaleEventEnum.WITHDRAWAL_REQUESTED]: {
|
|
81
|
+
type: FractionSaleEventEnum.WITHDRAWAL_REQUESTED;
|
|
82
|
+
requester: Address;
|
|
83
|
+
nftId: bigint;
|
|
84
|
+
amountOfFractions: bigint;
|
|
85
|
+
};
|
|
86
|
+
[FractionSaleEventEnum.WITHDRAWAL_COMPLETED]: {
|
|
87
|
+
type: FractionSaleEventEnum.WITHDRAWAL_COMPLETED;
|
|
88
|
+
requester: Address;
|
|
89
|
+
amountOfFundingPackets: bigint;
|
|
90
|
+
};
|
|
91
|
+
[FractionSaleEventEnum.EPOCH_PRICE_SET]: {
|
|
92
|
+
type: FractionSaleEventEnum.EPOCH_PRICE_SET;
|
|
93
|
+
epoch: bigint;
|
|
94
|
+
price: bigint;
|
|
95
|
+
};
|
|
62
96
|
}[TEvent] & {
|
|
63
97
|
type: TEvent;
|
|
64
98
|
};
|
|
65
99
|
export declare const fractionStatusType: import("ponder").OnchainEnum<[FractionSaleStatusEnum.CREATED, FractionSaleStatusEnum.APPROVED, FractionSaleStatusEnum.REJECTED, FractionSaleStatusEnum.FINALIZED, FractionSaleStatusEnum.REFUNDED]>;
|
|
66
|
-
export declare const fractionEventType: import("ponder").OnchainEnum<[FractionSaleEventEnum.CREATED, FractionSaleEventEnum.STATUS_UPDATE, FractionSaleEventEnum.PURCHASE, FractionSaleEventEnum.CLAIM, FractionSaleEventEnum.WITHDRAW, FractionSaleEventEnum.REFUND]>;
|
|
100
|
+
export declare const fractionEventType: import("ponder").OnchainEnum<[FractionSaleEventEnum.CREATED, FractionSaleEventEnum.STATUS_UPDATE, FractionSaleEventEnum.PURCHASE, FractionSaleEventEnum.CLAIM, FractionSaleEventEnum.WITHDRAW, FractionSaleEventEnum.REFUND, FractionSaleEventEnum.EPOCH_PURCHASE, FractionSaleEventEnum.EPOCH_EXCHANGE, FractionSaleEventEnum.WITHDRAWAL_REQUESTED, FractionSaleEventEnum.WITHDRAWAL_COMPLETED, FractionSaleEventEnum.EPOCH_PRICE_SET]>;
|
|
67
101
|
export declare const asset: import("ponder").OnchainTable<{
|
|
68
102
|
name: "asset";
|
|
69
103
|
schema: undefined;
|
|
@@ -16,6 +16,12 @@ export var FractionSaleEventEnum;
|
|
|
16
16
|
FractionSaleEventEnum["WITHDRAW"] = "withdraw";
|
|
17
17
|
FractionSaleEventEnum["WITHDRAW_NON_WRAPPED"] = "withdraw_non_wrapped";
|
|
18
18
|
FractionSaleEventEnum["REFUND"] = "refund";
|
|
19
|
+
// VRD (Vesting & Redemption Dynamic) events
|
|
20
|
+
FractionSaleEventEnum["EPOCH_PURCHASE"] = "epoch_purchase";
|
|
21
|
+
FractionSaleEventEnum["EPOCH_EXCHANGE"] = "epoch_exchange";
|
|
22
|
+
FractionSaleEventEnum["WITHDRAWAL_REQUESTED"] = "withdrawal_requested";
|
|
23
|
+
FractionSaleEventEnum["WITHDRAWAL_COMPLETED"] = "withdrawal_completed";
|
|
24
|
+
FractionSaleEventEnum["EPOCH_PRICE_SET"] = "epoch_price_set";
|
|
19
25
|
})(FractionSaleEventEnum || (FractionSaleEventEnum = {}));
|
|
20
26
|
export const fractionStatusType = onchainEnum("fraction_status_type", [
|
|
21
27
|
FractionSaleStatusEnum.CREATED,
|
|
@@ -31,6 +37,11 @@ export const fractionEventType = onchainEnum("fraction_event_type", [
|
|
|
31
37
|
FractionSaleEventEnum.CLAIM,
|
|
32
38
|
FractionSaleEventEnum.WITHDRAW,
|
|
33
39
|
FractionSaleEventEnum.REFUND,
|
|
40
|
+
FractionSaleEventEnum.EPOCH_PURCHASE,
|
|
41
|
+
FractionSaleEventEnum.EPOCH_EXCHANGE,
|
|
42
|
+
FractionSaleEventEnum.WITHDRAWAL_REQUESTED,
|
|
43
|
+
FractionSaleEventEnum.WITHDRAWAL_COMPLETED,
|
|
44
|
+
FractionSaleEventEnum.EPOCH_PRICE_SET,
|
|
34
45
|
]);
|
|
35
46
|
export const asset = onchainTable("asset", (t) => ({
|
|
36
47
|
chainId: t.integer("chain_id").notNull(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evergonlabs/tmi-protocol-indexer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@evergonlabs/
|
|
18
|
-
"@evergonlabs/
|
|
19
|
-
"@evergonlabs/tmi-contracts-staking-sdk": "^0.1
|
|
20
|
-
"@evergonlabs/tmi-evm-contracts": "0.
|
|
17
|
+
"@evergonlabs/tmi-contracts-fractions-sdk": "npm:@evergonlabs/tmi-contracts-fractions-sdk@1.2.3",
|
|
18
|
+
"@evergonlabs/fraction-protocol-sdk-next": "npm:@evergonlabs/fraction-protocol-sdk@2.0.2-beta",
|
|
19
|
+
"@evergonlabs/tmi-contracts-staking-sdk": "^0.2.1",
|
|
20
|
+
"@evergonlabs/tmi-evm-contracts": "0.7.1",
|
|
21
21
|
"bignumber.js": "^9.3.1",
|
|
22
22
|
"drizzle-orm": "0.41.0",
|
|
23
23
|
"hono": "^4.11.9",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"ponder": "^0.11.4",
|
|
26
26
|
"type-fest": "^5.0.0",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@evergonlabs/tmi-protocol-fractions-sdk": "0.
|
|
29
|
-
"@evergonlabs/tmi-protocol-staking-sdk": "0.
|
|
30
|
-
"@evergonlabs/tmi-protocol-types": "0.
|
|
31
|
-
"@evergonlabs/tmi-protocol-utils": "0.
|
|
28
|
+
"@evergonlabs/tmi-protocol-fractions-sdk": "0.11.0-rc.1",
|
|
29
|
+
"@evergonlabs/tmi-protocol-staking-sdk": "0.11.0-rc.1",
|
|
30
|
+
"@evergonlabs/tmi-protocol-types": "0.11.0-rc.1",
|
|
31
|
+
"@evergonlabs/tmi-protocol-utils": "0.11.0-rc.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@evergonlabs/tmi-eslint-config": "0.
|
|
35
|
-
"@evergonlabs/tmi-typescript-config": "0.
|
|
34
|
+
"@evergonlabs/tmi-eslint-config": "0.7.1",
|
|
35
|
+
"@evergonlabs/tmi-typescript-config": "0.7.1",
|
|
36
36
|
"abitype": "^1.0.8",
|
|
37
37
|
"dotenv": "^17.2.2",
|
|
38
38
|
"eslint": "^9.39.2",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"lint:fix": "eslint . --fix",
|
|
66
66
|
"serve": "pnpm run env -- ponder serve",
|
|
67
67
|
"start": "pnpm run env -- ponder start --schema=${DATABASE_SCHEMA} --views-schema=v3 -- --network=${ENVIRONMENT}",
|
|
68
|
-
"start:local": "pnpm run env -- ponder dev -v -- --network=local
|
|
68
|
+
"start:local": "pnpm run env -- ponder dev -v --schema=v01 -- --network=local"
|
|
69
69
|
}
|
|
70
70
|
}
|