Skip to content

Commit

Permalink
refactor: respect naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
alsakhaev committed Dec 27, 2024
1 parent 0a474b6 commit 52cac80
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions libs/backend/src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { Notification } from './services/notification/notification.entity'
import { Resolution } from './services/notification/resolution.entity'
import { BaseLocalRepository } from './services/base/base-local.repository'
import { BaseAggRepository } from './services/base/base-agg.repository'
import { ConnectedAccountService } from './services/connected-accounts/connectedAccountService'
import { ConnectedAccountsService } from './services/connected-accounts/connected-accounts.service'
import { NearNetworks } from './services/connected-accounts/types'

export type EngineConfig = {
Expand All @@ -47,7 +47,7 @@ export class Engine {
parserConfigService: ParserConfigService
notificationService: NotificationService
documentService: DocumentSerivce
connectedAccountsService: ConnectedAccountService
connectedAccountsService: ConnectedAccountsService

constructor(public readonly config: EngineConfig) {
if (!this.config.storage) {
Expand Down Expand Up @@ -141,7 +141,7 @@ export class Engine {
unitOfWorkService,
nearSigner
)
this.connectedAccountsService = new ConnectedAccountService(
this.connectedAccountsService = new ConnectedAccountsService(
nearSigner,
nearConfig.connectedAccountsContractAddress
)
Expand Down
2 changes: 1 addition & 1 deletion libs/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export {
ChainTypes,
TConnectedAccountsVerificationRequestInfo,
} from './services/connected-accounts/types'
export { ConnectedAccountService } from './services/connected-accounts/connectedAccountService'
export { ConnectedAccountsService } from './services/connected-accounts/connected-accounts.service'

// ToDo: replace with DTO
export { ParserConfig } from './services/parser-config/parser-config.entity'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import makeBlockie from 'ethereum-blockies-base64'
import * as nearAPI from 'near-api-js'
// import * as EventBus from '../../common/global-event-bus'
import { getNearConfig } from '../../config'
import {
ChainTypes,
ConnectedAccountsPairStatus,
Expand All @@ -22,7 +21,7 @@ type EthSignature = {
mc: boolean
}

export class ConnectedAccountService {
export class ConnectedAccountsService {
constructor(
// private _globalConfigService: GlobalConfigService,
// private _walletService: WalletService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { createContext } from 'react'
import { ConnectedAccountService, IConnectedAccountsPair } from '@mweb/backend'
import { ConnectedAccountsService, IConnectedAccountsPair } from '@mweb/backend'

export interface ConnectedAccountsContextState
extends Omit<
ConnectedAccountService,
ConnectedAccountsService,
'contractName' | 'networkId' | 'nearSigner' | 'changeStatus' | 'getPairs' | 'getNet'
> {
pairs: IConnectedAccountsPair[] | null
Expand Down

0 comments on commit 52cac80

Please sign in to comment.