-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Venue.Venue
api/entities/Venue.Venue
Represents a Venue through which settlements are handled
-
Entity
<UniqueIdentifiers
,string
>↳
Venue
- addInstruction
- addInstructions
- details
- exists
- getHistoricalInstructions
- getInstructions
- isEqual
- modify
- toHuman
- generateUuid
- unserialize
• id: BigNumber
identifier number of the Venue
api/entities/Venue/index.ts:71
• uuid: string
▸ addInstruction(args
, opts?
): Promise
<GenericPolymeshTransaction
<Instruction
[], Instruction
>>
Creates a settlement Instruction in this Venue
Note
required role:
- Venue Owner
Note
this method is of type ProcedureMethod, which means you can call addInstruction.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
AddInstructionParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Instruction
[], Instruction
>>
▸ addInstructions(args
, opts?
): Promise
<GenericPolymeshTransaction
<Instruction
[], Instruction
[]>>
Creates a batch of settlement Instructions in this Venue
Note
required role:
- Venue Owner
Note
this method is of type ProcedureMethod, which means you can call addInstructions.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
AddInstructionsParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Instruction
[], Instruction
[]>>
▸ details(): Promise
<VenueDetails
>
Retrieve information specific to this Venue
Promise
<VenueDetails
>
▸ exists(): Promise
<boolean
>
Determine whether this Venue exists on chain
Promise
<boolean
>
▸ getHistoricalInstructions(opts?
): Promise
<ResultSet
<HistoricInstruction
>>
Retrieve all Instructions that have been associated with this Venue instance
Note
uses the middleware V2
Note
supports pagination
Name | Type | Description |
---|---|---|
opts |
Object |
- |
opts.size? |
BigNumber |
page size |
opts.start? |
BigNumber |
page offset |
Promise
<ResultSet
<HistoricInstruction
>>
▸ getInstructions(): Promise
<Pick
<GroupedInstructions
, "pending"
| "failed"
>>
Retrieve all pending and failed Instructions in this Venue
Promise
<Pick
<GroupedInstructions
, "pending"
| "failed"
>>
▸ isEqual(entity
): boolean
Determine whether this Entity is the same as another one
Name | Type |
---|---|
entity |
Entity <unknown , unknown > |
boolean
▸ modify(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Modify description and type
Note
required role:
- Venue Owner
Note
this method is of type ProcedureMethod, which means you can call modify.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
ModifyVenueParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
▸ toHuman(): string
Return the Venue's ID
string
▸ 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