Investment
Last updated
Was this helpful?
Last updated
Was this helpful?
Used to manage an Investment in a Security Token Offering
‹›
↳ Investment
Create an Investment instance
Parameters:
Name
Type
params
• address: string
wallet address of token holder
• index: number
index of the Investment
• investedFunds: BigNumber
amount of funds used to make Investment
• securityTokenId: string
• securityTokenSymbol: string
• stoId: string
unique ID for the Investment
• tokenAmount: BigNumber
total amount of tokens involved in the Investment
• uid: string
unique generated identifier for an Investment
Hydrate the entity
Parameters:
Name
Type
params
Returns: void
â–¸ toPojo(): object
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
Generate the Investment's UUID from its identifying properties
Parameters:
â–ª __namedParameters: object
Name
Type
index
number
securityTokenId
string
stoId
string
Returns: string
Static
unserializeUnserialize a serialized Investment entity
Parameters:
Name
Type
Description
serialized
string
string with Investment entity information
+ new Investment(params
: & ):
Defined in
&
Returns:
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Overrides .
Defined in
â–¸ _refresh(params
: Partial‹›): void
Overrides .
Defined in
Partial‹›
Overrides .
Defined in
Defined in
â–¸ unserialize(serialized
: string):
Defined in
Returns: