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.
AddressTransactions
¶ -
token
:Optional[str]¶
-
transactions
:Optional[List[Transaction]]¶
-
-
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.
CeremonyIntervals
¶ -
FlipLotteryDuration
:float¶
-
LongSessionDuration
:float¶
-
ShortSessionDuration
:float¶
-
-
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.
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.
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.
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.
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.
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¶
-