pub fn issue<'a>(&self, program: &'a mut Program, qty: u64) -> &'a mut Program {
        program
            .push(Commitment::blinded(qty)) // stack: qty
            .var() // stack: qty-var
            .push(Commitment::unblinded(self.flavor())) // stack: qty-var, flv
            .var() // stack: qty-var, flv-var
            .push(Data::Opaque(self.metadata.clone())) // stack: qty-var, flv-var, data
            .push(self.issuance_predicate.clone()) // stack: qty-var, flv-var, data, flv-pred
            .issue() // stack: issue-contract
            .sign_tx() // stack: issued-value
    }
/// Adds instructions to a program to issues a given quantity
/// of this Token.
Adds instructions to a program to issues a given quantity
of this Token.
Adds instructions to a program to issues a given quantity of this Token .
pub fn issue<'a>(&self, program: &'a mut Program, qty: u64) -> &'a mut Program {
        program
            .push(Commitment::blinded(qty)) // stack: qty
            .var() // stack: qty-var
            .push(Commitment::unblinded(self.flavor())) // stack: qty-var, flv
            .var() // stack: qty-var, flv-var
            .push(Data::Opaque(self.metadata.clone())) // stack: qty-var, flv-var, data
            .push(self.issuance_predicate.clone()) // stack: qty-var, flv-var, data, flv-pred
            .issue() // stack: issue-contract
            .sign_tx() // stack: issued-value
    }
pub fn issue < ' a > ( & self , program : & ' a mut Program , qty : u64 ) -> & ' a mut Program { program . push ( Commitment :: blinded ( qty ) ) // stack: qty . var ( ) // stack: qty-var . push ( Commitment :: unblinded ( self . flavor ( ) ) ) // stack: qty-var, flv . var ( ) // stack: qty-var, flv-var . push ( Data :: Opaque ( self . metadata . clone ( ) ) ) // stack: qty-var, flv-var, data . push ( self . issuance_predicate . clone ( ) ) // stack: qty-var, flv-var, data, flv-pred . issue ( ) // stack: issue-contract . sign_tx ( ) // stack: issued-value }
Adds instructions to a program to issues a given quantity
of this Token.
Adds instructions to a program to issues a given quantity of this Token .
&self
program
&'a mut Program
qty
u64
&self
program
&'a mut Program
qty
u64