Copyright | Aleksandr Krupenkin 2016-2024 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Network.Polkadot.Primitives
Description
Polkadot primitive data types.
Synopsis
- type Balance = Word128
- type BlockNumber = Word32
- type Moment = Word64
- type Index = Word32
- type AccountIndex = Word32
- type AccountId = H256
- type Hash = H256
- data AccountData = AccountData {
- balanceFree :: !Balance
- balanceReserved :: !Balance
- miscFrozen :: !Balance
- feeFrozen :: !Balance
- data AccountInfo = AccountInfo {}
- data MultiSignature
- data MultiSigner
- data MultiAddress
- = MaId !AccountId
- | MaIndex !(Compact AccountIndex)
- | MaRaw !HexString
- | MaAddress32 !H256
- | MaAddress20 !H160
Documentation
type BlockNumber = Word32 Source #
Block numbers is up to 2^32.
type AccountIndex = Word32 Source #
The type for looking up accounts. We don't expect more than 4 billion of them.
data AccountData Source #
Account balances.
Constructors
AccountData | |
Fields
|
Instances
data AccountInfo Source #
General account information.
Constructors
AccountInfo | |
Fields
|
Instances
data MultiSignature Source #
Multiple signatures support type.
Constructors
Ed25519Signature !H512 | |
Sr25519Signature !H512 | |
EcdsaSignature !H512 !Word8 |
Instances
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
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. |