Skip to content

Commit 83e3e4c

Browse files
committed
rename AbstractGasPricesService => SampleAbstractGasPricesService
1 parent d4e1d43 commit 83e3e4c

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

packages/sample-controllers/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ export type {
2121
export { SamplePetnamesController } from './sample-petnames-controller';
2222
export {
2323
SampleGasPricesService,
24-
type AbstractGasPricesService,
24+
type SampleAbstractGasPricesService,
2525
} from './sample-gas-prices-service';

packages/sample-controllers/src/sample-gas-prices-controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
getDefaultNetworkControllerState,
77
type NetworkControllerGetStateAction,
88
} from './network-controller-types';
9-
import type { AbstractGasPricesService } from './sample-gas-prices-service';
9+
import type { SampleAbstractGasPricesService } from './sample-gas-prices-service';
1010
import type {
1111
ExtractAvailableAction,
1212
ExtractAvailableEvent,
@@ -152,7 +152,7 @@ function getMessenger(
152152
*
153153
* @returns The mock SampleGasPricesService object.
154154
*/
155-
function buildGasPricesService(): AbstractGasPricesService {
155+
function buildGasPricesService(): SampleAbstractGasPricesService {
156156
return {
157157
fetchGasPrices: jest.fn(),
158158
};

packages/sample-controllers/src/sample-gas-prices-controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { BaseController } from '@metamask/base-controller';
88
import type { Hex } from '@metamask/utils';
99

1010
import type { NetworkControllerGetStateAction } from './network-controller-types';
11-
import type { AbstractGasPricesService } from './sample-gas-prices-service';
11+
import type { SampleAbstractGasPricesService } from './sample-gas-prices-service';
1212

1313
// === GENERAL ===
1414

@@ -195,7 +195,7 @@ export class SampleGasPricesController extends BaseController<
195195
/**
196196
* The service object that is used to obtain gas prices.
197197
*/
198-
readonly #gasPricesService: AbstractGasPricesService;
198+
readonly #gasPricesService: SampleAbstractGasPricesService;
199199

200200
/**
201201
* Constructs a new {@link SampleGasPricesController}.
@@ -214,7 +214,7 @@ export class SampleGasPricesController extends BaseController<
214214
}: {
215215
messenger: SampleGasPricesControllerMessenger;
216216
state?: Partial<SampleGasPricesControllerState>;
217-
gasPricesService: AbstractGasPricesService;
217+
gasPricesService: SampleAbstractGasPricesService;
218218
}) {
219219
super({
220220
messenger,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export type * from './abstract-gas-prices-service';
1+
export type * from './sample-abstract-gas-prices-service';
22
export * from './sample-gas-prices-service';

packages/sample-controllers/src/sample-gas-prices-service/abstract-gas-prices-service.ts renamed to packages/sample-controllers/src/sample-gas-prices-service/sample-abstract-gas-prices-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ import type { SampleGasPricesService } from './sample-gas-prices-service';
55
/**
66
* A service object which is responsible for fetching gas prices.
77
*/
8-
export type AbstractGasPricesService = PublicInterface<SampleGasPricesService>;
8+
export type SampleAbstractGasPricesService =
9+
PublicInterface<SampleGasPricesService>;

0 commit comments

Comments
 (0)