toOperationBody method
Generates OperationBody XDR object.
Implementation
@override
XdrOperationBody toOperationBody() {
XdrBigInt64 amount =
new XdrBigInt64(Util.toXdrBigInt64Amount(this.amount));
Price price = Price.fromString(this.price);
XdrUint64 offerId = new XdrUint64(int.parse(this.offerId));
XdrOperationBody body =
new XdrOperationBody(XdrOperationType.MANAGE_SELL_OFFER);
body.manageSellOfferOp = new XdrManageSellOfferOp(
selling.toXdr(), buying.toXdr(), amount, price.toXdr(), offerId);
;
return body;
}