Kevin Davis
c416423412
[R4R] harvest fixes ( #673 )
...
* fix: don't allow denoms other than hard for harvest rewards
* fix: parse cli flags correctly
* fix: convert duration to seconds before calculating time elapsed
* fix: don't distribute rewards before they start or after they end
* fix: return correct message type
2020-09-30 14:44:56 -04:00
Kevin Davis
993d36d05a
Incentive migration ( #666 )
...
* draft kava-3 to kava-4 incentive migration
* fix: use collateral type instead of denom
* add additional claim multiplier to incentives
* remove testdata file creation
2020-09-30 14:41:46 -04:00
Kevin Davis
d577711056
kava-3 to kava-4 pricefeed migration ( #664 )
2020-09-30 14:33:48 -04:00
Denali Marsh
6e923d70a4
Add Harvest, Issuance modules to swagger ( #670 )
...
* add harvest, issuance modules to swagger
* update Harvest tag
2020-09-28 08:36:31 +02:00
Kevin Davis
8e01b0b3f4
fix (harvest-cli): parse correct arg index ( #669 )
2020-09-27 11:47:49 -04:00
Denali Marsh
5ce045f46f
rename hvt ( #661 )
2020-09-25 11:07:20 -04:00
Kevin Davis
087b10d15f
fix: use previous version of liche ( #660 )
2020-09-22 17:44:58 -04:00
Kevin Davis
2e250cc750
fix: use correct querier endpoint ( #659 )
2020-09-22 10:42:30 -04:00
Kevin Davis
fe38c4aa43
harvest v1 ( #658 )
...
* wip: and types and keeper methods
* add keeper tests
* add client
* add spec and events
* respond to review comments
* apply suggestions from review
* feat: add test for validator vesting case
* use int64 for multiplier type
* remove incentive changes
2020-09-21 17:08:43 -04:00
Kevin Davis
7292b8843a
[R4R] feat: add variable length lockups for incentive rewards ( #655 )
...
* fix: update params in spec to match implementation
* feat: add variable length lockups for incentive rewards
* fix typos
* update spec
* address review comments
* feat: improve claim test
2020-09-21 16:20:11 -04:00
Nick DeLuca
b1493d307c
swagger: fix bad indents and a key duplication error ( #657 )
2020-09-18 16:54:15 -04:00
Denali Marsh
e2f515ba9e
Querier improvements: CDP and Auction priority 1 queries ( #644 )
...
* query auction by lot owner
* add SavingsRateDistributed to store
* v2cdps: filtered cdps query
* update v2cdps cli examples
* add savings rate dist counter to begin blocker
* implement savings rate dist cli query
* implement cdp REST queries
* minor auction CLI/REST updates
* fix auction querier bug
* update REST endpoint to 'cdps'
* update to savings-rate-dist
* update SavingsRateDistributed get/set
* update tests
* fix savings rate dist rounding errors
* 'collateralDenom' -> 'collateralType'
* refactor 'v2cdps' -> 'cdps', add ratio param
* fix augmented CDP type, msg string() method
* fix cdp querier test
* filter query results efficiently
* querier tests
* limit type iteration if owner defined
* improve savings rate dist genesis validation
* default sdk.Dec{} to sdk.ZeroDec in queries
* update condition logic for finding intersection
* fix cdp querier filtering
* Update kava-4 swagger (#653 )
* add collateral_type, update cdp params
* savings rate, auctions, get cdps
* drop owner from AuctionResponse
* remove duplicate collateral denom
* update query paths with {collateral-type}
2020-09-16 20:45:10 -04:00
Kevin Davis
641d946ae7
[R4R] address potential panic in validator vesting ( #645 )
...
* emit event instead of panic on undelegation errors
2020-09-16 20:44:15 -04:00
Ruaridh
64aa61d285
Update to sdk v0.39.x ( #625 )
...
* fix cli tests
- add pruning config
- add the new build path
* bump sdk version, make changes to get kvd running
* add draft multi-tx test
* add multiple txs per block test
* remove unused file
* sync VV account json format with sdk account types
* add another jsons test
* refactor coin creation in tests
* add missed file
* update changelog
2020-09-16 15:16:14 -04:00
Kevin Davis
15a7dc610e
[R4R] feat: Fetch auctions from historical state ( #649 )
...
* feat: query old blocks for auctions
* fix: add next auction id to querier
* fix: set boolean when found
* fix: use correct query route and params
* apply suggestions from review comments
2020-09-16 14:58:11 -04:00
Kevin Davis
7085253ac9
fix: ignore appstore links ( #650 )
2020-09-15 10:33:18 -04:00
Denali Marsh
6cdccbad4c
Add Sentinel bot to docs ( #652 )
...
* add sentinel
* update discord invite link
2020-09-15 13:20:35 +02:00
Kevin Davis
c249746bf3
[R4R] feat: payout liquid claims without creating vesting account ( #651 )
...
* feat: payout liquid claims without creating vesting account
2020-09-14 16:18:21 -04:00
Denali Marsh
8966329643
add example to cli cmd ( #648 )
2020-09-11 14:58:22 +02:00
Ruaridh
0504f55e26
fix cli tests ( #609 )
...
- add pruning config
- add the new build path
2020-09-01 11:36:47 -04:00
Ruaridh
3e4e2ff659
update dockerfile file for speed ( #614 )
...
Co-authored-by: karzak <kjydavis3@gmail.com>
2020-09-01 11:35:37 -04:00
Ruaridh
2ffb1edd1f
Simulation fixes ( #527 )
...
* fix go version in dockerfile
* mix frequently occuring errors
* add missed import
* fix minor validator vesting sim bug
* fix auction sim bug
* fix docker build
* add todo from sim failure
* tidy up dockerfile
* update docs, add dockerignore to speed up builds
* Update simulations/README.md
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* add stack traces to logs for easier debugging
* replace root func with sdk version
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: karzak <kjydavis3@gmail.com>
2020-09-01 11:33:12 -04:00
Kevin Davis
f22139fcee
[R4R] return all claims for incentive queries ( #642 )
...
* feat: return all claims for incentive queries
* cleanup test comments
* add struct tags
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
2020-09-01 08:34:11 -04:00
Kevin Davis
4121b692a0
[R4R] Fix broken links ( #643 )
...
* remove broken link
* update old links from changelog/docs
* remove references to old version
2020-09-01 08:33:25 -04:00
Denali Marsh
deb1db04ad
Doc updates ( #628 )
...
* add community tools to docs
* update readme to v0.10.0
2020-08-31 09:46:39 -04:00
dependabot[bot]
b10d964f90
Bump lodash from 4.17.15 to 4.17.20 in /docs ( #641 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 09:46:18 -04:00
dependabot[bot]
20c1bd1189
Bump prismjs from 1.20.0 to 1.21.0 in /docs ( #622 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 09:40:25 -04:00
Kevin Davis
dbb8f387f9
fix: use correct committee params ( #640 )
2020-08-30 10:47:07 -04:00
Kevin Davis
a53fbc354a
fix: enforce cdp denom matches collateral type ( #638 )
2020-08-27 07:21:35 -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
c0006ca8eb
Update reward vesting length calculation ( #624 )
...
* use remaining length when sending coins to vesting account
* query claims that have corresponding claim periods
* cleanup comments
* remove debugging statements
* fix bug with inserting period in middle of vesting schedule
* apply review suggestion
2020-08-26 20:34:55 -04:00
Kevin Davis
fca16da84a
fix: return if supply limit hit in issuance sims ( #635 )
...
* fix: return if supply limit hit in issuance sims
2020-08-21 19:39:20 -04:00
Kevin Davis
b2eff063a8
fix: initialize issuance asset supplies at genesis ( #634 )
2020-08-21 19:24:31 -04:00
Kevin Davis
b356309d90
Add optional rate limits to issuance ( #627 )
...
* add rate-limiting and optional blocklists
* fix: check account is not nil
* add tests for rate-limiting
* update simulations
* fix typos
* remove unsued function arg
2020-08-21 18:56:20 -04:00
Kevin Davis
2a3192fa0e
fix: use collateral type in cdp simulations ( #632 )
2020-08-21 17:38:12 -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
Nick DeLuca
60d7f522e2
Fix Periodic Vesting Account JSON for Trust Wallet ( #630 )
...
* massage vesting account json to match cosmos-sdk/Account json for trust
wallet
* remove comment
2020-08-20 13:33:21 -04:00
Kevin Davis
e14466547d
Issuance module ( #599 )
...
* wip: issuance module
* add keeper and module methods
* add begin blocker
* add client
* update events
* add simulations
* ignore v0.8 migration tests for now
* ignore migration tests in ci
* add test suite
* update spec to match implementation details
* add unblock method
* address review comments
* fix typos
2020-08-17 13:09:02 -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
Kevin Davis
928ce5f064
initialize claim period ids if they don't exist ( #620 )
2020-07-29 13:06:14 -04:00
Kevin Davis
e9e038a2c4
fix: use correct recipient for bep3 tests ( #613 )
2020-07-21 17:48:31 -04:00
Ruaridh
9ae99ade27
fix bep3 calc-swapid address parsing ( #611 )
2020-07-21 16:23:40 -04:00
Nick DeLuca
86c0225174
encapsulate total principle calculation within cdp type and use ( #610 )
...
throughout codebase
2020-07-10 08:16:05 -05:00
Ruaridh
d83c43dcb4
Add legacy block and tx rest endpoints ( #602 )
...
* add block and tx endpoints
* add block legacy endpoint
2020-07-07 17:10:07 -04:00
Cyrus Goh
97a51479f6
Docs config ( #605 )
...
* bump 1.0.167
* code blocks sh → bash
* update color variables
* clean up sidebar, add footer
* sh → bash
* tweak kava logo.svg
* bump 1.0.168
* update sidebar, footer
Co-authored-by: denalimarsh <denalimarsh@gmail.com>
2020-07-03 02:00:29 -07:00
Kevin Davis
f2643e40e2
bump tendermint and cosmos-sdk versions ( #608 )
2020-07-02 19:48:43 -04:00
Kevin Davis
79e9a2c67a
add bep3 patch activation date ( #607 )
2020-07-02 13:37:53 -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
Kevin Davis
8001cbbfd7
Update asset supply when params change ( #604 )
...
* fix: check asset supply
* update begin blocker
* add activation height and tests
* fix: verify outgoing swap recipient
* validate recipient address for outgoing swaps
* update activation time
* remove unused files
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
2020-06-29 17:38:26 -04:00
Kevin Davis
ad33296d98
Use OS specific build directories ( #600 )
...
* feat: use os specific build directories
* fix typo
2020-06-24 14:21:01 -04:00