You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update launch script path & remove duplicate
We should use only one launch script. Managing both is extra un-necessary overhead
* chore: add private keys info in local_node.sh
* add bech32 and bank e2e tests
* add undelegate test
* faster local node and udpate delegate test
* add create validator tc
* update delegate tc
include event checking also
* update test codes
added event checking to undelegate tc
receipt has hash field instead of transactionHash
* chore: remove un-used variable
* add edit validator tc
* add cancel unbonding tc
* chore: format test files
* add redelegate tc
* skip gas estimation for faster tests
* add redelegations query test
* chore: refactor variable names
* chore: change filename
* add validators query test and fix gov interface
* add set withdraw address tc
* order test sequences and add withdraw delegator reward tc
* add claim rewards tc
* add withdraw validator commission
* add fund community pool tc
* add deposit validator rewards pool tc
* add validator queries tc
* chore: unify convention
* add erc20 tc
* update local node script
it should contains every precompiles by default
* fix slashing query and add e2e tests for it
* fix: decode bech32 consensus address before converting to bytes
The consensus address was previously used in its bech32-encoded form (a 52-character string), which is incorrect. This led to attempts to interpret a bech32 string directly as a 20-byte address, resulting in invalid conversions and data loss.
This fix ensures the bech32 consensus address is properly decoded into its original 20-byte form before further processing, preserving the correct address representation expected in EVM-compatible byte format.
* add gov tc
* add more tcs to gov precompile (should fix cancel)
* fix cancel proposal tc
* add p256 tc
* remove un-used variables
* add werc20 tc
* more timeout and verbose log
* fix local_node.sh
* add edgecase test for staking precompile and lint local node script
* revert solidity test script change
* chore: trim comments
* p256 happy case
* refactoring
* refactor: make findEvent as common
* check delegation shares and balance also
* add checking user balance for withdraw delegator reward test
* add checking user balance for claim rewards tc
* strict balance check
* add user balance check for fund community pool tc
* add user balance check for deposit validator rewards pool tc
* should use owner, not contract address itself
* add event checks for erc20 precompile tc
* add balance checks for werc20 tc
* add balance check for gov deposit tc
* add balance check for gov cancel proposal tc
---------
Co-authored-by: Vlad J <[email protected]>
Co-authored-by: Alex | Interchain Labs <[email protected]>
Copy file name to clipboardExpand all lines: local_node.sh
+55-52Lines changed: 55 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,15 @@ KEYALGO="eth_secp256k1"
10
10
11
11
LOGLEVEL="info"
12
12
# Set dedicated home directory for the evmd instance
13
-
HOMEDIR="$HOME/.evmd"
13
+
CHAINDIR="$HOME/.evmd"
14
14
15
15
BASEFEE=10000000
16
16
17
17
# Path variables
18
-
CONFIG=$HOMEDIR/config/config.toml
19
-
APP_TOML=$HOMEDIR/config/app.toml
20
-
GENESIS=$HOMEDIR/config/genesis.json
21
-
TMP_GENESIS=$HOMEDIR/config/tmp_genesis.json
18
+
CONFIG_TOML=$CHAINDIR/config/config.toml
19
+
APP_TOML=$CHAINDIR/config/app.toml
20
+
GENESIS=$CHAINDIR/config/genesis.json
21
+
TMP_GENESIS=$CHAINDIR/config/tmp_genesis.json
22
22
23
23
# validate dependencies are installed
24
24
command -v jq >/dev/null 2>&1|| {
@@ -76,8 +76,8 @@ fi
76
76
# User prompt if neither -y nor -n was passed as a flag
77
77
# and an existing local node configuration is found.
78
78
if [[ $overwrite="" ]];then
79
-
if [ -d"$HOMEDIR" ];then
80
-
printf"\nAn existing folder at '%s' was found. You can choose to delete this folder and start a new local node with new keys from genesis. When declined, the existing local node is started. \n""$HOMEDIR"
79
+
if [ -d"$CHAINDIR" ];then
80
+
printf"\nAn existing folder at '%s' was found. You can choose to delete this folder and start a new local node with new keys from genesis. When declined, the existing local node is started. \n""$CHAINDIR"
81
81
echo"Overwrite the existing configuration and start a new local node? [y/n]"
82
82
read -r overwrite
83
83
else
@@ -88,41 +88,46 @@ fi
88
88
# Setup local node if overwrite is set to Yes, otherwise skip setup
89
89
if [[ $overwrite=="y"||$overwrite=="Y" ]];then
90
90
# Remove the previous folder
91
-
rm -rf "$HOMEDIR"
91
+
rm -rf "$CHAINDIR"
92
92
93
93
# Set client config
94
-
evmd config set client chain-id "$CHAINID" --home "$HOMEDIR"
95
-
evmd config set client keyring-backend "$KEYRING" --home "$HOMEDIR"
94
+
evmd config set client chain-id "$CHAINID" --home "$CHAINDIR"
95
+
evmd config set client keyring-backend "$KEYRING" --home "$CHAINDIR"
VAL_MNEMONIC="gesture inject test cycle original hollow east ridge hen combine junk child bacon zero hope comfort vacuum milk pitch cage oppose unhappy lunar seat"
USER3_MNEMONIC="will wear settle write dance topic tape sea glory hotel oppose rebel client problem era video gossip glide during yard balance cancel file rose"
0 commit comments