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

Классы

struct  income
 
struct  outcome
 

Определения типов

typedef eosio::multi_index< "incomes"_n, income, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< income, checksum256, &income::by_hash > >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun< income, uint64_t, &income::by_username > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< income, uint64_t, &income::by_status > > > incomes_index
 
typedef eosio::multi_index< "outcomes"_n, outcome, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< outcome, checksum256, &outcome::by_hash > >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun< outcome, uint64_t, &outcome::by_username > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< outcome, uint64_t, &outcome::by_status > > > outcomes_index
 

Функции

eosio::name get_valid_income_action (const eosio::name &action)
 
eosio::name get_valid_outcome_action (const eosio::name &action)
 
void create_outcome (name calling_contract, CREATEOUTPAY_SIGNATURE)
 
std::optional< incomeget_income (eosio::name coopname, const checksum256 &hash)
 
std::optional< outcomeget_outcome (eosio::name coopname, const checksum256 &hash)
 

Переменные

static const std::set< eosio::name > gateway_income_actions
 
static const std::set< eosio::name > gateway_outcome_actions
 

Типы

◆ incomes_index

typedef eosio::multi_index< "incomes"_n, income, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<income, checksum256, &income::by_hash> >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun<income, uint64_t, &income::by_username> >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<income, uint64_t, &income::by_status> > > Gateway::incomes_index

◆ outcomes_index

typedef eosio::multi_index< "outcomes"_n, outcome, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<outcome, checksum256, &outcome::by_hash> >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun<outcome, uint64_t, &outcome::by_username> >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<outcome, uint64_t, &outcome::by_status> > > Gateway::outcomes_index

Функции

◆ create_outcome()

void Gateway::create_outcome ( name  calling_contract,
CREATEOUTPAY_SIGNATURE   
)
inline

◆ get_income()

std::optional< income > Gateway::get_income ( eosio::name  coopname,
const checksum256 &  hash 
)
inline

◆ get_outcome()

std::optional< outcome > Gateway::get_outcome ( eosio::name  coopname,
const checksum256 &  hash 
)
inline

◆ get_valid_income_action()

eosio::name Gateway::get_valid_income_action ( const eosio::name &  action)
inline

◆ get_valid_outcome_action()

eosio::name Gateway::get_valid_outcome_action ( const eosio::name &  action)
inline

Переменные

◆ gateway_income_actions

const std::set<eosio::name> Gateway::gateway_income_actions
static
Инициализатор
= {
"deposit"_n,
}

◆ gateway_outcome_actions

const std::set<eosio::name> Gateway::gateway_outcome_actions
static
Инициализатор
= {
"withdraw"_n,
}