-
Notifications
You must be signed in to change notification settings - Fork 11
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
- details
- freeze
- getIdentifiers
- isEqual
- isFrozen
- toHuman
- transferOwnership
- unfreeze
- generateUuid
- unserialize
• compliance: Compliance
api/entities/Asset/Base/BaseAsset.ts:54
• did: string
Identity ID of the Asset (used for Claims)
api/entities/Asset/Base/BaseAsset.ts:62
• documents: Documents
api/entities/Asset/Base/BaseAsset.ts:55
• metadata: Metadata
api/entities/Asset/Base/BaseAsset.ts:56
• permissions: Permissions
api/entities/Asset/Base/BaseAsset.ts:57
• ticker: string
ticker of the Asset
api/entities/Asset/Base/BaseAsset.ts:67
• uuid: string
▸ details(): Promise
<AssetDetails
>
Retrieve the Asset's data
Note
can be subscribed to
Promise
<AssetDetails
>
▸ details(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <AssetDetails > |
Promise
<UnsubCallback
>
▸ freeze(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Freeze transfers of the Asset
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
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
▸ getIdentifiers(): Promise
<SecurityIdentifier
[]>
Retrieve the Asset's identifiers list
Note
can be subscribed to
Promise
<SecurityIdentifier
[]>
▸ getIdentifiers(callback?
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback? |
SubCallback <SecurityIdentifier []> |
Promise
<UnsubCallback
>
▸ 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
Note
can be subscribed to
Promise
<boolean
>
▸ isFrozen(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <boolean > |
Promise
<UnsubCallback
>
▸ toHuman(): string
Return the NftCollection's ticker
string
▸ 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
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
Name | Type |
---|---|
args |
TransferAssetOwnershipParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
▸ unfreeze(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Unfreeze transfers of the Asset
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
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
▸ 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
- 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