Skip to content

Commit 9073538

Browse files
committed
fix: comments improvements
1 parent 63419c6 commit 9073538

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

src/entities/DividendDistribution.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ import { Context } from '../Context';
77
import { PolymathError } from '../PolymathError';
88

99
/**
10-
* Represents a unique dividend distribution identifier
10+
* Properties that uniquely identify a Dividend Distribution
1111
*/
1212
export interface UniqueIdentifiers {
1313
/**
14-
* symbol of the security token
14+
* security token UUID
1515
*/
1616
securityTokenId: string;
1717
/**
18-
* dividend distribution id
18+
* ordered index of the distribution
1919
*/
2020
index: number;
2121
}
2222

2323
/**
2424
* Check if the provided value is of type [[UniqueIdentifiers]]
25-
*
26-
* @param identifiers - internal dividend distribution representation
2725
*/
2826
function isUniqueIdentifiers(identifiers: any): identifiers is UniqueIdentifiers {
2927
const { securityTokenId, checkpointId, index } = identifiers;
@@ -36,7 +34,7 @@ function isUniqueIdentifiers(identifiers: any): identifiers is UniqueIdentifiers
3634
}
3735

3836
/**
39-
* Represents a dividend distribution
37+
* Dividend Distribution constructor parameters
4038
*/
4139
export interface Params {
4240
securityTokenSymbol: string;
@@ -73,6 +71,9 @@ export interface Params {
7371
totalWithheldWithdrawn: BigNumber;
7472
shareholders: DividendShareholderStatus[];
7573
name: string;
74+
/**
75+
* symbol of the currency in which this dividend distribution is being paid
76+
*/
7677
currency: string | null;
7778
}
7879

@@ -81,7 +82,7 @@ export interface Params {
8182
*/
8283
export class DividendDistribution extends Entity<Params> {
8384
/**
84-
* Transform object to string
85+
* Generate the Dividend Distribution's UUID from its identifying properties
8586
*/
8687
public static generateId({ securityTokenId, index }: UniqueIdentifiers) {
8788
return serialize('dividend', {
@@ -91,9 +92,9 @@ export class DividendDistribution extends Entity<Params> {
9192
}
9293

9394
/**
94-
* Unserialize string to a dividend distribution object representation
95+
* Unserialize string to a Dividend Distribution object representation
9596
*
96-
* @param serialize - dividend distribution's serialized representation
97+
* @param serialize - Dividend Distribution's serialized representation
9798
*/
9899
public static unserialize(serialized: string) {
99100
const unserialized = unserialize(serialized);
@@ -239,7 +240,7 @@ export class DividendDistribution extends Entity<Params> {
239240
};
240241

241242
/**
242-
* Convert entity as a POJO (Plain Old Javascript Object)
243+
* Convert entity to POJO (Plain Old Javascript Object)
243244
*/
244245
public toPojo() {
245246
const {
@@ -284,7 +285,7 @@ export class DividendDistribution extends Entity<Params> {
284285
}
285286

286287
/**
287-
* Hydrating the Dividend Distribution entity
288+
* Hydrate the Dividend Distribution entity
288289
*/
289290
public _refresh(params: Partial<Params>) {
290291
const {

0 commit comments

Comments
 (0)