space_ex v0.8.0 SpaceEx.SpaceCenter.Contract

A contract.

Can be accessed using SpaceEx.SpaceCenter.contract_manager/1.

Link to this section Summary

Functions

Accept an offered contract

Whether the contract is active

Whether the contract can be canceled

Whether the contract can be declined

Whether the contract can be failed

Cancel an active contract

Decline an offered contract

Description of the contract

Whether the contract has been failed

Funds received when accepting the contract

Funds received on completion of the contract

Funds lost if the contract is failed

Keywords for the contract

Notes for the contract

Parameters for the contract

Whether the contract has been read

Reputation gained on completion of the contract

Reputation lost if the contract is failed

Science gained on completion of the contract

Whether the contract has been seen

State of the contract

Synopsis for the contract

Title of the contract

Type of the contract

Link to this section Functions

Accept an offered contract.

Returns: :ok

Whether the contract is active.

Returns: true or false

Link to this function can_be_canceled(this)

Whether the contract can be canceled.

Returns: true or false

Link to this function can_be_declined(this)

Whether the contract can be declined.

Returns: true or false

Link to this function can_be_failed(this)

Whether the contract can be failed.

Returns: true or false

Cancel an active contract.

Returns: :ok

Decline an offered contract.

Returns: :ok

Link to this function description(this)

Description of the contract.

Returns: a string

Whether the contract has been failed.

Returns: true or false

Link to this function funds_advance(this)

Funds received when accepting the contract.

Returns: a high precision decimal

Link to this function funds_completion(this)

Funds received on completion of the contract.

Returns: a high precision decimal

Link to this function funds_failure(this)

Funds lost if the contract is failed.

Returns: a high precision decimal

Keywords for the contract.

Returns: [str, ...], where str is a string

Notes for the contract.

Returns: a string

Link to this function parameters(this)

Parameters for the contract.

Returns: [contract_parameter, ...], where contract_parameter is a reference to a SpaceEx.SpaceCenter.ContractParameter object

Whether the contract has been read.

Returns: true or false

Link to this function reputation_completion(this)

Reputation gained on completion of the contract.

Returns: a high precision decimal

Link to this function reputation_failure(this)

Reputation lost if the contract is failed.

Returns: a high precision decimal

Link to this function science_completion(this)

Science gained on completion of the contract.

Returns: a high precision decimal

Whether the contract has been seen.

Returns: true or false

State of the contract.

Returns: a Elixir.SpaceEx.SpaceCenter.ContractState value in atom form

Synopsis for the contract.

Returns: a string

Title of the contract.

Returns: a string

Type of the contract.

Returns: a string