COOPENOMICS
v1
Кооперативная Экономика
test.hpp
См. документацию.
1
#pragma once
2
3
#include <eosio/eosio.hpp>
4
#include <eosio/asset.hpp>
5
6
using namespace
eosio
;
7
8
class
[[
eosio::contract
("
test
")]]
test
:
public
contract
{
9
public
:
10
using
contract::contract
;
11
15
struct
[[eosio::table]]
testrecord
{
16
uint64_t
id
;
17
uint64_t
counter
;
18
uint64_t
value
;
19
std::string
status
;
20
21
uint64_t
primary_key
()
const
{
return
id; }
22
};
23
24
typedef
eosio::multi_index<
"testrecords"
_n,
testrecord
>
testrecords_index
;
25
29
[[
eosio::action
]]
30
void
testmultimod(uint64_t record_id);
31
35
[[
eosio::action
]]
36
void
clear();
37
41
[[
eosio::action
]]
42
void
init(uint64_t record_id);
43
};
test
Definition:
test.hpp:8
test::testrecords_index
eosio::multi_index<"testrecords"_n, testrecord > testrecords_index
Definition:
test.hpp:24
contract
contract
Definition:
eosio.msig_tests.cpp:977
eosio
Definition:
eosio.msig.hpp:34
action
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()
test::testrecord
Тестовая таблица для проверки множественных обновлений
Definition:
test.hpp:15
test::testrecord::value
uint64_t value
Definition:
test.hpp:18
test::testrecord::id
uint64_t id
Definition:
test.hpp:16
test::testrecord::primary_key
uint64_t primary_key() const
Definition:
test.hpp:21
test::testrecord::counter
uint64_t counter
Definition:
test.hpp:17
test::testrecord::status
std::string status
Definition:
test.hpp:19
cpp
test
test.hpp
Создано системой
1.9.3