COOPENOMICS  v1
Кооперативная Экономика
Действия

Функции

void eosio::token::create (const name &issuer, const asset &maximum_supply)
 Создает новый токен с указанным максимальным предложением. Позволяет эмитенту создать токен с заданным символом и максимальным предложением. Подробнее...
 
void eosio::token::issue (const name &to, const asset &quantity, const string &memo)
 Выпускает токены указанному аккаунту. Позволяет эмитенту выпустить определенное количество токенов на аккаунт получателя. Подробнее...
 
void eosio::token::retire (const asset &quantity, const string &memo)
 Изымает токены из обращения. Позволяет эмитенту изъять определенное количество токенов из общего предложения. Подробнее...
 
void eosio::token::transfer (const name &from, const name &to, const asset &quantity, const string &memo)
 Переводит токены между аккаунтами. Позволяет отправителю перевести определенное количество токенов получателю. Подробнее...
 
void eosio::token::open (const name &owner, const symbol &symbol, const name &ram_payer)
 Открывает аккаунт для указанного токена. Позволяет ram_payer создать аккаунт owner с нулевым балансом для указанного токена. Подробнее...
 
void eosio::token::close (const name &owner, const symbol &symbol)
 Закрывает аккаунт для указанного токена. Позволяет владельцу закрыть аккаунт для указанного токена, если баланс равен нулю. Подробнее...
 

Подробное описание

Функции

◆ close()

void eosio::token::close ( const name &  owner,
const symbol &  symbol 
)

Закрывает аккаунт для указанного токена. Позволяет владельцу закрыть аккаунт для указанного токена, если баланс равен нулю.

This action is the opposite for open, it closes the account owner for token symbol.

Аргументы
owner- the owner account to execute the close action for,
symbol- the symbol of the token to execute the close action for.
Предусловие
The pair of owner plus symbol has to exist otherwise no action is executed,
If the pair of owner plus symbol exists, the balance has to be zero.
Аргументы
ownerАккаунт-владелец для выполнения действия закрытия
symbolСимвол токена для выполнения действия закрытия
Заметки
Авторизация требуется от аккаунта: owner

◆ create()

void eosio::token::create ( const name &  issuer,
const asset &  maximum_supply 
)

Создает новый токен с указанным максимальным предложением. Позволяет эмитенту создать токен с заданным символом и максимальным предложением.

Allows issuer account to create a token in supply of maximum_supply. If validation is successful a new entry in statstable for token symbol scope gets created.

Аргументы
issuer- the account that creates the token,
maximum_supply- the maximum supply set for the token created.
Предусловие
Token symbol has to be valid,
Token symbol must not be already created,
maximum_supply has to be smaller than the maximum supply allowed by the system: 1^62 - 1.
Maximum supply must be positive;
Аргументы
issuerАккаунт-эмитент токена
maximum_supplyМаксимальное предложение токенов
Заметки
Авторизация требуется от аккаунта: eosio.token

◆ issue()

void eosio::token::issue ( const name &  to,
const asset &  quantity,
const string &  memo 
)

Выпускает токены указанному аккаунту. Позволяет эмитенту выпустить определенное количество токенов на аккаунт получателя.

This action issues to to account a quantity of tokens.

Аргументы
to- the account to issue tokens to, it must be the same as the issuer,
quantity- the amount of tokens to be issued, @memo - the memo string that accompanies the token issue transaction.
toАккаунт, которому выпускаются токены
quantityКоличество токенов для выпуска
memoМемо транзакции (максимум 256 байт)
Заметки
Авторизация требуется от аккаунта: issuer

◆ open()

void eosio::token::open ( const name &  owner,
const symbol &  symbol,
const name &  ram_payer 
)

Открывает аккаунт для указанного токена. Позволяет ram_payer создать аккаунт owner с нулевым балансом для указанного токена.

Allows ram_payer to create an account owner with zero balance for token symbol at the expense of ram_payer.

Аргументы
owner- the account to be created,
symbol- the token to be payed with by ram_payer,
ram_payer- the account that supports the cost of this action.

More information can be read here and here.

Аргументы
ownerАккаунт, который будет создан
symbolСимвол токена
ram_payerАккаунт, который оплачивает RAM для этого действия
Заметки
Авторизация требуется от аккаунта: ram_payer

◆ retire()

void eosio::token::retire ( const asset &  quantity,
const string &  memo 
)

Изымает токены из обращения. Позволяет эмитенту изъять определенное количество токенов из общего предложения.

The opposite for create action, if all validations succeed, it debits the statstable.supply amount.

Аргументы
quantity- the quantity of tokens to retire,
memo- the memo string to accompany the transaction.
quantityКоличество токенов для изъятия
memoМемо транзакции (максимум 256 байт)
Заметки
Авторизация требуется от аккаунта: issuer

◆ transfer()

void eosio::token::transfer ( const name &  from,
const name &  to,
const asset &  quantity,
const string &  memo 
)

Переводит токены между аккаунтами. Позволяет отправителю перевести определенное количество токенов получателю.

Allows from account to transfer to to account the quantity tokens. One account is debited and the other is credited with quantity tokens.

Аргументы
from- the account to transfer from,
to- the account to be transferred to,
quantity- the quantity of tokens to be transferred,
memo- the memo string to accompany the transaction.
fromАккаунт-отправитель
toАккаунт-получатель
quantityКоличество токенов для перевода
memoМемо транзакции
Заметки
Авторизация требуется от аккаунта: from