@merkl/api 0.10.177 → 0.10.180

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/database/api/.generated/edge.js +6 -6
  2. package/dist/database/api/.generated/index-browser.js +4 -4
  3. package/dist/database/api/.generated/index.d.ts +2 -2
  4. package/dist/database/api/.generated/index.js +6 -6
  5. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/runtime/edge-esm.js +15 -15
  10. package/dist/database/api/.generated/runtime/edge.js +16 -16
  11. package/dist/database/api/.generated/runtime/library.d.ts +23 -34
  12. package/dist/database/api/.generated/runtime/library.js +56 -56
  13. package/dist/database/api/.generated/runtime/react-native.js +23 -23
  14. package/dist/database/api/.generated/runtime/wasm.js +15 -15
  15. package/dist/database/api/.generated/wasm.js +4 -4
  16. package/dist/database/engine/.generated/edge.js +6 -6
  17. package/dist/database/engine/.generated/index-browser.js +4 -4
  18. package/dist/database/engine/.generated/index.d.ts +2 -2
  19. package/dist/database/engine/.generated/index.js +6 -6
  20. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  21. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  22. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  23. package/dist/database/engine/.generated/package.json +1 -1
  24. package/dist/database/engine/.generated/runtime/edge-esm.js +15 -15
  25. package/dist/database/engine/.generated/runtime/edge.js +16 -16
  26. package/dist/database/engine/.generated/runtime/library.d.ts +23 -34
  27. package/dist/database/engine/.generated/runtime/library.js +56 -56
  28. package/dist/database/engine/.generated/runtime/react-native.js +23 -23
  29. package/dist/database/engine/.generated/runtime/wasm.js +15 -15
  30. package/dist/database/engine/.generated/wasm.js +4 -4
  31. package/dist/src/eden/index.d.ts +336 -51
  32. package/dist/src/index.d.ts +136 -17
  33. package/dist/src/index.js +1 -1
  34. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
  35. package/dist/src/modules/v4/bucket/bucket.service.d.ts +5 -0
  36. package/dist/src/modules/v4/bucket/bucket.service.js +11 -0
  37. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +11 -13
  38. package/dist/src/modules/v4/campaign/campaign.controller.js +3 -3
  39. package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
  40. package/dist/src/modules/v4/chain/chain.controller.d.ts +24 -0
  41. package/dist/src/modules/v4/chain/chain.controller.js +8 -2
  42. package/dist/src/modules/v4/chain/chain.model.d.ts +4 -0
  43. package/dist/src/modules/v4/chain/chain.model.js +4 -0
  44. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -1
  45. package/dist/src/modules/v4/chain/chain.repository.js +3 -0
  46. package/dist/src/modules/v4/chain/chain.service.d.ts +6 -1
  47. package/dist/src/modules/v4/chain/chain.service.js +7 -0
  48. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  49. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
  50. package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.d.ts +1 -1
  51. package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.d.ts +1 -1
  52. package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.d.ts +1 -1
  53. package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.d.ts +1 -1
  54. package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.js +2 -2
  55. package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.d.ts +1 -1
  56. package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.d.ts +1 -1
  57. package/dist/src/modules/v4/liquidity/index.d.ts +2 -0
  58. package/dist/src/modules/v4/liquidity/index.js +2 -0
  59. package/dist/src/modules/v4/{position/position.controller.d.ts → liquidity/liquidity.controller.d.ts} +3 -3
  60. package/dist/src/modules/v4/{position/position.controller.js → liquidity/liquidity.controller.js} +4 -4
  61. package/dist/src/modules/v4/{position/position.repository.d.ts → liquidity/liquidity.repository.d.ts} +1 -1
  62. package/dist/src/modules/v4/{position/position.repository.js → liquidity/liquidity.repository.js} +1 -1
  63. package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +5 -0
  64. package/dist/src/modules/v4/{position/position.service.js → liquidity/liquidity.service.js} +2 -2
  65. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +34 -0
  66. package/dist/src/modules/v4/opportunity/opportunity.controller.js +11 -2
  67. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +8 -0
  68. package/dist/src/modules/v4/opportunity/opportunity.model.js +5 -0
  69. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +29 -1
  70. package/dist/src/modules/v4/opportunity/opportunity.repository.js +6 -0
  71. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -1
  72. package/dist/src/modules/v4/opportunity/opportunity.service.js +7 -6
  73. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +30 -1
  74. package/dist/src/modules/v4/protocol/protocol.controller.js +9 -2
  75. package/dist/src/modules/v4/protocol/protocol.model.d.ts +10 -1
  76. package/dist/src/modules/v4/protocol/protocol.model.js +9 -0
  77. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +9 -1
  78. package/dist/src/modules/v4/protocol/protocol.repository.js +4 -1
  79. package/dist/src/modules/v4/protocol/protocol.service.d.ts +11 -3
  80. package/dist/src/modules/v4/protocol/protocol.service.js +38 -32
  81. package/dist/src/modules/v4/reward/subservices/converter.js +2 -2
  82. package/dist/src/modules/v4/router.d.ts +136 -17
  83. package/dist/src/modules/v4/router.js +2 -2
  84. package/dist/src/modules/v4/token/token.controller.d.ts +34 -0
  85. package/dist/src/modules/v4/token/token.controller.js +11 -3
  86. package/dist/src/modules/v4/token/token.model.d.ts +9 -0
  87. package/dist/src/modules/v4/token/token.model.js +7 -0
  88. package/dist/src/modules/v4/token/token.repository.d.ts +14 -1
  89. package/dist/src/modules/v4/token/token.repository.js +3 -0
  90. package/dist/src/modules/v4/token/token.service.d.ts +14 -1
  91. package/dist/src/modules/v4/token/token.service.js +7 -0
  92. package/dist/src/routes/v3/blacklist.d.ts +136 -17
  93. package/dist/src/routes/v3/campaigns.d.ts +136 -17
  94. package/dist/src/routes/v3/campaignsInfo.d.ts +136 -17
  95. package/dist/src/routes/v3/multiChainPositions.d.ts +136 -17
  96. package/dist/src/routes/v3/opportunity.d.ts +136 -17
  97. package/dist/src/routes/v3/positions.d.ts +136 -17
  98. package/dist/src/routes/v3/rewards.d.ts +136 -17
  99. package/dist/src/routes/v3/updates.d.ts +136 -17
  100. package/dist/src/routes/v3/userRewards.d.ts +136 -17
  101. package/dist/src/utils/logger.d.ts +12 -6
  102. package/dist/tsconfig.package.tsbuildinfo +1 -1
  103. package/package.json +24 -24
  104. package/dist/src/modules/v4/position/index.d.ts +0 -2
  105. package/dist/src/modules/v4/position/index.js +0 -2
  106. package/dist/src/modules/v4/position/position.service.d.ts +0 -5
  107. /package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.js +0 -0
  108. /package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.js +0 -0
  109. /package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.js +0 -0
  110. /package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.js +0 -0
  111. /package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.js +0 -0
  112. /package/dist/src/modules/v4/{position/position.model.d.ts → liquidity/liquidity.model.d.ts} +0 -0
  113. /package/dist/src/modules/v4/{position/position.model.js → liquidity/liquidity.model.js} +0 -0
