aea.decision_maker.messages.state_update

The state update message module.

StateUpdateMessage Objects

class StateUpdateMessage(InternalMessage)

The state update message class.

Performative Objects

class Performative(Enum)

State update performative.

__init__

 | __init__(performative: Performative, amount_by_currency_id: Currencies, quantities_by_good_id: Goods, **kwargs)

Instantiate transaction message.

Arguments:

  • performative: the performative
  • amount_by_currency_id: the amounts of currencies.
  • quantities_by_good_id: the quantities of goods.

performative

 | @property
 | performative() -> Performative

Get the performative of the message.

amount_by_currency_id

 | @property
 | amount_by_currency_id() -> Currencies

Get the amount by currency.

quantities_by_good_id

 | @property
 | quantities_by_good_id() -> Goods

Get the quantities by good id.

exchange_params_by_currency_id

 | @property
 | exchange_params_by_currency_id() -> ExchangeParams

Get the exchange parameters by currency from the message.

utility_params_by_good_id

 | @property
 | utility_params_by_good_id() -> UtilityParams

Get the utility parameters by good id.

tx_fee

 | @property
 | tx_fee() -> int

Get the transaction fee.