Raven Core  3.0.0
P2P Digital Currency
Functions
assets.cpp File Reference
#include "assets/assets.h"
#include "assets/assetdb.h"
#include <map>
#include "tinyformat.h"
#include "amount.h"
#include "base58.h"
#include "chain.h"
#include "consensus/validation.h"
#include "core_io.h"
#include "httpserver.h"
#include "validation.h"
#include "net.h"
#include "policy/feerate.h"
#include "policy/fees.h"
#include "policy/policy.h"
#include "policy/rbf.h"
#include "rpc/mining.h"
#include "rpc/safemode.h"
#include "rpc/server.h"
#include "script/sign.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
#include "wallet/coincontrol.h"
#include "wallet/feebumper.h"
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
Include dependency graph for assets.cpp:

Go to the source code of this file.

Functions

void CheckIPFSTxidMessage (const std::string &message, int64_t expireTime)
 
void CheckRestrictedAssetTransferInputs (const CWalletTx &transaction, const std::string &asset_name)
 
std::string AssetActivationWarning ()
 
std::string RestrictedActivationWarning ()
 
std::string AssetTypeToString (AssetType &assetType)
 
UniValue UnitValueFromAmount (const CAmount &amount, const std::string asset_name)
 
UniValue UpdateAddressTag (const JSONRPCRequest &request, const int8_t &flag)
 
UniValue UpdateAddressRestriction (const JSONRPCRequest &request, const int8_t &flag)
 
UniValue UpdateGlobalRestrictedAsset (const JSONRPCRequest &request, const int8_t &flag)
 
UniValue issue (const JSONRPCRequest &request)
 
UniValue issueunique (const JSONRPCRequest &request)
 
UniValue listassetbalancesbyaddress (const JSONRPCRequest &request)
 
UniValue getassetdata (const JSONRPCRequest &request)
 
template<class Iter , class Incr >
void safe_advance (Iter &curr, const Iter &end, Incr n)
 
UniValue listmyassets (const JSONRPCRequest &request)
 
UniValue listaddressesbyasset (const JSONRPCRequest &request)
 
UniValue transfer (const JSONRPCRequest &request)
 
UniValue transferfromaddresses (const JSONRPCRequest &request)
 
UniValue transferfromaddress (const JSONRPCRequest &request)
 
UniValue reissue (const JSONRPCRequest &request)
 
UniValue listassets (const JSONRPCRequest &request)
 
UniValue getcacheinfo (const JSONRPCRequest &request)
 
UniValue addtagtoaddress (const JSONRPCRequest &request)
 
UniValue removetagfromaddress (const JSONRPCRequest &request)
 
UniValue freezeaddress (const JSONRPCRequest &request)
 
UniValue unfreezeaddress (const JSONRPCRequest &request)
 
UniValue freezerestrictedasset (const JSONRPCRequest &request)
 
UniValue unfreezerestrictedasset (const JSONRPCRequest &request)
 
UniValue listtagsforaddress (const JSONRPCRequest &request)
 
UniValue listaddressesfortag (const JSONRPCRequest &request)
 
UniValue listaddressrestrictions (const JSONRPCRequest &request)
 
UniValue listglobalrestrictions (const JSONRPCRequest &request)
 
UniValue getverifierstring (const JSONRPCRequest &request)
 
UniValue checkaddresstag (const JSONRPCRequest &request)
 
UniValue checkaddressrestriction (const JSONRPCRequest &request)
 
UniValue checkglobalrestriction (const JSONRPCRequest &request)
 
UniValue issuerestrictedasset (const JSONRPCRequest &request)
 
UniValue reissuerestrictedasset (const JSONRPCRequest &request)
 
UniValue transferqualifier (const JSONRPCRequest &request)
 
UniValue isvalidverifierstring (const JSONRPCRequest &request)
 
void RegisterAssetRPCCommands (CRPCTable &t)
 Register asset RPC commands. More...
 

Function Documentation

◆ addtagtoaddress()

UniValue addtagtoaddress ( const JSONRPCRequest request)

Definition at line 1727 of file assets.cpp.

Here is the call graph for this function:

◆ AssetActivationWarning()

std::string AssetActivationWarning ( )

Definition at line 93 of file assets.cpp.

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

◆ AssetTypeToString()

std::string AssetTypeToString ( AssetType assetType)

Definition at line 103 of file assets.cpp.

Here is the caller graph for this function:

◆ checkaddressrestriction()

UniValue checkaddressrestriction ( const JSONRPCRequest request)

Definition at line 2139 of file assets.cpp.

Here is the call graph for this function:

◆ checkaddresstag()

UniValue checkaddresstag ( const JSONRPCRequest request)

Definition at line 2098 of file assets.cpp.

Here is the call graph for this function:

◆ checkglobalrestriction()

UniValue checkglobalrestriction ( const JSONRPCRequest request)

Definition at line 2179 of file assets.cpp.

Here is the call graph for this function:

◆ CheckIPFSTxidMessage()

void CheckIPFSTxidMessage ( const std::string &  message,
int64_t  expireTime 
)

Definition at line 39 of file assets.cpp.

Here is the call graph for this function:

◆ CheckRestrictedAssetTransferInputs()

void CheckRestrictedAssetTransferInputs ( const CWalletTx transaction,
const std::string &  asset_name 
)

Definition at line 65 of file assets.cpp.

Here is the call graph for this function:

◆ freezeaddress()

UniValue freezeaddress ( const JSONRPCRequest request)

Definition at line 1781 of file assets.cpp.

Here is the call graph for this function:

◆ freezerestrictedasset()

