@levrbet/shared 0.3.53 → 0.3.55
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.
|
@@ -30,10 +30,13 @@ export declare const CreateMarketSchema: z.ZodArray<z.ZodObject<{
|
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
export declare const CancelLevrGameMarketRequestSchema: z.ZodObject<{
|
|
33
|
-
gameId: z.ZodNumber;
|
|
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
42
|
export type CancelLevrGameMarketRequest = z.infer<typeof CancelLevrGameMarketRequestSchema>;
|
|
@@ -6,6 +6,7 @@ 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
|
|
@@ -26,10 +27,10 @@ exports.CreateMarketSchema = zod_1.z
|
|
|
26
27
|
}))
|
|
27
28
|
.min(1);
|
|
28
29
|
exports.CancelLevrGameMarketRequestSchema = zod_1.z.object({
|
|
29
|
-
gameId: zod_1.z.number(),
|
|
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,CAAC;IAC/C,YAAY,EAAE,OAAC,CAAC,IAAI,CAAC,wBAAY,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,4BAA4B;IAC/C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,4BAA4B;IACvD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,wBAAwB;IAC5D,eAAe,EAAE,OAAC,CAAC,IAAI,CAAC,qBAAY,CAAC;CACxC,CAAC,CAAA;AACW,QAAA,kBAAkB,GAAG,OAAC;KAC9B,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;IACL,OAAO,EAAE,O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