Package com.jelurida.ardor.contracts
Class LiberlandCitizenRegistry<InvocationData,ReturnedData>
java.lang.Object
nxt.addons.AbstractContract<InvocationData,ReturnedData>
com.jelurida.ardor.contracts.LiberlandCitizenRegistry<InvocationData,ReturnedData>
- All Implemented Interfaces:
Contract<InvocationData,ReturnedData>
public class LiberlandCitizenRegistry<InvocationData,ReturnedData>
extends AbstractContract<InvocationData,ReturnedData>
Load Liberland citizen records and register them on the blockchain as account proprties
This class requires JDK 11, since we still rely on JDK 8 we comment out all the JDK 11 code and replaced it with
mockup data that you'll need to comment out.
Add the --add-modules java.net.http to the compiler command line.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends TransactionResponse>
booleanisDuplicate(T myTransaction, List<T> existingUnconfirmedTransactions) processTransaction(TransactionContext context) Methods inherited from class nxt.addons.AbstractContract
processBlock, processInvocation, processRequest, processVoucherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.addons.Contract
init, minProductVersion, shutdown
-
Constructor Details
-
LiberlandCitizenRegistry
public LiberlandCitizenRegistry()
-
-
Method Details
-
processTransaction
- Specified by:
processTransactionin interfaceContract<InvocationData,ReturnedData> - Overrides:
processTransactionin classAbstractContract<InvocationData,ReturnedData>
-
isDuplicate
public <T extends TransactionResponse> boolean isDuplicate(T myTransaction, List<T> existingUnconfirmedTransactions) - Specified by:
isDuplicatein interfaceContract<InvocationData,ReturnedData> - Overrides:
isDuplicatein classAbstractContract<InvocationData,ReturnedData>
-