static DryrunRequest DryrunDrr(SignedTransaction signTx, TEALProgram program, Algorand.V2.Model.Account cr, Algorand.V2.Model.Account usr) { var sources = new List <DryrunSource>(); if (program != null) { sources.Add(new DryrunSource("approv", Convert.ToBase64String(program.Bytes), 0)); } var drr = new DryrunRequest(new List <SignedTransaction>() { signTx }, new List <Algorand.V2.Model.Account>() { cr, usr }, sources: sources); return(drr); }
private static void WriteDrr(string filePath, DryrunRequest content) { var data = Encoder.EncodeToMsgPack(content); File.WriteAllBytes("./V2/contract/" + filePath, data); }