Commit Graph

1256 Commits

Author SHA1 Message Date
soaryong-stamper
0e53bb1783 Fix fail local testnet docker-compose up 2021-11-04 12:06:11 +09:00
Derrick Lee
f84a8b0be0
Add /cdp/totalPrincipal and /cdp/totalCollateral Endpoints (#1027)
* Add cdp/totals rest endpoint for aggregated principal and fees

* Add total collateral to aggregated cdp

* Add pagination

* Update totalPrincipal endpoint to use keeper GetTotalPrincipal

* Update documentation for queryGetTotalPrincipal

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

* Remove unused AggregatedCDP types

* Make CDP type optional, return all if not provided

* add total collateral endpoint that efficient fetches collateral
for a types, only iterating cdps for types b, etc

* correctly and efficienlty filter for a single collateral type

Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2021-10-23 13:09:59 -05:00
Nick DeLuca
baab2b957c
update swagger-ui to latest version 3.52.5 (#1026) 2021-10-18 18:44:06 -05: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
dependabot[bot]
55e36665f0 build(deps): bump prismjs from 1.24.0 to 1.25.0 in /docs (#1021)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.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.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-01 11:29:26 -06:00
Derrick Lee
aa2f3ee193
Update Twitter links to kava_platform (#1022) 2021-10-01 11:29:13 -06:00
Adam Robert Turman
de750103ca
Merge pull request #1020 from Kava-Labs/at-validator-guide
Update Documentation
2021-09-28 10:37:46 -05:00
adamrturman
ec60bf16c3 created subfolder for kava-8 in docs 2021-09-27 14:14:56 -05:00
Adam Robert Turman
8892849f9f
Update docs/validator_guide.md
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2021-09-27 14:00:35 -05:00
Adam Robert Turman
a74c69bf8e
Update docs/upgrade_oracle.md
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2021-09-27 14:00:16 -05:00
Adam Robert Turman
1bb2d2e74a
Update docs/upgrade_oracle.md
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2021-09-27 14:00:01 -05:00
adamrturman
4b026348dc added links and consistent file naming 2021-09-23 12:16:10 -05:00
adamrturman
dd64f3dac2 added oracle upgrade guide 2021-09-23 12:12:46 -05:00
adamrturman
05765f4725 added wallet upgrade guide 2021-09-23 12:04:31 -05:00
adamrturman
136c38d0f8 added validator upgrade guide 2021-09-23 11:54:58 -05:00
adamrturman
9e28b4b573 typo 2021-09-20 11:43:42 -05:00
adamrturman
b2d100df6c updating docs post kava8 launch 2021-09-20 11:38:25 -05:00
Denali Marsh
b9c59c728b
Committee module: query next proposal ID (#1019)
* next-proposal-id cli query

* fix spelling in comments

* next-proposal-id rest query
2021-09-17 14:45:37 -06:00
adamrturman
c39eee0b19 updated docs/readme 2021-09-17 10:59:13 -05:00
Denali Marsh
0ee449e5a9
Test CDP init/export genesis (#1014)
* implement basic init/export genesis test

* update expected genesis for test
2021-09-09 11:54:39 -06:00
Denali Marsh
6710e424ee
Add validator-vesting module to swagger (#1018)
* Add validator-vesting module to swagger

* add swp circulating supply to swagger

Co-authored-by: karzak <kjydavis3@gmail.com>
2021-09-09 11:41:38 -06:00
Nick DeLuca
d70d4dd391
add rest route /tx/simulate that provides the ability to simulate (#1012)
multiple messages with a fee and memo
2021-09-07 20:08:39 -05:00
Kevin Davis
9f2a8412f3
remove v015 migration from circleci (#1017) 2021-09-01 20:01:48 -06:00
Kevin Davis
0b621770f8
fix: use correct format for pool names in cli help text (#1016) 2021-09-01 15:12:42 -06:00
Derrick Lee
b2aae00301
Add circulating supply endpoint for SWP (#1015)
* Add circulating supply endpoint for SWP

* Fix team SWP amount
2021-09-01 09:21:31 -06:00
Denali Marsh
56e55cf667
Test Hard module's genesis init/export (#1011)
* introduce genesis test

* match synced deposits/borrows to expected values

* remove unnecessary assert

* pull index factor from gen accrual time
2021-09-01 13:11:15 +02:00
Kevin Davis
d8f2790954
add kava-8 genesis hash 2021-08-30 09:45:14 -05:00
Kevin Davis
39d498f492
update export height 2021-08-30 08:03:40 -05:00
Ruaridh
8691ac44ed
Migration: reset bep3 swap heights (#1013)
* add null bep3 migration

* add bep3 height resets

* minor refactor

* add test using real genesis state
2021-08-26 20:20:43 -05:00
Kevin Davis
8d0bb5a5b0
feat: add invariant check command (#1009)
* add genesis file invariant assertion command

* fix: use correct cmd function name

* update migration guide to add invariant check
2021-08-26 17:53:46 -05:00
Adam Robert Turman
ae70dce2b1
Merge pull request #1010 from Kava-Labs/at-swagger
removed duplicate line and added correct endpoint description in swagger
2021-08-25 17:19:11 -05:00
adamrturman
7a00dcd06c removed duplicate line and added correct endpoint description 2021-08-25 15:45:41 -05:00
Kevin Davis
dd03ba5671
Add supply migration for kava-8 (#1008)
* fix: update supply migration to add swp token supply

* add full migration test with app initialization

* fix: use correct chain-id in test app initialization

* address review comments
2021-08-24 16:33:10 -05:00
Jewcub
a9c77f0282
update cn migration guide (#1007) 2021-08-19 23:43:38 -06:00
Kevin Davis
c75b03a815
feat: add upgrade block height to migration guide 2021-08-19 23:21:30 -06:00
Kevin Davis
4e6e94887c
fix: update downgrade version in migration 2021-08-19 23:19:03 -06:00
Kevin Davis
8f0a7ccf19
fix: replace placeholder in migration guide 2021-08-19 23:13:42 -06:00
Kevin Davis
a13fefe00b
feat: add versions to migration guide 2021-08-19 23:11:35 -06:00
Ruaridh
a52f606447
Incentive migration state fixes: delegator (#1004)
* add missing delegator claims

* fix tests
2021-08-20 04:13:59 +01:00
Ruaridh
7d85361240
Fix hard incentive state in migrations (#1001)
* extract hard claim migration function

* tidy up claim delegator index migration

* fix invalid hard claims

* fix comment missed in merge conflict reolution

* fix tests
2021-08-20 03:12:34 +01:00
Kevin Davis
3d65ba7caa
feat: add swap incentives (#1006)
* feat: add swap incentives

* add tests that verify swp annual rewards

* remove unused testdata file

* add test for swp delegator rewards
2021-08-19 12:33:40 -06:00
Ruaridh
22843cd3df
Incentive migration state fixes: USDX Minting (#998)
* minor migration refactor

* overwrite usdx claims with latest reward indexes

* add missing usdx claims in migration

* add script to calculate missing usdx rewards

* generate missing rewards using preliminary data

* add missing usdx rewards in migration

* update missing rewards data to use correct genesis

* test rewards were not decreased

* add tests for missing reward calculations

* clarify function names

* test to assert total new rewards are as expected

* remove unecessary todo item
2021-08-19 16:20:26 +01:00
Kevin Davis
cac7398120
Add swp token distribution (#1003)
* implement swp airdrop to usdx depositors to hard

* verify swp airdrop amount, total supply, affected users

* remove unused test code

* add map as go file

* update tests to use stored variable

* re-add snapshot test

* update snapshot testdata

* remove unused code for generating swp airdrop map

* remove snapshot test

* add swp token distribution

* bump test timeouts

* address review comments

* use global variables to simplify testing assertions on swp supply

* optional: swp migration test and small refactor (#1005)

* add test to ensure balances are not decreased

* simplify slice manipulation

* bump context deadline in circleci

Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
2021-08-18 23:10:58 -06:00
Denali Marsh
346501aa58
update quorum to 10% (#1002) 2021-08-18 07:30:45 -06:00
Denali Marsh
0714d6120e
Certik audit revisions (#999)
* revisions: BAS-01 | Inconsistent Comment

* revisions: GEE-01 | Unsorted imports

* revisions: KEE-01 | Ambiguous Function Naming

* revisions: OPE-01 | Redundant “if” Clause
2021-08-18 06:51:09 -06:00
Kevin Davis
61b7f8f56e
SWP airdrop for USDX suppliers to hard (#996)
* implement swp airdrop to usdx depositors to hard

* verify swp airdrop amount, total supply, affected users

* remove unused test code

* add map as go file

* update tests to use stored variable

* re-add snapshot test

* update snapshot testdata

* remove unused code for generating swp airdrop map

* remove snapshot test
2021-08-17 11:59:07 -06:00
Nick DeLuca
63508d79f9
Fix Account Migration for Additive Vesting Periods (#993)
* update acceptance test to fail

* update periodic vesting reset to reflect additive period lengths, not
absolute lengths

* simplify end time logic

* remove log

* test inclusion of v0_15 migration tests
2021-08-16 12:25:15 -06:00
Denali Marsh
30af22b50b
Initial kava 8 migration (#985)
* add swap module, update incentive

* add swapRewardPeriods to incentive

* add TODOs

* add text change permissions to hard, swap coms

* rename variable to clarify delegation rewards

* remove placeholder swp incentives

Co-authored-by: karzak <kjydavis3@gmail.com>
2021-08-16 10:34:30 -06:00
Kevin Davis
1a90c3bec6
add state to swap genesis (#997) 2021-08-16 10:14:48 -06:00
Jewcub
cd2827dbe7
translation (#991)
* translation

* Chinese typos
2021-08-16 07:26:07 -06:00