Skip to content

Commit

Permalink
Update pricing data with onchain nav data (#543)
Browse files Browse the repository at this point in the history
* Add initial protos, test that request works and made a round trip

* add fetch on chain nav data call to call flow api, add a test to run it locally

* add temp function in test

* keep test disabled for now

* add calculate price per hash method

* remove unused import

* add on-chain nav values for hash price

* fix lints

* simplify update token latest job

* add configurations for flow api

* add flow-api-url config property to resources

* fix lints

* make temp logging statements

* end file with endline

* add component annotation to grpc client

* add some temp logs

* add temp logging

* remove logging

* convert nhash volume to hash volume

* add a temp log

* fix volume amount to hash volume multiplied by hash price

* add price fetcher strategy pattern

* finish setting up fetcher pattern wiring

* fix lints

* add legacy/deprecated fetcher for removal in future PR

* fix lints

* add fetcher tests remove old ones from token service

* add a few more tests

* fix lints

* fre more lint fixes

* fix price per hash calculation, refactor and add better tests

* fix linting

* fix tests, add temp logging

* fix lint

* add a manual test

* remove some logging

* add change log

* remove unused injection, add uusdt.figure.se to historical price fetcher

* fix lint

* update test with new uusdt
  • Loading branch information
nullpointer0x00 authored Oct 1, 2024
1 parent 671b1a0 commit fc1d8b6
Show file tree
Hide file tree
Showing 26 changed files with 5,460 additions and 153 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Ref: https://keepachangelog.com/en/1.0.0/

## Unreleased

### Features
* Add hash price support for nav values from on chain events [#543](https://github.com/provenance-io/explorer-service/pull/543)

### Improvements

* Add limit of 1 to missing block queries [#544](https://github.com/provenance-io/explorer-service/pull/544)
Expand Down
Loading

0 comments on commit fc1d8b6

Please sign in to comment.