builder static method
Builds SetOptions operation.
Implementation
static SetOptionsOperationBuilder builder(XdrSetOptionsOp op) {
SetOptionsOperationBuilder builder = SetOptionsOperationBuilder();
if (op.inflationDest != null) {
builder = builder.setInflationDestination(
KeyPair.fromXdrPublicKey(op.inflationDest!.accountID).accountId);
}
if (op.clearFlags != null) {
builder = builder.setClearFlags(op.clearFlags!.uint32);
}
if (op.setFlags != null) {
builder = builder.setSetFlags(op.setFlags!.uint32);
}
if (op.masterWeight != null) {
builder = builder.setMasterKeyWeight(op.masterWeight!.uint32);
}
if (op.lowThreshold != null) {
builder = builder.setLowThreshold(op.lowThreshold!.uint32);
}
if (op.medThreshold != null) {
builder = builder.setMediumThreshold(op.medThreshold!.uint32);
}
if (op.highThreshold != null) {
builder = builder.setHighThreshold(op.highThreshold!.uint32);
}
if (op.homeDomain != null) {
builder = builder.setHomeDomain(op.homeDomain!.string32);
}
if (op.signer != null) {
builder =
builder.setSigner(op.signer!.key!, op.signer!.weight!.uint32 & 0xFF);
}
return builder;
}