Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 525 Bytes

README.md

File metadata and controls

41 lines (24 loc) · 525 Bytes

Domain Layer

Keep the Entity and Value Objects

Naming Convention

Value Object

Ends with Value

Example:

  • NearNetworkValue.ts
  • DisplayNameValue.ts

Entity Id (is also a Value Object)

Ends with Id

Example:

  • NearId.ts
  • ContractId.ts

Entity

The name

Example:

  • LiffProfile.ts
  • FaucetInfo.ts

Repository Interface

Start with I and ends with Repo

Should contain the interface for repository only. Implementation is in the infrastructure layer.

Example:

  • ILiffRepo.ts
  • INearRepo.ts