49 | )
50 | }
51 |
--------------------------------------------------------------------------------
/src/features/delegation/index.ts:
--------------------------------------------------------------------------------
1 | import { createReducer } from '@reduxjs/toolkit'
2 | import { DelegationState } from './types'
3 | import { createAction } from '@reduxjs/toolkit'
4 | import { Address, IFingerprinted, IOwnable, OptionalAddress } from '$/types'
5 | import getNewStreamrClient from '$/utils/getNewStreamrClient'
6 |
7 | const initialState: DelegationState = {
8 | privateKey: undefined,
9 | client: undefined,
10 | delegations: {},
11 | }
12 |
13 | export const DelegationAction = {
14 | setPrivateKey: createAction