-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added makefile for docker image * added workflow and command * testing ci * testing ci * testing ci * testing ci * separated simapp step on workflow * concat 2 steps * added checkout * added checkout * small improvement on errors and fix on plugin deps * improvement over job steps * moved rosetta CLI exec to shell script * added rosetta install command to shell script * added rosetta install command to shell script * added rosetta install command to shell script * separated installation from rosetta-cli to another step * separated installation from rosetta-cli to another step * reduced CLI max indexc * added call to check for blockchain status * added await * added inmemory to rosetta cli * changed rosseta server and CLI ports to 8081 * fix check step * checking rosetta block endpoint * fix on plugin prefix * changed error message generation according to linter suggestions * fixed go.mod leaking dependencies issues * added step to use go version 1.21 * added wait for rosetta service * added wait time for simapp setup * increased index to 100 * increased index to 100 * added script to generate random TXs in the chain * updated git workflow * fixed typo * Changed sleep time * fixed script execution * changed data loading sh exec to makefile * added checkout for v4 * removed unused config file and added execution access to data.sh * fixed typo on command exec * defined shell environment variable * added submodule and moved cosmos-sdk to another folder inside the main one * debug * debug * fix typo * debug * debug * added SIMD environment variable * restructured workflow stage * small change on job name * updated sleep time to 2 minutes
- Loading branch information
Showing
5 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
SIMD_BIN=${SIMD_BIN:=$(which simd 2>/dev/null)} | ||
|
||
if [ -z "$SIMD_BIN" ]; then echo "SIMD_BIN is not set. Make sure to run make install before"; exit 1; fi | ||
|
||
# Global variables | ||
KEY_RING_BACKEND="test" | ||
CHAIN_ID="demo" | ||
amount_of_wallets=100 | ||
|
||
validator_address=$($SIMD_BIN keys show alice -a --keyring-backend "$KEY_RING_BACKEND") | ||
|
||
echo "[INFO] Generating wallets: $amount_of_wallets" | ||
for ((index=0; index<"$amount_of_wallets"; index++)) | ||
do | ||
random_number=$((1 + RANDOM % 10000)) | ||
|
||
wallet_name="wallet-$random_number" | ||
$SIMD_BIN keys add $wallet_name --keyring-backend "$KEY_RING_BACKEND" | ||
wallet_address=$($SIMD_BIN keys show $wallet_name -a --keyring-backend "$KEY_RING_BACKEND") | ||
echo "[DEBUG] Generated wallet: $wallet_name - $wallet_address" | ||
|
||
amount="$((RANDOM*10))stake" | ||
echo "[DEBUG] Generating tx from validator: $validator_address sending $amount to $wallet_address" | ||
$SIMD_BIN tx bank send "$validator_address" "$wallet_address" "$amount" --chain-id "$CHAIN_ID" --keyring-backend "$KEY_RING_BACKEND" -y | ||
|
||
sleep 1s # Wait so the TXs can happen in different blocks | ||
done |
2 changes: 1 addition & 1 deletion
2
scripts/rosetta-cli-test.sh → tests/rosetta-cli/rosetta-cli-test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go install github.com/coinbase/[email protected] | ||
rosetta-cli check:data --in-memory-mode --configuration-file ./tests/config/rosetta-cli.json | ||
rosetta-cli check:data --in-memory-mode --configuration-file ./tests/rosetta-cli/rosetta-cli.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters