π¦ArFlash Token Specification
Token Configuration Documentation
This document provides a comprehensive overview of the LP (liqudity tokens) or token Standard by the Arflash Protocol. ArFlash protocol is dependent on this token standard.
Parameters Overview
Balances: A table maintaining user balances. If not initialized, it is created automatically.
Allowances: A table used for managing the allowances given by token holders. It initializes itself if absent.
Name: The name of the token. Defaults to
'TOKENNAME'if not correctly defined.Symbol (Ticker): Represents the tick symbol of the token. Defaults to
'COIN'if not set appropriately.Denomination: Specifies the number of token units constituting a single whole unit for display. It defaults to
10.Logo: A URL linking to the token's logo image. It defaults to an empty string if not specified.
π¨οΈInfo
local json = require('json')
if not Balances then Balances = {} end
if not Allowances then Allowances = {} end
if Name ~= 'TOKENNAME' then Name = 'TOKENNAME' end
-- Symbol
if Ticker ~= 'COIN' then Ticker = 'COIN' end
-- The number of the token that should be treated as a single unit when quantities and balances are displayed to users.
if Denomination ~= 10 then Denomination = 10 end
-- lOGO link
if not Logo then Logo = '' end
ποΈHandlers
Info Handler
Usage :
Retrieving Data
Balance Handler
Check the balance of a specific account or the sender's account.
Check the balance of a specific account or the sender's account.
Usage
Retrieving Data
Balances Handler
Retrieve the balances of all accounts.
Usage :
Transfer Handler
Transfer tokens to another wallet or process ID.
Transfer tokens to another wallet or process ID.
Notifications:
Debit Notice to the sender:
Credit Notice to the recipient:
Allowance Handler
Check the allowance set for a spender by the owner.
Check the allowance set for a spender by the owner.
Approve Handler
Set the allowance for a spender.
TransferFrom handler
Transfer tokens from an owner's account to a recipient's account using the allowance system.
Transfer tokens on behalf of an owner using the allowance.
Minting Handler
Mint new tokens and add them to the sender's balance.
Mint new tokens to the token pool.
Burn Handler
Burn tokens from the sender's account.
Last updated
Was this helpful?