mx-api-service icon indicating copy to clipboard operation
mx-api-service copied to clipboard

account auctions endpoint

Open cfaur09 opened this issue 3 years ago • 1 comments

Proposed Changes

  • add new service: nft marketplace service

How to test (testnet)

  • accounts/erd14wxx9p9kld06w66n6lcxcchv976n7crzma8w7s3tkaqcme8hr7fqdhhfdg/account/stats -> should return account stats
  • collections/CREATECOLL-d5022b/collection/stats - should return nfts auction details for a given collection
  • explore/stats - should return general marketplace details
  • explore/nfts/stats - should return general nfts stats details
  • accounts/erd16l5xmjjxhstu02g6vk24ej3p64y6mnypd5e5mectuahpueq5r9rsqh3npx/auctions/state/running - should return all auctions with state "Running" Available state: Running, Ended, Claimable
[
    {
        "auctionId": "507577",
        "identifier": "CITYNFT-26cded-01",
        "collection": "CITYNFT-26cded",
        "status": "Running",
        "creationDate": 1663580266,
        "endDate": 1679218647,
        "marketplace": "frameit",
        "marketplaceAuctionId": 34213,
        "owner": "erd16l5xmjjxhstu02g6vk24ej3p64y6mnypd5e5mectuahpueq5r9rsqh3npx",
        "tags": [
            "elrond",
            "cyberpunkcity",
            "citynft",
            "metaverse",
            "hotel"
        ]
    }
]
  • collections/MXB9999-c34b7c?withAuctions=true - collection response should contains auctionsStats attribute , When withAuctions = false, auctionsStats is not defined

cfaur09 avatar Nov 14 '22 12:11 cfaur09

Codecov Report

Base: 65.85% // Head: 65.29% // Decreases project coverage by -0.56% :warning:

Coverage data is based on head (e2d9099) compared to base (7c72608). Patch coverage: 42.85% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #892      +/-   ##
===============================================
- Coverage        65.85%   65.29%   -0.56%     
===============================================
  Files              540      557      +17     
  Lines            13962    14246     +284     
  Branches          1411     1431      +20     
===============================================
+ Hits              9194     9302     +108     
- Misses            3534     3690     +156     
- Partials          1234     1254      +20     
Flag Coverage Δ
integrationtests 65.28% <42.85%> (-0.56%) :arrow_down:
unittests 27.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/endpoints/accounts/account.controller.ts 52.48% <ø> (ø)
src/endpoints/collections/collection.controller.ts 56.32% <ø> (ø)
...ts/marketplace/entities/collection.stats.filter.ts 0.00% <0.00%> (ø)
.../marketplace/entities/explore.collections.stats.ts 0.00% <0.00%> (ø)
src/endpoints/mex/mex.controller.ts 59.37% <ø> (ø)
src/endpoints/mex/mex.token.service.ts 74.03% <0.00%> (ø)
...ies/xexchange/mex.economics/mex.economics.query.ts 87.50% <ø> (ø)
.../xexchange/mex.economics/mex.economics.resolver.ts 100.00% <ø> (ø)
...ql/entities/xexchange/mex.farms/mex.farms.input.ts 87.50% <ø> (ø)
...ql/entities/xexchange/mex.farms/mex.farms.query.ts 88.88% <ø> (ø)
... and 35 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Nov 14 '22 13:11 codecov-commenter

Test passed :green_circle:

cfaur09 avatar Feb 14 '23 14:02 cfaur09