@levrbet/shared 0.3.53 → 0.3.54
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.
|
@@ -29,14 +29,17 @@ export declare const CreateMarketSchema: z.ZodArray<z.ZodObject<{
|
|
|
29
29
|
primaryProvider: z.ZodEnum<typeof OddsServices>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
|
-
|
|
33
|
-
gameId: z.ZodNumber;
|
|
32
|
+
declare const CancelGameMarketRequestSchema: z.ZodObject<{
|
|
34
33
|
chainId: z.ZodNumber;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
gameId: z.ZodNumber;
|
|
35
|
+
marketType: z.ZodEnum<{
|
|
36
|
+
FullTimeWinner: "FullTimeWinner";
|
|
37
|
+
OverUnder: "OverUnder";
|
|
38
|
+
}>;
|
|
39
|
+
side: z.ZodEnum<typeof Side>;
|
|
37
40
|
}, z.core.$strip>;
|
|
38
41
|
export type CreateMarketRequest = z.infer<typeof CreateMarketSchema>;
|
|
39
|
-
export type CancelLevrGameMarketRequest = z.infer<typeof
|
|
42
|
+
export type CancelLevrGameMarketRequest = z.infer<typeof CancelGameMarketRequestSchema>;
|
|
40
43
|
export declare const ProviderDetailsSchema: z.ZodObject<{
|
|
41
44
|
fixtureId: z.ZodString;
|
|
42
45
|
affiliates: z.ZodArray<z.ZodNumber>;
|
|
@@ -53,3 +56,4 @@ export interface ProviderDetails {
|
|
|
53
56
|
affiliates: number[];
|
|
54
57
|
providerName: string;
|
|
55
58
|
}
|
|
59
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProviderDetailsArraySchema = exports.ProviderDetailsSchema = exports.
|
|
3
|
+
exports.ProviderDetailsArraySchema = exports.ProviderDetailsSchema = exports.CreateMarketSchema = exports.MarketRiskAllocationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const contracts_1 = require("../../../contracts");
|
|
6
6
|
const validators_1 = require("../../../validators");
|
|
7
7
|
const contract_types_1 = require("../../blockchain/contract.types");
|
|
8
8
|
const market_1 = require("../market");
|
|
9
|
+
const __1 = require("../../..");
|
|
9
10
|
exports.MarketRiskAllocationSchema = zod_1.z.object({
|
|
10
11
|
levrMarketId: zod_1.z.enum(contracts_1.LevrMarketId),
|
|
11
12
|
asset: zod_1.z.string(), // Address is a string alias
|
|
@@ -25,11 +26,11 @@ exports.CreateMarketSchema = zod_1.z
|
|
|
25
26
|
marketRiskAllocations: zod_1.z.array(exports.MarketRiskAllocationSchema).min(1),
|
|
26
27
|
}))
|
|
27
28
|
.min(1);
|
|
28
|
-
|
|
29
|
-
gameId: zod_1.z.number(),
|
|
29
|
+
const CancelGameMarketRequestSchema = zod_1.z.object({
|
|
30
30
|
chainId: zod_1.z.number(),
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
gameId: zod_1.z.number(),
|
|
32
|
+
marketType: zod_1.z.enum(__1.MarketType),
|
|
33
|
+
side: zod_1.z.enum(contract_types_1.Side),
|
|
33
34
|
});
|
|
34
35
|
exports.ProviderDetailsSchema = zod_1.z.object({
|
|
35
36
|
fixtureId: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.request.types.js","sourceRoot":"","sources":["../../../../../src/core/types/oracle/requests/market.request.types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,kDAAiD;AACjD,oDAAoD;AACpD,oEAAsD;AACtD,sCAAwC;
|
|
1
|
+
{"version":3,"file":"market.request.types.js","sourceRoot":"","sources":["../../../../../src/core/types/oracle/requests/market.request.types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,kDAAiD;AACjD,oDAAoD;AACpD,oEAAsD;AACtD,sCAAwC;AACxC,gCAAqC;AAExB,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,C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