Crates.io | aptos-framework |
lib.rs | aptos-framework |
version | 0.2.7 |
source | src |
created_at | 2022-05-24 19:56:21.526439 |
updated_at | 2022-08-16 07:45:39.055748 |
description | Aptos stdlib |
homepage | https://aptoslabs.com |
repository | https://github.com/aptos-labs/aptos-core |
max_upload_size | |
id | 593033 |
size | 667,590 |
The Aptos Framework defines the standard actions that can be performed on-chain both by the Aptos VM---through the various prologue/epilogue functions---and by users of the blockchain---through the allowed set of transactions. This directory contains different directories that hold the source Move modules and transaction scripts, along with a framework for generation of documentation, ABIs, and error information from the Move source files. See the Layout section for a more detailed overview of the structure.
Each of the main components of the Aptos Framework and contributing guidelines are documented separately. Particularly:
Recompilation of the Aptos Framework and the regeneration of the documents,
ABIs, and error information can be performed by running cargo run
from this
directory. There are a number of different options available and these are
explained in the help for this command by running cargo run -- --help
in this
directory. Compilation and generation will be much faster if run in release
mode (cargo run --release
).
The overall structure of the Aptos Framework is as follows:
├── compiled # Generated files and public rust interface to the Aptos Framework
│ ├── error_descriptions/*.errmap # Generated error descriptions for use by the Move Explain tool
│ ├── src # External Rust interface/library to use the Aptos Framework
│ ├── stdlib # The compiled Move bytecode of the Aptos Framework source modules
│ ├── script_abis # Generated ABIs for script function transactions, and all new transactions
│ └── legacy/transaction_scripts # Legacy generated ABIs and bytecode for each transaction script in the allowlist
│ ├── abi/*.abi # Directory containing generated ABIs for legacy transaction scripts
│ └── *.mv
├── modules # Aptos Framework source modules, script modules, and generated documentation
│ ├── *.move
│ └── doc/*.md # Generated documentation for the Aptos Framework modules
├── nursery/*.move # Move modules that are not published on-chain, but are used for testing and debugging locally
├── src # Compilation and generation of information from Move source files in the Aptos Framework. Not designed to be used as a Rust library
├── tests
└── script_documentation/*.md # Generated documentation for allowed transaction scripts