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

decentraland / atlas-server
40%
master: 40%

Build:
Build:
LAST BUILD BRANCH: add-ai-agent-context-to-readme
DEFAULT BRANCH: master
Repo Added 13 Jan 2023 05:55PM UTC
Token SipBXdcBfPBxOdNjifDZ3pmj881y3Je3j regen
Build 167 Last
Files 39
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/1.5.0
branch: refs/tags/1.5.0
CHANGE BRANCH
x
Reset
Sync Branches
  • refs/tags/1.5.0
  • add-ai-agent-context-to-readme
  • chore/add-space
  • chore/bump-libs
  • chore/readme-change
  • chore/trigger-deploy
  • docs/api
  • feat/add-release-job
  • feat/add-tracing-and-logging
  • feat/cache-tiles-s3
  • feat/cors
  • feat/feature-flag
  • feat/improve-atlas-cache
  • feat/instrument-http-requests-logger
  • feat/migrate-to-new-ci-infra
  • feat/redeploy-atlas-server
  • feat/sanitize-estates-id
  • feat/tiles-with-trades
  • feat/trigger-build
  • feat/trigger-deploy
  • feat/try-to-use-s3
  • feat/update-graph-component
  • feat/use-node-18-alpine
  • fix/add-console-update
  • fix/add-last-modified-tests
  • fix/estates-trades-not-showing
  • fix/expiration-date-lands
  • fix/filter-nulled-rental-listings
  • fix/no-cache-on-last-updated
  • fix/parcel-updated-at
  • fix/re-trigger-deployment
  • fix/remove-lastModifiedHeader-temporary
  • fix/remove-modified-middleware
  • fix/remove-old-infra-code
  • fix/rental-listing-calculation
  • fix/save-metrics-of-all-updates
  • fix/small-change
  • fix/trigger-redeployment
  • fix/udpdate-deps
  • fix/ulimit
  • fix/update-dep
  • fix/update-rentals-with-milliseconds
  • fix/update-schemas
  • fix/updated-at-calculation-ms
  • fix/use-seconds
  • fix/workflow
  • fzavalia-patch-1
  • master
  • refs/heads/master
  • refs/tags/1.0.0
  • refs/tags/1.0.1
  • refs/tags/1.1.0
  • refs/tags/1.13.17
  • refs/tags/1.2.0
  • refs/tags/1.2.1
  • refs/tags/1.3.0
  • refs/tags/1.3.1
  • refs/tags/1.3.10
  • refs/tags/1.3.11
  • refs/tags/1.3.12
  • refs/tags/1.3.13
  • refs/tags/1.3.14
  • refs/tags/1.3.15
  • refs/tags/1.3.16
  • refs/tags/1.3.18
  • refs/tags/1.3.19
  • refs/tags/1.3.2
  • refs/tags/1.3.3
  • refs/tags/1.3.4
  • refs/tags/1.3.5
  • refs/tags/1.3.6
  • refs/tags/1.3.7
  • refs/tags/1.3.8
  • refs/tags/1.3.9
  • refs/tags/1.4.0
  • refs/tags/1.4.1
  • refs/tags/1.5.1

11 Feb 2025 01:09PM UTC coverage: 40.088% (+1.8%) from 38.329%
13264627278

push

github

web-flow
feat: Add trades to tiles (#124)

# Add Off-Chain Trade Prices to Atlas Tiles

## Overview
This PR adds support for displaying off-chain trade prices in the Atlas
map tiles. Previously, the map only showed prices from on-chain orders,
but now it will also display prices from off-chain trades (marketplace
trades), using the most recent price between both sources.

## Changes
- Added new `trades` component to fetch active trades from the
marketplace database
- Modified map component to integrate off-chain trade prices with
existing tile data
- Added price comparison logic to use the most recent price between
on-chain orders and off-chain trades
- Added tests for the new trades component
- Improved logging for better debugging and monitoring

## Technical Details
- Created a new database query to fetch active trades filtered by parcel
and estate categories
- Added `updateTilesWithTrades` function that:
  - Fetches active trades from the database
  - Matches trades with tiles based on contract address and token ID
- Updates tile prices if a trade is more recent than the current
on-chain order
- Integrated trade price updates in both initialization paths (cached
and fresh data)

## Testing
- Added unit tests for the trades component covering:
  - Successful trade fetching
  - Error handling
  - Category filtering
- Manually tested price updates with both on-chain orders and off-chain
trades

## Notes
- The system prioritizes the most recent price between on-chain orders
and off-chain trades
- Trade prices are converted from wei to ETH for display
- All price updates are persisted to S3 for caching

159 of 217 branches covered (73.27%)

Branch coverage included in aggregate %.

167 of 260 new or added lines in 4 files covered. (64.23%)

1485 of 3884 relevant lines covered (38.23%)

5.71 hits per line

Relevant lines Covered
Build:
Build:
3884 RELEVANT LINES 1485 COVERED LINES
5.71 HITS PER LINE
Source Files on refs/tags/1.5.0
  • Tree
  • List 39
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
13264627278 refs/tags/1.5.0 feat: Add trades to tiles (#124) # Add Off-Chain Trade Prices to Atlas Tiles ## Overview This PR adds support for displaying off-chain trade prices in the Atlas map tiles. Previously, the map only showed prices from on-chain orders, but now it w... push 11 Feb 2025 02:01PM UTC web-flow github
40.09
See All Builds (128)

Badge your Repo: atlas-server

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
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