|
| | MPTTester (Env &env, Account issuer, MPTInit const &constr={}, std::source_location const &loc=std::source_location::current()) |
| | MPTTester (MPTInitDef const &constr, std::source_location const &loc=std::source_location::current()) |
| | 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{}, std::source_location const &loc=std::source_location::current()) |
| void | destroy (MPTDestroy const &arg=MPTDestroy{}, std::source_location const &loc=std::source_location::current()) |
| void | authorize (MPTAuthorize const &arg=MPTAuthorize{}, std::source_location const &loc=std::source_location::current()) |
| void | authorizeHolders (Holders const &holders, std::source_location const &loc=std::source_location::current()) |
| void | set (MPTSet const &set={}, std::source_location const &loc=std::source_location::current()) |
| void | convert (MPTConvert const &arg=MPTConvert{}, std::source_location const &loc=std::source_location::current()) |
| json::Value | convertJV (MPTConvert const &arg, std::uint32_t seq) |
| | Build a confidential convert JV without submitting it.
|
| void | mergeInbox (MPTMergeInbox const &arg=MPTMergeInbox{}, std::source_location const &loc=std::source_location::current()) |
| json::Value | mergeInboxJV (MPTMergeInbox const &arg=MPTMergeInbox{}) const |
| void | send (MPTConfidentialSend const &arg=MPTConfidentialSend{}, std::source_location const &loc=std::source_location::current()) |
| 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{}, std::source_location const &loc=std::source_location::current()) |
| json::Value | convertBackJV (MPTConvertBack const &arg, std::uint32_t seq) |
| | Build a confidential convertBack JV without submitting it.
|
| void | confidentialClaw (MPTConfidentialClawback const &arg=MPTConfidentialClawback{}, std::source_location const &loc=std::source_location::current()) |
| void | mirrorUpdate (MPTMirrorUpdate const &arg=MPTMirrorUpdate{}, std::source_location const &loc=std::source_location::current()) |
| void | holderKeyUpdate (MPTHolderKeyUpdate const &arg=MPTHolderKeyUpdate{}, std::source_location const &loc=std::source_location::current()) |
| 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 |
| bool | checkImmutableFlags (std::uint32_t expectedFlags) const |
| bool | checkKeyEpochs (std::optional< std::uint32_t > issuerKeyEpoch, std::optional< std::uint32_t > auditorKeyEpoch) const |
| bool | checkMirrorEpochs (Account const &holder, std::optional< std::uint32_t > issuerKeyMirrorEpoch, std::optional< std::uint32_t > auditorKeyMirrorEpoch) const |
| bool | checkEncryptionKeys (std::optional< Account > const &issuerKeyOwner, std::optional< Account > const &auditorKeyOwner) 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, std::source_location const &loc=std::source_location::current()) |
| void | claw (Account const &issuer, Account const &holder, std::int64_t amount, std::optional< TER > err=std::nullopt, std::source_location const &loc=std::source_location::current()) |
| 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 |
| std::uint32_t | generateKeyPair (Account const &account) |
| std::optional< Buffer > | getPubKey (Account const &account, std::optional< std::uint32_t > epoch=std::nullopt) const |
| std::optional< Buffer > | getPrivKey (Account const &account, std::optional< std::uint32_t > epoch=std::nullopt) 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, std::optional< std::uint32_t > epoch=std::nullopt) 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 |
| std::optional< 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 511 of file mpt.h.