@@ -1165,25 +1165,17 @@ declare type EngineEventType = QueryEventType | LogEventType;
1165
1165
  declare type EngineProtocol = 'graphql' | 'json';
1166
1166
 
1167
1167
  declare type EngineSpan = {
1168
- span: boolean;
1168
+ id: EngineSpanId;
1169
+ parentId: string | null;
1169
1170
  name: string;
1170
- trace_id: string;
1171
- span_id: string;
1172
- parent_span_id: string;
1173
- start_time: [number, number];
1174
- end_time: [number, number];
1175
- attributes?: Record<string, string>;
1176
- links?: {
1177
- trace_id: string;
1178
- span_id: string;
1179
- }[];
1171
+ startTime: HrTime;
1172
+ endTime: HrTime;
1180
1173
  kind: EngineSpanKind;
1174
+ attributes?: Record<string, unknown>;
1175
+ links?: EngineSpanId[];
1181
1176
  };
1182
1177
 
1183
- declare type EngineSpanEvent = {
1184
- span: boolean;
1185
- spans: EngineSpan[];
1186
- };
1178
+ declare type EngineSpanId = string;
1187
1179
 
1188
1180
  declare type EngineSpanKind = 'client' | 'internal';
1189
1181
 
@@ -1752,6 +1744,8 @@ declare type HandleErrorParams = {
1752
1744
  globalOmit?: GlobalOmitOptions;
1753
1745
  };
