Commit Graph

648 Commits

Author SHA1 Message Date
Denali Marsh
3784b4971b
update bep3 docs for mainnet (#587)
* update bep3 docs for mainnet

* update make link-check
2020-06-15 04:37:28 -04:00
Kevin Davis
2eb6036f42
[R4R] Add client for kavadist module (#584)
* feat: add params query for kavadist
2020-06-12 15:45:07 -04:00
Kevin Davis
b422c29212
Update Changelog for kava-3 (#582)
* feat: update Changelog

* formatting fixes
2020-06-12 15:37:18 -04:00
Kevin Davis
447714d3e6
feat: Update readme for kava-3 (#583) 2020-06-12 11:07:07 -04:00
Alexander Bezobchuk
95a15367b6
Add local testnet to makefile (#545) 2020-06-11 21:40:46 -04:00
Nick DeLuca
3e63356c58
Cache redundant calculation in cdp RepayPrinciple (#569)
* fix exhibit 29 and remove redundant calcuation

* use better naming (totalPrincipal instead of totalDebt) and add comment
for future maintainers
2020-06-11 16:14:47 -04:00
Ruaridh
0ddae8609e
Add partial legacy rest server (#578)
* add minimal account endpoint

* add other account types

* add other unchanged endpoints
2020-06-11 15:53:38 -04:00
Nick DeLuca
890411b685
fix exhibit 48 - error message should match if statement (#580) 2020-06-11 14:33:36 -05:00
Nick DeLuca
25abdd10b5
Remove some redunancy in RepayPrinciple (#577)
* fix exhibit 30 - remove redunant conversions in adding principle to fee
amount, and store debt denom in local var to avoid calling getter
several times

* add deleted comment back
2020-06-11 14:32:39 -05:00
Nick DeLuca
5ba2706d56
Optimize calculation in savings distribution (#573)
* fix exhibit 33 by storing remaining surplus

* simplify with sdk.MinInt - if statement logic & assignment is just
taking the minimum
2020-06-11 14:25:32 -05:00
Nick DeLuca
7ae76b8440
Auctions Clean Up - Fixes redenancy and legibility (#576)
* resolve exhibit 41 - move redundant assignment into if block and only
assign if value is false.  No need to assign true to already true value.

* fix exhibit 43 - use existing auctionID variable instead of GetID

* use improved name for auction type in case statemnt

* rename a to auction in PlaceBidSurplus for legibility (part of exhibit 44)

* rename a to auctions in PlaceForwardBidCollateral (part of exhibit 44)

* rename a to auction in PlaceReverseBigCollateral for legibility (part of exhibit 44)

* rename a to auction in PlaceBidDebt for legibility (part of exhibit 44)

* renmae rest of a to auction variables for legibility and resolve exhibit
44

* one missed rename and a typo fix
2020-06-11 14:23:58 -05:00
Nick DeLuca
2a446fe530
fix misleading logging (#572) 2020-06-10 12:10:55 -04:00
Kevin Davis
12ef484b4f
update swagger for kava-3 (#561) 2020-06-10 11:02:00 -04:00
Nick DeLuca
3f043b90ac
Update GetTotalSurplus and GetTotalDebt to be consistent (#567)
* update GetTotalSurplus and GetTotalDebt code blocks to be consistent and
resolve feedback in exhibit 13

* spelling fix

* remove uneeded temp variables

* address PR feedback - use suite.Require() instead of default assertions
2020-06-10 10:18:13 -04:00
Cryptobabybear
a22ecd2f67
Feat/improve kava 3 migration docs (#575)
* feat:Amended docs for migration

* fix:Fixed typos and applied suggested changes

* feat: Add shasum hashes for each generated json and final genesis.json
2020-06-10 09:39:25 -04:00
Cryptobabybear
b99f1160d0
feat:Amended docs for migration (#571)
* feat:Amended docs for migration

* fix:Fixed typos and applied suggested changes
2020-06-09 22:25:31 -04:00
Ruaridh
2ed6fedc8b
Standardize hash instructions (#570)
* calculate hash using jq
* use jq for calculating hash
This standardizes new line endings
2020-06-09 13:34:42 -04:00
Nick DeLuca
44467569af
Fix Ineffectual if statements (#568)
* fix exhibits 19,20,28,32 ineffectual if statements

* Apply suggestions from code review

* Apply suggestions from code review

* Update x/cdp/keeper/cdp.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-09 07:07:58 -04:00
Kevin Davis
547c651c95
add description of pruning considerations (#566)
* add description of pruning considerations
2020-06-08 12:27:12 -07:00
Kevin Davis
15dedcfb4b
Update migration.md 2020-06-08 12:46:38 -04:00
Kevin Davis
be762ed212
Update migration.md 2020-06-08 12:45:03 -04:00
Kevin Davis
71f69e3066
add launch time at top 2020-06-08 12:42:04 -04:00
Ruaridh
72a9e13d6f
fix pruning section (#564) 2020-06-08 09:49:16 -04:00
Kevin Davis
87e7570bfd
Update README.md 2020-06-08 08:37:08 -04:00
dependabot[bot]
91161bfaa5
Bump websocket-extensions from 0.1.3 to 0.1.4 in /docs (#563)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 06:44:21 -04:00
Kevin Davis
d0afb4f1e1
update migration for patch release (#562) 2020-06-07 23:39:04 -04:00
Ruaridh
869189054d
Check Pruning Config (#560)
* add pruning config check

* patch cmd to update config
2020-06-07 23:26:02 -04:00
Kevin Davis
0328181c7d
information on tendermint pruning bug (#559) 2020-06-07 16:37:36 -04:00
Kevin Davis
91fe7a86c4
fix: use halt-time 2020-06-05 19:27:12 -04:00
Kevin Davis
bc43b6e9a3
feat: add discord link for coordination (#558) 2020-06-05 17:35:04 -04:00
Kevin Davis
1e553766c8
update readme and guide with v0.8 release info (#557) 2020-06-05 15:21:26 -04:00
Kevin Davis
dee456557a
add halt time instructions (#556)
* add halt time instructions

* fix typo
2020-06-05 14:39:57 -04:00
Denali Marsh
978efbcc49
Fix bep3 sims determinism (#555)
* fix bep3 sims

* remove newline
2020-06-05 14:24:08 -04:00
Kevin Davis
bc804040b3
fix migration instructions typo (#554) 2020-06-05 12:25:29 -04:00
Denali Marsh
c799282030
add twitter (#548) 2020-06-05 08:59:30 -04:00
Federico Kunze
b2a4369d4e
ValidatorVestingAccount validation (#552) 2020-06-05 08:59:16 -04:00
Kevin Davis
5723001390
fix: populate collateral denoms once (#551) 2020-06-05 08:41:13 -04:00
Kevin Davis
f97580c773
add migration proceedure (#549) 2020-06-04 23:20:10 -04:00
Denali Marsh
a44068d08d
use collateral params from cdp state (#550) 2020-06-04 19:14:40 -07:00
Denali Marsh
ba3b353ee9
[R4R] add bep3 module param to committee (#547)
* update committee test

* update committee params

* update default deputy address to expected mainnet address

* spelling in comment

* fix bep3 sim values to 1

* bep3 sims:generate 32 length random number
2020-06-04 18:27:54 -07:00
Denali Marsh
09a75bd7c6
[R4R] optional bep3 config params (#546)
* add minAmount, maxAmount

* update kava-3 params for compile

* fix migration script

* update to mainnet params

* remove height span validation for incoming swaps

* update to sdk.Int, set lock to 220

* update lock range to [220, 270]

* update bep3 module docs

* update MsgClaim's ValidateBasic

* update test comments
2020-06-04 16:03:14 -07:00
Kevin Davis
c049aad495
Minor audit fixes (#540)
* use mod and quo to calculate how many auctions to start

* check both return values in getDenomPrefix

* split auctions using weighted buckets
2020-06-04 08:58:39 -04:00
Kevin Davis
aebb3093ff
fix: use sdk.Int when loading augmented cdp (#539) 2020-06-03 18:36:58 -04:00
Ruaridh
4a8b5696cb
v0.8 Migration Scripts (#518)
* initial sketch

* add module migrations

* add migrations for all accout types

* test account migration

* add tendermint migration and migrate cmd

* remove need for errors pkg dependency

* add bech32 decoding fork

* add suggested params and cmd to write them

* add basic upgrade instructions

* fix tests

* address some migration todos

* tidy contrib folder

* finalize params values

* align cdp init genesis with other modules

* add tendermint and distribution test
add custom distribution migration to patch bug

* add staking migration test

* add slashing, evidence tests, refactor auth tests

* add full migration test

* remove go-amino dependency from go.mod
also tidy up unused indirect dependencies

* address remaining TODOs

* remove commented out code from legacy types

* add spot/liquidation markets ids to kava-3 params

* Apply suggestions from code review

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* address code review suggestions

* add validate genesis to migrate test

* refactor add params func

* remove commented out code from old types

* fix add params

* add deputy address

* add tests using exported kava-2 state

* incorporate new cdp params from master

* update params from review

Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>

* add deputy account

* add committee permissions for new params

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-06-03 15:35:00 -04:00
Denali Marsh
2d7f5c4080
[R4R] Better docs (#541)
* update sidebar order

* update event backticks

* fix broken links

* fix spelling
2020-06-03 14:54:31 -04:00
Denali Marsh
e1c1902543
make docs-develop, make docs-build (#543) 2020-06-03 14:53:32 -04:00
Denali Marsh
f454e69723
Update contrib working genesis.json (#544)
* cp testnet-6000 genesis

* add new pricefeed, cdp params
2020-06-03 14:53:04 -04:00
Denali Marsh
706207c60f
add backticks to params in spec (#538) 2020-06-02 10:49:29 -04:00
Denali Marsh
47cdd7fb1a
[R4R] Basic docs (#537)
* add tools, client docs to pre/post bas scripts

* specify manual sidebar

* tools, building, resources

* remove legacy comment
2020-06-01 18:49:13 -07:00
Kevin Davis
5336ccc0c0
Add surplus and debt auction lot params (#531)
* wip: add lot size param for surplus and debt auctions

* update tests with new params

* update spec

* address review comments
2020-05-31 09:59:40 -04:00