示例#1
0
        public override Generated.Operation.OperationBody ToOperationBody()
        {
            var op = new Generated.ChangeTrustOp
            {
                Line  = Asset.ToXDR(),
                Limit = new Generated.Int64(Limit)
            };

            var body = new Generated.Operation.OperationBody
            {
                ChangeTrustOp = op,
                Discriminant  = Generated.OperationType.Create(Generated.OperationType.OperationTypeEnum.CHANGE_TRUST)
            };

            return(body);
        }
示例#2
0
        public override Generated.Operation.OperationBody ToOperationBody()
        {
            var op = new Generated.PaymentOp
            {
                Destination = Destination.AccountId,
                Amount      = new Generated.Int64(Amount),
                Asset       = Asset.ToXDR()
            };

            var body = new Generated.Operation.OperationBody
            {
                PaymentOp    = op,
                Discriminant = Generated.OperationType.Create(Generated.OperationType.OperationTypeEnum.PAYMENT)
            };

            return(body);
        }