NumberedPortfolio
Last updated
Last updated
Represents a numbered (non-default) Portfolio for an Identity
↳
↳ NumberedPortfolio
Protected
Optional
_id• _id? : BigNumber
internal Portfolio identifier (unused for default Portfolio)
Protected
context• delete: ProcedureMethod‹void, void›
Delete this Portfolio
note
required role:
Portfolio Custodian
• id: BigNumber
portfolio identifier number
Rename portfolio
note
required role:
Portfolio Custodian
Moves funds from this Portfolio to another one owned by the same Identity
param
portfolio (or portfolio ID) that will receive the funds. Optional, if no value is passed, the funds will be moved to the default Portfolio of this Portfolio's owner
param
list of tokens (and their corresponding amounts) that will be moved
note
required role:
Portfolio Custodian
identity of the Portfolio's owner
Send an invitation to an Identity to assign it as custodian for this Portfolio
note
this may create an AuthorizationRequest which has to be accepted by the corresponding Identity. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived
note
required role:
Portfolio Custodian
• uuid: string
Retrieve the identifier data (block number, date and event index) of the event that was emitted when this portfolio was created
note
uses the middleware
note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
▸ exists(): Promise‹boolean›
Return whether this Portfolio exists
Returns: Promise‹boolean›
Retrieve the custodian Identity of this Portfolio
note
if no custodian is set, the owner Identity is returned
▸ getName(): Promise‹string›
Return the Portfolio name
Returns: Promise‹string›
Retrieve the balances of all assets in this Portfolio
Parameters:
Retrieve a list of transactions where this portfolio was involved. Can be filtered using parameters
note
supports pagination
note
uses the middleware
Parameters:
▪Default value
filters: object= {}
▸ isCustodiedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio custodian
Parameters:
Returns: Promise‹boolean›
Whether this Entity is the same as another one
Parameters:
Returns: boolean
▸ isOwnedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio owner
Parameters:
Returns: Promise‹boolean›
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers: object
Parameters:
Returns: string
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers: object
Parameters:
Returns: Identifiers
Inherited from .
Defined in
• context:
Inherited from .
Defined in
Defined in
Defined in
• modifyName: ProcedureMethod‹, ›
Defined in
• moveFunds: ProcedureMethod‹, void›
Inherited from .
Defined in
• owner:
Inherited from .
Defined in
• setCustodian: ProcedureMethod‹, void›
Inherited from .
Defined in
Inherited from .
Defined in
▸ createdAt(): Promise‹ | null›
Defined in
Returns: Promise‹ | null›
Defined in
▸ getCustodian(): Promise‹›
Inherited from .
Defined in
Returns: Promise‹›
Defined in
▸ getTokenBalances(args?
: undefined | object): Promise‹[]›
Inherited from .
Defined in
Returns: Promise‹[]›
▸ getTransactionHistory(filters
: object): Promise‹‹››
Inherited from .
Defined in
Returns: Promise‹‹››
Inherited from .
Defined in
▸ isEqual(entity
: ‹object›): boolean
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Name | Type |
| undefined | object |
Name | Type | Description |
| undefined | string | account involved in the settlement |
| undefined | number | page size |
| undefined | number | page offset |
| undefined | string | ticker involved in the transaction |
Name | Type |
| undefined | object |
Name | Type |
| undefined | object |
Name | Type | Description |
| Identifiers |
Name | Type | Description |
| string | UUID to unserialize |
Name | Type |
|
‹object›