idena.types

Module Contents

Classes

ActivateInviteToRandomAddr
AddressTransactions
Answer
Balance
BaseTxArgs
Block
BurntCoins
CeremonyIntervals
ChangeProfile
ContractTxReceipt
DynamicArg Typed version of namedtuple.
Epoch
Flip
FlipAnswer Typed version of namedtuple.
FlipAnswers Typed version of namedtuple.
FlipHashes
FlipWords
Grade
Identity
Invite
Peer Typed version of namedtuple.
Profile
RawFlip
SendTxArgs
Stake Typed version of namedtuple.
State
Sync
Transaction
TxAddr
TxEvent
TxReceipt
TxType
idena.types.FlipSubmit
class idena.types.ActivateInviteToRandomAddr
address :str
hash :str
key :str
class idena.types.AddressTransactions
token :Optional[str]
transactions :Optional[List[Transaction]]
class idena.types.Answer
left = 1
none = 0
right = 2
class idena.types.Balance
balance :decimal.Decimal
nonce :int
stake :decimal.Decimal
class idena.types.BaseTxArgs
epoch :int
nonce :int
class idena.types.Block
coinbase :str
flags :List[str]
hash :str
height :int
identityRoot :str
ipfsCid :str
isEmpty :bool
offlineAddress :str
parentHash :str
root :str
timestamp :int
transactions :List[str]
class idena.types.BurntCoins
address :str
amount :decimal.Decimal
key :str
class idena.types.CeremonyIntervals
FlipLotteryDuration :float
LongSessionDuration :float
ShortSessionDuration :float
class idena.types.ChangeProfile
hash :str
txHash :str
class idena.types.ContractTxReceipt
contract :str
error :str
gasCost :decimal.Decimal
gasUsed :int
success :bool
txFee :decimal.Decimal
txHash :str
class idena.types.DynamicArg

Bases: typing.NamedTuple

Typed version of namedtuple.

Usage in Python versions >= 3.6:

class Employee(NamedTuple):
    name: str
    id: int

This is equivalent to:

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:

Employee = NamedTuple('Employee', name=str, id=int)

In Python versions <= 3.5 use:

Employee = NamedTuple('Employee', [('name', str), ('id', int)])
format :str
index :int
value :str
class idena.types.Epoch
currentPeriod :str
currentValidationStart :datetime
epoch :int
nextValidation :datetime
class idena.types.Flip
hex :str
privateHex :str
class idena.types.FlipAnswer

Bases: typing.NamedTuple

Typed version of namedtuple.

Usage in Python versions >= 3.6:

class Employee(NamedTuple):
    name: str
    id: int

This is equivalent to:

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:

Employee = NamedTuple('Employee', name=str, id=int)

In Python versions <= 3.5 use:

Employee = NamedTuple('Employee', [('name', str), ('id', int)])
answer :Answer
grade :Grade
hash :str
wrongWords :List[bool]
class idena.types.FlipAnswers

Bases: typing.NamedTuple

Typed version of namedtuple.

Usage in Python versions >= 3.6:

class Employee(NamedTuple):
    name: str
    id: int

This is equivalent to:

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:

Employee = NamedTuple('Employee', name=str, id=int)

In Python versions <= 3.5 use:

Employee = NamedTuple('Employee', [('name', str), ('id', int)])
answers :List[FlipAnswer]
class idena.types.FlipHashes
available :bool
extra :bool
hash :str
ready :bool
class idena.types.FlipWords
id :int
used :bool
words :List[int]
class idena.types.Grade
gradeA = 5
gradeB = 4
gradeC = 3
gradeD = 2
gradeNone = 0
gradeReported = 1
class idena.types.Identity
address :str
age :int
availableFlips :int
code :bytes
flipKeyWordPairs :Optional[List[FlipWords]]
flips :Optional[List[str]]
generation :int
invitees :Optional[List[TxAddr]]
invites :int
lastValidationFlags :Optional[List[str]]
madeFlips :int
online :bool
penalty :decimal.Decimal
profileHash :str
pubkey :str
requiredFlips :int
stake :decimal.Decimal
state :str
totalQualifiedFlips :int
totalShortFlipPoints :float
class idena.types.Invite
hash :str
key :str
receiver :str
class idena.types.Peer

Bases: typing.NamedTuple

Typed version of namedtuple.

Usage in Python versions >= 3.6:

class Employee(NamedTuple):
    name: str
    id: int

This is equivalent to:

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:

Employee = NamedTuple('Employee', name=str, id=int)

In Python versions <= 3.5 use:

Employee = NamedTuple('Employee', [('name', str), ('id', int)])
addr :str
id :str
class idena.types.Profile
info :bytes
nickname :str
class idena.types.RawFlip
privateHex :str
publicHex :str
class idena.types.SendTxArgs

Bases: idena.types.BaseTxArgs

amount :decimal.Decimal
from_ :str
maxFee :decimal.Decimal
payload :str
tips :decimal.Decimal
to :str
type :TxType
useProto :bool
class idena.types.Stake

Bases: typing.NamedTuple

Typed version of namedtuple.

Usage in Python versions >= 3.6:

class Employee(NamedTuple):
    name: str
    id: int

This is equivalent to:

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:

Employee = NamedTuple('Employee', name=str, id=int)

In Python versions <= 3.5 use:

Employee = NamedTuple('Employee', [('name', str), ('id', int)])
Hash :str
Stake :decimal.Decimal
class idena.types.State
name :str
class idena.types.Sync
currentBlock :int
genesisBlock :int
highestBlock :int
syncing :bool
wrongTime :bool
class idena.types.Transaction
amount :str
blockHash :str
epoch :int
from_ :str
hash :str
maxFee :str
nonce :int
payload :str
timestamp :int
tips :str
to :Optional[str]
type :str
usedFee :str
class idena.types.TxAddr
Address :str
TxHash :str
class idena.types.TxEvent
data :List[bytes]
eventName :str
class idena.types.TxReceipt
contractAddress :str
error :str
events :List[TxEvent]
from_ :str
gasCost :int
gasUsed :int
success :bool
txHash :str
class idena.types.TxType
ActivationTx = 1
BurnTx = 12
ChangeGodAddressTx = 11
ChangeProfileTx = 13
EvidenceTx = 8
InviteTx = 2
KillInviteeTx = 10
KillTx = 3
OnlineStatusTx = 9
SendTx = 0
SubmitAnswersHashTx = 5
SubmitFlipTx = 4
SubmitLongAnswersTx = 7
SubmitShortAnswersTx = 6