|
| | MPTTester (Env &env, Account issuer, MPTInit const &constr={}) |
| | MPTTester (MPTInitDef const &constr) |
| | MPTTester (Env &env, Account issuer, MPTID const &id, std::vector< Account > const &holders={}, bool close=true) |
| | operator MPT () const |
| void | create (MPTCreate const &arg=MPTCreate{}) |
| void | destroy (MPTDestroy const &arg=MPTDestroy{}) |
| void | authorize (MPTAuthorize const &arg=MPTAuthorize{}) |
| void | authorizeHolders (Holders const &holders) |
| void | set (MPTSet const &set={}) |
| void | convert (MPTConvert const &arg=MPTConvert{}) |
| json::Value | convertJV (MPTConvert const &arg, std::uint32_t seq) |
| | Build a confidential convert JV without submitting it.
|
| void | mergeInbox (MPTMergeInbox const &arg=MPTMergeInbox{}) |
| json::Value | mergeInboxJV (MPTMergeInbox const &arg=MPTMergeInbox{}) const |
| void | send (MPTConfidentialSend const &arg=MPTConfidentialSend{}) |
| json::Value | sendJV (MPTConfidentialSend const &arg, std::uint32_t seq, std::optional< ConfidentialSendChainState > chain=std::nullopt) |
| | Build a confidential send JV.
|
| ConfidentialSendChainState | chainAfterSend (Account const &sender, std::uint64_t sendAmt, json::Value const &jv) const |
| | Compute the projected sender state after a confidential send in a batch.
|
| void | convertBack (MPTConvertBack const &arg=MPTConvertBack{}) |
| json::Value | convertBackJV (MPTConvertBack const &arg, std::uint32_t seq) |
| | Build a confidential convertBack JV without submitting it.
|
| void | confidentialClaw (MPTConfidentialClawback const &arg=MPTConfidentialClawback{}) |
| bool | checkDomainID (std::optional< uint256 > expected) const |
| bool | checkMPTokenAmount (Account const &holder, std::int64_t expectedAmount) const |
| bool | checkMPTokenOutstandingAmount (std::int64_t expectedAmount) const |
| bool | checkIssuanceConfidentialBalance (std::int64_t expectedAmount) const |
| bool | checkFlags (uint32_t const expectedFlags, std::optional< Account > const &holder=std::nullopt) const |
| bool | checkMetadata (std::string const &metadata) const |
| bool | isMetadataPresent () const |
| bool | checkTransferFee (std::uint16_t transferFee) const |
| bool | isTransferFeePresent () const |
| Account const & | issuer () const |
| Account const & | holder (std::string const &h) const |
| void | pay (Account const &src, Account const &dest, std::int64_t amount, std::optional< TER > err=std::nullopt, std::optional< std::vector< std::string > > credentials=std::nullopt) |
| void | claw (Account const &issuer, Account const &holder, std::int64_t amount, std::optional< TER > err=std::nullopt) |
| PrettyAmount | mpt (std::int64_t amount) const |
| MPTID const & | issuanceID () const |
| std::int64_t | getBalance (Account const &account) const |
| std::int64_t | getIssuanceConfidentialBalance () const |
| std::optional< Buffer > | getEncryptedBalance (Account const &account, EncryptedBalanceType option=holderEncryptedInbox) const |
| MPT | operator[] (std::string const &name) const |
| PrettyAmount | operator() (std::int64_t amount) const |
| | operator Asset () const |
| void | generateKeyPair (Account const &account) |
| std::optional< Buffer > | getPubKey (Account const &account) const |
| std::optional< Buffer > | getPrivKey (Account const &account) const |
| Buffer | encryptAmount (Account const &account, uint64_t const amt, Buffer const &blindingFactor) const |
| std::optional< uint64_t > | decryptAmount (Account const &account, Buffer const &amt) const |
| std::optional< uint64_t > | getDecryptedBalance (Account const &account, EncryptedBalanceType balanceType) const |
| std::optional< std::int64_t > | getIssuanceOutstandingBalance () const |
| std::optional< Buffer > | getClawbackProof (Account const &holder, std::uint64_t amount, Buffer const &privateKey, uint256 const &txHash) const |
| std::optional< Buffer > | getSchnorrProof (Account const &account, uint256 const &ctxHash) const |
| std::optional< Buffer > | getConfidentialSendProof (Account const &sender, std::uint64_t const amount, std::vector< ConfidentialRecipient > const &recipients, Slice const &blindingFactor, uint256 const &contextHash, PedersenProofParams const &amountParams, PedersenProofParams const &balanceParams) const |
| Buffer | getConvertBackProof (Account const &holder, std::uint64_t const amount, uint256 const &contextHash, PedersenProofParams const &pcParams) const |
| std::uint32_t | getMPTokenVersion (Account const account) const |
Test helper for creating, mutating, and asserting MPT and confidential MPT ledger state.
Definition at line 384 of file mpt.h.