GwCertId
Python pydantic class corresponding to json type `gw.cert.id`
.
- class gwatn.types.GwCertId(*, Type, Idx=None, Addr=None, TypeName='gw.cert.id', Version='000')
Clarifies whether cert id is an Algorand Standard Asset or SmartSig
- Parameters:
Type (AlgoCertType) –
Idx (int | None) –
Addr (str | None) –
TypeName (Literal['gw.cert.id']) –
Version (str) –
- classmethod check_axiom_1(v)
Axiom 1: Cert type consistency. If Type is ASA, then Id exists and Addr does not. Otherwise, Addr exists and Id does not.
- Parameters:
v (dict) –
- Return type:
dict
- Type:
Description:
- Idx:
Description: ASA Index
- Addr:
Description: Algorand Smart Signature Address
Format: AlgoAddressStringFormat
- class gwatn.types.GwCertId_Maker(type, idx, addr)
- Parameters:
type (AlgoCertType) –
idx (int | None) –
addr (str | None) –