File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
1313 "github.com/gorilla/schema"
1414 "github.com/rs/zerolog/log"
1515 config "github.com/thirdweb-dev/indexer/configs"
16- "github.com/thirdweb-dev/indexer/internal/storage"
1716)
1817
1918// Error represents an API error response
@@ -187,15 +186,3 @@ func ApplyDefaultTimeRange(filterParams map[string]string) {
187186 filterParams ["block_timestamp_lte" ] = strconv .FormatInt (now .Unix (), 10 )
188187 }
189188}
190-
191- // ApplyDefaultTimeRangeToTransfers applies default time range to TransfersQueryFilter
192- // by converting time range to block number range if no block number filters are provided
193- func ApplyDefaultTimeRangeToTransfers (qf * storage.TransfersQueryFilter ) {
194- // Only apply if no block number filters are already set
195- if qf .StartBlockNumber == nil && qf .EndBlockNumber == nil {
196- // For transfers, we'll use a conservative approach and not apply time-based defaults
197- // since transfers already have block number filtering and the conversion from time to block
198- // would require additional RPC calls to get block numbers for timestamps
199- // This can be implemented later if needed
200- }
201- }
Original file line number Diff line number Diff line change @@ -125,9 +125,6 @@ func GetTokenTransfers(c *gin.Context) {
125125 SortOrder : c .Query ("sort_order" ),
126126 }
127127
128- // Apply default time range if no block number filters are provided
129- api .ApplyDefaultTimeRangeToTransfers (& qf )
130-
131128 // Define columns for query
132129 columns := []string {
133130 "token_type" ,
You can’t perform that action at this time.
0 commit comments