CatapultServer
v0.5.0.1 (Elephant)
LockNotifications.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
catapult/model/Mosaic.h
"
23
#include "
catapult/model/Notifications.h
"
24
25
namespace
catapult
{
namespace
model {
26
27
// region BaseLockDurationNotification
28
30
template
<
typename
TDerivedNotification>
31
struct
BaseLockDurationNotification
:
public
Notification
{
32
public
:
34
explicit
BaseLockDurationNotification
(
BlockDuration
duration)
35
:
Notification
(TDerivedNotification::Notification_Type, sizeof(TDerivedNotification))
36
,
Duration
(duration)
37
{}
38
39
public
:
41
BlockDuration
Duration
;
42
};
43
44
// endregion
45
46
// region BaseLockNotification
47
49
template
<
typename
TDerivedNotification>
50
struct
BaseLockNotification
:
public
Notification
{
51
protected
:
53
BaseLockNotification
(
const
Key
& signer,
const
UnresolvedMosaic
& mosaic,
BlockDuration
duration)
54
:
Notification
(TDerivedNotification::Notification_Type, sizeof(TDerivedNotification))
55
,
Signer
(signer)
56
,
Mosaic
(mosaic)
57
,
Duration
(duration)
58
{}
59
60
public
:
62
const
Key
&
Signer
;
63
65
UnresolvedMosaic
Mosaic
;
66
68
BlockDuration
Duration
;
69
};
70
71
// endregion
72
}}
Mosaic.h
catapult::model::BaseLockNotification::Signer
const Key & Signer
Signer.
Definition:
LockNotifications.h:62
catapult::model::MosaicT< UnresolvedMosaicId >
catapult::model::BaseLockDurationNotification::BaseLockDurationNotification
BaseLockDurationNotification(BlockDuration duration)
Creates a notification around duration.
Definition:
LockNotifications.h:34
catapult::utils::BaseValue< uint64_t, BlockDuration_tag >
catapult::model::BaseLockNotification::BaseLockNotification
BaseLockNotification(const Key &signer, const UnresolvedMosaic &mosaic, BlockDuration duration)
Creates base lock notification around signer, mosaic and duration.
Definition:
LockNotifications.h:53
catapult::model::BaseLockDurationNotification
Base for lock duration notification.
Definition:
LockNotifications.h:31
Notifications.h
catapult::model::Notification
A basic notification.
Definition:
Notifications.h:36
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::model::BaseLockDurationNotification::Duration
BlockDuration Duration
Lock duration.
Definition:
LockNotifications.h:41
catapult::model::BaseLockNotification::Mosaic
UnresolvedMosaic Mosaic
Locked mosaic.
Definition:
LockNotifications.h:65
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::model::BaseLockNotification
Base for lock transaction notification.
Definition:
LockNotifications.h:50
catapult::model::BaseLockNotification::Duration
BlockDuration Duration
Lock duration.
Definition:
LockNotifications.h:68
catapult-server
plugins
txes
lock_shared
src
model
LockNotifications.h
Generated by
1.8.16