Skip to content

Commit

Permalink
remove some more refs to underlying token data
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Dec 11, 2024
1 parent 6f0726c commit 28662e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/providers/App/governance/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
FractalProposalState,
VotesData,
VotingStrategy,
UnderlyingTokenData,
GovernanceType,
ERC721TokenData,
} from '../../../types';
Expand All @@ -30,7 +29,6 @@ export enum FractalGovernanceAction {
SET_TOKEN_ACCOUNT_DATA = 'SET_TOKEN_ACCOUNT_DATA',
SET_CLAIMING_CONTRACT = 'SET_CLAIMING_CONTRACT',
RESET_TOKEN_ACCOUNT_DATA = 'RESET_TOKEN_ACCOUNT_DATA',
SET_UNDERLYING_TOKEN_DATA = 'SET_UNDERLYING_TOKEN_DATA',
PENDING_PROPOSAL_ADD = 'PENDING_PROPOSAL_ADD',
}

Expand Down Expand Up @@ -88,10 +86,6 @@ export type FractalGovernanceActions =
type: FractalGovernanceAction.SET_TOKEN_DATA;
payload: ERC20TokenData;
}
| {
type: FractalGovernanceAction.SET_UNDERLYING_TOKEN_DATA;
payload: UnderlyingTokenData;
}
| {
type: FractalGovernanceAction.SET_TOKEN_ACCOUNT_DATA;
payload: VotesData;
Expand Down
4 changes: 0 additions & 4 deletions src/providers/App/governance/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,6 @@ export const governanceReducer = (state: FractalGovernance, action: FractalGover
case FractalGovernanceAction.SET_ERC721_TOKENS_DATA: {
return { ...state, erc721Tokens: action.payload };
}
case FractalGovernanceAction.SET_UNDERLYING_TOKEN_DATA: {
const { votesToken } = state as AzoriusGovernance;
return { ...state, votesToken: { ...votesToken, underlyingTokenData: action.payload } };
}
case FractalGovernanceAction.SET_TOKEN_ACCOUNT_DATA: {
const { votesToken } = state as AzoriusGovernance;
return { ...state, votesToken: { ...votesToken, ...action.payload } };
Expand Down
5 changes: 0 additions & 5 deletions src/types/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export interface VotesData {
delegatee: Address | null;
votingWeight: bigint | null;
}
export type UnderlyingTokenData = Omit<
ERC20TokenData,
'totalSupply' | 'decimals' | 'underlyingTokenData'
>;

export interface BaseTokenData {
name: string;
Expand All @@ -19,7 +15,6 @@ export interface BaseTokenData {
export interface ERC20TokenData extends BaseTokenData {
decimals: number;
totalSupply: bigint;
underlyingTokenData?: UnderlyingTokenData;
}

export interface ERC721TokenData extends BaseTokenData {
Expand Down

0 comments on commit 28662e4

Please sign in to comment.