Package org.xrpl.xrpl4j.model.ledger
Class ImmutableAttestationCreateAccount
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAttestationCreateAccount
- All Implemented Interfaces:
Attestation,AttestationCreateAccount
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAttestationCreateAccount
extends Object
implements AttestationCreateAccount
Immutable implementation of
AttestationCreateAccount.
Use the builder to create immutable instances:
ImmutableAttestationCreateAccount.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAttestationCreateAccount. -
Method Summary
Modifier and TypeMethodDescriptionamount()The amount committed by theXChainAccountCreateCommitorXChainCommittransaction on the source chain.The account that should receive this signer's share of theSignatureReward.builder()Creates a builder forImmutableAttestationCreateAccount.copyOf(AttestationCreateAccount instance) Creates an immutable copy of aAttestationCreateAccountvalue.The destination account for the funds on the destination chain.booleanThis instance is equal to all instances ofImmutableAttestationCreateAccountthat have equal attribute values.inthashCode()Computes a hash code from attributes:xChainBridge,otherChainSource,attestationRewardAccount,amount,wasLockingChainSend,xChainAccountCreateCount,destination,signatureReward.The account on the source chain that submitted theXChainAccountCreateCommittransaction orXChainCommittransaction that triggered the event associated with the attestation.The total amount, in XRP, to be rewarded for providing a signature for cross-chain transfer or for signing for the cross-chain reward.toString()Prints the immutable valueAttestationCreateAccountwith attribute values.booleanA boolean representing the chain where the event occurred.withAmount(CurrencyAmount value) Copy the current immutable object by setting a value for theamountattribute.Copy the current immutable object by setting a value for theattestationRewardAccountattribute.withDestination(Address value) Copy the current immutable object by setting a value for thedestinationattribute.withOtherChainSource(Address value) Copy the current immutable object by setting a value for theotherChainSourceattribute.Copy the current immutable object by setting a value for thesignatureRewardattribute.withWasLockingChainSend(boolean value) Copy the current immutable object by setting a value for thewasLockingChainSendattribute.Copy the current immutable object by setting a value for thexChainAccountCreateCountattribute.withXChainBridge(XChainBridge value) Copy the current immutable object by setting a value for thexChainBridgeattribute.The number of accounts that have been created by the bridge.The bridge spec.
-
Method Details
-
xChainBridge
The bridge spec.- Specified by:
xChainBridgein interfaceAttestation- Returns:
- An
XChainBridge.
-
otherChainSource
The account on the source chain that submitted theXChainAccountCreateCommittransaction orXChainCommittransaction that triggered the event associated with the attestation.- Specified by:
otherChainSourcein interfaceAttestation- Returns:
- An
Address.
-
attestationRewardAccount
The account that should receive this signer's share of theSignatureReward.- Specified by:
attestationRewardAccountin interfaceAttestation- Returns:
- An
Address.
-
amount
The amount committed by theXChainAccountCreateCommitorXChainCommittransaction on the source chain.- Specified by:
amountin interfaceAttestation- Returns:
- A
CurrencyAmount.
-
wasLockingChainSend
public boolean wasLockingChainSend()A boolean representing the chain where the event occurred.- Specified by:
wasLockingChainSendin interfaceAttestation- Returns:
trueif the event occurred on the locking chain, otherwisefalse.
-
xChainAccountCreateCount
The number of accounts that have been created by the bridge.- Specified by:
xChainAccountCreateCountin interfaceAttestationCreateAccount- Returns:
- An
XChainCount.
-
destination
The destination account for the funds on the destination chain.- Specified by:
destinationin interfaceAttestationCreateAccount- Returns:
- An
Address.
-
signatureReward
The total amount, in XRP, to be rewarded for providing a signature for cross-chain transfer or for signing for the cross-chain reward. This amount will be split among the signers.- Specified by:
signatureRewardin interfaceAttestationCreateAccount- Returns:
- An
XrpCurrencyAmount.
-
withXChainBridge
Copy the current immutable object by setting a value for thexChainBridgeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for xChainBridge- Returns:
- A modified copy of the
thisobject
-
withOtherChainSource
Copy the current immutable object by setting a value for theotherChainSourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for otherChainSource- Returns:
- A modified copy of the
thisobject
-
withAttestationRewardAccount
Copy the current immutable object by setting a value for theattestationRewardAccountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attestationRewardAccount- Returns:
- A modified copy of the
thisobject
-
withAmount
Copy the current immutable object by setting a value for theamountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for amount- Returns:
- A modified copy of the
thisobject
-
withWasLockingChainSend
Copy the current immutable object by setting a value for thewasLockingChainSendattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for wasLockingChainSend- Returns:
- A modified copy of the
thisobject
-
withXChainAccountCreateCount
Copy the current immutable object by setting a value for thexChainAccountCreateCountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for xChainAccountCreateCount- Returns:
- A modified copy of the
thisobject
-
withDestination
Copy the current immutable object by setting a value for thedestinationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for destination- Returns:
- A modified copy of the
thisobject
-
withSignatureReward
Copy the current immutable object by setting a value for thesignatureRewardattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signatureReward- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAttestationCreateAccountthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:xChainBridge,otherChainSource,attestationRewardAccount,amount,wasLockingChainSend,xChainAccountCreateCount,destination,signatureReward. -
toString
Prints the immutable valueAttestationCreateAccountwith attribute values. -
copyOf
Creates an immutable copy of aAttestationCreateAccountvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable AttestationCreateAccount instance
-
builder
Creates a builder forImmutableAttestationCreateAccount.ImmutableAttestationCreateAccount.builder() .xChainBridge(org.xrpl.xrpl4j.model.transactions.XChainBridge) // requiredxChainBridge.otherChainSource(org.xrpl.xrpl4j.model.transactions.Address) // requiredotherChainSource.attestationRewardAccount(org.xrpl.xrpl4j.model.transactions.Address) // requiredattestationRewardAccount.amount(org.xrpl.xrpl4j.model.transactions.CurrencyAmount) // requiredamount.wasLockingChainSend(boolean) // requiredwasLockingChainSend.xChainAccountCreateCount(org.xrpl.xrpl4j.model.transactions.XChainCount) // requiredxChainAccountCreateCount.destination(org.xrpl.xrpl4j.model.transactions.Address) // requireddestination.signatureReward(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // requiredsignatureReward.build();- Returns:
- A new ImmutableAttestationCreateAccount builder
-