Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

A bunch of annotated Aptos contracts written by me when I was learning Aptos development

Notifications You must be signed in to change notification settings

rafales/aptos-contracts-annotated

Repository files navigation

Aptos Annotated Contracts

So I began to learn Move. It's an interesting language and a totally different concept than Solidity/EVM. Because Move and Aptos are pretty niche at the moment and there aren't many resources to learn - I'm publishing the code I'm writing as I learn - with annotations. Maybe they'll be of some use to you.

How to start with Aptos and Move

So my road was pretty simple. You will need development experience though.

  1. Read the whitepaper
  2. Get Aptos wallet and set it up
    • you will need a private key later
    • you will also need some coins which you can easily get from wallet UI
  3. Install CLI locally
    • this may be pain
    • DON'T start with Getting Started guide, instead follow CLI installation guide
    • if you are developing on devnet (you probably are), make sure you pass --branch devnet when installing CLI wih cargo.
  4. If you're using JetBrains IDEs then install Move Plugin AND CONFIGURE IT in settings before use.
  5. Read the Move Book.
    • personally I didn't start developing before I've read the whole book to understand what's happening. There aren't many good sources out there yet that will guide you step by step, so it's good to get an overview of what we're dealing with.
    • I also wasn't able to run any examples until later down the path LOL
  6. At this point you can start building, but you don't have to yet.
    • you can take a look at first useless module to see how packages look like and what minimal working setup looks like
    • you can continue to the Move Language Guide
    • you can read the step-by-step articles below, but some of them are a bit outdated and do not depend on the CLI yet
  7. Read Move Language Guide - which is also named "Move Book" for some reason. This will fill in a lot of blanks.
  8. At this point you should realize that Aptos provides a lot of libraries - std, aptos_std, aptos_framework inside AptosFramework
    • you should read them to start getting better understanding of what aptos provides and how Move codebase looks like
    • if you are using JetBrains IDEs then you can find their sources under "External Libraries" in Project Panel
    • otherwise you can browse its source code directly on GitHub.
  9. You can read through these series (there may be more now, so check author's page):

About

A bunch of annotated Aptos contracts written by me when I was learning Aptos development

Topics

Resources

Stars

Watchers

Forks