builder static method
Construct a new CreateAccount builder from a CreateAccountOp XDR.
Implementation
static ManageSellOfferOperationBuilder builder(XdrManageSellOfferOp op) {
int n = op.price!.n.int32.toInt();
int d = op.price!.d.int32.toInt();
return ManageSellOfferOperationBuilder(
Asset.fromXdr(op.selling!),
Asset.fromXdr(op.buying!),
Operation.fromXdrAmount(op.amount!.int64.toInt()),
removeTailZero((BigInt.from(n) / BigInt.from(d)).toString()),
).setOfferId(op.offerID!.uint64.toInt().toString());
}