Skip to content

Commit

Permalink
Use on chain nav values for asset prices for markers (#556)
Browse files Browse the repository at this point in the history
* add proto files for navs

* add client method

* move logic to use new flow structure, move most business logic out of scheduler and into service

* move control of time to service

* update logging and refactor a few things

* add proper block time

* correctly calculate usd price per unit with extension, add tests for extension

* fix lints

* add hash price update from cmc price

* remove version tag and commented out config

* add new protos, refactor service structures

* remove unused imports, revert compose file

* import new protos, refactor to us pagination for limits

* use fixed delayed for 5 minute scheduled tasks

* add marker address, refactor

* fix lint

* add change log

* revert db port changes used for testing
  • Loading branch information
nullpointer0x00 authored Oct 14, 2024
1 parent 7f16bcb commit 1c18a51
Show file tree
Hide file tree
Showing 26 changed files with 3,701 additions and 172 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Features
* Add hash price support for nav values from on chain events [#543](https://github.com/provenance-io/explorer-service/pull/543)
* Integrate on-chain NAV data into historical hash price calculations [#555](https://github.com/provenance-io/explorer-service/pull/555)
* Use on-chain NAV data for latest asset pricing on markers [#556](https://github.com/provenance-io/explorer-service/pull/556)

### Improvements

Expand Down
17 changes: 0 additions & 17 deletions docker/docker-compose-db.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
explorer-postgres:
image: postgres:13.2
Expand All @@ -15,19 +14,3 @@ services:
volumes:
pg-local-testnet:

#
#services:
# explorer-postgres:
# image: postgres:13.2
# container_name: postgres-local-mainnet
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=password1
# ports:
# - 5432:5432
# volumes:
# - ./db-init:/docker-entrypoint-initdb.d/ # inits the db with username/password
# - pg-local-mainnet:/var/lib/postgresql/data
#
#volumes:
# pg-local-mainnet:
Loading

0 comments on commit 1c18a51

Please sign in to comment.