mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
35 lines
643 B
C++
35 lines
643 B
C++
#pragma once
|
|
|
|
#include <xrpl/tx/Transactor.h>
|
|
|
|
namespace xrpl {
|
|
|
|
class DelegateSet : public Transactor
|
|
{
|
|
public:
|
|
static constexpr ConsequencesFactoryType ConsequencesFactory{Normal};
|
|
|
|
explicit DelegateSet(ApplyContext& ctx) : Transactor(ctx)
|
|
{
|
|
}
|
|
|
|
static NotTEC
|
|
preflight(PreflightContext const& ctx);
|
|
|
|
static TER
|
|
preclaim(PreclaimContext const& ctx);
|
|
|
|
TER
|
|
doApply() override;
|
|
|
|
// Interface used by DeleteAccount
|
|
static TER
|
|
deleteDelegate(
|
|
ApplyView& view,
|
|
std::shared_ptr<SLE> const& sle,
|
|
AccountID const& account,
|
|
beast::Journal j);
|
|
};
|
|
|
|
} // namespace xrpl
|