| 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.Extrinsic.Unchecked
Description
Extrinsic is a piece of data from external world.
Synopsis
- data UncheckedExtrinsic c a s e = UncheckedExtrinsic {
- extrinsicSignature :: !(Maybe (a, s, e))
- extrinsicFunction :: !c
- new_unsigned :: f -> UncheckedExtrinsic f a b c
- new_signed :: c -> a -> s -> e -> UncheckedExtrinsic c a s e
- sign_extrinsic :: (MultiPair a, Encode c, SignedExtension e, JsonRpc m) => a -> c -> e -> m (UncheckedExtrinsic c (MultiAddress a) (MultiSignature a) e)
Documentation
data UncheckedExtrinsic c a s e Source #
A extrinsic right from the external world. This is unchecked and so can contain a signature.
Constructors
| UncheckedExtrinsic | |
Fields
| |
Instances
| Encode c => Show (UncheckedExtrinsic c a b c) Source # | |
Defined in Network.Polkadot.Extrinsic.Unchecked Methods showsPrec :: Int -> UncheckedExtrinsic c a b c -> ShowS # show :: UncheckedExtrinsic c a b c -> String # showList :: [UncheckedExtrinsic c a b c] -> ShowS # | |
| (Decode c, Decode a, Decode s, Decode e) => Decode (UncheckedExtrinsic c a s e) Source # | |
Defined in Network.Polkadot.Extrinsic.Unchecked Methods get :: Get (UncheckedExtrinsic c a s e) # | |
| (Encode c, Encode a, Encode s, Encode e) => Encode (UncheckedExtrinsic c a s e) Source # | |
Defined in Network.Polkadot.Extrinsic.Unchecked Methods put :: Putter (UncheckedExtrinsic c a s e) # | |
new_unsigned :: f -> UncheckedExtrinsic f a b c Source #
New instance of an unsigned extrinsic aka "inherent".
new_signed :: c -> a -> s -> e -> UncheckedExtrinsic c a s e Source #
New instance of a signed extrinsic aka "transaction".
Arguments
| :: (MultiPair a, Encode c, SignedExtension e, JsonRpc m) | |
| => a | Account to sign extrinsic. |
| -> c | Function to call on runtime. |
| -> e | Additional data to sign like nonce, blockhash, etc. |
| -> m (UncheckedExtrinsic c (MultiAddress a) (MultiSignature a) e) |
Create and sign extrinsic by account.