Skip to content

iota-community/token-transfer-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOTA Move Package: Token Transfer

This README provides a step-by-step guide to setting up and working with an IOTA Move package for token transfers.

Prerequisites

  • Ensure you have the IOTA Move CLI installed.
  • Familiarity with Move language and IOTA dApp concepts is helpful.

Setup Instructions

1. Create a New Package

Run the following command to create a new IOTA Move package:

iota move new token_transfer_package

This will generate the following structure:

  • sources/: Folder to store your module files.
  • tests/: Folder to store your test files.
  • Move.toml: Configuration file for the package.

2. Write the Token Transfer Module

Navigate to the sources folder and create a new file named transfer.move:

cd token_transfer_package/sources
touch transfer.move

Write your module code for token transfer in transfer.move.

3. Write Tests for the Module

Navigate to the tests folder and write the test cases for your module:

cd ../tests
touch transfer_test.move

Add appropriate tests to validate your module's functionality.

Build and Test the Package

Build the Package

Run the following command to build the package:

iota move build

Test the Package

Execute the test cases by running:

iota move test

Publish the Package

Once your package is ready, publish it to the IOTA client:

iota client publish

For Token Transfer frontend, refer to the dedicated README file in the frontend folder.

About

Tutorial for simple token transfer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published