Documentation
¶
Index ¶
- Constants
- Variables
- type ShelleyBlock
- func (b *ShelleyBlock) BlockBodySize() uint64
- func (b *ShelleyBlock) BlockNumber() uint64
- func (b *ShelleyBlock) Era() common.Era
- func (b *ShelleyBlock) Hash() string
- func (b *ShelleyBlock) Header() common.BlockHeader
- func (b *ShelleyBlock) IssuerVkey() common.IssuerVkey
- func (b *ShelleyBlock) PrevHash() string
- func (b *ShelleyBlock) SlotNumber() uint64
- func (b *ShelleyBlock) Transactions() []common.Transaction
- func (ShelleyBlock) Type() int
- func (b *ShelleyBlock) UnmarshalCBOR(cborData []byte) error
- func (b *ShelleyBlock) Utxorpc() *utxorpc.Block
- type ShelleyBlockHeader
- func (h *ShelleyBlockHeader) BlockBodySize() uint64
- func (h *ShelleyBlockHeader) BlockNumber() uint64
- func (h *ShelleyBlockHeader) Era() common.Era
- func (h *ShelleyBlockHeader) Hash() string
- func (h *ShelleyBlockHeader) IssuerVkey() common.IssuerVkey
- func (h *ShelleyBlockHeader) PrevHash() string
- func (h *ShelleyBlockHeader) SlotNumber() uint64
- func (h *ShelleyBlockHeader) UnmarshalCBOR(cborData []byte) error
- type ShelleyGenesis
- type ShelleyGenesisProtocolParams
- type ShelleyProtocolParameterUpdate
- type ShelleyProtocolParameters
- type ShelleyTransaction
- func (t ShelleyTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (t ShelleyTransaction) AuxDataHash() *common.Blake2b256
- func (t *ShelleyTransaction) Cbor() []byte
- func (t ShelleyTransaction) Certificates() []common.Certificate
- func (t ShelleyTransaction) Collateral() []common.TransactionInput
- func (t ShelleyTransaction) CollateralReturn() common.TransactionOutput
- func (t ShelleyTransaction) Consumed() []common.TransactionInput
- func (t ShelleyTransaction) CurrentTreasuryValue() int64
- func (t ShelleyTransaction) Donation() uint64
- func (t ShelleyTransaction) Fee() uint64
- func (t ShelleyTransaction) Hash() string
- func (t ShelleyTransaction) Inputs() []common.TransactionInput
- func (t ShelleyTransaction) IsValid() bool
- func (t ShelleyTransaction) Metadata() *cbor.LazyValue
- func (t ShelleyTransaction) Outputs() []common.TransactionOutput
- func (t ShelleyTransaction) Produced() []common.Utxo
- func (t ShelleyTransaction) ProposalProcedures() []common.ProposalProcedure
- func (t *ShelleyTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (t ShelleyTransaction) ReferenceInputs() []common.TransactionInput
- func (t ShelleyTransaction) RequiredSigners() []common.Blake2b224
- func (t ShelleyTransaction) ScriptDataHash() *common.Blake2b256
- func (t ShelleyTransaction) TTL() uint64
- func (t ShelleyTransaction) TotalCollateral() uint64
- func (ShelleyTransaction) Type() int
- func (t ShelleyTransaction) Utxorpc() *utxorpc.Tx
- func (t ShelleyTransaction) ValidityIntervalStart() uint64
- func (t ShelleyTransaction) VotingProcedures() common.VotingProcedures
- func (t ShelleyTransaction) Withdrawals() map[*common.Address]uint64
- type ShelleyTransactionBody
- func (b *ShelleyTransactionBody) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (b *ShelleyTransactionBody) AuxDataHash() *common.Blake2b256
- func (b *ShelleyTransactionBody) Certificates() []common.Certificate
- func (b *ShelleyTransactionBody) Collateral() []common.TransactionInput
- func (b *ShelleyTransactionBody) CollateralReturn() common.TransactionOutput
- func (b *ShelleyTransactionBody) CurrentTreasuryValue() int64
- func (b *ShelleyTransactionBody) Donation() uint64
- func (b *ShelleyTransactionBody) Fee() uint64
- func (b *ShelleyTransactionBody) Hash() string
- func (b *ShelleyTransactionBody) Inputs() []common.TransactionInput
- func (b *ShelleyTransactionBody) Outputs() []common.TransactionOutput
- func (b *ShelleyTransactionBody) ProposalProcedures() []common.ProposalProcedure
- func (b *ShelleyTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (b *ShelleyTransactionBody) ReferenceInputs() []common.TransactionInput
- func (b *ShelleyTransactionBody) RequiredSigners() []common.Blake2b224
- func (b *ShelleyTransactionBody) ScriptDataHash() *common.Blake2b256
- func (b *ShelleyTransactionBody) TTL() uint64
- func (b *ShelleyTransactionBody) TotalCollateral() uint64
- func (b *ShelleyTransactionBody) UnmarshalCBOR(cborData []byte) error
- func (b *ShelleyTransactionBody) Utxorpc() *utxorpc.Tx
- func (b *ShelleyTransactionBody) ValidityIntervalStart() uint64
- func (b *ShelleyTransactionBody) VotingProcedures() common.VotingProcedures
- func (b *ShelleyTransactionBody) Withdrawals() map[*common.Address]uint64
- type ShelleyTransactionInput
- type ShelleyTransactionOutput
- func (o ShelleyTransactionOutput) Address() common.Address
- func (o ShelleyTransactionOutput) Amount() uint64
- func (o ShelleyTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
- func (o ShelleyTransactionOutput) Datum() *cbor.LazyValue
- func (o ShelleyTransactionOutput) DatumHash() *common.Blake2b256
- func (o ShelleyTransactionOutput) Utxorpc() *utxorpc.TxOutput
- type ShelleyTransactionWitnessSet
Constants ¶
View Source
const ( EraIdShelley = 1 EraNameShelley = "Shelley" BlockTypeShelley = 2 BlockHeaderTypeShelley = 1 TxTypeShelley = 1 )
Variables ¶
View Source
var ( EraShelley = common.Era{ Id: EraIdShelley, Name: EraNameShelley, } )
Functions ¶
This section is empty.
Types ¶
type ShelleyBlock ¶
type ShelleyBlock struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
BlockHeader *ShelleyBlockHeader
TransactionBodies []ShelleyTransactionBody
TransactionWitnessSets []ShelleyTransactionWitnessSet
TransactionMetadataSet map[uint]*cbor.LazyValue
}
func NewShelleyBlockFromCbor ¶
func NewShelleyBlockFromCbor(data []byte) (*ShelleyBlock, error)
func (*ShelleyBlock) BlockBodySize ¶
func (b *ShelleyBlock) BlockBodySize() uint64
func (*ShelleyBlock) BlockNumber ¶
func (b *ShelleyBlock) BlockNumber() uint64
func (*ShelleyBlock) Era ¶
func (b *ShelleyBlock) Era() common.Era
func (*ShelleyBlock) Hash ¶
func (b *ShelleyBlock) Hash() string
func (*ShelleyBlock) Header ¶
func (b *ShelleyBlock) Header() common.BlockHeader
func (*ShelleyBlock) IssuerVkey ¶
func (b *ShelleyBlock) IssuerVkey() common.IssuerVkey
func (*ShelleyBlock) PrevHash ¶ added in v0.105.0
func (b *ShelleyBlock) PrevHash() string
func (*ShelleyBlock) SlotNumber ¶
func (b *ShelleyBlock) SlotNumber() uint64
func (*ShelleyBlock) Transactions ¶
func (b *ShelleyBlock) Transactions() []common.Transaction
func (ShelleyBlock) Type ¶ added in v0.94.0
func (ShelleyBlock) Type() int
func (*ShelleyBlock) UnmarshalCBOR ¶
func (b *ShelleyBlock) UnmarshalCBOR(cborData []byte) error
func (*ShelleyBlock) Utxorpc ¶
func (b *ShelleyBlock) Utxorpc() *utxorpc.Block
type ShelleyBlockHeader ¶
type ShelleyBlockHeader struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
Body struct {
cbor.StructAsArray
BlockNumber uint64
Slot uint64
PrevHash common.Blake2b256
IssuerVkey common.IssuerVkey
VrfKey []byte
NonceVrf interface{}
LeaderVrf interface{}
BlockBodySize uint64
BlockBodyHash common.Blake2b256
OpCertHotVkey []byte
OpCertSequenceNumber uint32
OpCertKesPeriod uint32
OpCertSignature []byte
ProtoMajorVersion uint64
ProtoMinorVersion uint64
}
Signature interface{}
// contains filtered or unexported fields
}
func NewShelleyBlockHeaderFromCbor ¶
func NewShelleyBlockHeaderFromCbor(data []byte) (*ShelleyBlockHeader, error)
func (*ShelleyBlockHeader) BlockBodySize ¶
func (h *ShelleyBlockHeader) BlockBodySize() uint64
func (*ShelleyBlockHeader) BlockNumber ¶
func (h *ShelleyBlockHeader) BlockNumber() uint64
func (*ShelleyBlockHeader) Era ¶
func (h *ShelleyBlockHeader) Era() common.Era
func (*ShelleyBlockHeader) Hash ¶
func (h *ShelleyBlockHeader) Hash() string
func (*ShelleyBlockHeader) IssuerVkey ¶
func (h *ShelleyBlockHeader) IssuerVkey() common.IssuerVkey
func (*ShelleyBlockHeader) PrevHash ¶ added in v0.105.0
func (h *ShelleyBlockHeader) PrevHash() string
func (*ShelleyBlockHeader) SlotNumber ¶
func (h *ShelleyBlockHeader) SlotNumber() uint64
func (*ShelleyBlockHeader) UnmarshalCBOR ¶
func (h *ShelleyBlockHeader) UnmarshalCBOR(cborData []byte) error
type ShelleyGenesis ¶ added in v0.96.0
type ShelleyGenesis struct {
cbor.StructAsArray
SystemStart time.Time `json:"systemStart"`
NetworkMagic uint32 `json:"networkMagic"`
NetworkId string `json:"networkid"`
ActiveSlotsCoeff common.GenesisRat `json:"activeSlotsCoeff"`
SecurityParam int `json:"securityParam"`
EpochLength int `json:"epochLength"`
SlotsPerKESPeriod int `json:"slotsPerKESPeriod"`
MaxKESEvolutions int `json:"maxKESEvolutions"`
SlotLength int `json:"slotLength"`
UpdateQuorum int `json:"updateQuorum"`
MaxLovelaceSupply uint64 `json:"maxLovelaceSupply"`
ProtocolParameters ShelleyGenesisProtocolParams `json:"protocolParams"`
GenDelegs map[string]map[string]string `json:"genDelegs"`
InitialFunds map[string]any `json:"initialFunds"`
Staking any `json:"staking"`
}
func NewShelleyGenesisFromFile ¶ added in v0.96.0
func NewShelleyGenesisFromFile(path string) (ShelleyGenesis, error)
func NewShelleyGenesisFromReader ¶ added in v0.96.0
func NewShelleyGenesisFromReader(r io.Reader) (ShelleyGenesis, error)
func (ShelleyGenesis) MarshalCBOR ¶ added in v0.106.2
func (g ShelleyGenesis) MarshalCBOR() ([]byte, error)
type ShelleyGenesisProtocolParams ¶ added in v0.96.0
type ShelleyGenesisProtocolParams struct {
cbor.StructAsArray
MinFeeA uint
MinFeeB uint
MaxBlockBodySize uint
MaxTxSize uint
MaxBlockHeaderSize uint
KeyDeposit uint
PoolDeposit uint
MaxEpoch uint `json:"eMax"`
NOpt uint
A0 *common.GenesisRat
Rho *common.GenesisRat
Tau *common.GenesisRat
Decentralization *common.GenesisRat `json:"decentralisationParam"`
ExtraEntropy map[string]string
ProtocolVersion struct {
Major uint
Minor uint
}
MinUtxoValue uint `json:"minUTxOValue"`
MinPoolCost uint
}
func (ShelleyGenesisProtocolParams) MarshalCBOR ¶ added in v0.106.2
func (p ShelleyGenesisProtocolParams) MarshalCBOR() ([]byte, error)
type ShelleyProtocolParameterUpdate ¶
type ShelleyProtocolParameterUpdate struct {
cbor.DecodeStoreCbor
MinFeeA *uint `cbor:"0,keyasint"`
MinFeeB *uint `cbor:"1,keyasint"`
MaxBlockBodySize *uint `cbor:"2,keyasint"`
MaxTxSize *uint `cbor:"3,keyasint"`
MaxBlockHeaderSize *uint `cbor:"4,keyasint"`
KeyDeposit *uint `cbor:"5,keyasint"`
PoolDeposit *uint `cbor:"6,keyasint"`
MaxEpoch *uint `cbor:"7,keyasint"`
NOpt *uint `cbor:"8,keyasint"`
A0 *cbor.Rat `cbor:"9,keyasint"`
Rho *cbor.Rat `cbor:"10,keyasint"`
Tau *cbor.Rat `cbor:"11,keyasint"`
Decentralization *cbor.Rat `cbor:"12,keyasint"`
Nonce *common.Nonce `cbor:"13,keyasint"`
ProtocolVersion *common.ProtocolParametersProtocolVersion `cbor:"14,keyasint"`
MinUtxoValue *uint `cbor:"15,keyasint"`
}
func (ShelleyProtocolParameterUpdate) IsProtocolParameterUpdate ¶ added in v0.95.0
func (ShelleyProtocolParameterUpdate) IsProtocolParameterUpdate()
func (*ShelleyProtocolParameterUpdate) UnmarshalCBOR ¶ added in v0.95.0
func (u *ShelleyProtocolParameterUpdate) UnmarshalCBOR(data []byte) error
type ShelleyProtocolParameters ¶
type ShelleyProtocolParameters struct {
cbor.StructAsArray
MinFeeA uint
MinFeeB uint
MaxBlockBodySize uint
MaxTxSize uint
MaxBlockHeaderSize uint
KeyDeposit uint
PoolDeposit uint
MaxEpoch uint
NOpt uint
A0 *cbor.Rat
Rho *cbor.Rat
Tau *cbor.Rat
Decentralization *cbor.Rat
Nonce *common.Nonce
ProtocolMajor uint
ProtocolMinor uint
MinUtxoValue uint
}
func UpgradePParams ¶ added in v0.103.0
func UpgradePParams(prevPParams any) ShelleyProtocolParameters
func (*ShelleyProtocolParameters) Update ¶ added in v0.98.0
func (p *ShelleyProtocolParameters) Update( paramUpdate *ShelleyProtocolParameterUpdate, )
func (*ShelleyProtocolParameters) UpdateFromGenesis ¶ added in v0.98.0
func (p *ShelleyProtocolParameters) UpdateFromGenesis(genesis *ShelleyGenesis)
func (*ShelleyProtocolParameters) Utxorpc ¶ added in v0.103.0
func (p *ShelleyProtocolParameters) Utxorpc() *cardano.PParams
type ShelleyTransaction ¶
type ShelleyTransaction struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
Body ShelleyTransactionBody
WitnessSet ShelleyTransactionWitnessSet
TxMetadata *cbor.LazyValue
}
func NewShelleyTransactionFromCbor ¶
func NewShelleyTransactionFromCbor(data []byte) (*ShelleyTransaction, error)
func (ShelleyTransaction) AssetMint ¶
func (t ShelleyTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (ShelleyTransaction) AuxDataHash ¶
func (t ShelleyTransaction) AuxDataHash() *common.Blake2b256
func (*ShelleyTransaction) Cbor ¶
func (t *ShelleyTransaction) Cbor() []byte
func (ShelleyTransaction) Certificates ¶
func (t ShelleyTransaction) Certificates() []common.Certificate
func (ShelleyTransaction) Collateral ¶
func (t ShelleyTransaction) Collateral() []common.TransactionInput
func (ShelleyTransaction) CollateralReturn ¶
func (t ShelleyTransaction) CollateralReturn() common.TransactionOutput
func (ShelleyTransaction) Consumed ¶
func (t ShelleyTransaction) Consumed() []common.TransactionInput
func (ShelleyTransaction) CurrentTreasuryValue ¶
func (t ShelleyTransaction) CurrentTreasuryValue() int64
func (ShelleyTransaction) Donation ¶
func (t ShelleyTransaction) Donation() uint64
func (ShelleyTransaction) Fee ¶
func (t ShelleyTransaction) Fee() uint64
func (ShelleyTransaction) Hash ¶
func (t ShelleyTransaction) Hash() string
func (ShelleyTransaction) Inputs ¶
func (t ShelleyTransaction) Inputs() []common.TransactionInput
func (ShelleyTransaction) IsValid ¶
func (t ShelleyTransaction) IsValid() bool
func (ShelleyTransaction) Metadata ¶
func (t ShelleyTransaction) Metadata() *cbor.LazyValue
func (ShelleyTransaction) Outputs ¶
func (t ShelleyTransaction) Outputs() []common.TransactionOutput
func (ShelleyTransaction) Produced ¶
func (t ShelleyTransaction) Produced() []common.Utxo
func (ShelleyTransaction) ProposalProcedures ¶
func (t ShelleyTransaction) ProposalProcedures() []common.ProposalProcedure
func (*ShelleyTransaction) ProtocolParameterUpdates ¶ added in v0.95.0
func (t *ShelleyTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (ShelleyTransaction) ReferenceInputs ¶
func (t ShelleyTransaction) ReferenceInputs() []common.TransactionInput
func (ShelleyTransaction) RequiredSigners ¶
func (t ShelleyTransaction) RequiredSigners() []common.Blake2b224
func (ShelleyTransaction) ScriptDataHash ¶
func (t ShelleyTransaction) ScriptDataHash() *common.Blake2b256
func (ShelleyTransaction) TTL ¶
func (t ShelleyTransaction) TTL() uint64
func (ShelleyTransaction) TotalCollateral ¶
func (t ShelleyTransaction) TotalCollateral() uint64
func (ShelleyTransaction) Type ¶ added in v0.94.0
func (ShelleyTransaction) Type() int
func (ShelleyTransaction) Utxorpc ¶
func (t ShelleyTransaction) Utxorpc() *utxorpc.Tx
func (ShelleyTransaction) ValidityIntervalStart ¶
func (t ShelleyTransaction) ValidityIntervalStart() uint64
func (ShelleyTransaction) VotingProcedures ¶
func (t ShelleyTransaction) VotingProcedures() common.VotingProcedures
func (ShelleyTransaction) Withdrawals ¶
func (t ShelleyTransaction) Withdrawals() map[*common.Address]uint64
type ShelleyTransactionBody ¶
type ShelleyTransactionBody struct {
cbor.DecodeStoreCbor
TxInputs []ShelleyTransactionInput `cbor:"0,keyasint,omitempty"`
TxOutputs []ShelleyTransactionOutput `cbor:"1,keyasint,omitempty"`
TxFee uint64 `cbor:"2,keyasint,omitempty"`
Ttl uint64 `cbor:"3,keyasint,omitempty"`
TxCertificates []common.CertificateWrapper `cbor:"4,keyasint,omitempty"`
TxWithdrawals map[*common.Address]uint64 `cbor:"5,keyasint,omitempty"`
Update struct {
cbor.StructAsArray
ProtocolParamUpdates map[common.Blake2b224]ShelleyProtocolParameterUpdate
Epoch uint64
} `cbor:"6,keyasint,omitempty"`
TxAuxDataHash *common.Blake2b256 `cbor:"7,keyasint,omitempty"`
// contains filtered or unexported fields
}
func NewShelleyTransactionBodyFromCbor ¶
func NewShelleyTransactionBodyFromCbor( data []byte, ) (*ShelleyTransactionBody, error)
func (*ShelleyTransactionBody) AssetMint ¶
func (b *ShelleyTransactionBody) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (*ShelleyTransactionBody) AuxDataHash ¶
func (b *ShelleyTransactionBody) AuxDataHash() *common.Blake2b256
func (*ShelleyTransactionBody) Certificates ¶
func (b *ShelleyTransactionBody) Certificates() []common.Certificate
func (*ShelleyTransactionBody) Collateral ¶
func (b *ShelleyTransactionBody) Collateral() []common.TransactionInput
func (*ShelleyTransactionBody) CollateralReturn ¶
func (b *ShelleyTransactionBody) CollateralReturn() common.TransactionOutput
func (*ShelleyTransactionBody) CurrentTreasuryValue ¶
func (b *ShelleyTransactionBody) CurrentTreasuryValue() int64
func (*ShelleyTransactionBody) Donation ¶
func (b *ShelleyTransactionBody) Donation() uint64
func (*ShelleyTransactionBody) Fee ¶
func (b *ShelleyTransactionBody) Fee() uint64
func (*ShelleyTransactionBody) Hash ¶
func (b *ShelleyTransactionBody) Hash() string
func (*ShelleyTransactionBody) Inputs ¶
func (b *ShelleyTransactionBody) Inputs() []common.TransactionInput
func (*ShelleyTransactionBody) Outputs ¶
func (b *ShelleyTransactionBody) Outputs() []common.TransactionOutput
func (*ShelleyTransactionBody) ProposalProcedures ¶
func (b *ShelleyTransactionBody) ProposalProcedures() []common.ProposalProcedure
func (*ShelleyTransactionBody) ProtocolParameterUpdates ¶ added in v0.95.0
func (b *ShelleyTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (*ShelleyTransactionBody) ReferenceInputs ¶
func (b *ShelleyTransactionBody) ReferenceInputs() []common.TransactionInput
func (*ShelleyTransactionBody) RequiredSigners ¶
func (b *ShelleyTransactionBody) RequiredSigners() []common.Blake2b224
func (*ShelleyTransactionBody) ScriptDataHash ¶
func (b *ShelleyTransactionBody) ScriptDataHash() *common.Blake2b256
func (*ShelleyTransactionBody) TTL ¶
func (b *ShelleyTransactionBody) TTL() uint64
func (*ShelleyTransactionBody) TotalCollateral ¶
func (b *ShelleyTransactionBody) TotalCollateral() uint64
func (*ShelleyTransactionBody) UnmarshalCBOR ¶
func (b *ShelleyTransactionBody) UnmarshalCBOR(cborData []byte) error
func (*ShelleyTransactionBody) Utxorpc ¶
func (b *ShelleyTransactionBody) Utxorpc() *utxorpc.Tx
func (*ShelleyTransactionBody) ValidityIntervalStart ¶
func (b *ShelleyTransactionBody) ValidityIntervalStart() uint64
func (*ShelleyTransactionBody) VotingProcedures ¶
func (b *ShelleyTransactionBody) VotingProcedures() common.VotingProcedures
func (*ShelleyTransactionBody) Withdrawals ¶
func (b *ShelleyTransactionBody) Withdrawals() map[*common.Address]uint64
type ShelleyTransactionInput ¶
type ShelleyTransactionInput struct {
cbor.StructAsArray
TxId common.Blake2b256
OutputIndex uint32
}
func NewShelleyTransactionInput ¶
func NewShelleyTransactionInput(hash string, idx int) ShelleyTransactionInput
func (ShelleyTransactionInput) Id ¶
func (i ShelleyTransactionInput) Id() common.Blake2b256
func (ShelleyTransactionInput) Index ¶
func (i ShelleyTransactionInput) Index() uint32
func (ShelleyTransactionInput) MarshalJSON ¶
func (i ShelleyTransactionInput) MarshalJSON() ([]byte, error)
func (ShelleyTransactionInput) String ¶
func (i ShelleyTransactionInput) String() string
func (ShelleyTransactionInput) Utxorpc ¶
func (i ShelleyTransactionInput) Utxorpc() *utxorpc.TxInput
type ShelleyTransactionOutput ¶
type ShelleyTransactionOutput struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
OutputAddress common.Address `json:"address"`
OutputAmount uint64 `json:"amount"`
}
func NewShelleyTransactionOutputFromCbor ¶
func NewShelleyTransactionOutputFromCbor( data []byte, ) (*ShelleyTransactionOutput, error)
func (ShelleyTransactionOutput) Address ¶
func (o ShelleyTransactionOutput) Address() common.Address
func (ShelleyTransactionOutput) Amount ¶
func (o ShelleyTransactionOutput) Amount() uint64
func (ShelleyTransactionOutput) Assets ¶
func (o ShelleyTransactionOutput) Assets() *common.MultiAsset[common.MultiAssetTypeOutput]
func (ShelleyTransactionOutput) Datum ¶
func (o ShelleyTransactionOutput) Datum() *cbor.LazyValue
func (ShelleyTransactionOutput) DatumHash ¶
func (o ShelleyTransactionOutput) DatumHash() *common.Blake2b256
func (ShelleyTransactionOutput) Utxorpc ¶
func (o ShelleyTransactionOutput) Utxorpc() *utxorpc.TxOutput
type ShelleyTransactionWitnessSet ¶
type ShelleyTransactionWitnessSet struct {
cbor.DecodeStoreCbor
VkeyWitnesses []interface{} `cbor:"0,keyasint,omitempty"`
MultisigScripts []interface{} `cbor:"1,keyasint,omitempty"`
BootstrapWitnesses []interface{} `cbor:"2,keyasint,omitempty"`
}
func (*ShelleyTransactionWitnessSet) UnmarshalCBOR ¶
func (t *ShelleyTransactionWitnessSet) UnmarshalCBOR(cborData []byte) error
Click to show internal directories.
Click to hide internal directories.