mary

package
v0.103.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

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 NewMaryBlockFromCbor(data []byte) (*MaryBlock, error)

func (*MaryBlock) BlockBodySize

func (b *MaryBlock) BlockBodySize() uint64

func (*MaryBlock) BlockNumber

func (b *MaryBlock) BlockNumber() uint64

func (*MaryBlock) Era

func (b *MaryBlock) Era() common.Era

func (*MaryBlock) Hash

func (b *MaryBlock) Hash() string

func (*MaryBlock) IssuerVkey

func (b *MaryBlock) IssuerVkey() common.IssuerVkey

func (*MaryBlock) SlotNumber

func (b *MaryBlock) SlotNumber() uint64

func (*MaryBlock) Transactions

func (b *MaryBlock) Transactions() []common.Transaction

func (MaryBlock) Type added in v0.94.0

func (MaryBlock) Type() int

func (*MaryBlock) UnmarshalCBOR

func (b *MaryBlock) UnmarshalCBOR(cborData []byte) error

func (*MaryBlock) Utxorpc

func (b *MaryBlock) Utxorpc() *utxorpc.Block

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 (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 (MaryTransaction) IsValid

func (t MaryTransaction) IsValid() bool

func (MaryTransaction) Metadata

func (t MaryTransaction) Metadata() *cbor.LazyValue

func (MaryTransaction) Outputs

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 (*MaryTransactionBody) Outputs

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 (MaryTransactionOutput) Datum

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL