simfony_as_rust/jet/issuance.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
/* This file has been automatically generated. */
//! # Issuance
//!
//! This module defines jets for handling issuance of Elements assets or tokens.
#![allow(unused)]
#![allow(clippy::complexity)]
use super::*;
/// Calculate the issued asset id from a given entropy value.
pub fn calculate_asset(a: u256) -> ExplicitAsset {
todo!()
}
/// Calculate the reissuance token id from a given entropy value for assets with confidential issued amounts.
pub fn calculate_confidential_token(a: u256) -> ExplicitAsset {
todo!()
}
/// Calculate the reissuance token id from a given entropy value for assets with explicit issued amounts.
pub fn calculate_explicit_token(a: u256) -> ExplicitAsset {
todo!()
}
/// Calculate the entropy value from a given outpoint and contract hash.
///
/// This entropy value is used to compute issued asset and token IDs.
pub fn calculate_issuance_entropy(a: Outpoint, b: u256) -> u256 {
todo!()
}
/// Return the kind of issuance of the input at the given index:
/// - Return `Some(Some(false))` if the input has new issuance.
/// - Return `Some(Some(true))` if the input as reissuance.
/// - Return `Some(None)` if the input has no issuance.
/// - Return `None` if the input does not exist.
pub fn issuance(a: u32) -> Option<Option<bool>> {
todo!()
}
/// Return the ID of the issued asset of the input at the given index:
/// - Return `Some(Some(x))` if the input has issuance with asset id `x`.
/// - Return `Some(None)` if the input has no issuance.
/// - Return `None` if the input does not exist.
pub fn issuance_asset(a: u32) -> Option<Option<ExplicitAsset>> {
todo!()
}
/// Return the issuance entropy of the input at the given index:
/// - Return `Some(Some(x))` if the input has reissuance with entropy `x` or if there is new issuance whose computed entropy is `x`.
/// - Return `Some(Some(x))` if the input has no issuance.
/// - Return `None` if the input does not exist.
pub fn issuance_entropy(a: u32) -> Option<Option<u256>> {
todo!()
}
/// Return the reissuance token of the input at the given index:
/// - Return `Some(Some(x))` if the input has issuance with the reissuance token ID `x`.
/// - Return `Some(None)` if the input has no issuance.
/// - Return `None` if the input does not exist.
pub fn issuance_token(a: u32) -> Option<Option<ExplicitAsset>> {
todo!()
}
/// Return the asset for Liquid Bitcoin.
pub fn lbtc_asset() -> u256 {
todo!()
}