-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Staketab/dev
refactor some entities and solve some problems
- Loading branch information
Showing
11 changed files
with
74 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/staketab/minanames/entity/dto/DomainDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.staketab.minanames.entity.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@Builder | ||
public class DomainDTO { | ||
|
||
private String id; | ||
private String ownerAddress; | ||
private String transaction; | ||
private String domainImg; | ||
private BigDecimal amount; | ||
private Long reservationTimestamp; | ||
private Integer expirationTime; | ||
private Long startTimestamp; | ||
private DomainStatus domainStatus; | ||
private Boolean isSendToCloudWorker; | ||
private Boolean isDefault; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/com/staketab/minanames/scheduler/CheckerReservedTransactionScheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/staketab/minanames/scheduler/DomainScheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...es/service/abstraction/DomainService.java → ...etab/minanames/service/DomainService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...anames/service/abstraction/TxService.java → ...staketab/minanames/service/TxService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package com.staketab.minanames.utils; | ||
|
||
import lombok.experimental.UtilityClass; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@UtilityClass | ||
public class Constants { | ||
//common | ||
public static final String MINA_ID = "mina"; | ||
public static final String API_KEY_HEADER = "x-api-key"; | ||
|
||
public static final Long MINA_DENOMINATION = 1_000_000_000L; | ||
public static final BigDecimal DEFAULT_DENOMINATION = BigDecimal.valueOf(1_000_000_000L); | ||
} |