static ProposalsContent UnforgeProposals(ForgedReader reader) { return(new ProposalsContent { Source = reader.ReadTzAddress(), Period = reader.ReadInt32(), Proposals = reader.ReadEnumerable(r => r.ReadBase58(Lengths.P.Decoded, Prefix.P)).ToList() }); }
static BallotContent UnforgeBallot(ForgedReader reader) { return(new BallotContent { Source = reader.ReadTzAddress(), Period = reader.ReadInt32(), Proposal = reader.ReadBase58(Lengths.P.Decoded, Prefix.P), Ballot = (Ballot)reader.ReadByte() }); }
static SetDepositsLimitContent UnforgeSetDepositsLimit(ForgedReader reader) { return(new SetDepositsLimitContent { Source = reader.ReadTzAddress(), Fee = (long)reader.ReadUBigInt(), Counter = (int)reader.ReadUBigInt(), GasLimit = (int)reader.ReadUBigInt(), StorageLimit = (int)reader.ReadUBigInt(), Limit = reader.ReadBool() ? reader.ReadUBigInt() : null }); }
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) }); }
static RevealContent UnforgeReveal(ForgedReader reader) { return(new RevealContent { Source = reader.ReadTzAddress(), Fee = (long)reader.ReadUBigInt(), Counter = (int)reader.ReadUBigInt(), GasLimit = (int)reader.ReadUBigInt(), StorageLimit = (int)reader.ReadUBigInt(), PublicKey = reader.ReadPublicKey() }); }
static DelegationContent UnforgeDelegation(ForgedReader reader) { return(new DelegationContent { Source = reader.ReadTzAddress(), Fee = (long)reader.ReadUBigInt(), Counter = (int)reader.ReadUBigInt(), GasLimit = (int)reader.ReadUBigInt(), StorageLimit = (int)reader.ReadUBigInt(), Delegate = UnforgeDelegate(reader) }); }
static TransactionContent UnforgeTransaction(ForgedReader reader) { return(new TransactionContent { Source = reader.ReadTzAddress(), Fee = (long)reader.ReadUBigInt(), Counter = (int)reader.ReadUBigInt(), GasLimit = (int)reader.ReadUBigInt(), StorageLimit = (int)reader.ReadUBigInt(), Amount = (long)reader.ReadUBigInt(), Destination = reader.ReadAddress(), Parameters = UnforgeParameters(reader) }); }
static string UnforgeDelegate(ForgedReader reader) { return(UnforgeConditional(reader, () => reader.ReadTzAddress())); }