mirror of
https://github.com/Qortal/qortal.git
synced 2025-06-19 22:21:22 +00:00
* Moved Asset issue/deissue code from IssueAssetTransaction to Asset business object. * Added more constructors for Asset using IssueAssetTransactionData or assetId. * Moved some constants from transaction transfers to business objects (e.g. IssueAssetTransaction) (They might now make more sense being in Asset) * Changed some transaction isValid() checks to use transaction's timestamp instead of NTP.getTime() * New VotingRepository - as yet unimplemented Really need to rewrite "migrate" and add a ton of unit tests.
24 lines
522 B
Java
24 lines
522 B
Java
package repository;
|
|
|
|
public interface Repository extends AutoCloseable {
|
|
|
|
public AccountRepository getAccountRepository();
|
|
|
|
public AssetRepository getAssetRepository();
|
|
|
|
public BlockRepository getBlockRepository();
|
|
|
|
public TransactionRepository getTransactionRepository();
|
|
|
|
public VotingRepository getVotingRepository();
|
|
|
|
public void saveChanges() throws DataException;
|
|
|
|
public void discardChanges() throws DataException;
|
|
|
|
public void close() throws DataException;
|
|
|
|
public void rebuild() throws DataException;
|
|
|
|
}
|