@azuro-org/toolkit 0.1.1 → 0.1.3
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.
|
@@ -14,13 +14,15 @@ type Props = {
|
|
|
14
14
|
lpAddress: string;
|
|
15
15
|
conditions: {
|
|
16
16
|
[key: string]: any;
|
|
17
|
+
conditionId: string;
|
|
17
18
|
outcomes: {
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
outcomeId: string;
|
|
20
|
-
core: {
|
|
21
|
-
address: string;
|
|
22
|
-
};
|
|
23
21
|
}[];
|
|
22
|
+
core: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
address: string;
|
|
25
|
+
};
|
|
24
26
|
}[];
|
|
25
27
|
dictionaries: Dictionaries;
|
|
26
28
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -4,9 +4,9 @@ import {getMarketKey,getMarketName,assembleSelectionName}from'@azuro-org/diction
|
|
|
4
4
|
var outcomesByMarketKey = {};
|
|
5
5
|
var result = {};
|
|
6
6
|
conditions.forEach(function (_a) {
|
|
7
|
-
var conditionId = _a.conditionId, outcomes = _a.outcomes;
|
|
7
|
+
var conditionId = _a.conditionId, outcomes = _a.outcomes, core = _a.core;
|
|
8
8
|
outcomes.forEach(function (_a) {
|
|
9
|
-
var outcomeId = _a.outcomeId
|
|
9
|
+
var outcomeId = _a.outcomeId;
|
|
10
10
|
var marketKey = getMarketKey(outcomeId, dictionaries);
|
|
11
11
|
var marketName = getMarketName(outcomeId, dictionaries);
|
|
12
12
|
var selectionName = assembleSelectionName(outcomeId, dictionaries);
|
|
@@ -14,13 +14,15 @@ type Props = {
|
|
|
14
14
|
lpAddress: string;
|
|
15
15
|
conditions: {
|
|
16
16
|
[key: string]: any;
|
|
17
|
+
conditionId: string;
|
|
17
18
|
outcomes: {
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
outcomeId: string;
|
|
20
|
-
core: {
|
|
21
|
-
address: string;
|
|
22
|
-
};
|
|
23
21
|
}[];
|
|
22
|
+
core: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
address: string;
|
|
25
|
+
};
|
|
24
26
|
}[];
|
|
25
27
|
dictionaries: Dictionaries;
|
|
26
28
|
};
|
package/lib/index.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
var outcomesByMarketKey = {};
|
|
5
5
|
var result = {};
|
|
6
6
|
conditions.forEach(function (_a) {
|
|
7
|
-
var conditionId = _a.conditionId, outcomes = _a.outcomes;
|
|
7
|
+
var conditionId = _a.conditionId, outcomes = _a.outcomes, core = _a.core;
|
|
8
8
|
outcomes.forEach(function (_a) {
|
|
9
|
-
var outcomeId = _a.outcomeId
|
|
9
|
+
var outcomeId = _a.outcomeId;
|
|
10
10
|
var marketKey = dictionaries.getMarketKey(outcomeId, dictionaries$1);
|
|
11
11
|
var marketName = dictionaries.getMarketName(outcomeId, dictionaries$1);
|
|
12
12
|
var selectionName = dictionaries.assembleSelectionName(outcomeId, dictionaries$1);
|