3#include <eosio/asset.hpp>
4#include <eosio/crypto.hpp>
5#include <eosio/eosio.hpp>
7#include "../consts.hpp"
25 uint64_t
by_created()
const {
return created_at.sec_since_epoch(); }
26 uint64_t
by_repaid()
const {
return repaid_at.sec_since_epoch(); }
31 indexed_by<
"byusername"_n, const_mem_fun<debt, uint64_t, &debt::by_username>>,
32 indexed_by<
"bydebthash"_n, const_mem_fun<debt, checksum256, &debt::by_debt_hash>>,
33 indexed_by<
"bycreated"_n, const_mem_fun<debt, uint64_t, &debt::by_created>>,
34 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:35
Definition: eosio.msig.hpp:34
Definition: table_loan_debts.hpp:13
checksum256 debt_hash
Definition: table_loan_debts.hpp:17
asset amount
Definition: table_loan_debts.hpp:18
name coopname
Definition: table_loan_debts.hpp:15
uint64_t by_username() const
Definition: table_loan_debts.hpp:23
uint64_t by_created() const
Definition: table_loan_debts.hpp:25
checksum256 by_debt_hash() const
Definition: table_loan_debts.hpp:24
time_point_sec repaid_at
Definition: table_loan_debts.hpp:20
uint64_t primary_key() const
Definition: table_loan_debts.hpp:22
name username
Definition: table_loan_debts.hpp:16
time_point_sec created_at
Definition: table_loan_debts.hpp:19
uint64_t by_repaid() const
Definition: table_loan_debts.hpp:26
uint64_t id
Definition: table_loan_debts.hpp:14
Definition: table_capital_debts.hpp:12