Instruction
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents a settlement Instruction to be executed on a certain Venue
‹UniqueIdentifiers›
↳ Instruction
Protected
context• id: BigNumber
Identifier number of the venue
• uuid: string
Affirm this instruction (authorize)
Parameters:
Name
Type
args
void
Retrieve information specific to this Instruction
▸ exists(): Promise‹boolean›
Retrieve whether the Instruction still exists on chain. Executed/rejected instructions are pruned from the storage
Returns: Promise‹boolean›
Retrieve every authorization generated by this Instruction (status and authorizing Identity)
note
supports pagination
Parameters:
Name
Type
paginationOpts?
Retrieve all legs of this Instruction
note
supports pagination
Parameters:
Name
Type
paginationOpts?
Whether this Entity is the same as another one
Parameters:
Name
Type
entity
Returns: 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:
Name
Type
args
void
Withdraw affirmation from this instruction (unauthorize)
Parameters:
Name
Type
args
void
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
• context:
Inherited from .
Defined in
Defined in
Inherited from .
Defined in
â–¸ affirm(args
: void): Promise‹‹››
Defined in
note
this method is of type , which means you can call affirm.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Returns: Promise‹‹››
▸ details(): Promise‹›
Defined in
Returns: Promise‹›
Defined in
â–¸ getAffirmations(paginationOpts?
: ): Promise‹‹››
Defined in
Returns: Promise‹‹››
â–¸ getLegs(paginationOpts?
: ): Promise‹‹››
Defined in
Returns: Promise‹‹››
â–¸ isEqual(entity
: ‹unknown›): boolean
Inherited from .
Defined in
‹unknown›
â–¸ reject(args
: void): Promise‹‹››
Defined in
note
this method is of type , which means you can call reject.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Returns: Promise‹‹››
â–¸ withdraw(args
: void): Promise‹‹››
Defined in
note
this method is of type , which means you can call withdraw.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Returns: Promise‹‹››
Inherited from .
Defined in
Inherited from .
Defined in