public override xdr.Operation.OperationBody ToOperationBody() { xdr.Operation.OperationBody body = new xdr.Operation.OperationBody { Discriminant = OperationType.Create(OperationType.OperationTypeEnum.INFLATION) }; return(body); }
/// <summary> /// Returns the Account Merge XDR Operation Body /// </summary> /// <returns></returns> public override xdr.Operation.OperationBody ToOperationBody() { var body = new xdr.Operation.OperationBody(); var destination = new AccountID { InnerValue = Destination.XdrPublicKey }; body.Destination = destination; body.Discriminant = OperationType.Create(OperationType.OperationTypeEnum.ACCOUNT_MERGE); return(body); }
public override xdr.Operation.OperationBody ToOperationBody() { var op = new BeginSponsoringFutureReservesOp { SponsoredID = new AccountID(SponsoredId.XdrPublicKey) }; var body = new xdr.Operation.OperationBody { Discriminant = OperationType.Create(OperationType.OperationTypeEnum.BEGIN_SPONSORING_FUTURE_RESERVES), BeginSponsoringFutureReservesOp = op }; return(body); }
public override xdr.Operation.OperationBody ToOperationBody() { var op = new CreateAccountOp(); var destination = new AccountID(); destination.InnerValue = Destination.XdrPublicKey; op.Destination = destination; var startingBalance = new Int64(); startingBalance.InnerValue = ToXdrAmount(StartingBalance); op.StartingBalance = startingBalance; var body = new xdr.Operation.OperationBody(); body.Discriminant = OperationType.Create(OperationType.OperationTypeEnum.CREATE_ACCOUNT); body.CreateAccountOp = op; return body; }
public override Generated.Operation.OperationBody ToOperationBody() { var op = new CreateAccountOp { Destination = this.Destination.AccountId, StartingBalance = new Generated.Int64(StartingBalance) }; var body = new Generated.Operation.OperationBody { CreateAccountOp = op, Discriminant = OperationType.Create(OperationType.OperationTypeEnum.CREATE_ACCOUNT) }; return(body); }
public override Generated.Operation.OperationBody ToOperationBody() { var op = new ChangeTrustOp { Line = Asset, Limit = new Generated.Int64(Limit) }; var body = new Generated.Operation.OperationBody { ChangeTrustOp = op, Discriminant = OperationType.Create(OperationType.OperationTypeEnum.CHANGE_TRUST) }; return(body); }
public override Generated.Operation.OperationBody ToOperationBody() { var op = new PaymentOp { Destination = this.Destination.AccountId, Amount = new Generated.Int64(Amount), Asset = this.Asset }; var body = new Generated.Operation.OperationBody { PaymentOp = op, Discriminant = OperationType.Create(OperationType.OperationTypeEnum.PAYMENT) }; return(body); }
public override OperationBody ToOperationBody() { var op = new BumpSequenceOp(); var bumpTo = new xdr.Int64 { InnerValue = BumpTo }; var sequenceNumber = new SequenceNumber { InnerValue = bumpTo }; op.BumpTo = sequenceNumber; var body = new OperationBody { Discriminant = OperationType.Create(OperationType.OperationTypeEnum.BUMP_SEQUENCE), BumpSequenceOp = op }; return(body); }
public override xdr.Operation.OperationBody ToOperationBody() { var op = new PaymentOp(); // destination op.Destination = Destination.MuxedAccount; // asset op.Asset = Asset.ToXdr(); // amount var amount = new Int64(); amount.InnerValue = ToXdrAmount(Amount); op.Amount = amount; var body = new xdr.Operation.OperationBody(); body.Discriminant = OperationType.Create(OperationType.OperationTypeEnum.PAYMENT); body.PaymentOp = op; return(body); }
public override xdr.Operation.OperationBody ToOperationBody() { PaymentOp op = new PaymentOp(); // destination AccountID destination = new AccountID(); destination.InnerValue = Destination.XdrPublicKey; op.Destination = destination; // asset op.Asset = Asset.ToXdr(); // amount Int64 amount = new Int64(); amount.InnerValue = ToXdrAmount(Amount); op.Amount = amount; xdr.Operation.OperationBody body = new xdr.Operation.OperationBody(); body.Discriminant = OperationType.Create(OperationType.OperationTypeEnum.PAYMENT); body.PaymentOp = op; return(body); }