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) |
Закрывает аккаунт для указанного токена. Позволяет владельцу закрыть аккаунт для указанного токена, если баланс равен нулю. Подробнее... | |
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. |
owner | Аккаунт-владелец для выполнения действия закрытия |
symbol | Символ токена для выполнения действия закрытия |
owner
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. |
issuer | Аккаунт-эмитент токена |
maximum_supply | Максимальное предложение токенов |
eosio.token
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
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
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
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