be-components 1.6.0 → 1.6.1
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/lib/commonjs/CompetitionManager/components/AthleteSelector.js +50 -1
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +90 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/MarketComponents/api/index.js +213 -0
- package/lib/commonjs/MarketComponents/api/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +179 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +205 -0
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +179 -0
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +58 -0
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js +48 -0
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +479 -0
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -0
- package/lib/commonjs/MarketComponents/index.js +12 -0
- package/lib/commonjs/MarketComponents/index.js.map +1 -0
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/CompetitionManager/components/AthleteSelector.js +50 -1
- package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/module/Components/Icons.js +90 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/MarketComponents/api/index.js +207 -0
- package/lib/module/MarketComponents/api/index.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +172 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -0
- package/lib/module/MarketComponents/components/EventMarket/index.js +198 -0
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -0
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +172 -0
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -0
- package/lib/module/MarketComponents/components/MarketButton/index.js +51 -0
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -0
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js +42 -0
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -0
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +470 -0
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -0
- package/lib/module/MarketComponents/index.js +5 -0
- package/lib/module/MarketComponents/index.js.map +1 -0
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +3 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/api/index.d.ts +22 -0
- package/lib/typescript/src/MarketComponents/api/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +25 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +21 -0
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +15 -0
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts +12 -0
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/api/index.d.ts +10 -0
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/api/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +25 -0
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/index.d.ts +25 -0
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/CompetitionManager/components/AthleteSelector.tsx +36 -0
- package/src/Components/Icons.tsx +50 -0
- package/src/MarketComponents/api/index.ts +143 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +109 -0
- package/src/MarketComponents/components/EventMarket/index.tsx +115 -0
- package/src/MarketComponents/components/MarketButton/api/index.ts +152 -0
- package/src/MarketComponents/components/MarketButton/index.tsx +37 -0
- package/src/MarketComponents/components/TeamEventMarket/api/index.ts +35 -0
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +295 -0
- package/src/MarketComponents/index.tsx +5 -0
- package/src/index.tsx +2 -0
- package/src/types.d.ts +78 -2
- package/lib/commonjs/Markets/api/index.js +0 -28
- package/lib/commonjs/Markets/api/index.js.map +0 -1
- package/lib/commonjs/Markets/components/MarketButton.js +0 -25
- package/lib/commonjs/Markets/components/MarketButton.js.map +0 -1
- package/lib/module/Markets/api/index.js +0 -23
- package/lib/module/Markets/api/index.js.map +0 -1
- package/lib/module/Markets/components/MarketButton.js +0 -18
- package/lib/module/Markets/components/MarketButton.js.map +0 -1
- package/lib/typescript/src/Markets/api/index.d.ts +0 -7
- package/lib/typescript/src/Markets/api/index.d.ts.map +0 -1
- package/lib/typescript/src/Markets/components/MarketButton.d.ts +0 -11
- package/lib/typescript/src/Markets/components/MarketButton.d.ts.map +0 -1
- package/src/Markets/api/index.ts +0 -18
- package/src/Markets/components/MarketButton.tsx +0 -24
package/src/types.d.ts
CHANGED
|
@@ -1007,9 +1007,11 @@ export interface TradeProps {
|
|
|
1007
1007
|
event_type: 'tournament'|'team'|'match'
|
|
1008
1008
|
var_1: number;
|
|
1009
1009
|
side:string;
|
|
1010
|
+
limit_override?:boolean,
|
|
1011
|
+
draft_liquidity?:number,
|
|
1010
1012
|
side_id:string;
|
|
1011
1013
|
reversed_side_id:string;
|
|
1012
|
-
side_type:'athlete'|'team'|'side';
|
|
1014
|
+
side_type:'athlete'|'team'|'side'|'exotic';
|
|
1013
1015
|
odds: number;
|
|
1014
1016
|
probability:number;
|
|
1015
1017
|
market_type: 'FOR_MONEY' | 'FREE';
|
|
@@ -1647,4 +1649,78 @@ export interface BestAvailableOrderProps {
|
|
|
1647
1649
|
promoted?:boolean,
|
|
1648
1650
|
odds: number,
|
|
1649
1651
|
probability: number
|
|
1650
|
-
}
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
export interface EventOrderStatProps {
|
|
1655
|
+
event_id: string;
|
|
1656
|
+
event_type:string;
|
|
1657
|
+
market_id: string;
|
|
1658
|
+
side_id:string;
|
|
1659
|
+
side_type:string;
|
|
1660
|
+
open_order_count: number|string;
|
|
1661
|
+
open_order_amount: number;
|
|
1662
|
+
market_type: string;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
export interface OrderProps {
|
|
1667
|
+
order_id:string; //Primary key of the order
|
|
1668
|
+
player_id:string; //Id of the player creating the order
|
|
1669
|
+
order_type: 'market' | 'limit' | 'h2h'; //Order type determines how it will be matched in the marketplace
|
|
1670
|
+
collar_pct: number; //Pct worse price willing to accept on a market order
|
|
1671
|
+
side: string; //Side of the order
|
|
1672
|
+
side_id: string; //Id of the side - this could be either a team or athlete or over / under
|
|
1673
|
+
side_type: 'athlete' | 'team' | 'side';
|
|
1674
|
+
reversed?:boolean,
|
|
1675
|
+
draft_liquidity?:number,
|
|
1676
|
+
be_type: 'market' | 'prop' | 'ind'; //The old be-type of order so we can compare to historical orders
|
|
1677
|
+
buy_sell_ind: 'buy' | 'sell'; //Indicates whether this order is selling a position or attempting to buy one
|
|
1678
|
+
open_amt: number; //Amount still available to be matched
|
|
1679
|
+
called_amt: number; //Amount already fulfilled
|
|
1680
|
+
potential_winnings: number //Potential winnings calculated by open_amt and odds / prob
|
|
1681
|
+
market_id: string; //Id of the market that this order is (i.e., Spread, Total, stat, etc)
|
|
1682
|
+
market?: MarketProps; //Market object of the ID
|
|
1683
|
+
title: string; //Title of the order
|
|
1684
|
+
event_id: string; //Id of the event associated with the order
|
|
1685
|
+
event_type: 'team' | 'tournament'|'match'; //Is the event a team event or individual (i.e., golf tournament / UFC)
|
|
1686
|
+
position_ids: string[]; //Array of positions that were created due to trades
|
|
1687
|
+
expire_datetime: any; //Expiration time of the order
|
|
1688
|
+
create_datetime?: any; //Create time of the order
|
|
1689
|
+
last_update_datetime?: any; //Last update time of te order
|
|
1690
|
+
odds: number; //American odds of the order
|
|
1691
|
+
probability: number; //Implied probability of the order
|
|
1692
|
+
var_1: number; //
|
|
1693
|
+
league_id?:string;
|
|
1694
|
+
promo_balance?:boolean,
|
|
1695
|
+
promoted?:boolean //Should show up on the lead even screen
|
|
1696
|
+
rejections:number;
|
|
1697
|
+
location?: any; //JSON of coordinate (lat and long)
|
|
1698
|
+
region?: string;
|
|
1699
|
+
market_type: 'FREE' | 'FOR_MONEY';
|
|
1700
|
+
available_for_parlays:boolean; //Indicates of the order can be accepted by a person trying a parlay
|
|
1701
|
+
status: 'cancelled' | 'approved' | 'closed'; //Current status of the order
|
|
1702
|
+
cancel_type?: 'expired' | 'manual' | 'closed'; //If the order is cancelled, then how was it cancelled?
|
|
1703
|
+
resolution_status: 'inprogress' | 'closed';
|
|
1704
|
+
live?:boolean; //If the order is created after the start time of the event, then an indicator of live is added
|
|
1705
|
+
h2h?:boolean;
|
|
1706
|
+
h2h_id?:string; //If the order is h2h, then this is the id of the other user
|
|
1707
|
+
h2h_user?:any //Player type
|
|
1708
|
+
parlay_id?:string //id of the parlay
|
|
1709
|
+
event?:any //Event details,
|
|
1710
|
+
selling_position_id?:string,
|
|
1711
|
+
result_viewed?:boolean,
|
|
1712
|
+
commission_pct:number,
|
|
1713
|
+
positions:PositionProps[]
|
|
1714
|
+
pfof?:boolean
|
|
1715
|
+
influencer_id?:string,
|
|
1716
|
+
influencer?:PublicPlayerProps,
|
|
1717
|
+
influence_type?: 'copy' | 'fade',
|
|
1718
|
+
tip_type?: 'win' | 'all',
|
|
1719
|
+
tip_pct?:number,
|
|
1720
|
+
tip_processed?:boolean,
|
|
1721
|
+
legacy_id?: string,
|
|
1722
|
+
grade?: number,
|
|
1723
|
+
last_grade_datetime?:any,
|
|
1724
|
+
no_bet?:boolean,
|
|
1725
|
+
no_bet_reason?:string
|
|
1726
|
+
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MarketHelpers = void 0;
|
|
7
|
-
const MarketHelpers = exports.MarketHelpers = {
|
|
8
|
-
getVar1Label: (market, var_1) => {
|
|
9
|
-
if (market.type != 'Spread') {
|
|
10
|
-
return `${var_1}`;
|
|
11
|
-
}
|
|
12
|
-
if (var_1 < 0) {
|
|
13
|
-
return `${var_1}`;
|
|
14
|
-
}
|
|
15
|
-
return `+${var_1}`;
|
|
16
|
-
},
|
|
17
|
-
getOddsLabel: (odds, decimals) => {
|
|
18
|
-
let new_odds = odds.toFixed();
|
|
19
|
-
if (decimals) {
|
|
20
|
-
new_odds = odds.toFixed(decimals);
|
|
21
|
-
}
|
|
22
|
-
if (odds < 0) {
|
|
23
|
-
return `${new_odds}`;
|
|
24
|
-
}
|
|
25
|
-
return `+${new_odds}`;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["MarketHelpers","exports","getVar1Label","market","var_1","type","getOddsLabel","odds","decimals","new_odds","toFixed"],"sourceRoot":"../../../../src","sources":["Markets/api/index.ts"],"mappings":";;;;;;AAKA,MAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAClBE,YAAY,EAAEA,CAACC,MAAkB,EAAEC,KAAY,KAAK;IAChD,IAAGD,MAAM,CAACE,IAAI,IAAI,QAAQ,EAAC;MAAE,OAAQ,GAAED,KAAM,EAAC;IAAC;IAC/C,IAAGA,KAAK,GAAG,CAAC,EAAC;MAAE,OAAQ,GAAEA,KAAM,EAAC;IAAC;IACjC,OAAQ,IAAGA,KAAM,EAAC;EACtB,CAAC;EACDE,YAAY,EAAEA,CAACC,IAAW,EAAEC,QAAgB,KAAK;IAC7C,IAAIC,QAAQ,GAAGF,IAAI,CAACG,OAAO,CAAC,CAAC;IAC7B,IAAGF,QAAQ,EAAC;MAAEC,QAAQ,GAAGF,IAAI,CAACG,OAAO,CAACF,QAAQ,CAAC;IAAC;IAChD,IAAGD,IAAI,GAAG,CAAC,EAAC;MAAE,OAAQ,GAAEE,QAAS,EAAC;IAAC;IACnC,OAAQ,IAAGA,QAAS,EAAC;EACzB;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Text = _interopRequireDefault(require("../../Components/Text"));
|
|
10
|
-
var _api = require("../api");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
const MarketCard = ({
|
|
13
|
-
market,
|
|
14
|
-
trade
|
|
15
|
-
}) => {
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
17
|
-
style: {
|
|
18
|
-
padding: 5
|
|
19
|
-
}
|
|
20
|
-
}, trade && market.var_1_required ? /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
21
|
-
theme: "body"
|
|
22
|
-
}, _api.MarketHelpers.getVar1Label(market, trade.var_1)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
23
|
-
};
|
|
24
|
-
var _default = exports.default = MarketCard;
|
|
25
|
-
//# sourceMappingURL=MarketButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Text","_api","obj","__esModule","default","MarketCard","market","trade","createElement","TouchableOpacity","style","padding","var_1_required","theme","MarketHelpers","getVar1Label","var_1","Fragment","_default","exports"],"sourceRoot":"../../../../src","sources":["Markets/components/MarketButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,IAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAQvC,MAAMG,UAAU,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAwB,CAAC,KAAK;EAExD,oBACIX,MAAA,CAAAQ,OAAA,CAAAI,aAAA,CAACT,YAAA,CAAAU,gBAAgB;IAACC,KAAK,EAAE;MAAEC,OAAO,EAAC;IAAE;EAAE,GAClCJ,KAAK,IAAID,MAAM,CAACM,cAAc,gBAC/BhB,MAAA,CAAAQ,OAAA,CAAAI,aAAA,CAACR,KAAA,CAAAI,OAAI;IAACS,KAAK,EAAC;EAAM,GAAEC,kBAAa,CAACC,YAAY,CAACT,MAAM,EAAEC,KAAK,CAACS,KAAK,CAAQ,CAAC,gBAC1EpB,MAAA,CAAAQ,OAAA,CAAAI,aAAA,CAAAZ,MAAA,CAAAQ,OAAA,CAAAa,QAAA,MAAI,CACS,CAAC;AAE3B,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAf,OAAA,GAEcC,UAAU","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { MarketHelpers };
|
|
2
|
-
const MarketHelpers = {
|
|
3
|
-
getVar1Label: (market, var_1) => {
|
|
4
|
-
if (market.type != 'Spread') {
|
|
5
|
-
return `${var_1}`;
|
|
6
|
-
}
|
|
7
|
-
if (var_1 < 0) {
|
|
8
|
-
return `${var_1}`;
|
|
9
|
-
}
|
|
10
|
-
return `+${var_1}`;
|
|
11
|
-
},
|
|
12
|
-
getOddsLabel: (odds, decimals) => {
|
|
13
|
-
let new_odds = odds.toFixed();
|
|
14
|
-
if (decimals) {
|
|
15
|
-
new_odds = odds.toFixed(decimals);
|
|
16
|
-
}
|
|
17
|
-
if (odds < 0) {
|
|
18
|
-
return `${new_odds}`;
|
|
19
|
-
}
|
|
20
|
-
return `+${new_odds}`;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["MarketHelpers","getVar1Label","market","var_1","type","getOddsLabel","odds","decimals","new_odds","toFixed"],"sourceRoot":"../../../../src","sources":["Markets/api/index.ts"],"mappings":"AAGA,SAASA,aAAa;AAEtB,MAAMA,aAAa,GAAG;EAClBC,YAAY,EAAEA,CAACC,MAAkB,EAAEC,KAAY,KAAK;IAChD,IAAGD,MAAM,CAACE,IAAI,IAAI,QAAQ,EAAC;MAAE,OAAQ,GAAED,KAAM,EAAC;IAAC;IAC/C,IAAGA,KAAK,GAAG,CAAC,EAAC;MAAE,OAAQ,GAAEA,KAAM,EAAC;IAAC;IACjC,OAAQ,IAAGA,KAAM,EAAC;EACtB,CAAC;EACDE,YAAY,EAAEA,CAACC,IAAW,EAAEC,QAAgB,KAAK;IAC7C,IAAIC,QAAQ,GAAGF,IAAI,CAACG,OAAO,CAAC,CAAC;IAC7B,IAAGF,QAAQ,EAAC;MAAEC,QAAQ,GAAGF,IAAI,CAACG,OAAO,CAACF,QAAQ,CAAC;IAAC;IAChD,IAAGD,IAAI,GAAG,CAAC,EAAC;MAAE,OAAQ,GAAEE,QAAS,EAAC;IAAC;IACnC,OAAQ,IAAGA,QAAS,EAAC;EACzB;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TouchableOpacity } from "react-native";
|
|
3
|
-
import Text from '../../Components/Text';
|
|
4
|
-
import { MarketHelpers } from '../api';
|
|
5
|
-
const MarketCard = ({
|
|
6
|
-
market,
|
|
7
|
-
trade
|
|
8
|
-
}) => {
|
|
9
|
-
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
10
|
-
style: {
|
|
11
|
-
padding: 5
|
|
12
|
-
}
|
|
13
|
-
}, trade && market.var_1_required ? /*#__PURE__*/React.createElement(Text, {
|
|
14
|
-
theme: "body"
|
|
15
|
-
}, MarketHelpers.getVar1Label(market, trade.var_1)) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
16
|
-
};
|
|
17
|
-
export default MarketCard;
|
|
18
|
-
//# sourceMappingURL=MarketButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Text","MarketHelpers","MarketCard","market","trade","createElement","style","padding","var_1_required","theme","getVar1Label","var_1","Fragment"],"sourceRoot":"../../../../src","sources":["Markets/components/MarketButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,OAAOC,IAAI,MAAM,uBAAuB;AAExC,SAASC,aAAa,QAAQ,QAAQ;AAQtC,MAAMC,UAAU,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAwB,CAAC,KAAK;EAExD,oBACIN,KAAA,CAAAO,aAAA,CAACN,gBAAgB;IAACO,KAAK,EAAE;MAAEC,OAAO,EAAC;IAAE;EAAE,GAClCH,KAAK,IAAID,MAAM,CAACK,cAAc,gBAC/BV,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACS,KAAK,EAAC;EAAM,GAAER,aAAa,CAACS,YAAY,CAACP,MAAM,EAAEC,KAAK,CAACO,KAAK,CAAQ,CAAC,gBAC1Eb,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAc,QAAA,MAAI,CACS,CAAC;AAE3B,CAAC;AAED,eAAeV,UAAU","ignoreList":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MarketProps } from "../../types";
|
|
2
|
-
export { MarketHelpers };
|
|
3
|
-
declare const MarketHelpers: {
|
|
4
|
-
getVar1Label: (market: MarketProps, var_1: number) => string;
|
|
5
|
-
getOddsLabel: (odds: number, decimals?: number) => string;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Markets/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAG9C,OAAO,EAAE,aAAa,EAAE,CAAA;AAExB,QAAA,MAAM,aAAa;2BACO,WAAW,SAAQ,MAAM;yBAK3B,MAAM,aAAY,MAAM;CAM/C,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { BestAvailableOrderProps, MarketProps, MarketSideOptionProps, TradeProps } from '../../types';
|
|
3
|
-
type MarketButtonProps = {
|
|
4
|
-
market: MarketProps;
|
|
5
|
-
side_option: MarketSideOptionProps;
|
|
6
|
-
trade?: TradeProps;
|
|
7
|
-
order?: BestAvailableOrderProps;
|
|
8
|
-
};
|
|
9
|
-
declare const MarketCard: ({ market, trade }: MarketButtonProps) => React.JSX.Element;
|
|
10
|
-
export default MarketCard;
|
|
11
|
-
//# sourceMappingURL=MarketButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarketButton.d.ts","sourceRoot":"","sources":["../../../../../src/Markets/components/MarketButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG3G,KAAK,iBAAiB,GAAG;IACrB,MAAM,EAAC,WAAW,CAAC;IACnB,WAAW,EAAC,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAC,UAAU,CAAC;IAClB,KAAK,CAAC,EAAC,uBAAuB,CAAA;CACjC,CAAA;AACD,QAAA,MAAM,UAAU,sBAAsB,iBAAiB,sBAStD,CAAA;AAED,eAAe,UAAU,CAAA"}
|
package/src/Markets/api/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { MarketProps } from "../../types"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { MarketHelpers }
|
|
5
|
-
|
|
6
|
-
const MarketHelpers = {
|
|
7
|
-
getVar1Label: (market:MarketProps, var_1:number) => {
|
|
8
|
-
if(market.type != 'Spread'){ return `${var_1}` }
|
|
9
|
-
if(var_1 < 0){ return `${var_1}` }
|
|
10
|
-
return `+${var_1}`
|
|
11
|
-
},
|
|
12
|
-
getOddsLabel: (odds:number, decimals?:number) => {
|
|
13
|
-
let new_odds = odds.toFixed()
|
|
14
|
-
if(decimals){ new_odds = odds.toFixed(decimals) }
|
|
15
|
-
if(odds < 0){ return `${new_odds}` }
|
|
16
|
-
return `+${new_odds}`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TouchableOpacity } from "react-native"
|
|
3
|
-
import Text from '../../Components/Text';
|
|
4
|
-
import type { BestAvailableOrderProps, MarketProps, MarketSideOptionProps, TradeProps } from '../../types';
|
|
5
|
-
import { MarketHelpers } from '../api';
|
|
6
|
-
|
|
7
|
-
type MarketButtonProps = {
|
|
8
|
-
market:MarketProps,
|
|
9
|
-
side_option:MarketSideOptionProps,
|
|
10
|
-
trade?:TradeProps,
|
|
11
|
-
order?:BestAvailableOrderProps
|
|
12
|
-
}
|
|
13
|
-
const MarketCard = ({ market, trade }:MarketButtonProps) => {
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<TouchableOpacity style={{ padding:5 }}>
|
|
17
|
-
{trade && market.var_1_required ?
|
|
18
|
-
<Text theme='body'>{MarketHelpers.getVar1Label(market, trade.var_1)}</Text>
|
|
19
|
-
:<></>}
|
|
20
|
-
</TouchableOpacity>
|
|
21
|
-
)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default MarketCard
|