@merkl/api 0.10.176 → 0.10.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/api/.generated/edge.js +6 -6
- package/dist/database/api/.generated/index-browser.js +4 -4
- package/dist/database/api/.generated/index.d.ts +2 -2
- package/dist/database/api/.generated/index.js +6 -6
- package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/runtime/edge-esm.js +15 -15
- package/dist/database/api/.generated/runtime/edge.js +16 -16
- package/dist/database/api/.generated/runtime/library.d.ts +23 -34
- package/dist/database/api/.generated/runtime/library.js +56 -56
- package/dist/database/api/.generated/runtime/react-native.js +23 -23
- package/dist/database/api/.generated/runtime/wasm.js +15 -15
- package/dist/database/api/.generated/wasm.js +4 -4
- package/dist/database/engine/.generated/edge.js +6 -6
- package/dist/database/engine/.generated/index-browser.js +4 -4
- package/dist/database/engine/.generated/index.d.ts +2 -2
- package/dist/database/engine/.generated/index.js +6 -6
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/runtime/edge-esm.js +15 -15
- package/dist/database/engine/.generated/runtime/edge.js +16 -16
- package/dist/database/engine/.generated/runtime/library.d.ts +23 -34
- package/dist/database/engine/.generated/runtime/library.js +56 -56
- package/dist/database/engine/.generated/runtime/react-native.js +23 -23
- package/dist/database/engine/.generated/runtime/wasm.js +15 -15
- package/dist/database/engine/.generated/wasm.js +4 -4
- package/dist/src/eden/index.d.ts +336 -51
- package/dist/src/index.d.ts +136 -17
- package/dist/src/index.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +5 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +11 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +11 -13
- package/dist/src/modules/v4/campaign/campaign.controller.js +3 -3
- package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
- package/dist/src/modules/v4/chain/chain.controller.d.ts +24 -0
- package/dist/src/modules/v4/chain/chain.controller.js +8 -2
- package/dist/src/modules/v4/chain/chain.model.d.ts +4 -0
- package/dist/src/modules/v4/chain/chain.model.js +4 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -1
- package/dist/src/modules/v4/chain/chain.repository.js +3 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +6 -1
- package/dist/src/modules/v4/chain/chain.service.js +7 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.js +2 -2
- package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/index.d.ts +2 -0
- package/dist/src/modules/v4/liquidity/index.js +2 -0
- package/dist/src/modules/v4/{position/position.controller.d.ts → liquidity/liquidity.controller.d.ts} +3 -3
- package/dist/src/modules/v4/{position/position.controller.js → liquidity/liquidity.controller.js} +4 -4
- package/dist/src/modules/v4/{position/position.repository.d.ts → liquidity/liquidity.repository.d.ts} +1 -1
- package/dist/src/modules/v4/{position/position.repository.js → liquidity/liquidity.repository.js} +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +5 -0
- package/dist/src/modules/v4/{position/position.service.js → liquidity/liquidity.service.js} +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +34 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +11 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +5 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +29 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.js +7 -6
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +30 -1
- package/dist/src/modules/v4/protocol/protocol.controller.js +9 -2
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +10 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +9 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +9 -1
- package/dist/src/modules/v4/protocol/protocol.repository.js +4 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +11 -3
- package/dist/src/modules/v4/protocol/protocol.service.js +38 -32
- package/dist/src/modules/v4/reward/subservices/converter.js +2 -2
- package/dist/src/modules/v4/router.d.ts +136 -17
- package/dist/src/modules/v4/router.js +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +34 -0
- package/dist/src/modules/v4/token/token.controller.js +11 -3
- package/dist/src/modules/v4/token/token.model.d.ts +9 -0
- package/dist/src/modules/v4/token/token.model.js +7 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +14 -1
- package/dist/src/modules/v4/token/token.repository.js +3 -0
- package/dist/src/modules/v4/token/token.service.d.ts +14 -1
- package/dist/src/modules/v4/token/token.service.js +7 -0
- package/dist/src/routes/v3/blacklist.d.ts +136 -17
- package/dist/src/routes/v3/campaigns.d.ts +136 -17
- package/dist/src/routes/v3/campaignsInfo.d.ts +136 -17
- package/dist/src/routes/v3/multiChainPositions.d.ts +136 -17
- package/dist/src/routes/v3/opportunity.d.ts +137 -18
- package/dist/src/routes/v3/opportunity.js +1 -1
- package/dist/src/routes/v3/positions.d.ts +136 -17
- package/dist/src/routes/v3/rewards.d.ts +136 -17
- package/dist/src/routes/v3/updates.d.ts +136 -17
- package/dist/src/routes/v3/userRewards.d.ts +136 -17
- package/dist/src/utils/logger.d.ts +12 -6
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +24 -24
- package/dist/src/modules/v4/position/index.d.ts +0 -2
- package/dist/src/modules/v4/position/index.js +0 -2
- package/dist/src/modules/v4/position/position.service.d.ts +0 -5
- /package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.js +0 -0
- /package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.js +0 -0
- /package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.js +0 -0
- /package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.js +0 -0
- /package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.js +0 -0
- /package/dist/src/modules/v4/{position/position.model.d.ts → liquidity/liquidity.model.d.ts} +0 -0
- /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
|
-
|
|
1168
|
+
id: EngineSpanId;
|
|
1169
|
+
parentId: string | null;
|
|
1169
1170
|
name: string;
|
|
1170
|
-
|
|
1171
|
-
|
|
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
|
|
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
|
|
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
|
|
2556
|
-
sdlSchema(): Promise<string>;
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
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 =
|
|
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
|
-
|
|
3198
|
+
dispatchEngineSpans(spans: EngineSpan[]): void;
|
|
3210
3199
|
getActiveContext(): Context | undefined;
|
|
3211
3200
|
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
3212
3201
|
}
|