plutus-ledger-api-0.1.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellNone
LanguageHaskell2010

Plutus.V1.Ledger.Address

Synopsis

Documentation

data Address Source #

Address with two kinds of credentials, normal and staking.

Instances

Instances details
Eq Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Ord Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Show Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Generic Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Associated Types

type Rep Address :: Type -> Type Source #

Hashable Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

ToJSON Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

ToJSONKey Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

FromJSON Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

FromJSONKey Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

NFData Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

rnf :: Address -> () Source #

Pretty Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

pretty :: Address -> Doc ann Source #

prettyList :: [Address] -> Doc ann Source #

ToData Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

FromData Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

UnsafeFromData Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Eq Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

(==) :: Address -> Address -> Bool Source #

Serialise Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Lift DefaultUni Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

Typeable DefaultUni Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address Source # 
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address = D1 ('MetaData "Address" "Plutus.V1.Ledger.Address" "plutus-ledger-api-0.1.0.0-6XBf4FRRdNK1B20rg7kZGy" 'False) (C1 ('MetaCons "Address" 'PrefixI 'True) (S1 ('MetaSel ('Just "addressCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Just "addressStakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe StakingCredential))))

pubKeyHashAddress :: PubKeyHash -> Address Source #

The address that should be targeted by a transaction output locked by the public key with the given hash.

scriptHashAddress :: ValidatorHash -> Address Source #

The address that should be used by a transaction output locked by the given validator script hash.

toPubKeyHash :: Address -> Maybe PubKeyHash Source #

The PubKeyHash of the address, if any

toValidatorHash :: Address -> Maybe ValidatorHash Source #

The validator hash of the address, if any

stakingCredential :: Address -> Maybe StakingCredential Source #

The staking credential of an address (if any)