From 4a3c104bf37e5e37a50fdece0c1906959962fe58 Mon Sep 17 00:00:00 2001 From: Aaron Gao Date: Wed, 4 Dec 2024 10:40:41 -0600 Subject: [PATCH] add devnet test txns --- ecosystem/indexer-grpc/indexer-test-transactions/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/build.rs b/ecosystem/indexer-grpc/indexer-test-transactions/build.rs index b574313a291b0..ede1ca06eabbc 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/build.rs +++ b/ecosystem/indexer-grpc/indexer-test-transactions/build.rs @@ -5,6 +5,7 @@ use std::{env, fs, path::Path}; const IMPORTED_MAINNET_TXNS: &str = "imported_mainnet_txns"; const IMPORTED_TESTNET_TXNS: &str = "imported_testnet_txns"; +const IMPORTED_DEVNET_TXNS: &str = "imported_devnet_txns"; const SCRIPTED_TRANSACTIONS_TXNS: &str = "scripted_transactions"; #[derive(Default)] pub struct TransactionCodeBuilder { @@ -113,12 +114,14 @@ fn main() { // Create necessary directories if missing create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_MAINNET_TXNS)); create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_TESTNET_TXNS)); + create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_DEVNET_TXNS)); create_directory_if_missing(&format!("json_transactions/{}", SCRIPTED_TRANSACTIONS_TXNS)); // Using the builder pattern to construct the code let code = TransactionCodeBuilder::new() .add_directory(IMPORTED_MAINNET_TXNS, IMPORTED_MAINNET_TXNS, false) .add_directory(IMPORTED_TESTNET_TXNS, IMPORTED_TESTNET_TXNS, false) + .add_directory(IMPORTED_DEVNET_TXNS, IMPORTED_DEVNET_TXNS, false) .add_directory(SCRIPTED_TRANSACTIONS_TXNS, SCRIPTED_TRANSACTIONS_TXNS, true) .add_transaction_name_function() .build();