Пример #1
0
        public override Generated.Operation.OperationBody ToOperationBody()
        {
            var body = new Generated.Operation.OperationBody
            {
                Destination  = Destination.AccountId,
                Discriminant = Generated.OperationType.Create(Generated.OperationType.OperationTypeEnum.ACCOUNT_MERGE)
            };

            return(body);
        }
Пример #2
0
        public override Generated.Operation.OperationBody ToOperationBody()
        {
            var op = new Generated.CreateAccountOp
            {
                Destination     = Destination.AccountId,
                StartingBalance = new Generated.Int64(StartingBalance)
            };

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

            return(body);
        }
Пример #3
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);
        }
Пример #4
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);
        }