@inodra/sui 0.1.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.
Files changed (91) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +237 -0
  3. package/bin/inodra-sui.mjs +2 -0
  4. package/dist/chunk-3CBLVI6J.js +426 -0
  5. package/dist/chunk-3CBLVI6J.js.map +1 -0
  6. package/dist/chunk-4HKKW5QN.js +80 -0
  7. package/dist/chunk-4HKKW5QN.js.map +1 -0
  8. package/dist/chunk-74XGJJJI.js +33 -0
  9. package/dist/chunk-74XGJJJI.js.map +1 -0
  10. package/dist/chunk-D6FZYWG7.js +99 -0
  11. package/dist/chunk-D6FZYWG7.js.map +1 -0
  12. package/dist/chunk-LZZMTSLH.js +31 -0
  13. package/dist/chunk-LZZMTSLH.js.map +1 -0
  14. package/dist/chunk-M3M2L6BW.js +29 -0
  15. package/dist/chunk-M3M2L6BW.js.map +1 -0
  16. package/dist/chunk-NSXRC5XW.js +298 -0
  17. package/dist/chunk-NSXRC5XW.js.map +1 -0
  18. package/dist/chunk-OGMBYWTG.js +537 -0
  19. package/dist/chunk-OGMBYWTG.js.map +1 -0
  20. package/dist/chunk-U6D5LGNF.js +111 -0
  21. package/dist/chunk-U6D5LGNF.js.map +1 -0
  22. package/dist/chunk-ZSW3EWGF.js +539 -0
  23. package/dist/chunk-ZSW3EWGF.js.map +1 -0
  24. package/dist/cli.js +665 -0
  25. package/dist/cli.js.map +1 -0
  26. package/dist/events.cjs +3273 -0
  27. package/dist/events.cjs.map +1 -0
  28. package/dist/events.d.cts +47 -0
  29. package/dist/events.d.ts +47 -0
  30. package/dist/events.js +2578 -0
  31. package/dist/events.js.map +1 -0
  32. package/dist/graphql.cjs +129 -0
  33. package/dist/graphql.cjs.map +1 -0
  34. package/dist/graphql.d.cts +36 -0
  35. package/dist/graphql.d.ts +36 -0
  36. package/dist/graphql.js +10 -0
  37. package/dist/graphql.js.map +1 -0
  38. package/dist/grpc-web.cjs +129 -0
  39. package/dist/grpc-web.cjs.map +1 -0
  40. package/dist/grpc-web.d.cts +31 -0
  41. package/dist/grpc-web.d.ts +31 -0
  42. package/dist/grpc-web.js +10 -0
  43. package/dist/grpc-web.js.map +1 -0
  44. package/dist/grpc.cjs +131 -0
  45. package/dist/grpc.cjs.map +1 -0
  46. package/dist/grpc.d.cts +34 -0
  47. package/dist/grpc.d.ts +34 -0
  48. package/dist/grpc.js +10 -0
  49. package/dist/grpc.js.map +1 -0
  50. package/dist/index-CGBN_EI5.d.ts +4800 -0
  51. package/dist/index-CVO2Kj8a.d.cts +4800 -0
  52. package/dist/index.cjs +4723 -0
  53. package/dist/index.cjs.map +1 -0
  54. package/dist/index.d.cts +504 -0
  55. package/dist/index.d.ts +504 -0
  56. package/dist/index.js +59 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/manage.cjs +376 -0
  59. package/dist/manage.cjs.map +1 -0
  60. package/dist/manage.d.cts +2 -0
  61. package/dist/manage.d.ts +2 -0
  62. package/dist/manage.js +8 -0
  63. package/dist/manage.js.map +1 -0
  64. package/dist/network-CEg2MJY3.d.cts +60 -0
  65. package/dist/network-CEg2MJY3.d.ts +60 -0
  66. package/dist/node.cjs +4759 -0
  67. package/dist/node.cjs.map +1 -0
  68. package/dist/node.d.cts +28 -0
  69. package/dist/node.d.ts +28 -0
  70. package/dist/node.js +73 -0
  71. package/dist/node.js.map +1 -0
  72. package/dist/reflection-Bx44-Fs1.d.ts +4639 -0
  73. package/dist/reflection-Cf7WFH6H.d.cts +4639 -0
  74. package/dist/reflection-FEGYA7DU.js +9 -0
  75. package/dist/reflection-FEGYA7DU.js.map +1 -0
  76. package/dist/runtime-OWKF3LZ7.js +37 -0
  77. package/dist/runtime-OWKF3LZ7.js.map +1 -0
  78. package/dist/warp.cjs +633 -0
  79. package/dist/warp.cjs.map +1 -0
  80. package/dist/warp.d.cts +195 -0
  81. package/dist/warp.d.ts +195 -0
  82. package/dist/warp.js +12 -0
  83. package/dist/warp.js.map +1 -0
  84. package/dist/webhooks.cjs +104 -0
  85. package/dist/webhooks.cjs.map +1 -0
  86. package/dist/webhooks.d.cts +35 -0
  87. package/dist/webhooks.d.ts +35 -0
  88. package/dist/webhooks.js +7 -0
  89. package/dist/webhooks.js.map +1 -0
  90. package/llms.txt +189 -0
  91. package/package.json +119 -0
