Sample State - rexbodoia/CoinCenter GitHub Wiki
{
entities: {
users: {
1: {
id: 1,
email: "[email protected]",
},
2: {
id: 2,
email: "[email protected]",
}
},
coins: {
1: {
id: 1,
name: "Bitcoin",
ticker_symbol: "BTC"
},
2: {
id: 2,
name: "Bitcoin Cash",
ticker_symbol: "BCH"
},
3: {
id: 3,
name: "Ethereum",
ticker_symbol: "ETH"
},
4: {
id: 4,
name: "Litecoin",
ticker_symbol: "LTC"
}
},
transactions: {
1: {
id: 1,
date: ...,
user_id: 2,
coin_id: 3,
amount: 100.00
},
2: {
id: 2,
date: ...,
user_id: 1,
coin_id: 1,
amount: 250.00
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect email/password combination"],
addCard: ["Invalid card credentials"],
},
session: { currentUserId: 3 }
}