fixed orchestrator compilaiton #269

Merged
tech merged 1 commits from payments-268 into main 2026-01-18 14:16:26 +00:00
3 changed files with 3 additions and 12 deletions

View File

@@ -5,8 +5,6 @@ import (
oracleclient "github.com/tech/sendico/fx/oracle/client" oracleclient "github.com/tech/sendico/fx/oracle/client"
chainclient "github.com/tech/sendico/gateway/chain/client" chainclient "github.com/tech/sendico/gateway/chain/client"
mntxclient "github.com/tech/sendico/gateway/mntx/client"
ledgerclient "github.com/tech/sendico/ledger/client"
"github.com/tech/sendico/pkg/merrors" "github.com/tech/sendico/pkg/merrors"
"github.com/tech/sendico/pkg/payments/rail" "github.com/tech/sendico/pkg/payments/rail"
feesv1 "github.com/tech/sendico/pkg/proto/billing/fees/v1" feesv1 "github.com/tech/sendico/pkg/proto/billing/fees/v1"
@@ -263,7 +261,7 @@ func (c *discoveryMntxClient) Close() error {
} }
type discoveryChainClient struct { type discoveryChainClient struct {
resolver *discoveryClientResolver resolver *discoveryClientResolver
invokeURI string invokeURI string
} }

View File

@@ -58,10 +58,6 @@ type gatewayDependency struct {
resolver ChainGatewayResolver resolver ChainGatewayResolver
} }
func (g gatewayDependency) available() bool {
return g.resolver != nil
}
type railGatewayDependency struct { type railGatewayDependency struct {
byID map[string]rail.RailGateway byID map[string]rail.RailGateway
byRail map[model.Rail][]rail.RailGateway byRail map[model.Rail][]rail.RailGateway
@@ -233,10 +229,6 @@ type providerGatewayDependency struct {
resolver ChainGatewayResolver resolver ChainGatewayResolver
} }
func (p providerGatewayDependency) available() bool {
return p.resolver != nil
}
type staticChainGatewayResolver struct { type staticChainGatewayResolver struct {
client chainclient.Client client chainclient.Client
} }

View File

@@ -8,6 +8,7 @@ import (
oracleclient "github.com/tech/sendico/fx/oracle/client" oracleclient "github.com/tech/sendico/fx/oracle/client"
"github.com/tech/sendico/payments/orchestrator/storage/model" "github.com/tech/sendico/payments/orchestrator/storage/model"
chainpkg "github.com/tech/sendico/pkg/chain"
"github.com/tech/sendico/pkg/merrors" "github.com/tech/sendico/pkg/merrors"
feesv1 "github.com/tech/sendico/pkg/proto/billing/fees/v1" feesv1 "github.com/tech/sendico/pkg/proto/billing/fees/v1"
fxv1 "github.com/tech/sendico/pkg/proto/common/fx/v1" fxv1 "github.com/tech/sendico/pkg/proto/common/fx/v1"
@@ -159,7 +160,7 @@ func (s *Service) estimateNetworkFee(ctx context.Context, intent *orchestratorv1
network := "" network := ""
if req.Asset != nil { if req.Asset != nil {
network = strings.ToUpper(strings.TrimSpace(req.Asset.GetChain())) network = chainpkg.NetworkName(req.Asset.GetChain())
} }
instanceID := strings.TrimSpace(intent.GetSource().GetInstanceId()) instanceID := strings.TrimSpace(intent.GetSource().GetInstanceId())
if instanceID == "" { if instanceID == "" {