@@ -0,0 +1,3273 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/events/index.ts
21
+ var events_exports = {};
22
+ __export(events_exports, {
23
+ AftermathDepositSchema: () => AftermathDepositSchema,
24
+ AftermathPerpFundingSchema: () => AftermathPerpFundingSchema,
25
+ AftermathPerpLiquidatedSchema: () => AftermathPerpLiquidatedSchema,
26
+ AftermathSwapSchema: () => AftermathSwapSchema,
27
+ AlphafiLiquidityChangeSchema: () => AlphafiLiquidityChangeSchema,
28
+ AlphafiRewardSchema: () => AlphafiRewardSchema,
29
+ BluefinFeeCollectedSchema: () => BluefinFeeCollectedSchema,
30
+ BluefinLiquidityProvidedSchema: () => BluefinLiquidityProvidedSchema,
31
+ BluefinLiquidityRemovedSchema: () => BluefinLiquidityRemovedSchema,
32
+ BluefinPoolCreatedSchema: () => BluefinPoolCreatedSchema,
33
+ BluefinPositionClosedSchema: () => BluefinPositionClosedSchema,
34
+ BluefinPositionOpenedSchema: () => BluefinPositionOpenedSchema,
35
+ BluefinRewardCollectedSchema: () => BluefinRewardCollectedSchema,
36
+ BluefinSwapSchema: () => BluefinSwapSchema,
37
+ BucketBorrowSchema: () => BucketBorrowSchema,
38
+ BucketDepositCollateralSchema: () => BucketDepositCollateralSchema,
39
+ BucketPositionUpdatedSchema: () => BucketPositionUpdatedSchema,
40
+ BucketRedeemSchema: () => BucketRedeemSchema,
41
+ BucketRepaySchema: () => BucketRepaySchema,
42
+ BucketSbuckDepositSchema: () => BucketSbuckDepositSchema,
43
+ BucketSbuckRewardsSchema: () => BucketSbuckRewardsSchema,
44
+ BucketWithdrawCollateralSchema: () => BucketWithdrawCollateralSchema,
45
+ CetusAddLiquiditySchema: () => CetusAddLiquiditySchema,
46
+ CetusClosePositionSchema: () => CetusClosePositionSchema,
47
+ CetusCollectFeeSchema: () => CetusCollectFeeSchema,
48
+ CetusCreatePoolSchema: () => CetusCreatePoolSchema,
49
+ CetusOpenPositionSchema: () => CetusOpenPositionSchema,
50
+ CetusRemoveLiquiditySchema: () => CetusRemoveLiquiditySchema,
51
+ CetusSwapSchema: () => CetusSwapSchema,
52
+ CurrentBorrowSchema: () => CurrentBorrowSchema,
53
+ CurrentDepositSchema: () => CurrentDepositSchema,
54
+ CurrentLiquidateSchema: () => CurrentLiquidateSchema,
55
+ CurrentRepaySchema: () => CurrentRepaySchema,
56
+ CurrentWithdrawSchema: () => CurrentWithdrawSchema,
57
+ DeepbookBalanceSchema: () => DeepbookBalanceSchema,
58
+ DeepbookFlashLoanSchema: () => DeepbookFlashLoanSchema,
59
+ DeepbookOrderCanceledSchema: () => DeepbookOrderCanceledSchema,
60
+ DeepbookOrderFilledSchema: () => DeepbookOrderFilledSchema,
61
+ DeepbookOrderInfoSchema: () => DeepbookOrderInfoSchema,
62
+ DeepbookOrderPlacedSchema: () => DeepbookOrderPlacedSchema,
63
+ EmberDepositSchema: () => EmberDepositSchema,
64
+ EmberRateUpdatedSchema: () => EmberRateUpdatedSchema,
65
+ EmberRedeemProcessedSchema: () => EmberRedeemProcessedSchema,
66
+ EmberRedeemRequestSchema: () => EmberRedeemRequestSchema,
67
+ EventSchemaReflector: () => EventSchemaReflector,
68
+ FlowxAmmPairCreatedSchema: () => FlowxAmmPairCreatedSchema,
69
+ FlowxAmmSwapSchema: () => FlowxAmmSwapSchema,
70
+ FlowxClmmPoolCreatedSchema: () => FlowxClmmPoolCreatedSchema,
71
+ FlowxClmmSwapSchema: () => FlowxClmmSwapSchema,
72
+ HaedalInstantUnstakedSchema: () => HaedalInstantUnstakedSchema,
73
+ HaedalStakedSchema: () => HaedalStakedSchema,
74
+ HaedalUnstakedSchema: () => HaedalUnstakedSchema,
75
+ KaiAddLiquiditySchema: () => KaiAddLiquiditySchema,
76
+ KaiDeleverageSchema: () => KaiDeleverageSchema,
77
+ KaiLiquidationSchema: () => KaiLiquidationSchema,
78
+ KaiPositionOpenSchema: () => KaiPositionOpenSchema,
79
+ KaiReduceSchema: () => KaiReduceSchema,
80
+ KaiSupplySchema: () => KaiSupplySchema,
81
+ KaiSupplyWithdrawSchema: () => KaiSupplyWithdrawSchema,
82
+ KriyaAddLiquiditySchema: () => KriyaAddLiquiditySchema,
83
+ KriyaSwapSchema: () => KriyaSwapSchema,
84
+ MagmaAddLiquiditySchema: () => MagmaAddLiquiditySchema,
85
+ MagmaCollectFeeSchema: () => MagmaCollectFeeSchema,
86
+ MagmaCollectRewardSchema: () => MagmaCollectRewardSchema,
87
+ MagmaCreatePoolSchema: () => MagmaCreatePoolSchema,
88
+ MagmaRemoveLiquiditySchema: () => MagmaRemoveLiquiditySchema,
89
+ MagmaSwapSchema: () => MagmaSwapSchema,
90
+ MoleAddDebtSchema: () => MoleAddDebtSchema,
91
+ MoleDepositSchema: () => MoleDepositSchema,
92
+ MoleHarvestSchema: () => MoleHarvestSchema,
93
+ MoleKillSchema: () => MoleKillSchema,
94
+ MoleWithdrawSchema: () => MoleWithdrawSchema,
95
+ MoleWorkSchema: () => MoleWorkSchema,
96
+ MomentumAddLiquiditySchema: () => MomentumAddLiquiditySchema,
97
+ MomentumCollectFeeSchema: () => MomentumCollectFeeSchema,
98
+ MomentumCollectRewardSchema: () => MomentumCollectRewardSchema,
99
+ MomentumPoolCreatedSchema: () => MomentumPoolCreatedSchema,
100
+ MomentumRemoveLiquiditySchema: () => MomentumRemoveLiquiditySchema,
101
+ MomentumRepayFlashSwapSchema: () => MomentumRepayFlashSwapSchema,
102
+ MomentumSwapSchema: () => MomentumSwapSchema,
103
+ NaviBorrowSchema: () => NaviBorrowSchema,
104
+ NaviDepositSchema: () => NaviDepositSchema,
105
+ NaviLiquidationSchema: () => NaviLiquidationSchema,
106
+ NaviRepaySchema: () => NaviRepaySchema,
107
+ NaviWithdrawSchema: () => NaviWithdrawSchema,
108
+ PythPriceFeedUpdateSchema: () => PythPriceFeedUpdateSchema,
109
+ ScallopBorrowSchema: () => ScallopBorrowSchema,
110
+ ScallopCollateralDepositSchema: () => ScallopCollateralDepositSchema,
111
+ ScallopCollateralWithdrawSchema: () => ScallopCollateralWithdrawSchema,
112
+ ScallopLiquidationSchema: () => ScallopLiquidationSchema,
113
+ ScallopRepaySchema: () => ScallopRepaySchema,
114
+ SpringsuiEpochChangedSchema: () => SpringsuiEpochChangedSchema,
115
+ SpringsuiStakeSchema: () => SpringsuiStakeSchema,
116
+ SpringsuiUnstakeSchema: () => SpringsuiUnstakeSchema,
117
+ SteammBankDepositSchema: () => SteammBankDepositSchema,
118
+ SteammBankWithdrawSchema: () => SteammBankWithdrawSchema,
119
+ SuilendBorrowSchema: () => SuilendBorrowSchema,
120
+ SuilendClaimRewardSchema: () => SuilendClaimRewardSchema,
121
+ SuilendDepositSchema: () => SuilendDepositSchema,
122
+ SuilendLiquidateSchema: () => SuilendLiquidateSchema,
123
+ SuilendRepaySchema: () => SuilendRepaySchema,
124
+ SuilendWithdrawSchema: () => SuilendWithdrawSchema,
125
+ SupraPriceUpdateSchema: () => SupraPriceUpdateSchema,
126
+ TurbosAddLiquiditySchema: () => TurbosAddLiquiditySchema,
127
+ TurbosPoolCreatedSchema: () => TurbosPoolCreatedSchema,
128
+ TurbosRemoveLiquiditySchema: () => TurbosRemoveLiquiditySchema,
129
+ TurbosSwapSchema: () => TurbosSwapSchema,
130
+ TypusDovAuctionSchema: () => TypusDovAuctionSchema,
131
+ TypusDovBidSchema: () => TypusDovBidSchema,
132
+ TypusDovSettleSchema: () => TypusDovSettleSchema,
133
+ TypusPerpFundingSchema: () => TypusPerpFundingSchema,
134
+ TypusPerpLiquidateSchema: () => TypusPerpLiquidateSchema,
135
+ TypusPerpLpBurnSchema: () => TypusPerpLpBurnSchema,
136
+ TypusPerpLpMintSchema: () => TypusPerpLpMintSchema,
137
+ TypusPerpOrderSchema: () => TypusPerpOrderSchema,
138
+ VoloStakedSchema: () => VoloStakedSchema,
139
+ VoloUnstakedSchema: () => VoloUnstakedSchema,
140
+ WalrusBlobCertifiedSchema: () => WalrusBlobCertifiedSchema,
141
+ WalrusBlobDeletedSchema: () => WalrusBlobDeletedSchema,
142
+ WalrusBlobRegisteredSchema: () => WalrusBlobRegisteredSchema,
143
+ _7kConfirmSwapSchema: () => _7kConfirmSwapSchema,
144
+ _7kSwapSchema: () => _7kSwapSchema,
145
+ baseEventType: () => baseEventType,
146
+ catalogEvents: () => catalogEvents,
147
+ eventTypeMatches: () => eventTypeMatches,
148
+ formatMoveType: () => formatMoveType,
149
+ innerEventType: () => innerEventType,
150
+ matchCatalogEvent: () => matchCatalogEvent,
151
+ moveAddress: () => moveAddress,
152
+ moveBalance: () => moveBalance,
153
+ moveBool: () => moveBool,
154
+ moveBytes: () => moveBytes,
155
+ moveSmallUint: () => moveSmallUint,
156
+ moveString: () => moveString,
157
+ moveTypeName: () => moveTypeName,
158
+ moveUint: () => moveUint,
159
+ normalizeAddress: () => normalizeAddress,
160
+ parseCatalogEvent: () => parseCatalogEvent,
161
+ parseMoveType: () => parseMoveType,
162
+ resolveCatalogEvent: () => resolveCatalogEvent,
163
+ resolveShape: () => resolveShape,
164
+ shapeToExpr: () => shapeToExpr,
165
+ shapeToZod: () => shapeToZod,
166
+ substituteTypeParams: () => substituteTypeParams,
167
+ warpAddressPayloadSchema: () => warpAddressPayloadSchema,
168
+ warpCoinPayloadSchema: () => warpCoinPayloadSchema,
169
+ warpEventPayloadSchema: () => warpEventPayloadSchema,
170
+ warpObjectPayloadSchema: () => warpObjectPayloadSchema,
171
+ webhookEventBodySchema: () => webhookEventBodySchema
172
+ });
173
+ module.exports = __toCommonJS(events_exports);
174
+
175
+ // src/generated/events.ts
176
+ var import_zod2 = require("zod");
177
+
178
+ // src/events/runtime.ts
179
+ var import_zod = require("zod");
180
+ var moveSmallUint = import_zod.z.number();
181
+ var moveUint = import_zod.z.union([import_zod.z.string(), import_zod.z.number()]).transform((value) => String(value));
182
+ var moveBool = import_zod.z.boolean();
183
+ var moveAddress = import_zod.z.string();
184
+ var moveString = import_zod.z.string();
185
+ var moveTypeName = import_zod.z.union([import_zod.z.string(), import_zod.z.looseObject({ name: import_zod.z.string() })]).transform((value) => typeof value === "string" ? value : value.name);
186
+ var moveBalance = import_zod.z.union([
187
+ import_zod.z.string(),
188
+ import_zod.z.number(),
189
+ import_zod.z.looseObject({ value: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]) })
190
+ ]).transform(
191
+ (value) => typeof value === "object" ? String(value.value) : String(value)
192
+ );
193
+ var moveBytes = import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.number())]);
194
+ var warpEventPayloadSchema = import_zod.z.looseObject({
195
+ activityType: import_zod.z.literal("package_event"),
196
+ txDigest: import_zod.z.string(),
197
+ eventSequence: import_zod.z.number(),
198
+ checkpoint: import_zod.z.number(),
199
+ timestamp: import_zod.z.number(),
200
+ /** Full concrete Move event type. */
201
+ type: import_zod.z.string(),
202
+ sender: import_zod.z.string(),
203
+ /** Decoded Move event payload — type with the generated catalog schemas. */
204
+ data: import_zod.z.unknown()
205
+ });
206
+ var warpAddressPayloadSchema = import_zod.z.looseObject({
207
+ address: import_zod.z.string(),
208
+ activityType: import_zod.z.string(),
209
+ txDigest: import_zod.z.string(),
210
+ checkpoint: import_zod.z.number(),
211
+ timestamp: import_zod.z.number(),
212
+ objectId: import_zod.z.string().optional(),
213
+ objectType: import_zod.z.string().optional()
214
+ });
215
+ var warpCoinPayloadSchema = import_zod.z.looseObject({
216
+ activityType: import_zod.z.literal("balance_change"),
217
+ address: import_zod.z.string(),
218
+ coin_type: import_zod.z.string(),
219
+ /** Signed amount, string for precision. */
220
+ amount: import_zod.z.string(),
221
+ txDigest: import_zod.z.string(),
222
+ checkpoint: import_zod.z.number(),
223
+ timestamp: import_zod.z.number()
224
+ });
225
+ var warpObjectPayloadSchema = import_zod.z.looseObject({
226
+ activityType: import_zod.z.literal("object_change"),
227
+ object_id: import_zod.z.string(),
228
+ transactionDirection: import_zod.z.string(),
229
+ writeKind: import_zod.z.string(),
230
+ owner: import_zod.z.string().optional(),
231
+ previousOwner: import_zod.z.string().optional(),
232
+ txDigest: import_zod.z.string(),
233
+ checkpoint: import_zod.z.number(),
234
+ timestamp: import_zod.z.number()
235
+ });
236
+ var webhookEventBodySchema = import_zod.z.looseObject({
237
+ payloadVersion: import_zod.z.number(),
238
+ payload: warpEventPayloadSchema.extend({ webhookId: import_zod.z.string() })
239
+ });
240
+ function baseEventType(eventType) {
241
+ const idx = eventType.indexOf("<");
242
+ return idx === -1 ? eventType : eventType.slice(0, idx);
243
+ }
244
+ function innerEventType(eventType) {
245
+ const start = eventType.indexOf("<");
246
+ if (start === -1 || !eventType.endsWith(">")) {
247
+ return void 0;
248
+ }
249
+ return eventType.slice(start + 1, -1);
250
+ }
251
+ function eventTypeMatches(rawEventType, deployment, generic) {
252
+ if (generic) {
253
+ return baseEventType(rawEventType) === deployment.eventType;
254
+ }
255
+ return rawEventType === deployment.eventType;
256
+ }
257
+
258
+ // src/generated/events.ts
259
+ var _7kConfirmSwapSchema = import_zod2.z.looseObject({
260
+ "quote_id": moveString,
261
+ "from": moveTypeName,
262
+ "target": moveTypeName,
263
+ "amount_in": moveUint,
264
+ "amount_out": moveUint,
265
+ "fee_amount": moveUint,
266
+ "fee_rate": moveSmallUint,
267
+ "fee_recipient": moveAddress,
268
+ "expect_amount_out": moveUint,
269
+ "amount_out_limit": moveUint
270
+ });
271
+ var _7kSwapSchema = import_zod2.z.looseObject({
272
+ "quote_id": moveString,
273
+ "pool_id": moveAddress,
274
+ "dex": moveString,
275
+ "from": moveTypeName,
276
+ "target": moveTypeName,
277
+ "amount_in": moveUint,
278
+ "amount_out": moveUint,
279
+ "amount_in_remaining": moveUint
280
+ });
281
+ var AftermathDepositSchema = import_zod2.z.looseObject({
282
+ "pool_id": moveAddress,
283
+ "issuer": moveAddress,
284
+ "referrer": moveAddress.nullable(),
285
+ "types": import_zod2.z.array(moveString),
286
+ "deposits": import_zod2.z.array(moveUint),
287
+ "reserves": import_zod2.z.array(moveUint),
288
+ "lp_coins_minted": moveUint
289
+ });
290
+ var AftermathPerpFundingSchema = import_zod2.z.looseObject({
291
+ "ch_id": moveAddress,
292
+ "account_id": moveUint,
293
+ "collateral_change_usd": moveUint,
294
+ "collateral_after": moveUint
295
+ });
296
+ var AftermathPerpLiquidatedSchema = import_zod2.z.looseObject({
297
+ "ch_id": moveAddress,
298
+ "liqee_account_id": moveUint,
299
+ "liqor_account_id": moveUint,
300
+ "is_liqee_long": moveBool,
301
+ "base_liquidated": moveUint,
302
+ "quote_liquidated": moveUint,
303
+ "bad_debt": moveUint
304
+ });
305
+ var AftermathSwapSchema = import_zod2.z.looseObject({
306
+ "pool_id": moveAddress,
307
+ "issuer": moveAddress,
308
+ "referrer": moveAddress.nullable(),
309
+ "types_in": import_zod2.z.array(moveString),
310
+ "amounts_in": import_zod2.z.array(moveUint),
311
+ "types_out": import_zod2.z.array(moveString),
312
+ "amounts_out": import_zod2.z.array(moveUint),
313
+ "reserves": import_zod2.z.array(moveUint)
314
+ });
315
+ var AlphafiLiquidityChangeSchema = import_zod2.z.looseObject({
316
+ "pool_id": moveAddress,
317
+ "event_type": moveSmallUint,
318
+ "amount_a": moveUint,
319
+ "amount_b": moveUint,
320
+ "total_amount_a": moveUint,
321
+ "total_amount_b": moveUint,
322
+ "fee_collected_a": moveUint,
323
+ "fee_collected_b": moveUint,
324
+ "tokens_invested": moveUint,
325
+ "sender": moveAddress
326
+ });
327
+ var AlphafiRewardSchema = import_zod2.z.looseObject({
328
+ "coin_type": moveTypeName,
329
+ "amount": moveUint,
330
+ "investor_id": moveAddress,
331
+ "fee_collected": moveUint,
332
+ "total_amount_a": moveUint,
333
+ "total_amount_b": moveUint,
334
+ "sender": moveAddress
335
+ });
336
+ var BluefinFeeCollectedSchema = import_zod2.z.looseObject({
337
+ "pool_id": moveAddress,
338
+ "position_id": moveAddress,
339
+ "coin_a_amount": moveUint,
340
+ "coin_b_amount": moveUint
341
+ });
342
+ var BluefinLiquidityProvidedSchema = import_zod2.z.looseObject({
343
+ "pool_id": moveAddress,
344
+ "position_id": moveAddress,
345
+ "coin_a_amount": moveUint,
346
+ "coin_b_amount": moveUint,
347
+ "liquidity": moveUint
348
+ });
349
+ var BluefinLiquidityRemovedSchema = import_zod2.z.looseObject({
350
+ "pool_id": moveAddress,
351
+ "position_id": moveAddress,
352
+ "coin_a_amount": moveUint,
353
+ "coin_b_amount": moveUint,
354
+ "liquidity": moveUint
355
+ });
356
+ var BluefinPoolCreatedSchema = import_zod2.z.looseObject({
357
+ "id": moveAddress,
358
+ "coin_a": moveString,
359
+ "coin_b": moveString,
360
+ "fee_rate": moveUint,
361
+ "tick_spacing": moveSmallUint
362
+ });
363
+ var BluefinPositionClosedSchema = import_zod2.z.looseObject({
364
+ "pool_id": moveAddress,
365
+ "position_id": moveAddress
366
+ });
367
+ var BluefinPositionOpenedSchema = import_zod2.z.looseObject({
368
+ "pool_id": moveAddress,
369
+ "position_id": moveAddress
370
+ });
371
+ var BluefinRewardCollectedSchema = import_zod2.z.looseObject({
372
+ "pool_id": moveAddress,
373
+ "position_id": moveAddress,
374
+ "reward_type": moveString,
375
+ "reward_symbol": moveString,
376
+ "reward_amount": moveUint
377
+ });
378
+ var BluefinSwapSchema = import_zod2.z.looseObject({
379
+ "pool_id": moveAddress,
380
+ "a2b": moveBool,
381
+ "amount_in": moveUint,
382
+ "amount_out": moveUint,
383
+ "fee": moveUint,
384
+ "after_sqrt_price": moveUint,
385
+ "sequence_number": moveUint
386
+ });
387
+ var BucketBorrowSchema = import_zod2.z.looseObject({
388
+ "collateral_type": moveString,
389
+ "buck_amount": moveUint
390
+ });
391
+ var BucketDepositCollateralSchema = import_zod2.z.looseObject({
392
+ "collateral_type": moveString,
393
+ "collateral_amount": moveUint
394
+ });
395
+ var BucketPositionUpdatedSchema = import_zod2.z.looseObject({
396
+ "collateral_type": moveString,
397
+ "debtor": moveAddress,
398
+ "bottle_id": moveAddress,
399
+ "collateral_amount": moveUint,
400
+ "buck_amount": moveUint
401
+ });
402
+ var BucketRedeemSchema = import_zod2.z.looseObject({
403
+ "collateral_type": moveString,
404
+ "input_buck_amount": moveUint,
405
+ "output_collateral_amount": moveUint
406
+ });
407
+ var BucketRepaySchema = import_zod2.z.looseObject({
408
+ "collateral_type": moveString,
409
+ "buck_amount": moveUint
410
+ });
411
+ var BucketSbuckDepositSchema = import_zod2.z.looseObject({
412
+ "buck_amount": moveUint,
413
+ "sbuck_share": moveUint
414
+ });
415
+ var BucketSbuckRewardsSchema = import_zod2.z.looseObject({
416
+ "buck_amount": moveUint
417
+ });
418
+ var BucketWithdrawCollateralSchema = import_zod2.z.looseObject({
419
+ "collateral_type": moveString,
420
+ "collateral_amount": moveUint
421
+ });
422
+ var CetusAddLiquiditySchema = import_zod2.z.looseObject({
423
+ "pool": moveAddress,
424
+ "position": moveAddress,
425
+ "liquidity": moveUint,
426
+ "after_liquidity": moveUint,
427
+ "amount_a": moveUint,
428
+ "amount_b": moveUint
429
+ });
430
+ var CetusClosePositionSchema = import_zod2.z.looseObject({
431
+ "pool": moveAddress,
432
+ "position": moveAddress
433
+ });
434
+ var CetusCollectFeeSchema = import_zod2.z.looseObject({
435
+ "position": moveAddress,
436
+ "pool": moveAddress,
437
+ "amount_a": moveUint,
438
+ "amount_b": moveUint
439
+ });
440
+ var CetusCreatePoolSchema = import_zod2.z.looseObject({
441
+ "pool_id": moveAddress,
442
+ "coin_type_a": moveString,
443
+ "coin_type_b": moveString,
444
+ "tick_spacing": moveSmallUint
445
+ });
446
+ var CetusOpenPositionSchema = import_zod2.z.looseObject({
447
+ "pool": moveAddress,
448
+ "position": moveAddress
449
+ });
450
+ var CetusRemoveLiquiditySchema = import_zod2.z.looseObject({
451
+ "pool": moveAddress,
452
+ "position": moveAddress,
453
+ "liquidity": moveUint,
454
+ "after_liquidity": moveUint,
455
+ "amount_a": moveUint,
456
+ "amount_b": moveUint
457
+ });
458
+ var CetusSwapSchema = import_zod2.z.looseObject({
459
+ "atob": moveBool,
460
+ "pool": moveAddress,
461
+ "partner": moveAddress,
462
+ "amount_in": moveUint,
463
+ "amount_out": moveUint,
464
+ "fee_amount": moveUint,
465
+ "before_sqrt_price": moveUint,
466
+ "after_sqrt_price": moveUint,
467
+ "steps": moveUint
468
+ });
469
+ var CurrentBorrowSchema = import_zod2.z.looseObject({
470
+ "borrower": moveAddress,
471
+ "market": moveTypeName,
472
+ "obligation": moveAddress,
473
+ "asset": moveTypeName,
474
+ "amount": moveUint,
475
+ "time": moveUint
476
+ });
477
+ var CurrentDepositSchema = import_zod2.z.looseObject({
478
+ "minter": moveAddress,
479
+ "market": moveTypeName,
480
+ "obligation": moveAddress,
481
+ "deposit_asset": moveTypeName,
482
+ "deposit_amount": moveUint,
483
+ "ctoken_amount": moveUint,
484
+ "time": moveUint
485
+ });
486
+ var CurrentLiquidateSchema = import_zod2.z.looseObject({
487
+ "liquidator": moveAddress,
488
+ "market": moveTypeName,
489
+ "obligation": moveAddress,
490
+ "collateral_type": moveTypeName,
491
+ "debt_type": moveTypeName,
492
+ "seized_collateral_amount": moveUint,
493
+ "repay_amount": moveUint,
494
+ "refund_amount": moveUint,
495
+ "timestamp": moveUint
496
+ });
497
+ var CurrentRepaySchema = import_zod2.z.looseObject({
498
+ "repayer": moveAddress,
499
+ "market": moveTypeName,
500
+ "obligation": moveAddress,
501
+ "asset": moveTypeName,
502
+ "amount": moveUint,
503
+ "refund": moveUint,
504
+ "time": moveUint
505
+ });
506
+ var CurrentWithdrawSchema = import_zod2.z.looseObject({
507
+ "redeemer": moveAddress,
508
+ "market": moveTypeName,
509
+ "obligation": moveAddress,
510
+ "withdraw_asset": moveTypeName,
511
+ "withdraw_amount": moveUint,
512
+ "time": moveUint
513
+ });
514
+ var DeepbookBalanceSchema = import_zod2.z.looseObject({
515
+ "balance_manager_id": moveAddress,
516
+ "asset": moveTypeName,
517
+ "amount": moveUint,
518
+ "deposit": moveBool
519
+ });
520
+ var DeepbookFlashLoanSchema = import_zod2.z.looseObject({
521
+ "pool_id": moveAddress,
522
+ "borrow_quantity": moveUint,
523
+ "type_name": moveTypeName
524
+ });
525
+ var DeepbookOrderCanceledSchema = import_zod2.z.looseObject({
526
+ "balance_manager_id": moveAddress,
527
+ "pool_id": moveAddress,
528
+ "order_id": moveUint,
529
+ "trader": moveAddress,
530
+ "price": moveUint,
531
+ "is_bid": moveBool,
532
+ "original_quantity": moveUint,
533
+ "base_asset_quantity_canceled": moveUint,
534
+ "timestamp": moveUint
535
+ });
536
+ var DeepbookOrderFilledSchema = import_zod2.z.looseObject({
537
+ "pool_id": moveAddress,
538
+ "maker_order_id": moveUint,
539
+ "taker_order_id": moveUint,
540
+ "price": moveUint,
541
+ "taker_is_bid": moveBool,
542
+ "base_quantity": moveUint,
543
+ "quote_quantity": moveUint,
544
+ "taker_fee": moveUint,
545
+ "maker_fee": moveUint,
546
+ "timestamp": moveUint
547
+ });
548
+ var DeepbookOrderInfoSchema = import_zod2.z.looseObject({
549
+ "pool_id": moveAddress,
550
+ "order_id": moveUint,
551
+ "balance_manager_id": moveAddress,
552
+ "client_order_id": moveUint,
553
+ "trader": moveAddress,
554
+ "order_type": moveSmallUint,
555
+ "price": moveUint,
556
+ "is_bid": moveBool,
557
+ "original_quantity": moveUint,
558
+ "executed_quantity": moveUint,
559
+ "status": moveSmallUint,
560
+ "timestamp": moveUint
561
+ });
562
+ var DeepbookOrderPlacedSchema = import_zod2.z.looseObject({
563
+ "balance_manager_id": moveAddress,
564
+ "pool_id": moveAddress,
565
+ "order_id": moveUint,
566
+ "client_order_id": moveUint,
567
+ "trader": moveAddress,
568
+ "price": moveUint,
569
+ "is_bid": moveBool,
570
+ "placed_quantity": moveUint,
571
+ "expire_timestamp": moveUint,
572
+ "timestamp": moveUint
573
+ });
574
+ var EmberDepositSchema = import_zod2.z.looseObject({
575
+ "vault_id": moveAddress,
576
+ "owner": moveAddress,
577
+ "total_amount": moveUint,
578
+ "shares_minted": moveUint,
579
+ "current_balance": moveUint,
580
+ "total_shares": moveUint,
581
+ "sequence_number": moveUint
582
+ });
583
+ var EmberRateUpdatedSchema = import_zod2.z.looseObject({
584
+ "vault_id": moveAddress,
585
+ "previous_rate": moveUint,
586
+ "new_rate": moveUint,
587
+ "sequence_number": moveUint
588
+ });
589
+ var EmberRedeemProcessedSchema = import_zod2.z.looseObject({
590
+ "vault_id": moveAddress,
591
+ "owner": moveAddress,
592
+ "receiver": moveAddress,
593
+ "shares": moveUint,
594
+ "withdraw_amount": moveUint,
595
+ "skipped": moveBool,
596
+ "cancelled": moveBool,
597
+ "sequence_number": moveUint
598
+ });
599
+ var EmberRedeemRequestSchema = import_zod2.z.looseObject({
600
+ "vault_id": moveAddress,
601
+ "owner": moveAddress,
602
+ "receiver": moveAddress,
603
+ "shares": moveUint,
604
+ "total_shares": moveUint,
605
+ "sequence_number": moveUint
606
+ });
607
+ var FlowxAmmPairCreatedSchema = import_zod2.z.looseObject({
608
+ "user": moveAddress,
609
+ "coin_x": moveString,
610
+ "coin_y": moveString
611
+ });
612
+ var FlowxAmmSwapSchema = import_zod2.z.looseObject({
613
+ "user": moveAddress,
614
+ "coin_x": moveString,
615
+ "coin_y": moveString,
616
+ "amount_x_in": moveUint,
617
+ "amount_y_in": moveUint,
618
+ "amount_x_out": moveUint,
619
+ "amount_y_out": moveUint
620
+ });
621
+ var FlowxClmmPoolCreatedSchema = import_zod2.z.looseObject({
622
+ "sender": moveAddress,
623
+ "pool_id": moveAddress,
624
+ "coin_type_x": moveTypeName,
625
+ "coin_type_y": moveTypeName,
626
+ "fee_rate": moveUint,
627
+ "tick_spacing": moveSmallUint
628
+ });
629
+ var FlowxClmmSwapSchema = import_zod2.z.looseObject({
630
+ "sender": moveAddress,
631
+ "pool_id": moveAddress,
632
+ "x_for_y": moveBool,
633
+ "amount_x": moveUint,
634
+ "amount_y": moveUint,
635
+ "liquidity": moveUint,
636
+ "fee_amount": moveUint
637
+ });
638
+ var HaedalInstantUnstakedSchema = import_zod2.z.looseObject({
639
+ "owner": moveAddress,
640
+ "sui_amount": moveUint,
641
+ "st_amount": moveUint
642
+ });
643
+ var HaedalStakedSchema = import_zod2.z.looseObject({
644
+ "owner": moveAddress,
645
+ "sui_amount": moveUint,
646
+ "st_amount": moveUint,
647
+ "validator": moveAddress
648
+ });
649
+ var HaedalUnstakedSchema = import_zod2.z.looseObject({
650
+ "owner": moveAddress,
651
+ "epoch": moveUint,
652
+ "sui_amount": moveUint,
653
+ "st_amount": moveUint
654
+ });
655
+ var KaiAddLiquiditySchema = import_zod2.z.looseObject({
656
+ "position_id": moveAddress,
657
+ "sqrt_pool_price_x64": moveUint,
658
+ "delta_l": moveUint,
659
+ "delta_x": moveUint,
660
+ "delta_y": moveUint
661
+ });
662
+ var KaiDeleverageSchema = import_zod2.z.looseObject({
663
+ "position_id": moveAddress,
664
+ "delta_l": moveUint,
665
+ "delta_x": moveUint,
666
+ "delta_y": moveUint,
667
+ "x_repaid": moveUint,
668
+ "y_repaid": moveUint
669
+ });
670
+ var KaiLiquidationSchema = import_zod2.z.looseObject({
671
+ "position_id": moveAddress,
672
+ "x_repaid": moveUint,
673
+ "y_repaid": moveUint,
674
+ "liquidator_reward_x": moveUint,
675
+ "liquidator_reward_y": moveUint,
676
+ "liquidation_fee_x": moveUint,
677
+ "liquidation_fee_y": moveUint
678
+ });
679
+ var KaiPositionOpenSchema = import_zod2.z.looseObject({
680
+ "position_id": moveAddress,
681
+ "config_id": moveAddress,
682
+ "x0": moveUint,
683
+ "y0": moveUint,
684
+ "cx": moveUint,
685
+ "cy": moveUint,
686
+ "dx": moveUint,
687
+ "dy": moveUint,
688
+ "l": moveUint,
689
+ "creation_fee_amt_sui": moveUint
690
+ });
691
+ var KaiReduceSchema = import_zod2.z.looseObject({
692
+ "position_id": moveAddress,
693
+ "delta_l": moveUint,
694
+ "delta_x": moveUint,
695
+ "delta_y": moveUint,
696
+ "withdrawn_x": moveUint,
697
+ "withdrawn_y": moveUint,
698
+ "x_repaid": moveUint,
699
+ "y_repaid": moveUint
700
+ });
701
+ var KaiSupplySchema = import_zod2.z.looseObject({
702
+ "supply_pool_id": moveAddress,
703
+ "deposited": moveUint,
704
+ "share_balance": moveUint
705
+ });
706
+ var KaiSupplyWithdrawSchema = import_zod2.z.looseObject({
707
+ "supply_pool_id": moveAddress,
708
+ "share_balance": moveUint,
709
+ "withdrawn": moveUint
710
+ });
711
+ var KriyaAddLiquiditySchema = import_zod2.z.looseObject({
712
+ "pool_id": moveAddress,
713
+ "liquidity_provider": moveAddress,
714
+ "amount_x": moveUint,
715
+ "amount_y": moveUint,
716
+ "lsp_minted": moveUint
717
+ });
718
+ var KriyaSwapSchema = import_zod2.z.looseObject({
719
+ "pool_id": moveAddress,
720
+ "user": moveAddress,
721
+ "reserve_x": moveUint,
722
+ "reserve_y": moveUint,
723
+ "amount_in": moveUint,
724
+ "amount_out": moveUint
725
+ });
726
+ var MagmaAddLiquiditySchema = import_zod2.z.looseObject({
727
+ "pool": moveAddress,
728
+ "position": moveAddress,
729
+ "liquidity": moveUint,
730
+ "after_liquidity": moveUint,
731
+ "amount_a": moveUint,
732
+ "amount_b": moveUint
733
+ });
734
+ var MagmaCollectFeeSchema = import_zod2.z.looseObject({
735
+ "position": moveAddress,
736
+ "pool": moveAddress,
737
+ "amount_a": moveUint,
738
+ "amount_b": moveUint
739
+ });
740
+ var MagmaCollectRewardSchema = import_zod2.z.looseObject({
741
+ "position": moveAddress,
742
+ "pool": moveAddress,
743
+ "amount": moveUint
744
+ });
745
+ var MagmaCreatePoolSchema = import_zod2.z.looseObject({
746
+ "pool_id": moveAddress,
747
+ "coin_type_a": moveString,
748
+ "coin_type_b": moveString,
749
+ "tick_spacing": moveSmallUint
750
+ });
751
+ var MagmaRemoveLiquiditySchema = import_zod2.z.looseObject({
752
+ "pool": moveAddress,
753
+ "position": moveAddress,
754
+ "liquidity": moveUint,
755
+ "after_liquidity": moveUint,
756
+ "amount_a": moveUint,
757
+ "amount_b": moveUint
758
+ });
759
+ var MagmaSwapSchema = import_zod2.z.looseObject({
760
+ "atob": moveBool,
761
+ "pool": moveAddress,
762
+ "partner": moveAddress,
763
+ "amount_in": moveUint,
764
+ "amount_out": moveUint,
765
+ "fee_amount": moveUint,
766
+ "before_sqrt_price": moveUint,
767
+ "after_sqrt_price": moveUint,
768
+ "steps": moveUint
769
+ });
770
+ var MoleAddDebtSchema = import_zod2.z.looseObject({
771
+ "id": moveUint,
772
+ "debt_share": moveUint
773
+ });
774
+ var MoleDepositSchema = import_zod2.z.looseObject({
775
+ "account": moveAddress,
776
+ "amount": moveUint,
777
+ "share": moveUint
778
+ });
779
+ var MoleHarvestSchema = import_zod2.z.looseObject({
780
+ "user": moveAddress,
781
+ "pid": moveUint,
782
+ "amount": moveUint,
783
+ "action_type": moveUint
784
+ });
785
+ var MoleKillSchema = import_zod2.z.looseObject({
786
+ "id": moveUint,
787
+ "killer": moveAddress,
788
+ "owner": moveAddress,
789
+ "posVal": moveUint,
790
+ "debt": moveUint,
791
+ "prize": moveUint,
792
+ "left": moveUint
793
+ });
794
+ var MoleWithdrawSchema = import_zod2.z.looseObject({
795
+ "account": moveAddress,
796
+ "share": moveUint,
797
+ "amount": moveUint
798
+ });
799
+ var MoleWorkSchema = import_zod2.z.looseObject({
800
+ "id": moveUint,
801
+ "loan": moveUint
802
+ });
803
+ var MomentumAddLiquiditySchema = import_zod2.z.looseObject({
804
+ "sender": moveAddress,
805
+ "pool_id": moveAddress,
806
+ "position_id": moveAddress,
807
+ "liquidity": moveUint,
808
+ "amount_x": moveUint,
809
+ "amount_y": moveUint
810
+ });
811
+ var MomentumCollectFeeSchema = import_zod2.z.looseObject({
812
+ "sender": moveAddress,
813
+ "pool_id": moveAddress,
814
+ "position_id": moveAddress,
815
+ "amount_x": moveUint,
816
+ "amount_y": moveUint
817
+ });
818
+ var MomentumCollectRewardSchema = import_zod2.z.looseObject({
819
+ "sender": moveAddress,
820
+ "pool_id": moveAddress,
821
+ "position_id": moveAddress,
822
+ "reward_coin_type": moveTypeName,
823
+ "amount": moveUint
824
+ });
825
+ var MomentumPoolCreatedSchema = import_zod2.z.looseObject({
826
+ "sender": moveAddress,
827
+ "pool_id": moveAddress,
828
+ "type_x": moveTypeName,
829
+ "type_y": moveTypeName,
830
+ "fee_rate": moveUint,
831
+ "tick_spacing": moveSmallUint
832
+ });
833
+ var MomentumRemoveLiquiditySchema = import_zod2.z.looseObject({
834
+ "sender": moveAddress,
835
+ "pool_id": moveAddress,
836
+ "position_id": moveAddress,
837
+ "liquidity": moveUint,
838
+ "amount_x": moveUint,
839
+ "amount_y": moveUint
840
+ });
841
+ var MomentumRepayFlashSwapSchema = import_zod2.z.looseObject({
842
+ "sender": moveAddress,
843
+ "pool_id": moveAddress,
844
+ "amount_x_debt": moveUint,
845
+ "amount_y_debt": moveUint,
846
+ "paid_x": moveUint,
847
+ "paid_y": moveUint,
848
+ "reserve_x": moveUint,
849
+ "reserve_y": moveUint
850
+ });
851
+ var MomentumSwapSchema = import_zod2.z.looseObject({
852
+ "sender": moveAddress,
853
+ "pool_id": moveAddress,
854
+ "x_for_y": moveBool,
855
+ "amount_x": moveUint,
856
+ "amount_y": moveUint,
857
+ "fee_amount": moveUint,
858
+ "liquidity": moveUint
859
+ });
860
+ var NaviBorrowSchema = import_zod2.z.looseObject({
861
+ "reserve": moveSmallUint,
862
+ "sender": moveAddress,
863
+ "amount": moveUint,
864
+ "market_id": moveUint
865
+ });
866
+ var NaviDepositSchema = import_zod2.z.looseObject({
867
+ "reserve": moveSmallUint,
868
+ "sender": moveAddress,
869
+ "amount": moveUint,
870
+ "market_id": moveUint
871
+ });
872
+ var NaviLiquidationSchema = import_zod2.z.looseObject({
873
+ "sender": moveAddress,
874
+ "user": moveAddress,
875
+ "collateral_asset": moveSmallUint,
876
+ "collateral_amount": moveUint,
877
+ "debt_asset": moveSmallUint,
878
+ "debt_amount": moveUint,
879
+ "market_id": moveUint
880
+ });
881
+ var NaviRepaySchema = import_zod2.z.looseObject({
882
+ "reserve": moveSmallUint,
883
+ "sender": moveAddress,
884
+ "amount": moveUint,
885
+ "market_id": moveUint
886
+ });
887
+ var NaviWithdrawSchema = import_zod2.z.looseObject({
888
+ "reserve": moveSmallUint,
889
+ "sender": moveAddress,
890
+ "to": moveAddress,
891
+ "amount": moveUint,
892
+ "market_id": moveUint
893
+ });
894
+ var PythPriceFeedUpdateSchema = import_zod2.z.looseObject({
895
+ "price_feed": import_zod2.z.unknown(),
896
+ "timestamp": moveUint
897
+ });
898
+ var ScallopBorrowSchema = import_zod2.z.looseObject({
899
+ "borrower": moveAddress,
900
+ "obligation": moveAddress,
901
+ "asset": moveTypeName,
902
+ "amount": moveUint,
903
+ "borrow_fee": moveUint,
904
+ "time": moveUint
905
+ });
906
+ var ScallopCollateralDepositSchema = import_zod2.z.looseObject({
907
+ "provider": moveAddress,
908
+ "obligation": moveAddress,
909
+ "deposit_asset": moveTypeName,
910
+ "deposit_amount": moveUint
911
+ });
912
+ var ScallopCollateralWithdrawSchema = import_zod2.z.looseObject({
913
+ "taker": moveAddress,
914
+ "obligation": moveAddress,
915
+ "withdraw_asset": moveTypeName,
916
+ "withdraw_amount": moveUint
917
+ });
918
+ var ScallopLiquidationSchema = import_zod2.z.looseObject({
919
+ "liquidator": moveAddress,
920
+ "obligation": moveAddress,
921
+ "debt_type": moveTypeName,
922
+ "collateral_type": moveTypeName,
923
+ "repay_on_behalf": moveUint,
924
+ "liq_amount": moveUint,
925
+ "timestamp": moveUint
926
+ });
927
+ var ScallopRepaySchema = import_zod2.z.looseObject({
928
+ "repayer": moveAddress,
929
+ "obligation": moveAddress,
930
+ "asset": moveTypeName,
931
+ "amount": moveUint,
932
+ "time": moveUint
933
+ });
934
+ var SpringsuiEpochChangedSchema = import_zod2.z.looseObject({
935
+ "event": import_zod2.z.looseObject({
936
+ "typename": moveTypeName,
937
+ "old_sui_supply": moveUint,
938
+ "new_sui_supply": moveUint,
939
+ "lst_supply": moveUint,
940
+ "spread_fee": moveUint
941
+ })
942
+ });
943
+ var SpringsuiStakeSchema = import_zod2.z.looseObject({
944
+ "event": import_zod2.z.looseObject({
945
+ "typename": moveTypeName,
946
+ "sui_amount_in": moveUint,
947
+ "lst_amount_out": moveUint,
948
+ "fee_amount": moveUint
949
+ })
950
+ });
951
+ var SpringsuiUnstakeSchema = import_zod2.z.looseObject({
952
+ "event": import_zod2.z.looseObject({
953
+ "typename": moveTypeName,
954
+ "lst_amount_in": moveUint,
955
+ "sui_amount_out": moveUint,
956
+ "fee_amount": moveUint
957
+ })
958
+ });
959
+ var SteammBankDepositSchema = import_zod2.z.looseObject({
960
+ "event": import_zod2.z.looseObject({
961
+ "user": moveAddress,
962
+ "bank_id": moveAddress,
963
+ "lending_market_id": moveAddress,
964
+ "deposited_amount": moveUint,
965
+ "minted_amount": moveUint
966
+ })
967
+ });
968
+ var SteammBankWithdrawSchema = import_zod2.z.looseObject({
969
+ "event": import_zod2.z.looseObject({
970
+ "user": moveAddress,
971
+ "bank_id": moveAddress,
972
+ "lending_market_id": moveAddress,
973
+ "withdrawn_amount": moveUint,
974
+ "burned_amount": moveUint
975
+ })
976
+ });
977
+ var SuilendBorrowSchema = import_zod2.z.looseObject({
978
+ "lending_market_id": moveAddress,
979
+ "coin_type": moveTypeName,
980
+ "reserve_id": moveAddress,
981
+ "obligation_id": moveAddress,
982
+ "liquidity_amount": moveUint,
983
+ "origination_fee_amount": moveUint
984
+ });
985
+ var SuilendClaimRewardSchema = import_zod2.z.looseObject({
986
+ "lending_market_id": moveAddress,
987
+ "reserve_id": moveAddress,
988
+ "obligation_id": moveAddress,
989
+ "is_deposit_reward": moveBool,
990
+ "coin_type": moveTypeName,
991
+ "liquidity_amount": moveUint
992
+ });
993
+ var SuilendDepositSchema = import_zod2.z.looseObject({
994
+ "lending_market_id": moveAddress,
995
+ "coin_type": moveTypeName,
996
+ "reserve_id": moveAddress,
997
+ "obligation_id": moveAddress,
998
+ "ctoken_amount": moveUint
999
+ });
1000
+ var SuilendLiquidateSchema = import_zod2.z.looseObject({
1001
+ "lending_market_id": moveAddress,
1002
+ "obligation_id": moveAddress,
1003
+ "repay_amount": moveUint,
1004
+ "withdraw_amount": moveUint,
1005
+ "protocol_fee_amount": moveUint,
1006
+ "liquidator_bonus_amount": moveUint
1007
+ });
1008
+ var SuilendRepaySchema = import_zod2.z.looseObject({
1009
+ "lending_market_id": moveAddress,
1010
+ "coin_type": moveTypeName,
1011
+ "reserve_id": moveAddress,
1012
+ "obligation_id": moveAddress,
1013
+ "liquidity_amount": moveUint
1014
+ });
1015
+ var SuilendWithdrawSchema = import_zod2.z.looseObject({
1016
+ "lending_market_id": moveAddress,
1017
+ "coin_type": moveTypeName,
1018
+ "reserve_id": moveAddress,
1019
+ "obligation_id": moveAddress,
1020
+ "ctoken_amount": moveUint
1021
+ });
1022
+ var SupraPriceUpdateSchema = import_zod2.z.looseObject({
1023
+ "pair": moveSmallUint,
1024
+ "value": moveUint,
1025
+ "decimal": moveSmallUint,
1026
+ "timestamp": moveUint,
1027
+ "round": moveUint
1028
+ });
1029
+ var TurbosAddLiquiditySchema = import_zod2.z.looseObject({
1030
+ "pool": moveAddress,
1031
+ "owner": moveAddress,
1032
+ "amount_a": moveUint,
1033
+ "amount_b": moveUint,
1034
+ "liquidity_delta": moveUint
1035
+ });
1036
+ var TurbosPoolCreatedSchema = import_zod2.z.looseObject({
1037
+ "account": moveAddress,
1038
+ "pool": moveAddress,
1039
+ "fee": moveSmallUint,
1040
+ "tick_spacing": moveSmallUint,
1041
+ "sqrt_price": moveUint
1042
+ });
1043
+ var TurbosRemoveLiquiditySchema = import_zod2.z.looseObject({
1044
+ "pool": moveAddress,
1045
+ "owner": moveAddress,
1046
+ "amount_a": moveUint,
1047
+ "amount_b": moveUint,
1048
+ "liquidity_delta": moveUint
1049
+ });
1050
+ var TurbosSwapSchema = import_zod2.z.looseObject({
1051
+ "pool": moveAddress,
1052
+ "recipient": moveAddress,
1053
+ "amount_a": moveUint,
1054
+ "amount_b": moveUint,
1055
+ "liquidity": moveUint,
1056
+ "sqrt_price": moveUint,
1057
+ "fee_amount": moveUint,
1058
+ "a_to_b": moveBool
1059
+ });
1060
+ var TypusDovAuctionSchema = import_zod2.z.looseObject({
1061
+ "signer": moveAddress,
1062
+ "index": moveUint,
1063
+ "round": moveUint,
1064
+ "start_ts_ms": moveUint,
1065
+ "end_ts_ms": moveUint,
1066
+ "size": moveUint
1067
+ });
1068
+ var TypusDovBidSchema = import_zod2.z.looseObject({
1069
+ "signer": moveAddress,
1070
+ "index": moveUint,
1071
+ "bid_index": moveUint,
1072
+ "price": moveUint,
1073
+ "size": moveUint,
1074
+ "ts_ms": moveUint
1075
+ });
1076
+ var TypusDovSettleSchema = import_zod2.z.looseObject({
1077
+ "signer": moveAddress,
1078
+ "index": moveUint,
1079
+ "round": moveUint,
1080
+ "oracle_price": moveUint,
1081
+ "settle_balance": moveUint,
1082
+ "settled_balance": moveUint
1083
+ });
1084
+ var TypusPerpFundingSchema = import_zod2.z.looseObject({
1085
+ "base_token": moveTypeName,
1086
+ "new_funding_ts_ms": moveUint,
1087
+ "cumulative_funding_rate_index": moveUint
1088
+ });
1089
+ var TypusPerpLiquidateSchema = import_zod2.z.looseObject({
1090
+ "user": moveAddress,
1091
+ "position_id": moveUint,
1092
+ "collateral_price": moveUint,
1093
+ "trading_price": moveUint,
1094
+ "realized_liquidator_fee": moveUint
1095
+ });
1096
+ var TypusPerpLpBurnSchema = import_zod2.z.looseObject({
1097
+ "sender": moveAddress,
1098
+ "index": moveUint,
1099
+ "burn_lp_amount": moveUint,
1100
+ "withdraw_token_amount": moveUint
1101
+ });
1102
+ var TypusPerpLpMintSchema = import_zod2.z.looseObject({
1103
+ "sender": moveAddress,
1104
+ "index": moveUint,
1105
+ "deposit_amount": moveUint,
1106
+ "minted_lp_amount": moveUint
1107
+ });
1108
+ var TypusPerpOrderSchema = import_zod2.z.looseObject({
1109
+ "user": moveAddress,
1110
+ "market_index": moveUint,
1111
+ "pool_index": moveUint,
1112
+ "order_id": moveUint,
1113
+ "collateral_amount": moveUint,
1114
+ "leverage_mbp": moveUint,
1115
+ "is_long": moveBool,
1116
+ "size": moveUint,
1117
+ "trigger_price": moveUint
1118
+ });
1119
+ var VoloStakedSchema = import_zod2.z.looseObject({
1120
+ "staker": moveAddress,
1121
+ "sui_amount": moveUint,
1122
+ "cert_amount": moveUint
1123
+ });
1124
+ var VoloUnstakedSchema = import_zod2.z.looseObject({
1125
+ "staker": moveAddress,
1126
+ "cert_amount": moveUint,
1127
+ "sui_amount": moveUint
1128
+ });
1129
+ var WalrusBlobCertifiedSchema = import_zod2.z.looseObject({
1130
+ "epoch": moveSmallUint,
1131
+ "blob_id": moveUint,
1132
+ "end_epoch": moveSmallUint,
1133
+ "deletable": moveBool,
1134
+ "object_id": moveAddress
1135
+ });
1136
+ var WalrusBlobDeletedSchema = import_zod2.z.looseObject({
1137
+ "epoch": moveSmallUint,
1138
+ "blob_id": moveUint,
1139
+ "end_epoch": moveSmallUint,
1140
+ "object_id": moveAddress,
1141
+ "was_certified": moveBool
1142
+ });
1143
+ var WalrusBlobRegisteredSchema = import_zod2.z.looseObject({
1144
+ "epoch": moveSmallUint,
1145
+ "blob_id": moveUint,
1146
+ "size": moveUint,
1147
+ "end_epoch": moveSmallUint,
1148
+ "deletable": moveBool,
1149
+ "object_id": moveAddress
1150
+ });
1151
+ var catalogEvents = {
1152
+ "7k.confirm-swap": {
1153
+ id: "7k.confirm-swap",
1154
+ protocolId: "7k",
1155
+ label: "7K \u2014 Swap confirmed",
1156
+ category: "swap",
1157
+ description: "A completed 7K aggregator trade (per-trade settlement summary).",
1158
+ generic: false,
1159
+ schema: _7kConfirmSwapSchema,
1160
+ deployments: [
1161
+ { network: "mainnet", eventType: "0x33ec64e9bb369bf045ddc198c81adbf2acab424da37465d95296ee02045d2b17::router::ConfirmSwapEvent", primary: true }
1162
+ ]
1163
+ },
1164
+ "7k.swap": {
1165
+ id: "7k.swap",
1166
+ protocolId: "7k",
1167
+ label: "7K \u2014 Swap (route leg)",
1168
+ category: "swap",
1169
+ description: "A single routing-leg swap on the 7K aggregator (per pool/DEX).",
1170
+ generic: false,
1171
+ schema: _7kSwapSchema,
1172
+ deployments: [
1173
+ { network: "mainnet", eventType: "0x33ec64e9bb369bf045ddc198c81adbf2acab424da37465d95296ee02045d2b17::router::SwapEvent", primary: true }
1174
+ ]
1175
+ },
1176
+ "aftermath.deposit": {
1177
+ id: "aftermath.deposit",
1178
+ protocolId: "aftermath",
1179
+ label: "Aftermath \u2014 Add liquidity",
1180
+ category: "liquidity",
1181
+ description: "Liquidity was deposited into an Aftermath AMM pool.",
1182
+ generic: false,
1183
+ schema: AftermathDepositSchema,
1184
+ deployments: [
1185
+ { network: "mainnet", eventType: "0xc4049b2d1cc0f6e017fda8260e4377cecd236bd7f56a54fee120816e72e2e0dd::events::DepositEventV2", primary: true }
1186
+ ]
1187
+ },
1188
+ "aftermath.perp-funding": {
1189
+ id: "aftermath.perp-funding",
1190
+ protocolId: "aftermath",
1191
+ label: "Aftermath \u2014 Funding settled (Perps)",
1192
+ category: "funding",
1193
+ description: "Funding was settled for an Aftermath perpetuals account.",
1194
+ generic: false,
1195
+ schema: AftermathPerpFundingSchema,
1196
+ deployments: [
1197
+ { network: "mainnet", eventType: "0x21d001e8b07da2e3facb3e2d636bbaef43ba3c978bd84810368840b7d57c5068::events::SettledFunding", primary: true }
1198
+ ]
1199
+ },
1200
+ "aftermath.perp-liquidated": {
1201
+ id: "aftermath.perp-liquidated",
1202
+ protocolId: "aftermath",
1203
+ label: "Aftermath \u2014 Position liquidated (Perps)",
1204
+ category: "liquidation",
1205
+ description: "A perpetuals position was liquidated on Aftermath.",
1206
+ generic: false,
1207
+ schema: AftermathPerpLiquidatedSchema,
1208
+ deployments: [
1209
+ { network: "mainnet", eventType: "0x21d001e8b07da2e3facb3e2d636bbaef43ba3c978bd84810368840b7d57c5068::events::LiquidatedPosition", primary: true }
1210
+ ]
1211
+ },
1212
+ "aftermath.swap": {
1213
+ id: "aftermath.swap",
1214
+ protocolId: "aftermath",
1215
+ label: "Aftermath \u2014 Swap",
1216
+ category: "swap",
1217
+ description: "A swap was executed on an Aftermath AMM pool.",
1218
+ generic: false,
1219
+ schema: AftermathSwapSchema,
1220
+ deployments: [
1221
+ { network: "mainnet", eventType: "0xc4049b2d1cc0f6e017fda8260e4377cecd236bd7f56a54fee120816e72e2e0dd::events::SwapEventV2", primary: true }
1222
+ ]
1223
+ },
1224
+ "alphafi.liquidity-change": {
1225
+ id: "alphafi.liquidity-change",
1226
+ protocolId: "alphafi",
1227
+ label: "AlphaFi \u2014 Vault deposit/withdraw",
1228
+ category: "vault",
1229
+ description: "A deposit or withdrawal on an AlphaFi vault (event_type: 1 = deposit, 0 = withdraw).",
1230
+ generic: false,
1231
+ schema: AlphafiLiquidityChangeSchema,
1232
+ deployments: [
1233
+ { network: "mainnet", eventType: "0x754afbce8c72c8e491e3b9d536aa9d9766fdbc68650224ce01072189b235eee3::alphafi_bluefin_type_1_pool::LiquidityChangeEvent", primary: true }
1234
+ ]
1235
+ },
1236
+ "alphafi.reward": {
1237
+ id: "alphafi.reward",
1238
+ protocolId: "alphafi",
1239
+ label: "AlphaFi \u2014 Reward harvest",
1240
+ category: "reward",
1241
+ description: "An AlphaFi vault auto-compounded its rewards.",
1242
+ generic: false,
1243
+ schema: AlphafiRewardSchema,
1244
+ deployments: [
1245
+ { network: "mainnet", eventType: "0x830ce657bd8547460bdb1a5e5a7607d4641a73593a23165c8630c0d310a3f306::alphafi_bluefin_type_1_pool::RewardEvent", primary: true }
1246
+ ]
1247
+ },
1248
+ "bluefin.fee-collected": {
1249
+ id: "bluefin.fee-collected",
1250
+ protocolId: "bluefin",
1251
+ label: "Bluefin \u2014 Fee collected",
1252
+ category: "fee",
1253
+ description: "Trading fees were collected from a Bluefin position.",
1254
+ generic: false,
1255
+ schema: BluefinFeeCollectedSchema,
1256
+ deployments: [
1257
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::UserFeeCollected", primary: true }
1258
+ ]
1259
+ },
1260
+ "bluefin.liquidity-provided": {
1261
+ id: "bluefin.liquidity-provided",
1262
+ protocolId: "bluefin",
1263
+ label: "Bluefin \u2014 Liquidity provided",
1264
+ category: "liquidity",
1265
+ description: "Liquidity was provided to a Bluefin position.",
1266
+ generic: false,
1267
+ schema: BluefinLiquidityProvidedSchema,
1268
+ deployments: [
1269
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::LiquidityProvided", primary: true }
1270
+ ]
1271
+ },
1272
+ "bluefin.liquidity-removed": {
1273
+ id: "bluefin.liquidity-removed",
1274
+ protocolId: "bluefin",
1275
+ label: "Bluefin \u2014 Liquidity removed",
1276
+ category: "liquidity",
1277
+ description: "Liquidity was removed from a Bluefin position.",
1278
+ generic: false,
1279
+ schema: BluefinLiquidityRemovedSchema,
1280
+ deployments: [
1281
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::LiquidityRemoved", primary: true }
1282
+ ]
1283
+ },
1284
+ "bluefin.pool-created": {
1285
+ id: "bluefin.pool-created",
1286
+ protocolId: "bluefin",
1287
+ label: "Bluefin \u2014 Pool created",
1288
+ category: "pool",
1289
+ description: "A new Bluefin spot pool was created.",
1290
+ generic: false,
1291
+ schema: BluefinPoolCreatedSchema,
1292
+ deployments: [
1293
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::PoolCreated", primary: true }
1294
+ ]
1295
+ },
1296
+ "bluefin.position-closed": {
1297
+ id: "bluefin.position-closed",
1298
+ protocolId: "bluefin",
1299
+ label: "Bluefin \u2014 Position closed",
1300
+ category: "position",
1301
+ description: "A Bluefin liquidity position was closed.",
1302
+ generic: false,
1303
+ schema: BluefinPositionClosedSchema,
1304
+ deployments: [
1305
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::PositionClosed", primary: true }
1306
+ ]
1307
+ },
1308
+ "bluefin.position-opened": {
1309
+ id: "bluefin.position-opened",
1310
+ protocolId: "bluefin",
1311
+ label: "Bluefin \u2014 Position opened",
1312
+ category: "position",
1313
+ description: "A new Bluefin liquidity position was opened.",
1314
+ generic: false,
1315
+ schema: BluefinPositionOpenedSchema,
1316
+ deployments: [
1317
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::PositionOpened", primary: true }
1318
+ ]
1319
+ },
1320
+ "bluefin.reward-collected": {
1321
+ id: "bluefin.reward-collected",
1322
+ protocolId: "bluefin",
1323
+ label: "Bluefin \u2014 Reward collected",
1324
+ category: "reward",
1325
+ description: "Incentive rewards were collected from a Bluefin position.",
1326
+ generic: false,
1327
+ schema: BluefinRewardCollectedSchema,
1328
+ deployments: [
1329
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::UserRewardCollected", primary: true }
1330
+ ]
1331
+ },
1332
+ "bluefin.swap": {
1333
+ id: "bluefin.swap",
1334
+ protocolId: "bluefin",
1335
+ label: "Bluefin \u2014 Swap",
1336
+ category: "swap",
1337
+ description: "An asset swap was executed on a Bluefin spot pool.",
1338
+ generic: false,
1339
+ schema: BluefinSwapSchema,
1340
+ deployments: [
1341
+ { network: "mainnet", eventType: "0x3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::events::AssetSwap", primary: true }
1342
+ ]
1343
+ },
1344
+ "bucket.borrow": {
1345
+ id: "bucket.borrow",
1346
+ protocolId: "bucket",
1347
+ label: "Bucket \u2014 Borrow (mint BUCK)",
1348
+ category: "borrow",
1349
+ description: "BUCK was minted against collateral in a Bucket CDP.",
1350
+ generic: false,
1351
+ schema: BucketBorrowSchema,
1352
+ deployments: [
1353
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck_events::BuckMinted", primary: true }
1354
+ ]
1355
+ },
1356
+ "bucket.deposit-collateral": {
1357
+ id: "bucket.deposit-collateral",
1358
+ protocolId: "bucket",
1359
+ label: "Bucket \u2014 Deposit collateral",
1360
+ category: "supply",
1361
+ description: "Collateral was added to a Bucket CDP.",
1362
+ generic: false,
1363
+ schema: BucketDepositCollateralSchema,
1364
+ deployments: [
1365
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck_events::CollateralIncreased", primary: true }
1366
+ ]
1367
+ },
1368
+ "bucket.position-updated": {
1369
+ id: "bucket.position-updated",
1370
+ protocolId: "bucket",
1371
+ label: "Bucket \u2014 Position updated",
1372
+ category: "position",
1373
+ description: "A Bucket CDP position (bottle) changed state.",
1374
+ generic: false,
1375
+ schema: BucketPositionUpdatedSchema,
1376
+ deployments: [
1377
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::bucket_events::BottleUpdated", primary: true }
1378
+ ]
1379
+ },
1380
+ "bucket.redeem": {
1381
+ id: "bucket.redeem",
1382
+ protocolId: "bucket",
1383
+ label: "Bucket \u2014 Redeem",
1384
+ category: "liquidation",
1385
+ description: "BUCK was redeemed for collateral on a Bucket CDP.",
1386
+ generic: false,
1387
+ schema: BucketRedeemSchema,
1388
+ deployments: [
1389
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::bucket_events::Redeem", primary: true }
1390
+ ]
1391
+ },
1392
+ "bucket.repay": {
1393
+ id: "bucket.repay",
1394
+ protocolId: "bucket",
1395
+ label: "Bucket \u2014 Repay (burn BUCK)",
1396
+ category: "repay",
1397
+ description: "BUCK was burned to repay debt in a Bucket CDP.",
1398
+ generic: false,
1399
+ schema: BucketRepaySchema,
1400
+ deployments: [
1401
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck_events::BuckBurnt", primary: true }
1402
+ ]
1403
+ },
1404
+ "bucket.sbuck-deposit": {
1405
+ id: "bucket.sbuck-deposit",
1406
+ protocolId: "bucket",
1407
+ label: "Bucket \u2014 sBUCK deposit",
1408
+ category: "supply",
1409
+ description: "BUCK was deposited into the sBUCK savings vault.",
1410
+ generic: false,
1411
+ schema: BucketSbuckDepositSchema,
1412
+ deployments: [
1413
+ { network: "mainnet", eventType: "0x1798f84ee72176114ddbf5525a6d964c5f8ea1b3738d08d50d0d3de4cf584884::event::Deposit", primary: true }
1414
+ ]
1415
+ },
1416
+ "bucket.sbuck-rewards": {
1417
+ id: "bucket.sbuck-rewards",
1418
+ protocolId: "bucket",
1419
+ label: "Bucket \u2014 sBUCK rewards collected",
1420
+ category: "reward",
1421
+ description: "Rewards were collected from the sBUCK savings vault.",
1422
+ generic: false,
1423
+ schema: BucketSbuckRewardsSchema,
1424
+ deployments: [
1425
+ { network: "mainnet", eventType: "0x1798f84ee72176114ddbf5525a6d964c5f8ea1b3738d08d50d0d3de4cf584884::event::CollectRewards", primary: true }
1426
+ ]
1427
+ },
1428
+ "bucket.withdraw-collateral": {
1429
+ id: "bucket.withdraw-collateral",
1430
+ protocolId: "bucket",
1431
+ label: "Bucket \u2014 Withdraw collateral",
1432
+ category: "withdraw",
1433
+ description: "Collateral was removed from a Bucket CDP.",
1434
+ generic: false,
1435
+ schema: BucketWithdrawCollateralSchema,
1436
+ deployments: [
1437
+ { network: "mainnet", eventType: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck_events::CollateralDecreased", primary: true }
1438
+ ]
1439
+ },
1440
+ "cetus.add-liquidity": {
1441
+ id: "cetus.add-liquidity",
1442
+ protocolId: "cetus",
1443
+ label: "Cetus \u2014 Add liquidity",
1444
+ category: "liquidity",
1445
+ description: "Liquidity was added to a Cetus position.",
1446
+ generic: false,
1447
+ schema: CetusAddLiquiditySchema,
1448
+ deployments: [
1449
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::AddLiquidityEvent", primary: true }
1450
+ ]
1451
+ },
1452
+ "cetus.close-position": {
1453
+ id: "cetus.close-position",
1454
+ protocolId: "cetus",
1455
+ label: "Cetus \u2014 Close position",
1456
+ category: "position",
1457
+ description: "A Cetus liquidity position was closed.",
1458
+ generic: false,
1459
+ schema: CetusClosePositionSchema,
1460
+ deployments: [
1461
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::ClosePositionEvent", primary: true }
1462
+ ]
1463
+ },
1464
+ "cetus.collect-fee": {
1465
+ id: "cetus.collect-fee",
1466
+ protocolId: "cetus",
1467
+ label: "Cetus \u2014 Collect fee",
1468
+ category: "fee",
1469
+ description: "Accrued swap fees were collected from a Cetus position.",
1470
+ generic: false,
1471
+ schema: CetusCollectFeeSchema,
1472
+ deployments: [
1473
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::CollectFeeEvent", primary: true }
1474
+ ]
1475
+ },
1476
+ "cetus.create-pool": {
1477
+ id: "cetus.create-pool",
1478
+ protocolId: "cetus",
1479
+ label: "Cetus \u2014 Create pool",
1480
+ category: "pool",
1481
+ description: "A new Cetus CLMM pool was created via the factory.",
1482
+ generic: false,
1483
+ schema: CetusCreatePoolSchema,
1484
+ deployments: [
1485
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::factory::CreatePoolEvent", primary: true }
1486
+ ]
1487
+ },
1488
+ "cetus.open-position": {
1489
+ id: "cetus.open-position",
1490
+ protocolId: "cetus",
1491
+ label: "Cetus \u2014 Open position",
1492
+ category: "position",
1493
+ description: "A new Cetus liquidity position was opened.",
1494
+ generic: false,
1495
+ schema: CetusOpenPositionSchema,
1496
+ deployments: [
1497
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::OpenPositionEvent", primary: true }
1498
+ ]
1499
+ },
1500
+ "cetus.remove-liquidity": {
1501
+ id: "cetus.remove-liquidity",
1502
+ protocolId: "cetus",
1503
+ label: "Cetus \u2014 Remove liquidity",
1504
+ category: "liquidity",
1505
+ description: "Liquidity was removed from a Cetus position.",
1506
+ generic: false,
1507
+ schema: CetusRemoveLiquiditySchema,
1508
+ deployments: [
1509
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::RemoveLiquidityEvent", primary: true }
1510
+ ]
1511
+ },
1512
+ "cetus.swap": {
1513
+ id: "cetus.swap",
1514
+ protocolId: "cetus",
1515
+ label: "Cetus \u2014 Swap",
1516
+ category: "swap",
1517
+ description: "A token swap was executed on a Cetus CLMM pool.",
1518
+ generic: false,
1519
+ schema: CetusSwapSchema,
1520
+ deployments: [
1521
+ { network: "mainnet", eventType: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool::SwapEvent", primary: true }
1522
+ ]
1523
+ },
1524
+ "current.borrow": {
1525
+ id: "current.borrow",
1526
+ protocolId: "current",
1527
+ label: "Current \u2014 Borrow",
1528
+ category: "borrow",
1529
+ description: "Assets were borrowed from a Current lending market.",
1530
+ generic: false,
1531
+ schema: CurrentBorrowSchema,
1532
+ deployments: [
1533
+ { network: "mainnet", eventType: "0xfe1d8929d13b00aaecd7642dec1c6d41cab82882a1b139efa46bf61dfd6380bf::borrow::BorrowEvent", primary: true }
1534
+ ]
1535
+ },
1536
+ "current.deposit": {
1537
+ id: "current.deposit",
1538
+ protocolId: "current",
1539
+ label: "Current \u2014 Deposit",
1540
+ category: "supply",
1541
+ description: "Assets were deposited (supplied) to a Current lending market.",
1542
+ generic: false,
1543
+ schema: CurrentDepositSchema,
1544
+ deployments: [
1545
+ { network: "mainnet", eventType: "0xfe1d8929d13b00aaecd7642dec1c6d41cab82882a1b139efa46bf61dfd6380bf::deposit::DepositEvent", primary: true }
1546
+ ]
1547
+ },
1548
+ "current.liquidate": {
1549
+ id: "current.liquidate",
1550
+ protocolId: "current",
1551
+ label: "Current \u2014 Liquidation",
1552
+ category: "liquidation",
1553
+ description: "A Current obligation was liquidated.",
1554
+ generic: false,
1555
+ schema: CurrentLiquidateSchema,
1556
+ deployments: [
1557
+ { network: "mainnet", eventType: "0xfe1d8929d13b00aaecd7642dec1c6d41cab82882a1b139efa46bf61dfd6380bf::liquidate::LiquidateEvent", primary: true }
1558
+ ]
1559
+ },
1560
+ "current.repay": {
1561
+ id: "current.repay",
1562
+ protocolId: "current",
1563
+ label: "Current \u2014 Repay",
1564
+ category: "repay",
1565
+ description: "A Current loan was repaid.",
1566
+ generic: false,
1567
+ schema: CurrentRepaySchema,
1568
+ deployments: [
1569
+ { network: "mainnet", eventType: "0xfe1d8929d13b00aaecd7642dec1c6d41cab82882a1b139efa46bf61dfd6380bf::repay::RepayEvent", primary: true }
1570
+ ]
1571
+ },
1572
+ "current.withdraw": {
1573
+ id: "current.withdraw",
1574
+ protocolId: "current",
1575
+ label: "Current \u2014 Withdraw",
1576
+ category: "withdraw",
1577
+ description: "Assets were withdrawn from a Current lending market.",
1578
+ generic: false,
1579
+ schema: CurrentWithdrawSchema,
1580
+ deployments: [
1581
+ { network: "mainnet", eventType: "0xfe1d8929d13b00aaecd7642dec1c6d41cab82882a1b139efa46bf61dfd6380bf::withdraw::WithdrawEvent", primary: true }
1582
+ ]
1583
+ },
1584
+ "deepbook.balance": {
1585
+ id: "deepbook.balance",
1586
+ protocolId: "deepbook",
1587
+ label: "DeepBook \u2014 Balance change",
1588
+ category: "fee",
1589
+ description: "A deposit or withdrawal on a DeepBook balance manager.",
1590
+ generic: false,
1591
+ schema: DeepbookBalanceSchema,
1592
+ deployments: [
1593
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::balance_manager::BalanceEvent", primary: true }
1594
+ ]
1595
+ },
1596
+ "deepbook.flash-loan": {
1597
+ id: "deepbook.flash-loan",
1598
+ protocolId: "deepbook",
1599
+ label: "DeepBook \u2014 Flash loan borrowed",
1600
+ category: "fee",
1601
+ description: "A flash loan was borrowed from a DeepBook pool.",
1602
+ generic: false,
1603
+ schema: DeepbookFlashLoanSchema,
1604
+ deployments: [
1605
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::vault::FlashLoanBorrowed", primary: true }
1606
+ ]
1607
+ },
1608
+ "deepbook.order-canceled": {
1609
+ id: "deepbook.order-canceled",
1610
+ protocolId: "deepbook",
1611
+ label: "DeepBook \u2014 Order canceled",
1612
+ category: "order",
1613
+ description: "A DeepBook maker order was canceled.",
1614
+ generic: false,
1615
+ schema: DeepbookOrderCanceledSchema,
1616
+ deployments: [
1617
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::order::OrderCanceled", primary: true }
1618
+ ]
1619
+ },
1620
+ "deepbook.order-filled": {
1621
+ id: "deepbook.order-filled",
1622
+ protocolId: "deepbook",
1623
+ label: "DeepBook \u2014 Order filled",
1624
+ category: "order",
1625
+ description: "A DeepBook order was filled (partially or fully).",
1626
+ generic: false,
1627
+ schema: DeepbookOrderFilledSchema,
1628
+ deployments: [
1629
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::order_info::OrderFilled", primary: true }
1630
+ ]
1631
+ },
1632
+ "deepbook.order-info": {
1633
+ id: "deepbook.order-info",
1634
+ protocolId: "deepbook",
1635
+ label: "DeepBook \u2014 Order update",
1636
+ category: "order",
1637
+ description: "An order's lifecycle update on a DeepBook pool (placed/filled/status).",
1638
+ generic: false,
1639
+ schema: DeepbookOrderInfoSchema,
1640
+ deployments: [
1641
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::order_info::OrderInfo", primary: true }
1642
+ ]
1643
+ },
1644
+ "deepbook.order-placed": {
1645
+ id: "deepbook.order-placed",
1646
+ protocolId: "deepbook",
1647
+ label: "DeepBook \u2014 Order placed",
1648
+ category: "order",
1649
+ description: "A maker limit order was placed on a DeepBook pool.",
1650
+ generic: false,
1651
+ schema: DeepbookOrderPlacedSchema,
1652
+ deployments: [
1653
+ { network: "mainnet", eventType: "0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::order_info::OrderPlaced", primary: true }
1654
+ ]
1655
+ },
1656
+ "ember.deposit": {
1657
+ id: "ember.deposit",
1658
+ protocolId: "ember",
1659
+ label: "Ember \u2014 Vault deposit",
1660
+ category: "vault",
1661
+ description: "A deposit into an Ember vault (matches all deposit coin types).",
1662
+ generic: true,
1663
+ schema: EmberDepositSchema,
1664
+ deployments: [
1665
+ { network: "mainnet", eventType: "0xc83d5406fd355f34d3ce87b35ab2c0b099af9d309ba96c17e40309502a49976f::events::VaultDepositEvent", primary: true }
1666
+ ]
1667
+ },
1668
+ "ember.rate-updated": {
1669
+ id: "ember.rate-updated",
1670
+ protocolId: "ember",
1671
+ label: "Ember \u2014 Vault rate updated",
1672
+ category: "reward",
1673
+ description: "An Ember vault's share rate (price) was updated.",
1674
+ generic: false,
1675
+ schema: EmberRateUpdatedSchema,
1676
+ deployments: [
1677
+ { network: "mainnet", eventType: "0xc83d5406fd355f34d3ce87b35ab2c0b099af9d309ba96c17e40309502a49976f::events::VaultRateUpdatedEvent", primary: true }
1678
+ ]
1679
+ },
1680
+ "ember.redeem-processed": {
1681
+ id: "ember.redeem-processed",
1682
+ protocolId: "ember",
1683
+ label: "Ember \u2014 Redeem processed",
1684
+ category: "withdraw",
1685
+ description: "A queued Ember redeem request was processed.",
1686
+ generic: true,
1687
+ schema: EmberRedeemProcessedSchema,
1688
+ deployments: [
1689
+ { network: "mainnet", eventType: "0xc83d5406fd355f34d3ce87b35ab2c0b099af9d309ba96c17e40309502a49976f::events::RequestProcessedEvent", primary: true }
1690
+ ]
1691
+ },
1692
+ "ember.redeem-request": {
1693
+ id: "ember.redeem-request",
1694
+ protocolId: "ember",
1695
+ label: "Ember \u2014 Redeem requested",
1696
+ category: "withdraw",
1697
+ description: "A redeem (withdrawal) was requested from an Ember vault.",
1698
+ generic: true,
1699
+ schema: EmberRedeemRequestSchema,
1700
+ deployments: [
1701
+ { network: "mainnet", eventType: "0xc83d5406fd355f34d3ce87b35ab2c0b099af9d309ba96c17e40309502a49976f::events::RequestRedeemedEvent", primary: true }
1702
+ ]
1703
+ },
1704
+ "flowx.amm-pair-created": {
1705
+ id: "flowx.amm-pair-created",
1706
+ protocolId: "flowx",
1707
+ label: "FlowX \u2014 Pair created (AMM)",
1708
+ category: "pool",
1709
+ description: "A new FlowX AMM trading pair was created.",
1710
+ generic: false,
1711
+ schema: FlowxAmmPairCreatedSchema,
1712
+ deployments: [
1713
+ { network: "mainnet", eventType: "0xba153169476e8c3114962261d1edc70de5ad9781b83cc617ecc8c1923191cae0::factory::PairCreated", primary: true }
1714
+ ]
1715
+ },
1716
+ "flowx.amm-swap": {
1717
+ id: "flowx.amm-swap",
1718
+ protocolId: "flowx",
1719
+ label: "FlowX \u2014 Swap (AMM)",
1720
+ category: "swap",
1721
+ description: "A swap was executed on a FlowX AMM pair.",
1722
+ generic: false,
1723
+ schema: FlowxAmmSwapSchema,
1724
+ deployments: [
1725
+ { network: "mainnet", eventType: "0xba153169476e8c3114962261d1edc70de5ad9781b83cc617ecc8c1923191cae0::pair::Swapped", primary: true }
1726
+ ]
1727
+ },
1728
+ "flowx.clmm-pool-created": {
1729
+ id: "flowx.clmm-pool-created",
1730
+ protocolId: "flowx",
1731
+ label: "FlowX \u2014 Pool created (CLMM)",
1732
+ category: "pool",
1733
+ description: "A new FlowX CLMM pool was created.",
1734
+ generic: false,
1735
+ schema: FlowxClmmPoolCreatedSchema,
1736
+ deployments: [
1737
+ { network: "mainnet", eventType: "0x25929e7f29e0a30eb4e692952ba1b5b65a3a4d65ab5f2a32e1ba3edcb587f26d::pool_manager::PoolCreated", primary: true }
1738
+ ]
1739
+ },
1740
+ "flowx.clmm-swap": {
1741
+ id: "flowx.clmm-swap",
1742
+ protocolId: "flowx",
1743
+ label: "FlowX \u2014 Swap (CLMM)",
1744
+ category: "swap",
1745
+ description: "A swap was executed on a FlowX CLMM pool.",
1746
+ generic: false,
1747
+ schema: FlowxClmmSwapSchema,
1748
+ deployments: [
1749
+ { network: "mainnet", eventType: "0x25929e7f29e0a30eb4e692952ba1b5b65a3a4d65ab5f2a32e1ba3edcb587f26d::pool::Swap", primary: true }
1750
+ ]
1751
+ },
1752
+ "haedal.instant-unstaked": {
1753
+ id: "haedal.instant-unstaked",
1754
+ protocolId: "haedal",
1755
+ label: "Haedal \u2014 Instant unstaked",
1756
+ category: "unstake",
1757
+ description: "An instant unstake was performed on Haedal.",
1758
+ generic: false,
1759
+ schema: HaedalInstantUnstakedSchema,
1760
+ deployments: [
1761
+ { network: "mainnet", eventType: "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::staking::UserInstantUnstaked", primary: true }
1762
+ ]
1763
+ },
1764
+ "haedal.staked": {
1765
+ id: "haedal.staked",
1766
+ protocolId: "haedal",
1767
+ label: "Haedal \u2014 Staked",
1768
+ category: "stake",
1769
+ description: "SUI was staked with Haedal in exchange for haSUI.",
1770
+ generic: false,
1771
+ schema: HaedalStakedSchema,
1772
+ deployments: [
1773
+ { network: "mainnet", eventType: "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::staking::UserStaked", primary: true }
1774
+ ]
1775
+ },
1776
+ "haedal.unstaked": {
1777
+ id: "haedal.unstaked",
1778
+ protocolId: "haedal",
1779
+ label: "Haedal \u2014 Unstaked",
1780
+ category: "unstake",
1781
+ description: "A delayed unstake was initiated on Haedal.",
1782
+ generic: false,
1783
+ schema: HaedalUnstakedSchema,
1784
+ deployments: [
1785
+ { network: "mainnet", eventType: "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::staking::UserNormalUnstaked", primary: true }
1786
+ ]
1787
+ },
1788
+ "kai.add-liquidity": {
1789
+ id: "kai.add-liquidity",
1790
+ protocolId: "kai",
1791
+ label: "Kai \u2014 Increase position",
1792
+ category: "liquidity",
1793
+ description: "Liquidity was added to a Kai leveraged position.",
1794
+ generic: false,
1795
+ schema: KaiAddLiquiditySchema,
1796
+ deployments: [
1797
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::position_core_clmm::AddLiquidityInfo", primary: true }
1798
+ ]
1799
+ },
1800
+ "kai.deleverage": {
1801
+ id: "kai.deleverage",
1802
+ protocolId: "kai",
1803
+ label: "Kai \u2014 Deleverage",
1804
+ category: "repay",
1805
+ description: "A Kai leveraged position was deleveraged (debt repaid).",
1806
+ generic: false,
1807
+ schema: KaiDeleverageSchema,
1808
+ deployments: [
1809
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::position_core_clmm::DeleverageInfo", primary: true }
1810
+ ]
1811
+ },
1812
+ "kai.liquidation": {
1813
+ id: "kai.liquidation",
1814
+ protocolId: "kai",
1815
+ label: "Kai \u2014 Liquidation",
1816
+ category: "liquidation",
1817
+ description: "A Kai leveraged position was liquidated.",
1818
+ generic: false,
1819
+ schema: KaiLiquidationSchema,
1820
+ deployments: [
1821
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::position_core_clmm::LiquidationInfo", primary: true }
1822
+ ]
1823
+ },
1824
+ "kai.position-open": {
1825
+ id: "kai.position-open",
1826
+ protocolId: "kai",
1827
+ label: "Kai \u2014 Open leveraged position",
1828
+ category: "borrow",
1829
+ description: "A new Kai leveraged CLMM position was opened.",
1830
+ generic: false,
1831
+ schema: KaiPositionOpenSchema,
1832
+ deployments: [
1833
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::position_core_clmm::PositionCreationInfo", primary: true }
1834
+ ]
1835
+ },
1836
+ "kai.reduce": {
1837
+ id: "kai.reduce",
1838
+ protocolId: "kai",
1839
+ label: "Kai \u2014 Reduce position",
1840
+ category: "withdraw",
1841
+ description: "A Kai leveraged position was reduced / partially withdrawn.",
1842
+ generic: false,
1843
+ schema: KaiReduceSchema,
1844
+ deployments: [
1845
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::position_core_clmm::ReductionInfo", primary: true }
1846
+ ]
1847
+ },
1848
+ "kai.supply": {
1849
+ id: "kai.supply",
1850
+ protocolId: "kai",
1851
+ label: "Kai \u2014 Supply to pool",
1852
+ category: "lend",
1853
+ description: "Liquidity was supplied to a Kai lending pool.",
1854
+ generic: false,
1855
+ schema: KaiSupplySchema,
1856
+ deployments: [
1857
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::supply_pool::SupplyInfo", primary: true }
1858
+ ]
1859
+ },
1860
+ "kai.supply-withdraw": {
1861
+ id: "kai.supply-withdraw",
1862
+ protocolId: "kai",
1863
+ label: "Kai \u2014 Withdraw from pool",
1864
+ category: "withdraw",
1865
+ description: "Supplied liquidity was withdrawn from a Kai lending pool.",
1866
+ generic: false,
1867
+ schema: KaiSupplyWithdrawSchema,
1868
+ deployments: [
1869
+ { network: "mainnet", eventType: "0x51e0ccce48f0763f98f1cb4856847c2e1531adacada99cdd7626ab999db57523::supply_pool::WithdrawInfo", primary: true }
1870
+ ]
1871
+ },
1872
+ "kriya.add-liquidity": {
1873
+ id: "kriya.add-liquidity",
1874
+ protocolId: "kriya",
1875
+ label: "Kriya \u2014 Add liquidity",
1876
+ category: "liquidity",
1877
+ description: "Liquidity was provided to a Kriya pool.",
1878
+ generic: false,
1879
+ schema: KriyaAddLiquiditySchema,
1880
+ deployments: [
1881
+ { network: "mainnet", eventType: "0xa0eba10b173538c8fecca1dff298e488402cc9ff374f8a12ca7758eebe830b66::spot_dex::LiquidityAddedEvent", primary: true }
1882
+ ]
1883
+ },
1884
+ "kriya.swap": {
1885
+ id: "kriya.swap",
1886
+ protocolId: "kriya",
1887
+ label: "Kriya \u2014 Swap",
1888
+ category: "swap",
1889
+ description: "A token swap was executed on a Kriya spot pool (matches all token types).",
1890
+ generic: true,
1891
+ schema: KriyaSwapSchema,
1892
+ deployments: [
1893
+ { network: "mainnet", eventType: "0xa0eba10b173538c8fecca1dff298e488402cc9ff374f8a12ca7758eebe830b66::spot_dex::SwapEvent", primary: true }
1894
+ ]
1895
+ },
1896
+ "magma.add-liquidity": {
1897
+ id: "magma.add-liquidity",
1898
+ protocolId: "magma",
1899
+ label: "Magma \u2014 Add liquidity",
1900
+ category: "liquidity",
1901
+ description: "Liquidity was added to a Magma CLMM pool.",
1902
+ generic: false,
1903
+ schema: MagmaAddLiquiditySchema,
1904
+ deployments: [
1905
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool::AddLiquidityEvent", primary: true }
1906
+ ]
1907
+ },
1908
+ "magma.collect-fee": {
1909
+ id: "magma.collect-fee",
1910
+ protocolId: "magma",
1911
+ label: "Magma \u2014 Collect fee",
1912
+ category: "fee",
1913
+ description: "Trading fees were collected from a Magma position.",
1914
+ generic: false,
1915
+ schema: MagmaCollectFeeSchema,
1916
+ deployments: [
1917
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool::CollectFeeEvent", primary: true }
1918
+ ]
1919
+ },
1920
+ "magma.collect-reward": {
1921
+ id: "magma.collect-reward",
1922
+ protocolId: "magma",
1923
+ label: "Magma \u2014 Collect reward",
1924
+ category: "reward",
1925
+ description: "Incentive rewards were collected from a Magma position.",
1926
+ generic: false,
1927
+ schema: MagmaCollectRewardSchema,
1928
+ deployments: [
1929
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool::CollectRewardEvent", primary: true }
1930
+ ]
1931
+ },
1932
+ "magma.create-pool": {
1933
+ id: "magma.create-pool",
1934
+ protocolId: "magma",
1935
+ label: "Magma \u2014 Create pool",
1936
+ category: "pool",
1937
+ description: "A new Magma CLMM pool was created.",
1938
+ generic: false,
1939
+ schema: MagmaCreatePoolSchema,
1940
+ deployments: [
1941
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::factory::CreatePoolEvent", primary: true }
1942
+ ]
1943
+ },
1944
+ "magma.remove-liquidity": {
1945
+ id: "magma.remove-liquidity",
1946
+ protocolId: "magma",
1947
+ label: "Magma \u2014 Remove liquidity",
1948
+ category: "liquidity",
1949
+ description: "Liquidity was removed from a Magma CLMM pool.",
1950
+ generic: false,
1951
+ schema: MagmaRemoveLiquiditySchema,
1952
+ deployments: [
1953
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool::RemoveLiquidityEvent", primary: true }
1954
+ ]
1955
+ },
1956
+ "magma.swap": {
1957
+ id: "magma.swap",
1958
+ protocolId: "magma",
1959
+ label: "Magma \u2014 Swap",
1960
+ category: "swap",
1961
+ description: "A token swap was executed on a Magma CLMM pool.",
1962
+ generic: false,
1963
+ schema: MagmaSwapSchema,
1964
+ deployments: [
1965
+ { network: "mainnet", eventType: "0x4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool::SwapEvent", primary: true }
1966
+ ]
1967
+ },
1968
+ "mole.add-debt": {
1969
+ id: "mole.add-debt",
1970
+ protocolId: "mole",
1971
+ label: "Mole \u2014 Add debt (leverage)",
1972
+ category: "borrow",
1973
+ description: "Debt was added to a Mole leveraged-farm position.",
1974
+ generic: true,
1975
+ schema: MoleAddDebtSchema,
1976
+ deployments: [
1977
+ { network: "mainnet", eventType: "0x5ffa69ee4ee14d899dcc750df92de12bad4bacf81efa1ae12ee76406804dda7f::vault::AddDebtEvent", primary: true }
1978
+ ]
1979
+ },
1980
+ "mole.deposit": {
1981
+ id: "mole.deposit",
1982
+ protocolId: "mole",
1983
+ label: "Mole \u2014 Vault deposit",
1984
+ category: "vault",
1985
+ description: "A deposit into a Mole savings vault (matches all coin types).",
1986
+ generic: true,
1987
+ schema: MoleDepositSchema,
1988
+ deployments: [
1989
+ { network: "mainnet", eventType: "0x5ffa69ee4ee14d899dcc750df92de12bad4bacf81efa1ae12ee76406804dda7f::vault::DepositEvent", primary: true }
1990
+ ]
1991
+ },
1992
+ "mole.harvest": {
1993
+ id: "mole.harvest",
1994
+ protocolId: "mole",
1995
+ label: "Mole \u2014 Harvest rewards",
1996
+ category: "reward",
1997
+ description: "Rewards were harvested from a Mole vault/farm.",
1998
+ generic: true,
1999
+ schema: MoleHarvestSchema,
2000
+ deployments: [
2001
+ { network: "mainnet", eventType: "0xc4dc6948a7d0a58f32fadd44e45efb201f44383bfab1cb6c48b9c186a92cc762::sui_incentive::HarvestEvent", primary: true }
2002
+ ]
2003
+ },
2004
+ "mole.kill": {
2005
+ id: "mole.kill",
2006
+ protocolId: "mole",
2007
+ label: "Mole \u2014 Position liquidation (kill)",
2008
+ category: "liquidation",
2009
+ description: "A Mole leveraged-farm position was liquidated.",
2010
+ generic: true,
2011
+ schema: MoleKillSchema,
2012
+ deployments: [
2013
+ { network: "mainnet", eventType: "0x5ffa69ee4ee14d899dcc750df92de12bad4bacf81efa1ae12ee76406804dda7f::vault::KillEvent", primary: true }
2014
+ ]
2015
+ },
2016
+ "mole.withdraw": {
2017
+ id: "mole.withdraw",
2018
+ protocolId: "mole",
2019
+ label: "Mole \u2014 Vault withdraw",
2020
+ category: "withdraw",
2021
+ description: "A withdrawal from a Mole savings vault (matches all coin types).",
2022
+ generic: true,
2023
+ schema: MoleWithdrawSchema,
2024
+ deployments: [
2025
+ { network: "mainnet", eventType: "0x5ffa69ee4ee14d899dcc750df92de12bad4bacf81efa1ae12ee76406804dda7f::vault::WithdrawEvent", primary: true }
2026
+ ]
2027
+ },
2028
+ "mole.work": {
2029
+ id: "mole.work",
2030
+ protocolId: "mole",
2031
+ label: "Mole \u2014 Open/adjust farm position",
2032
+ category: "liquidity",
2033
+ description: "A Mole leveraged-farm position was opened or adjusted.",
2034
+ generic: true,
2035
+ schema: MoleWorkSchema,
2036
+ deployments: [
2037
+ { network: "mainnet", eventType: "0x5ffa69ee4ee14d899dcc750df92de12bad4bacf81efa1ae12ee76406804dda7f::vault::WorkEvent", primary: true }
2038
+ ]
2039
+ },
2040
+ "momentum.add-liquidity": {
2041
+ id: "momentum.add-liquidity",
2042
+ protocolId: "momentum",
2043
+ label: "Momentum \u2014 Add liquidity",
2044
+ category: "liquidity",
2045
+ description: "Liquidity was added to a Momentum position.",
2046
+ generic: false,
2047
+ schema: MomentumAddLiquiditySchema,
2048
+ deployments: [
2049
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::liquidity::AddLiquidityEvent", primary: true }
2050
+ ]
2051
+ },
2052
+ "momentum.collect-fee": {
2053
+ id: "momentum.collect-fee",
2054
+ protocolId: "momentum",
2055
+ label: "Momentum \u2014 Collect fee",
2056
+ category: "fee",
2057
+ description: "Trading fees were collected from a Momentum position.",
2058
+ generic: false,
2059
+ schema: MomentumCollectFeeSchema,
2060
+ deployments: [
2061
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::collect::FeeCollectedEvent", primary: true }
2062
+ ]
2063
+ },
2064
+ "momentum.collect-reward": {
2065
+ id: "momentum.collect-reward",
2066
+ protocolId: "momentum",
2067
+ label: "Momentum \u2014 Collect reward",
2068
+ category: "reward",
2069
+ description: "Incentive rewards were collected from a Momentum position.",
2070
+ generic: false,
2071
+ schema: MomentumCollectRewardSchema,
2072
+ deployments: [
2073
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::collect::CollectPoolRewardEvent", primary: true }
2074
+ ]
2075
+ },
2076
+ "momentum.pool-created": {
2077
+ id: "momentum.pool-created",
2078
+ protocolId: "momentum",
2079
+ label: "Momentum \u2014 Pool created",
2080
+ category: "pool",
2081
+ description: "A new Momentum pool was created.",
2082
+ generic: false,
2083
+ schema: MomentumPoolCreatedSchema,
2084
+ deployments: [
2085
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::create_pool::PoolCreatedEvent", primary: true }
2086
+ ]
2087
+ },
2088
+ "momentum.remove-liquidity": {
2089
+ id: "momentum.remove-liquidity",
2090
+ protocolId: "momentum",
2091
+ label: "Momentum \u2014 Remove liquidity",
2092
+ category: "liquidity",
2093
+ description: "Liquidity was removed from a Momentum position.",
2094
+ generic: false,
2095
+ schema: MomentumRemoveLiquiditySchema,
2096
+ deployments: [
2097
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::liquidity::RemoveLiquidityEvent", primary: true }
2098
+ ]
2099
+ },
2100
+ "momentum.repay-flash-swap": {
2101
+ id: "momentum.repay-flash-swap",
2102
+ protocolId: "momentum",
2103
+ label: "Momentum \u2014 Repay flash swap",
2104
+ category: "fee",
2105
+ description: "A Momentum flash swap was repaid.",
2106
+ generic: false,
2107
+ schema: MomentumRepayFlashSwapSchema,
2108
+ deployments: [
2109
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::trade::RepayFlashSwapEvent", primary: true }
2110
+ ]
2111
+ },
2112
+ "momentum.swap": {
2113
+ id: "momentum.swap",
2114
+ protocolId: "momentum",
2115
+ label: "Momentum \u2014 Swap",
2116
+ category: "swap",
2117
+ description: "A swap was executed on a Momentum CLMM pool.",
2118
+ generic: false,
2119
+ schema: MomentumSwapSchema,
2120
+ deployments: [
2121
+ { network: "mainnet", eventType: "0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::trade::SwapEvent", primary: true }
2122
+ ]
2123
+ },
2124
+ "navi.borrow": {
2125
+ id: "navi.borrow",
2126
+ protocolId: "navi",
2127
+ label: "NAVI \u2014 Borrow",
2128
+ category: "borrow",
2129
+ description: "Assets were borrowed from a NAVI pool.",
2130
+ generic: false,
2131
+ schema: NaviBorrowSchema,
2132
+ deployments: [
2133
+ { network: "mainnet", eventType: "0x1e4a13a0494d5facdbe8473e74127b838c2d446ecec0ce262e2eddafa77259cb::event::BorrowEvent", primary: true }
2134
+ ]
2135
+ },
2136
+ "navi.deposit": {
2137
+ id: "navi.deposit",
2138
+ protocolId: "navi",
2139
+ label: "NAVI \u2014 Deposit",
2140
+ category: "supply",
2141
+ description: "Assets were supplied to a NAVI lending pool.",
2142
+ generic: false,
2143
+ schema: NaviDepositSchema,
2144
+ deployments: [
2145
+ { network: "mainnet", eventType: "0x1e4a13a0494d5facdbe8473e74127b838c2d446ecec0ce262e2eddafa77259cb::event::DepositEvent", primary: true }
2146
+ ]
2147
+ },
2148
+ "navi.liquidation": {
2149
+ id: "navi.liquidation",
2150
+ protocolId: "navi",
2151
+ label: "NAVI \u2014 Liquidation",
2152
+ category: "liquidation",
2153
+ description: "An undercollateralized NAVI position was liquidated.",
2154
+ generic: false,
2155
+ schema: NaviLiquidationSchema,
2156
+ deployments: [
2157
+ { network: "mainnet", eventType: "0x1e4a13a0494d5facdbe8473e74127b838c2d446ecec0ce262e2eddafa77259cb::event::LiquidationEvent", primary: true }
2158
+ ]
2159
+ },
2160
+ "navi.repay": {
2161
+ id: "navi.repay",
2162
+ protocolId: "navi",
2163
+ label: "NAVI \u2014 Repay",
2164
+ category: "repay",
2165
+ description: "Borrowed assets were repaid to a NAVI pool.",
2166
+ generic: false,
2167
+ schema: NaviRepaySchema,
2168
+ deployments: [
2169
+ { network: "mainnet", eventType: "0x1e4a13a0494d5facdbe8473e74127b838c2d446ecec0ce262e2eddafa77259cb::event::RepayEvent", primary: true }
2170
+ ]
2171
+ },
2172
+ "navi.withdraw": {
2173
+ id: "navi.withdraw",
2174
+ protocolId: "navi",
2175
+ label: "NAVI \u2014 Withdraw",
2176
+ category: "withdraw",
2177
+ description: "Supplied assets were withdrawn from a NAVI pool.",
2178
+ generic: false,
2179
+ schema: NaviWithdrawSchema,
2180
+ deployments: [
2181
+ { network: "mainnet", eventType: "0x1e4a13a0494d5facdbe8473e74127b838c2d446ecec0ce262e2eddafa77259cb::event::WithdrawEvent", primary: true }
2182
+ ]
2183
+ },
2184
+ "pyth.price-feed-update": {
2185
+ id: "pyth.price-feed-update",
2186
+ protocolId: "pyth",
2187
+ label: "Pyth \u2014 Price feed update",
2188
+ category: "oracle",
2189
+ description: "A Pyth price feed was updated with new price data.",
2190
+ generic: false,
2191
+ schema: PythPriceFeedUpdateSchema,
2192
+ deployments: [
2193
+ { network: "mainnet", eventType: "0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e::event::PriceFeedUpdateEvent", primary: true },
2194
+ { network: "testnet", eventType: "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::event::PriceFeedUpdateEvent", primary: true }
2195
+ ]
2196
+ },
2197
+ "scallop.borrow": {
2198
+ id: "scallop.borrow",
2199
+ protocolId: "scallop",
2200
+ label: "Scallop \u2014 Borrow",
2201
+ category: "borrow",
2202
+ description: "Assets were borrowed from a Scallop lending market.",
2203
+ generic: false,
2204
+ schema: ScallopBorrowSchema,
2205
+ deployments: [
2206
+ { network: "mainnet", eventType: "0x6e641f0dca8aedab3101d047e96439178f16301bf0b57fe8745086ff1195eb3e::borrow::BorrowEventV3", primary: true }
2207
+ ]
2208
+ },
2209
+ "scallop.collateral-deposit": {
2210
+ id: "scallop.collateral-deposit",
2211
+ protocolId: "scallop",
2212
+ label: "Scallop \u2014 Deposit collateral",
2213
+ category: "supply",
2214
+ description: "Collateral was deposited into a Scallop obligation.",
2215
+ generic: false,
2216
+ schema: ScallopCollateralDepositSchema,
2217
+ deployments: [
2218
+ { network: "mainnet", eventType: "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::deposit_collateral::CollateralDepositEvent", primary: true }
2219
+ ]
2220
+ },
2221
+ "scallop.collateral-withdraw": {
2222
+ id: "scallop.collateral-withdraw",
2223
+ protocolId: "scallop",
2224
+ label: "Scallop \u2014 Withdraw collateral",
2225
+ category: "withdraw",
2226
+ description: "Collateral was withdrawn from a Scallop obligation.",
2227
+ generic: false,
2228
+ schema: ScallopCollateralWithdrawSchema,
2229
+ deployments: [
2230
+ { network: "mainnet", eventType: "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::withdraw_collateral::CollateralWithdrawEvent", primary: true }
2231
+ ]
2232
+ },
2233
+ "scallop.liquidation": {
2234
+ id: "scallop.liquidation",
2235
+ protocolId: "scallop",
2236
+ label: "Scallop \u2014 Liquidation",
2237
+ category: "liquidation",
2238
+ description: "A Scallop obligation was liquidated.",
2239
+ generic: false,
2240
+ schema: ScallopLiquidationSchema,
2241
+ deployments: [
2242
+ { network: "mainnet", eventType: "0x6e641f0dca8aedab3101d047e96439178f16301bf0b57fe8745086ff1195eb3e::liquidate::LiquidateEventV2", primary: true }
2243
+ ]
2244
+ },
2245
+ "scallop.repay": {
2246
+ id: "scallop.repay",
2247
+ protocolId: "scallop",
2248
+ label: "Scallop \u2014 Repay",
2249
+ category: "repay",
2250
+ description: "Borrowed assets were repaid to a Scallop market.",
2251
+ generic: false,
2252
+ schema: ScallopRepaySchema,
2253
+ deployments: [
2254
+ { network: "mainnet", eventType: "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::repay::RepayEvent", primary: true }
2255
+ ]
2256
+ },
2257
+ "springsui.epoch-changed": {
2258
+ id: "springsui.epoch-changed",
2259
+ protocolId: "springsui",
2260
+ label: "SpringSui \u2014 Epoch changed (rewards)",
2261
+ category: "reward",
2262
+ description: "SpringSui accrued staking rewards at an epoch change.",
2263
+ generic: false,
2264
+ schema: SpringsuiEpochChangedSchema,
2265
+ deployments: [
2266
+ { network: "mainnet", eventType: "0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::events::Event<0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::EpochChangedEvent>", primary: true }
2267
+ ]
2268
+ },
2269
+ "springsui.stake": {
2270
+ id: "springsui.stake",
2271
+ protocolId: "springsui",
2272
+ label: "SpringSui \u2014 Stake (mint LST)",
2273
+ category: "stake",
2274
+ description: "SUI was staked to mint a SpringSui liquid-staking token.",
2275
+ generic: false,
2276
+ schema: SpringsuiStakeSchema,
2277
+ deployments: [
2278
+ { network: "mainnet", eventType: "0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::events::Event<0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::MintEvent>", primary: true }
2279
+ ]
2280
+ },
2281
+ "springsui.unstake": {
2282
+ id: "springsui.unstake",
2283
+ protocolId: "springsui",
2284
+ label: "SpringSui \u2014 Unstake (redeem LST)",
2285
+ category: "unstake",
2286
+ description: "A SpringSui liquid-staking token was redeemed for SUI.",
2287
+ generic: false,
2288
+ schema: SpringsuiUnstakeSchema,
2289
+ deployments: [
2290
+ { network: "mainnet", eventType: "0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::events::Event<0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::RedeemEvent>", primary: true }
2291
+ ]
2292
+ },
2293
+ "steamm.bank-deposit": {
2294
+ id: "steamm.bank-deposit",
2295
+ protocolId: "steamm",
2296
+ label: "Steamm \u2014 Bank deposit (mint bToken)",
2297
+ category: "supply",
2298
+ description: "Funds were deposited into a Steamm bank, minting bTokens.",
2299
+ generic: false,
2300
+ schema: SteammBankDepositSchema,
2301
+ deployments: [
2302
+ { network: "mainnet", eventType: "0x4fb1cf45dffd6230305f1d269dd1816678cc8e3ba0b747a813a556921219f261::events::Event<0x4fb1cf45dffd6230305f1d269dd1816678cc8e3ba0b747a813a556921219f261::bank::MintBTokenEvent>", primary: true }
2303
+ ]
2304
+ },
2305
+ "steamm.bank-withdraw": {
2306
+ id: "steamm.bank-withdraw",
2307
+ protocolId: "steamm",
2308
+ label: "Steamm \u2014 Bank withdraw (burn bToken)",
2309
+ category: "withdraw",
2310
+ description: "bTokens were burned to withdraw funds from a Steamm bank.",
2311
+ generic: false,
2312
+ schema: SteammBankWithdrawSchema,
2313
+ deployments: [
2314
+ { network: "mainnet", eventType: "0x4fb1cf45dffd6230305f1d269dd1816678cc8e3ba0b747a813a556921219f261::events::Event<0x4fb1cf45dffd6230305f1d269dd1816678cc8e3ba0b747a813a556921219f261::bank::BurnBTokenEvent>", primary: true }
2315
+ ]
2316
+ },
2317
+ "suilend.borrow": {
2318
+ id: "suilend.borrow",
2319
+ protocolId: "suilend",
2320
+ label: "Suilend \u2014 Borrow",
2321
+ category: "borrow",
2322
+ description: "Assets were borrowed from a Suilend market.",
2323
+ generic: false,
2324
+ schema: SuilendBorrowSchema,
2325
+ deployments: [
2326
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent", primary: true }
2327
+ ]
2328
+ },
2329
+ "suilend.claim-reward": {
2330
+ id: "suilend.claim-reward",
2331
+ protocolId: "suilend",
2332
+ label: "Suilend \u2014 Claim reward",
2333
+ category: "reward",
2334
+ description: "Rewards were claimed from a Suilend market.",
2335
+ generic: false,
2336
+ schema: SuilendClaimRewardSchema,
2337
+ deployments: [
2338
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent", primary: true }
2339
+ ]
2340
+ },
2341
+ "suilend.deposit": {
2342
+ id: "suilend.deposit",
2343
+ protocolId: "suilend",
2344
+ label: "Suilend \u2014 Deposit",
2345
+ category: "supply",
2346
+ description: "Assets were deposited into a Suilend reserve.",
2347
+ generic: false,
2348
+ schema: SuilendDepositSchema,
2349
+ deployments: [
2350
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent", primary: true }
2351
+ ]
2352
+ },
2353
+ "suilend.liquidate": {
2354
+ id: "suilend.liquidate",
2355
+ protocolId: "suilend",
2356
+ label: "Suilend \u2014 Liquidation",
2357
+ category: "liquidation",
2358
+ description: "A Suilend obligation was liquidated.",
2359
+ generic: false,
2360
+ schema: SuilendLiquidateSchema,
2361
+ deployments: [
2362
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent", primary: true }
2363
+ ]
2364
+ },
2365
+ "suilend.repay": {
2366
+ id: "suilend.repay",
2367
+ protocolId: "suilend",
2368
+ label: "Suilend \u2014 Repay",
2369
+ category: "repay",
2370
+ description: "Borrowed assets were repaid to a Suilend market.",
2371
+ generic: false,
2372
+ schema: SuilendRepaySchema,
2373
+ deployments: [
2374
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent", primary: true }
2375
+ ]
2376
+ },
2377
+ "suilend.withdraw": {
2378
+ id: "suilend.withdraw",
2379
+ protocolId: "suilend",
2380
+ label: "Suilend \u2014 Withdraw",
2381
+ category: "withdraw",
2382
+ description: "Assets were withdrawn from a Suilend reserve.",
2383
+ generic: false,
2384
+ schema: SuilendWithdrawSchema,
2385
+ deployments: [
2386
+ { network: "mainnet", eventType: "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent", primary: true }
2387
+ ]
2388
+ },
2389
+ "supra.price-update": {
2390
+ id: "supra.price-update",
2391
+ protocolId: "supra",
2392
+ label: "Supra \u2014 Price update",
2393
+ category: "oracle",
2394
+ description: "A Supra oracle price feed (pair) was updated.",
2395
+ generic: false,
2396
+ schema: SupraPriceUpdateSchema,
2397
+ deployments: [
2398
+ { network: "mainnet", eventType: "0x4979543452f609ff272d504755966ff5e70122256101c17adbe8bd27d35116c3::SupraSValueFeed::PairDataUpdateEvent", primary: true }
2399
+ ]
2400
+ },
2401
+ "turbos.add-liquidity": {
2402
+ id: "turbos.add-liquidity",
2403
+ protocolId: "turbos",
2404
+ label: "Turbos \u2014 Add liquidity",
2405
+ category: "liquidity",
2406
+ description: "Liquidity was minted into a Turbos position.",
2407
+ generic: false,
2408
+ schema: TurbosAddLiquiditySchema,
2409
+ deployments: [
2410
+ { network: "mainnet", eventType: "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool::MintEvent", primary: true }
2411
+ ]
2412
+ },
2413
+ "turbos.pool-created": {
2414
+ id: "turbos.pool-created",
2415
+ protocolId: "turbos",
2416
+ label: "Turbos \u2014 Pool created",
2417
+ category: "pool",
2418
+ description: "A new Turbos CLMM pool was created.",
2419
+ generic: false,
2420
+ schema: TurbosPoolCreatedSchema,
2421
+ deployments: [
2422
+ { network: "mainnet", eventType: "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool_factory::PoolCreatedEvent", primary: true }
2423
+ ]
2424
+ },
2425
+ "turbos.remove-liquidity": {
2426
+ id: "turbos.remove-liquidity",
2427
+ protocolId: "turbos",
2428
+ label: "Turbos \u2014 Remove liquidity",
2429
+ category: "liquidity",
2430
+ description: "Liquidity was burned from a Turbos position.",
2431
+ generic: false,
2432
+ schema: TurbosRemoveLiquiditySchema,
2433
+ deployments: [
2434
+ { network: "mainnet", eventType: "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool::BurnEvent", primary: true }
2435
+ ]
2436
+ },
2437
+ "turbos.swap": {
2438
+ id: "turbos.swap",
2439
+ protocolId: "turbos",
2440
+ label: "Turbos \u2014 Swap",
2441
+ category: "swap",
2442
+ description: "A swap was executed on a Turbos CLMM pool.",
2443
+ generic: false,
2444
+ schema: TurbosSwapSchema,
2445
+ deployments: [
2446
+ { network: "mainnet", eventType: "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool::SwapEvent", primary: true }
2447
+ ]
2448
+ },
2449
+ "typus.dov-auction": {
2450
+ id: "typus.dov-auction",
2451
+ protocolId: "typus",
2452
+ label: "Typus \u2014 DOV auction started",
2453
+ category: "option",
2454
+ description: "A new Typus options-vault (DOV) auction round started.",
2455
+ generic: false,
2456
+ schema: TypusDovAuctionSchema,
2457
+ deployments: [
2458
+ { network: "mainnet", eventType: "0x321848bf1ae327a9e022ccb3701940191e02fa193ab160d9c0e49cd3c003de3a::typus_dov_single::NewAuctionEvent", primary: true }
2459
+ ]
2460
+ },
2461
+ "typus.dov-bid": {
2462
+ id: "typus.dov-bid",
2463
+ protocolId: "typus",
2464
+ label: "Typus \u2014 DOV bid",
2465
+ category: "option",
2466
+ description: "A bid was placed in a Typus options-vault auction.",
2467
+ generic: false,
2468
+ schema: TypusDovBidSchema,
2469
+ deployments: [
2470
+ { network: "mainnet", eventType: "0x321848bf1ae327a9e022ccb3701940191e02fa193ab160d9c0e49cd3c003de3a::typus_dov_single::NewBidEvent", primary: true }
2471
+ ]
2472
+ },
2473
+ "typus.dov-settle": {
2474
+ id: "typus.dov-settle",
2475
+ protocolId: "typus",
2476
+ label: "Typus \u2014 DOV settled",
2477
+ category: "option",
2478
+ description: "A Typus options-vault round was settled.",
2479
+ generic: false,
2480
+ schema: TypusDovSettleSchema,
2481
+ deployments: [
2482
+ { network: "mainnet", eventType: "0x321848bf1ae327a9e022ccb3701940191e02fa193ab160d9c0e49cd3c003de3a::typus_dov_single::SettleEvent", primary: true }
2483
+ ]
2484
+ },
2485
+ "typus.perp-funding": {
2486
+ id: "typus.perp-funding",
2487
+ protocolId: "typus",
2488
+ label: "Typus \u2014 Perp funding update",
2489
+ category: "funding",
2490
+ description: "A Typus perps market funding rate was updated.",
2491
+ generic: false,
2492
+ schema: TypusPerpFundingSchema,
2493
+ deployments: [
2494
+ { network: "mainnet", eventType: "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9::trading::UpdateFundingRateEvent", primary: true }
2495
+ ]
2496
+ },
2497
+ "typus.perp-liquidate": {
2498
+ id: "typus.perp-liquidate",
2499
+ protocolId: "typus",
2500
+ label: "Typus \u2014 Perp liquidation",
2501
+ category: "liquidation",
2502
+ description: "A Typus perps position was liquidated.",
2503
+ generic: false,
2504
+ schema: TypusPerpLiquidateSchema,
2505
+ deployments: [
2506
+ { network: "mainnet", eventType: "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9::trading::LiquidateEvent", primary: true }
2507
+ ]
2508
+ },
2509
+ "typus.perp-lp-burn": {
2510
+ id: "typus.perp-lp-burn",
2511
+ protocolId: "typus",
2512
+ label: "Typus \u2014 TLP burn",
2513
+ category: "liquidity",
2514
+ description: "Liquidity was removed from the Typus perps LP (TLP).",
2515
+ generic: false,
2516
+ schema: TypusPerpLpBurnSchema,
2517
+ deployments: [
2518
+ { network: "mainnet", eventType: "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9::lp_pool::BurnLpEvent", primary: true }
2519
+ ]
2520
+ },
2521
+ "typus.perp-lp-mint": {
2522
+ id: "typus.perp-lp-mint",
2523
+ protocolId: "typus",
2524
+ label: "Typus \u2014 TLP mint",
2525
+ category: "liquidity",
2526
+ description: "Liquidity was added to the Typus perps LP (TLP).",
2527
+ generic: false,
2528
+ schema: TypusPerpLpMintSchema,
2529
+ deployments: [
2530
+ { network: "mainnet", eventType: "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9::lp_pool::MintLpEvent", primary: true }
2531
+ ]
2532
+ },
2533
+ "typus.perp-order": {
2534
+ id: "typus.perp-order",
2535
+ protocolId: "typus",
2536
+ label: "Typus \u2014 Perp order created",
2537
+ category: "perp",
2538
+ description: "A trading order was created on Typus perps.",
2539
+ generic: false,
2540
+ schema: TypusPerpOrderSchema,
2541
+ deployments: [
2542
+ { network: "mainnet", eventType: "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9::trading::CreateTradingOrderEvent", primary: true }
2543
+ ]
2544
+ },
2545
+ "volo.staked": {
2546
+ id: "volo.staked",
2547
+ protocolId: "volo",
2548
+ label: "Volo \u2014 Staked",
2549
+ category: "stake",
2550
+ description: "SUI was staked with Volo in exchange for vSUI.",
2551
+ generic: false,
2552
+ schema: VoloStakedSchema,
2553
+ deployments: [
2554
+ { network: "mainnet", eventType: "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::native_pool::StakedEvent", primary: true }
2555
+ ]
2556
+ },
2557
+ "volo.unstaked": {
2558
+ id: "volo.unstaked",
2559
+ protocolId: "volo",
2560
+ label: "Volo \u2014 Unstaked",
2561
+ category: "unstake",
2562
+ description: "vSUI was burned to unstake SUI on Volo.",
2563
+ generic: false,
2564
+ schema: VoloUnstakedSchema,
2565
+ deployments: [
2566
+ { network: "mainnet", eventType: "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::native_pool::UnstakedEvent", primary: true }
2567
+ ]
2568
+ },
2569
+ "walrus.blob-certified": {
2570
+ id: "walrus.blob-certified",
2571
+ protocolId: "walrus",
2572
+ label: "Walrus \u2014 Blob certified",
2573
+ category: "storage",
2574
+ description: "A Walrus blob was certified available.",
2575
+ generic: false,
2576
+ schema: WalrusBlobCertifiedSchema,
2577
+ deployments: [
2578
+ { network: "mainnet", eventType: "0xfdc88f7d7cf30afab2f82e8380d11ee8f70efb90e863d1de8616fae1bb09ea77::events::BlobCertified", primary: true }
2579
+ ]
2580
+ },
2581
+ "walrus.blob-deleted": {
2582
+ id: "walrus.blob-deleted",
2583
+ protocolId: "walrus",
2584
+ label: "Walrus \u2014 Blob deleted",
2585
+ category: "storage",
2586
+ description: "A Walrus blob was deleted.",
2587
+ generic: false,
2588
+ schema: WalrusBlobDeletedSchema,
2589
+ deployments: [
2590
+ { network: "mainnet", eventType: "0xfdc88f7d7cf30afab2f82e8380d11ee8f70efb90e863d1de8616fae1bb09ea77::events::BlobDeleted", primary: true }
2591
+ ]
2592
+ },
2593
+ "walrus.blob-registered": {
2594
+ id: "walrus.blob-registered",
2595
+ protocolId: "walrus",
2596
+ label: "Walrus \u2014 Blob registered",
2597
+ category: "storage",
2598
+ description: "A new blob was registered for storage on Walrus.",
2599
+ generic: false,
2600
+ schema: WalrusBlobRegisteredSchema,
2601
+ deployments: [
2602
+ { network: "mainnet", eventType: "0xfdc88f7d7cf30afab2f82e8380d11ee8f70efb90e863d1de8616fae1bb09ea77::events::BlobRegistered", primary: true }
2603
+ ]
2604
+ }
2605
+ };
2606
+
2607
+ // src/events/move-types.ts
2608
+ var import_zod3 = require("zod");
2609
+ var PRIMITIVES = /* @__PURE__ */ new Set([
2610
+ "u8",
2611
+ "u16",
2612
+ "u32",
2613
+ "u64",
2614
+ "u128",
2615
+ "u256",
2616
+ "bool",
2617
+ "address",
2618
+ "signer"
2619
+ ]);
2620
+ function splitArgs(inner) {
2621
+ const parts = [];
2622
+ let depth = 0;
2623
+ let current = "";
2624
+ for (const char of inner) {
2625
+ if (char === "<") depth++;
2626
+ if (char === ">") depth--;
2627
+ if (char === "," && depth === 0) {
2628
+ parts.push(current.trim());
2629
+ current = "";
2630
+ continue;
2631
+ }
2632
+ current += char;
2633
+ }
2634
+ if (current.trim()) parts.push(current.trim());
2635
+ return parts;
2636
+ }
2637
+ function parseMoveType(input) {
2638
+ const type = input.trim();
2639
+ if (PRIMITIVES.has(type)) {
2640
+ return { kind: "prim", prim: type };
2641
+ }
2642
+ if (type.startsWith("vector<") && type.endsWith(">")) {
2643
+ return { kind: "vector", inner: parseMoveType(type.slice(7, -1)) };
2644
+ }
2645
+ const param = /^\$(\d+)$/.exec(type);
2646
+ if (param) {
2647
+ return { kind: "param", index: Number(param[1]) };
2648
+ }
2649
+ const generic = type.indexOf("<");
2650
+ const base = generic === -1 ? type : type.slice(0, generic);
2651
+ const args = generic === -1 || !type.endsWith(">") ? [] : splitArgs(type.slice(generic + 1, -1)).map(parseMoveType);
2652
+ const [address, module2, name, ...rest] = base.split("::");
2653
+ if (address?.startsWith("0x") && module2 && name && rest.length === 0) {
2654
+ return {
2655
+ kind: "struct",
2656
+ address: normalizeAddress(address),
2657
+ module: module2,
2658
+ name,
2659
+ args
2660
+ };
2661
+ }
2662
+ return { kind: "opaque", raw: type };
2663
+ }
2664
+ function normalizeAddress(address) {
2665
+ return address.replace(/^0x0+(?=[0-9a-fA-F])/, "0x");
2666
+ }
2667
+ function formatMoveType(node) {
2668
+ switch (node.kind) {
2669
+ case "prim":
2670
+ return node.prim;
2671
+ case "vector":
2672
+ return `vector<${formatMoveType(node.inner)}>`;
2673
+ case "param":
2674
+ return `$${node.index}`;
2675
+ case "opaque":
2676
+ return node.raw;
2677
+ case "struct": {
2678
+ const base = `${node.address}::${node.module}::${node.name}`;
2679
+ return node.args.length === 0 ? base : `${base}<${node.args.map(formatMoveType).join(", ")}>`;
2680
+ }
2681
+ }
2682
+ }
2683
+ function substituteTypeParams(node, args) {
2684
+ switch (node.kind) {
2685
+ case "param":
2686
+ return args[node.index] ?? node;
2687
+ case "vector":
2688
+ return { kind: "vector", inner: substituteTypeParams(node.inner, args) };
2689
+ case "struct":
2690
+ return {
2691
+ ...node,
2692
+ args: node.args.map((a) => substituteTypeParams(a, args))
2693
+ };
2694
+ default:
2695
+ return node;
2696
+ }
2697
+ }
2698
+ var MAX_DEPTH = 6;
2699
+ async function resolveShape(node, resolveStruct, depth = 0, stack = []) {
2700
+ switch (node.kind) {
2701
+ case "prim":
2702
+ switch (node.prim) {
2703
+ case "u8":
2704
+ case "u16":
2705
+ case "u32":
2706
+ return { kind: "smallUint" };
2707
+ case "u64":
2708
+ case "u128":
2709
+ case "u256":
2710
+ return { kind: "uint" };
2711
+ case "bool":
2712
+ return { kind: "bool" };
2713
+ case "address":
2714
+ case "signer":
2715
+ return { kind: "address" };
2716
+ default:
2717
+ return { kind: "unknown" };
2718
+ }
2719
+ case "vector":
2720
+ if (node.inner.kind === "prim" && node.inner.prim === "u8") {
2721
+ return { kind: "bytes" };
2722
+ }
2723
+ return {
2724
+ kind: "vector",
2725
+ inner: await resolveShape(node.inner, resolveStruct, depth, stack)
2726
+ };
2727
+ case "param":
2728
+ case "opaque":
2729
+ return { kind: "unknown" };
2730
+ case "struct": {
2731
+ const base = `${node.address}::${node.module}::${node.name}`;
2732
+ switch (base) {
2733
+ case "0x1::string::String":
2734
+ case "0x1::ascii::String":
2735
+ case "0x2::url::Url":
2736
+ return { kind: "string" };
2737
+ case "0x1::type_name::TypeName":
2738
+ return { kind: "typeName" };
2739
+ case "0x2::object::ID":
2740
+ return { kind: "address" };
2741
+ case "0x2::balance::Balance":
2742
+ return { kind: "balance" };
2743
+ case "0x1::option::Option": {
2744
+ const inner = node.args[0];
2745
+ if (node.args.length === 1 && inner) {
2746
+ return {
2747
+ kind: "option",
2748
+ inner: await resolveShape(inner, resolveStruct, depth, stack)
2749
+ };
2750
+ }
2751
+ return { kind: "unknown" };
2752
+ }
2753
+ }
2754
+ const key = formatMoveType(node);
2755
+ if (depth >= MAX_DEPTH || stack.includes(key)) {
2756
+ return { kind: "unknown" };
2757
+ }
2758
+ const definition = await resolveStruct(node);
2759
+ if (!definition) {
2760
+ return { kind: "unknown" };
2761
+ }
2762
+ const fields = await Promise.all(
2763
+ definition.map(async (field) => ({
2764
+ name: field.name,
2765
+ value: await resolveShape(
2766
+ substituteTypeParams(field.type, node.args),
2767
+ resolveStruct,
2768
+ depth + 1,
2769
+ [...stack, key]
2770
+ )
2771
+ }))
2772
+ );
2773
+ return { kind: "object", fields };
2774
+ }
2775
+ }
2776
+ }
2777
+ function shapeToZod(shape) {
2778
+ switch (shape.kind) {
2779
+ case "smallUint":
2780
+ return moveSmallUint;
2781
+ case "uint":
2782
+ return moveUint;
2783
+ case "bool":
2784
+ return moveBool;
2785
+ case "address":
2786
+ return moveAddress;
2787
+ case "string":
2788
+ return moveString;
2789
+ case "typeName":
2790
+ return moveTypeName;
2791
+ case "balance":
2792
+ return moveBalance;
2793
+ case "bytes":
2794
+ return moveBytes;
2795
+ case "option":
2796
+ return shapeToZod(shape.inner).nullable();
2797
+ case "vector":
2798
+ return import_zod3.z.array(shapeToZod(shape.inner));
2799
+ case "object":
2800
+ return import_zod3.z.looseObject(
2801
+ Object.fromEntries(
2802
+ shape.fields.map((f) => [f.name, shapeToZod(f.value)])
2803
+ )
2804
+ );
2805
+ case "unknown":
2806
+ return import_zod3.z.unknown();
2807
+ }
2808
+ }
2809
+ var PRIMITIVE_EXPRS = {
2810
+ smallUint: "moveSmallUint",
2811
+ uint: "moveUint",
2812
+ bool: "moveBool",
2813
+ address: "moveAddress",
2814
+ string: "moveString",
2815
+ typeName: "moveTypeName",
2816
+ balance: "moveBalance",
2817
+ bytes: "moveBytes"
2818
+ };
2819
+ function shapeToExpr(shape, used, indent = "") {
2820
+ const primitive = PRIMITIVE_EXPRS[shape.kind];
2821
+ if (primitive) {
2822
+ used.add(primitive);
2823
+ return primitive;
2824
+ }
2825
+ switch (shape.kind) {
2826
+ case "option":
2827
+ return `${shapeToExpr(shape.inner, used, indent)}.nullable()`;
2828
+ case "vector":
2829
+ return `z.array(${shapeToExpr(shape.inner, used, indent)})`;
2830
+ case "object": {
2831
+ const lines = ["z.looseObject({"];
2832
+ for (const field of shape.fields) {
2833
+ lines.push(
2834
+ `${indent} ${JSON.stringify(field.name)}: ${shapeToExpr(field.value, used, `${indent} `)},`
2835
+ );
2836
+ }
2837
+ lines.push(`${indent}})`);
2838
+ return lines.join("\n");
2839
+ }
2840
+ default:
2841
+ return "z.unknown()";
2842
+ }
2843
+ }
2844
+
2845
+ // src/core/auth.ts
2846
+ function resolveAuth(auth) {
2847
+ if (typeof auth === "string") {
2848
+ return staticAuth(apiKeyCredentials(auth));
2849
+ }
2850
+ if ("apiKey" in auth) {
2851
+ return staticAuth(apiKeyCredentials(auth.apiKey));
2852
+ }
2853
+ if ("sessionToken" in auth) {
2854
+ return staticAuth({
2855
+ headers: { authorization: `Bearer ${auth.sessionToken}` }
2856
+ });
2857
+ }
2858
+ return {
2859
+ credentials: async () => auth.getCredentials(),
2860
+ staticCredentials: () => void 0
2861
+ };
2862
+ }
2863
+ function authFromOptions(options, context) {
2864
+ if (options.auth !== void 0) {
2865
+ return resolveAuth(options.auth);
2866
+ }
2867
+ if (options.apiKey) {
2868
+ return resolveAuth(options.apiKey);
2869
+ }
2870
+ throw new Error(`${context} requires auth (or the apiKey shorthand)`);
2871
+ }
2872
+ function apiKeyCredentials(apiKey) {
2873
+ if (!apiKey) {
2874
+ throw new Error("Inodra auth: apiKey must be a non-empty string");
2875
+ }
2876
+ return {
2877
+ headers: { "x-api-key": apiKey },
2878
+ queryParams: { api_key: apiKey }
2879
+ };
2880
+ }
2881
+ function staticAuth(credentials) {
2882
+ return {
2883
+ credentials: async () => credentials,
2884
+ staticCredentials: () => credentials
2885
+ };
2886
+ }
2887
+
2888
+ // src/core/network.ts
2889
+ var INODRA_ENDPOINTS = {
2890
+ mainnet: {
2891
+ rest: "https://mainnet-api.inodra.com/v1",
2892
+ graphql: "https://mainnet-api.inodra.com/v1/graphql",
2893
+ /** host:port for native gRPC transports */
2894
+ grpc: "mainnet-grpc.inodra.com:443",
2895
+ /** base URL for gRPC-Web transports */
2896
+ grpcWeb: "https://mainnet-grpc.inodra.com",
2897
+ warpWs: "wss://mainnet-api.inodra.com/v1"
2898
+ },
2899
+ testnet: {
2900
+ rest: "https://testnet-api.inodra.com/v1",
2901
+ graphql: "https://testnet-api.inodra.com/v1/graphql",
2902
+ grpc: "testnet-grpc.inodra.com:443",
2903
+ grpcWeb: "https://testnet-grpc.inodra.com",
2904
+ warpWs: "wss://testnet-api.inodra.com/v1"
2905
+ }
2906
+ };
2907
+ function graphqlUrl(network) {
2908
+ return INODRA_ENDPOINTS[network].graphql;
2909
+ }
2910
+
2911
+ // src/core/version.ts
2912
+ var SDK_VERSION = "0.1.0";
2913
+ var SDK_HEADER_NAME = "x-inodra-sdk";
2914
+ var SDK_HEADER_VALUE = `inodra-sdk-ts/${SDK_VERSION}`;
2915
+
2916
+ // src/events/reflection.ts
2917
+ var STRUCT_QUERY = `query($pkg: SuiAddress!, $module: String!, $struct: String!) {
2918
+ package(address: $pkg) {
2919
+ module(name: $module) { struct(name: $struct) { fields { name type { repr } } } }
2920
+ }
2921
+ }`;
2922
+ var EventSchemaReflector = class {
2923
+ url;
2924
+ headers;
2925
+ fetchImpl;
2926
+ /** Struct-definition cache, keyed by `address::module::name`. */
2927
+ structs = /* @__PURE__ */ new Map();
2928
+ /** Resolved shape cache, keyed by the canonical concrete type string. */
2929
+ shapes = /* @__PURE__ */ new Map();
2930
+ schemas = /* @__PURE__ */ new Map();
2931
+ constructor(options = {}) {
2932
+ this.url = options.url ?? graphqlUrl(options.network ?? "mainnet");
2933
+ this.fetchImpl = options.fetch ?? globalThis.fetch;
2934
+ const headers = {
2935
+ "content-type": "application/json",
2936
+ [SDK_HEADER_NAME]: SDK_HEADER_VALUE
2937
+ };
2938
+ if (options.auth !== void 0 || options.apiKey) {
2939
+ const credentials = authFromOptions(
2940
+ options,
2941
+ "EventSchemaReflector"
2942
+ ).staticCredentials();
2943
+ if (!credentials) {
2944
+ throw new Error(
2945
+ "EventSchemaReflector does not support dynamic credential providers"
2946
+ );
2947
+ }
2948
+ Object.assign(headers, credentials.headers);
2949
+ }
2950
+ this.headers = headers;
2951
+ }
2952
+ /**
2953
+ * Resolved schema shape for a concrete Move type (cached). Useful for
2954
+ * codegen and introspection; most callers want {@link schemaFor}.
2955
+ */
2956
+ shapeFor(type) {
2957
+ const node = parseMoveType(type);
2958
+ const key = formatMoveType(node);
2959
+ let pending = this.shapes.get(key);
2960
+ if (!pending) {
2961
+ pending = resolveShape(node, (struct) => this.structFields(struct));
2962
+ this.shapes.set(key, pending);
2963
+ pending.catch(() => this.shapes.delete(key));
2964
+ }
2965
+ return pending;
2966
+ }
2967
+ /**
2968
+ * Build (and cache) a loose, normalizing zod schema for any concrete Move
2969
+ * event type. Same encoding rules as the generated catalog schemas.
2970
+ */
2971
+ schemaFor(type) {
2972
+ const key = formatMoveType(parseMoveType(type));
2973
+ let pending = this.schemas.get(key);
2974
+ if (!pending) {
2975
+ pending = this.shapeFor(type).then((shape) => {
2976
+ if (shape.kind !== "object") {
2977
+ throw new Error(
2978
+ `${type} did not resolve to a struct \u2014 is it a Move event type on this network?`
2979
+ );
2980
+ }
2981
+ return shapeToZod(shape);
2982
+ });
2983
+ this.schemas.set(key, pending);
2984
+ pending.catch(() => this.schemas.delete(key));
2985
+ }
2986
+ return pending;
2987
+ }
2988
+ /**
2989
+ * Validate + normalize an event payload against the reflected schema.
2990
+ * Accepts a Warp stream message, a bare `{type, data}` event payload, or
2991
+ * a webhook body. Returns undefined when the message carries a different
2992
+ * event type; throws when the payload doesn't fit the reflected schema.
2993
+ *
2994
+ * Matching: exact when `type` is fully instantiated; base-type when
2995
+ * `type` has no generics (all instantiations match).
2996
+ */
2997
+ async parseEvent(message, type) {
2998
+ const payload = extractEventPayload(message);
2999
+ if (!payload) {
3000
+ return void 0;
3001
+ }
3002
+ const canonical = (t) => formatMoveType(parseMoveType(t));
3003
+ const requested = canonical(type);
3004
+ const matches2 = type.includes("<") ? canonical(payload.type) === requested : canonical(baseEventType(payload.type)) === requested;
3005
+ if (!matches2) {
3006
+ return void 0;
3007
+ }
3008
+ const schema = await this.schemaFor(
3009
+ type.includes("<") ? type : payload.type
3010
+ );
3011
+ return schema.parse(payload.data);
3012
+ }
3013
+ structFields(struct) {
3014
+ const key = `${struct.address}::${struct.module}::${struct.name}`;
3015
+ let pending = this.structs.get(key);
3016
+ if (!pending) {
3017
+ pending = this.fetchStruct(struct);
3018
+ this.structs.set(key, pending);
3019
+ pending.catch(() => this.structs.delete(key));
3020
+ }
3021
+ return pending;
3022
+ }
3023
+ async fetchStruct(struct) {
3024
+ let lastError;
3025
+ for (let attempt = 0; attempt < 3; attempt++) {
3026
+ try {
3027
+ const response = await this.fetchImpl(this.url, {
3028
+ method: "POST",
3029
+ headers: this.headers,
3030
+ body: JSON.stringify({
3031
+ query: STRUCT_QUERY,
3032
+ variables: {
3033
+ pkg: struct.address,
3034
+ module: struct.module,
3035
+ struct: struct.name
3036
+ }
3037
+ })
3038
+ });
3039
+ if (!response.ok) {
3040
+ throw new Error(`GraphQL reflection failed: HTTP ${response.status}`);
3041
+ }
3042
+ const body = await response.json();
3043
+ if (body.errors) {
3044
+ throw new Error(
3045
+ `GraphQL reflection errors: ${JSON.stringify(body.errors)}`
3046
+ );
3047
+ }
3048
+ const fields = body.data?.package?.module?.struct?.fields;
3049
+ if (!fields) {
3050
+ return void 0;
3051
+ }
3052
+ return fields.map((field) => ({
3053
+ name: field.name,
3054
+ type: parseMoveType(field.type.repr)
3055
+ }));
3056
+ } catch (error) {
3057
+ lastError = error;
3058
+ await new Promise((r) => setTimeout(r, 300 * 2 ** attempt));
3059
+ }
3060
+ }
3061
+ throw lastError;
3062
+ }
3063
+ };
3064
+ function extractEventPayload(input, depth = 0) {
3065
+ if (depth > 3 || typeof input !== "object" || input === null) {
3066
+ return void 0;
3067
+ }
3068
+ const record = input;
3069
+ if (typeof record.type === "string" && record.type.includes("::") && "data" in record) {
3070
+ return { type: record.type, data: record.data };
3071
+ }
3072
+ return extractEventPayload(record.payload, depth + 1) ?? extractEventPayload(record.data, depth + 1);
3073
+ }
3074
+
3075
+ // src/events/index.ts
3076
+ function resolveCatalogEvent(rawEventType, options = {}) {
3077
+ for (const event of Object.values(catalogEvents)) {
3078
+ for (const deployment of event.deployments) {
3079
+ if (options.network && deployment.network !== options.network) {
3080
+ continue;
3081
+ }
3082
+ if (eventTypeMatches(rawEventType, deployment, event.generic)) {
3083
+ return event;
3084
+ }
3085
+ }
3086
+ }
3087
+ return void 0;
3088
+ }
3089
+ function extractEventPayload2(input, depth = 0) {
3090
+ if (depth > 3 || typeof input !== "object" || input === null) {
3091
+ return void 0;
3092
+ }
3093
+ const record = input;
3094
+ if (typeof record.type === "string" && record.type.includes("::") && "data" in record) {
3095
+ return { type: record.type, data: record.data };
3096
+ }
3097
+ return extractEventPayload2(record.payload, depth + 1) ?? extractEventPayload2(record.data, depth + 1);
3098
+ }
3099
+ function matches(rawEventType, id, options) {
3100
+ const event = catalogEvents[id];
3101
+ return event.deployments.some(
3102
+ (deployment) => (!options.network || deployment.network === options.network) && eventTypeMatches(rawEventType, deployment, event.generic)
3103
+ );
3104
+ }
3105
+ function matchCatalogEvent(message, id, options = {}) {
3106
+ const payload = extractEventPayload2(message);
3107
+ if (!payload || !matches(payload.type, id, options)) {
3108
+ return void 0;
3109
+ }
3110
+ return payload.data;
3111
+ }
3112
+ function parseCatalogEvent(message, id, options = {}) {
3113
+ const payload = extractEventPayload2(message);
3114
+ if (!payload || !matches(payload.type, id, options)) {
3115
+ return void 0;
3116
+ }
3117
+ return catalogEvents[id].schema.parse(
3118
+ payload.data
3119
+ );
3120
+ }
3121
+ // Annotate the CommonJS export names for ESM import in node:
3122
+ 0 && (module.exports = {
3123
+ AftermathDepositSchema,
3124
+ AftermathPerpFundingSchema,
3125
+ AftermathPerpLiquidatedSchema,
3126
+ AftermathSwapSchema,
3127
+ AlphafiLiquidityChangeSchema,
3128
+ AlphafiRewardSchema,
3129
+ BluefinFeeCollectedSchema,
3130
+ BluefinLiquidityProvidedSchema,
3131
+ BluefinLiquidityRemovedSchema,
3132
+ BluefinPoolCreatedSchema,
3133
+ BluefinPositionClosedSchema,
3134
+ BluefinPositionOpenedSchema,
3135
+ BluefinRewardCollectedSchema,
3136
+ BluefinSwapSchema,
3137
+ BucketBorrowSchema,
3138
+ BucketDepositCollateralSchema,
3139
+ BucketPositionUpdatedSchema,
3140
+ BucketRedeemSchema,
3141
+ BucketRepaySchema,
3142
+ BucketSbuckDepositSchema,
3143
+ BucketSbuckRewardsSchema,
3144
+ BucketWithdrawCollateralSchema,
3145
+ CetusAddLiquiditySchema,
3146
+ CetusClosePositionSchema,
3147
+ CetusCollectFeeSchema,
3148
+ CetusCreatePoolSchema,
3149
+ CetusOpenPositionSchema,
3150
+ CetusRemoveLiquiditySchema,
3151
+ CetusSwapSchema,
3152
+ CurrentBorrowSchema,
3153
+ CurrentDepositSchema,
3154
+ CurrentLiquidateSchema,
3155
+ CurrentRepaySchema,
3156
+ CurrentWithdrawSchema,
3157
+ DeepbookBalanceSchema,
3158
+ DeepbookFlashLoanSchema,
3159
+ DeepbookOrderCanceledSchema,
3160
+ DeepbookOrderFilledSchema,
3161
+ DeepbookOrderInfoSchema,
3162
+ DeepbookOrderPlacedSchema,
3163
+ EmberDepositSchema,
3164
+ EmberRateUpdatedSchema,
3165
+ EmberRedeemProcessedSchema,
3166
+ EmberRedeemRequestSchema,
3167
+ EventSchemaReflector,
3168
+ FlowxAmmPairCreatedSchema,
3169
+ FlowxAmmSwapSchema,
3170
+ FlowxClmmPoolCreatedSchema,
3171
+ FlowxClmmSwapSchema,
3172
+ HaedalInstantUnstakedSchema,
3173
+ HaedalStakedSchema,
3174
+ HaedalUnstakedSchema,
3175
+ KaiAddLiquiditySchema,
3176
+ KaiDeleverageSchema,
3177
+ KaiLiquidationSchema,
3178
+ KaiPositionOpenSchema,
3179
+ KaiReduceSchema,
3180
+ KaiSupplySchema,
3181
+ KaiSupplyWithdrawSchema,
3182
+ KriyaAddLiquiditySchema,
3183
+ KriyaSwapSchema,
3184
+ MagmaAddLiquiditySchema,
3185
+ MagmaCollectFeeSchema,
3186
+ MagmaCollectRewardSchema,
3187
+ MagmaCreatePoolSchema,
3188
+ MagmaRemoveLiquiditySchema,
3189
+ MagmaSwapSchema,
3190
+ MoleAddDebtSchema,
3191
+ MoleDepositSchema,
3192
+ MoleHarvestSchema,
3193
+ MoleKillSchema,
3194
+ MoleWithdrawSchema,
3195
+ MoleWorkSchema,
3196
+ MomentumAddLiquiditySchema,
3197
+ MomentumCollectFeeSchema,
3198
+ MomentumCollectRewardSchema,
3199
+ MomentumPoolCreatedSchema,
3200
+ MomentumRemoveLiquiditySchema,
3201
+ MomentumRepayFlashSwapSchema,
3202
+ MomentumSwapSchema,
3203
+ NaviBorrowSchema,
3204
+ NaviDepositSchema,
3205
+ NaviLiquidationSchema,
3206
+ NaviRepaySchema,
3207
+ NaviWithdrawSchema,
3208
+ PythPriceFeedUpdateSchema,
3209
+ ScallopBorrowSchema,
3210
+ ScallopCollateralDepositSchema,
3211
+ ScallopCollateralWithdrawSchema,
3212
+ ScallopLiquidationSchema,
3213
+ ScallopRepaySchema,
3214
+ SpringsuiEpochChangedSchema,
3215
+ SpringsuiStakeSchema,
3216
+ SpringsuiUnstakeSchema,
3217
+ SteammBankDepositSchema,
3218
+ SteammBankWithdrawSchema,
3219
+ SuilendBorrowSchema,
3220
+ SuilendClaimRewardSchema,
3221
+ SuilendDepositSchema,
3222
+ SuilendLiquidateSchema,
3223
+ SuilendRepaySchema,
3224
+ SuilendWithdrawSchema,
3225
+ SupraPriceUpdateSchema,
3226
+ TurbosAddLiquiditySchema,
3227
+ TurbosPoolCreatedSchema,
3228
+ TurbosRemoveLiquiditySchema,
3229
+ TurbosSwapSchema,
3230
+ TypusDovAuctionSchema,
3231
+ TypusDovBidSchema,
3232
+ TypusDovSettleSchema,
3233
+ TypusPerpFundingSchema,
3234
+ TypusPerpLiquidateSchema,
3235
+ TypusPerpLpBurnSchema,
3236
+ TypusPerpLpMintSchema,
3237
+ TypusPerpOrderSchema,
3238
+ VoloStakedSchema,
3239
+ VoloUnstakedSchema,
3240
+ WalrusBlobCertifiedSchema,
3241
+ WalrusBlobDeletedSchema,
3242
+ WalrusBlobRegisteredSchema,
3243
+ _7kConfirmSwapSchema,
3244
+ _7kSwapSchema,
3245
+ baseEventType,
3246
+ catalogEvents,
3247
+ eventTypeMatches,
3248
+ formatMoveType,
3249
+ innerEventType,
3250
+ matchCatalogEvent,
3251
+ moveAddress,
3252
+ moveBalance,
3253
+ moveBool,
3254
+ moveBytes,
3255
+ moveSmallUint,
3256
+ moveString,
3257
+ moveTypeName,
3258
+ moveUint,
3259
+ normalizeAddress,
3260
+ parseCatalogEvent,
3261
+ parseMoveType,
3262
+ resolveCatalogEvent,
3263
+ resolveShape,
3264
+ shapeToExpr,
3265
+ shapeToZod,
3266
+ substituteTypeParams,
3267
+ warpAddressPayloadSchema,
3268
+ warpCoinPayloadSchema,
3269
+ warpEventPayloadSchema,
3270
+ warpObjectPayloadSchema,
3271
+ webhookEventBodySchema
3272
+ });
3273
+ //# sourceMappingURL=events.cjs.map