TickerReservation

Represents a reserved token symbol in the Polymesh chain. Ticker reservations expire after a set length of time, after which they can be reserved by another Identity. A Ticker must be previously reserved by an Identity for that Identity to be able create a Security Token with it

Hierarchy

  • Entity‹UniqueIdentifiers, string›

    ↳ TickerReservation

Index

Properties

Methods

Properties

Protected context

• context: Context

Inherited from Entity.context

Defined in src/api/entities/Entity.ts:48arrow-up-right

ticker

• ticker: string

Defined in src/api/entities/TickerReservation/index.ts:49arrow-up-right

reserved ticker

uuid

• uuid: string

Inherited from Entity.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

Methods

createToken

▸ createToken(args: CreateSecurityTokenParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹SecurityToken››

Defined in src/api/entities/TickerReservation/index.ts:184arrow-up-right

Create a Security Token using the reserved ticker

note the issuer DID will be set as the primary issuance agent

note required role:

  • Ticker Owner

note this method is of type ProcedureMethod, which means you can call createToken.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹SecurityToken››

details

▸ details(): Promise‹TickerReservationDetails›

Defined in src/api/entities/TickerReservation/index.ts:82arrow-up-right

Retrieve the Reservation's owner, expiry date and status

note can be subscribed to

Returns: Promise‹TickerReservationDetails›

▸ details(callback: SubCallback‹TickerReservationDetails›): Promise‹UnsubCallback›

Defined in src/api/entities/TickerReservation/index.ts:83arrow-up-right

Parameters:

Name

Type

Returns: Promise‹UnsubCallback›

extend

▸ extend(args: void, opts?: ProcedureOpts): Promise‹TransactionQueue‹TickerReservation››

Defined in src/api/entities/TickerReservation/index.ts:169arrow-up-right

Extend the Reservation time period of the ticker for 60 days from now to later use it in the creation of a Security Token.

note required role:

  • Ticker Owner

note this method is of type ProcedureMethod, which means you can call extend.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name

Type

args

void

Returns: Promise‹TransactionQueue‹TickerReservation››

isEqual

▸ isEqual(entity: Entity‹unknown, unknown›): boolean

Inherited from Entity.isEqual

Defined in src/api/entities/Entity.ts:61arrow-up-right

Whether this Entity is the same as another one

Parameters:

Name

Type

entity

Entity‹unknown, unknown›

Returns: boolean

toJson

â–¸ toJson(): string

Overrides Entity.toJson

Defined in src/api/entities/TickerReservation/index.ts:209arrow-up-right

Return the Reservation's ticker

Returns: string

transferOwnership

▸ transferOwnership(args: TransferTickerOwnershipParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹TickerReservation››

Defined in src/api/entities/TickerReservation/index.ts:202arrow-up-right

Transfer ownership of the Ticker Reservation to another Identity. This generates an authorization request that must be accepted by the destinatary

note this will create Authorization Requests which have to be accepted by the corresponding Accounts and/or Identities. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived

note required role:

  • Ticker Owner

note this method is of type ProcedureMethod, which means you can call transferOwnership.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹TickerReservation››

Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Inherited from Entity.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name

Type

Description

identifiers

Identifiers

Returns: string

Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Inherited from Entity.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name

Type

Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?