From 1c98706d9131929fe9bf605dcf099bac0a9590a9 Mon Sep 17 00:00:00 2001 From: NibiruHeisenberg <101130700+NibiruHeisenberg@users.noreply.github.com> Date: Wed, 3 Aug 2022 13:33:57 -0700 Subject: [PATCH 1/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 312440993..c1140e8fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,7 +40,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [v0.12.0](https://github.com/NibiruChain/nibiru/releases/tag/v0.12.0) - 2022-08-03 ### Improvements @@ -79,7 +79,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#741](https://github.com/NibiruChain/nibiru/pull/741) - remove unused code and refactored variable names. * [#742](https://github.com/NibiruChain/nibiru/pull/742) - Vpools are not tradeable if they have invalid oracle prices. * [#739](https://github.com/NibiruChain/nibiru/pull/739) - Bump github.com/spf13/viper from 1.11.0 to 1.12.0 - + ### API Breaking * [#721](https://github.com/NibiruChain/nibiru/pull/721) - Updated proto property names to adhere to standard snake_casing and added Unlock REST endpoint From d436ba58d5d069fd91072e82571f0ed5584f480c Mon Sep 17 00:00:00 2001 From: Agent Smith Date: Thu, 4 Aug 2022 18:17:07 +0200 Subject: [PATCH 2/3] fix panic --- app/app.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 0b514ef9b..6888b5097 100644 --- a/app/app.go +++ b/app/app.go @@ -443,15 +443,16 @@ func NewNibiruApp( app.PricefeedKeeper, ) + app.EpochsKeeper = epochskeeper.NewKeeper( + appCodec, keys[epochstypes.StoreKey], + ) + app.PerpKeeper = perpkeeper.NewKeeper( appCodec, keys[perptypes.StoreKey], app.GetSubspace(perptypes.ModuleName), app.AccountKeeper, app.BankKeeper, app.PricefeedKeeper, app.VpoolKeeper, app.EpochsKeeper, ) - app.EpochsKeeper = epochskeeper.NewKeeper( - appCodec, keys[epochstypes.StoreKey], - ) app.EpochsKeeper.SetHooks( epochstypes.NewMultiEpochHooks(app.StablecoinKeeper.Hooks(), app.PerpKeeper.Hooks()), ) From 3c7047f59caba946832d3d67a4d868b932b5baf2 Mon Sep 17 00:00:00 2001 From: Agent Smith Date: Thu, 4 Aug 2022 18:26:25 +0200 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1140e8fc..9f72a767d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +* [#796](https://github.com/NibiruChain/nibiru/pull/796) - fix bug that caused that epochKeeper was nil when running epoch hook from Perp module + ## [v0.12.0](https://github.com/NibiruChain/nibiru/releases/tag/v0.12.0) - 2022-08-03 ### Improvements