0g-chain/contrib
Denali Marsh ceaed3f0e1
liquid staking (#1273)
* proto types

* proto generated types

* liquidstaking top level files: module, genesis

* liquidstaking types

* liquidstaking keeper

* liquidstaking client/cli

* add liquidstaking to app, simapp

* implement mint derivative

* set up liquidstaking keeper test suite

* test mint derivative

* rename module to liquid

* rename proto types, app.go to liquid

* use sdk.Coin instead of shares

* mint liquid tokens to delegator

* burn derivative tokens to receive delegation

* use conversion method instead of type cast

* simplify delegation transfer logic

* broaden delegation transfer tests

* simplify transfer delegation method
This removes a source of rounding errors

* move derivative denom to keeper config

* check for invalid coins in msg validation

* block 0share transfers to avoid handling edge case

* refactor MintDerivative to test calculations

* simplify burn method so shares and tokens equal

* convert TransferShares back to old design
this makes handling vesting tokens easier

* fix missed merge conflict

* remove deprecated constants

* tidy up msg.go

* add msg tests

* remove unused store key

* fix msg event sender

* remove unused params

* tidy up documentation and errors

* remove unused mocks

* remove unused keepers from AppModule

* tidy up msg return values
keeper return values to be used in router msgs

* reinstate unintentionally removed interface check

* catch invalid input for MnitDerivative
clear up test TODOs

* clear up InitGenesis TODO

* Update x/liquid/client/cli/tx.go

Co-authored-by: Derrick Lee <derrick@dlee.dev>

* Update x/liquid/client/cli/tx.go

Co-authored-by: Derrick Lee <derrick@dlee.dev>

* show error logs in devnet

* unblock mod account so it can receive dist rewards

* catch zero amout msgs early

* minor cli fixes

Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Derrick Lee <derrick@dlee.dev>
2022-09-15 23:00:32 +01:00
..
devnet liquid staking (#1273) 2022-09-15 23:00:32 +01:00
init Update io.kava.kvd.plist 2020-02-18 12:34:10 -05:00
testnet-4000 CDP rest api automating testing (#401) 2020-04-01 13:17:02 -04:00
testnet-5000 Add genesis example (#462) 2020-04-23 10:59:57 -07:00
testnet-6000 v0.8 Migration Scripts (#518) 2020-06-03 15:35:00 -04:00
README.md testnet-5k release candidate (#407) 2020-03-30 11:06:55 -04:00

Contrib

Resources and examples for running and interacting with the kava blockchain. contrib contains sample genesis files, example governance proposals, and rest-server request examples for different versions of kava.

testnet-4000

kava-testnet-4000 introduces the cdp and auction modules, allowing users to create CDPs and mint usdx as well as participate in auctions.

Configuration and rest-server interaction files are available in the testnet-4000 directory.

testnet-5000

kava-testnet-5000 introduces the bep3 modules, allowing users to transfer BNB between the bnbchain testnet and kava.

Configuration and rest-server interaction files are available in the testnet-5000 directory.

dev

During development new features offer require modifications to the genesis file. The dev directory houses these genesis files.