Package org.stellar.sdk.xdr
Class ConfigSettingContractEventsV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractEventsV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractEventsV0's original definition in the XDR file is:
struct ConfigSettingContractEventsV0
{
// Maximum size of events that a contract call can emit.
uint32 txMaxContractEventsSizeBytes;
// Fee for generating 1KB of contract events.
int64 feeContractEvents1KB;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractEventsV0(Uint32 txMaxContractEventsSizeBytes, Int64 feeContractEvents1KB) Creates a newConfigSettingContractEventsV0instance. -
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 thefeeContractEvents1KBfield.Value of thetxMaxContractEventsSizeBytesfield.inthashCode()voidsetFeeContractEvents1KB(Int64 feeContractEvents1KB) Value of thefeeContractEvents1KBfield.voidsetTxMaxContractEventsSizeBytes(Uint32 txMaxContractEventsSizeBytes) Value of thetxMaxContractEventsSizeBytesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractEventsV0
public ConfigSettingContractEventsV0() -
ConfigSettingContractEventsV0
public ConfigSettingContractEventsV0(Uint32 txMaxContractEventsSizeBytes, Int64 feeContractEvents1KB) Creates a newConfigSettingContractEventsV0instance.- Parameters:
txMaxContractEventsSizeBytes- thetxMaxContractEventsSizeBytesfield valuefeeContractEvents1KB- thefeeContractEvents1KBfield 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 ConfigSettingContractEventsV0 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
-
getTxMaxContractEventsSizeBytes
Value of thetxMaxContractEventsSizeBytesfield.- Returns:
- the
txMaxContractEventsSizeBytesfield value
-
getFeeContractEvents1KB
Value of thefeeContractEvents1KBfield.- Returns:
- the
feeContractEvents1KBfield value
-
setTxMaxContractEventsSizeBytes
Value of thetxMaxContractEventsSizeBytesfield.- Parameters:
txMaxContractEventsSizeBytes- thetxMaxContractEventsSizeBytesfield value
-
setFeeContractEvents1KB
Value of thefeeContractEvents1KBfield.- Parameters:
feeContractEvents1KB- thefeeContractEvents1KBfield value
-
equals
-
hashCode
public int hashCode() -
toString
-