Nick DeLuca
d5dcfe73b2
Refactor Buf Usage ( #1399 )
...
* start makefile refactor to smaller units; break out proto-dep updating;
add check-proto-deps target for use in CI in order to determine if
depdencies have diverged
* add proto check workflow
* download go modules before checking proto deps
* clean up -- hide output and add error message for check target
* add error message for check-rsync
* update any type, and ibc-go protos for v3.4.0
* add buf generate files for gogo, docs, and swagger
* update swagger dirs and run with latest swagger gen
* ignore new build directories
* refactor proto makefile logic -- use buf instead of scripts
* remove old protobuf scripts
* run all proto checks on push
* remove moved file
* set default value for protoc machine
* install build deps seperately
* fetch master for buf check breaking
* checkout from https url in CI for buf breaking
* fix rsync file permissions on darwin
* ignore build dirs
* fix issue with apple provided make; clean up build deps; switch to buf
format
* remove clang format file -- using buf format now
* run make proto-format (buf format changes)
* update generated files for proto format changes
2022-11-22 16:22:07 -07:00
Robert Pirtle
fcfcd36740
add total supply queries for earn, savings, liquid ( #1384 )
...
* add total supply endpoint to x/liquid
* add test of x/liquid total supply query
* refactor x/savings test
* add total supply endpoint for x/savings (w/ test)
* add total supply endpoint for x/earn
* handle converting bkava to underlying staked amount
* aggregate bkava underlying values in x/earn
* aggregate underlying value of bkava in x/savings
2022-11-08 12:43:26 -05:00
Nick DeLuca
5110fea008
Update Protos ( #1362 )
...
* Update third party protos for tendermint, cosmos updates
* fix proto gen scripts for go 1.18
* update ibc go swagger for v3.3.0
* update generated files
* update swagger
* update grpc and protobuf deps
2022-10-24 11:06:39 -07:00
Ruaridh
c773d874ae
Disable savings incentives ( #1320 )
...
* allow nil hooks by using keeper methods
* disable calls to incentive from savings
* disable claim msg to prevent calls to sync claim
2022-09-29 21:18:06 +01:00
Derrick Lee
50fdebe657
Add liquid bkava support to savings ( #1309 )
...
* Add savings support for bkava deposits
* Update savings tests with valid validator
* Add invalid bkava deposit test
* Remove test logs
* Add bkava withdraw test
2022-09-23 09:38:45 -07:00
Jacob Gadikian
09ddb3e367
gofumpt - apply format changes for readability and consistency ( #1248 )
2022-05-09 11:37:36 -07:00
Denali Marsh
eaeaf20e83
Incentive savings hooks + init/sync of savings claims ( #1209 )
...
* update savings module macc balances getter
* add savings keeper to incentive module
* add savings keeper to incentive module #2
* savings reward syncing
* claim savings reward
* update txs, queries
* update txs, queries #2
* update claim test
* add savings keeper to incentive module in app.go
* re-commit files to disk
* define and call hooks
* keeper methods for init/sync savings reward
* update other tests for easier extendibility
* init savings reward test
* add helper methods to global incentive unit tester
* sync savings test progress
* savings init fix + completed tests
* sync savings updates + tests
* nit: simplify false check
* fix: calculate set difference of incoming deposit denoms
Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-21 16:19:03 +02:00
Denali Marsh
c2e53f2d00
Incentive module: claim savings reward ( #1208 )
...
* update savings module macc balances getter
* add savings keeper to incentive module
* add savings keeper to incentive module #2
* savings reward syncing
* claim savings reward
* update txs, queries
* update txs, queries #2
* update claim test
* add savings keeper to incentive module in app.go
* re-commit files to disk
* fix: replace swap with savings when querying savings rewards
* update func comment
Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-20 13:08:57 +02:00
Denali Marsh
9170090f67
Implement savings module hooks interface/types ( #1202 )
...
* implement savings hooks types
* implement saving hooks keeper
* add savings hooks to app.go + implement incentive type compliance
2022-03-31 11:07:19 +02:00
Ruaridh
60489c10a1
Fix: register msgs on legacy codec ( #1200 )
...
* add deposits to genesis state
* import/export genesis with deposits
* add helper keeper method + update tests
* invariants + tests
* register invariants on module
* fix genesis test invariant init
* clean up invariants test
* remove comment from test file
* fix invariants test
* register msgs on legacy codec
Co-authored-by: denalimarsh <denalimarsh@gmail.com>
2022-03-30 17:21:59 +02:00
Denali Marsh
988836dee0
Savings module invariants ( #1199 )
...
* add deposits to genesis state
* import/export genesis with deposits
* add helper keeper method + update tests
* invariants + tests
* register invariants on module
* fix genesis test invariant init
* clean up invariants test
* remove comment from test file
* fix invariants test
* run 'make proto-all'
2022-03-30 13:51:06 +02:00
Denali Marsh
003b040458
Savings genesis state ( #1198 )
...
* add deposits to genesis state
* import/export genesis with deposits
* add helper keeper method + update tests
2022-03-29 11:45:04 +02:00
Denali Marsh
70d431b5c8
Savings module withdrawals ( #1197 )
...
* proto types
* updated types, generated protobuf types
* add to client
* add withdraw keeper methods + test
* more withdraw keeper test cases
* revisions
2022-03-28 13:53:42 +02:00
Denali Marsh
f0fa2e1253
Savings module: deposit querier ( #1193 )
...
* module files
* proto types
* types and generated proto types
* keeper
* client scaffold
* add savings module to app
* remove placeholder types file
* implement rest and add to module
* update proto types
* validation for supported denoms
* generate updates proto types
* update comments
* update comments
* remove unused imports from proto files
* regenerate proto files
* update proto types
* client
* deposit type and generated proto types
* deposit keeper methods + tests
* update savings module file
* update app.go + test common
* query proto types
* query types + generated proto types
* keeper logic for deposits queries
* cli/rest querier updates
* remove abci
* remove refs to other modules
* remove endblocker call
* genesis init test for module account
* update genesis test with params
* add get/set params test
* fix up keeper test
* use params getter
* simplify if/else statement
* remove querier.go and rest/query
* update query deposit description
* remove legacy querier
* register querier
* revisions
2022-03-24 17:43:03 +01:00
Denali Marsh
a073238f34
Savings module deposits ( #1192 )
...
* module files
* proto types
* types and generated proto types
* keeper
* client scaffold
* add savings module to app
* remove placeholder types file
* implement rest and add to module
* update proto types
* validation for supported denoms
* generate updates proto types
* update comments
* update comments
* remove unused imports from proto files
* regenerate proto files
* update proto types
* client
* deposit type and generated proto types
* deposit keeper methods + tests
* update savings module file
* update app.go + test common
* remove abci
* remove refs to other modules
* remove endblocker call
* genesis init test for module account
* update genesis test with params
* add get/set params test
* fix up keeper test
* use params getter
* simplify if/else statement
* fix: add msgServer to keeper
* fix: register deposit message
* update deposit test
* wrap invalid deposit denom error msg
Co-authored-by: karzak <kjydavis3@gmail.com>
2022-03-23 15:34:23 +01:00
Denali Marsh
451bc05f47
Savings module params ( #1190 )
...
* module files
* proto types
* types and generated proto types
* keeper
* client scaffold
* add savings module to app
* remove placeholder types file
* implement rest and add to module
* update proto types
* validation for supported denoms
* generate updates proto types
* update comments
* update comments
* remove unused imports from proto files
* regenerate proto files
* remove abci
* remove refs to other modules
* remove endblocker call
* genesis init test for module account
* update genesis test with params
* add get/set params test
2022-03-23 14:27:54 +01:00
Denali Marsh
8540a5c06f
Savings module scaffold ( #1188 )
...
* module files
* proto types
* types and generated proto types
* keeper
* client scaffold
* add savings module to app
* remove placeholder types file
* implement rest and add to module
* update comments
* remove unused imports from proto files
* remove abci
* remove refs to other modules
* remove endblocker call
* genesis init test for module account
2022-03-22 22:13:27 +01:00