Skip to content

Commit

Permalink
v1.18.0 mainnet upgrade handler for net asset values and block height…
Browse files Browse the repository at this point in the history
… of pricing timestamp (#1888) (#1890)

* add nav setting method to update block height

* add new updates struct for navs, add recent navs

* add upgrade nav setter

* call upgrade nav adding funtion upgrade for v1.18.0

* add tests, add todo for removal

* change marker names

* fix test

* add changelog entry

* remove nhash from list

* fix final test error

Co-authored-by: Carlton Hanna <[email protected]>
  • Loading branch information
SpicyLemon and nullpointer0x00 authored Mar 22, 2024
1 parent 7f43f7c commit 194866d
Show file tree
Hide file tree
Showing 6 changed files with 8,807 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

* nothing
### Features

---
* Add upgrade handler to set net asset values and update block height for pio-mainnet-1 [PR 1888](https://github.com/provenance-io/provenance/pull/1888)

## [v1.18.0-rc3](https://github.com/provenance-io/provenance/releases/tag/v1.18.0-rc3) - 2024-03-19

Expand Down
1 change: 1 addition & 0 deletions app/navs_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
// GetPioMainnet1DenomToNav are net asset values for the pio-mainnet-1 taken at blockheight 13631650
// Source: https://figure.tech/service-pricing-engine/external/api/v1/pricing/marker/new?time=2023-11-07T17:59:59.999722Z
// NOTE: These should not be ran against any other network but pio-mainnet-1
// TODO: Remove with the saffron handlers.
func GetPioMainnet1DenomToNav() map[string]markertypes.NetAssetValue {
return map[string]markertypes.NetAssetValue{
"pm.participation.agreement.1bcslgccejhm9v3higsx7c": markertypes.NewNetAssetValue(types.NewInt64Coin(markertypes.UsdDenom, 1037949704), 1),
Expand Down
Loading

0 comments on commit 194866d

Please sign in to comment.