Table of Contents

Class DelegatorMetadata

Namespace
Nekoyume.Delegation
Assembly
Lib9c.dll
public class DelegatorMetadata : IDelegatorMetadata, IBencodable
Inheritance
DelegatorMetadata
Implements
IBencodable
Inherited Members

Constructors

DelegatorMetadata(Address, Address, IValue)

public DelegatorMetadata(Address address, Address accountAddress, IValue bencoded)

Parameters

address Address
accountAddress Address
bencoded IValue

DelegatorMetadata(Address, Address, List)

public DelegatorMetadata(Address address, Address accountAddress, List bencoded)

Parameters

address Address
accountAddress Address
bencoded List

DelegatorMetadata(Address, Address, Address, Address)

public DelegatorMetadata(Address address, Address accountAddress, Address delegationPoolAddress, Address rewardAddress)

Parameters

address Address
accountAddress Address
delegationPoolAddress Address
rewardAddress Address

Properties

Address

public Address Address { get; }

Property Value

Address

Bencoded

public List Bencoded { get; }

Property Value

List

Delegatees

public ImmutableSortedSet<Address> Delegatees { get; }

Property Value

ImmutableSortedSet<Address>

DelegationPoolAddress

public Address DelegationPoolAddress { get; }

Property Value

Address

DelegatorAccountAddress

public Address DelegatorAccountAddress { get; }

Property Value

Address

DelegatorAddress

public Address DelegatorAddress { get; }

Property Value

Address

RewardAddress

public Address RewardAddress { get; }

Property Value

Address

Methods

AddDelegatee(Address)

public void AddDelegatee(Address delegatee)

Parameters

delegatee Address

Equals(IDelegator?)

public virtual bool Equals(IDelegator? other)

Parameters

other IDelegator

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

RemoveDelegatee(Address)

public void RemoveDelegatee(Address delegatee)

Parameters

delegatee Address