plutus-ledger-api
Safe HaskellNone
LanguageHaskell2010

PlutusLedgerApi.V4.Data.Address

Description

Addresses and account identifiers for Plutus V4.

In Plutus V1-V3 an Address pairs a payment credential with an optional staking credential. In V4 staking credentials no longer exist: the funds locked by an address are staked via an account, identified by an AccountId.

Synopsis

Documentation

newtype AccountId Source #

Constructors

AccountId Credential 

Instances

Instances details
Generic AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Associated Types

type Rep AccountId 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

type Rep AccountId = D1 ('MetaData "AccountId" "PlutusLedgerApi.V4.Data.Address" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'True) (C1 ('MetaCons "AccountId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))
Show AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Eq AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Eq AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

(==) :: AccountId -> AccountId -> Bool

FromData AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

ToData AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

UnsafeFromData AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Pretty AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

pretty :: AccountId -> Doc ann

prettyList :: [AccountId] -> Doc ann

Lift DefaultUni AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

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

Typeable DefaultUni AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

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

type Rep AccountId Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

type Rep AccountId = D1 ('MetaData "AccountId" "PlutusLedgerApi.V4.Data.Address" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'True) (C1 ('MetaCons "AccountId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))

data Address Source #

An address may contain two things: the payment credential, and optionally the AccountId of the account the funds are staked to.

Instances

Instances details
Generic Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Associated Types

type Rep Address 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

type Rep Address = D1 ('MetaData "Address" "PlutusLedgerApi.V4.Data.Address" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'True) (C1 ('MetaCons "Address_6989586621680379437" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))
Show Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Eq Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Ord Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Eq Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

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

FromData Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

ToData Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

UnsafeFromData Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Pretty Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

pretty :: Address -> Doc ann

prettyList :: [Address] -> Doc ann

Lift DefaultUni Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

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

Typeable DefaultUni Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

Methods

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

type Rep Address Source # 
Instance details

Defined in PlutusLedgerApi.V4.Data.Address

type Rep Address = D1 ('MetaData "Address" "PlutusLedgerApi.V4.Data.Address" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'True) (C1 ('MetaCons "Address_6989586621680379437" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

pubKeyHashAddress :: PubKeyHash -> Address Source #

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

toPubKeyHash :: Address -> Maybe PubKeyHash Source #

The PubKeyHash of the address, if any

toScriptHash :: Address -> Maybe ScriptHash Source #

The validator hash of the address, if any

scriptHashAddress :: ScriptHash -> Address Source #

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

stakingAccountId :: Address -> Maybe AccountId Source #

The account the funds locked by an address are staked to (if any)