1754
1746
 
1747
+ declare type HrTime = [number, number];
1748
+
1755
1749
  /**
1756
1750
  * Defines High-Resolution Time.
1757
1751
  *
@@ -1764,7 +1758,7 @@ declare type HandleErrorParams = {
1764
1758
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
1765
1759
  * This is represented in HrTime format as [1609504210, 150000000].
1766
1760
  */
1767
- declare type HrTime = [number, number];
1761
+ declare type HrTime_2 = [number, number];
1768
1762
 
1769
1763
  /**
1770
1764
  * Matches a JSON array.
@@ -2537,8 +2531,8 @@ declare type QueryEngineConfig = {
2537
2531
  datasourceOverrides: Record<string, string>;
2538
2532
  env: Record<string, string | undefined>;
2539
2533
  logLevel: QueryEngineLogLevel;
2540
- telemetry?: QueryEngineTelemetry;
2541
2534
  engineProtocol: EngineProtocol;
2535
+ enableTracing: boolean;
2542
2536
  };
2543
2537
 
2544
2538
  declare interface QueryEngineConstructor {
@@ -2546,20 +2540,20 @@ declare interface QueryEngineConstructor {
2546
2540
  }
2547
2541
 
2548
2542
  declare type QueryEngineInstance = {
2549
- connect(headers: string): Promise<void>;
2550
- disconnect(headers: string): Promise<void>;
2543
+ connect(headers: string, requestId: string): Promise<void>;
2544
+ disconnect(headers: string, requestId: string): Promise<void>;
2551
2545
  /**
2552
2546
  * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2553
2547
  * @param headersStr JSON.stringified `QueryEngineRequestHeaders`
2554
2548
  */
2555
- query(requestStr: string, headersStr: string, transactionId?: string): Promise<string>;
2556
- sdlSchema(): Promise<string>;
2557
- dmmf(traceparent: string): Promise<string>;
2558
- startTransaction(options: string, traceHeaders: string): Promise<string>;
2559
- commitTransaction(id: string, traceHeaders: string): Promise<string>;
2560
- rollbackTransaction(id: string, traceHeaders: string): Promise<string>;
2561
- metrics(options: string): Promise<string>;
2562
- applyPendingMigrations(): Promise<void>;
2549
+ query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise<string>;
2550
+ sdlSchema?(): Promise<string>;
2551
+ startTransaction(options: string, traceHeaders: string, requestId: string): Promise<string>;
2552
+ commitTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2553
+ rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2554
+ metrics?(options: string): Promise<string>;
2555
+ applyPendingMigrations?(): Promise<void>;
2556
+ trace(requestId: string): Promise<string | null>;
2563
2557
  };
2564
2558
 
2565
2559
  declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
@@ -2573,11 +2567,6 @@ declare type QueryEngineResultData<T> = {
2573
2567
  data: T;
2574
2568
  };
2575
2569
 
2576
- declare type QueryEngineTelemetry = {
2577
- enabled: Boolean;
2578
- endpoint: string;
2579
- };
2580
-
2581
2570
  declare type QueryEvent = {
2582
2571
  timestamp: Date;
2583
2572
  query: string;
@@ -3161,7 +3150,7 @@ export declare function sqltag(strings: readonly string[], ...values: readonly R
3161
3150
  *
3162
3151
  * hrtime, epoch milliseconds, performance.now() or Date
3163
3152
  */
3164
- declare type TimeInput = HrTime | number | Date;
3153
+ declare type TimeInput = HrTime_2 | number | Date;
3165
3154
 
3166
3155
  export declare type ToTuple<T> = T extends any[] ? T : [T];
3167
3156
 
@@ -3206,7 +3195,7 @@ declare interface TraceState {
3206
3195
  declare interface TracingHelper {
3207
3196
  isEnabled(): boolean;
3208
3197
  getTraceParent(context?: Context): string;
3209
- createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
3198
+ dispatchEngineSpans(spans: EngineSpan[]): void;
3210
3199
  getActiveContext(): Context | undefined;
3211
3200
  runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
3212
3201
  }