simfony_as_rust/jet/issuance.rs
1/* This file has been automatically generated. */
2
3//! # Issuance
4//!
5//! This module defines jets for handling issuance of Elements assets or tokens.
6
7#![allow(unused)]
8#![allow(clippy::complexity)]
9
10use super::*;
11
12/// Calculate the issued asset id from a given entropy value.
13///
14/// ## Cost
15///
16/// 807 mWU _(milli weight units)_
17pub fn calculate_asset(a: u256) -> ExplicitAsset {
18 todo!()
19}
20
21/// Calculate the reissuance token id from a given entropy value for assets with confidential issued amounts.
22///
23/// ## Cost
24///
25/// 707 mWU _(milli weight units)_
26pub fn calculate_confidential_token(a: u256) -> ExplicitAsset {
27 todo!()
28}
29
30/// Calculate the reissuance token id from a given entropy value for assets with explicit issued amounts.
31///
32/// ## Cost
33///
34/// 771 mWU _(milli weight units)_
35pub fn calculate_explicit_token(a: u256) -> ExplicitAsset {
36 todo!()
37}
38
39/// Calculate the entropy value from a given outpoint and contract hash.
40///
41/// This entropy value is used to compute issued asset and token IDs.
42///
43/// ## Cost
44///
45/// 2095 mWU _(milli weight units)_
46pub fn calculate_issuance_entropy(a: Outpoint, b: u256) -> u256 {
47 todo!()
48}
49
50/// Return the kind of issuance of the input at the given index:
51/// - Return `Some(Some(false))` if the input has new issuance.
52/// - Return `Some(Some(true))` if the input as reissuance.
53/// - Return `Some(None)` if the input has no issuance.
54/// - Return `None` if the input does not exist.
55///
56/// ## Cost
57///
58/// 91 mWU _(milli weight units)_
59pub fn issuance(a: u32) -> Option<Option<bool>> {
60 todo!()
61}
62
63/// Return the ID of the issued asset of the input at the given index:
64/// - Return `Some(Some(x))` if the input has issuance with asset id `x`.
65/// - Return `Some(None)` if the input has no issuance.
66/// - Return `None` if the input does not exist.
67///
68/// ## Cost
69///
70/// 151 mWU _(milli weight units)_
71pub fn issuance_asset(a: u32) -> Option<Option<ExplicitAsset>> {
72 todo!()
73}
74
75/// Return the issuance entropy of the input at the given index:
76/// - Return `Some(Some(x))` if the input has reissuance with entropy `x` or if there is new issuance whose computed entropy is `x`.
77/// - Return `Some(Some(x))` if the input has no issuance.
78/// - Return `None` if the input does not exist.
79///
80/// ## Cost
81///
82/// 153 mWU _(milli weight units)_
83pub fn issuance_entropy(a: u32) -> Option<Option<u256>> {
84 todo!()
85}
86
87/// Return the reissuance token of the input at the given index:
88/// - Return `Some(Some(x))` if the input has issuance with the reissuance token ID `x`.
89/// - Return `Some(None)` if the input has no issuance.
90/// - Return `None` if the input does not exist.
91///
92/// ## Cost
93///
94/// 149 mWU _(milli weight units)_
95pub fn issuance_token(a: u32) -> Option<Option<ExplicitAsset>> {
96 todo!()
97}
98
99/// Return the asset for Liquid Bitcoin.
100///
101/// ## Cost
102///
103/// 145 mWU _(milli weight units)_
104pub fn lbtc_asset() -> u256 {
105 todo!()
106}