BaseGNodeGt

Python class corresponding to the GridWorks type base.g.node.gt.002 (VersionedTypeName).

class gridworks.types.BaseGNodeGt(*, GNodeId, Alias, Status, Role, GNodeRegistryAddr, PrevAlias=None, GpsPointId=None, OwnershipDeedId=None, OwnershipDeedValidatorAddr=None, OwnerAddr=None, DaemonAddr=None, TradingRightsId=None, ScadaAlgoAddr=None, ScadaCertId=None, TypeName='base.g.node.gt', Version='002')

.

BaseGNode. Authority is GNodeFactory.

Parameters:
  • GNodeId (str) –

  • Alias (str) –

  • Status (GNodeStatus) –

  • Role (CoreGNodeRole) –

  • GNodeRegistryAddr (str) –

  • PrevAlias (str | None) –

  • GpsPointId (str | None) –

  • OwnershipDeedId (int | None) –

  • OwnershipDeedValidatorAddr (str | None) –

  • OwnerAddr (str | None) –

  • DaemonAddr (str | None) –

  • TradingRightsId (int | None) –

  • ScadaAlgoAddr (str | None) –

  • ScadaCertId (int | None) –

  • TypeName (Literal['base.g.node.gt']) –

  • Version (str) –

GNodeId:
  • Description:

  • Format: UuidCanonicalTextual

Alias:
  • Description:

  • Format: LeftRightDot

Status:
  • Description:

Role:
  • Description:

GNodeRegistryAddr:
  • Description:

  • Format: AlgoAddressStringFormat

PrevAlias:
  • Description:

  • Format: LeftRightDot

GpsPointId:
  • Description:

  • Format: UuidCanonicalTextual

OwnershipDeedId:
  • Description:

OwnershipDeedValidatorAddr:
  • Description:

  • Format: AlgoAddressStringFormat

OwnerAddr:
  • Description:

  • Format: AlgoAddressStringFormat

DaemonAddr:
  • Description:

  • Format: AlgoAddressStringFormat

TradingRightsId:
  • Description:

ScadaAlgoAddr:
  • Description:

  • Format: AlgoAddressStringFormat

ScadaCertId:
  • Description:

class gridworks.types.base_g_node_gt.check_is_uuid_canonical_textual(v)

UuidCanonicalTextual format: A string of hex words separated by hyphens of length 8-4-4-4-12.

Raises:

ValueError – if not UuidCanonicalTextual format

Parameters:

v (str) –

class gridworks.types.base_g_node_gt.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 gridworks.types.base_g_node_gt.check_is_algo_address_string_format(v)

AlgoAddressStringFormat format: The public key of a private/public Ed25519 key pair, transformed into an Algorand address, by adding a 4-byte checksum to the end of the public key and then encoding in base32.

Raises:

ValueError – if not AlgoAddressStringFormat format

Parameters:

v (str) –

class gridworks.types.BaseGNodeGt_Maker(g_node_id, alias, status, role, g_node_registry_addr, prev_alias, gps_point_id, ownership_deed_id, ownership_deed_validator_addr, owner_addr, daemon_addr, trading_rights_id, scada_algo_addr, scada_cert_id)
Parameters:
  • g_node_id (str) –

  • alias (str) –

  • status (GNodeStatus) –

  • role (CoreGNodeRole) –

  • g_node_registry_addr (str) –

  • prev_alias (str | None) –

  • gps_point_id (str | None) –

  • ownership_deed_id (int | None) –

  • ownership_deed_validator_addr (str | None) –

  • owner_addr (str | None) –

  • daemon_addr (str | None) –

  • trading_rights_id (int | None) –

  • scada_algo_addr (str | None) –

  • scada_cert_id (int | None) –

classmethod tuple_to_type(tuple)

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

Parameters:

tuple (BaseGNodeGt) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

BaseGNodeGt