public class SorobanTransactionMetaExtV1 extends java.lang.Object implements XdrElement
struct SorobanTransactionMetaExtV1
{
ExtensionPoint ext;
// The following are the components of the overall Soroban resource fee
// charged for the transaction.
// The following relation holds:
// `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged`
// where `resourceFeeCharged` is the overall fee charged for the
// transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee`
// i.e.we never charge more than the declared resource fee.
// The inclusion fee for charged the Soroban transaction can be found using
// the following equation:
// `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`.
// Total amount (in stroops) that has been charged for non-refundable
// Soroban resources.
// Non-refundable resources are charged based on the usage declared in
// the transaction envelope (such as `instructions`, `readBytes` etc.) and
// is charged regardless of the success of the transaction.
int64 totalNonRefundableResourceFeeCharged;
// Total amount (in stroops) that has been charged for refundable
// Soroban resource fees.
// Currently this comprises the rent fee (`rentFeeCharged`) and the
// fee for the events and return value.
// Refundable resources are charged based on the actual resources usage.
// Since currently refundable resources are only used for the successful
// transactions, this will be `0` for failed transactions.
int64 totalRefundableResourceFeeCharged;
// Amount (in stroops) that has been charged for rent.
// This is a part of `totalNonRefundableResourceFeeCharged`.
int64 rentFeeCharged;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
SorobanTransactionMetaExtV1.SorobanTransactionMetaExtV1Builder |
| Constructor and Description |
|---|
SorobanTransactionMetaExtV1() |
SorobanTransactionMetaExtV1(ExtensionPoint ext,
Int64 totalNonRefundableResourceFeeCharged,
Int64 totalRefundableResourceFeeCharged,
Int64 rentFeeCharged) |
| Modifier and Type | Method and Description |
|---|---|
static SorobanTransactionMetaExtV1.SorobanTransactionMetaExtV1Builder |
builder() |
static SorobanTransactionMetaExtV1 |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SorobanTransactionMetaExtV1 |
fromXdrBase64(java.lang.String xdr) |
static SorobanTransactionMetaExtV1 |
fromXdrByteArray(byte[] xdr) |
ExtensionPoint |
getExt() |
Int64 |
getRentFeeCharged() |
Int64 |
getTotalNonRefundableResourceFeeCharged() |
Int64 |
getTotalRefundableResourceFeeCharged() |
int |
hashCode() |
void |
setExt(ExtensionPoint ext) |
void |
setRentFeeCharged(Int64 rentFeeCharged) |
void |
setTotalNonRefundableResourceFeeCharged(Int64 totalNonRefundableResourceFeeCharged) |
void |
setTotalRefundableResourceFeeCharged(Int64 totalRefundableResourceFeeCharged) |
SorobanTransactionMetaExtV1.SorobanTransactionMetaExtV1Builder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic SorobanTransactionMetaExtV1()
public SorobanTransactionMetaExtV1(ExtensionPoint ext, Int64 totalNonRefundableResourceFeeCharged, Int64 totalRefundableResourceFeeCharged, Int64 rentFeeCharged)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SorobanTransactionMetaExtV1 decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static SorobanTransactionMetaExtV1 fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SorobanTransactionMetaExtV1 fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static SorobanTransactionMetaExtV1.SorobanTransactionMetaExtV1Builder builder()
public SorobanTransactionMetaExtV1.SorobanTransactionMetaExtV1Builder toBuilder()
public ExtensionPoint getExt()
public Int64 getTotalNonRefundableResourceFeeCharged()
public Int64 getTotalRefundableResourceFeeCharged()
public Int64 getRentFeeCharged()
public void setExt(ExtensionPoint ext)
public void setTotalNonRefundableResourceFeeCharged(Int64 totalNonRefundableResourceFeeCharged)
public void setTotalRefundableResourceFeeCharged(Int64 totalRefundableResourceFeeCharged)
public void setRentFeeCharged(Int64 rentFeeCharged)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object