@jetthai/cuora 1.0.137 → 1.0.139
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.139](https://github.com/jetthai/cuora-module/compare/v1.0.138...v1.0.139) (2022-06-21)
|
|
6
|
+
|
|
7
|
+
### [1.0.138](https://github.com/jetthai/cuora-module/compare/v1.0.137...v1.0.138) (2022-06-21)
|
|
8
|
+
|
|
5
9
|
### [1.0.137](https://github.com/jetthai/cuora-module/compare/v1.0.136...v1.0.137) (2022-06-20)
|
|
6
10
|
|
|
7
11
|
### [1.0.136](https://github.com/jetthai/cuora-module/compare/v1.0.135...v1.0.136) (2022-06-20)
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export default function (request) {
|
|
|
14
14
|
channels: [],
|
|
15
15
|
cryptos: [],
|
|
16
16
|
networks: [],
|
|
17
|
-
sourceAddress:
|
|
17
|
+
sourceAddress: '',
|
|
18
18
|
|
|
19
19
|
amount: null,
|
|
20
20
|
selectedCrypto: null,
|
|
@@ -53,7 +53,7 @@ export default function (request) {
|
|
|
53
53
|
invoke: {
|
|
54
54
|
src: 'fetchCalculation',
|
|
55
55
|
onDone: {
|
|
56
|
-
target: '
|
|
56
|
+
target: 'calculated',
|
|
57
57
|
actions: 'setCalculation',
|
|
58
58
|
},
|
|
59
59
|
onError: {
|
|
@@ -61,10 +61,11 @@ export default function (request) {
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
calculated: {
|
|
65
65
|
on: {
|
|
66
66
|
SUBMIT: {
|
|
67
67
|
target: 'submitting',
|
|
68
|
+
cond: 'isSubmittable',
|
|
68
69
|
},
|
|
69
70
|
},
|
|
70
71
|
},
|
|
@@ -217,6 +218,10 @@ export default function (request) {
|
|
|
217
218
|
} = context
|
|
218
219
|
return selectedCrypto && selectedNetwork && amount && minimum <= +amount && +amount <= maximum
|
|
219
220
|
},
|
|
221
|
+
isSubmittable: (context, event) => {
|
|
222
|
+
const { selectedCrypto, selectedNetwork, amount, sourceAddress } = context
|
|
223
|
+
return selectedCrypto && selectedNetwork && amount && sourceAddress
|
|
224
|
+
},
|
|
220
225
|
},
|
|
221
226
|
services: {
|
|
222
227
|
fetchPayments: async (context, event) => {
|
|
@@ -231,16 +231,12 @@ export default function (request) {
|
|
|
231
231
|
},
|
|
232
232
|
fetchGames: async (context, event) => {
|
|
233
233
|
const { tagId, tagIndex, keyword, click, clickDefault } = context
|
|
234
|
-
const { traceId, result } = await request.send(
|
|
235
|
-
game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault })
|
|
236
|
-
)
|
|
234
|
+
const { traceId, result } = await request.send(game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault }))
|
|
237
235
|
return { traceId, result }
|
|
238
236
|
},
|
|
239
237
|
sendTrace: async (context, event) => {
|
|
240
238
|
const { traceId, tagId, tagIndex, gameCode, gameCodeIndex, keyword: query, click, clickDefault } = context
|
|
241
|
-
return await request.send(
|
|
242
|
-
game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault })
|
|
243
|
-
)
|
|
239
|
+
return await request.send(game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault }))
|
|
244
240
|
},
|
|
245
241
|
},
|
|
246
242
|
}
|