Skip to content

Commit 9e9194c

Browse files
authored
support test file creation as a part of test txn generation (#15688)
* update txn generating process * update the command in the readme
1 parent 6d13ea8 commit 9e9194c

File tree

88 files changed

+600
-3118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+600
-3118
lines changed

.github/workflows/indexer-processor-testing.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
sed -i "s/MAINNET_API_KEY/${{ steps.api_key_tokens.outputs.mainnet_api_key }}/g" ./imported_transactions/imported_transactions.yaml
6464
6565
cat ./imported_transactions/imported_transactions.yaml # Print the updated file for verification
66-
cargo run -- --testing-folder ./imported_transactions --output-folder ../indexer-test-transactions/new_json_transactions
66+
cargo run -- --testing-folder ./imported_transactions --output-folder ../indexer-test-transactions/src/new_json_transactions
6767
6868
- name: Install jq
6969
run: sudo apt-get install jq # Ensure jq is installed for JSON processing
@@ -72,10 +72,10 @@ jobs:
7272
# Prepare Original and New JSON Files
7373
- name: Prepare and Clean JSON Files
7474
run: |
75-
cd ecosystem/indexer-grpc/indexer-test-transactions
76-
ls -al ./new_json_transactions/scripted_transactions
75+
cd ecosystem/indexer-grpc/indexer-test-transactions/src
76+
ls -al ./new_json_transactions
7777
78-
for folder in json_transactions/scripted_transactions new_json_transactions/scripted_transactions; do
78+
for folder in json_transactions/scripted_transactions new_json_transactions/json_transactions/scripted_transactions; do
7979
for file in $folder/*.json; do
8080
echo "Processing $file..."
8181
base_file=$(basename "$file")

ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/imported_mainnet_txns/126043288_stake_delegration_withdraw.json

-388
This file was deleted.

ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/imported_mainnet_txns/139442597_stake_unlock.json

-167
This file was deleted.

ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/imported_mainnet_txns/1837008146_stake_add.json

-537
This file was deleted.

0 commit comments

Comments
 (0)