Offering

Represents an Asset Offering in the Polymesh blockchain

Hierarchy

Index

Properties

Methods

Properties

asset

asset: Asset

Defined in src/api/entities/Offering/index.ts:66

Asset being offered


Protected context

context: Context

Inherited from CheckpointSchedule.context

Defined in src/api/entities/Entity.ts:48


id

id: BigNumber

Defined in src/api/entities/Offering/index.ts:61

identifier number of the Offering


uuid

uuid: string

Inherited from CheckpointSchedule.uuid

Defined in src/api/entities/Entity.ts:46

Methods

close

close(opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:159

Close the Offering

note this method is of type NoArgsProcedureMethod, which means you can call close.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


details

details(): Promise‹OfferingDetails

Defined in src/api/entities/Offering/index.ts:112

Retrieve the Offering's details

note can be subscribed to

Returns: Promise‹OfferingDetails

details(callback: SubCallbackOfferingDetails›): Promise‹UnsubCallback

Defined in src/api/entities/Offering/index.ts:113

Parameters:

Returns: Promise‹UnsubCallback


exists

exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/Offering/index.ts:278

Determine whether this Offering exists on chain

Returns: Promise‹boolean›


freeze

freeze(opts?: ProcedureOpts): Promise‹TransactionQueueOffering››

Defined in src/api/entities/Offering/index.ts:169

Freeze the Offering

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

Parameters:

Returns: Promise‹TransactionQueueOffering››


getInvestments

getInvestments(opts: object): Promise‹ResultSetInvestment››

Defined in src/api/entities/Offering/index.ts:221

Retrieve all investments made on this Offering

note supports pagination

note uses the middleware

Parameters:

Default value opts: object= {}

Returns: Promise‹ResultSetInvestment››


invest

invest(args: InvestInOfferingParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:208

Invest in the Offering

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

note this method is of type ProcedureMethod, which means you can call invest.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


isEqual

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

Inherited from CheckpointSchedule.isEqual

Defined in src/api/entities/Entity.ts:61

Determine whether this Entity is the same as another one

Parameters:

Returns: boolean


modifyTimes

modifyTimes(args: ModifyStoTimesParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:194

Modify the start/end time of the Offering

throws if:

  • Trying to modify the start time on an Offering that already started

  • Trying to modify anything on an Offering that already ended

  • Trying to change start or end time to a past date

note this method is of type ProcedureMethod, which means you can call modifyTimes.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


toJson

toJson(): HumanReadable

Overrides Entity.toJson

Defined in src/api/entities/Offering/index.ts:296

Return the Offering's ID and Asset ticker

Returns: HumanReadable


unfreeze

unfreeze(opts?: ProcedureOpts): Promise‹TransactionQueueOffering››

Defined in src/api/entities/Offering/index.ts:179

Unfreeze the Offering

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

Parameters:

Returns: Promise‹TransactionQueueOffering››


Static generateUuid

generateUuidIdentifiers›(identifiers: Identifiers): string

Inherited from CheckpointSchedule.generateUuid

Defined in src/api/entities/Entity.ts:14

Generate the Entity's UUID from its identifying properties

Type parameters:

Identifiers

Parameters:

Returns: string


Static unserialize

unserializeIdentifiers›(serialized: string): Identifiers

Inherited from CheckpointSchedule.unserialize

Defined in src/api/entities/Entity.ts:23

Unserialize a UUID into its Unique Identifiers

Type parameters:

Identifiers

Parameters:

Returns: Identifiers

Last updated