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.Primitives

Description

Polkadot primitive data types.

Synopsis

Documentation

type Balance = Word128 Source #

The user account balance, u128 type.

type BlockNumber = Word32 Source #

Block numbers is up to 2^32.

type Moment = Word64 Source #

Time moment is 64bit.

type Index = Word32 Source #

Transaction nonce value.

type AccountIndex = Word32 Source #

The type for looking up accounts. We don't expect more than 4 billion of them.

type AccountId = H256 Source #

The user account identifier type for the runtime.

type Hash = H256 Source #

The type for runtime hashes.

data AccountData Source #

Account balances.

Instances

Instances details
Generic AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Rep AccountData :: Type -> Type #

Show AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Generic AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Code AccountData :: [[Type]] #

Eq AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Ord AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Decode AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

Methods

get :: Get AccountData #

Encode AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep AccountData = D1 ('MetaData "AccountData" "Network.Polkadot.Primitives" "web3-polkadot-1.0.1.0-FYtcHWVQXW93OfvqrvLkeh" 'False) (C1 ('MetaCons "AccountData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "balanceFree") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Balance) :*: S1 ('MetaSel ('Just "balanceReserved") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Balance)) :*: (S1 ('MetaSel ('Just "miscFrozen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Balance) :*: S1 ('MetaSel ('Just "feeFrozen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Balance))))
type Code AccountData Source # 
Instance details

Defined in Network.Polkadot.Primitives

data AccountInfo Source #

General account information.

Instances

Instances details
Generic AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Rep AccountInfo :: Type -> Type #

Show AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Generic AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Code AccountInfo :: [[Type]] #

Eq AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Ord AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Decode AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

Methods

get :: Get AccountInfo #

Encode AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep AccountInfo = D1 ('MetaData "AccountInfo" "Network.Polkadot.Primitives" "web3-polkadot-1.0.1.0-FYtcHWVQXW93OfvqrvLkeh" 'False) (C1 ('MetaCons "AccountInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountNonce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Index) :*: S1 ('MetaSel ('Just "accountConsumers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "accountProviders") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "accountSufficients") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "accountData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AccountData)))))
type Code AccountInfo Source # 
Instance details

Defined in Network.Polkadot.Primitives

data MultiSignature Source #

Multiple signatures support type.

Instances

Instances details
Generic MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Rep MultiSignature :: Type -> Type #

Show MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Generic MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Code MultiSignature :: [[Type]] #

Eq MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Ord MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Decode MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

Encode MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep MultiSignature = D1 ('MetaData "MultiSignature" "Network.Polkadot.Primitives" "web3-polkadot-1.0.1.0-FYtcHWVQXW93OfvqrvLkeh" 'False) (C1 ('MetaCons "Ed25519Signature" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 H512)) :+: (C1 ('MetaCons "Sr25519Signature" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 H512)) :+: C1 ('MetaCons "EcdsaSignature" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 H512) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8))))
type Code MultiSignature Source # 
Instance details

Defined in Network.Polkadot.Primitives

data MultiSigner Source #

Cryptographic key for any known crypto algorithm.

Constructors

Sr25519Signer

sr25519 crypto has no support yet

Ed25519Signer !H256

Ed25519 public key.

EcdsaSigner !Word8 !H256

ECDSA public key.

Instances

Instances details
Generic MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Rep MultiSigner :: Type -> Type #

Show MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Account

Generic MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Code MultiSigner :: [[Type]] #

Eq MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

Ord MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

Decode MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

Methods

get :: Get MultiSigner #

Encode MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

IdentifyAccount MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Account

Associated Types

type AccountId MultiSigner Source #

type Rep MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep MultiSigner = D1 ('MetaData "MultiSigner" "Network.Polkadot.Primitives" "web3-polkadot-1.0.1.0-FYtcHWVQXW93OfvqrvLkeh" 'False) (C1 ('MetaCons "Sr25519Signer" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Ed25519Signer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 H256)) :+: C1 ('MetaCons "EcdsaSigner" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 H256))))
type Code MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Primitives

type AccountId MultiSigner Source # 
Instance details

Defined in Network.Polkadot.Account

data MultiAddress Source #

A multi-format address wrapper for on-chain accounts.

Constructors

MaId !AccountId

It's an account ID (pubkey).

MaIndex !(Compact AccountIndex)

It's an account index.

MaRaw !HexString

It's some arbitrary raw bytes.

MaAddress32 !H256

It's a 32 byte representation.

MaAddress20 !H160

Its a 20 byte representation.

Instances

Instances details
Generic MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Rep MultiAddress :: Type -> Type #

Show MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Generic MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Associated Types

type Code MultiAddress :: [[Type]] #

Eq MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Ord MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Decode MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

Methods

get :: Get MultiAddress #

Encode MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Rep MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives

type Code MultiAddress Source # 
Instance details

Defined in Network.Polkadot.Primitives