Skip to content

Commit

Permalink
[SDP-1155] decommission stellar-multitenant CLI (#261)
Browse files Browse the repository at this point in the history
* SDP-1155 Decommission MTN CLI

* SDP-1155 re-arrange code inside stellar-multitenant package

* SDP-1155 remove dead code
  • Loading branch information
marwen-abid authored Apr 17, 2024
1 parent 1859c2e commit 28eb2e3
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 1,215 deletions.
12 changes: 0 additions & 12 deletions internal/utils/network_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package utils

import (
"fmt"
"strings"

"github.com/stellar/go/network"
)
Expand All @@ -24,14 +23,3 @@ func GetNetworkTypeFromNetworkPassphrase(networkPassphrase string) (NetworkType,
return "", fmt.Errorf("invalid network passphrase provided")
}
}

func GetNetworkTypeFromString(networkType string) (NetworkType, error) {
switch NetworkType(strings.ToLower(networkType)) {
case PubnetNetworkType:
return PubnetNetworkType, nil
case TestnetNetworkType:
return TestnetNetworkType, nil
default:
return "", fmt.Errorf("invalid network type provided")
}
}
24 changes: 0 additions & 24 deletions stellar-multitenant/cmd/stellarmultitenant/main.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/stellar/stellar-disbursement-platform-backend/db"
"github.com/stellar/stellar-disbursement-platform-backend/internal/serve/httperror"
"github.com/stellar/stellar-disbursement-platform-backend/internal/utils"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/pkg/internal/provisioning"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/pkg/internal/validators"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/internal/provisioning"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/internal/validators"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/pkg/tenant"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
preconditionsMocks "github.com/stellar/stellar-disbursement-platform-backend/internal/transactionsubmission/engine/preconditions/mocks"
"github.com/stellar/stellar-disbursement-platform-backend/internal/transactionsubmission/engine/signing"
"github.com/stellar/stellar-disbursement-platform-backend/internal/utils"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/pkg/internal/provisioning"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/internal/provisioning"
"github.com/stellar/stellar-disbursement-platform-backend/stellar-multitenant/pkg/tenant"
)

Expand Down
239 changes: 0 additions & 239 deletions stellar-multitenant/pkg/cli/add_tenants.go

This file was deleted.

Loading

0 comments on commit 28eb2e3

Please sign in to comment.