Raven Core  3.0.0
P2P Digital Currency
Functions
script.cpp File Reference
#include "streams.h"
#include "version.h"
#include "assets/assets.h"
#include "script.h"
#include "tinyformat.h"
#include "utilstrencodings.h"
#include "standard.h"
Include dependency graph for script.cpp:

Go to the source code of this file.

Functions

const char * GetOpName (opcodetype opcode)
 
bool GetAssetAmountFromScript (const CScript &script, CAmount &nAmount)
 --------------------------------------------------------------------------------------------------------------------——!// These are needed because script.h and script.cpp do not have access to asset.h and asset.cpp functions. More...
 
bool ScriptNewAsset (const CScript &scriptPubKey, int &nStartingIndex)
 
bool ScriptTransferAsset (const CScript &scriptPubKey, int &nStartingIndex)
 
bool ScriptReissueAsset (const CScript &scriptPubKey, int &nStartingIndex)
 
bool AmountFromNewAssetScript (const CScript &scriptPubKey, CAmount &nAmount)
 
bool AmountFromTransferScript (const CScript &scriptPubKey, CAmount &nAmount)
 
bool AmountFromReissueScript (const CScript &scriptPubKey, CAmount &nAmount)
 

Function Documentation

◆ AmountFromNewAssetScript()

bool AmountFromNewAssetScript ( const CScript scriptPubKey,
CAmount nAmount 
)

Definition at line 530 of file script.cpp.

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

◆ AmountFromReissueScript()

bool AmountFromReissueScript ( const CScript scriptPubKey,
CAmount nAmount 
)

Definition at line 574 of file script.cpp.

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

◆ AmountFromTransferScript()

bool AmountFromTransferScript ( const CScript scriptPubKey,
CAmount nAmount 
)

Definition at line 552 of file script.cpp.

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

◆ GetAssetAmountFromScript()

bool GetAssetAmountFromScript ( const CScript script,
CAmount nAmount 
)

--------------------------------------------------------------------------------------------------------------------——!// These are needed because script.h and script.cpp do not have access to asset.h and asset.cpp functions.

These are needed because script.h and script.cpp do not have access to asset.h and asset.cpp functions.

This is because the make file compiles them at different times. The script files are compiled with other consensus files, and asset files are compiled with core files. Used to check if an asset script contains zero assets. Is so, it should be unspendable

Definition at line 461 of file script.cpp.

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

◆ GetOpName()

const char* GetOpName ( opcodetype  opcode)

RVN START

RVN END

Definition at line 15 of file script.cpp.

Here is the caller graph for this function:

◆ ScriptNewAsset()

bool ScriptNewAsset ( const CScript scriptPubKey,
int &  nStartingIndex 
)

Definition at line 496 of file script.cpp.

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

◆ ScriptReissueAsset()

bool ScriptReissueAsset ( const CScript scriptPubKey,
int &  nStartingIndex 
)

Definition at line 518 of file script.cpp.

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

◆ ScriptTransferAsset()

bool ScriptTransferAsset ( const CScript scriptPubKey,
int &  nStartingIndex 
)

Definition at line 507 of file script.cpp.

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