Class ContractCreateTransactionModel
java.lang.Object
com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel<ContractCreateTx>
com.kryptokrauts.aeternity.sdk.service.transaction.type.model.ContractCreateTransactionModel
public class ContractCreateTransactionModel extends AbstractTransactionModel<ContractCreateTx>
-
Field Summary
Fields inherited from class com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel
fee
-
Constructor Summary
Constructors Constructor Description ContractCreateTransactionModel(java.lang.String byteCode, java.lang.String callData, java.lang.String ownerId, java.math.BigInteger amount, java.math.BigInteger nonce, java.math.BigInteger gasLimit, java.math.BigInteger gasPrice, java.math.BigInteger ttl)
-
Method Summary
Modifier and Type Method Description AbstractTransaction<?>
buildTransaction(ExternalApi externalApi, InternalApi internalApi)
builds the necessary transaction objectjava.util.function.Function<Tx,ContractCreateTransactionModel>
getApiToModelFunction()
remap the given genericTx to a modelContractCreateTx
toApiModel()
this method needs to be implemented for testing purposes (non native mode) and returns the generated tx model from the transaction fieldsvoid
validateInput()
this method can be used to perform transaction specific validations that willMethods inherited from class com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel
checkMandatoryFields, doSign, getInnerTxModel, hasInnerTx
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ContractCreateTransactionModel
public ContractCreateTransactionModel(java.lang.String byteCode, java.lang.String callData, java.lang.String ownerId, java.math.BigInteger amount, java.math.BigInteger nonce, java.math.BigInteger gasLimit, java.math.BigInteger gasPrice, java.math.BigInteger ttl)
-
-
Method Details
-
toApiModel
Description copied from class:AbstractTransactionModel
this method needs to be implemented for testing purposes (non native mode) and returns the generated tx model from the transaction fields- Specified by:
toApiModel
in classAbstractTransactionModel<ContractCreateTx>
- Returns:
- one of
com.kryptokrauts.aeternity.sdk.service.transaction.type.model
-
getApiToModelFunction
Description copied from class:AbstractTransactionModel
remap the given genericTx to a model- Specified by:
getApiToModelFunction
in classAbstractTransactionModel<ContractCreateTx>
- Returns:
- a function that maps the generated Api class into our SDK model class
-
validateInput
public void validateInput()Description copied from class:AbstractTransactionModel
this method can be used to perform transaction specific validations that will- Specified by:
validateInput
in classAbstractTransactionModel<ContractCreateTx>
-
buildTransaction
Description copied from class:AbstractTransactionModel
builds the necessary transaction object- Specified by:
buildTransaction
in classAbstractTransactionModel<ContractCreateTx>
- Parameters:
externalApi
- the node api instanceinternalApi
- the node api instance- Returns:
- the instance of a specific transaction class that extends
AbstractTransaction
-