Skip to content

Commit 0fa1ae4

Browse files
lightmarkdanielxiangzl
authored andcommitted
add devnet test txns (#15489)
1 parent 39edf37 commit 0fa1ae4

File tree

1 file changed

+3
-0
lines changed
  • ecosystem/indexer-grpc/indexer-test-transactions

1 file changed

+3
-0
lines changed

ecosystem/indexer-grpc/indexer-test-transactions/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::{env, fs, path::Path};
55

66
const IMPORTED_MAINNET_TXNS: &str = "imported_mainnet_txns";
77
const IMPORTED_TESTNET_TXNS: &str = "imported_testnet_txns";
8+
const IMPORTED_DEVNET_TXNS: &str = "imported_devnet_txns";
89
const SCRIPTED_TRANSACTIONS_TXNS: &str = "scripted_transactions";
910
#[derive(Default)]
1011
pub struct TransactionCodeBuilder {
@@ -113,12 +114,14 @@ fn main() {
113114
// Create necessary directories if missing
114115
create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_MAINNET_TXNS));
115116
create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_TESTNET_TXNS));
117+
create_directory_if_missing(&format!("json_transactions/{}", IMPORTED_DEVNET_TXNS));
116118
create_directory_if_missing(&format!("json_transactions/{}", SCRIPTED_TRANSACTIONS_TXNS));
117119

118120
// Using the builder pattern to construct the code
119121
let code = TransactionCodeBuilder::new()
120122
.add_directory(IMPORTED_MAINNET_TXNS, IMPORTED_MAINNET_TXNS, false)
121123
.add_directory(IMPORTED_TESTNET_TXNS, IMPORTED_TESTNET_TXNS, false)
124+
.add_directory(IMPORTED_DEVNET_TXNS, IMPORTED_DEVNET_TXNS, false)
122125
.add_directory(SCRIPTED_TRANSACTIONS_TXNS, SCRIPTED_TRANSACTIONS_TXNS, true)
123126
.add_transaction_name_function()
124127
.build();

0 commit comments

Comments
 (0)