Class Guild
public class Guild : IBencodable, IEquatable<Guild>
- Inheritance
-
Guild
- Implements
-
IBencodable
- Inherited Members
Constructors
Guild(GuildAddress, IValue, GuildRepository)
public Guild(GuildAddress address, IValue bencoded, GuildRepository repository)
Parameters
address
GuildAddressbencoded
IValuerepository
GuildRepository
Guild(GuildAddress, AgentAddress, Address, GuildRepository)
public Guild(GuildAddress address, AgentAddress guildMasterAddress, Address validatorAddress, GuildRepository repository)
Parameters
address
GuildAddressguildMasterAddress
AgentAddressvalidatorAddress
Addressrepository
GuildRepository
Fields
GuildMasterAddress
public readonly AgentAddress GuildMasterAddress
Field Value
ValidatorAddress
public readonly Address ValidatorAddress
Field Value
- Address
Properties
Address
public GuildAddress Address { get; }
Property Value
Bencoded
public List Bencoded { get; }
Property Value
- List
Repository
public GuildRepository Repository { get; }
Property Value
Methods
ClaimReward(Address, long)
public void ClaimReward(Address validatorAddress, long height)
Parameters
validatorAddress
Addressheight
long
Equals(Guild?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Guild? other)
Parameters
other
GuildAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.