• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / marketplace / 6455038175

09 Oct 2023 09:54AM UTC coverage: 39.453% (-0.7%) from 40.103%
6455038175

Pull #2030

github

juanmahidalgo
fix: tracking not triggering correctly for creators
Pull Request #2030: Feat: new search bar component

2190 of 6949 branches covered (0.0%)

Branch coverage included in aggregate %.

206 of 206 new or added lines in 19 files covered. (100.0%)

4134 of 9080 relevant lines covered (45.53%)

16.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/webapp/src/modules/vendor/decentraland/builder/api.ts
1
import { BaseAPI } from 'decentraland-dapps/dist/lib/api'
2
import { AddressesByTagResponse, BuilderCollectionAttributes } from './types'
3
import { config } from '../../../../config'
4
import { retryParams } from '../utils'
5

6
export const BUILDER_SERVER_URL = config.get('BUILDER_SERVER_URL')!
27✔
7

8
class BuilderAPI extends BaseAPI {
9
  fetchAddressesByTag = async (
27✔
10
    tags: string[]
11
  ): Promise<AddressesByTagResponse> => {
12
    return this.request(
×
13
      'get',
14
      `/addresses?${tags.map(tag => `tag=${tag}`).join('&')}`
×
15
    )
16
  }
17

18
  fetchPublishedCollectionsBySearchTerm = async ({
27✔
19
    searchTerm,
20
    limit
21
  }: {
22
    searchTerm: string
23
    limit: number
24
  }): Promise<BuilderCollectionAttributes[]> => {
25
    return this.request(
×
26
      'get',
27
      `/collections?is_published=true&status=approved&q=${searchTerm}&limit=${limit}`
28
    )
29
  }
30

31
  contentUrl(hash: string) {
32
    return `${this.url}/storage/contents/${hash}`
4✔
33
  }
34

35
  fetchItemContent = async (
27✔
36
    collectionAddress: string,
37
    itemId: string
38
  ): Promise<Record<string, string>> => {
39
    return this.request('get', `/items/${collectionAddress}/${itemId}/contents`)
×
40
  }
41
}
42

43
export const builderAPI = new BuilderAPI(BUILDER_SERVER_URL, retryParams)
27✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc