Commit Graph

1525 Commits

Author SHA1 Message Date
Paul Downing
9b0a348239
Update protonet json earn vaults (#1564)
* Update protonet json earn vaults

Currently our `/kava/incentive/v1beta1/apy` endpoint is expecting there to be an earn vault for each `earn_reward_period` returned by `kava/incentive/v1beta1/params`. Right now, the genesis state for testnet (and protonet) aren't providing all the vaults as options.

Our two choices are:
1. Remove the incentive params for the vaults not included
2 Add the vaults so there is a vault for each incentive param

Going with option 2 here because mainnet has vaults for the denoms which are currently missing

* update protonet genesis earn vaults
2023-04-18 18:55:57 -05:00
Robert Pirtle
8c1c29a03a
feat: add CommunityPoolLendWithdrawalPermission (#1562)
* feat: add CommunityPoolLendWithdrawalPermission

* update kvtool to master branch

* register with PubProposal legacy amino codec

* register missing legacy amino codec PubProposal
2023-04-18 12:31:43 -07:00
drklee3
56f697fba6
feat: overwrite x/distribution /community_pool endpoint to include x/community balance (#1563)
* Add query path rewrites

* Add test for new x/community endpoint

* Update doc for RegisterAPIRouteRewrites

* Add changelog entry

* Add changelog entry link
2023-04-17 12:54:13 -07:00
Levi Schoen
98fb7ced20 match contracts deployed in protonet seed script with internal testnet 2023-04-14 13:44:51 -07:00
Levi Schoen
3e4d081583 fix protonet seed script usdc contract address variable 2023-04-14 12:25:57 -07:00
Levi Schoen
be2db71cb0 update-protonet-committee-params
allow protonet committee members to update evmutil EnabledConversionPairs param
2023-04-14 12:25:57 -07:00
Levi Schoen
1dda67312e dynamically set default contract addresses for bridged asset in testnet seed scripts 2023-04-14 11:00:50 -07:00
Levi Schoen
40f3c0b67b add example script for how to update testnet module params using god committee 2023-04-14 11:00:50 -07:00
Levi Schoen
e6524dc647 namespace seed contract names for easier debugging 2023-04-14 11:00:50 -07:00
Adam Robert Turman
40d390c24b
align internal testnet markets with upcoming release (#1557) 2023-04-13 16:10:19 -05:00
Levi Schoen
6bf654aca7 give internal testnet permissions to update evmutil EnabledConversionPairs param 2023-04-13 12:27:45 -07:00
Levi Schoen
ea9668cd00
run manual internal testnet job everytime it is triggered 2023-04-13 14:30:12 -04:00
Levi Schoen
d671c29c10 add manually triggerable cd job for internal testnet 2023-04-13 10:45:45 -07:00
Adam Robert Turman
70d9d61357
add multichain assets to evmutils (#1554) 2023-04-13 12:15:17 -05:00
Robert Pirtle
79eaad6660
bug: fix invalid accumulation time genesis validation (#1550)
* bug: increase valid accumulation time to 5 years

* add changelog entry

* resolve test failures

* update validation to only check that value is set
2023-04-13 09:42:01 -07:00
Paul Downing
22231db05a
update kava version to the correct current commit (#1552)
* update kava version to the correct current commit

https://github.com/Kava-Labs/kava/pull/1551/files used the id instead of the commit hash 😞 
Use the commit hash not the id

* use eternal release tag

* use kava version for current commit when validating internal testnet genesis

---------

Co-authored-by: Levi Schoen <levismschoen@gmail.com>
2023-04-13 03:34:52 -05:00
Paul Downing
e81507a242
update version internalTestnet to match mainnet (#1551)
mainnet is currently returning:
```
{
  "node_info": {
    "protocol_version": {
      "p2p": "8",
      "block": "11",
      "app": "0"
    },
    "id": "7f57dae02b4f732fac4cf5f53379728d92578d5f",
    "listen_addr": "tcp://0.0.0.0:26656",
    "network": "kava_2222-10",
    "version": "v0.34.24",
    "channels": "40202122233038606100",
    "moniker": "kava-outbound-pruning",
    "other": {
      "tx_index": "on",
      "rpc_address": "tcp://0.0.0.0:26657"
    }
  },
```
Update the internal testnet to match since we aren't testing any unique backend changes in internal testnet and I believe this is just out of date
2023-04-12 20:58:22 -05:00
Adam Robert Turman
c756748dd6
add incentivized lend money markets for multichain wBTC, USDC, and USDT (#1549) 2023-04-12 16:20:11 -05:00
Levi Schoen
580742ad35 fix: always use latest seed script when seeding chains 2023-04-12 14:03:12 -07:00
samcode206
03e9820b84
add wBTC to internal testnet (#1547)
* add wBTC to internal testnet

* Update .github/scripts/seed-internal-testnet.sh

* Update .github/scripts/seed-internal-testnet.sh

---------

Co-authored-by: Adam Robert Turman <67024033+adamrturman@users.noreply.github.com>
2023-04-12 10:44:54 -05:00
drklee3
1ed6b6add3
chore: bump ethermint to v0.21.0-kava-v22-1 (#1546)
addresses btcd vulnerability
2023-04-11 11:04:01 -07:00
drklee3
c12ad1d436
chore: update go.mod replace directives (#1544)
* Update go.mod replace directives

* Update changelog

* Bump github.com/hashicorp/go-getter to v1.7.1
2023-04-11 10:05:35 -07:00
drklee3
fb4ccb3204
docs: update changelog links and formatting (#1543) 2023-04-06 17:08:36 -07:00
drklee3
23e054e402
feat: re-add validator-vesting legacy rest endpoints (#1542)
* Re-add validator-vesting legacy rest endpoints

* Add changelog entry

* Re-add /vesting swagger config
2023-04-06 15:51:34 -07:00
Levi Schoen
e89a37c503
fix: cd-seed-chain.yml syntax 2023-04-06 16:59:32 -04:00
Levi Schoen
03a897216a fix: use matching kava version when running seed script against a network 2023-04-06 13:55:29 -07:00
drklee3
82f5ed5c3c
feat: block new vesting create messages (#1539)
* Block new vesting create messages

* doc: Update VestingAccountDecorator doc comment
2023-04-06 13:21:56 -07:00
Levi Schoen
1c09ae98ae validate internal testnet genesis using matching kava version 2023-04-06 12:34:06 -07:00
Levi Schoen
f75eebb310 match internal testnet genesis to kava version 2023-04-06 12:34:06 -07:00
Robert Pirtle
0e5745fd1c
chore: add Github PR template (#1537) 2023-04-06 12:29:02 -07:00
Levi Schoen
8ad7fdd59c fix: remove diff check logic on internal testnet cd 2023-04-06 11:28:26 -07:00
Robert Pirtle
3366b3b3e3
feat: e2e test eip712 signing & erc20 interactions (#1535)
* add helpers & tests for erc20 eth_call query & transfer

* make encoding config public

* add evm client & raw evm signer to account

* test eip712 signing and broadcast

* update for cosmos v46

* update kvtool

* temporarily disable ibc tests & skip shutdown

* disable all but eip712 test and massively simplify

* add EIP712 tx builder & setup basic MsgSend test

* reenable all tests

* add eip712 test that deposits erc20 into earn

* update kvtool to master branch
2023-04-06 10:51:13 -07:00
Levi Schoen
91e7933a55 add and use separate seed scripts for internal testnet and protonet 2023-04-06 10:25:11 -07:00
Draco
b9bd2c5173 fix seed gov proposal cli 2023-04-06 10:25:11 -07:00
Ruaridh
5b3162c563
Cosmos v0.46 upgrade follow ups (#1522)
* ensure RewardIndexes.Mul method is called in test

* remove deprecated line breaks,
add new v0.46 keys cmd

* register kava msg types on authz ModuleCdc
2023-04-06 12:59:02 +01:00
drklee3
bdf7a4d2a0
ci: Use rocksdb v7.10.2 and go 1.19 (#1534)
* ci: Use go 1.19 and rocksdb 7.9.2

* Use rocksdb v7.10.2 to match other workflow
2023-04-05 16:43:27 -07:00
drklee3
3375484f79
Update deprecated Cosmos methods (#1530)
* Use cosmossdk.io/errors for deprecated error methods

* Update error registration with cosmossdk.io/errors

* Use cosmossdk.io/math for deprecated sdk.Int alias

* Fix modified proto file

* Update sdk.Int usage in swap hooks

* Update e2e test deprecated method usage
2023-04-05 16:21:59 -07:00
Levi Schoen
2029fbb2bf support specifying custom rocksb version per github action 2023-04-05 15:33:21 -07:00
drklee3
c5404eda7f Use rocksdb 7.9.2, go mod tidy 2023-04-05 15:33:21 -07:00
Levi Schoen
17bfd760c4 Use cometbft-db fork
ci: check support for building kava binary with rocksdb
2023-04-05 15:33:21 -07:00
Robert Pirtle
c73217ef8d
update kvtool & reenable ibc tests (#1531) 2023-04-05 09:27:32 -07:00
Levi Schoen
c7f26e47e4 feat: only deploy to internal testnet if version or genesis change 2023-04-04 15:33:25 -07:00
Robert Pirtle
646e376698
fix e2e test in CI pipeline (#1528)
* update docker image to go 1.19

* update kvtool

* add .tool-versions for automagic go version usage

* update prtotonet genesis with missing params

* update kvtool (fixes evm port exposure)

* fix changed error message for insufficient fee

* add error message on failed contract deployment

* update kvtool (set consensus_params.block.max_gas)

* temporarily disable ibc e2e tests

* update kvtool to master
2023-04-04 14:22:18 -07:00
drklee3
f757d7ab15
feat: upgrade to Cosmos v0.46 (#1477)
* Update cosmos-sdk to v0.45.10-kava

* Add RegisterNodeService to app

* Update cosmos proto files

* Update cosmos proto files

* Use tagged v0.45.10-kava-v0.19-0.21 cosmos version

* update x/auth/legacy to x/auth/migrations

* Delete rest packages and registration

* Remove rest from proposal handlers

* Remove legacy types referencing removed sdk types

* Remove legacy tx broadcast handler

* Update incentive staking hooks to return error

* Remove grpc replace directive, use new grpc version

* Fix storetypes import

* Update tally_handler with updated gov types

* Delete legacy types

* Use new gov default config

* Update RegisterTendermintService params

Signed-off-by: drklee3 <derrick@dlee.dev>

* Replace sdk.StoreKey with storetypes.StoreKey

* Replace sdk.Int#ToDec with sdk.NewDecFromInt

* Replace sdk.NewUintFromBigInt with sdkmath.NewUintFromBigInt

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update most intances of govtypes to govv1beta1

* Unpack coin slice for Coins#Sub and Coins#SafeSub

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update committee gov codec registration

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update migrate utils period_vesting Coins#Sub

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update Coin#Sub in community proposal handler

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update Coin#Sub, FundModuleAccount/FundAccount in banktestutil

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update community, earn, kavadist proposal gov registration

* Update evm cli client EthSecp256k1Type check

* AccAddressFromHex to AccAddressFromHexUnsafe

* Add mint DefaultInflationCalculationFn to earn test

* Update use of removed staking.NewHandler

* Rename FlagIAVLFastNode -> FlagDisableIAVLFastNode

* cmd: Update new snapshot app option

Signed-off-by: drklee3 <derrick@dlee.dev>

* cmd: Add tendermint default config, use cosmos rpc status command

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update ethermint import path

github.com/tharsis/ethermint -> github.com/evmos/ethermint

* Upgrade ibc-go to v6

* Update proto dependencies

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update Tally handler test with new gov types

* Update helpers.GenTx -> helpers.GenSignedMockTx

* Update evmkeeper.NewKeeper params

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update ante authz, tests

* Add feemarket transient key, pass subspaces to evm/feemarket keepers

* Update new ante decorators

* Add new addModuleInitFlags to server commands

* Pass codec to keyring.New in genaccounts

* Pass codec to client keys add

* Add SendCoins to evmutil bank_keeper

* Use github.com/cosmos/iavl@v0.19.5

* Add ante HandlerOptions

* Add unimplemented SendCoins to evmutil bank keeper

Ethermint x/evm does not use this method

* Update init-new-chain script to disable post-london blocks

* Modify test genesis states to append 1 validator

* Update tally handler test to use string values

* Prevent querying balance for empty sdk.AccAddress in auction bidding test

* Set default bond denom to ukava

* Remove overwritten bank genesis total supply in committee proposal test

Signed-off-by: drklee3 <derrick@dlee.dev>

* Use ukava for testing staked balance

* Disable minting in community proposal handler test

Previously stake denom is used, which resulted in 0 minted coins

* Update hard APYToSPY test expected value

Increased iterations in sdk.ApproxRoot, updated closer to real value

* Fix NewDecCoinsFromCoins bug in incentive collectDerivativeStakingRewards

* Allow bkava earn incentive test values to match within small margin for rounding

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update invalid denom in issuance message coin validation

Colons are now valid in denoms

Signed-off-by: drklee3 <derrick@dlee.dev>

* Remove genesis validator in incentive delegation tests

* Update pricefeed market test for invalid denom

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update incentive delegator rewards test without genesis validator

Signed-off-by: drklee3 <derrick@dlee.dev>

* Add validator to export test

* Clear bank state in minting tests

Signed-off-by: drklee3 <derrick@dlee.dev>

* Remove validator for no stake tally test

Signed-off-by: drklee3 <derrick@dlee.dev>

* Clear incentive state before InitGenesis in incentive genesis export test

* Update swagger

Signed-off-by: drklee3 <derrick@dlee.dev>

* Update ethermint version to match replaced version

* Remove legacy swagger

* Add NewEthEmitEventDecorator

* Remove redundant func for AddModuleInitFlags

* Remove unused addBankBalanceForAddress func

* Add SetIAVLLazyLoading option to app cmd

* Use legacy.RegisterAminoMsg for committee msg concrete registration

* Remove unnecessary Amino field

* Add evm_util bankkeeper SendCoins comment

* Update test method ResetBankState to DeleteGenesisValidatorCoins to be more clear

* Validate incentive params.RewardsPerSecond to be non-zero

* Validate swap pools to disallow colons in token denoms

* Register all legacy amino types on gov modulecdc

* Remove redundant Comittee interface registration

* Pin goleveldb to v1.0.1-0.20210819022825-2ae1ddf74ef7

Causes failed to load state at height errors

* Update ethermint to new pinned version with minGasPrices parse error fix

* Update cosmos fork dependcy commit to include reverted account constructor patch

* Update Cosmos v0.46.11 and cometbft v0.34.27

* Bump minimum go version to 1.19

* Update tendermint proto

* Update internal testnet genesis

* Move NewCanTransferDecorator before NewEthGasConsumeDecorator

* Add hard borrow store tests (#1514)

* add store tests for Borrow type

* refactor Deposit tests to match

* Fix old bep3 tests (#1515)

* Update Ethermint to 1b17445 to fix duplicate proto registration

* Add custom status command to use snake_case and stdout

* Add SetInflation helper

* Reduce ambiguity with evm CanSignEthTx error

* Remove init genesis validator claim in test

* Add disabled evmante.NewMinGasPriceDecorator with x/feemarket note

* chore: use tagged versions for Cosmos and Ethermint forks

* update kvtool & increase wait for ibc transfer test

---------

Signed-off-by: drklee3 <derrick@dlee.dev>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Robert Pirtle <astropirtle@gmail.com>
2023-04-03 20:08:45 -04:00
Levi Schoen
4eab834704 fix: run protonet specific reset playbook for protonet cd 2023-04-03 14:42:13 -07:00
Levi Schoen
3c902e54bd fix: break testnet validator addresses into bash array for cd seed script 2023-04-03 11:30:46 -07:00
Levi Schoen
b4e11eb8cd feat: add continuous deployment for protonet 2023-04-03 10:04:12 -07:00
Levi Schoen
7bb707b174 add genesis file for internal protocol testnet 2023-04-03 10:04:12 -07:00
Robert Pirtle
735d44ba32
support initialization of evm state in e2e tests (#1524)
* check receipt status for failed txs from evm

* make EvmSigner's Auth public

* setup evm state initialization for e2e

* add a dummy Greeter contract, deployed on start
* move WaitForEvmTxReceipt to from account to util
* add tests for interacting with the contract
* add ContractAddrs map to Chain
2023-04-03 09:58:45 -07:00
Robert Pirtle
6a1438fbe9
add evm min fee e2e tests (#1521)
* parse min gas price from app.toml

* test eth_gasPrice returns min fee

* use naming best practices for custom errors

* add test that evm respects min gas price

* update kvtool

* increase ibc test wait time & update kvtool
2023-03-31 10:30:37 -07:00