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 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) + 22
|> cast nat
|> C.ret