ag.orbit.ops package

class ag.orbit.ops.Abstract[source]

Bases: abc.ABC

Abstract base class for all ORBIT operations.

This class defines some methods that subclasses are required to implement. It also makes available a number of useful helper methods.

ENCODING = 'utf-8'
ENDIAN = 'big'
SEPARATOR = b'\xff'
admin()[source]
classmethod deserialize_address(data)[source]
classmethod has_unicode_type(text, types)[source]
classmethod is_safe_ascii(text)[source]
classmethod is_safe_unicode(text, forbidden_types)[source]
classmethod is_src_uri(text)[source]
classmethod parse(data)[source]
prepare()[source]
classmethod read_text(data, encoding=None)[source]
classmethod serialize_address(address)[source]
src_uri_validator_1 = <rfc3986.validators.Validator object>
src_uri_validator_2 = <rfc3986.validators.Validator object>
classmethod to_string(indent=None, **kwargs)[source]
validate()[source]
classmethod validate_address(name, address)[source]
classmethod validate_range(name, value, minval, maxval, optional=False)[source]
classmethod validate_range_bytesize(name, value, size, optional=False, allow_zero=True, signed=False)[source]

Submodules

ag.orbit.ops.advertisement module

class ag.orbit.ops.advertisement.Advertise(exchange_rate=None, units_avail=None, units_min=None, units_max=None, block_begin=None, block_end=None, block_deliver=None, preregister=False)[source]

Bases: ag.orbit.ops.Abstract

BYTES_BLOCK = 4
BYTES_EXCHANGE = 8
BYTES_UNITS = 8
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]
class ag.orbit.ops.advertisement.Cancel(txhash)[source]

Bases: ag.orbit.ops.Abstract

BYTES_HASH_SIZE = 1
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]
class ag.orbit.ops.advertisement.Register(units_max=None)[source]

Bases: ag.orbit.ops.Abstract

BYTES_UNITS = 8
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]
class ag.orbit.ops.advertisement.Unregister[source]

Bases: ag.orbit.ops.Abstract

BYTES_UNITS = 8
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]

ag.orbit.ops.allocation module

class ag.orbit.ops.allocation.Create(supply, decimals, symbol, name=None, main_uri=None, image_uri=None)[source]

Bases: ag.orbit.ops.Abstract

BYTES_DECIMALS = 1
BYTES_SUPPLY = 8
CHARS_MAX_SYMBOL = 7
INVALID_TYPES_NAME = ['Zl', 'Zp', 'C']
INVALID_TYPES_SYMBOL = ['Mc', 'P', 'Z', 'C']
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]
class ag.orbit.ops.allocation.Transfer(to, units=None)[source]

Bases: ag.orbit.ops.Abstract

BYTES_UNITS = 8
admin()[source]
classmethod parse(data)[source]
prepare()[source]
validate()[source]