Skip to content

Commit

Permalink
Export AbstractRpcService
Browse files Browse the repository at this point in the history
We need this type available in order to be able to integrate RPC
services into the fetch and Infura middleware packages (so that we can
specify that a middleware function takes an RPC service).
  • Loading branch information
mcmire committed Feb 3, 2025
1 parent 97958dd commit 9b705ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/controller-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ export {
} from './util';
export * from './types';
export * from './siwe';
export { AbstractRpcService } from './rpc-service/abstract-rpc-service';
5 changes: 5 additions & 0 deletions packages/network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Export `AbstractRpcService` type
- This type is useful in places where we need to specify that a function, method, or constructor takes an RPC service.

### Changed

- Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.0` ([#5079](https://github.com/MetaMask/core/pull/5079))
Expand Down
1 change: 1 addition & 0 deletions packages/network-controller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ export type {
} from './types';
export { NetworkClientType } from './types';
export type { NetworkClient } from './create-network-client';
export type { AbstractRpcService } from './rpc-service/abstract-rpc-service';

0 comments on commit 9b705ac

Please sign in to comment.