File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
packages/sample-controllers/src
sample-gas-prices-service Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ export type {
21
21
export { SamplePetnamesController } from './sample-petnames-controller' ;
22
22
export {
23
23
SampleGasPricesService ,
24
- type AbstractGasPricesService ,
24
+ type SampleAbstractGasPricesService ,
25
25
} from './sample-gas-prices-service' ;
Original file line number Diff line number Diff line change 6
6
getDefaultNetworkControllerState ,
7
7
type NetworkControllerGetStateAction ,
8
8
} from './network-controller-types' ;
9
- import type { AbstractGasPricesService } from './sample-gas-prices-service' ;
9
+ import type { SampleAbstractGasPricesService } from './sample-gas-prices-service' ;
10
10
import type {
11
11
ExtractAvailableAction ,
12
12
ExtractAvailableEvent ,
@@ -152,7 +152,7 @@ function getMessenger(
152
152
*
153
153
* @returns The mock SampleGasPricesService object.
154
154
*/
155
- function buildGasPricesService ( ) : AbstractGasPricesService {
155
+ function buildGasPricesService ( ) : SampleAbstractGasPricesService {
156
156
return {
157
157
fetchGasPrices : jest . fn ( ) ,
158
158
} ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { BaseController } from '@metamask/base-controller';
8
8
import type { Hex } from '@metamask/utils' ;
9
9
10
10
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' ;
12
12
13
13
// === GENERAL ===
14
14
@@ -195,7 +195,7 @@ export class SampleGasPricesController extends BaseController<
195
195
/**
196
196
* The service object that is used to obtain gas prices.
197
197
*/
198
- readonly #gasPricesService: AbstractGasPricesService ;
198
+ readonly #gasPricesService: SampleAbstractGasPricesService ;
199
199
200
200
/**
201
201
* Constructs a new {@link SampleGasPricesController}.
@@ -214,7 +214,7 @@ export class SampleGasPricesController extends BaseController<
214
214
} : {
215
215
messenger : SampleGasPricesControllerMessenger ;
216
216
state ?: Partial < SampleGasPricesControllerState > ;
217
- gasPricesService : AbstractGasPricesService ;
217
+ gasPricesService : SampleAbstractGasPricesService ;
218
218
} ) {
219
219
super ( {
220
220
messenger,
Original file line number Diff line number Diff line change 1
- export type * from './abstract-gas-prices-service' ;
1
+ export type * from './sample- abstract-gas-prices-service' ;
2
2
export * from './sample-gas-prices-service' ;
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ import type { SampleGasPricesService } from './sample-gas-prices-service';
5
5
/**
6
6
* A service object which is responsible for fetching gas prices.
7
7
*/
8
- export type AbstractGasPricesService = PublicInterface < SampleGasPricesService > ;
8
+ export type SampleAbstractGasPricesService =
9
+ PublicInterface < SampleGasPricesService > ;
You can’t perform that action at this time.
0 commit comments