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

Description

 
Synopsis

Documentation

data Call a Source #

Call function of module using standard substrate extrionsic.

Constructors

Call !Word8 !Word8 !a 

Instances

Instances details
Generic (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Associated Types

type Rep (Call a) :: Type -> Type #

Methods

from :: Call a -> Rep (Call a) x #

to :: Rep (Call a) x -> Call a #

Show a => Show (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Methods

showsPrec :: Int -> Call a -> ShowS #

show :: Call a -> String #

showList :: [Call a] -> ShowS #

Generic (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Associated Types

type Code (Call a) :: [[Type]] #

Methods

from :: Call a -> Rep (Call a) #

to :: Rep (Call a) -> Call a #

Eq a => Eq (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Methods

(==) :: Call a -> Call a -> Bool #

(/=) :: Call a -> Call a -> Bool #

Decode a => Decode (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Methods

get :: Get (Call a) #

Encode a => Encode (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

Methods

put :: Putter (Call a) #

type Rep (Call a) Source # 
Instance details

Defined in Network.Polkadot.Call

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

Defined in Network.Polkadot.Call

type Code (Call a) = GCode (Call a)

new_call Source #

Arguments

:: (Encode a, Decode a, JsonRpc m, MonadFail m) 
=> Text

Module name.

-> Text

Function name.

-> a

Tuple of arguments.

-> m (Call a) 

Create Call type from text-encoded module and function.