Commit Graph

1109 Commits

Author SHA1 Message Date
Nick DeLuca
1edb395beb
tidy up go.mod and update cosmos-sdk fork version for v0.45.4 (#1245) 2022-05-06 15:18:34 -06:00
Jacob Gadikian
8fe288a874
use master branch of tm-db to avoid questions about imports (#1244) 2022-05-06 13:46:41 -07:00
Kevin Davis
0ef0a58007
dep: update to latest ethermint (#1243)
* dep: update to latest ethermint

* Update to v17.2 with gas price endpoint fix

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2022-05-06 13:15:19 -06:00
Ruaridh
87341cdb5b
Block eth msgs from authz (#1241)
* add decorator to block msgs in authz

* add to antehandler

* prevent vesting msgs skirting block via authz

* handle edge case of nested exec msgs

* test case to ensure msgs only blocked inside authz

* add app integration test

* tidy up error msg
2022-05-06 12:41:58 -06:00
Kevin Davis
f5c2e95517
Correct date 2022-05-06 07:52:08 -06:00
Nick DeLuca
ae81b4947b
disable london fork for kava 10 evm and dev chain (#1240) 2022-05-05 16:58:04 -07:00
Draco Li
119b69f6d6
update address (#1242) 2022-05-05 15:20:32 -04:00
Ruaridh
573590a229
Fix unsafe-reset-all command (#1238)
* hack to set tendermint config correctly

* Revert "hack to set tendermint config correctly"

This reverts commit d34150ab934ab018cc3e95ea9398f098c09e0c8e.

* update cosmos-sdk to include env prefix fix
2022-05-04 18:05:07 -06:00
Nick DeLuca
bd48f58d00
allow semi-colon separate of gas prices on app.toml without crashing (#1239)
when setting the base app min gas price
2022-05-04 16:58:14 -06:00
Ruaridh
65faddb5aa
Update committee permissions for kava-10 (#1234)
* add committee migration skeleton

* add helper methods to help modify permissions

* modify permissions in migration

* tidy up committee migrations into own file
2022-05-03 19:09:43 +01:00
Nick DeLuca
ff115c8cf4
disable fee market for kava v0_17 migration (#1237) 2022-05-03 11:47:14 -06:00
Kevin Davis
2491f0116d
update upgrade time to account for most recent data (#1236) 2022-05-02 16:14:52 -06:00
Ruaridh
7cde82ad7a
fix unsafe-reset-all cmd reference (#1235) 2022-05-02 21:00:02 +01:00
Draco Li
a21d16f297
e2e test for kava 9 -> kava 10 migration (#1232)
* e2e test for kava9 export

* fix bad chain id
2022-04-29 10:08:04 -06:00
Draco Li
014038ee57
kava-10 upgrade instructions (#1227)
* migrate doc for kava 10

* update wording

* height & time update

* update to 4 hours before failure

* correct times & block height

* add rollback doc

Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-28 16:34:47 -06:00
Ruaridh
ab7b3ec82f
ensure akava balances are backed by, not equal to (#1230)
module balance
2022-04-28 16:01:51 +01:00
Denali Marsh
30a071f83b
savings swagger (#1231) 2022-04-27 21:12:44 -06:00
Ruaridh
fefcb48a80
Reset bep3 swaps for zero height (#1228)
* copy over swap height reset from v016 upgrade

* remove unneeded old bep3 migrations

* hook migration cmd into app

* add bep3 migration integration test

* update old docs
2022-04-27 16:27:10 +01:00
Levi Schoen
a33a7b1166
Reset periodic vesting accounts for v17 migration (#1225)
- Move logic for reseting periodic vesting accounts to utils package
2022-04-26 09:17:15 -07:00
Draco Li
39d6176080
x/savings migration (#1226) 2022-04-25 15:48:59 -04:00
Ruaridh
35da890db0
Audit app.go (#1221)
* remove duplicate module registrations

* remove testnet in-place migration

* standardise formating

* move authz to no begin/endblocker section
as it has none

* standardise gov router formatting
2022-04-25 06:48:40 -07:00
Levi Schoen
c5de1302f6
Add x/incentive module migrations (#1224) 2022-04-22 16:30:09 -07:00
Kevin Davis
6ad85f09b7
fix: define gov router after committee keeper (#1223) 2022-04-22 14:57:33 -06:00
Nick DeLuca
bbb2235ba0
Add auction migration (#1220)
* add initial auction migration from Levi's work

* reserve bid_duration field name as well

* refactor auction specifc migration code to legacy v0_17 pkg

* Add auction migration specific test. Delete v016 migration files. Add makefile target for running migration tests.

Co-authored-by: galxy25 <levismschoen@gmail.com>
2022-04-22 11:36:05 -07:00
Draco Li
afdbc04e16
Update ethermint to v0.14, cosmos-sdk to 0.45.3 (#1219)
* update ethermint to v0.14, cosmos-sdk to 0.45.3

* update bridge to v0.2.0 to support ethermint v0.14.0

* update tendemint replace; go mod tidy

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2022-04-22 14:13:31 -04:00
Derrick Lee
f6c55b7015
Add bridge migration (#1214)
* Add bridge migration

* Use NewGenesisState method

* Update migrations with new params

* Use nil for relayer instead of empty address

Both are still valid
2022-04-22 09:22:20 -07:00
Derrick Lee
8aa176f05a
Add Ethereum bridge module (#1211)
* Add bridge module

* Add bridge module to app

* Add relayer/user address, bridge params to init chain script

* Update bridge to v0.1.0

* Enable bridge, add min withdraw limits in devnet script

* update to v0.1.1

* Move savings, evmutil, bridge initgenesis orders

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2022-04-22 09:01:43 -07:00
Draco Li
812b03af2a
x/authz v17 migration (#1217) 2022-04-22 11:58:55 -04:00
Thomas Constantine Moore
de0e164632
Adds authz to app.go (#1178)
* wip on adding authz to app.go

* Wip build working

Co-authored-by: DracoLi <draco@dracoli.com>
2022-04-21 16:34:14 -04:00
Draco Li
c511c56560
Add EVM Support (#1215)
* ibc v3 upgrade

* ibc no longer uses confio

* add proofs proto for ibc/v3

* wip add ethermint module

* update cosmos to 0.45.0

* add ethermint proto & bug fixes

* remove todo

* update docs

* fix a number of bugs

* minor comments update

* fix breaking tests

* Wrap bank keeper for EVM to convert decimals (#1154)

* Add bankkeeper wrapper for evm

* Remove agas from init-new-chain.sh, use ukava for evm_denom

* Fix sdk.Coins conversion, require min 1 coin amount

* Remove gas from init script

idk how this happened lol

* Remove debug logging stmt

* Restore original init ukava amounts

* Fix inplace coins conversion

* Use evmtypes.BankKeeper interface insteadof banktypes

* Add TestGetBalance

* Add doc comments, remove temp actualAmt vars

actualAmt vars replaced with inline calls to make it more clear that the
converted value is being used, as opposed to accidentally reusing the
raw EVM amt.

* Add TestSetBalance

* Add TestIdempotentConversion

* Panic if converted coin from EVM is 0

This happens if a value is less than 1ukava

* Deep copy coins instead of in place modification

* Update test coins amount

* Add panic tests for small EVM amounts

* Use evmtypes.BankKeeper as NewEVMBankKeeper param

* Tidy test setup

* ensure sdk config is set when creating new apps

* Respond EVM bank keeper GetBalance with SpendableCoins

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>

* further speed up docker builds

* feat: restore previous keys add defaults, add eth flag (#1172)

* feat: restore previous keys add defaults, add eth flag

* remove outdated comment

* fix: remove redundant flag default

* evm bank keeper with akava handling

* fix issues

* add remaining tests

* add emv module to app

* add missing imports

* clean up comments

* wip akava keeper

* evm keeper

* fix genesis import

* reduce module permissions

* add bank keeper tests

* cleanup tests

* genesis tests

* change defaults

* add eth faucet key & fix issues

* switch to kava ethermint

* add a lot of tests

* add balances invariant

* add evm tests

* Remove panic if Swagger disabled in config (#1155) (#1183)

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

* add invariant to catch any akava balance > 1 ukava

* clarify name of balances invariant

* connect invariants to app

* fix evmbankkeeper akava issues

* add spec for evmutil

* remove zero balance accounts from state

* minor adustments

* update to ethermint 0.10.0

* fix eth ante

* add missing godoc comment

* Update x/evmutil/spec/01_concepts.md

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

* Update x/evmutil/spec/01_concepts.md

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

* Update ethermint to v0.12 (#1203)

* update to ethermint v0.12.2

* use app.Options for new evm options

* fix missed references to app.Options

* use ethermint branch while waiting on upstream fix

* evm migrations for tesnet alpha 2 (#1206)

* update to ethermint v0.12.2

* use app.Options for new evm options

* fix missed references to app.Options

* use ethermint branch while waiting on upstream fix

* add upgrade handler for evm-alpha testnet 2

* v17 migration setup + evm modules

* refactor migrate states

* x/feemarket migration

* v17 migrations setup + evm modules migration (#1210)

* v17 migration setup + evm modules

* refactor migrate states

* update gen time

* fix: update genesis time in test output

Co-authored-by: karzak <kjydavis3@gmail.com>

* add savings module to app blockers

Co-authored-by: Derrick Lee <derrick@dlee.dev>
Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-21 16:16:28 -04: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
db5e839079
Incentive: savings module reward accumulation logic (#1207)
* implement savings reward accumulator logic

* update builder/params with util methods

* accumulation test cases
2022-04-12 16:14:14 +02:00
Denali Marsh
72e8f2f40f
Add savings to incentive genesis (#1205)
* define and generate proto types

* implement savings claim msg + test

* implement savings claim + test

* register msg and add store keys

* implement savings claim keeper methods

* update function comment

* define and generate proto types, update types dir

* update gen state with savings + test

* update legacy test data for ci test

* update proto types numbering

* update params proto types numbering
2022-04-04 15:01:48 -05:00
Denali Marsh
fc3f0cfd2f
Add savings claim types to incentive module (#1204)
* define and generate proto types

* implement savings claim msg + test

* implement savings claim + test

* register msg and add store keys

* implement savings claim keeper methods

* update function comment
2022-04-01 16:17:03 +02:00
Denali Marsh
9a389203c3
Add savings params to incentive module (#1201)
* update proto types

* update incentive module types

* update genesis test

* update legacy migration test for pass

* include regenerated proto docs
2022-03-31 11:08:56 +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
Ruaridh
3b187011bb
Fix proto-gen after docs removal (#1196)
* add back proto docs template

* ignore all third party packages from proto lint

* generate missing proto docs/linting

* update old branch name for proto-check-breaking

* remove dependency changes from proto generation

* remove no longer needed docs cmds from makefile

* use v0.3 dev image w/ go 1.17; add go mod tidy back

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2022-03-25 15:15:02 +00: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
Ruaridh
26e350945e
fix struct tag json syntax (#1194) 2022-03-24 08:46:09 -06: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
Kevin Davis
214a07b788
add token logos (#1185) 2022-03-10 13:24:21 -07:00
stephensprinkle
666f136661
removal of docs dir, migrated to discrete repo (#1169) 2022-02-22 16:59:02 +00:00
samcode206
c5dad2f19c
move FAQ to docs page (#1166)
* move FAQ to docs page

* rename

* rename2

* rename3

* update protocol naming

* marketing changes

Co-authored-by: Sam Hadi <worker@Sams-MacBook-Pro.local>
2022-02-15 12:05:50 -08:00