InitialTadeedAlgoCreate

Python pydantic class corresponding to json type `initial.tadeed.algo.create`.

class gwatn.types.InitialTadeedAlgoCreate(*, ValidatorAddr, HalfSignedDeedCreationMtx, TypeName='initial.tadeed.algo.create', Version='000')

TaValidator sends to GNodeFactory to complete creation of an initial TaDeed.

If this message is valid, the GNodeFactory co-signs and submits the TaDeed creation. In addition, the GnodeFactory creates a TerminalAsset with GNodeStatus pending. For more information: [TaDeed](https://gridworks.readthedocs.io/en/latest/ta-deed.html) [TaValidator](https://gridworks.readthedocs.io/en/latest/ta-validator.html)

Parameters:
  • ValidatorAddr (str) –

  • HalfSignedDeedCreationMtx (str) –

  • TypeName (Literal['initial.tadeed.algo.create']) –

  • Version (str) –

classmethod check_axiom_1(v)

Axiom 1: Is correct Multisig. Decoded HalfSignedDeedCreationMtx must have type MultisigTransaction from the 2-sig MultiAccount [GnfAdminAddr, ValidatorAddr]. [More info](https://gridworks.readthedocs.io/en/latest/g-node-factory.html#gnfadminaddr)

Parameters:

v (dict) –

Return type:

dict

classmethod check_axiom_2(v)

Axiom 2: Creates Initial ASA TaDeed. The transaction must create an Algorand Standard Asset

  • Total is 1

  • UnitName is TADEED

  • Manager is GnfAdminAddr

  • AssetName has the following characteristics:
    • length <= 32 characters

    • LeftRightDot format

    • final word is ‘.ta’

[More info](https://gridworks.readthedocs.io/en/latest/ta-deed.html#asa-tadeed-specs)

Parameters:

v (dict) –

Return type:

dict

classmethod check_axiom_3(v)

Axiom 3: Mtx signed by TaValidator.

Parameters:

v (dict) –

Return type:

dict

ValidatorAddr:
  • Description: Address of the TaValidator. The Algorand address of the TaValidator who is going to validate the location, device type, and power metering of the TerminalAsset.

  • Format: AlgoAddressStringFormat

HalfSignedDeedCreationMtx:
  • Description: Algo mulit-transaction for TaDeed creation

  • Format: AlgoMsgPackEncoded

class gwatn.types.initial_tadeed_algo_create.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 gwatn.types.initial_tadeed_algo_create.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.InitialTadeedAlgoCreate_Maker(validator_addr, half_signed_deed_creation_mtx)
Parameters:
  • validator_addr (str) –

  • half_signed_deed_creation_mtx (str) –

classmethod tuple_to_type(tuple)

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

Parameters:

tuple (InitialTadeedAlgoCreate) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

InitialTadeedAlgoCreate