
Содержимое
Возможность мультиязычного использования в Логинах, комментариях и подписях в UTF8 кодировке.
Возможность использования дополнительных значения при создании пользователя для возможности маркировки.
Возможность указания динамических значений в ассетах. Что дает возможность взаимодействовать в различных ситуациях в том числе для хранения NFT меток.
Кастомизация функции transfer с возможностью использования дополнительных полей, что позволяет передавать технические данные при операции перевода.
bool is_valid_name( const string& name )
{ try {
const size_t len = name.size();return true;
if( len < GRAPHENE_MIN_ACCOUNT_NAME_LENGTH ) { return false; } if( len > GRAPHENE_MAX_ACCOUNT_NAME_LENGTH )
{
return false;
}size_t begin = 0;
while( true )
{
size_t end = name.find_first_of( ‘.’, begin );
if( end == std::string::npos )
end = len;
if( (end — begin) < GRAPHENE_MIN_ACCOUNT_NAME_LENGTH ) { return false; } switch( name[begin] ) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'а': case 'б': case 'в': case 'г': case 'д': case 'е': case 'ё': case 'ж': case 'з': case 'и': case 'к': case 'л': case 'м': case 'н': case 'о': case 'п': case 'р': case 'с': case 'т': case 'у': case 'ф': case 'х': case 'ц': case 'ш': case 'щ': case 'ь': case 'ъ': break; default: return false; } switch( name[end-1] ) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'а': case 'б': case 'в': case 'г': case 'д': case 'е': case 'ё': case 'ж': case 'з': case 'и': case 'к': case 'л': case 'м': case 'н': case 'о': case 'п': case 'р': case 'с': case 'т': case 'у': case 'ф': case 'х': case 'ц': case 'ш': case 'щ': case 'ь': case 'ъ': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; default: return false; } for( size_t i=begin+1; iwhitelist_authorities;
/// A set of accounts which maintain blacklists to consult for this asset. If flags & white_list is set,
/// an account may only send, receive, trade, etc. in this asset if none of these accounts appears in
/// its account_object::blacklisting_accounts field. If the account is blacklisted, it may not transact in
/// this asset even if it is also whitelisted.
flat_setblacklist_authorities; /** defines the assets that this asset may be traded against in the market */
flat_setwhitelist_markets;
/** defines the assets that this asset may not be traded against in the market, must not overlap whitelist */
flat_setblacklist_markets; /**
* data that describes the meaning/purpose of this asset, fee will be charged proportional to
* size of description.
*/
string description;
/**
* Container with dynamic content. Optional.
*/
string asset_extended_options;extensions_type extensions;
/// Perform internal consistency checks.
/// @throws fc::exception if any check fails
void validate()const;
};struct asset_create_operation : public base_operation
{
struct fee_parameters_type {
uint64_t symbol3 = 500000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint64_t symbol4 = 300000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint64_t long_symbol = 5000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10; /// only required for large memos.
};asset fee;
/// This account must sign and pay the fee for this operation. Later, this account may update the asset
account_id_type issuer;
/// The ticker symbol of this asset
string symbol;
/// Number of digits to the right of decimal point, must be less than or equal to 12
uint8_t precision = 0;/// Options common to all assets.
///
/// @note common_options.core_exchange_rate technically needs to store the asset ID of this new asset. Since this
/// ID is not known at the time this operation is created, create this price as though the new asset has instance
/// ID 1, and the chain will overwrite it with the new asset’s ID.
asset_options common_options;
/// Options only available for BitAssets. MUST be non-null if and only if the @ref market_issued flag is set in
/// common_options.flags
optionalbitasset_opts;
/// For BitAssets, set this to true if the asset implements a @ref prediction_market; false otherwise
bool is_prediction_market = false;
extensions_type extensions;/**
* Container with dynamic content. Optional.
*/
string asset_extended_options;account_id_type fee_payer()const { return issuer; }
void validate()const;
share_type calculate_fee( const fee_parameters_type& k )const;
};struct transfer_unify_operation : public base_operation
{
struct fee_parameters_type {
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
};asset fee;
account_id_type from;
account_id_type to;
asset amount;/// User provided data encrypted to the memo key of the «to» account
optionalmemo;
extensions_type extensions;
subdata_type types;account_id_type fee_payer()const { return from; }
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
};struct transfer_operation : public base_operation
{
struct fee_parameters_type {
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
};asset fee;
/// Account to transfer asset from
account_id_type from;
/// Account to transfer asset to
account_id_type to;
/// The amount of asset to transfer from @ref from to @ref to
asset amount;/// User provided data encrypted to the memo key of the «to» account
optionalmemo;
extensions_type extensions;string op_hidden_data;
account_id_type fee_payer()const { return from; }
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
};struct account_options
{
/// The memo key is the key this account will typically use to encrypt/sign transaction memos and other non-
/// validated account activities. This field is here to prevent confusion if the active authority has zero or
/// multiple keys in it.
public_key_type memo_key;
/// If this field is set to an account ID other than GRAPHENE_PROXY_TO_SELF_ACCOUNT,
/// then this account’s votes will be ignored; its stake
/// will be counted as voting for the referenced account’s selected votes instead.
account_id_type voting_account = GRAPHENE_PROXY_TO_SELF_ACCOUNT;/// The number of active witnesses this account votes the blockchain should appoint
/// Must not exceed the actual number of witnesses voted for in @ref votes
uint16_t num_witness = 0;
/// The number of active committee members this account votes the blockchain should appoint
/// Must not exceed the actual number of committee members voted for in @ref votes
uint16_t num_committee = 0;
/// This is the list of vote IDs this account votes for. The weight of these votes is determined by this
/// account’s balance of core asset.
string account_dynamic_options;flat_set
votes;
extensions_type extensions;/// Whether this account is voting
inline bool is_voting() const
{
return ( voting_account != GRAPHENE_PROXY_TO_SELF_ACCOUNT || !votes.empty() );
}void validate()const;
};
Операция transfer
Имеет идентификатор 0. Отвечает за отправке средств между пользователем А и Б.
Операция limit_order_create
Имеет идентификатор 1. Отвечает за Создание обмена на бирже.
Операция limit_order_cancel
Имеет идентификатор 2. Отвечает за отмену ордера (созданного в шаге limit_order_create
Операция call_order_update
Имеет идентификатор 3. Операция отвечает за выполнение ордера( полный обмен или частичный обмен)
Операция fill_order
Имеет идентификатор 4.Операция отвечает за зачисление купленной монеты.
Операция account_create
Идентификатор 5. Операция отвечает за создание аккаунта .
Операция account_update
Идентификатор 6. Операция выполняется при обновлении настроек пользователя
Операция account_whitelist
Идентификатор 7. сохранение натсроек в вайтлист
Операция account_upgrade
Идентификатор 8, сколько стоит получить лайф-статус. (пожизненный статус)
Операция asset_create
Идентификатор 10. создание ассета
Операция asset_update
Идентификатор 11. Редактирование параметров ассета
Операция asset_update_bitasset
Идентификатор 12. Обновление монет с включенными параметрами смарт.
Операция asset_update_feed_producers
Идентификатор 13. Обновление информации о поставщиках цен для монет
Операция asset_issue
Идентификатор 14. Выпуск ассета (начисление монет)
Операция asset_fund_fee_pool
Идентификатор 16, Снятие монет с комиссионного пула.
Операция asset_publish_feed
Идентификатор 19. Отправка цены монеты (извещение системы о курса монеты для смарт контракта)
Операция witness_create
Идентификатор 20. создание валидатора
Операция witness_update
Идентификатор 21. Обновление данных Валидатора
Операция proposal_create
Идентификатор 22. Создание предложение
Операция proposal_update
Идентификатор 23. Обновление данных о предложении
Операция proposal_delete
Идентификатор 24. Удаление предложения
Операция transfer_to_blind
Идентификатор 39
Операция отправка средств с публичного на стелс аккаунт
Операция blind_transfer
Идентификатор 40. Отправка из скрытого стелс адреса в публичный аккаунт
Компания Genesis Block – международный системный интегратор и разработчик финтех-решений, систем платежей и процессинга, систем биллинга и программных решений для ЖКХ, блокчейн-решений, веб-сайтов, порталов и мобильных приложений. Под брендом Genesis Block объединены компании, разработчики и сервисы, работающие на рынке с 2010 г. Качество наших сервисов подтверждается международной сертификацией по ISO. Входим в российскую ассоциацию программного обеспечения НП РУССОФТ. Genesis Block является постоянным главным спонсором и спикером на международных банковских и финансовых конференциях IFIN и ВБА (Вся Банковская Автоматизация). Аккредитованная IT-компания Минкомсвязи. Является членом РАКИБ (Российская Ассоциация Криптовалют и Блокчейна). С 2020 компания Genesis Block ведет собственную авторскую передачу на деловом телевидении ПРОБИЗНЕС. Являемся авторизованным официальным интегратором крупнейшей BPM / CRM системы Terrasoft.