From 3a5186b086c0d7f1325e7d04ad1b68aca08f73f4 Mon Sep 17 00:00:00 2001 From: tansawit Date: Mon, 8 Jun 2020 11:36:11 +0700 Subject: [PATCH 1/3] chain: added moniker to delegations view table --- chain/db/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/db/db.go b/chain/db/db.go index 353e904730..b737eadadf 100644 --- a/chain/db/db.go +++ b/chain/db/db.go @@ -74,6 +74,7 @@ func NewDB(dialect, path string) (*BandDB, error) { CAST(shares AS DECIMAL) / CAST(delegator_shares AS DECIMAL) * 100 as share_percentage, CAST(shares AS DECIMAL) * CAST(current_reward AS DECIMAL) / CAST(delegator_shares AS DECIMAL) + (CAST(current_ratio AS DECIMAL) - CAST(last_ratio AS DECIMAL)) * CAST(shares AS DECIMAL) as reward, validator_address, + moniker, delegator_address FROM delegations JOIN validators ON validator_address = operator_address; `) From 6b7035b7c9da7091627bc2380f01bc3045e95162 Mon Sep 17 00:00:00 2001 From: tansawit Date: Mon, 8 Jun 2020 11:38:36 +0700 Subject: [PATCH 2/3] updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc35a9e22e..f0d8bf40cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Chain +- (feat) [\#1901](https://github.com/bandprotocol/bandchain/pull/1901) Added `moniker` field to `delegations_view` table. - (feat) [\#1879](https://github.com/bandprotocol/bandchain/pull/1879) Keep `Request` and `Report` around. We avoid premature optimization at the moment. - (feat) [\#1873](https://github.com/bandprotocol/bandchain/pull/1873) Add `in-before-resolve` field in `Report` data structure. - (feat) [\#1875](https://github.com/bandprotocol/bandchain/pull/1875) Add CLI and REST query interface for request. From fc6a1f3fcb3cd70251932b5d7a86e5c18459698e Mon Sep 17 00:00:00 2001 From: tansawit Date: Mon, 8 Jun 2020 11:39:16 +0700 Subject: [PATCH 3/3] updated changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0d8bf40cd..638e93a7cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ ### Chain -- (feat) [\#1901](https://github.com/bandprotocol/bandchain/pull/1901) Added `moniker` field to `delegations_view` table. +- (impv) [\#1901](https://github.com/bandprotocol/bandchain/pull/1901) Added `moniker` field to `delegations_view` table. - (feat) [\#1879](https://github.com/bandprotocol/bandchain/pull/1879) Keep `Request` and `Report` around. We avoid premature optimization at the moment. - (feat) [\#1873](https://github.com/bandprotocol/bandchain/pull/1873) Add `in-before-resolve` field in `Report` data structure. - (feat) [\#1875](https://github.com/bandprotocol/bandchain/pull/1875) Add CLI and REST query interface for request.