]> Git Repo - VerusCoin.git/blame - src/importcoin.h
Merge pull request #42 from jl777/dev
[VerusCoin.git] / src / importcoin.h
CommitLineData
20c3ac51
SS
1#ifndef IMPORTCOIN_H
2#define IMPORTCOIN_H
0cb91a8d
SS
3
4#include "cc/eval.h"
3c760413 5#include "coins.h"
0cb91a8d
SS
6#include "primitives/transaction.h"
7#include "script/interpreter.h"
8#include <cryptoconditions.h>
9
10
0cb91a8d
SS
11CAmount GetCoinImportValue(const CTransaction &tx);
12
e4f943d8 13CTransaction MakeImportCoinTransaction(const TxProof proof,
0cb91a8d
SS
14 const CTransaction burnTx, const std::vector<CTxOut> payouts);
15
0df96a2f 16CTxOut MakeBurnOutput(CAmount value, uint32_t targetCCid, std::string targetSymbol, const std::vector<CTxOut> payouts);
0cb91a8d 17
0df96a2f
SS
18bool UnmarshalBurnTx(const CTransaction &burnTx, std::string &targetSymbol, uint32_t *targetCCid, uint256 &payoutsHash);
19bool UnmarshalImportTx(const CTransaction &importTx, TxProof &proof, CTransaction &burnTx,
20 std::vector<CTxOut> &payouts);
21
22bool VerifyCoinImport(const CScript& scriptSig, TransactionSignatureChecker& checker, CValidationState &state);
0cb91a8d 23
3c760413
SS
24void AddImportTombstone(const CTransaction &importTx, CCoinsViewCache &inputs, int nHeight);
25void RemoveImportTombstone(const CTransaction &importTx, CCoinsViewCache &inputs);
26int ExistsImportTombstone(const CTransaction &importTx, const CCoinsViewCache &inputs);
27
20c3ac51 28#endif /* IMPORTCOIN_H */
This page took 0.025999 seconds and 4 git commands to generate.