-
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.
Merge branch 'main' into dependabot/github_actions/amannn/action-sema…
…ntic-pull-request-5.3.0
- Loading branch information
Showing
7 changed files
with
93 additions
and
46 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
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