plutus-ledger-1.2.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.CardanoWallet

Synopsis

Documentation

data MockWallet Source #

Emulated wallet with a key and a passphrase

Constructors

MockWallet 

Fields

Instances

Instances details
Show MockWallet Source # 
Instance details

Defined in Ledger.CardanoWallet

Enumerating wallets

newtype WalletNumber Source #

Wrapper for config files and APIs

Constructors

WalletNumber 

Fields

Instances

Instances details
Enum WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Eq WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Integral WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Num WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Ord WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Real WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Show WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Generic WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Associated Types

type Rep WalletNumber :: Type -> Type Source #

FromJSON WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Methods

parseJSON :: Value -> Parser WalletNumber

parseJSONList :: Value -> Parser [WalletNumber]

ToJSON WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Methods

toJSON :: WalletNumber -> Value

toEncoding :: WalletNumber -> Encoding

toJSONList :: [WalletNumber] -> Value

toEncodingList :: [WalletNumber] -> Encoding

FromHttpApiData WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Methods

parseUrlPiece :: Text -> Either Text WalletNumber

parseHeader :: ByteString -> Either Text WalletNumber

parseQueryParam :: Text -> Either Text WalletNumber

ToHttpApiData WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Methods

toUrlPiece :: WalletNumber -> Text

toEncodedUrlPiece :: WalletNumber -> Builder

toHeader :: WalletNumber -> ByteString

toQueryParam :: WalletNumber -> Text

type Rep WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

type Rep WalletNumber = D1 ('MetaData "WalletNumber" "Ledger.CardanoWallet" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "WalletNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWallet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

knownMockWallets :: [MockWallet] Source #

The wallets used in mockchain simulations by default. There are ten wallets by default.

knownMockWallet :: Integer -> MockWallet Source #

Get a known wallet from an Integer indexed from 1 to 10.

fromSeed :: ByteString -> Passphrase -> MockWallet Source #

fromSeed' :: ByteString -> MockWallet Source #

Keys

mockWalletAddress :: MockWallet -> CardanoAddress Source #

A mock cardano address for the testnet network.

paymentPrivateKey :: MockWallet -> PaymentPrivateKey Source #

Mock wallet's private key

paymentPubKeyHash :: MockWallet -> PaymentPubKeyHash Source #

The mock wallet's public key hash

paymentPubKey :: MockWallet -> PaymentPubKey Source #

The mock wallet's payment public key

stakingCredential :: MockWallet -> Maybe StakingCredential Source #

The mock wallet's staking credentials

stakePubKeyHash :: MockWallet -> Maybe StakePubKeyHash Source #

The mock wallet's stake public key hash

stakePubKey :: MockWallet -> Maybe StakePubKey Source #

The mock wallet's stake public key