web3-polkadot-1.0.1.0: Polkadot support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2024
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Polkadot.Extrinsic.Era

Description

An era to describe the longevity of a transaction.

Synopsis

Documentation

data Era Source #

The era for an extrinsic, indicating either a mortal or immortal extrinsic.

Constructors

ImmortalEra

The ImmortalEra for an extrinsic.

MortalEra !Word32 !Word32

The MortalEra for an extrinsic, indicating period and phase.

Period and phase are encoded: - The period of validity from the block hash found in the signing material. - The phase in the period that this transaction's lifetime begins (and, importantly, implies which block hash is included in the signature material). If the period is greater than 1 << 12, then it will be a factor of the times greater than 1 << 12 that period is.

Instances

Instances details
Show Era Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Era

Methods

showsPrec :: Int -> Era -> ShowS #

show :: Era -> String #

showList :: [Era] -> ShowS #

Eq Era Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Era

Methods

(==) :: Era -> Era -> Bool #

(/=) :: Era -> Era -> Bool #

Ord Era Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Era

Methods

compare :: Era -> Era -> Ordering #

(<) :: Era -> Era -> Bool #

(<=) :: Era -> Era -> Bool #

(>) :: Era -> Era -> Bool #

(>=) :: Era -> Era -> Bool #

max :: Era -> Era -> Era #

min :: Era -> Era -> Era #

Decode Era Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Era

Methods

get :: Get Era #

Encode Era Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Era

Methods

put :: Putter Era #

new_mortal_compact :: Word16 -> Era Source #

Create a mortal Era type from two bytes of data.

birth :: (Integral a, Integral b) => Era -> a -> b Source #

Get the block number of the start of the era whose properties this object describes that current belongs to.

death :: (Integral a, Integral b, Bounded b) => Era -> a -> b Source #

Get the block number of the first block at which the era has ended.