rippled
ripple
app
tx
impl
SetRegularKey.h
1
//------------------------------------------------------------------------------
2
/*
3
This file is part of rippled: https://github.com/ripple/rippled
4
Copyright (c) 2012, 2013 Ripple Labs Inc.
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
//==============================================================================
19
20
#ifndef RIPPLE_TX_SETREGULARKEY_H_INCLUDED
21
#define RIPPLE_TX_SETREGULARKEY_H_INCLUDED
22
23
#include <ripple/app/tx/impl/Transactor.h>
24
#include <ripple/basics/Log.h>
25
#include <ripple/protocol/TxFlags.h>
26
#include <ripple/protocol/UintTypes.h>
27
28
namespace
ripple
{
29
30
class
SetRegularKey
:
public
Transactor
31
{
32
public
:
33
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Blocker
};
34
35
explicit
SetRegularKey
(
ApplyContext
& ctx) :
Transactor
(ctx)
36
{
37
}
38
39
static
NotTEC
40
preflight
(
PreflightContext
const
& ctx);
41
42
static
XRPAmount
43
calculateBaseFee
(
ReadView
const
&
view
,
STTx
const
& tx);
44
45
TER
46
doApply
()
override
;
47
};
48
49
}
// namespace ripple
50
51
#endif
ripple::Transactor::Blocker
@ Blocker
Definition:
Transactor.h:101
ripple::Transactor
Definition:
Transactor.h:85
ripple::SetRegularKey::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition:
SetRegularKey.h:33
ripple::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition:
Transactor.h:101
ripple::TERSubset
Definition:
TER.h:340
ripple::STTx
Definition:
STTx.h:45
ripple::ApplyContext
State information when applying a tx.
Definition:
ApplyContext.h:35
ripple::ReadView
A view into a ledger.
Definition:
ReadView.h:125
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition:
RCLCensorshipDetector.h:29
ripple::SetRegularKey
Definition:
SetRegularKey.h:30
ripple::SetRegularKey::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition:
SetRegularKey.cpp:51
ripple::Transactor::view
ApplyView & view()
Definition:
Transactor.h:107
ripple::SetRegularKey::doApply
TER doApply() override
Definition:
SetRegularKey.cpp:76
ripple::SetRegularKey::SetRegularKey
SetRegularKey(ApplyContext &ctx)
Definition:
SetRegularKey.h:35
ripple::PreflightContext
State information when preflighting a tx.
Definition:
Transactor.h:31
ripple::SetRegularKey::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition:
SetRegularKey.cpp:28
ripple::XRPAmount
Definition:
XRPAmount.h:46
Generated by
1.8.17