6 #ifndef PIVX_TEST_LIBRUST_UTILTEST_H
7 #define PIVX_TEST_LIBRUST_UTILTEST_H
53 std::vector<TransparentInput> vIn,
54 std::vector<ShieldedDestination> vDest,
55 const CWallet* pwalletIn =
nullptr);
63 std::vector<ShieldedDestination> vDest,
64 bool genNewKey =
false,
65 const CWallet* pwalletIn =
nullptr);
74 bool genNewKey =
false,
75 const CWallet* pwalletIn =
nullptr);
int64_t CAmount
Amount in PIV (Can be negative)
Basic key store, that keeps keys in an address->secret map.
An encapsulated private key.
An outpoint - a combination of a transaction hash and an index n into its vout.
Serialized script, used inside transaction inputs and outputs.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
A transaction with a bunch of additional info that only the owner cares about.
Parameters that influence chain consensus.
const libzcash::SaplingExtendedSpendingKey & sk
libzcash::SaplingNote note
TestSaplingNote GetTestSaplingNote(const libzcash::SaplingPaymentAddress &pa, CAmount value)
Generate a dummy SaplingNote and a SaplingMerkleTree with that note's commitment.
CKey AddTestCKeyToWallet(CWallet &wallet, bool genNewKey=false)
libzcash::SaplingExtendedSpendingKey GetTestMasterSaplingSpendingKey()
CScript CreateDummyDestinationScript()
Generates a dummy destination script.
CKey AddTestCKeyToKeyStore(CBasicKeyStore &keyStore, bool genNewKey=false)
CWalletTx GetValidSaplingReceive(const Consensus::Params &consensusParams, CBasicKeyStore &keyStoreFrom, std::vector< TransparentInput > vIn, std::vector< ShieldedDestination > vDest, const CWallet *pwalletIn=nullptr)
One or many inputs from keyStoreFrom, one or many shielded outputs to pwalletIn (if not nullptr).