plutus-ledger-1.2.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Address

Synopsis

Documentation

data Address #

Instances

Instances details
Eq Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Ord Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Show Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Generic Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Associated Types

type Rep Address :: Type -> Type Source #

NFData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

rnf :: Address -> () Source #

Serialise Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

encode :: Address -> Encoding

decode :: Decoder s Address

encodeList :: [Address] -> Encoding

decodeList :: Decoder s [Address]

FromJSON Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

parseJSON :: Value -> Parser Address

parseJSONList :: Value -> Parser [Address]

ToJSON Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

toJSON :: Address -> Value

toEncoding :: Address -> Encoding

toJSONList :: [Address] -> Value

toEncodingList :: [Address] -> Encoding

Eq Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

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

Pretty Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

pretty :: Address -> Doc ann #

prettyList :: [Address] -> Doc ann #

FromData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe Address

ToData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

toBuiltinData :: Address -> BuiltinData

UnsafeFromData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> Address

Lift DefaultUni Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

lift :: Address -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

typeRep :: Proxy Address -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Address 
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address = D1 ('MetaData "Address" "Plutus.V1.Ledger.Address" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" '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))))

type CardanoAddress = AddressInEra BabbageEra Source #

newtype PaymentPrivateKey Source #

Constructors

PaymentPrivateKey 

Fields

newtype PaymentPubKey Source #

Constructors

PaymentPubKey 

Instances

Instances details
Eq PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Show PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Generic PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep PaymentPubKey :: Type -> Type Source #

Serialise PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: PaymentPubKey -> Encoding

decode :: Decoder s PaymentPubKey

encodeList :: [PaymentPubKey] -> Encoding

decodeList :: Decoder s [PaymentPubKey]

FromJSON PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser PaymentPubKey

parseJSONList :: Value -> Parser [PaymentPubKey]

FromJSONKey PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction PaymentPubKey

fromJSONKeyList :: FromJSONKeyFunction [PaymentPubKey]

ToJSON PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: PaymentPubKey -> Value

toEncoding :: PaymentPubKey -> Encoding

toJSONList :: [PaymentPubKey] -> Value

toEncodingList :: [PaymentPubKey] -> Encoding

ToJSONKey PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction PaymentPubKey

toJSONKeyList :: ToJSONKeyFunction [PaymentPubKey]

Eq PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Pretty PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: PaymentPubKey -> Doc ann #

prettyList :: [PaymentPubKey] -> Doc ann #

FromData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe PaymentPubKey

ToData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: PaymentPubKey -> BuiltinData

UnsafeFromData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> PaymentPubKey

Lift DefaultUni PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: PaymentPubKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy PaymentPubKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

