Documentation ¶
Index ¶
- Constants
- Variables
- type MaryBlock
- func (b *MaryBlock) BlockBodySize() uint64
- func (b *MaryBlock) BlockNumber() uint64
- func (b *MaryBlock) Era() common.Era
- func (b *MaryBlock) Hash() string
- func (b *MaryBlock) IssuerVkey() common.IssuerVkey
- func (b *MaryBlock) SlotNumber() uint64
- func (b *MaryBlock) Transactions() []common.Transaction
- func (MaryBlock) Type() int
- func (b *MaryBlock) UnmarshalCBOR(cborData []byte) error
- func (b *MaryBlock) Utxorpc() *utxorpc.Block
- type MaryBlockHeader
- type MaryProtocolParameterUpdate
- type MaryProtocolParameters
- type MaryTransaction
- func (t MaryTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (t MaryTransaction) AuxDataHash() *common.Blake2b256
- func (t *MaryTransaction) Cbor() []byte
- func (t MaryTransaction) Certificates() []common.Certificate
- func (t MaryTransaction) Collateral() []common.TransactionInput
- func (t MaryTransaction) CollateralReturn() common.TransactionOutput
- func (t MaryTransaction) Consumed() []common.TransactionInput
- func (t MaryTransaction) CurrentTreasuryValue() int64
- func (t MaryTransaction) Donation() uint64
- func (t MaryTransaction) Fee() uint64
- func (t MaryTransaction) Hash() string
- func (t MaryTransaction) Inputs() []common.TransactionInput
- func (t MaryTransaction) IsValid() bool
- func (t MaryTransaction) Metadata() *cbor.LazyValue
- func (t MaryTransaction) Outputs() []common.TransactionOutput
- func (t MaryTransaction) Produced() []common.Utxo
- func (t MaryTransaction) ProposalProcedures() []common.ProposalProcedure
- func (t MaryTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (t MaryTransaction) ReferenceInputs() []common.TransactionInput
- func (t MaryTransaction) RequiredSigners() []common.Blake2b224
- func (t MaryTransaction) ScriptDataHash() *common.Blake2b256
- func (t MaryTransaction) TTL() uint64
- func (t MaryTransaction) TotalCollateral() uint64
- func (MaryTransaction) Type() int
- func (t *MaryTransaction) Utxorpc() *utxorpc.Tx
- func (t MaryTransaction) ValidityIntervalStart() uint64
- func (t MaryTransaction) VotingProcedures() common.VotingProcedures
- func (t MaryTransaction) Withdrawals() map[*common.Address]uint64
- type MaryTransactionBody
- func (b *MaryTransactionBody) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (b *MaryTransactionBody) Outputs() []common.TransactionOutput
- func (b *MaryTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (b *MaryTransactionBody) UnmarshalCBOR(cborData []byte) error
- type MaryTransactionOutput
- func (o MaryTransactionOutput) Address() common.Address
- func (o MaryTransactionOutput) Amount() uint64
- func (o MaryTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
- func (o MaryTransactionOutput) Datum() *cbor.LazyValue
- func (o MaryTransactionOutput) DatumHash() *common.Blake2b256
- func (o MaryTransactionOutput) MarshalJSON() ([]byte, error)
- func (o MaryTransactionOutput) Utxorpc() *utxorpc.TxOutput
- type MaryTransactionOutputValue
- type MaryTransactionWitnessSet
Constants ¶
View Source
const ( EraIdMary = 3 EraNameMary = "Mary" BlockTypeMary = 4 BlockHeaderTypeMary = 3 TxTypeMary = 3 )
Variables ¶
View Source
var ( EraMary = common.Era{ Id: EraIdMary, Name: EraNameMary, } )
Functions ¶
This section is empty.
Types ¶
type MaryBlock ¶
type MaryBlock struct { cbor.StructAsArray cbor.DecodeStoreCbor Header *MaryBlockHeader TransactionBodies []MaryTransactionBody TransactionWitnessSets []MaryTransactionWitnessSet TransactionMetadataSet map[uint]*cbor.LazyValue }
func NewMaryBlockFromCbor ¶
func (*MaryBlock) BlockBodySize ¶
func (*MaryBlock) BlockNumber ¶
func (*MaryBlock) IssuerVkey ¶
func (b *MaryBlock) IssuerVkey() common.IssuerVkey
func (*MaryBlock) SlotNumber ¶
func (*MaryBlock) Transactions ¶
func (b *MaryBlock) Transactions() []common.Transaction
func (*MaryBlock) UnmarshalCBOR ¶
type MaryBlockHeader ¶
type MaryBlockHeader struct {
shelley.ShelleyBlockHeader
}
func (*MaryBlockHeader) Era ¶
func (h *MaryBlockHeader) Era() common.Era
type MaryProtocolParameterUpdate ¶
type MaryProtocolParameterUpdate struct {
allegra.AllegraProtocolParameterUpdate
}
func (*MaryProtocolParameterUpdate) UnmarshalCBOR ¶ added in v0.99.0
func (u *MaryProtocolParameterUpdate) UnmarshalCBOR(data []byte) error
type MaryProtocolParameters ¶
type MaryProtocolParameters struct {
allegra.AllegraProtocolParameters
}
func UpgradePParams ¶ added in v0.103.0
func UpgradePParams(prevPParams allegra.AllegraProtocolParameters) MaryProtocolParameters
func (*MaryProtocolParameters) Update ¶ added in v0.99.0
func (p *MaryProtocolParameters) Update( paramUpdate *MaryProtocolParameterUpdate, )
func (*MaryProtocolParameters) Utxorpc ¶ added in v0.103.0
func (p *MaryProtocolParameters) Utxorpc() *cardano.PParams
type MaryTransaction ¶
type MaryTransaction struct { cbor.StructAsArray cbor.DecodeStoreCbor Body MaryTransactionBody WitnessSet MaryTransactionWitnessSet TxMetadata *cbor.LazyValue }
func NewMaryTransactionFromCbor ¶
func NewMaryTransactionFromCbor(data []byte) (*MaryTransaction, error)
func (MaryTransaction) AssetMint ¶
func (t MaryTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (MaryTransaction) AuxDataHash ¶
func (t MaryTransaction) AuxDataHash() *common.Blake2b256
func (*MaryTransaction) Cbor ¶
func (t *MaryTransaction) Cbor() []byte
func (MaryTransaction) Certificates ¶
func (t MaryTransaction) Certificates() []common.Certificate
func (MaryTransaction) Collateral ¶
func (t MaryTransaction) Collateral() []common.TransactionInput
func (MaryTransaction) CollateralReturn ¶
func (t MaryTransaction) CollateralReturn() common.TransactionOutput
func (MaryTransaction) Consumed ¶
func (t MaryTransaction) Consumed() []common.TransactionInput
func (MaryTransaction) CurrentTreasuryValue ¶
func (t MaryTransaction) CurrentTreasuryValue() int64
func (MaryTransaction) Donation ¶
func (t MaryTransaction) Donation() uint64
func (MaryTransaction) Fee ¶
func (t MaryTransaction) Fee() uint64
func (MaryTransaction) Hash ¶
func (t MaryTransaction) Hash() string
func (MaryTransaction) Inputs ¶
func (t MaryTransaction) Inputs() []common.TransactionInput
func (MaryTransaction) IsValid ¶
func (t MaryTransaction) IsValid() bool
func (MaryTransaction) Metadata ¶
func (t MaryTransaction) Metadata() *cbor.LazyValue
func (MaryTransaction) Outputs ¶
func (t MaryTransaction) Outputs() []common.TransactionOutput
func (MaryTransaction) Produced ¶
func (t MaryTransaction) Produced() []common.Utxo
func (MaryTransaction) ProposalProcedures ¶
func (t MaryTransaction) ProposalProcedures() []common.ProposalProcedure
func (MaryTransaction) ProtocolParameterUpdates ¶ added in v0.95.0
func (t MaryTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (MaryTransaction) ReferenceInputs ¶
func (t MaryTransaction) ReferenceInputs() []common.TransactionInput
func (MaryTransaction) RequiredSigners ¶
func (t MaryTransaction) RequiredSigners() []common.Blake2b224
func (MaryTransaction) ScriptDataHash ¶
func (t MaryTransaction) ScriptDataHash() *common.Blake2b256
func (MaryTransaction) TTL ¶
func (t MaryTransaction) TTL() uint64
func (MaryTransaction) TotalCollateral ¶
func (t MaryTransaction) TotalCollateral() uint64
func (MaryTransaction) Type ¶ added in v0.94.0
func (MaryTransaction) Type() int
func (*MaryTransaction) Utxorpc ¶
func (t *MaryTransaction) Utxorpc() *utxorpc.Tx
func (MaryTransaction) ValidityIntervalStart ¶
func (t MaryTransaction) ValidityIntervalStart() uint64
func (MaryTransaction) VotingProcedures ¶
func (t MaryTransaction) VotingProcedures() common.VotingProcedures
func (MaryTransaction) Withdrawals ¶
func (t MaryTransaction) Withdrawals() map[*common.Address]uint64
type MaryTransactionBody ¶
type MaryTransactionBody struct { allegra.AllegraTransactionBody Update struct { cbor.StructAsArray ProtocolParamUpdates map[common.Blake2b224]MaryProtocolParameterUpdate Epoch uint64 } `cbor:"6,keyasint,omitempty"` TxOutputs []MaryTransactionOutput `cbor:"1,keyasint,omitempty"` TxMint *common.MultiAsset[common.MultiAssetTypeMint] `cbor:"9,keyasint,omitempty"` }
func NewMaryTransactionBodyFromCbor ¶
func NewMaryTransactionBodyFromCbor(data []byte) (*MaryTransactionBody, error)
func (*MaryTransactionBody) AssetMint ¶
func (b *MaryTransactionBody) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (*MaryTransactionBody) Outputs ¶
func (b *MaryTransactionBody) Outputs() []common.TransactionOutput
func (*MaryTransactionBody) ProtocolParameterUpdates ¶ added in v0.95.0
func (b *MaryTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (*MaryTransactionBody) UnmarshalCBOR ¶
func (b *MaryTransactionBody) UnmarshalCBOR(cborData []byte) error
type MaryTransactionOutput ¶
type MaryTransactionOutput struct { cbor.StructAsArray cbor.DecodeStoreCbor OutputAddress common.Address OutputAmount MaryTransactionOutputValue }
func NewMaryTransactionOutputFromCbor ¶
func NewMaryTransactionOutputFromCbor( data []byte, ) (*MaryTransactionOutput, error)
func (MaryTransactionOutput) Address ¶
func (o MaryTransactionOutput) Address() common.Address
func (MaryTransactionOutput) Amount ¶
func (o MaryTransactionOutput) Amount() uint64
func (MaryTransactionOutput) Assets ¶
func (o MaryTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
func (MaryTransactionOutput) Datum ¶
func (o MaryTransactionOutput) Datum() *cbor.LazyValue
func (MaryTransactionOutput) DatumHash ¶
func (o MaryTransactionOutput) DatumHash() *common.Blake2b256
func (MaryTransactionOutput) MarshalJSON ¶
func (o MaryTransactionOutput) MarshalJSON() ([]byte, error)
func (MaryTransactionOutput) Utxorpc ¶
func (o MaryTransactionOutput) Utxorpc() *utxorpc.TxOutput
type MaryTransactionOutputValue ¶
type MaryTransactionOutputValue struct { cbor.StructAsArray Amount uint64 // We use a pointer here to allow it to be nil Assets *common.MultiAsset[common.MultiAssetTypeOutput] }
func (*MaryTransactionOutputValue) MarshalCBOR ¶
func (v *MaryTransactionOutputValue) MarshalCBOR() ([]byte, error)
func (*MaryTransactionOutputValue) UnmarshalCBOR ¶
func (v *MaryTransactionOutputValue) UnmarshalCBOR(data []byte) error
type MaryTransactionWitnessSet ¶
type MaryTransactionWitnessSet struct { shelley.ShelleyTransactionWitnessSet Script []interface{} `cbor:"4,keyasint,omitempty"` PlutusScripts []interface{} `cbor:"5,keyasint,omitempty"` }
Click to show internal directories.
Click to hide internal directories.