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:66arrow-up-right

Asset being offered


Protected context

context: Context

Inherited from CheckpointSchedule.context

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


id

id: BigNumber

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

identifier number of the Offering


uuid

uuid: string

Inherited from CheckpointSchedule.uuid

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

Methods

close

close(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:159arrow-up-right

Close the Offering

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call close.checkAuthorizationarrow-up-right 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‹OfferingDetailsarrow-up-right

Defined in src/api/entities/Offering/index.ts:112arrow-up-right

Retrieve the Offering's details

note can be subscribed to

Returns: Promise‹OfferingDetailsarrow-up-right

details(callback: SubCallbackOfferingDetailsarrow-up-right›): Promise‹UnsubCallback

Defined in src/api/entities/Offering/index.ts:113arrow-up-right

Parameters:

Returns: Promise‹UnsubCallback


exists

exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/Offering/index.ts:278arrow-up-right

Determine whether this Offering exists on chain

Returns: Promise‹boolean›


freeze

freeze(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueueOffering››

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

Freeze the Offering

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call freeze.checkAuthorizationarrow-up-right 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‹ResultSetarrow-up-rightInvestmentarrow-up-right››

Defined in src/api/entities/Offering/index.ts:221arrow-up-right

Retrieve all investments made on this Offering

note supports pagination

note uses the middleware

Parameters:

Default value opts: object= {}

Name
Type
Description

size?

BigNumber

page size

start?

BigNumber

page offset

Returns: Promise‹ResultSetarrow-up-rightInvestmentarrow-up-right››


invest

invest(args: InvestInOfferingParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:208arrow-up-right

Invest in the Offering

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

note this method is of type ProcedureMethodarrow-up-right, which means you can call invest.checkAuthorizationarrow-up-right 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:61arrow-up-right

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Entity‹unknown, unknown›

Returns: boolean


modifyTimes

modifyTimes(args: ModifyStoTimesParams, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Offering/index.ts:194arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call modifyTimes.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Name
Type

args

ModifyStoTimesParams

Returns: Promise‹TransactionQueue‹void››


toJson

toJson(): HumanReadablearrow-up-right

Overrides Entity.toJson

Defined in src/api/entities/Offering/index.ts:296arrow-up-right

Return the Offering's ID and Asset ticker

Returns: HumanReadablearrow-up-right


unfreeze

unfreeze(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueueOffering››

Defined in src/api/entities/Offering/index.ts:179arrow-up-right

Unfreeze the Offering

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call unfreeze.checkAuthorizationarrow-up-right 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: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

unserializeIdentifiers›(serialized: string): Identifiers

Inherited from CheckpointSchedule.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?