コード例 #1
0
 static Script UnforgeScript(ForgedReader reader)
 {
     return(new Script
     {
         Code = (MichelineArray)reader.ReadEnumerableSingle(UnforgeMicheline),
         Storage = reader.ReadEnumerableSingle(UnforgeMicheline)
     });
 }
コード例 #2
0
 static DoublePreendorsementContent UnforgeDoublePreendorsement(ForgedReader reader)
 {
     return(new DoublePreendorsementContent
     {
         Op1 = reader.ReadEnumerableSingle(UnforgeInlinedPreendorsement),
         Op2 = reader.ReadEnumerableSingle(UnforgeInlinedPreendorsement)
     });
 }
コード例 #3
0
 static DoubleBakingContent UnforgeDoubleBaking(ForgedReader reader)
 {
     return(new DoubleBakingContent
     {
         BlockHeader1 = reader.ReadEnumerableSingle(UnforgeBlockHeader),
         BlockHeader2 = reader.ReadEnumerableSingle(UnforgeBlockHeader)
     });
 }
コード例 #4
0
 static Parameters UnforgeParameters(ForgedReader reader)
 {
     return(UnforgeConditional(reader, () =>
     {
         return new Parameters
         {
             Entrypoint = UnforgeEntrypoint(reader),
             Value = reader.ReadEnumerableSingle(UnforgeMicheline)
         };
     }));
 }
コード例 #5
0
 static RegisterConstantContent UnforgeRegisterConstant(ForgedReader reader)
 {
     return(new RegisterConstantContent
     {
         Source = reader.ReadTzAddress(),
         Fee = (long)reader.ReadUBigInt(),
         Counter = (int)reader.ReadUBigInt(),
         GasLimit = (int)reader.ReadUBigInt(),
         StorageLimit = (int)reader.ReadUBigInt(),
         Value = reader.ReadEnumerableSingle(UnforgeMicheline)
     });
 }