Instruction
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents a settlement Instruction to be executed on a certain Venue
‹UniqueIdentifiers, string›
↳ Instruction
Protected
context• context: Context
• id: BigNumber
Identifier number of the venue
• uuid: string
Affirm this instruction (authorize)
Parameters:
opts?
Retrieve information specific to this Instruction
▸ exists(): Promise‹boolean›
Determine whether this Instruction exists on chain (or existed and was pruned)
Returns: Promise‹boolean›
Retrieve every authorization generated by this Instruction (status and authorizing Identity)
note
supports pagination
Parameters:
paginationOpts?
Retrieve all legs of this Instruction
note
supports pagination
Parameters:
paginationOpts?
Retrieve current status of this Instruction
note
uses the middleware
Retrieve current status of this Instruction
note
uses the middlewareV2
Determine whether this Entity is the same as another one
Parameters:
entity
Returns: boolean
▸ isExecuted(): Promise‹boolean›
Retrieve whether the Instruction has already been executed and pruned from the chain.
Returns: Promise‹boolean›
▸ isPending(): Promise‹boolean›
Retrieve whether the Instruction is still pending on chain
Returns: Promise‹boolean›
Reject this instruction
note
reject on SettleOnAffirmation
will execute the settlement and it will fail immediately.
note
reject on SettleOnBlock
behaves just like unauthorize
Parameters:
opts?
Reschedules a failed Instruction to be tried again
throws
if the Instruction status is not InstructionStatus.Failed
Parameters:
opts?
â–¸ toHuman(): string
Return the Instruction's ID
Returns: string
Withdraw affirmation from this instruction (unauthorize)
Parameters:
opts?
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
â–ª Identifiers
Parameters:
identifiers
Identifiers
Returns: string
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
â–ª Identifiers
Parameters:
serialized
string
UUID to unserialize
Returns: Identifiers
Inherited from .
Defined in
Defined in
Inherited from .
Defined in
â–¸ affirm(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‹‹››
▸ details(): Promise‹›
Defined in
Returns: Promise‹›
Overrides .
Defined in
â–¸ getAffirmations(paginationOpts?
: ): Promise‹‹››
Defined in
Returns: Promise‹‹››
â–¸ getLegs(paginationOpts?
: ): Promise‹‹››
Defined in
Returns: Promise‹‹››
▸ getStatus(): Promise‹›
Defined in
Returns: Promise‹›
▸ getStatusV2(): Promise‹›
Defined in
Returns: Promise‹›
â–¸ isEqual(entity
: ‹unknown, unknown›): boolean
Inherited from .
Defined in
‹unknown, unknown›
Defined in
Defined in
â–¸ reject(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‹‹››
â–¸ reschedule(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‹‹››
Overrides .
Defined in
â–¸ withdraw(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