Open igorline opened 6 years ago
icon generator https://github.com/ethereum/blockies
vote's structure/store needed to complete the ticket
Ok! Here it comes :)
export const defaultState = {
attendees: {
default: {
address: '',
},
},
movies: {
'23155': {
id: '23155'
votes: ['17690', '8999', '11007']
},
...
},
votes: {
'17690': {
status: 'yes',
amount: 50,
attendee: 'default',
},
'8999': {
status: 'no',
amount: 10,
attendee: 'default',
},
...
}
attendeesIDs: ['default'],
};
Let's call it event reducer, that's the data we get from SC