Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module to define types for "Addresses" category of endpoints defined at docs.gomaestro.org.
Synopsis
- type AddressToDecode = "Bech32/Hex/Base58 encoded address"
- data NetworkId
- data PaymentCredKind
- data PaymentCredential = PaymentCredential {}
- data StakingCredKind
- newtype CertIndex = CertIndex Natural
- data ChainPointer = ChainPointer {}
- data StakingCredential = StakingCredential {
- stakingCredentialBech32 ∷ !(Maybe (Bech32StringOf StakingCredentialAddress))
- stakingCredentialHex ∷ !(Maybe (HexStringOf StakingCredentialAddress))
- stakingCredentialKind ∷ !StakingCredKind
- stakingCredentialPointer ∷ !(Maybe ChainPointer)
- stakingCredentialRewardAddress ∷ !(Maybe (Bech32StringOf RewardAddress))
- data AddressInfo = AddressInfo {}
- data OutputReferenceObject = OutputReferenceObject {}
- data PaginatedOutputReferenceObject = PaginatedOutputReferenceObject {}
- data AddressTransaction = AddressTransaction {}
- data PaginatedAddressTransaction = PaginatedAddressTransaction {}
- data PaymentCredentialTransaction = PaymentCredentialTransaction {}
- data PaginatedPaymentCredentialTransaction = PaginatedPaymentCredentialTransaction {}
Documentation
type AddressToDecode = "Bech32/Hex/Base58 encoded address" #
Address to decode. Given address should be in either Bech32 or Hex or Base58 format. Base58 is for Byron addresses whereas others use Bech32.
Denotes network for the entity in question, such as address.
Instances
Eq NetworkId # | |
Ord NetworkId # | |
Defined in Maestro.Types.V1.Addresses | |
Show NetworkId # | |
Generic NetworkId # | |
ToJSON NetworkId # | |
Defined in Maestro.Types.V1.Addresses toEncoding ∷ NetworkId → Encoding toJSONList ∷ [NetworkId] → Value toEncodingList ∷ [NetworkId] → Encoding | |
FromJSON NetworkId # | |
Defined in Maestro.Types.V1.Addresses parseJSON ∷ Value → Parser NetworkId parseJSONList ∷ Value → Parser [NetworkId] | |
type Rep NetworkId # | |
data PaymentCredKind #
Denotes kind of a payment credential.
Instances
data PaymentCredential #
Payment credential, the payment part of a Cardano address.
PaymentCredential | |
|
Instances
data StakingCredKind #
Denotes kind of a staking credential.
Instances
To understand it, see it's use in ChainPointer
datatype.
Instances
Enum CertIndex # | |
Defined in Maestro.Types.V1.Addresses | |
Eq CertIndex # | |
Integral CertIndex # | |
Defined in Maestro.Types.V1.Addresses | |
Num CertIndex # | |
Ord CertIndex # | |
Defined in Maestro.Types.V1.Addresses | |
Real CertIndex # | |
Defined in Maestro.Types.V1.Addresses toRational ∷ CertIndex → Rational # | |
Show CertIndex # | |
Generic CertIndex # | |
FromHttpApiData CertIndex # | |
Defined in Maestro.Types.V1.Addresses | |
ToHttpApiData CertIndex # | |
ToJSON CertIndex # | |
Defined in Maestro.Types.V1.Addresses toEncoding ∷ CertIndex → Encoding toJSONList ∷ [CertIndex] → Value toEncodingList ∷ [CertIndex] → Encoding | |
FromJSON CertIndex # | |
Defined in Maestro.Types.V1.Addresses parseJSON ∷ Value → Parser CertIndex parseJSONList ∷ Value → Parser [CertIndex] | |
type Rep CertIndex # | |
Defined in Maestro.Types.V1.Addresses |
data ChainPointer #
In an address, a chain pointer refers to a point of the chain containing a stake key registration certificate. A point is identified by 3 coordinates, as listed in the type.
ChainPointer | |
|
Instances
data StakingCredential #
Payment credential, the payment part of a Cardano address.
StakingCredential | |
|
Instances
data AddressInfo #
Information decoded from a Cardano address.
AddressInfo | |
|
Instances
data OutputReferenceObject #
Output reference of an UTxO. This is different from OutputReference
type as later JSON representation is a string whereas this has an object format.
Instances
data PaginatedOutputReferenceObject #
UTxO IDs for all the unspent transaction outputs at an address.
Instances
data AddressTransaction #
Transaction which involved a specific address.
AddressTransaction | |
|
Instances
data PaginatedAddressTransaction #
A paginated response over AddressTransaction
.
Instances
data PaymentCredentialTransaction #
Transaction which involved a specific payment credential.
PaymentCredentialTransaction | |
|
Instances
data PaginatedPaymentCredentialTransaction #
A paginated response over PaymentCredentialTransaction
.