20 #ifndef RIPPLE_PROTOCOL_STXCHAINBRIDGE_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STXCHAINBRIDGE_H_INCLUDED
23 #include <ripple/protocol/STAccount.h>
24 #include <ripple/protocol/STBase.h>
25 #include <ripple/protocol/STIssue.h>
63 Issue const& srcChainIssue,
65 Issue const& dstChainIssue);
115 value() const noexcept;
122 copy(
std::
size_t n,
void* buf) const override;
124 move(
std::
size_t n,
void* buf) override;
137 lhs.lockingChainDoor_,
138 lhs.lockingChainIssue_,
139 lhs.issuingChainDoor_,
140 lhs.issuingChainIssue_) ==
142 rhs.lockingChainDoor_,
143 rhs.lockingChainIssue_,
144 rhs.issuingChainDoor_,
145 rhs.issuingChainIssue_);
220 if (wasLockingChainSend)
228 if (wasLockingChainSend)
STIssue issuingChainIssue_
static ChainType otherChain(ChainType ct)
A currency issued by an account.
static ChainType srcChain(bool wasLockingChainSend)
Issue const & issue(ChainType ct) const
const SF_ACCOUNT sfLockingChainDoor
static ChainType dstChain(bool wasLockingChainSend)
SerializedTypeID getSType() const override
Issue const & lockingChainIssue() const
STAccount issuingChainDoor_
STObject toSTObject() const
STBase * move(std::size_t n, void *buf) override
STIssue lockingChainIssue_
static std::unique_ptr< STXChainBridge > construct(SerialIter &, SField const &name)
Integers of any length that is a multiple of 32-bits.
STXChainBridge & operator=(STXChainBridge const &rhs)=default
Issue const & issuingChainIssue() const
std::string getText() const override
const SF_ISSUE sfLockingChainIssue
STXChainBridge value_type
AccountID const & door(ChainType ct) const
STAccount lockingChainDoor_
Issue const & value() const noexcept
AccountID const & lockingChainDoor() const
bool isDefault() const override
STBase * copy(std::size_t n, void *buf) const override
AccountID const & issuingChainDoor() const
value_type const & value() const noexcept
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
A type which can be exported to a well known binary format.
bool isEquivalent(const STBase &t) const override
friend bool operator<(STXChainBridge const &lhs, STXChainBridge const &rhs)
const SF_ACCOUNT sfIssuingChainDoor
AccountID const & value() const noexcept
const SF_ISSUE sfIssuingChainIssue
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
void add(Serializer &s) const override
Json::Value getJson(JsonOptions) const override