Package org.stellar.sdk.xdr
Class ConfigSettingContractComputeV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractComputeV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractComputeV0's original definition in the XDR file is:
struct ConfigSettingContractComputeV0
{
// Maximum instructions per ledger
int64 ledgerMaxInstructions;
// Maximum instructions per transaction
int64 txMaxInstructions;
// Cost of 10000 instructions
int64 feeRatePerInstructionsIncrement;
// Memory limit per transaction. Unlike instructions, there is no fee
// for memory, just the limit.
uint32 txMemoryLimit;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractComputeV0(Int64 ledgerMaxInstructions, Int64 txMaxInstructions, Int64 feeRatePerInstructionsIncrement, Uint32 txMemoryLimit) Creates a newConfigSettingContractComputeV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thefeeRatePerInstructionsIncrementfield.Value of theledgerMaxInstructionsfield.Value of thetxMaxInstructionsfield.Value of thetxMemoryLimitfield.inthashCode()voidsetFeeRatePerInstructionsIncrement(Int64 feeRatePerInstructionsIncrement) Value of thefeeRatePerInstructionsIncrementfield.voidsetLedgerMaxInstructions(Int64 ledgerMaxInstructions) Value of theledgerMaxInstructionsfield.voidsetTxMaxInstructions(Int64 txMaxInstructions) Value of thetxMaxInstructionsfield.voidsetTxMemoryLimit(Uint32 txMemoryLimit) Value of thetxMemoryLimitfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractComputeV0
public ConfigSettingContractComputeV0() -
ConfigSettingContractComputeV0
public ConfigSettingContractComputeV0(Int64 ledgerMaxInstructions, Int64 txMaxInstructions, Int64 feeRatePerInstructionsIncrement, Uint32 txMemoryLimit) Creates a newConfigSettingContractComputeV0instance.- Parameters:
ledgerMaxInstructions- theledgerMaxInstructionsfield valuetxMaxInstructions- thetxMaxInstructionsfield valuefeeRatePerInstructionsIncrement- thefeeRatePerInstructionsIncrementfield valuetxMemoryLimit- thetxMemoryLimitfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static ConfigSettingContractComputeV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getLedgerMaxInstructions
Value of theledgerMaxInstructionsfield.- Returns:
- the
ledgerMaxInstructionsfield value
-
getTxMaxInstructions
Value of thetxMaxInstructionsfield.- Returns:
- the
txMaxInstructionsfield value
-
getFeeRatePerInstructionsIncrement
Value of thefeeRatePerInstructionsIncrementfield.- Returns:
- the
feeRatePerInstructionsIncrementfield value
-
getTxMemoryLimit
Value of thetxMemoryLimitfield.- Returns:
- the
txMemoryLimitfield value
-
setLedgerMaxInstructions
Value of theledgerMaxInstructionsfield.- Parameters:
ledgerMaxInstructions- theledgerMaxInstructionsfield value
-
setTxMaxInstructions
Value of thetxMaxInstructionsfield.- Parameters:
txMaxInstructions- thetxMaxInstructionsfield value
-
setFeeRatePerInstructionsIncrement
Value of thefeeRatePerInstructionsIncrementfield.- Parameters:
feeRatePerInstructionsIncrement- thefeeRatePerInstructionsIncrementfield value
-
setTxMemoryLimit
Value of thetxMemoryLimitfield.- Parameters:
txMemoryLimit- thetxMemoryLimitfield value
-
equals
-
hashCode
public int hashCode() -
toString
-