Skip to content

Commit

Permalink
prepare test transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm committed Jan 17, 2025
1 parent 3272d23 commit dca6bb9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default {
// setup: { title: "Initial Setup" },
"test-transactions": {
title: "Preparing Test Transactions",
},
"txn-importer": {
title: "Importing Transactions",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Aptos Indexer Testing Framework Overview

The Aptos Indexer Testing Framework provides two methods to generate testing transactions: **Importer** and **Move Scripts**. Both approaches are suited for specific scenarios based on your development and testing requirements, enabling you to test how your system handles various transaction types.


## When to Use **Importer**
## 1. Fetching Historical Transactions
- Retrieve specific historical transactions from the Aptos blockchain (Testnet or Mainnet) for testing or analysis.
- Ideal for creating mocked transaction inputs for processor tests or regression checks.

### 2. Simulating Real-World Scenarios
- Validate processor logic or database integrity by replaying transactions from live networks.
- Simulate conditions that mirror real-world environments to ensure robustness.


## When to Use **Move Script**
### 1. Deploying Custom Logic
- Write, deploy, and execute custom logic using Move to test your new AIPs (Aptos Improvement Proposals).
- Ideal for creating smart contracts, defining new modules, or implementing specific on-chain functionalities.

### 2. Prototyping New Features
- Experiment with new decentralized application (dApp) ideas or test custom on-chain workflows.
- Perform operations like:
- Account creation
- Token minting
- Custom transactions
- Define business rules and execute state changes directly on the Aptos blockchain.

## Summary

Both **Importer** and **Move Scripts** are essential tools in the Aptos Indexer Testing Framework. Use the **Importer** for replaying and analyzing real-world transactions, while **Move Scripts** are best for testing custom logic and prototyping features. Choose the method that aligns with your testing goals to ensure a comprehensive validation process.

0 comments on commit dca6bb9

Please sign in to comment.