Package org.stellar.sdk.xdr
Class Operation.OperationBody
java.lang.Object
org.stellar.sdk.xdr.Operation.OperationBody
- Enclosing class:
Operation
OperationBody's original definition in the XDR file is:
union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; }
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionOperationBody
(OperationType discriminant, CreateAccountOp createAccountOp, PaymentOp paymentOp, PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp, ManageSellOfferOp manageSellOfferOp, CreatePassiveSellOfferOp createPassiveSellOfferOp, SetOptionsOp setOptionsOp, ChangeTrustOp changeTrustOp, AllowTrustOp allowTrustOp, MuxedAccount destination, ManageDataOp manageDataOp, BumpSequenceOp bumpSequenceOp, ManageBuyOfferOp manageBuyOfferOp, PathPaymentStrictSendOp pathPaymentStrictSendOp, CreateClaimableBalanceOp createClaimableBalanceOp, ClaimClaimableBalanceOp claimClaimableBalanceOp, BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp, RevokeSponsorshipOp revokeSponsorshipOp, ClawbackOp clawbackOp, ClawbackClaimableBalanceOp clawbackClaimableBalanceOp, SetTrustLineFlagsOp setTrustLineFlagsOp, LiquidityPoolDepositOp liquidityPoolDepositOp, LiquidityPoolWithdrawOp liquidityPoolWithdrawOp, InvokeHostFunctionOp invokeHostFunctionOp, ExtendFootprintTTLOp extendFootprintTTLOp, RestoreFootprintOp restoreFootprintOp) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static Operation.OperationBody
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Operation.OperationBody
fromXdrBase64
(String xdr) static Operation.OperationBody
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAllowTrustOp
(AllowTrustOp allowTrustOp) void
setBeginSponsoringFutureReservesOp
(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) void
setBumpSequenceOp
(BumpSequenceOp bumpSequenceOp) void
setChangeTrustOp
(ChangeTrustOp changeTrustOp) void
setClaimClaimableBalanceOp
(ClaimClaimableBalanceOp claimClaimableBalanceOp) void
setClawbackClaimableBalanceOp
(ClawbackClaimableBalanceOp clawbackClaimableBalanceOp) void
setClawbackOp
(ClawbackOp clawbackOp) void
setCreateAccountOp
(CreateAccountOp createAccountOp) void
setCreateClaimableBalanceOp
(CreateClaimableBalanceOp createClaimableBalanceOp) void
setCreatePassiveSellOfferOp
(CreatePassiveSellOfferOp createPassiveSellOfferOp) void
setDestination
(MuxedAccount destination) void
setDiscriminant
(OperationType discriminant) void
setExtendFootprintTTLOp
(ExtendFootprintTTLOp extendFootprintTTLOp) void
setInvokeHostFunctionOp
(InvokeHostFunctionOp invokeHostFunctionOp) void
setLiquidityPoolDepositOp
(LiquidityPoolDepositOp liquidityPoolDepositOp) void
setLiquidityPoolWithdrawOp
(LiquidityPoolWithdrawOp liquidityPoolWithdrawOp) void
setManageBuyOfferOp
(ManageBuyOfferOp manageBuyOfferOp) void
setManageDataOp
(ManageDataOp manageDataOp) void
setManageSellOfferOp
(ManageSellOfferOp manageSellOfferOp) void
setPathPaymentStrictReceiveOp
(PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp) void
setPathPaymentStrictSendOp
(PathPaymentStrictSendOp pathPaymentStrictSendOp) void
setPaymentOp
(PaymentOp paymentOp) void
setRestoreFootprintOp
(RestoreFootprintOp restoreFootprintOp) void
setRevokeSponsorshipOp
(RevokeSponsorshipOp revokeSponsorshipOp) void
setSetOptionsOp
(SetOptionsOp setOptionsOp) void
setSetTrustLineFlagsOp
(SetTrustLineFlagsOp setTrustLineFlagsOp) toString()
default String
default byte[]
-
Constructor Details
-
OperationBody
public OperationBody() -
OperationBody
public OperationBody(OperationType discriminant, CreateAccountOp createAccountOp, PaymentOp paymentOp, PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp, ManageSellOfferOp manageSellOfferOp, CreatePassiveSellOfferOp createPassiveSellOfferOp, SetOptionsOp setOptionsOp, ChangeTrustOp changeTrustOp, AllowTrustOp allowTrustOp, MuxedAccount destination, ManageDataOp manageDataOp, BumpSequenceOp bumpSequenceOp, ManageBuyOfferOp manageBuyOfferOp, PathPaymentStrictSendOp pathPaymentStrictSendOp, CreateClaimableBalanceOp createClaimableBalanceOp, ClaimClaimableBalanceOp claimClaimableBalanceOp, BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp, RevokeSponsorshipOp revokeSponsorshipOp, ClawbackOp clawbackOp, ClawbackClaimableBalanceOp clawbackClaimableBalanceOp, SetTrustLineFlagsOp setTrustLineFlagsOp, LiquidityPoolDepositOp liquidityPoolDepositOp, LiquidityPoolWithdrawOp liquidityPoolWithdrawOp, InvokeHostFunctionOp invokeHostFunctionOp, ExtendFootprintTTLOp extendFootprintTTLOp, RestoreFootprintOp restoreFootprintOp)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getCreateAccountOp
-
getPaymentOp
-
getPathPaymentStrictReceiveOp
-
getManageSellOfferOp
-
getCreatePassiveSellOfferOp
-
getSetOptionsOp
-
getChangeTrustOp
-
getAllowTrustOp
-
getDestination
-
getManageDataOp
-
getBumpSequenceOp
-
getManageBuyOfferOp
-
getPathPaymentStrictSendOp
-
getCreateClaimableBalanceOp
-
getClaimClaimableBalanceOp
-
getBeginSponsoringFutureReservesOp
-
getRevokeSponsorshipOp
-
getClawbackOp
-
getClawbackClaimableBalanceOp
-
getSetTrustLineFlagsOp
-
getLiquidityPoolDepositOp
-
getLiquidityPoolWithdrawOp
-
getInvokeHostFunctionOp
-
getExtendFootprintTTLOp
-
getRestoreFootprintOp
-
setDiscriminant
-
setCreateAccountOp
-
setPaymentOp
-
setPathPaymentStrictReceiveOp
-
setManageSellOfferOp
-
setCreatePassiveSellOfferOp
-
setSetOptionsOp
-
setChangeTrustOp
-
setAllowTrustOp
-
setDestination
-
setManageDataOp
-
setBumpSequenceOp
-
setManageBuyOfferOp
-
setPathPaymentStrictSendOp
-
setCreateClaimableBalanceOp
-
setClaimClaimableBalanceOp
-
setBeginSponsoringFutureReservesOp
public void setBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) -
setRevokeSponsorshipOp
-
setClawbackOp
-
setClawbackClaimableBalanceOp
-
setSetTrustLineFlagsOp
-
setLiquidityPoolDepositOp
-
setLiquidityPoolWithdrawOp
-
setInvokeHostFunctionOp
-
setExtendFootprintTTLOp
-
setRestoreFootprintOp
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-