Polymesh SDK API Reference
beta
beta
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • asset
  • Protected context
  • id
  • uuid
  • Methods
  • close
  • details
  • exists
  • freeze
  • getInvestments
  • getInvestmentsV2
  • invest
  • isEqual
  • modifyTimes
  • toHuman
  • unfreeze
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Offering

PreviousNumberedPortfolioNextOfferings

Last updated 2 years ago

Was this helpful?

Represents an Asset Offering in the Polymesh blockchain

Hierarchy

  • ‹UniqueIdentifiers, ›

    ↳ Offering

Index

Properties

Methods

Properties

asset

Asset being offered


Protected context

• context: Context


id

• id: BigNumber

identifier number of the Offering


uuid

• uuid: string

Methods

close

Close the Offering

Parameters:

Name
Type

opts?


details

Retrieve the Offering's details

note can be subscribed to

Parameters:

Name
Type

callback


exists

▸ exists(): Promise‹boolean›

Determine whether this Offering exists on chain

Returns: Promise‹boolean›


freeze

Freeze the Offering

Parameters:

Name
Type

opts?


getInvestments

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


getInvestmentsV2

Retrieve all investments made on this Offering

note supports pagination

note uses the middleware V2

Parameters:

â–ªDefault value opts: object= {}

Name
Type
Description

size?

BigNumber

page size

start?

BigNumber

page offset


invest

Invest in the Offering

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

Parameters:

Name
Type

args

opts?


isEqual

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Returns: boolean


modifyTimes

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

Parameters:

Name
Type

args

ModifyStoTimesParams

opts?


toHuman

Return the Offering's ID and Asset ticker


unfreeze

Unfreeze the Offering

Parameters:

Name
Type

opts?


Static generateUuid

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

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

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

• asset:

Defined in

Inherited from .

Defined in

Defined in

Inherited from .

Defined in

▸ close(opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

▸ details(callback: ‹›): Promise‹›

Defined in

‹›

Returns: Promise‹›

Overrides .

Defined in

▸ freeze(opts?: ): Promise‹‹››

Defined in

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

Returns: Promise‹‹››

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

Defined in

Returns: Promise‹‹››

▸ getInvestmentsV2(opts: object): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ invest(args: , opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

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

Inherited from .

Defined in

‹unknown, unknown›

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

Defined in

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

Returns: Promise‹‹void››

â–¸ toHuman():

Overrides .

Defined in

Returns:

▸ unfreeze(opts?: ): Promise‹‹››

Defined in

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

Returns: Promise‹‹››

Inherited from .

Defined in

Inherited from .

Defined in

Asset
src/api/entities/Offering/index.ts:68
src/api/entities/Entity.ts:48
src/api/entities/Offering/index.ts:63
src/api/entities/Entity.ts:46
ProcedureOpts
TransactionQueue
src/api/entities/Offering/index.ts:161
NoArgsProcedureMethod
close.checkAuthorization
TransactionQueue
OfferingDetails
src/api/entities/Offering/index.ts:114
OfferingDetails
src/api/entities/Offering/index.ts:115
src/api/entities/Offering/index.ts:335
ProcedureOpts
TransactionQueue
Offering
src/api/entities/Offering/index.ts:171
NoArgsProcedureMethod
freeze.checkAuthorization
TransactionQueue
Offering
ResultSet
Investment
src/api/entities/Offering/index.ts:223
ResultSet
Investment
ResultSet
Investment
src/api/entities/Offering/index.ts:286
ResultSet
Investment
InvestInOfferingParams
ProcedureOpts
TransactionQueue
src/api/entities/Offering/index.ts:210
ProcedureMethod
invest.checkAuthorization
TransactionQueue
Entity
src/api/entities/Entity.ts:61
ProcedureOpts
TransactionQueue
src/api/entities/Offering/index.ts:196
ProcedureMethod
modifyTimes.checkAuthorization
TransactionQueue
HumanReadable
src/api/entities/Offering/index.ts:353
HumanReadable
ProcedureOpts
TransactionQueue
Offering
src/api/entities/Offering/index.ts:181
NoArgsProcedureMethod
unfreeze.checkAuthorization
TransactionQueue
Offering
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
HumanReadable
asset
context
id
uuid
close
details
exists
freeze
getInvestments
getInvestmentsV2
invest
isEqual
modifyTimes
toHuman
unfreeze
generateUuid
unserialize
ProcedureOpts
ProcedureOpts
InvestInOfferingParams
ProcedureOpts
Entity
ProcedureOpts
ProcedureOpts
CheckpointSchedule
CheckpointSchedule
OfferingDetails
Entity
CheckpointSchedule
Entity
CheckpointSchedule
CheckpointSchedule
OfferingDetails
exists
toHuman
context
uuid
isEqual
generateUuid
unserialize
SubCallback
UnsubCallback
UnsubCallback
SubCallback