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)
 
std::optional< incomeget_income (eosio::name coopname, const checksum256 &hash)
 Получает возврат из кошелька по хэшу. Подробнее...
 
std::optional< outcomeget_outcome (eosio::name coopname, const checksum256 &hash)
 
void create_outcome (name calling_contract, CREATEOUTPAY_SIGNATURE)
 

Переменные

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

Мультииндекс для доступа и манипуляции данными таблицы incomes

◆ 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

Мультииндекс для доступа и манипуляции данными таблицы outcome

Функции

◆ 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

Получает возврат из кошелька по хэшу.

Аргументы
coopnameИмя кооператива (scope таблицы).
hashХэш возврата.
Возвращает
std::optional<income> - найденное действие или std::nullopt, если его нет.

◆ 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