COOPENOMICS  v1
Кооперативная Экономика
test_symbol.hpp
См. документацию.
1#pragma once
2
3#define CORE_SYM_NAME "TAXON"
4#define CORE_SYM_PRECISION 4
5
6#define _STRINGIZE1(x) #x
7#define _STRINGIZE2(x) _STRINGIZE1(x)
8
9#define CORE_SYM_STR ( _STRINGIZE2(CORE_SYM_PRECISION) "," CORE_SYM_NAME )
10#define CORE_SYM ( ::eosio::chain::string_to_symbol_c( CORE_SYM_PRECISION, CORE_SYM_NAME ) )
11
12struct core_sym {
13 static inline eosio::chain::asset from_string(const std::string& s) {
14 return eosio::chain::asset::from_string(s + " " CORE_SYM_NAME);
15 }
16};
Definition: test_symbol.hpp:12
static eosio::chain::asset from_string(const std::string &s)
Definition: test_symbol.hpp:13
#define CORE_SYM_NAME
Definition: test_symbol.hpp:3