# Packages

No description provided by the author

# Functions

AssertAddr asserts that an address contains the correct information of an asset.
AssertAddrCreated makes sure an address was created correctly for the given asset.
AssertAddrEvent makes sure the given address was detected by the given daemon.
AssertAddrEventByStatus makes sure the given number of events exist with the given status.
AssertAddrEventCustomTimeout makes sure the given address was detected by the given daemon within the given timeout.
AssertAsset asserts that two taprpc.Asset objects are equal, ignoring node-specific fields like if script keys are local, if the asset is spent, or if the anchor information is populated.
No description provided by the author
AssertAssetGenesis asserts that two taprpc.GenesisInfo objects are equal.
AssertAssetOutboundTransferWithOutputs makes sure the given outbound transfer has the correct state and number of outputs.
AssertAssetProofs makes sure the proofs for the given asset can be retrieved from the given daemon and can be fully validated.
AssertAssetProofsInvalid makes sure the proofs for the given asset can be retrieved from the given daemon but fail to validate.
AssertAssetsMinted makes sure all assets in the minting request were in fact minted in the given anchor TX and block.
AssertAssetState makes sure that an asset with the given (possibly non-unique!) name exists in the list of assets and then performs the given additional checks on that asset.
AssertAssetStateByScriptKey makes sure that an asset with the given (possibly non-unique!) name exists in the list of assets and then performs the given additional checks on that asset.
AssertBalanceByGroup asserts that the balance of a single asset group on the given daemon is correct.
AssertBalanceByID asserts that the balance of a single asset, specified by ID, on the given daemon is correct.
AssertFeeRate checks that the fee paid for a given TX is close to the expected fee for the same TX, at a given fee rate.
No description provided by the author
AssertGroup asserts that an asset returned from the ListGroups call matches a specific asset and has the same group key.
AssertGroupAnchor asserts that a specific asset genesis was used to create a tweaked group key.
AssertGroupSizes asserts that a set of groups the daemon is aware of contain the expected number of assets.
AssertListAssets checks that the assets returned by ListAssets match the expected assets.
AssertMintEvents makes sure all events with incremental status are sent on the stream for the given minting batch.
AssertMintingProofs make sure the asset minting proofs contain all the correct reveal information.
AssertNonInteractiveRecvComplete makes sure the given receiver has the correct number of completed non-interactive inbound asset transfers in their list of events.
AssertNumAssets check the number of assets returned by ListAssets.
AssertNumGroups asserts that the number of groups the daemon is aware of is correct.
AssertReceiveEvents makes sure all events with incremental status are sent on the stream for the given address.
AssertSendEventExecuteSendState asserts that the send asset event is an ExecuteSendState event, and logs the event timestamp if so.
AssertSendEventProofTransferBackoffWaitTypeSend asserts that the send asset event is a ProofTransferBackoffWait event, with the transfer type set as send.
AssertSendEvents makes sure all events with incremental status are sent on the stream for the given script key.
AssertSendEventsComplete makes sure the two remaining events for the given script key are sent on the stream.
AssertSplitTombstoneTransfer asserts that there is a transfer for the given asset ID that is a split that left over a tombstone output.
AssertTransfer asserts that the value of each transfer initiated on the given daemon is correct.
AssertTransferFeeRate checks that fee paid for the TX anchoring an asset transfer is close to the expected fee for that TX, at a given fee rate.
AssertTxInBlock checks that a given transaction can be found in the block's transaction list.
No description provided by the author
No description provided by the author
No description provided by the author
AssertUniverseRoot makes sure the given universe root exists with the given sum, either identified by the asset ID or group key.
No description provided by the author
AssertUniverseRootEquality checks that the universe roots returned by two daemons are either equal or not, depending on the expectedEquality parameter.
AssertUniverseRootEqualityEventually checks that the universe roots returned by two daemons are either equal eventually.
No description provided by the author
No description provided by the author
No description provided by the author
AssetAmountCheck returns a check function that tests an asset's amount.
AssetAnchorCheck returns a check function that tests an asset's anchor.
AssetDecimalDisplayCheck returns a check function that tests an asset's decimal display value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AssetScriptKeyIsBurnCheck returns a check function that tests an asset's script key for being a burn key.
AssetScriptKeyIsLocalCheck returns a check function that tests an asset's script key for being a local key.
AssetTypeCheck returns a check function that tests an asset's type.
AssetVersionCheck returns a check function that tests an asset's version.
No description provided by the author
CommitmentKey returns the asset's commitment key given an RPC asset representation.
No description provided by the author
ConfirmAndAssertOutboundTransfer makes sure the given outbound transfer has the correct state before confirming it and then asserting the confirmed state with the node.
ConfirmAndAssertOutboundTransferWithOutputs makes sure the given outbound transfer has the correct state and number of outputs before confirming it and then asserting the confirmed state with the node.
No description provided by the author
CopyRequest is a helper function to copy a request so that we can modify it.
CopyRequests is a helper function to copy a slice of requests so that we can modify them.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GroupAssetsByName converts an unordered list of assets to a map of lists of assets, where all assets in a list have the same name.
No description provided by the author
LogfTimestamped logs the given message with the current timestamp.
MakeOutput creates a new TXO from a given output type and amount.
No description provided by the author
MineBlocks mine 'num' of blocks and check that blocks are present in node blockchain.
MintAssetsConfirmBatch mints all given assets in the same batch, confirms the batch and verifies all asset proofs of the minted assets.
MintAssetUnconfirmed is a helper function that mints a batch of assets and waits until the minting transaction is in the mempool but does not mine a block.
MultiSigTest tests that we can use multi signature on all levels of the Taproot Assets Protocol.
NewAddrWithEventStream creates a new TAP address and also registers a new event stream for receive events for the address.
NewApertureHarness creates a new instance of the aperture service.
NumGroups returns the current number of asset groups present.
ParseGenInfo converts a taprpc.GenesisInfo into its asset.Genesis counterpart.
ResetNodeWallet sets the wallet state of the given node to own 100 P2TR UTXOs of BTC, which matches the wallet state when initializing the itest harness.
SetNodeUTXOs sets the wallet state for the given node wallet to a set of UTXOs of a specific type and value.
SubscribeReceiveEvents subscribes to receive events and returns the event stream.
SubscribeSendEvents subscribes to send events and returns the event stream.
SyncUniverses syncs the universes of two tapd instances and waits until they are in sync.
VerifyGroupAnchor verifies that the correct asset was used as the group anchor by re-deriving the group key.
VerifyProofBlob parses the given proof blob into a file, verifies it and returns the resulting last asset snapshot together with the parsed file.
WaitForBatchState polls until the planter has reached the desired state with the given batch.
WaitForProofUpdate polls until the proof for the given asset has been updated, which is detected by checking the block height of the last proof.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ApertureHarness is an integration testing harness for the aperture service.
EventSubscription holds a generic client stream and its context cancel function.
No description provided by the author
No description provided by the author

# Interfaces

ClientEventStream is a generic interface for a client stream that allows us to receive events from a server.
TapdClient is the interface that is used to interact with a tapd instance.

# Type aliases

AssetCheck is a function type that checks an RPC asset's property.
MatchRpcAsset is a function that returns true if the given RPC asset is a match.
No description provided by the author
No description provided by the author