Raven Core  3.0.0
P2P Digital Currency
Classes | Macros | Enumerations | Functions | Variables
assettypes.h File Reference
#include <string>
#include <sstream>
#include <list>
#include <unordered_map>
#include "amount.h"
#include "script/standard.h"
#include "primitives/transaction.h"
Include dependency graph for assettypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CNewAsset
 
class  AssetComparator
 
class  CDatabasedAssetData
 
class  CAssetTransfer
 
class  CReissueAsset
 
class  CNullAssetTxData
 
class  CNullAssetTxVerifierString
 
struct  CAssetCacheNewAsset
 THESE ARE ONLY TO BE USED WHEN ADDING THINGS TO THE CACHE DURING CONNECT AND DISCONNECT BLOCK. More...
 
struct  CAssetCacheReissueAsset
 
struct  CAssetCacheNewTransfer
 
struct  CAssetCacheNewOwner
 
struct  CAssetCacheUndoAssetAmount
 
struct  CAssetCacheSpendAsset
 
struct  CAssetCacheQualifierAddress
 
struct  CAssetCacheRootQualifierChecker
 
struct  CAssetCacheRestrictedAddress
 
struct  CAssetCacheRestrictedGlobal
 
struct  CAssetCacheRestrictedVerifiers
 
class  CLRUCache< cache_key_t, cache_value_t >
 

Macros

#define MAX_UNIT   8
 
#define MIN_UNIT   0
 

Enumerations

enum  AssetType {
  AssetType::ROOT = 0, AssetType::SUB = 1, AssetType::UNIQUE = 2, AssetType::OWNER = 3,
  AssetType::MSGCHANNEL = 4, AssetType::VOTE = 5, AssetType::REISSUE = 6, AssetType::QUALIFIER = 7,
  AssetType::SUB_QUALIFIER = 8, AssetType::RESTRICTED = 9, AssetType::NULL_ADD_QUALIFIER = 10, AssetType::INVALID = 11
}
 
enum  QualifierType { QualifierType::REMOVE_QUALIFIER = 0, QualifierType::ADD_QUALIFIER = 1 }
 
enum  RestrictedType { RestrictedType::UNFREEZE_ADDRESS = 0, RestrictedType::FREEZE_ADDRESS = 1, RestrictedType::GLOBAL_UNFREEZE = 2, RestrictedType::GLOBAL_FREEZE = 3 }
 

Functions

int IntFromAssetType (AssetType type)
 
AssetType AssetTypeFromInt (int nType)
 
template<typename Stream , typename Operation >
bool ReadWriteAssetHash (Stream &s, Operation ser_action, std::string &strIPFSHash)
 

Variables

const char IPFS_SHA2_256 = 0x12
 
const char TXID_NOTIFIER = 0x54
 
const char IPFS_SHA2_256_LEN = 0x20
 

Macro Definition Documentation

◆ MAX_UNIT

#define MAX_UNIT   8

Definition at line 16 of file assettypes.h.

◆ MIN_UNIT

#define MIN_UNIT   0

Definition at line 17 of file assettypes.h.

Enumeration Type Documentation

◆ AssetType

enum AssetType
strong
Enumerator
ROOT 
SUB 
UNIQUE 
OWNER 
MSGCHANNEL 
VOTE 
REISSUE 
QUALIFIER 
SUB_QUALIFIER 
RESTRICTED 
NULL_ADD_QUALIFIER 
INVALID 

Definition at line 21 of file assettypes.h.

◆ QualifierType

enum QualifierType
strong
Enumerator
REMOVE_QUALIFIER 
ADD_QUALIFIER 

Definition at line 37 of file assettypes.h.

◆ RestrictedType

enum RestrictedType
strong
Enumerator
UNFREEZE_ADDRESS 
FREEZE_ADDRESS 
GLOBAL_UNFREEZE 
GLOBAL_FREEZE 

Definition at line 43 of file assettypes.h.

Function Documentation

◆ AssetTypeFromInt()

AssetType AssetTypeFromInt ( int  nType)

Definition at line 12 of file assettypes.cpp.

Here is the caller graph for this function:

◆ IntFromAssetType()

int IntFromAssetType ( AssetType  type)

Definition at line 8 of file assettypes.cpp.

Here is the caller graph for this function:

◆ ReadWriteAssetHash()

template<typename Stream , typename Operation >
bool ReadWriteAssetHash ( Stream &  s,
Operation  ser_action,
std::string &  strIPFSHash 
)

Definition at line 59 of file assettypes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ IPFS_SHA2_256

const char IPFS_SHA2_256 = 0x12

Definition at line 54 of file assettypes.h.

◆ IPFS_SHA2_256_LEN

const char IPFS_SHA2_256_LEN = 0x20

Definition at line 56 of file assettypes.h.

◆ TXID_NOTIFIER

const char TXID_NOTIFIER = 0x54

Definition at line 55 of file assettypes.h.