4#include "../core/ram_payer.hpp"
5#include <eosio/asset.hpp>
6#include <eosio/crypto.hpp>
7#include <eosio/eosio.hpp>
9#include "../consts.hpp"
27 uint64_t
by_created()
const {
return created_at.sec_since_epoch(); }
28 uint64_t
by_repaid()
const {
return repaid_at.sec_since_epoch(); }
33 indexed_by<
"byusername"_n, const_mem_fun<debt, uint64_t, &debt::by_username>>,
34 indexed_by<
"bydebthash"_n, const_mem_fun<debt, checksum256, &debt::by_debt_hash>>,
35 indexed_by<
"bycreated"_n, const_mem_fun<debt, uint64_t, &debt::by_created>>,
36 indexed_by<
"byrepaid"_n, const_mem_fun<debt, uint64_t, &debt::by_repaid>>>
contract
Definition: eosio.msig_tests.cpp:977
multi_index< "debts"_n, debt, indexed_by<"byusername"_n, const_mem_fun< debt, uint64_t, &debt::by_username > >, indexed_by<"bydebthash"_n, const_mem_fun< debt, checksum256, &debt::by_debt_hash > >, indexed_by<"bycreated"_n, const_mem_fun< debt, uint64_t, &debt::by_created > >, indexed_by<"byrepaid"_n, const_mem_fun< debt, uint64_t, &debt::by_repaid > > > debts_index
Definition: table_loan_debts.hpp:37
Definition: eosio.msig.hpp:34
Definition: table_loan_debts.hpp:15
checksum256 debt_hash
Definition: table_loan_debts.hpp:19
asset amount
Definition: table_loan_debts.hpp:20
name coopname
Definition: table_loan_debts.hpp:17
uint64_t by_username() const
Definition: table_loan_debts.hpp:25
uint64_t by_created() const
Definition: table_loan_debts.hpp:27
checksum256 by_debt_hash() const
Definition: table_loan_debts.hpp:26
time_point_sec repaid_at
Definition: table_loan_debts.hpp:22
uint64_t primary_key() const
Definition: table_loan_debts.hpp:24
name username
Definition: table_loan_debts.hpp:18
time_point_sec created_at
Definition: table_loan_debts.hpp:21
uint64_t by_repaid() const
Definition: table_loan_debts.hpp:28
uint64_t id
Definition: table_loan_debts.hpp:16
Definition: table_registrator_orgs.hpp:17
Definition: table_capital_debts.hpp:14
RAM_PAYER_CLASS(Loan::debt, cooperative)