UniValue freezerestrictedasset ( const JSONRPCRequest request)

Definition at line 1835 of file assets.cpp.

Here is the call graph for this function:

◆ getassetdata()

UniValue getassetdata ( const JSONRPCRequest request)

Definition at line 776 of file assets.cpp.

Here is the call graph for this function:

◆ getcacheinfo()

UniValue getcacheinfo ( const JSONRPCRequest request)

Definition at line 1668 of file assets.cpp.

Here is the call graph for this function:

◆ getverifierstring()

UniValue getverifierstring ( const JSONRPCRequest request)

Definition at line 2063 of file assets.cpp.

Here is the call graph for this function:

◆ issue()

UniValue issue ( const JSONRPCRequest request)

Definition at line 383 of file assets.cpp.

Here is the call graph for this function:

◆ issuerestrictedasset()

UniValue issuerestrictedasset ( const JSONRPCRequest request)

Definition at line 2212 of file assets.cpp.

Here is the call graph for this function:

◆ issueunique()

UniValue issueunique ( const JSONRPCRequest request)

Definition at line 552 of file assets.cpp.

Here is the call graph for this function:

◆ isvalidverifierstring()

UniValue isvalidverifierstring ( const JSONRPCRequest request)

Definition at line 2600 of file assets.cpp.

Here is the call graph for this function:

◆ listaddressesbyasset()

UniValue listaddressesbyasset ( const JSONRPCRequest request)

Definition at line 1028 of file assets.cpp.

Here is the call graph for this function:

◆ listaddressesfortag()

UniValue listaddressesfortag ( const JSONRPCRequest request)

Definition at line 1934 of file assets.cpp.

Here is the call graph for this function:

◆ listaddressrestrictions()

UniValue listaddressrestrictions ( const JSONRPCRequest request)

Definition at line 1980 of file assets.cpp.

Here is the call graph for this function:

◆ listassetbalancesbyaddress()

UniValue listassetbalancesbyaddress ( const JSONRPCRequest request)

Definition at line 699 of file assets.cpp.

Here is the call graph for this function:

◆ listassets()

UniValue listassets ( const JSONRPCRequest request)

Definition at line 1565 of file assets.cpp.

Here is the call graph for this function:

◆ listglobalrestrictions()

UniValue listglobalrestrictions ( const JSONRPCRequest request)

Definition at line 2026 of file assets.cpp.

Here is the call graph for this function:

◆ listmyassets()

UniValue listmyassets ( const JSONRPCRequest request)

Definition at line 852 of file assets.cpp.

Here is the call graph for this function:

◆ listtagsforaddress()

UniValue listtagsforaddress ( const JSONRPCRequest request)

Definition at line 1887 of file assets.cpp.

Here is the call graph for this function:

◆ RegisterAssetRPCCommands()

void RegisterAssetRPCCommands ( CRPCTable t)

Register asset RPC commands.

Definition at line 2674 of file assets.cpp.

Here is the call graph for this function:

◆ reissue()

UniValue reissue ( const JSONRPCRequest request)

Definition at line 1465 of file assets.cpp.

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

◆ reissuerestrictedasset()

UniValue reissuerestrictedasset ( const JSONRPCRequest request)

Definition at line 2353 of file assets.cpp.

Here is the call graph for this function:

◆ removetagfromaddress()

UniValue removetagfromaddress ( const JSONRPCRequest request)

Definition at line 1754 of file assets.cpp.

Here is the call graph for this function:

◆ RestrictedActivationWarning()

std::string RestrictedActivationWarning ( )

Definition at line 98 of file assets.cpp.

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

◆ safe_advance()

template<class Iter , class Incr >
void safe_advance ( Iter &  curr,
const Iter &  end,
Incr  n 
)

Definition at line 842 of file assets.cpp.

◆ transfer()

UniValue transfer ( const JSONRPCRequest request)

Definition at line 1101 of file assets.cpp.

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

◆ transferfromaddress()

UniValue transferfromaddress ( const JSONRPCRequest request)

Definition at line 1346 of file assets.cpp.

Here is the call graph for this function:

◆ transferfromaddresses()

UniValue transferfromaddresses ( const JSONRPCRequest request)

Definition at line 1218 of file assets.cpp.

Here is the call graph for this function:

◆ transferqualifier()

UniValue transferqualifier ( const JSONRPCRequest request)

Definition at line 2489 of file assets.cpp.

Here is the call graph for this function:

◆ unfreezeaddress()

UniValue unfreezeaddress ( const JSONRPCRequest request)

Definition at line 1808 of file assets.cpp.

Here is the call graph for this function:

◆ unfreezerestrictedasset()

UniValue unfreezerestrictedasset ( const JSONRPCRequest request)

Definition at line 1861 of file assets.cpp.

Here is the call graph for this function:

◆ UnitValueFromAmount()

UniValue UnitValueFromAmount ( const CAmount amount,
const std::string  asset_name 
)

Definition at line 122 of file assets.cpp.

Here is the call graph for this function:

◆ UpdateAddressRestriction()

UniValue UpdateAddressRestriction ( const JSONRPCRequest request,
const int8_t &  flag 
)

Definition at line 225 of file assets.cpp.

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

◆ UpdateAddressTag()

UniValue UpdateAddressTag ( const JSONRPCRequest request,
const int8_t &  flag 
)

Definition at line 142 of file assets.cpp.

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

◆ UpdateGlobalRestrictedAsset()

UniValue UpdateGlobalRestrictedAsset ( const JSONRPCRequest request,
const int8_t &  flag 
)

Definition at line 307 of file assets.cpp.

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