Contract - SM
Address:
ID:

SUMMARY
FULL NAMESelf Minter
STATUSInactive
TRANSACTIONS0
LAST ACTIVATION BLOCK19,512
BALANCES
ASSETAMOUNT
0.00034
open Zen.Types
open Zen.Base
open Zen.Cost

module RT = Zen.ResultT
module Tx = Zen.TxSkeleton
module C = Zen.Cost

let main txSkeleton _ contractId command sender messageBody wallet state =
  let! asset = Zen.Asset.getDefault contractId in
  let spend = { asset=asset; amount=1000UL } in
  let lock = ContractLock contractId in

  let output = { lock=lock; spend=spend } in
  let pInput = Mint spend in

  let! txSkeleton =
    Tx.addInput pInput txSkeleton
    >>= Tx.lockToContract spend.asset spend.amount contractId in

  RT.ok @ {
    tx = txSkeleton;
    message = None;
    state = NoChange;
  }

let cf _ _ _ _ _ _ _ = 
    64 + (64 + 64 + 0) + 25
    |> cast nat
    |> C.ret