Class: Distributions
api/entities/Asset/Fungible/CorporateActions/Distributions.Distributions
Handles all Asset Distributions related functionality
Hierarchy
-
Namespace
<FungibleAsset
>↳
Distributions
Methods
configureDividendDistribution
▸ configureDividendDistribution(args
, opts?
): Promise
<GenericPolymeshTransaction
<DividendDistribution
, DividendDistribution
>>
Create a Dividend Distribution for a subset of the Asset Holders at a certain (existing or future) Checkpoint
Parameters
Name | Type |
---|---|
args | ConfigureDividendDistributionParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<DividendDistribution
, DividendDistribution
>>
Note
required role:
- Origin Portfolio Custodian
Note
this method is of type ProcedureMethod, which means you can call configureDividendDistribution.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
api/entities/Asset/Fungible/CorporateActions/Distributions.ts:42
get
▸ get(): Promise
<DistributionWithDetails
[]>
Retrieve all Dividend Distributions associated to this Asset, along with their details
Returns
Promise
<DistributionWithDetails
[]>
Defined in
api/entities/Asset/Fungible/CorporateActions/Distributions.ts:116
getOne
▸ getOne(args
): Promise
<DistributionWithDetails
>
Retrieve a single Dividend Distribution associated to this Asset by its ID
Parameters
Name | Type |
---|---|
args | Object |
args.id | BigNumber |
Returns
Promise
<DistributionWithDetails
>
Throws
if there is no Distribution with the passed ID
Defined in
api/entities/Asset/Fungible/CorporateActions/Distributions.ts:63