Add Burn getters
@@ -46,6 +46,11 @@ impl Burn {
self
}
+ /// Returns the aliases to [`Burn`].
+ pub fn aliases(&self) -> &HashSet<AliasId> {
+ &self.aliases
+ }
+
/// Adds an NFT to [`Burn`].
pub fn add_nft(mut self, nft_id: NftId) -> Self {
self.nfts.insert(nft_id);
@@ -58,6 +63,11 @@ impl Burn {
self
}
+ /// Returns the NFTs to [`Burn`].
+ pub fn nfts(&self) -> &HashSet<NftId> {
+ &self.nfts
+ }
+
/// Adds a foundry to [`Burn`].
pub fn add_foundry(mut self, foundry_id: FoundryId) -> Self {
self.foundries.insert(foundry_id);
@@ -70,6 +80,11 @@ impl Burn {
self
}
+ /// Returns the foundries to [`Burn`].
+ pub fn foundries(&self) -> &HashSet<FoundryId> {
+ &self.foundries
+ }
+
/// Adds an amount of native token to [`Burn`].
pub fn add_native_token(mut self, token_id: TokenId, amount: impl Into<U256>) -> Self {
self.native_tokens.insert(token_id, amount.into());
@@ -84,6 +99,11 @@ impl Burn {
.collect();
self
}
+
+ /// Returns the native tokens to [`Burn`].
+ pub fn native_tokens(&self) -> &hashbrown::HashMap<TokenId, U256> {
+ &self.native_tokens
+ }
}
/// A DTO for [`Burn`].
