Skip to content

Commit

Permalink
Add TokensControllerGetStateAction, TokensControllerActions types
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jan 24, 2024
1 parent 48551b9 commit dccfe62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/assets-controllers/src/TokensController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type {
BaseConfig,
BaseState,
RestrictedControllerMessenger,
ControllerGetStateAction,
ControllerStateChangeEvent,
} from '@metamask/base-controller';
import { BaseControllerV1 } from '@metamask/base-controller';
import contractsMap from '@metamask/contract-metadata';
Expand Down Expand Up @@ -107,6 +109,13 @@ export type TokensState = BaseState &
*/
const controllerName = 'TokensController';

export type TokensControllerActions = TokensControllerGetStateAction;

export type TokensControllerGetStateAction = ControllerGetStateAction<
typeof controllerName,
TokensState
>;

/**
* The external actions available to the {@link TokensController}.
*/
Expand Down

0 comments on commit dccfe62

Please sign in to comment.