type Rep PaymentPubKey = D1 ('MetaData "PaymentPubKey" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PaymentPubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPaymentPubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKey)))

newtype PaymentPubKeyHash Source #

Instances

Instances details
Eq PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Show PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Generic PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep PaymentPubKeyHash :: Type -> Type Source #

Serialise PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: PaymentPubKeyHash -> Encoding

decode :: Decoder s PaymentPubKeyHash

encodeList :: [PaymentPubKeyHash] -> Encoding

decodeList :: Decoder s [PaymentPubKeyHash]

Hashable PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

FromJSON PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser PaymentPubKeyHash

parseJSONList :: Value -> Parser [PaymentPubKeyHash]

FromJSONKey PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction PaymentPubKeyHash

fromJSONKeyList :: FromJSONKeyFunction [PaymentPubKeyHash]

ToJSON PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

ToJSONKey PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction PaymentPubKeyHash

toJSONKeyList :: ToJSONKeyFunction [PaymentPubKeyHash]

Eq PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Pretty PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: PaymentPubKeyHash -> Doc ann #

prettyList :: [PaymentPubKeyHash] -> Doc ann #

FromData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe PaymentPubKeyHash

ToData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: PaymentPubKeyHash -> BuiltinData

UnsafeFromData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> PaymentPubKeyHash

Lift DefaultUni PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: PaymentPubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy PaymentPubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

type Rep PaymentPubKeyHash = D1 ('MetaData "PaymentPubKeyHash" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PaymentPubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPaymentPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))

newtype StakePubKey Source #

Constructors

StakePubKey 

Instances

Instances details
Eq StakePubKey Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKey Source # 
Instance details

Defined in Ledger.Address

Show StakePubKey Source # 
Instance details

Defined in Ledger.Address

Generic StakePubKey Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep StakePubKey :: Type -> Type Source #

Serialise StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: StakePubKey -> Encoding

decode :: Decoder s StakePubKey

encodeList :: [StakePubKey] -> Encoding

decodeList :: Decoder s [StakePubKey]

FromJSON StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser StakePubKey

parseJSONList :: Value -> Parser [StakePubKey]

FromJSONKey StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction StakePubKey

fromJSONKeyList :: FromJSONKeyFunction [StakePubKey]

ToJSON StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: StakePubKey -> Value

toEncoding :: StakePubKey -> Encoding

toJSONList :: [StakePubKey] -> Value

toEncodingList :: [StakePubKey] -> Encoding

ToJSONKey StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction StakePubKey

toJSONKeyList :: ToJSONKeyFunction [StakePubKey]

Eq StakePubKey Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKey Source # 
Instance details

Defined in Ledger.Address

Pretty StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: StakePubKey -> Doc ann #

prettyList :: [StakePubKey] -> Doc ann #

FromData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe StakePubKey

ToData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: StakePubKey -> BuiltinData

UnsafeFromData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> StakePubKey

Lift DefaultUni StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: StakePubKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy StakePubKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakePubKey Source # 
Instance details

Defined in Ledger.Address

type Rep StakePubKey = D1 ('MetaData "StakePubKey" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "StakePubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStakePubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKey)))

newtype StakePubKeyHash Source #

Instances

Instances details
Eq StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Show StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Generic StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep StakePubKeyHash :: Type -> Type Source #

Serialise StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: StakePubKeyHash -> Encoding

decode :: Decoder s StakePubKeyHash

encodeList :: [StakePubKeyHash] -> Encoding

decodeList :: Decoder s [StakePubKeyHash]

Hashable StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

FromJSON StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser StakePubKeyHash

parseJSONList :: Value -> Parser [StakePubKeyHash]

FromJSONKey StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction StakePubKeyHash

fromJSONKeyList :: FromJSONKeyFunction [StakePubKeyHash]

ToJSON StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: StakePubKeyHash -> Value

toEncoding :: StakePubKeyHash -> Encoding

toJSONList :: [StakePubKeyHash] -> Value

toEncodingList :: [StakePubKeyHash] -> Encoding

ToJSONKey StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction StakePubKeyHash

toJSONKeyList :: ToJSONKeyFunction [StakePubKeyHash]

Eq StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Pretty StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: StakePubKeyHash -> Doc ann #

prettyList :: [StakePubKeyHash] -> Doc ann #

FromData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe StakePubKeyHash

ToData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: StakePubKeyHash -> BuiltinData

UnsafeFromData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> StakePubKeyHash

Lift DefaultUni StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: StakePubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy StakePubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

type Rep StakePubKeyHash = D1 ('MetaData "StakePubKeyHash" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "StakePubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStakePubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))

toPlutusAddress :: AddressInEra era -> Address Source #

toPlutusPubKeyHash :: Hash PaymentKey -> PubKeyHash Source #

cardanoPubKeyHash :: AddressInEra era -> Maybe PubKeyHash Source #

pubKeyHashAddress :: PaymentPubKeyHash -> Maybe StakingCredential -> Address Source #

The address that should be targeted by a transaction output locked by the given public payment key (with its staking credentials).

pubKeyAddress :: PaymentPubKey -> Maybe StakingCredential -> Address Source #

The address that should be targeted by a transaction output locked by the given public key. (with its staking credentials).

scriptValidatorHashAddress :: ValidatorHash -> Maybe StakingCredential -> Address Source #

The address that should be used by a transaction output locked by the given validator script (with its staking credentials).

mkValidatorCardanoAddress :: NetworkId -> Versioned Validator -> AddressInEra BabbageEra Source #

Cardano address of a versioned Validator script.

Orphan instances

FromJSONKey (AddressInEra BabbageEra) Source # 
Instance details

Methods

fromJSONKey :: FromJSONKeyFunction (AddressInEra BabbageEra)

fromJSONKeyList :: FromJSONKeyFunction [AddressInEra BabbageEra]

ToJSONKey (AddressInEra BabbageEra) Source # 
Instance details

Methods

toJSONKey :: ToJSONKeyFunction (AddressInEra BabbageEra)

toJSONKeyList :: ToJSONKeyFunction [AddressInEra BabbageEra]