gini-core-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Core.Types.Account

Description

Block definitions

Synopsis

Documentation

newtype Account #

Constructors

Account 

Fields

Instances
Eq Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

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

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

Show Account # 
Instance details

Defined in Gini.Core.Types.Account

IsString Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

fromString :: String -> Account #

Display Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

display :: Account -> Utf8Builder

textDisplay :: Account -> Text

ByteArrayAccess Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

length :: Account -> Int #

withByteArray :: Account -> (Ptr p -> IO a) -> IO a #

copyByteArrayToPtr :: Account -> Ptr p -> IO () #

Validity Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

validate :: Account -> Validation

Persist Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

put :: Account -> Put ()

get :: Get Account

PersistField Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

toPersistValue :: Account -> PersistValue

fromPersistValue :: PersistValue -> Either Text Account

PersistFieldSql Account # 
Instance details

Defined in Gini.Core.Types.Account

Methods

sqlType :: Proxy Account -> SqlType

zeroAccount :: Account #

This is known as a Burn acccount. It is a public key with all zeros in it.

newtype Representative #

Constructors

Representative 
Instances
Eq Representative # 
Instance details

Defined in Gini.Core.Types.Account

Show Representative # 
Instance details

Defined in Gini.Core.Types.Account

IsString Representative # 
Instance details

Defined in Gini.Core.Types.Account

ByteArrayAccess Representative # 
Instance details

Defined in Gini.Core.Types.Account

Validity Representative # 
Instance details

Defined in Gini.Core.Types.Account

Methods

validate :: Representative -> Validation

Persist Representative # 
Instance details

Defined in Gini.Core.Types.Account

Methods

put :: Representative -> Put ()

get :: Get Representative

PersistField Representative # 
Instance details

Defined in Gini.Core.Types.Account

Methods

toPersistValue :: Representative -> PersistValue

fromPersistValue :: PersistValue -> Either Text Representative

PersistFieldSql Representative # 
Instance details

Defined in Gini.Core.Types.Account

Methods

sqlType :: Proxy Representative -> SqlType

newtype AccountAddress #

Public key of an account

Instances
Eq AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

Show AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

IsString AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

Generic AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

Associated Types

type Rep AccountAddress :: * -> * #

Display AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

Methods

display :: AccountAddress -> Utf8Builder

textDisplay :: AccountAddress -> Text

Validity AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

Methods

validate :: AccountAddress -> Validation

type Rep AccountAddress # 
Instance details

Defined in Gini.Core.Types.Account

type Rep AccountAddress = D1 (MetaData "AccountAddress" "Gini.Core.Types.Account" "gini-core-0.1.0.0-CYC9q60CJ5rDf5hHcbgY0V" True) (C1 (MetaCons "AccountAddress" PrefixI True) (S1 (MetaSel (Just "unAccountAddress") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ShortByteString)))

toAccountAddress :: Account -> AccountAddress #

Construct an account address from a public key