COOPENOMICS  v1
Кооперативная Экономика
wallet.hpp
См. документацию.
1// capital.hpp
2
3#pragma once
4
5#include <eosio/eosio.hpp>
6#include <eosio/asset.hpp>
7#include "../lib/index.hpp"
8
9using namespace eosio;
10using std::string;
11
16class [[eosio::contract]] wallet : public contract {
17public:
19 [[eosio::action]] void migrate();
20
21 //паевой взнос
22 [[eosio::action]] void createdpst(eosio::name coopname, eosio::name username, checksum256 deposit_hash, eosio::asset quantity);
23 [[eosio::action]] void completedpst(eosio::name coopname, checksum256 deposit_hash);
24 [[eosio::action]] void declinedpst(eosio::name coopname, checksum256 deposit_hash, std::string reason);
25
26 //возврат паевого взноса
27 [[eosio::action]] void createwthd(eosio::name coopname, eosio::name username, checksum256 withdraw_hash, eosio::asset quantity, document2 statement);
28 [[eosio::action]] void completewthd(COMPLETEWTHD_SIGNATURE);
29 [[eosio::action]] void declinewthd(DECLINEWTHD_SIGNATURE);
30 [[eosio::action]] void authwthd(AUTHWTHD_SIGNATURE);
31 [[eosio::action]] void approvewthd(eosio::name coopname, checksum256 withdraw_hash, document2 approved_statement);
32
33};
Контракт Wallet управляет взносами и возвратами взносов по ЦПП "Цифровой Кошелёк".
Definition: wallet.hpp:16
contract
Definition: eosio.msig_tests.cpp:977
#define AUTHWTHD_SIGNATURE
Definition: wallet.hpp:22
#define COMPLETEWTHD_SIGNATURE
Definition: wallet.hpp:16
#define DECLINEWTHD_SIGNATURE
Definition: wallet.hpp:17
Definition: eosio.msig.hpp:34
action(permission_level{ _gateway, "active"_n}, _gateway, "adduser"_n, std::make_tuple(coopname, deposit->username, to_spread, to_circulation, eosio::current_time_point(), true)).send()
Definition: document_core.hpp:27