aergoio / ARC1

aergo standard token contract extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aergo Standard for Token Contracts (ARC1)

ARC1 is a technical standard for smart contracts on the Aergo blockchain, designed to implement fungible tokens with improved functionality and security. It encompasses the best features of popular token standards like ERC-20 and extends them for enhanced usability and safety.

Key Features

1. Enhanced Token Security

The ARC1 standard ensures that when tokens are sent to a contract address, the receiving contract implements a predefined tokenReceived function. This feature helps prevent token loss due to incorrect contract interaction.

2. Combined Token Transfers and Function Calls

ARC1 enables the direct execution of predefined functions in a single transaction alongside token transfers. This approach improves efficiency and reduces transaction costs.

3. Simplified Delegation of Authority

By allowing users to delegate authority to a trusted contract through the setApprovedForAll function, ARC1 enables seamless interaction with other smart contracts, such as Decentralized Exchanges (DEXs). Users can trade without the need to deposit and withdraw tokens before transactions.

ARC1 Extensions

The ARC1 standard includes several extensions that further enhance its functionality:

1. All Approval

The All Approval extension allows users to delegate authority to other accounts to spend tokens on their behalf.

2. Limited Approval

Limited Approval functionality restricts the delegation of authority, preventing excessive access to user tokens.

3. Mintable

This extension allows for the creation of new tokens, enabling dynamic token supply management.

4. Burnable

The Burnable extension allows users to destroy tokens, reducing the total token supply.

5. Pausable

This feature allows for the suspension of token transfers, providing greater control and security in case of emergencies or unexpected issues.

6. Blacklist

The Blacklist feature enables administrators to manage accounts flagged as malicious or non-compliant. Blacklisted accounts are restricted from transferring or burning tokens.

Specification

Please check the complete specification here.

How to Create a Token

The preferred way to deploy an ARC1 token contract is to use the Aergo Token Factory.

The factory is a smart contract that allows users to create new ARC1 token contracts with a single transaction.

About

aergo standard token contract extensions


Languages

Language:Lua 98.5%Language:Shell 1.5%