Investment

Used to manage an Investment in a Security Token Offering

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Investment(params: Params & UniqueIdentifiers): Investment

Defined in src/entities/Investment.ts:103arrow-up-right

Create an Investment instance

Parameters:

Name

Type

Returns: Investment

Properties

address

address: string

Defined in src/entities/Investment.ts:88arrow-up-right

wallet address of token holder

index

index: number

Defined in src/entities/Investment.ts:93arrow-up-right

index of the Investment

investedFunds

investedFunds: BigNumber

Defined in src/entities/Investment.ts:103arrow-up-right

amount of funds used to make Investment

securityTokenId

securityTokenId: string

Defined in src/entities/Investment.ts:76arrow-up-right

securityTokenSymbol

securityTokenSymbol: string

Defined in src/entities/Investment.ts:83arrow-up-right

stoId

stoId: string

Defined in src/entities/Investment.ts:81arrow-up-right

unique ID for the Investment

tokenAmount

tokenAmount: BigNumber

Defined in src/entities/Investment.ts:98arrow-up-right

total amount of tokens involved in the Investment

uid

uid: string

Overrides Entity.uid

Defined in src/entities/Investment.ts:74arrow-up-right

unique generated identifier for an Investment

Methods

_refresh

_refresh(params: Partial‹Params›): void

Overrides Entity._refresh

Defined in src/entities/Investment.ts:165arrow-up-right

Hydrate the entity

Parameters:

Name

Type

params

Partial‹Params

Returns: void

toPojo

toPojo(): object

Overrides Entity.toPojo

Defined in src/entities/Investment.ts:138arrow-up-right

Convert entity to a POJO (Plain Old Javascript Object)

Returns: object

  • address: string

  • index: number

  • investedFunds: BigNumber

  • securityTokenId: string

  • securityTokenSymbol: string

  • stoId: string

  • tokenAmount: BigNumber

  • uid: string

Static generateId

generateId(__namedParameters: object): string

Defined in src/entities/Investment.ts:45arrow-up-right

Generate the Investment's UUID from its identifying properties

Parameters:

__namedParameters: object

Name

Type

index

number

securityTokenId

string

stoId

string

Returns: string

Static unserialize

unserialize(serialized: string): UniqueIdentifiers

Defined in src/entities/Investment.ts:58arrow-up-right

Unserialize a serialized Investment entity

Parameters:

Name

Type

Description

serialized

string

string with Investment entity information

Returns: UniqueIdentifiers

Last updated

Was this helpful?