|
|
@ -161,6 +161,27 @@ public: |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
class CETHNFTAddress |
|
|
|
{ |
|
|
|
public: |
|
|
|
uint160 contractID; |
|
|
|
uint256 tokenID; |
|
|
|
|
|
|
|
CETHNFTAddress() {} |
|
|
|
CETHNFTAddress(const UniValue &uni); |
|
|
|
CETHNFTAddress(const uint160 &contract, const uint256 &token) : contractID(contract), tokenID(token) {} |
|
|
|
|
|
|
|
ADD_SERIALIZE_METHODS; |
|
|
|
|
|
|
|
template <typename Stream, typename Operation> |
|
|
|
inline void SerializationOp(Stream& s, Operation ser_action) { |
|
|
|
READWRITE(contractID); |
|
|
|
READWRITE(tokenID); |
|
|
|
} |
|
|
|
|
|
|
|
UniValue ToUniValue() const; |
|
|
|
}; |
|
|
|
|
|
|
|
class CTransferDestination |
|
|
|
{ |
|
|
|
public: |
|
|
@ -350,27 +371,6 @@ public: |
|
|
|
UniValue ToUniValue() const; |
|
|
|
}; |
|
|
|
|
|
|
|
class CETHNFTAddress |
|
|
|
{ |
|
|
|
public: |
|
|
|
uint160 contractID; |
|
|
|
uint256 tokenID; |
|
|
|
|
|
|
|
CETHNFTAddress() {} |
|
|
|
CETHNFTAddress(const UniValue &uni); |
|
|
|
CETHNFTAddress(const uint160 &contract, const uint256 &token) : contractID(contract), tokenID(token) {} |
|
|
|
|
|
|
|
ADD_SERIALIZE_METHODS; |
|
|
|
|
|
|
|
template <typename Stream, typename Operation> |
|
|
|
inline void SerializationOp(Stream& s, Operation ser_action) { |
|
|
|
READWRITE(contractID); |
|
|
|
READWRITE(tokenID); |
|
|
|
} |
|
|
|
|
|
|
|
UniValue ToUniValue() const; |
|
|
|
}; |
|
|
|
|
|
|
|
extern int64_t AmountFromValueNoErr(const UniValue& value); |
|
|
|
|
|
|
|
// convenience class for collections of currencies that supports comparisons, including ==, >, >=, <, <=, as well as addition, and subtraction
|
|
|
|