Documentation ¶
Index ¶
- Constants
- Variables
- type ByronBlockVersion
- type ByronEpochBoundaryBlock
- func (b *ByronEpochBoundaryBlock) BlockBodySize() uint64
- func (b *ByronEpochBoundaryBlock) BlockNumber() uint64
- func (b *ByronEpochBoundaryBlock) Era() common.Era
- func (b *ByronEpochBoundaryBlock) Hash() string
- func (b *ByronEpochBoundaryBlock) IssuerVkey() common.IssuerVkey
- func (b *ByronEpochBoundaryBlock) SlotNumber() uint64
- func (b *ByronEpochBoundaryBlock) Transactions() []common.Transaction
- func (ByronEpochBoundaryBlock) Type() int
- func (b *ByronEpochBoundaryBlock) UnmarshalCBOR(cborData []byte) error
- func (b *ByronEpochBoundaryBlock) Utxorpc() *utxorpc.Block
- type ByronEpochBoundaryBlockHeader
- func (h *ByronEpochBoundaryBlockHeader) BlockBodySize() uint64
- func (h *ByronEpochBoundaryBlockHeader) BlockNumber() uint64
- func (h *ByronEpochBoundaryBlockHeader) Era() common.Era
- func (h *ByronEpochBoundaryBlockHeader) Hash() string
- func (h *ByronEpochBoundaryBlockHeader) IssuerVkey() common.IssuerVkey
- func (h *ByronEpochBoundaryBlockHeader) SlotNumber() uint64
- func (h *ByronEpochBoundaryBlockHeader) UnmarshalCBOR(cborData []byte) error
- type ByronGenesis
- type ByronGenesisBlockVersionData
- type ByronGenesisBlockVersionDataSoftforkRule
- type ByronGenesisBlockVersionDataTxFeePolicy
- type ByronGenesisHeavyDelegation
- type ByronGenesisProtocolConsts
- type ByronGenesisVssCert
- type ByronMainBlock
- func (b *ByronMainBlock) BlockBodySize() uint64
- func (b *ByronMainBlock) BlockNumber() uint64
- func (b *ByronMainBlock) Era() common.Era
- func (b *ByronMainBlock) Hash() string
- func (b *ByronMainBlock) IssuerVkey() common.IssuerVkey
- func (b *ByronMainBlock) SlotNumber() uint64
- func (b *ByronMainBlock) Transactions() []common.Transaction
- func (ByronMainBlock) Type() int
- func (b *ByronMainBlock) UnmarshalCBOR(cborData []byte) error
- func (b *ByronMainBlock) Utxorpc() *utxorpc.Block
- type ByronMainBlockBody
- type ByronMainBlockHeader
- func (h *ByronMainBlockHeader) BlockBodySize() uint64
- func (h *ByronMainBlockHeader) BlockNumber() uint64
- func (h *ByronMainBlockHeader) Era() common.Era
- func (h *ByronMainBlockHeader) Hash() string
- func (h *ByronMainBlockHeader) IssuerVkey() common.IssuerVkey
- func (h *ByronMainBlockHeader) SlotNumber() uint64
- func (h *ByronMainBlockHeader) UnmarshalCBOR(cborData []byte) error
- type ByronSoftwareVersion
- type ByronTransaction
- func (t *ByronTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (t *ByronTransaction) AuxDataHash() *common.Blake2b256
- func (t *ByronTransaction) Certificates() []common.Certificate
- func (t *ByronTransaction) Collateral() []common.TransactionInput
- func (t *ByronTransaction) CollateralReturn() common.TransactionOutput
- func (t *ByronTransaction) Consumed() []common.TransactionInput
- func (t *ByronTransaction) CurrentTreasuryValue() int64
- func (t *ByronTransaction) Donation() uint64
- func (t *ByronTransaction) Fee() uint64
- func (t *ByronTransaction) Hash() string
- func (t *ByronTransaction) Inputs() []common.TransactionInput
- func (t *ByronTransaction) IsValid() bool
- func (t *ByronTransaction) Metadata() *cbor.LazyValue
- func (t *ByronTransaction) Outputs() []common.TransactionOutput
- func (t *ByronTransaction) Produced() []common.Utxo
- func (t *ByronTransaction) ProposalProcedures() []common.ProposalProcedure
- func (t *ByronTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (t *ByronTransaction) ReferenceInputs() []common.TransactionInput
- func (t *ByronTransaction) RequiredSigners() []common.Blake2b224
- func (t *ByronTransaction) ScriptDataHash() *common.Blake2b256
- func (t *ByronTransaction) TTL() uint64
- func (t *ByronTransaction) TotalCollateral() uint64
- func (ByronTransaction) Type() int
- func (t *ByronTransaction) UnmarshalCBOR(data []byte) error
- func (t *ByronTransaction) Utxorpc() *utxorpc.Tx
- func (t *ByronTransaction) ValidityIntervalStart() uint64
- func (t *ByronTransaction) VotingProcedures() common.VotingProcedures
- func (t *ByronTransaction) Withdrawals() map[*common.Address]uint64
- type ByronTransactionInput
- func (i ByronTransactionInput) Id() common.Blake2b256
- func (i ByronTransactionInput) Index() uint32
- func (i ByronTransactionInput) MarshalJSON() ([]byte, error)
- func (i ByronTransactionInput) String() string
- func (i *ByronTransactionInput) UnmarshalCBOR(data []byte) error
- func (i ByronTransactionInput) Utxorpc() *utxorpc.TxInput
- type ByronTransactionOutput
- func (o ByronTransactionOutput) Address() common.Address
- func (o ByronTransactionOutput) Amount() uint64
- func (o ByronTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
- func (o ByronTransactionOutput) Datum() *cbor.LazyValue
- func (o ByronTransactionOutput) DatumHash() *common.Blake2b256
- func (o *ByronTransactionOutput) UnmarshalCBOR(data []byte) error
- func (o ByronTransactionOutput) Utxorpc() *utxorpc.TxOutput
- type ByronUpdatePayload
- type ByronUpdateProposal
- type ByronUpdateProposalBlockVersionMod
Constants ¶
View Source
const ( EraIdByron = 0 EraNameByron = "Byron" BlockTypeByronEbb = 0 BlockTypeByronMain = 1 BlockHeaderTypeByron = 0 TxTypeByron = 0 ByronSlotsPerEpoch = 21600 )
Variables ¶
View Source
var ( EraByron = common.Era{ Id: EraIdByron, Name: EraNameByron, } )
Functions ¶
This section is empty.
Types ¶
type ByronBlockVersion ¶ added in v0.100.0
type ByronBlockVersion struct { cbor.StructAsArray Major uint16 Minor uint16 Unknown uint8 }
type ByronEpochBoundaryBlock ¶
type ByronEpochBoundaryBlock struct { cbor.StructAsArray cbor.DecodeStoreCbor Header *ByronEpochBoundaryBlockHeader Body []common.Blake2b224 Extra []interface{} }
func NewByronEpochBoundaryBlockFromCbor ¶
func NewByronEpochBoundaryBlockFromCbor( data []byte, ) (*ByronEpochBoundaryBlock, error)
func (*ByronEpochBoundaryBlock) BlockBodySize ¶
func (b *ByronEpochBoundaryBlock) BlockBodySize() uint64
func (*ByronEpochBoundaryBlock) BlockNumber ¶
func (b *ByronEpochBoundaryBlock) BlockNumber() uint64
func (*ByronEpochBoundaryBlock) Era ¶
func (b *ByronEpochBoundaryBlock) Era() common.Era
func (*ByronEpochBoundaryBlock) Hash ¶
func (b *ByronEpochBoundaryBlock) Hash() string
func (*ByronEpochBoundaryBlock) IssuerVkey ¶
func (b *ByronEpochBoundaryBlock) IssuerVkey() common.IssuerVkey
func (*ByronEpochBoundaryBlock) SlotNumber ¶
func (b *ByronEpochBoundaryBlock) SlotNumber() uint64
func (*ByronEpochBoundaryBlock) Transactions ¶
func (b *ByronEpochBoundaryBlock) Transactions() []common.Transaction
func (ByronEpochBoundaryBlock) Type ¶ added in v0.94.0
func (ByronEpochBoundaryBlock) Type() int
func (*ByronEpochBoundaryBlock) UnmarshalCBOR ¶
func (b *ByronEpochBoundaryBlock) UnmarshalCBOR(cborData []byte) error
func (*ByronEpochBoundaryBlock) Utxorpc ¶
func (b *ByronEpochBoundaryBlock) Utxorpc() *utxorpc.Block
type ByronEpochBoundaryBlockHeader ¶
type ByronEpochBoundaryBlockHeader struct { cbor.StructAsArray cbor.DecodeStoreCbor ProtocolMagic uint32 PrevBlock common.Blake2b256 BodyProof interface{} ConsensusData struct { cbor.StructAsArray Epoch uint64 Difficulty struct { cbor.StructAsArray Value uint64 } } ExtraData interface{} // contains filtered or unexported fields }
func NewByronEpochBoundaryBlockHeaderFromCbor ¶
func NewByronEpochBoundaryBlockHeaderFromCbor( data []byte, ) (*ByronEpochBoundaryBlockHeader, error)
func (*ByronEpochBoundaryBlockHeader) BlockBodySize ¶
func (h *ByronEpochBoundaryBlockHeader) BlockBodySize() uint64
func (*ByronEpochBoundaryBlockHeader) BlockNumber ¶
func (h *ByronEpochBoundaryBlockHeader) BlockNumber() uint64
func (*ByronEpochBoundaryBlockHeader) Era ¶
func (h *ByronEpochBoundaryBlockHeader) Era() common.Era
func (*ByronEpochBoundaryBlockHeader) Hash ¶
func (h *ByronEpochBoundaryBlockHeader) Hash() string
func (*ByronEpochBoundaryBlockHeader) IssuerVkey ¶
func (h *ByronEpochBoundaryBlockHeader) IssuerVkey() common.IssuerVkey
func (*ByronEpochBoundaryBlockHeader) SlotNumber ¶
func (h *ByronEpochBoundaryBlockHeader) SlotNumber() uint64
func (*ByronEpochBoundaryBlockHeader) UnmarshalCBOR ¶
func (h *ByronEpochBoundaryBlockHeader) UnmarshalCBOR(cborData []byte) error
type ByronGenesis ¶ added in v0.96.0
type ByronGenesis struct { AvvmDistr map[string]string BlockVersionData ByronGenesisBlockVersionData FtsSeed string ProtocolConsts ByronGenesisProtocolConsts StartTime int BootStakeholders map[string]int HeavyDelegation map[string]ByronGenesisHeavyDelegation NonAvvmBalances any VssCerts map[string]ByronGenesisVssCert }
func NewByronGenesisFromFile ¶ added in v0.96.0
func NewByronGenesisFromFile(path string) (ByronGenesis, error)
func NewByronGenesisFromReader ¶ added in v0.96.0
func NewByronGenesisFromReader(r io.Reader) (ByronGenesis, error)
type ByronGenesisBlockVersionData ¶ added in v0.96.0
type ByronGenesisBlockVersionData struct { HeavyDelThd int `json:",string"` MaxBlockSize int `json:",string"` MaxHeaderSize int `json:",string"` MaxProposalSize int `json:",string"` MaxTxSize int `json:",string"` MpcThd int `json:",string"` ScriptVersion int SlotDuration int `json:",string"` SoftforkRule ByronGenesisBlockVersionDataSoftforkRule TxFeePolicy ByronGenesisBlockVersionDataTxFeePolicy UnlockStakeEpoch uint64 `json:",string"` UpdateImplicit int `json:",string"` UpdateProposalThd int `json:",string"` UpdateVoteThd int `json:",string"` }
type ByronGenesisBlockVersionDataSoftforkRule ¶ added in v0.96.0
type ByronGenesisBlockVersionDataTxFeePolicy ¶ added in v0.96.0
type ByronGenesisHeavyDelegation ¶ added in v0.96.0
type ByronGenesisProtocolConsts ¶ added in v0.96.0
type ByronGenesisVssCert ¶ added in v0.96.0
type ByronMainBlock ¶
type ByronMainBlock struct { cbor.StructAsArray cbor.DecodeStoreCbor Header *ByronMainBlockHeader Body ByronMainBlockBody Extra []interface{} }
func NewByronMainBlockFromCbor ¶
func NewByronMainBlockFromCbor(data []byte) (*ByronMainBlock, error)
func (*ByronMainBlock) BlockBodySize ¶
func (b *ByronMainBlock) BlockBodySize() uint64
func (*ByronMainBlock) BlockNumber ¶
func (b *ByronMainBlock) BlockNumber() uint64
func (*ByronMainBlock) Era ¶
func (b *ByronMainBlock) Era() common.Era
func (*ByronMainBlock) Hash ¶
func (b *ByronMainBlock) Hash() string
func (*ByronMainBlock) IssuerVkey ¶
func (b *ByronMainBlock) IssuerVkey() common.IssuerVkey
func (*ByronMainBlock) SlotNumber ¶
func (b *ByronMainBlock) SlotNumber() uint64
func (*ByronMainBlock) Transactions ¶
func (b *ByronMainBlock) Transactions() []common.Transaction
func (ByronMainBlock) Type ¶ added in v0.94.0
func (ByronMainBlock) Type() int
func (*ByronMainBlock) UnmarshalCBOR ¶
func (b *ByronMainBlock) UnmarshalCBOR(cborData []byte) error
func (*ByronMainBlock) Utxorpc ¶
func (b *ByronMainBlock) Utxorpc() *utxorpc.Block
type ByronMainBlockBody ¶
type ByronMainBlockBody struct { cbor.StructAsArray cbor.DecodeStoreCbor // TODO: split this to its own type TxPayload []struct { cbor.StructAsArray Transaction ByronTransaction // TODO: figure out what this field actually is Twit []cbor.Value } SscPayload cbor.Value DlgPayload []interface{} UpdPayload ByronUpdatePayload }
func (*ByronMainBlockBody) UnmarshalCBOR ¶
func (b *ByronMainBlockBody) UnmarshalCBOR(data []byte) error
type ByronMainBlockHeader ¶
type ByronMainBlockHeader struct { cbor.StructAsArray cbor.DecodeStoreCbor ProtocolMagic uint32 PrevBlock common.Blake2b256 BodyProof interface{} ConsensusData struct { cbor.StructAsArray // [slotid, pubkey, difficulty, blocksig] SlotId struct { cbor.StructAsArray Epoch uint64 Slot uint16 } PubKey []byte Difficulty struct { cbor.StructAsArray Unknown uint64 } BlockSig []interface{} } ExtraData struct { cbor.StructAsArray BlockVersion ByronBlockVersion SoftwareVersion ByronSoftwareVersion Attributes interface{} ExtraProof common.Blake2b256 } // contains filtered or unexported fields }
func NewByronMainBlockHeaderFromCbor ¶
func NewByronMainBlockHeaderFromCbor( data []byte, ) (*ByronMainBlockHeader, error)
func (*ByronMainBlockHeader) BlockBodySize ¶
func (h *ByronMainBlockHeader) BlockBodySize() uint64
func (*ByronMainBlockHeader) BlockNumber ¶
func (h *ByronMainBlockHeader) BlockNumber() uint64
func (*ByronMainBlockHeader) Era ¶
func (h *ByronMainBlockHeader) Era() common.Era
func (*ByronMainBlockHeader) Hash ¶
func (h *ByronMainBlockHeader) Hash() string
func (*ByronMainBlockHeader) IssuerVkey ¶
func (h *ByronMainBlockHeader) IssuerVkey() common.IssuerVkey
func (*ByronMainBlockHeader) SlotNumber ¶
func (h *ByronMainBlockHeader) SlotNumber() uint64
func (*ByronMainBlockHeader) UnmarshalCBOR ¶
func (h *ByronMainBlockHeader) UnmarshalCBOR(cborData []byte) error
type ByronSoftwareVersion ¶ added in v0.100.0
type ByronSoftwareVersion struct { cbor.StructAsArray Name string Version uint32 }
type ByronTransaction ¶
type ByronTransaction struct { cbor.StructAsArray cbor.DecodeStoreCbor TxInputs []ByronTransactionInput TxOutputs []ByronTransactionOutput Attributes *cbor.LazyValue // contains filtered or unexported fields }
func NewByronTransactionFromCbor ¶
func NewByronTransactionFromCbor(data []byte) (*ByronTransaction, error)
func (*ByronTransaction) AssetMint ¶
func (t *ByronTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (*ByronTransaction) AuxDataHash ¶
func (t *ByronTransaction) AuxDataHash() *common.Blake2b256
func (*ByronTransaction) Certificates ¶
func (t *ByronTransaction) Certificates() []common.Certificate
func (*ByronTransaction) Collateral ¶
func (t *ByronTransaction) Collateral() []common.TransactionInput
func (*ByronTransaction) CollateralReturn ¶
func (t *ByronTransaction) CollateralReturn() common.TransactionOutput
func (*ByronTransaction) Consumed ¶
func (t *ByronTransaction) Consumed() []common.TransactionInput
func (*ByronTransaction) CurrentTreasuryValue ¶
func (t *ByronTransaction) CurrentTreasuryValue() int64
func (*ByronTransaction) Donation ¶
func (t *ByronTransaction) Donation() uint64
func (*ByronTransaction) Fee ¶
func (t *ByronTransaction) Fee() uint64
func (*ByronTransaction) Hash ¶
func (t *ByronTransaction) Hash() string
func (*ByronTransaction) Inputs ¶
func (t *ByronTransaction) Inputs() []common.TransactionInput
func (*ByronTransaction) IsValid ¶
func (t *ByronTransaction) IsValid() bool
func (*ByronTransaction) Metadata ¶
func (t *ByronTransaction) Metadata() *cbor.LazyValue
func (*ByronTransaction) Outputs ¶
func (t *ByronTransaction) Outputs() []common.TransactionOutput
func (*ByronTransaction) Produced ¶
func (t *ByronTransaction) Produced() []common.Utxo
func (*ByronTransaction) ProposalProcedures ¶
func (t *ByronTransaction) ProposalProcedures() []common.ProposalProcedure
func (*ByronTransaction) ProtocolParameterUpdates ¶ added in v0.95.0
func (t *ByronTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (*ByronTransaction) ReferenceInputs ¶
func (t *ByronTransaction) ReferenceInputs() []common.TransactionInput
func (*ByronTransaction) RequiredSigners ¶
func (t *ByronTransaction) RequiredSigners() []common.Blake2b224
func (*ByronTransaction) ScriptDataHash ¶
func (t *ByronTransaction) ScriptDataHash() *common.Blake2b256
func (*ByronTransaction) TTL ¶
func (t *ByronTransaction) TTL() uint64
func (*ByronTransaction) TotalCollateral ¶
func (t *ByronTransaction) TotalCollateral() uint64
func (ByronTransaction) Type ¶ added in v0.94.0
func (ByronTransaction) Type() int
func (*ByronTransaction) UnmarshalCBOR ¶
func (t *ByronTransaction) UnmarshalCBOR(data []byte) error
func (*ByronTransaction) Utxorpc ¶
func (t *ByronTransaction) Utxorpc() *utxorpc.Tx
func (*ByronTransaction) ValidityIntervalStart ¶
func (t *ByronTransaction) ValidityIntervalStart() uint64
func (*ByronTransaction) VotingProcedures ¶
func (t *ByronTransaction) VotingProcedures() common.VotingProcedures
func (*ByronTransaction) Withdrawals ¶
func (t *ByronTransaction) Withdrawals() map[*common.Address]uint64
type ByronTransactionInput ¶
type ByronTransactionInput struct { cbor.StructAsArray TxId common.Blake2b256 OutputIndex uint32 }
func NewByronTransactionInput ¶
func NewByronTransactionInput(hash string, idx int) ByronTransactionInput
func (ByronTransactionInput) Id ¶
func (i ByronTransactionInput) Id() common.Blake2b256
func (ByronTransactionInput) Index ¶
func (i ByronTransactionInput) Index() uint32
func (ByronTransactionInput) MarshalJSON ¶
func (i ByronTransactionInput) MarshalJSON() ([]byte, error)
func (ByronTransactionInput) String ¶
func (i ByronTransactionInput) String() string
func (*ByronTransactionInput) UnmarshalCBOR ¶
func (i *ByronTransactionInput) UnmarshalCBOR(data []byte) error
func (ByronTransactionInput) Utxorpc ¶
func (i ByronTransactionInput) Utxorpc() *utxorpc.TxInput
type ByronTransactionOutput ¶
type ByronTransactionOutput struct { cbor.StructAsArray cbor.DecodeStoreCbor OutputAddress common.Address `json:"address"` OutputAmount uint64 `json:"amount"` }
func (ByronTransactionOutput) Address ¶
func (o ByronTransactionOutput) Address() common.Address
func (ByronTransactionOutput) Amount ¶
func (o ByronTransactionOutput) Amount() uint64
func (ByronTransactionOutput) Assets ¶
func (o ByronTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
func (ByronTransactionOutput) Datum ¶
func (o ByronTransactionOutput) Datum() *cbor.LazyValue
func (ByronTransactionOutput) DatumHash ¶
func (o ByronTransactionOutput) DatumHash() *common.Blake2b256
func (*ByronTransactionOutput) UnmarshalCBOR ¶
func (o *ByronTransactionOutput) UnmarshalCBOR(data []byte) error
func (ByronTransactionOutput) Utxorpc ¶
func (o ByronTransactionOutput) Utxorpc() *utxorpc.TxOutput
type ByronUpdatePayload ¶ added in v0.100.0
type ByronUpdatePayload struct { cbor.StructAsArray Proposals []ByronUpdateProposal Votes []any }
type ByronUpdateProposal ¶ added in v0.100.0
type ByronUpdateProposal struct { cbor.DecodeStoreCbor cbor.StructAsArray BlockVersion ByronBlockVersion BlockVersionMod ByronUpdateProposalBlockVersionMod SoftwareVersion ByronSoftwareVersion Data any Attributes any From []byte Signature []byte }
func (*ByronUpdateProposal) UnmarshalCBOR ¶ added in v0.100.0
func (p *ByronUpdateProposal) UnmarshalCBOR(data []byte) error
type ByronUpdateProposalBlockVersionMod ¶ added in v0.100.0
type ByronUpdateProposalBlockVersionMod struct { cbor.StructAsArray ScriptVersion []uint16 SlotDuration []uint64 MaxBlockSize []uint64 MaxHeaderSize []uint64 MaxTxSize []uint64 MaxProposalSize []uint64 MpcThd []uint64 HeavyDelThd []uint64 UpdateVoteThd []uint64 UpdateProposalThd []uint64 UpdateImplicit []uint64 SoftForkRule []any TxFeePolicy []any UnlockStakeEpoch []uint64 }
Click to show internal directories.
Click to hide internal directories.