Table of Contents

Class Delegator<T, TSelf>

Namespace
Nekoyume.Delegation
Assembly
Lib9c.dll
public abstract class Delegator<T, TSelf> : IDelegator where T : Delegatee<TSelf, T> where TSelf : Delegator<T, TSelf>

Type Parameters

T
TSelf
Inheritance
Delegator<T, TSelf>
Implements
Derived
Inherited Members

Constructors

Delegator(Address, Address, Address, Address, IDelegationRepository)

public Delegator(Address address, Address accountAddress, Address delegationPoolAddress, Address rewardAddress, IDelegationRepository repository)

Parameters

address Address
accountAddress Address
delegationPoolAddress Address
rewardAddress Address
repository IDelegationRepository

Delegator(Address, IDelegationRepository)

public Delegator(Address address, IDelegationRepository repository)

Parameters

address Address
repository IDelegationRepository

Properties

AccountAddress

public Address AccountAddress { get; }

Property Value

Address

Address

public Address Address { get; }

Property Value

Address

Delegatees

public ImmutableSortedSet<Address> Delegatees { get; }

Property Value

ImmutableSortedSet<Address>

DelegationPoolAddress

public Address DelegationPoolAddress { get; }

Property Value

Address

Metadata

public DelegatorMetadata Metadata { get; }

Property Value

DelegatorMetadata

MetadataAddress

public Address MetadataAddress { get; }

Property Value

Address

MetadataBencoded

public List MetadataBencoded { get; }

Property Value

List

Repository

public IDelegationRepository Repository { get; }

Property Value

IDelegationRepository

RewardAddress

public Address RewardAddress { get; }

Property Value

Address

Methods

CancelUndelegate(T, FungibleAssetValue, long)

public void CancelUndelegate(T delegatee, FungibleAssetValue fav, long height)

Parameters

delegatee T
fav FungibleAssetValue
height long

ClaimReward(T, long)

public void ClaimReward(T delegatee, long height)

Parameters

delegatee T
height long

Delegate(T, FungibleAssetValue, long)

public virtual void Delegate(T delegatee, FungibleAssetValue fav, long height)

Parameters

delegatee T
fav FungibleAssetValue
height long

Redelegate(T, T, BigInteger, long)

public virtual void Redelegate(T srcDelegatee, T dstDelegatee, BigInteger share, long height)

Parameters

srcDelegatee T
dstDelegatee T
share BigInteger
height long

Undelegate(T, BigInteger, long)

public virtual void Undelegate(T delegatee, BigInteger share, long height)

Parameters

delegatee T
share BigInteger
height long