-
Notifications
You must be signed in to change notification settings - Fork 12
api.entities.Asset.Base.BaseAsset.BaseAsset
api/entities/Asset/Base/BaseAsset.BaseAsset
Class used to manage functionality common to all assets.
-
Entity<UniqueIdentifiers,string>↳
BaseAsset
- addRequiredMediators
- currentFundingRound
- details
- freeze
- getIdentifiers
- getRequiredMediators
- getVenueFilteringDetails
- isEqual
- isFrozen
- linkTicker
- modify
- removeRequiredMediators
- setVenueFiltering
- toHuman
- transferOwnership
- unfreeze
- unlinkTicker
- generateUuid
- unserialize
• compliance: Compliance
api/entities/Asset/Base/BaseAsset.ts:71
• Optional did: string
Identity ID of the Asset (used for Claims)
Deprecated
this is no longer used from chain 7.x
api/entities/Asset/Base/BaseAsset.ts:81
• documents: Documents
api/entities/Asset/Base/BaseAsset.ts:72
• id: string
Unique ID of the Asset in UUID format
api/entities/Asset/Base/BaseAsset.ts:95
• metadata: Metadata
api/entities/Asset/Base/BaseAsset.ts:73
• permissions: Permissions
api/entities/Asset/Base/BaseAsset.ts:74
• Optional ticker: string
ticker of the Asset
Since the chain version 7.x, ticker can be optionally associated with an Asset
Deprecated
in favour of ticker value received from the response of details method
api/entities/Asset/Base/BaseAsset.ts:90
• uuid: string
• get rawId(): string
Unique ID of the Asset in hex format
string
Note
Although UUID format is the usual representation of asset IDs, generic polkadot/substrate tools usually expect it in hex format
api/entities/Asset/Base/BaseAsset.ts:102
▸ addRequiredMediators(args, opts?): Promise<GenericPolymeshTransaction<void, void>>
Add required mediators. Mediators must approve any trades involving the asset
| Name | Type |
|---|---|
args |
AssetMediatorParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type ProcedureMethod, which means you can call addRequiredMediators.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:263
▸ currentFundingRound(): Promise<null | string>
Retrieve the Asset's funding round
Promise<null | string>
Note
can be subscribed to, if connected to node using a web socket
api/entities/Asset/Base/BaseAsset.ts:563
▸ currentFundingRound(callback): Promise<UnsubCallback>
| Name | Type |
|---|---|
callback |
SubCallback<null | string> |
Promise<UnsubCallback>
api/entities/Asset/Base/BaseAsset.ts:564
▸ details(): Promise<AssetDetails>
Retrieve the Asset's data
Promise<AssetDetails>
Note
can be subscribed to, if connected to node using a web socket
api/entities/Asset/Base/BaseAsset.ts:389
▸ details(callback): Promise<UnsubCallback>
| Name | Type |
|---|---|
callback |
SubCallback<AssetDetails> |
Promise<UnsubCallback>
api/entities/Asset/Base/BaseAsset.ts:390
▸ freeze(opts?): Promise<GenericPolymeshTransaction<void, void>>
Freeze transfers of the Asset
| Name | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type NoArgsProcedureMethod, which means you can call freeze.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:243
▸ getIdentifiers(): Promise<SecurityIdentifier[]>
Retrieve the Asset's identifiers list
Promise<SecurityIdentifier[]>
Note
can be subscribed to, if connected to node using a web socket
api/entities/Asset/Base/BaseAsset.ts:309
▸ getIdentifiers(callback?): Promise<UnsubCallback>
| Name | Type |
|---|---|
callback? |
SubCallback<SecurityIdentifier[]> |
Promise<UnsubCallback>
api/entities/Asset/Base/BaseAsset.ts:310
▸ getRequiredMediators(): Promise<Identity[]>
Get required Asset mediators. These Identities must approve any Instruction involving the asset
Promise<Identity[]>
api/entities/Asset/Base/BaseAsset.ts:508
▸ getVenueFilteringDetails(): Promise<VenueFilteringDetails>
Get venue filtering details
Promise<VenueFilteringDetails>
api/entities/Asset/Base/BaseAsset.ts:528
▸ isEqual(entity): boolean
Determine whether this Entity is the same as another one
| Name | Type |
|---|---|
entity |
Entity<unknown, unknown> |
boolean
▸ isFrozen(): Promise<boolean>
Check whether transfers are frozen for the Asset
Promise<boolean>
Note
can be subscribed to, if connected to node using a web socket
api/entities/Asset/Base/BaseAsset.ts:355
▸ isFrozen(callback): Promise<UnsubCallback>
| Name | Type |
|---|---|
callback |
SubCallback<boolean> |
Promise<UnsubCallback>
api/entities/Asset/Base/BaseAsset.ts:356
▸ linkTicker(args, opts?): Promise<GenericPolymeshTransaction<void, void>>
Link ticker to the asset
| Name | Type |
|---|---|
args |
LinkTickerToAssetParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
if ticker is already reserved, then required role:
- Ticker Owner
Note
this method is of type ProcedureMethod, which means you can call linkTicker.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:286
▸ modify(args, opts?): Promise<GenericPolymeshTransaction<Asset, Asset>>
Modify some properties of the Asset
| Name | Type |
|---|---|
args |
ModifyAssetParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<Asset, Asset>>
Throws
if the passed values result in no changes being made to the Asset
Note
this method is of type ProcedureMethod, which means you can call modify.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:149
▸ removeRequiredMediators(args, opts?): Promise<GenericPolymeshTransaction<void, void>>
Remove required mediators
| Name | Type |
|---|---|
args |
AssetMediatorParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type ProcedureMethod, which means you can call removeRequiredMediators.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:273
▸ setVenueFiltering(args, opts?): Promise<GenericPolymeshTransaction<void, void>>
Enable/disable venue filtering for this Asset and/or set allowed/disallowed venues
| Name | Type |
|---|---|
args |
SetVenueFilteringParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type ProcedureMethod, which means you can call setVenueFiltering.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:127
▸ toHuman(): string
Return the BaseAsset's ID
string
api/entities/Asset/Base/BaseAsset.ts:630
▸ transferOwnership(args, opts?): Promise<GenericPolymeshTransaction<AuthorizationRequest, AuthorizationRequest>>
Transfer ownership of the Asset to another Identity. This generates an authorization request that must be accepted by the recipient
| Name | Type |
|---|---|
args |
TransferAssetOwnershipParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<AuthorizationRequest, AuthorizationRequest>>
Note
this will create Authorization Request which has to be accepted by the target Identity.
An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived.
Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne
Note
this method is of type ProcedureMethod, which means you can call transferOwnership.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:117
▸ unfreeze(opts?): Promise<GenericPolymeshTransaction<void, void>>
Unfreeze transfers of the Asset
| Name | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type NoArgsProcedureMethod, which means you can call unfreeze.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:253
▸ unlinkTicker(opts?): Promise<GenericPolymeshTransaction<void, void>>
Unlink ticker from the Asset
| Name | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
Note
Only the ticker owner is allowed to unlink the Asset
Throws
if there is no ticker to unlink
Note
this method is of type NoArgsProcedureMethod, which means you can call unlinkTicker.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Asset/Base/BaseAsset.ts:300
▸ Static generateUuid<Identifiers>(identifiers): string
Generate the Entity's UUID from its identifying properties
| Name |
|---|
Identifiers |
| Name | Type |
|---|---|
identifiers |
Identifiers |
string
▸ Static unserialize<Identifiers>(serialized): Identifiers
Unserialize a UUID into its Unique Identifiers
| Name |
|---|
Identifiers |
| Name | Type | Description |
|---|---|---|
serialized |
string |
UUID to unserialize |
Identifiers
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Corporate Ballot
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types