mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
6998196461
* Initial e2e setup * Fix inflation disable tests * Add upgrade handler * Add param tests for after upgrade * Replace deprecated grpc creds * Remove upgrade for e2e test * Update upgrade handler to set x/community params * Remove params check in upgrade * Update tests for switchover time and params check * wip inflation * Add attribute to disable inflation event * Add before/after switchover mint and dist checks * Add missing attribute to disable inflation test check * Check mint events are 0 * Check total supply doesn't change * Check inflation and events before switchover * Check staking reward payouts from x/community * move events funcs to util * Add keyring to chain, fetch keys from kvtool and test withdrawal * Remove duplicate KavaHomePath * Update subtest names to specify before/after switchover Co-authored-by: Draco <draco@dracoli.com> * Use blocktime for InflationStop event DisableTime * Test 5 blocks for staking rewards payout * Remove logging and unused lines * Check val claimed balance with queried * Enable and update consolidation tests * Update test for modified EventTypeInflationStop time attr * Test x/distribution community tax * Fix test names * Update e2e tests for better live network test support (#1749) * Update e2e tests to support mirrornet * Skip claim rewards on live network, require no errors for existing tests * Update readme with upgrade height * Update .env example with usdt contract address * Restore .env file to original local e2e * Log community params when set * Make AttributeKeyInflationDisableTime more precise * Add mainnet and testnet community params (#1753) * Re-enable ibc tests * Remove duplicate types.EventTypeInflationStop emit * feat: set validator minimum commissions to at least 5% in upgrade handler (#1761) * Update validator min commission in upgrade * Add min commission upgrade test * Update changelog * Set validator MaxRate, call BeforeValidatorModified hook * Check max commission and update time in tests * Update e2e test for max rate * Test val update time * Use SdkBlock instead of Block * Remove upgrade related handlers and tests Preserve any module and test util changes * Update e2e x/community params proposal test to work without upgrade handler --------- Co-authored-by: Draco <draco@dracoli.com>
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
# E2E_KAVA_FUNDED_ACCOUNT_MNEMONIC is for a funded account used to intialize all new testing accounts.
|
|
# Should be funded with KAVA and have an ERC20 balance
|
|
E2E_KAVA_FUNDED_ACCOUNT_MNEMONIC='tent fitness boat among census primary pipe nose dream glance cave turtle electric fabric jacket shaft easy myself genuine this sibling pulse word unfold'
|
|
|
|
# E2E_RUN_KVTOOL_NETWORKS must be false to trigger run on live network
|
|
E2E_RUN_KVTOOL_NETWORKS=false
|
|
|
|
# Configure the endpoints for connecting to the running network here.
|
|
E2E_KAVA_RPC_URL='http://localhost:26657'
|
|
E2E_KAVA_GRPC_URL='http://localhost:9090'
|
|
E2E_KAVA_EVM_RPC_URL='http://localhost:8545'
|
|
|
|
# E2E_INCLUDE_IBC_TESTS is not currently supported for running tests against a live network.
|
|
E2E_INCLUDE_IBC_TESTS=false
|
|
|
|
# E2E_KAVA_ERC20_ADDRESS is the address of a pre-deployed ERC20 token with the following properties:
|
|
# - the E2E_KAVA_FUNDED_ACCOUNT_MNEMONIC has nonzero balance
|
|
# - the ERC20 must be enabled via x/evmutil params for conversion to sdk.Coin
|
|
# - the corresponsing sdk.Coin must be supported as a cdp collateral type (w/ valid pricefeed)
|
|
# - the evmutil params must support conversion & deposits to mint in eip712 messages
|
|
#
|
|
# These requirements are verified on test startup in ./testutil/init_evm.go
|
|
# This address is a USDT contract
|
|
E2E_KAVA_ERC20_ADDRESS=0x919c1c267bc06a7039e03fcc2ef738525769109c
|