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;
        }
Exemple #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);
        }
 public Builder(CreateAccountOp op)
 {
     this.Destination = KeyPair.FromXdrPublicKey(op.Destination.InnerValue);
     this.StartingBalance = op.StartingBalance.InnerValue;
 }
Exemple #4
0
 public Builder(Generated.CreateAccountOp op)
 {
     Destination = KeyPair.FromXdrPublicKey(op.Destination.InnerValue);
 }
Exemple #5
0
 public Builder(Generated.CreateAccountOp op)
 {
     Destination     = KeyPair.FromXdrPublicKey(op.Destination.InnerValue);
     StartingBalance = op.StartingBalance.InnerValue;
 }