InitialTadeedAlgoOptin
Python pydantic class corresponding to json type `initial.tadeed.algo.optin`
.
- class gwatn.types.InitialTadeedAlgoOptin(*, TerminalAssetAlias, TaOwnerAddr, ValidatorAddr, SignedInitialDaemonFundingTxn, TypeName='initial.tadeed.algo.optin', Version='002')
Received by TaDaemon so that it can opt into intial TaDeed.
The TaDaemon must opt into the TaDeed before receiving it. This message prompts that action.
- Parameters:
TerminalAssetAlias (str) –
TaOwnerAddr (str) –
ValidatorAddr (str) –
SignedInitialDaemonFundingTxn (str) –
TypeName (Literal['initial.tadeed.algo.optin']) –
Version (str) –
- classmethod check_axiom_1(v)
Axiom 1: Is correct Multisig. Decoded SignedInitialDaemonFundingTxn must be a SignedTransaction signed by TaOwnerAddr.
- Parameters:
v (dict) –
- Return type:
dict
- classmethod check_axiom_2(v)
Axiom 2: TaDeed consistency. There is an ASA TaDeed created by and owned by the 2-sig MultiAccount [GnfAdminAddr, ValidatorAddr], where the TaDeed’s AssetName is equal to the payload’s TerminalAssetAlias.
- Parameters:
v (dict) –
- Return type:
dict
- TerminalAssetAlias:
Description: The GNodeAlias of the TerminalAsset
Format: LeftRightDot
- TaOwnerAddr:
Description: The Algorand address of the owner for the TerminalAsset
Format: AlgoAddressStringFormat
- ValidatorAddr:
Description: Address of the TaValidator. The Algorand address of the TaValidator who has validated the location, device type, and power metering of the TerminalAsset.
Format: AlgoAddressStringFormat
- SignedInitialDaemonFundingTxn:
Description: . Funding transaction for the TaDaemon account, signed by the TaOwner.
Format: AlgoMsgPackEncoded
- class gwatn.types.initial_tadeed_algo_optin.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.initial_tadeed_algo_optin.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_optin.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.InitialTadeedAlgoOptin_Maker(terminal_asset_alias, ta_owner_addr, validator_addr, signed_initial_daemon_funding_txn)
- Parameters:
terminal_asset_alias (str) –
ta_owner_addr (str) –
validator_addr (str) –
signed_initial_daemon_funding_txn (str) –
- classmethod tuple_to_type(tuple)
Given a Python class object, returns the serialized JSON type object
- Parameters:
tuple (InitialTadeedAlgoOptin) –
- Return type:
str
- classmethod type_to_tuple(t)
Given a serialized JSON type object, returns the Python class object
- Parameters:
t (str) –
- Return type: