Class GuildParticipant
public class GuildParticipant : IBencodable, IEquatable<GuildParticipant>
- Inheritance
-
GuildParticipant
- Implements
-
IBencodable
- Inherited Members
Constructors
GuildParticipant(AgentAddress, IValue, GuildRepository)
public GuildParticipant(AgentAddress address, IValue bencoded, GuildRepository repository)
Parameters
address
AgentAddressbencoded
IValuerepository
GuildRepository
GuildParticipant(AgentAddress, GuildAddress, GuildRepository)
public GuildParticipant(AgentAddress address, GuildAddress guildAddress, GuildRepository repository)
Parameters
address
AgentAddressguildAddress
GuildAddressrepository
GuildRepository
Fields
GuildAddress
public readonly GuildAddress GuildAddress
Field Value
Properties
Address
public AgentAddress Address { get; }
Property Value
Bencoded
public List Bencoded { get; }
Property Value
- List
DelegationPoolAddress
public Address DelegationPoolAddress { get; }
Property Value
- Address
Repository
public GuildRepository Repository { get; }
Property Value
RewardAddress
public Address RewardAddress { get; }
Property Value
- Address
Methods
ClaimReward(Guild, long)
public void ClaimReward(Guild guild, long height)
Parameters
Delegate(Guild, FungibleAssetValue, long)
public void Delegate(Guild guild, FungibleAssetValue fav, long height)
Parameters
Equals(GuildParticipant?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GuildParticipant? other)
Parameters
other
GuildParticipantAn 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.
Redelegate(Guild, Guild, BigInteger, long)
public void Redelegate(Guild srcGuild, Guild dstGuild, BigInteger share, long height)
Parameters
srcGuild
GuilddstGuild
Guildshare
BigIntegerheight
long
Undelegate(Guild, BigInteger, long)
public void Undelegate(Guild guild, BigInteger share, long height)
Parameters
guild
Guildshare
BigIntegerheight
long