Ruaridh
ffef832d45
Upgrade to sdk v0.44.5 and add IBC ( #1106 )
...
- Upgrade cosmos-sdk to v0.44.5 from v0.39.2
- Add Legacy Tx Endpoint for backwards compatibility
- Add IBC v1.2.3 Support
Co-authored-by: DracoLi <draco@dracoli.com>
Co-authored-by: drklee3 <derrick@dlee.dev>
Co-authored-by: denalimarsh <denalimarsh@gmail.com>
Co-authored-by: Draco Li <draco@kava.io>
Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
2022-01-07 17:39:27 -07:00
Nick DeLuca
45c7785859
Add No Vote Information to Polling Status for Committee Proposals ( #1023 )
...
* add no votes information to polling status, updating events and querier
cli/rest responses. This allows clients to differeniate between no and
abstain votes
* update querier test to include no vote assertion
2021-10-12 09:51:01 -06:00
Denali Marsh
baf17b4ec8
Emit final proposal tally in close proposal event ( #919 )
...
* Committee types (#899 )
* committee types
* refactor to committee interface
* include tokencommitee stringer method
* add members to BaseCommittee
* address revisions
* update querier
* update querier
* fix compilation errors, tests, etc.
* Update MsgVote with vote type (#900 )
* add vote to msg
* update querier/rest
* update example cli vote msg
* remove incorrect comments
* address revisions
* update handler, stub keeper method
* add vote type to vote struct
* Committee module keeper logic for token holder governance (#902 )
* fix keeper/test compilation errors
* fix keeper/test compilation errors pt 2
* add setters to committee interface
* fix sims compilation errors
* fix incentive tests compilation errors
* update types, expected keepers
* core keeper logic
* don't allow bond denom
* implement vote tallying
* query proposal polling status
* update module keepers in app.go
* register committee interface
* fix failing incentive test
* commitee types tests
* refactor GetProposalResult by committee types
* update invariants
* implement most proposal keeper tests
* add nulls to custom enums
* remove abstain vote type
* add test for close proposal
* remove outdated TODOs
* update ProcessProposals
* switch on committee type directly
* reintroduce Abstain votes and update vote tallying
* don't allow divide by 0 panics
* delete unused setters on committee interface
* clean up tally methods return values for querier
* update enum validation to catch negative ints
* reintroduce setters for sims compilation
* address revisions
* remove commented out test
* implement ProcessProposals test
* additional revisions
* Committee migrations (#909 )
* add committee v14 legacy types
* update migration imports for compile
* addRegisterCodec() to committee v14 legacy types
* migrate committee genesis state from v14 to v15
* set stability committee permissions properly
* fix committee allowed params
* migration test, kava-7 sample data
* add concrete types to committees (#911 )
* revisions: migrate + tests
* register msgs on legacy codec
* Prepare Committee module for migrations (#906 )
* remove invariants
* edits
* fix abci test
* fix keeper querier tests
* use codec.Codec
* don't allow null vote types
* don't allow null tally option
* minor spelling fixes
* update example cli proposal
* fix cli tally query
* enable vote abstain from cli
* include vote options in cli help text
* call CloseProposal from handler
* custom enum marshaling
* emit final proposal tally
* marshal proposal tally to bytes
2021-06-22 16:49:46 +02:00
Denali Marsh
cae7503f7b
Token holder governance ( #917 )
...
* Committee types (#899 )
* committee types
* refactor to committee interface
* include tokencommitee stringer method
* add members to BaseCommittee
* address revisions
* update querier
* update querier
* fix compilation errors, tests, etc.
* Update MsgVote with vote type (#900 )
* add vote to msg
* update querier/rest
* update example cli vote msg
* remove incorrect comments
* address revisions
* update handler, stub keeper method
* add vote type to vote struct
* Committee module keeper logic for token holder governance (#902 )
* fix keeper/test compilation errors
* fix keeper/test compilation errors pt 2
* add setters to committee interface
* fix sims compilation errors
* fix incentive tests compilation errors
* update types, expected keepers
* core keeper logic
* don't allow bond denom
* implement vote tallying
* query proposal polling status
* update module keepers in app.go
* register committee interface
* fix failing incentive test
* commitee types tests
* refactor GetProposalResult by committee types
* update invariants
* implement most proposal keeper tests
* add nulls to custom enums
* remove abstain vote type
* add test for close proposal
* remove outdated TODOs
* update ProcessProposals
* switch on committee type directly
* reintroduce Abstain votes and update vote tallying
* don't allow divide by 0 panics
* delete unused setters on committee interface
* clean up tally methods return values for querier
* update enum validation to catch negative ints
* reintroduce setters for sims compilation
* address revisions
* remove commented out test
* implement ProcessProposals test
* additional revisions
* Committee migrations (#909 )
* add committee v14 legacy types
* update migration imports for compile
* addRegisterCodec() to committee v14 legacy types
* migrate committee genesis state from v14 to v15
* set stability committee permissions properly
* fix committee allowed params
* migration test, kava-7 sample data
* add concrete types to committees (#911 )
* revisions: migrate + tests
* register msgs on legacy codec
* Prepare Committee module for migrations (#906 )
* remove invariants
* edits
* fix abci test
* fix keeper querier tests
* add committee interface registration
* use codec.Codec
* don't allow null vote types
* don't allow null tally option
* minor spelling fixes
* update example cli proposal
* fix cli tally query
* enable vote abstain from cli
* include vote options in cli help text
* call CloseProposal from handler
* custom enum marshaling
* committee: fix failing tests (#921 )
* fix failing tests
* fix: spelling
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2021-06-07 18:08:03 +02:00
Kevin Davis
c63ecf908a
Cdp accumulators ( #751 )
...
* Add 'InterestFactor' to CDP type (#734 )
* update cdp type to include interest factor
* fix build
* Add cdp accumulator methods (#735 )
* remame fees to interest
* add accumulate interest method
* add basic test
* add note
* address review comments
* update tests
* Add sync cdp interest method (#737 )
* remame fees to interest
* add accumulate interest method
* add basic test
* add note
* address review comments
* update tests
* remove old fee functions
* add method to synchronize cdp interest
* add multi-cdp tests
* add test with many blocks
* add test for interest getter
* address review comments
* calculate time difference then convert to seconds
* fix: update collateral index when syncing interest
* fix: differentiate between case when apy is zero and all fees are being rounded to zero
* fix: round time difference properly
* update cdp genesis state and migrations (#738 )
* remame fees to interest
* add accumulate interest method
* add basic test
* add note
* address review comments
* update tests
* remove old fee functions
* add method to synchronize cdp interest
* add multi-cdp tests
* add test with many blocks
* add test for interest getter
* update cdp genesis state and migrations
* address review comments
* calculate time difference then convert to seconds
* fix: update collateral index when syncing interest
* fix: differentiate between case when apy is zero and all fees are being rounded to zero
* fix: simplify add/remove/update collateral index
* update genesis state to include total principal amounts
* update migration
* Delete kava-4-cdp-state-block-500000.json
* Add cdp liquidations by external keeper (#750 )
* feat: split liquidations between external keepers and automated begin blocker
* address review comments
* USDX incentive accumulators (#752 )
* feat: split liquidations between external keepers and automated begin blocker
* wip: refactor usdx minting incentives to use accumulators/hooks
* wip: refactor usdx minting claim object
* feat: use accumulators/hooks for usdx minting rewards
* fix: get tests passing
* fix: don't create claim objects unless that cdp type is eligable for rewards
* add begin blocker
* update client
* cleanup comments/tests
* update querier
* address review comments
* fix: check for division by zero
* address review comments
* run hook before interest is synced
* Remove savings rate (#764 )
* remove savings rate
* remove savings rate from debt param
* update migrations
* address review comments
* Add usdx incentives calculation test (#765 )
* add usdx incentive calculation test
* update reward calculation
* add allowable error to test criteria
* Update x/incentive/keeper/rewards_test.go
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* fix: remove old fields from test genesis state
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
2021-01-18 12:12:37 -07:00
Kevin Davis
dbb8f387f9
fix: use correct committee params ( #640 )
2020-08-30 10:47:07 -04:00
Kevin Davis
5fc85f10a6
Add rate limiting to bep3 assets ( #623 )
...
* feat: use only module account for bep3 txs
* wip: add time-based supply limits
* add tests and sims
* update genesis tests
* fix migration, committee tests
* update migrations
* fix: set previous block time in begin block
* update store decoder
* add additional bep3 params to committee
* revert incorrect rebase changes
* add migration test
* address review comments
2020-08-26 22:05:27 -04:00
Kevin Davis
daa1b2bb83
Add collateral type to cdp ( #629 )
...
* add collateral type field to cdp and collateral param
* fix upstream tests
* fix simulations
* fix validation logic
* update incentive to use collateral type instead of denom
* use collateral type instead of denom in cdp
* remove unused code
* address review comments
2020-08-21 15:42:46 -04:00
Kevin Davis
790753f156
BEP3: support multiple assets ( #616 )
...
* wip: refactor to allow multiple bep3 assets
* update tests
* sims: validate asset before claiming
* move asset supply to params
* update tests
* fix sims
* fix tests
* wip: add migration from v0.9 -> v0.10 bep3
* fix build and migration tests
* nit: rename file
* move asset supply out of params
* update committee tests
* fix sims
* address review comments
* address review comments
* address review comments
2020-08-17 11:06:59 -04:00
Nick DeLuca
a68ef74b07
Query old blocks for proposals in CLI ( #598 )
...
* move file to query.go (we are adding functionality so specific name
doesn't fit anymore)
* Add tx search for proposals in cli query proposal
* add rest support, height support for rest api, and add go doc string
* add in deadline calculation
* update changelog
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-06-29 19:39:35 -04:00
Ruaridh
b539820c88
Add raw params querier ( #591 )
...
* add raw-params cmd
* add querier test
* update changelog
2020-06-23 09:17:08 -04:00
Federico Kunze
bfb9f7e20a
cleanup begin/end block ( #553 )
...
* cleanup begin/end block
* update cdp BeginBlocker
* update dist mint
* fix tests
* typo
* add comment on CloseExpiredAuctions
* fix tests
2020-06-17 05:09:44 -04:00
Kevin Davis
ade6edb918
[R4R] Add liquidation pricefeed ( #524 )
...
* add parameter for liquidation pricefeed
2020-05-24 09:42:46 -04:00
Ruaridh
c28bc03248
Committtee audit revisions ( #510 )
...
* comments from review
Co-authored-by: Sunny Aggarwal <sunnya97@protonmail.ch>
Co-authored-by: jmahess <maheswaran@google.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* add vote methods
* add draft new param change permission
* add and update tests
* rename ParamChangePermission
* account for perms becoming invalid at a later time
* add debtParam to permission
* add bep3 AssetParam to permissions
* add pricefeed Markets to permission
* add upgrade permission
* move proposal passing to the begin blocker
* fix iteration bug
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* address todos and audit comments
* add proposal examples
* refactor handler to be easier to read
* address review comments
* update comments
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: Sunny Aggarwal <sunnya97@protonmail.ch>
Co-authored-by: jmahess <maheswaran@google.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-15 15:25:49 -04:00
Kevin Davis
deef10a872
add voter address to vote event
2020-05-07 16:58:39 -04:00
Ruaridh
23a5c7b969
Add committee simulations ( #431 )
...
* first pass at genesis and msgs
* add proposal generation
* add permission generation
* add decoder
* add invariants
* add committee change proposal generator
* improve committee change proposal generation
* fix error formatting
* update sims to v0.38
* Update x/committee/keeper/invariants.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* Update x/committee/keeper/invariants.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* tidy up comments
* tidy up random helpers
* add committee to ImportExport test
* add member check to vote invariant
* fix comment wording
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-05-04 17:17:20 -04:00
Federico Kunze
9743f356be
Merge branch 'master' of github.com:Kava-Labs/kava into linters
2020-04-30 10:31:20 -04:00
Kevin Davis
22315cc3ca
add committee to sims ( #479 )
...
* fix: update test for cdp breaking changes
* fix: add committee to sims
2020-04-30 10:27:37 -04:00
Federico Kunze
fe72a24aa0
update format
2020-04-30 10:23:41 -04:00
rhuairahrighairigh
073cd7ebda
update module to v0.38
2020-04-27 19:19:05 +01:00
rhuairahrighairigh
631b87eaf0
apply various PR comments
2020-04-27 15:37:25 +01:00
rhuairahrighairigh
c17de631d2
add nicer keeper get methods
2020-04-27 15:04:47 +01:00
rhuairahrighairigh
20c02a6a54
add permissions tests
2020-04-27 13:57:47 +01:00
rhuairahrighairigh
c231912642
add handler tests
2020-04-26 15:28:57 +01:00
rhuairahrighairigh
196ecf7f30
improve proposal tests
2020-04-25 17:39:59 +01:00
rhuairahrighairigh
ebb6366837
address various pr comments
2020-04-25 00:22:56 +01:00
rhuairahrighairigh
ccad1f82e2
switch to non length prefixed marshalling
2020-04-25 00:05:54 +01:00
rhuairahrighairigh
5c280696fb
refactor begin blocker
2020-04-24 23:15:51 +01:00
Ruaridh
73dc488239
Apply suggestions from code review
...
Co-Authored-By: Denali Marsh <denali@kava.io>
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
2020-04-24 19:15:57 +01:00
rhuairahrighairigh
4298564096
address minor TODOs
2020-03-30 14:06:31 +01:00
rhuairahrighairigh
074bb246a8
add custom errors
2020-03-29 20:43:25 +01:00
rhuairahrighairigh
e228aa6659
add events
2020-03-27 20:28:51 +00:00
rhuairahrighairigh
57f4ca7c9a
add mre fields to committee type
2020-03-27 18:34:03 +00:00
rhuairahrighairigh
c50f6bc9fa
refactor out vote tallying
2020-03-26 20:17:49 +00:00
rhuairahrighairigh
b31cfbe39b
add gov client handlers
2020-03-23 14:32:50 +00:00
rhuairahrighairigh
fbf67b4527
add committee change gov proposals
2020-03-21 18:06:58 +00:00
rhuairahrighairigh
4ef5b7d56f
add untested cli methods
2020-03-13 23:13:42 +00:00
rhuairahrighairigh
a0e4ee7736
add querier
2020-03-13 15:11:31 +00:00
rhuairahrighairigh
f773f7f278
add proposal voting deadlines
2020-03-12 17:05:40 +00:00
rhuairahrighairigh
029842168a
address some TODOs
2020-03-11 23:52:54 +00:00
rhuairahrighairigh
5911e648b7
improve code organisation
2020-03-11 19:52:25 +00:00
rhuairahrighairigh
e473d972ec
add vote tallying and tests
2020-03-11 19:27:36 +00:00
rhuairahrighairigh
f9dab88c16
add main keeper methods
2020-03-11 00:58:42 +00:00
rhuairahrighairigh
8c64fd3750
add keeper delete methods
2020-03-10 23:28:25 +00:00
rhuairahrighairigh
a145846ed2
add get set methods
2020-03-10 23:16:22 +00:00
rhuairahrighairigh
f2e4956d88
hook into app to get integration tests running
2020-03-10 22:29:16 +00:00
rhuairahrighairigh
cae6cb196c
make builds pass
2020-03-10 21:41:10 +00:00
rhuairahrighairigh
2ab6c4669f
rename modules and tidy
2020-03-04 19:16:27 +00:00