]>
Commit | Line | Data |
---|---|---|
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 |
11 | CAmount GetCoinImportValue(const CTransaction &tx); |
12 | ||
e4f943d8 | 13 | CTransaction MakeImportCoinTransaction(const TxProof proof, |
0cb91a8d SS |
14 | const CTransaction burnTx, const std::vector<CTxOut> payouts); |
15 | ||
0df96a2f | 16 | CTxOut MakeBurnOutput(CAmount value, uint32_t targetCCid, std::string targetSymbol, const std::vector<CTxOut> payouts); |
0cb91a8d | 17 | |
0df96a2f SS |
18 | bool UnmarshalBurnTx(const CTransaction &burnTx, std::string &targetSymbol, uint32_t *targetCCid, uint256 &payoutsHash); |
19 | bool UnmarshalImportTx(const CTransaction &importTx, TxProof &proof, CTransaction &burnTx, | |
20 | std::vector<CTxOut> &payouts); | |
21 | ||
22 | bool VerifyCoinImport(const CScript& scriptSig, TransactionSignatureChecker& checker, CValidationState &state); | |
0cb91a8d | 23 | |
3c760413 SS |
24 | void AddImportTombstone(const CTransaction &importTx, CCoinsViewCache &inputs, int nHeight); |
25 | void RemoveImportTombstone(const CTransaction &importTx, CCoinsViewCache &inputs); | |
26 | int ExistsImportTombstone(const CTransaction &importTx, const CCoinsViewCache &inputs); | |
27 | ||
20c3ac51 | 28 | #endif /* IMPORTCOIN_H */ |