Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
system.cpp
Go to the documentation of this file.
1
#include <
sysio/chain/webassembly/interface.hpp
>
2
#include <
sysio/chain/transaction_context.hpp
>
3
#include <
sysio/chain/apply_context.hpp
>
4
5
namespace
sysio
{
namespace
chain {
namespace
webassembly {
6
/* these are both unfortunate that we didn't make the return type an int64_t */
7
uint64_t
interface::current_time
()
const
{
8
return
static_cast<
uint64_t
>
(
context
.control.pending_block_time().time_since_epoch().
count
() );
9
}
10
11
uint64_t
interface::publication_time
()
const
{
12
return
static_cast<
uint64_t
>
(
context
.trx_context.published.time_since_epoch().
count
() );
13
}
14
15
bool
interface::is_feature_activated
(
legacy_ptr<const digest_type>
feature_digest )
const
{
16
return
context
.control.is_protocol_feature_activated( *feature_digest );
17
}
18
19
name
interface::get_sender
()
const
{
20
return
context
.get_sender();
21
}
22
23
uint32_t
interface::get_block_num
()
const
{
24
return
context
.control.pending_block_num();
25
}
26
27
}}}
// ns sysio::chain::webassembly
apply_context.hpp
sysio::chain::webassembly::interface::get_block_num
uint32_t get_block_num() const
Definition
system.cpp:23
sysio::chain::webassembly::interface::current_time
uint64_t current_time() const
Definition
system.cpp:7
sysio::chain::webassembly::interface::is_feature_activated
bool is_feature_activated(legacy_ptr< const digest_type > feature_digest) const
Definition
system.cpp:15
sysio::chain::webassembly::interface::publication_time
uint64_t publication_time() const
Definition
system.cpp:11
sysio::chain::webassembly::interface::get_sender
name get_sender() const
Definition
system.cpp:19
count
int * count
Definition
gmock_stress_test.cc:177
interface.hpp
sysio
Definition
abi_serializer.cpp:8
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:136
context
Definition
yubihsm_winhttp.c:52
sysio::chain::name
Immutable except for fc::from_variant.
Definition
name.hpp:43
sysio::vm::argument_proxy
Definition
argument_proxy.hpp:16
transaction_context.hpp
libraries
chain
webassembly
system.cpp
Generated by
1.12.0