HeartbeatAlgoAudit

Python pydantic class corresponding to json type `heartbeat.algo.audit`.

class gwatn.types.HeartbeatAlgoAudit(*, SignedProof, Heartbeat, TypeName='heartbeat.algo.audit', Version='000')

.

Algo payload with report of last HeartbeatB sent to partner via Rabbit, to be sent to DispatchContract on Algo blockchain

Parameters:
  • SignedProof (str) –

  • Heartbeat (HeartbeatB) –

  • TypeName (Literal['heartbeat.algo.audit']) –

  • Version (str) –

SignedProof:
  • Description: Tiny signed payment to DispatchContract to prove identity. Can be a minimal payment, as long as it comes from the AtomicTNode or SCADA.

  • Format: AlgoMsgPackEncoded

Heartbeat:
  • Description: Heartbeat sender last sent to its partner

class gwatn.types.heartbeat_algo_audit.check_is_left_right_dot(v)

LeftRightDot format: Lowercase alphanumeric words separated by periods, most significant word (on the left) starting with an alphabet character.

Raises:

ValueError – if not LeftRightDot format

Parameters:

v (str) –

class gwatn.types.heartbeat_algo_audit.check_is_algo_msg_pack_encoded(v)

AlgoMSgPackEncoded format: the format of an transaction sent to the Algorand blockchain.

Raises:

ValueError – if not AlgoMSgPackEncoded format

Parameters:

v (str) –

class gwatn.types.HeartbeatAlgoAudit_Maker(signed_proof, heartbeat)
Parameters:
  • signed_proof (str) –

  • heartbeat (HeartbeatB) –

classmethod tuple_to_type(tuple)

Given a Python class object, returns the serialized JSON type object

Parameters:

tuple (HeartbeatAlgoAudit) –

Return type:

str

classmethod type_to_tuple(t)

Given a serialized JSON type object, returns the Python class object

Parameters:

t (str) –

Return type:

HeartbeatAlgoAudit