workspaces/demo-app/src/user-data/actions.js
class UserDataActions {
static connectionEstablished = () => ({
type: 'CONNECTION_ESTABLISHED'
})
static clearConnectionEstablished = () => ({
type: 'CLEAR_CONNECTION_ESTABLISHED'
})
static setAccount = account => ({
type: 'SET_USER_ACCOUNT',
account
})
static setTelepath = ({ channelId, channelKey, appName }) => ({
type: 'SET_TELEPATH',
channelId,
channelKey,
appName
})
static setBalance = balance => ({
type: 'SET_BALANCE',
balance
})
static setIdentityInfo = info => ({
type: 'SET_IDENTITY_INFO',
info
})
}
export { UserDataActions }