pub struct CallApi<'api> { /* private fields */ }

Implementations§

Registers a new venue.

  • details - Extra details about a venue
  • signers - Array of signers that are allowed to sign receipts for this venue
  • typ - Type of venue being created

Edit a venue’s details.

  • id specifies the ID of the venue to edit.
  • details specifies the updated venue details.

Edit a venue’s type.

  • id specifies the ID of the venue to edit.
  • type specifies the new type of the venue.

Deprecated. Use add_instruction_with_memo instead. Adds a new instruction.

Arguments
  • venue_id - ID of the venue this instruction belongs to.
  • settlement_type - Defines if the instruction should be settled in the next block after receiving all affirmations or waiting till a specific block.
  • trade_date - Optional date from which people can interact with this instruction.
  • value_date - Optional date after which the instruction should be settled (not enforced)
  • legs - Legs included in this instruction.
Weight

950_000_000 + 1_000_000 * legs.len()

Deprecated. Use add_and_affirm_instruction_with_memo instead. Adds and affirms a new instruction.

Arguments
  • venue_id - ID of the venue this instruction belongs to.
  • settlement_type - Defines if the instruction should be settled in the next block after receiving all affirmations or waiting till a specific block.
  • trade_date - Optional date from which people can interact with this instruction.
  • value_date - Optional date after which the instruction should be settled (not enforced)
  • legs - Legs included in this instruction.
  • portfolios - Portfolios that the sender controls and wants to use in this affirmations.
Permissions
  • Portfolio

Provide affirmation to an existing instruction.

Arguments
  • id - Instruction id to affirm.
  • portfolios - Portfolios that the sender controls and wants to affirm this instruction.
  • max_legs_count - Number of legs that need to be affirmed.
Permissions
  • Portfolio

Withdraw an affirmation for a given instruction.

Arguments
  • id - Instruction id for that affirmation get withdrawn.
  • portfolios - Portfolios that the sender controls and wants to withdraw affirmation.
  • max_legs_count - Number of legs that need to be un-affirmed.
Permissions
  • Portfolio

Rejects an existing instruction.

Arguments
  • id - Instruction id to reject.
  • portfolio - Portfolio to reject the instruction.
  • num_of_legs - Number of legs in the instruction.
Permissions
  • Portfolio

Accepts an instruction and claims a signed receipt.

Arguments
  • id - Target instruction id.
  • leg_id - Target leg id for the receipt
  • receipt_uid - Receipt ID generated by the signer.
  • signer - Signer of the receipt.
  • signed_data - Signed receipt.
  • portfolios - Portfolios that the sender controls and wants to accept this instruction with
Permissions
  • Portfolio

Claims a signed receipt.

Arguments
  • id - Target instruction id for the receipt.
  • leg_id - Target leg id for the receipt
  • receipt_uid - Receipt ID generated by the signer.
  • signer - Signer of the receipt.
  • signed_data - Signed receipt.
Permissions
  • Portfolio

Unclaims a previously claimed receipt.

Arguments
  • instruction_id - Target instruction id for the receipt.
  • leg_id - Target leg id for the receipt
Permissions
  • Portfolio

Enables or disabled venue filtering for a token.

Arguments
  • ticker - Ticker of the token in question.
  • enabled - Boolean that decides if the filtering should be enabled.
Permissions
  • Asset

Allows additional venues to create instructions involving an asset.

  • ticker - Ticker of the token in question.
  • venues - Array of venues that are allowed to create instructions for the token in question.
Permissions
  • Asset

Revokes permission given to venues for creating instructions involving a particular asset.

  • ticker - Ticker of the token in question.
  • venues - Array of venues that are no longer allowed to create instructions for the token in question.
Permissions
  • Asset

Marks a receipt issued by the caller as claimed or not claimed. This allows the receipt issuer to invalidate an already issued receipt or revalidate an already claimed receipt.

  • receipt_uid - Unique ID of the receipt.
  • validity - New validity of the receipt.

Root callable extrinsic, used as an internal call to execute a scheduled settlement instruction.

Reschedules a failed instruction.

Arguments
  • id - Target instruction id to reschedule.
Permissions
  • Portfolio
Errors
  • InstructionNotFailed - Instruction not in a failed state or does not exist.

Edit a venue’s signers.

  • id specifies the ID of the venue to edit.
  • signers specifies the signers to add/remove.
  • add_signers specifies the update type add/remove of venue where add is true and remove is false.

Adds a new instruction with memo.

Arguments
  • venue_id - ID of the venue this instruction belongs to.
  • settlement_type - Defines if the instruction should be settled in the next block after receiving all affirmations or waiting till a specific block.
  • trade_date - Optional date from which people can interact with this instruction.
  • value_date - Optional date after which the instruction should be settled (not enforced)
  • legs - Legs included in this instruction.
  • memo - Memo field for this instruction.
Weight

950_000_000 + 1_000_000 * legs.len()

Adds and affirms a new instruction.

Arguments
  • venue_id - ID of the venue this instruction belongs to.
  • settlement_type - Defines if the instruction should be settled in the next block after receiving all affirmations or waiting till a specific block.
  • trade_date - Optional date from which people can interact with this instruction.
  • value_date - Optional date after which the instruction should be settled (not enforced)
  • legs - Legs included in this instruction.
  • portfolios - Portfolios that the sender controls and wants to use in this affirmations.
  • memo - Memo field for this instruction.
Permissions
  • Portfolio

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more