File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
asNumber ,
8
8
asObject ,
9
9
asString ,
10
+ asUnknown ,
10
11
asValue
11
12
} from 'cleaners'
12
13
@@ -55,8 +56,8 @@ const asResponse = asObject({
55
56
success : asBoolean ,
56
57
// message: asString,
57
58
data : asObject ( {
58
- onRamps : asArray ( asOnRampTx ) ,
59
- offRamps : asArray ( asOffRampTx )
59
+ onRamps : asArray ( asUnknown ) ,
60
+ offRamps : asArray ( asUnknown )
60
61
} )
61
62
} )
62
63
@@ -148,7 +149,7 @@ export function processKadoTx(rawTx: unknown): StandardTx {
148
149
timestamp,
149
150
isoDate,
150
151
usdValue : tx . paidAmountUsd ,
151
- rawTx : tx
152
+ rawTx
152
153
}
153
154
} else {
154
155
return {
@@ -169,7 +170,7 @@ export function processKadoTx(rawTx: unknown): StandardTx {
169
170
timestamp,
170
171
isoDate,
171
172
usdValue : tx . receiveUsd ,
172
- rawTx : tx
173
+ rawTx
173
174
}
174
175
}
175
176
}
Original file line number Diff line number Diff line change 5
5
asObject ,
6
6
asOptional ,
7
7
asString ,
8
+ asUnknown ,
8
9
asValue
9
10
} from 'cleaners'
10
11
@@ -66,7 +67,7 @@ const asTransfer = asObject({
66
67
67
68
// Define the cleaner for the whole JSON
68
69
const asTransfersResult = asObject ( {
69
- transfers : asArray ( asTransfer )
70
+ transfers : asArray ( asUnknown )
70
71
} )
71
72
72
73
type PartnerStatuses = ReturnType < typeof asStatuses >
You can’t perform that action at this time.
0 commit comments