mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-25 20:37:52 +00:00
Still converting to repository layout. This commit is just in case my dev computer blows up and also for interim code review. Removed data.block.BlockData as an interface (with data.block.Block as implementation) for now.
38 lines
849 B
Java
38 lines
849 B
Java
package data.transaction;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import qora.account.GenesisAccount;
|
|
import qora.transaction.Transaction.TransactionType;
|
|
|
|
public class GenesisTransactionData extends TransactionData {
|
|
|
|
// Properties
|
|
private String recipient;
|
|
private BigDecimal amount;
|
|
|
|
// Constructors
|
|
|
|
public GenesisTransactionData(String recipient, BigDecimal amount, long timestamp, byte[] signature) {
|
|
super(TransactionType.GENESIS, BigDecimal.ZERO, new GenesisAccount().getPublicKey(), timestamp, signature);
|
|
|
|
this.recipient = recipient;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public GenesisTransactionData(String recipient, BigDecimal amount, long timestamp) {
|
|
this(recipient, amount, timestamp, null);
|
|
}
|
|
|
|
// Getters/Setters
|
|
|
|
public String getRecipient() {
|
|
return this.recipient;
|
|
}
|
|
|
|
public BigDecimal getAmount() {
|
|
return this.amount;
|
|
}
|
|
|
|
}
|