Investment
Used to manage an Investment in a Security Token Offering
Hierarchy
Entity‹Params›
↳ Investment
Index
Constructors
constructor
Properties
address
index
investedFunds
securityTokenId
securityTokenSymbol
stoId
tokenAmount
uid
Methods
_refresh
toPojo
generateId
unserialize
Constructors
constructor
+ new Investment(params
: Params & UniqueIdentifiers): Investment
Create an Investment instance
Parameters:
Name
Type
params
Returns: Investment
Properties
address
• address: string
wallet address of token holder
index
• index: number
index of the Investment
investedFunds
• investedFunds: BigNumber
amount of funds used to make Investment
securityTokenId
• securityTokenId: string
securityTokenSymbol
• securityTokenSymbol: string
stoId
• stoId: string
unique ID for the Investment
tokenAmount
• tokenAmount: BigNumber
total amount of tokens involved in the Investment
uid
• uid: string
Overrides Entity.uid
unique generated identifier for an Investment
Methods
_refresh
▸ _refresh(params
: Partial‹Params›): void
Overrides Entity._refresh
Hydrate the entity
Parameters:
Name
Type
params
Returns: void
toPojo
▸ toPojo(): object
Overrides Entity.toPojo
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
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
unserialize
Static
unserialize▸ unserialize(serialized
: string): UniqueIdentifiers
Unserialize a serialized Investment entity
Parameters:
Name
Type
Description
serialized
string
string with Investment entity information
Returns: UniqueIdentifiers
Last updated
Was this helpful?