This repository contains utility smart contracts for working with token (Coin & FA) in Movement.
Aptos CLI 3.5.0 or Movement CLI is required.
We have to initialize a profile to interact with on-chain.
Run the command below to initialize a profile (please replace the appropriate values for <profile-name>
).
aptos init --profile <profile-name> --network custom --rest-url {node-api-url} --skip-faucet
- After running the command, you will be asked to enter the
private key
of the account. Please enter the private key of the account you want to use to interact with the blockchain or let the cli generate a new key for you. If you let the cli generate a new key, please faucet $MOVE before submitting transactions.
Example: Here is the command to create a profile in Porto testnet
with name mvmt-token-utils
:
aptos init --profile mvmt-token-utils --network custom --rest-url https://aptos.testnet.porto.movementlabs.xyz/v1 --skip-faucet
- Run the command below to compile the contract:
aptos move compile --dev
- Run the command below to test the contract:
aptos move test
Suppose we have initialized a profile with name mvmt-token-utils
(can change this profile to whatever you want).
- Run the command below to deploy the contract:
aptos move publish --profile mvmt-token-utils --included-artifacts none
Please check the examples folder for more details.