class AutonomousSystemToCountry(metaclass=Link): name = Utils.make_link_name(AutonomousSystem, Country) Value = Attributes.System.Value Begin = AutonomousSystem End = Country
class NamecoinTXidToAddress(metaclass=Link): name = Utils.make_link_name(NamecoinTXid, NamecoinAddress) DateTime = Attributes.System.Datetime Value = Attribute("Coins(Value)", ValueType.Float) Domain = Attributes.System.Domain Operation = Attributes.System.Description CaptionAttrs = [Value, Domain, Operation, DateTime] Begin = NamecoinTXid End = NamecoinAddress
class NamecoinAddress(metaclass=Object): name = "Namecoin address" namecoint_address = Attribute("Namecoin address", ValueType.String) namecoint_address_short = Attribute("Namecoin address (short)", ValueType.String) IdentAttrs = [namecoint_address] CaptionAttrs = [namecoint_address_short] # some changes if exists_file(r"images\namecoin.png"): Image = Utils.base64string(r"images\namecoin.png") else: try: Image = requests.get(f"http://{SERVER_RESOURCE}/objects/ico/{namecoin_icon}", timeout=3).text except: pass
class NamecoinTXid(metaclass=Object): name = "Namecoin transaction" txid = Attribute("Transaction id", ValueType.String) txid_short = Attribute("Transaction id (short)", ValueType.String) IdentAttrs = [txid] CaptionAttrs = [txid_short] # some changes if exists_file(r"images\TX.png"): Image = Utils.base64string(r"images\TX.png") else: try: Image = requests.get(f"http://{SERVER_RESOURCE}/objects/ico/{tx_icon}", timeout=3).text except: pass
class NamecoinAddressToDomain(metaclass=Link): name = Utils.make_link_name(NamecoinAddress, Domain) DateTime = Attributes.System.Datetime CaptionAttrs = [DateTime] Begin = NamecoinAddress End = Domain
class NamecoinTXidToIP(metaclass=Link): name = Utils.make_link_name(NamecoinTXid, IP) DateTime = Attributes.System.Datetime CaptionAttrs = [DateTime] Begin = NamecoinTXid End = IP