Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CNewAsset Class Reference

#include <assettypes.h>

Public Member Functions

 CNewAsset ()
 
 CNewAsset (const std::string &strName, const CAmount &nAmount, const int &units, const int &nReissuable, const int &nHasIPFS, const std::string &strIPFSHash)
 
 CNewAsset (const std::string &strName, const CAmount &nAmount)
 
 CNewAsset (const CNewAsset &asset)
 
CNewAssetoperator= (const CNewAsset &asset)
 
void SetNull ()
 
bool IsNull () const
 
std::string ToString ()
 
void ConstructTransaction (CScript &script) const
 Constructs a CScript that carries the asset name and quantity and adds to to the end of the given script. More...
 
void ConstructOwnerTransaction (CScript &script) const
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

std::string strName
 
CAmount nAmount
 
int8_t units
 
int8_t nReissuable
 
int8_t nHasIPFS
 
std::string strIPFSHash
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Definition at line 97 of file assettypes.h.

Constructor & Destructor Documentation

◆ CNewAsset() [1/4]

CNewAsset::CNewAsset ( )
inline

Definition at line 107 of file assettypes.h.

◆ CNewAsset() [2/4]

CNewAsset::CNewAsset ( const std::string &  strName,
const CAmount nAmount,
const int &  units,
const int &  nReissuable,
const int &  nHasIPFS,
const std::string &  strIPFSHash 
)

Definition at line 456 of file assets.cpp.

Here is the call graph for this function:

◆ CNewAsset() [3/4]

CNewAsset::CNewAsset ( const std::string &  strName,
const CAmount nAmount 
)

Definition at line 466 of file assets.cpp.

Here is the call graph for this function:

◆ CNewAsset() [4/4]

CNewAsset::CNewAsset ( const CNewAsset asset)

Definition at line 419 of file assets.cpp.

Member Function Documentation

◆ ConstructOwnerTransaction()

void CNewAsset::ConstructOwnerTransaction ( CScript script) const

Definition at line 510 of file assets.cpp.

◆ ConstructTransaction()

void CNewAsset::ConstructTransaction ( CScript script) const

Constructs a CScript that carries the asset name and quantity and adds to to the end of the given script.

Parameters
dest- The destination that the asset will belong to
script- This script needs to be a pay to address script

Definition at line 495 of file assets.cpp.

◆ IsNull()

bool CNewAsset::IsNull ( ) const

Definition at line 414 of file assets.cpp.

◆ operator=()

CNewAsset & CNewAsset::operator= ( const CNewAsset asset)

Definition at line 429 of file assets.cpp.

◆ SerializationOp()

template<typename Stream , typename Operation >
void CNewAsset::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 137 of file assettypes.h.

Here is the call graph for this function:

◆ SetNull()

void CNewAsset::SetNull ( )
inline

Definition at line 118 of file assettypes.h.

Here is the caller graph for this function:

◆ ToString()

std::string CNewAsset::ToString ( )

Definition at line 440 of file assets.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CNewAsset::ADD_SERIALIZE_METHODS

Definition at line 134 of file assettypes.h.

◆ nAmount

CAmount CNewAsset::nAmount

Definition at line 101 of file assettypes.h.

◆ nHasIPFS

int8_t CNewAsset::nHasIPFS

Definition at line 104 of file assettypes.h.

◆ nReissuable

int8_t CNewAsset::nReissuable

Definition at line 103 of file assettypes.h.

◆ strIPFSHash

std::string CNewAsset::strIPFSHash

Definition at line 105 of file assettypes.h.

◆ strName

std::string CNewAsset::strName

Definition at line 100 of file assettypes.h.

◆ units

int8_t CNewAsset::units

Definition at line 102 of file assettypes.h.


The documentation for this class was generated from the following files: