api.entities.DividendDistribution - PolymeshAssociation/polymesh-sdk GitHub Wiki
@polymeshassociation/polymesh-sdk / api/entities/DividendDistribution
Defined in: api/entities/DividendDistribution/index.ts:86
Represents a Corporate Action via which an Asset issuer wishes to distribute dividends between a subset of the Asset Holders (targets)
asset:
FungibleAsset
Defined in: api/entities/CorporateActionBase/index.ts:85
Asset affected by this Corporate Action
currency:
string
Defined in: api/entities/DividendDistribution/index.ts:95
Asset ID of the currency in which dividends are being distributed
declarationDate:
Date
Defined in: api/entities/CorporateActionBase/index.ts:90
date at which the Corporate Action was created
CorporateActionBase.declarationDate
defaultTaxWithholding:
BigNumber
Defined in: api/entities/CorporateActionBase/index.ts:106
default percentage (0-100) of tax withholding for this Corporate Action
CorporateActionBase.defaultTaxWithholding
description:
string
Defined in: api/entities/CorporateActionBase/index.ts:95
brief text description of the Corporate Action
CorporateActionBase.description
expiryDate:
Date|null
Defined in: api/entities/DividendDistribution/index.ts:111
date after which dividends can no longer be paid/reclaimed. A null value means the distribution never expires
id:
BigNumber
Defined in: api/entities/CorporateActionBase/index.ts:80
internal Corporate Action ID
maxAmount:
BigNumber
Defined in: api/entities/DividendDistribution/index.ts:106
maximum amount of currency to be distributed. Distributions are "first come, first served", so funds can be depleted before
every Asset Holder receives their corresponding amount
origin:
DefaultPortfolio|NumberedPortfolio
Defined in: api/entities/DividendDistribution/index.ts:90
Portfolio from which the dividends will be distributed
paymentDate:
Date
Defined in: api/entities/DividendDistribution/index.ts:116
date starting from which dividends can be paid/reclaimed
perShare:
BigNumber
Defined in: api/entities/DividendDistribution/index.ts:100
amount of currency to pay for each share held by the Asset Holders
targets:
CorporateActionTargets
Defined in: api/entities/CorporateActionBase/index.ts:101
Asset Holder Identities related to this Corporate action. If the treatment is Exclude, the Identities
in the array will not be targeted by the Action, Identities not in the array will be targeted, and vice versa
taxWithholdings:
TaxWithholding[]
Defined in: api/entities/CorporateActionBase/index.ts:112
percentage (0-100) of tax withholding per Identity. Any Identity not present in this array uses the default tax withholding percentage
CorporateActionBase.taxWithholdings
uuid:
string
Defined in: api/entities/Entity.ts:46
checkpoint():
Promise<Checkpoint|CheckpointSchedule>
Defined in: api/entities/DividendDistribution/index.ts:233
Retrieve the Checkpoint associated with this Dividend Distribution. If the Checkpoint is scheduled and has not been created yet, the corresponding CheckpointSchedule is returned instead
Promise<Checkpoint | CheckpointSchedule>
CorporateActionBase.checkpoint
claim(
opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/DividendDistribution/index.ts:196
Claim the Dividends corresponding to the signing Identity
| Parameter | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
if currency is indivisible, the Identity's share will be rounded down to the nearest integer (after taxes are withheld)
this method is of type NoArgsProcedureMethod, which means you can call claim.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
details():
Promise<DividendDistributionDetails>
Defined in: api/entities/DividendDistribution/index.ts:261
Retrieve details associated with this Dividend Distribution
Promise<DividendDistributionDetails>
exists():
Promise<boolean>
Defined in: api/entities/DividendDistribution/index.ts:252
Retrieve whether the Distribution exists
Promise<boolean>
getDocuments():
Promise<AssetDocumentWithId[]>
Defined in: api/entities/CorporateActionBase/index.ts:167
Retrieve the documents linked to this Corporate Action
Promise<AssetDocumentWithId[]>
CorporateActionBase.getDocuments
getParticipant(
args?):Promise<DistributionParticipant|null>
Defined in: api/entities/DividendDistribution/index.ts:354
Retrieve an Identity that is entitled to dividends in this Distribution (participant), the amount it is entitled to and whether it has been paid or not
| Parameter | Type | Description |
|---|---|---|
args? |
{ identity: string | Identity; } |
- |
args.identity? |
string | Identity
|
defaults to the signing Identity |
Promise<DistributionParticipant | null>
if the Distribution Checkpoint hasn't been created yet, the result will be null. This is because the Distribution participant's corresponding payment cannot be determined without a Checkpoint
getParticipants():
Promise<DistributionParticipant[]>
Defined in: api/entities/DividendDistribution/index.ts:287
Retrieve a comprehensive list of all Identities that are entitled to dividends in this Distribution (participants), the amount they are entitled to and whether they have been paid or not
Promise<DistributionParticipant[]>
this request can take a lot of time with large amounts of Asset Holders
if the Distribution Checkpoint hasn't been created yet, the result will be an empty array. This is because the Distribution participants cannot be determined without a Checkpoint
getPaymentHistory(
opts?):Promise<ResultSet<DistributionPayment>>
Defined in: api/entities/DividendDistribution/index.ts:493
Retrieve the payment history for this Distribution
| Parameter | Type |
|---|---|
opts |
{ size?: BigNumber; start?: BigNumber; } |
opts.size? |
BigNumber |
opts.start? |
BigNumber |
Promise<ResultSet<DistributionPayment>>
uses the middleware V2
supports pagination
getWithheldTax():
Promise<BigNumber>
Defined in: api/entities/DividendDistribution/index.ts:452
Retrieve the amount of taxes that have been withheld up to this point in this Distribution
Promise<BigNumber>
uses the middlewareV2
isEqual(
entity):boolean
Defined in: api/entities/Entity.ts:61
Determine whether this Entity is the same as another one
| Parameter | Type |
|---|---|
entity |
Entity<unknown, unknown> |
boolean
linkDocuments(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/CorporateActionBase/index.ts:162
Link a list of documents to this corporate action
| Parameter | Type |
|---|---|
args |
LinkCaDocsParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
any previous links are removed in favor of the new list
this method is of type ProcedureMethod, which means you can call linkDocuments.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
CorporateActionBase.linkDocuments
modifyCheckpoint(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/DividendDistribution/index.ts:201
Modify the Distribution's Checkpoint
| Parameter | Type |
|---|---|
args |
Modify<ModifyCaCheckpointParams, { checkpoint: InputCaCheckpoint; }> |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
this method is of type ProcedureMethod, which means you can call modifyCheckpoint.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
CorporateActionBase.modifyCheckpoint
pay(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/DividendDistribution/index.ts:217
Transfer the corresponding share of the dividends to a list of Identities
| Parameter | Type |
|---|---|
args |
PayDividendsParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
due to performance issues, we do not validate that the distribution has enough remaining funds to pay the corresponding amount to the supplied Identities
if currency is indivisible, the Identity's share will be rounded down to the nearest integer (after taxes are withheld)
this method is of type ProcedureMethod, which means you can call pay.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
reclaimFunds(
opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/DividendDistribution/index.ts:227
Reclaim any remaining funds back to the origin Portfolio. This can only be done after the Distribution has expired
| Parameter | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
withheld taxes are also reclaimed in the same transaction
required roles:
- Origin Portfolio Custodian
this method is of type NoArgsProcedureMethod, which means you can call reclaimFunds.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
toHuman():
HumanReadable
Defined in: api/entities/DividendDistribution/index.ts:608
Return the Dividend Distribution's static data
staticgenerateUuid<Identifiers>(identifiers):string
Defined in: api/entities/Entity.ts:14
Generate the Entity's UUID from its identifying properties
| Type Parameter |
|---|
Identifiers |
| Parameter | Type | Description |
|---|---|---|
identifiers |
Identifiers |
- |
string
CorporateActionBase.generateUuid
staticunserialize<Identifiers>(serialized):Identifiers
Defined in: api/entities/Entity.ts:23
Unserialize a UUID into its Unique Identifiers
| Type Parameter |
|---|
Identifiers |
| Parameter | Type | Description |
|---|---|---|
serialized |
string |
UUID to unserialize |
Identifiers
CorporateActionBase.unserialize
Defined in: api/entities/DividendDistribution/index.ts:69
currency:
string
Defined in: api/entities/DividendDistribution/index.ts:71
expiryDate:
Date|null
Defined in: api/entities/DividendDistribution/index.ts:74
maxAmount:
BigNumber
Defined in: api/entities/DividendDistribution/index.ts:73
origin:
DefaultPortfolio|NumberedPortfolio
Defined in: api/entities/DividendDistribution/index.ts:70
paymentDate:
Date
Defined in: api/entities/DividendDistribution/index.ts:75
perShare:
BigNumber
Defined in: api/entities/DividendDistribution/index.ts:72
Defined in: api/entities/DividendDistribution/index.ts:60
assetId:
string
Defined in: api/entities/CorporateAction.ts:21
currency:
string
Defined in: api/entities/DividendDistribution/index.ts:62
declarationDate:
string
Defined in: api/entities/CorporateAction.ts:22
defaultTaxWithholding:
string
Defined in: api/entities/CorporateAction.ts:25
HumanReadable.defaultTaxWithholding
description:
string
Defined in: api/entities/CorporateAction.ts:23
expiryDate:
string|null
Defined in: api/entities/DividendDistribution/index.ts:65
id:
string
Defined in: api/entities/CorporateAction.ts:20
maxAmount:
string
Defined in: api/entities/DividendDistribution/index.ts:64
origin:
object
Defined in: api/entities/DividendDistribution/index.ts:61
did:
string
optionalid?:string
paymentDate:
string
Defined in: api/entities/DividendDistribution/index.ts:66
perShare:
string
Defined in: api/entities/DividendDistribution/index.ts:63
targets:
object
Defined in: api/entities/CorporateAction.ts:24
identities:
string[]
treatment:
TargetTreatment
taxWithholdings:
object[]
Defined in: api/entities/CorporateAction.ts:26
identity:
string
percentage:
string
Params =
Params&DividendDistributionParams
Defined in: api/entities/DividendDistribution/index.ts:78