Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare test transactions #777

Draft
wants to merge 1 commit into
base: 01-17-testing_processor
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading