UNPKG
ilp-core
Version:
latest (14.0.1)
14.0.1
14.0.0
13.0.0
12.0.2
12.0.1
12.0.0
11.1.0
11.0.0
10.1.0
10.0.0
9.2.0
9.1.3
9.1.2
9.1.1
9.1.0
9.0.1
9.0.0
8.0.1
8.0.0
7.0.3
7.0.2
7.0.1
7.0.0
6.0.1
6.0.0
5.0.1
5.0.0
4.1.0
4.0.0
3.0.0
2.0.0
1.0.0
ILP core module managing ledger abstraction
github.com/interledgerjs/ilp-core
interledgerjs/ilp-core
ilp-core
/
integration-test
/
ilp-kit
/
src
/
redux
/
reducers
/
stats.js
18 lines
(15 loc)
•
314 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
*
as
types
from
'../actionTypes'
const
initialState = {
list
: [] }
export
default
function
reducer
(
state = initialState, action = {}
) {
switch
(action.
type
) {
case
types.
LOAD_STATS_SUCCESS
:
return
{ ...state,
list
: action.
result
}
default
:
return
state } }