tron driver removed

This commit is contained in:
Stephan D
2026-01-30 15:42:50 +01:00
parent 51f5b0804a
commit bc46eccbe0
25 changed files with 247 additions and 894 deletions

View File

@@ -61,11 +61,15 @@ func (*WalletBalance) Collection() string {
// ManagedWalletFilter describes list filters.
type ManagedWalletFilter struct {
OrganizationRef string
OwnerRef string
Network string
TokenSymbol string
Cursor string
Limit int32
// OwnerRefFilter is a 3-state filter:
// - nil: no filter on owner_ref (return all)
// - pointer to empty string: filter for wallets where owner_ref is empty
// - pointer to a value: filter for wallets where owner_ref matches
OwnerRefFilter *string
Network string
TokenSymbol string
Cursor string
Limit int32
}
// ManagedWalletList contains paginated wallet results.

View File

@@ -156,9 +156,10 @@ func (w *Wallets) List(ctx context.Context, filter model.ManagedWalletFilter) (*
query = query.Filter(repository.Field("organizationRef"), org)
fields = append(fields, zap.String("organization_ref", org))
}
if owner := strings.TrimSpace(filter.OwnerRef); owner != "" {
query = query.Filter(repository.Field("ownerRef"), owner)
fields = append(fields, zap.String("owner_ref", owner))
if filter.OwnerRefFilter != nil {
ownerRef := strings.TrimSpace(*filter.OwnerRefFilter)
query = query.Filter(repository.Field("ownerRef"), ownerRef)
fields = append(fields, zap.String("owner_ref_filter", ownerRef))
}
if network := strings.TrimSpace(filter.Network); network != "" {
normalized := strings.ToLower(network)