Documentation
¶
Index ¶
- Constants
- Variables
- func MinCoinTxOut(txOut common.TransactionOutput, pparams common.ProtocolParameters) (uint64, error)
- func MinFeeTx(tx common.Transaction, pparams common.ProtocolParameters) (uint64, error)
- func UtxoValidateBadInputsUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateCollateralContainsNonAda(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateCollateralEqBalance(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateDisjointRefInputs(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateExUnitsTooBigUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateFeeTooSmallUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateInputSetEmptyUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateInsufficientCollateral(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateMaxTxSizeUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateNoCollateralInputs(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateOutputBootAddrAttrsTooBig(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateOutputTooBigUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateOutputTooSmallUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateOutsideValidityIntervalUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateTooManyCollateralInputs(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateValueNotConservedUtxo(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateWrongNetwork(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- func UtxoValidateWrongNetworkWithdrawal(tx common.Transaction, slot uint64, ls common.LedgerState, ...) error
- type ConwayBlock
- func (b *ConwayBlock) BlockBodySize() uint64
- func (b *ConwayBlock) BlockNumber() uint64
- func (b *ConwayBlock) Era() common.Era
- func (b *ConwayBlock) Hash() string
- func (b *ConwayBlock) Header() common.BlockHeader
- func (b *ConwayBlock) IssuerVkey() common.IssuerVkey
- func (b *ConwayBlock) PrevHash() string
- func (b *ConwayBlock) SlotNumber() uint64
- func (b *ConwayBlock) Transactions() []common.Transaction
- func (ConwayBlock) Type() int
- func (b *ConwayBlock) UnmarshalCBOR(cborData []byte) error
- func (b *ConwayBlock) Utxorpc() *utxorpc.Block
- type ConwayBlockHeader
- type ConwayGenesis
- type ConwayGenesisCommittee
- type ConwayGenesisConstitution
- type ConwayGenesisConstitutionAnchor
- type ConwayGenesisDRepVotingThresholds
- type ConwayGenesisPoolVotingThresholds
- type ConwayProtocolParameterUpdate
- type ConwayProtocolParameters
- type ConwayRedeemerKey
- type ConwayRedeemerValue
- type ConwayRedeemers
- type ConwayTransaction
- func (t ConwayTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
- func (t ConwayTransaction) AuxDataHash() *common.Blake2b256
- func (t *ConwayTransaction) Cbor() []byte
- func (t ConwayTransaction) Certificates() []common.Certificate
- func (t ConwayTransaction) Collateral() []common.TransactionInput
- func (t ConwayTransaction) CollateralReturn() common.TransactionOutput
- func (t ConwayTransaction) Consumed() []common.TransactionInput
- func (t ConwayTransaction) CurrentTreasuryValue() int64
- func (t ConwayTransaction) Donation() uint64
- func (t ConwayTransaction) Fee() uint64
- func (t ConwayTransaction) Hash() string
- func (t ConwayTransaction) Inputs() []common.TransactionInput
- func (t ConwayTransaction) IsValid() bool
- func (t ConwayTransaction) Metadata() *cbor.LazyValue
- func (t ConwayTransaction) Outputs() []common.TransactionOutput
- func (t ConwayTransaction) Produced() []common.Utxo
- func (t ConwayTransaction) ProposalProcedures() []common.ProposalProcedure
- func (t ConwayTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (t ConwayTransaction) ReferenceInputs() []common.TransactionInput
- func (t ConwayTransaction) RequiredSigners() []common.Blake2b224
- func (t ConwayTransaction) ScriptDataHash() *common.Blake2b256
- func (t ConwayTransaction) TTL() uint64
- func (t ConwayTransaction) TotalCollateral() uint64
- func (ConwayTransaction) Type() int
- func (t *ConwayTransaction) UnmarshalCBOR(data []byte) error
- func (t *ConwayTransaction) Utxorpc() *utxorpc.Tx
- func (t ConwayTransaction) ValidityIntervalStart() uint64
- func (t ConwayTransaction) VotingProcedures() common.VotingProcedures
- func (t ConwayTransaction) Withdrawals() map[*common.Address]uint64
- func (t ConwayTransaction) Witnesses() common.TransactionWitnessSet
- type ConwayTransactionBody
- func (b *ConwayTransactionBody) CurrentTreasuryValue() int64
- func (b *ConwayTransactionBody) Donation() uint64
- func (b *ConwayTransactionBody) Inputs() []common.TransactionInput
- func (b *ConwayTransactionBody) ProposalProcedures() []common.ProposalProcedure
- func (b *ConwayTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
- func (b *ConwayTransactionBody) UnmarshalCBOR(cborData []byte) error
- func (b *ConwayTransactionBody) VotingProcedures() common.VotingProcedures
- type ConwayTransactionInputSet
- type ConwayTransactionWitnessSet
- type DRepVotingThresholds
- type NonDisjointRefInputsError
- type PoolVotingThresholds
Constants ¶
View Source
const ( EraIdConway = 6 EraNameConway = "Conway" BlockTypeConway = 7 BlockHeaderTypeConway = 6 TxTypeConway = 6 )
Variables ¶
View Source
var EraConway = common.Era{ Id: EraIdConway, Name: EraNameConway, }
View Source
var UtxoValidationRules = []common.UtxoValidationRuleFunc{ UtxoValidateDisjointRefInputs, UtxoValidateOutsideValidityIntervalUtxo, UtxoValidateInputSetEmptyUtxo, UtxoValidateFeeTooSmallUtxo, UtxoValidateInsufficientCollateral, UtxoValidateCollateralContainsNonAda, UtxoValidateCollateralEqBalance, UtxoValidateNoCollateralInputs, UtxoValidateBadInputsUtxo, UtxoValidateValueNotConservedUtxo, UtxoValidateOutputTooSmallUtxo, UtxoValidateOutputTooBigUtxo, UtxoValidateOutputBootAddrAttrsTooBig, UtxoValidateWrongNetwork, UtxoValidateWrongNetworkWithdrawal, UtxoValidateMaxTxSizeUtxo, UtxoValidateExUnitsTooBigUtxo, UtxoValidateTooManyCollateralInputs, }
Functions ¶
func MinCoinTxOut ¶ added in v0.112.0
func MinCoinTxOut( txOut common.TransactionOutput, pparams common.ProtocolParameters, ) (uint64, error)
MinCoinTxOut calculates the minimum coin for a transaction output based on protocol parameters
func MinFeeTx ¶ added in v0.112.0
func MinFeeTx( tx common.Transaction, pparams common.ProtocolParameters, ) (uint64, error)
MinFeeTx calculates the minimum required fee for a transaction based on protocol parameters
func UtxoValidateBadInputsUtxo ¶ added in v0.112.0
func UtxoValidateBadInputsUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateCollateralContainsNonAda ¶ added in v0.112.0
func UtxoValidateCollateralContainsNonAda( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateCollateralEqBalance ¶ added in v0.112.0
func UtxoValidateCollateralEqBalance( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
UtxoValidateCollateralEqBalance ensures that the collateral return amount is equal to the collateral input amount minus the total collateral
func UtxoValidateDisjointRefInputs ¶ added in v0.112.0
func UtxoValidateDisjointRefInputs( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateExUnitsTooBigUtxo ¶ added in v0.112.0
func UtxoValidateExUnitsTooBigUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateFeeTooSmallUtxo ¶ added in v0.112.0
func UtxoValidateFeeTooSmallUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateInputSetEmptyUtxo ¶ added in v0.112.0
func UtxoValidateInputSetEmptyUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateInsufficientCollateral ¶ added in v0.112.0
func UtxoValidateInsufficientCollateral( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateMaxTxSizeUtxo ¶ added in v0.112.0
func UtxoValidateMaxTxSizeUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateNoCollateralInputs ¶ added in v0.112.0
func UtxoValidateNoCollateralInputs( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateOutputBootAddrAttrsTooBig ¶ added in v0.112.0
func UtxoValidateOutputBootAddrAttrsTooBig( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateOutputTooBigUtxo ¶ added in v0.112.0
func UtxoValidateOutputTooBigUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateOutputTooSmallUtxo ¶ added in v0.112.0
func UtxoValidateOutputTooSmallUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateOutsideValidityIntervalUtxo ¶ added in v0.112.0
func UtxoValidateOutsideValidityIntervalUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateTooManyCollateralInputs ¶ added in v0.112.0
func UtxoValidateTooManyCollateralInputs( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateValueNotConservedUtxo ¶ added in v0.112.0
func UtxoValidateValueNotConservedUtxo( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateWrongNetwork ¶ added in v0.112.0
func UtxoValidateWrongNetwork( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
func UtxoValidateWrongNetworkWithdrawal ¶ added in v0.112.0
func UtxoValidateWrongNetworkWithdrawal( tx common.Transaction, slot uint64, ls common.LedgerState, pp common.ProtocolParameters, ) error
Types ¶
type ConwayBlock ¶
type ConwayBlock struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
BlockHeader *ConwayBlockHeader
TransactionBodies []ConwayTransactionBody
TransactionWitnessSets []ConwayTransactionWitnessSet
TransactionMetadataSet map[uint]*cbor.LazyValue
InvalidTransactions []uint
}
func NewConwayBlockFromCbor ¶
func NewConwayBlockFromCbor(data []byte) (*ConwayBlock, error)
func (*ConwayBlock) BlockBodySize ¶
func (b *ConwayBlock) BlockBodySize() uint64
func (*ConwayBlock) BlockNumber ¶
func (b *ConwayBlock) BlockNumber() uint64
func (*ConwayBlock) Era ¶
func (b *ConwayBlock) Era() common.Era
func (*ConwayBlock) Hash ¶
func (b *ConwayBlock) Hash() string
func (*ConwayBlock) Header ¶
func (b *ConwayBlock) Header() common.BlockHeader
func (*ConwayBlock) IssuerVkey ¶
func (b *ConwayBlock) IssuerVkey() common.IssuerVkey
func (*ConwayBlock) PrevHash ¶ added in v0.105.0
func (b *ConwayBlock) PrevHash() string
func (*ConwayBlock) SlotNumber ¶
func (b *ConwayBlock) SlotNumber() uint64
func (*ConwayBlock) Transactions ¶
func (b *ConwayBlock) Transactions() []common.Transaction
func (ConwayBlock) Type ¶ added in v0.94.0
func (ConwayBlock) Type() int
func (*ConwayBlock) UnmarshalCBOR ¶
func (b *ConwayBlock) UnmarshalCBOR(cborData []byte) error
func (*ConwayBlock) Utxorpc ¶
func (b *ConwayBlock) Utxorpc() *utxorpc.Block
type ConwayBlockHeader ¶
type ConwayBlockHeader struct {
babbage.BabbageBlockHeader
}
func NewConwayBlockHeaderFromCbor ¶
func NewConwayBlockHeaderFromCbor(data []byte) (*ConwayBlockHeader, error)
func (*ConwayBlockHeader) Era ¶
func (h *ConwayBlockHeader) Era() common.Era
type ConwayGenesis ¶ added in v0.96.0
type ConwayGenesis struct {
PoolVotingThresholds ConwayGenesisPoolVotingThresholds `json:"poolVotingThresholds"`
DRepVotingThresholds ConwayGenesisDRepVotingThresholds `json:"dRepVotingThresholds"`
MinCommitteeSize uint `json:"committeeMinSize"`
CommitteeTermLimit uint64 `json:"committeeMaxTermLength"`
GovActionValidityPeriod uint64 `json:"govActionLifetime"`
GovActionDeposit uint64 `json:"govActionDeposit"`
DRepDeposit uint64 `json:"dRepDeposit"`
DRepInactivityPeriod uint64 `json:"dRepActivity"`
MinFeeRefScriptCostPerByte *common.GenesisRat `json:"minFeeRefScriptCostPerByte"`
PlutusV3CostModel []int64 `json:"plutusV3CostModel"`
Constitution ConwayGenesisConstitution `json:"constitution"`
Committee ConwayGenesisCommittee `json:"committee"`
}
func NewConwayGenesisFromFile ¶ added in v0.96.0
func NewConwayGenesisFromFile(path string) (ConwayGenesis, error)
func NewConwayGenesisFromReader ¶ added in v0.96.0
func NewConwayGenesisFromReader(r io.Reader) (ConwayGenesis, error)
type ConwayGenesisCommittee ¶ added in v0.96.0
type ConwayGenesisConstitution ¶ added in v0.96.0
type ConwayGenesisConstitution struct {
Anchor ConwayGenesisConstitutionAnchor
Script string
}
type ConwayGenesisConstitutionAnchor ¶ added in v0.96.0
type ConwayGenesisDRepVotingThresholds ¶ added in v0.96.0
type ConwayGenesisDRepVotingThresholds struct {
MotionNoConfidence *common.GenesisRat
CommitteeNormal *common.GenesisRat
CommitteeNoConfidence *common.GenesisRat
UpdateToConstitution *common.GenesisRat
HardForkInitiation *common.GenesisRat
PpNetworkGroup *common.GenesisRat
PpEconomicGroup *common.GenesisRat
PpTechnicalGroup *common.GenesisRat
PpGovGroup *common.GenesisRat
TreasuryWithdrawal *common.GenesisRat
}
type ConwayGenesisPoolVotingThresholds ¶ added in v0.96.0
type ConwayGenesisPoolVotingThresholds struct {
CommitteeNormal *common.GenesisRat
CommitteeNoConfidence *common.GenesisRat
HardForkInitiation *common.GenesisRat
MotionNoConfidence *common.GenesisRat
PpSecurityGroup *common.GenesisRat
}
type ConwayProtocolParameterUpdate ¶
type ConwayProtocolParameterUpdate struct {
babbage.BabbageProtocolParameterUpdate
PoolVotingThresholds *PoolVotingThresholds `cbor:"25,keyasint"`
DRepVotingThresholds *DRepVotingThresholds `cbor:"26,keyasint"`
MinCommitteeSize *uint `cbor:"27,keyasint"`
CommitteeTermLimit *uint64 `cbor:"28,keyasint"`
GovActionValidityPeriod *uint64 `cbor:"29,keyasint"`
GovActionDeposit *uint64 `cbor:"30,keyasint"`
DRepDeposit *uint64 `cbor:"31,keyasint"`
DRepInactivityPeriod *uint64 `cbor:"32,keyasint"`
MinFeeRefScriptCostPerByte *cbor.Rat `cbor:"33,keyasint"`
}
func (*ConwayProtocolParameterUpdate) UnmarshalCBOR ¶ added in v0.99.0
func (u *ConwayProtocolParameterUpdate) UnmarshalCBOR(data []byte) error
type ConwayProtocolParameters ¶
type ConwayProtocolParameters 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
ProtocolVersion common.ProtocolParametersProtocolVersion
MinPoolCost uint64
AdaPerUtxoByte uint64
CostModels map[uint][]int64
ExecutionCosts common.ExUnitPrice
MaxTxExUnits common.ExUnits
MaxBlockExUnits common.ExUnits
MaxValueSize uint
CollateralPercentage uint
MaxCollateralInputs uint
PoolVotingThresholds PoolVotingThresholds
DRepVotingThresholds DRepVotingThresholds
MinCommitteeSize uint
CommitteeTermLimit uint64
GovActionValidityPeriod uint64
GovActionDeposit uint64
DRepDeposit uint64
DRepInactivityPeriod uint64
MinFeeRefScriptCostPerByte *cbor.Rat
}
func UpgradePParams ¶ added in v0.103.0
func UpgradePParams( prevPParams babbage.BabbageProtocolParameters, ) ConwayProtocolParameters
func (*ConwayProtocolParameters) Update ¶ added in v0.99.0
func (p *ConwayProtocolParameters) Update( paramUpdate *ConwayProtocolParameterUpdate, )
func (*ConwayProtocolParameters) UpdateFromGenesis ¶ added in v0.99.0
func (p *ConwayProtocolParameters) UpdateFromGenesis(genesis *ConwayGenesis)
func (*ConwayProtocolParameters) Utxorpc ¶ added in v0.102.0
func (p *ConwayProtocolParameters) Utxorpc() *cardano.PParams
type ConwayRedeemerKey ¶
type ConwayRedeemerKey struct {
cbor.StructAsArray
Tag common.RedeemerTag
Index uint32
}
type ConwayRedeemerValue ¶
type ConwayRedeemers ¶
type ConwayRedeemers struct {
Redeemers map[ConwayRedeemerKey]ConwayRedeemerValue
// contains filtered or unexported fields
}
func (ConwayRedeemers) Indexes ¶ added in v0.110.0
func (r ConwayRedeemers) Indexes(tag common.RedeemerTag) []uint
func (*ConwayRedeemers) UnmarshalCBOR ¶
func (r *ConwayRedeemers) UnmarshalCBOR(cborData []byte) error
func (ConwayRedeemers) Value ¶ added in v0.110.0
func (r ConwayRedeemers) Value( index uint, tag common.RedeemerTag, ) (cbor.LazyValue, common.ExUnits)
type ConwayTransaction ¶
type ConwayTransaction struct {
cbor.StructAsArray
cbor.DecodeStoreCbor
Body ConwayTransactionBody
WitnessSet ConwayTransactionWitnessSet
TxIsValid bool
TxMetadata *cbor.LazyValue
}
func NewConwayTransactionFromCbor ¶
func NewConwayTransactionFromCbor(data []byte) (*ConwayTransaction, error)
func (ConwayTransaction) AssetMint ¶
func (t ConwayTransaction) AssetMint() *common.MultiAsset[common.MultiAssetTypeMint]
func (ConwayTransaction) AuxDataHash ¶
func (t ConwayTransaction) AuxDataHash() *common.Blake2b256
func (*ConwayTransaction) Cbor ¶
func (t *ConwayTransaction) Cbor() []byte
func (ConwayTransaction) Certificates ¶
func (t ConwayTransaction) Certificates() []common.Certificate
func (ConwayTransaction) Collateral ¶
func (t ConwayTransaction) Collateral() []common.TransactionInput
func (ConwayTransaction) CollateralReturn ¶
func (t ConwayTransaction) CollateralReturn() common.TransactionOutput
func (ConwayTransaction) Consumed ¶
func (t ConwayTransaction) Consumed() []common.TransactionInput
func (ConwayTransaction) CurrentTreasuryValue ¶
func (t ConwayTransaction) CurrentTreasuryValue() int64
func (ConwayTransaction) Donation ¶
func (t ConwayTransaction) Donation() uint64
func (ConwayTransaction) Fee ¶
func (t ConwayTransaction) Fee() uint64
func (ConwayTransaction) Hash ¶
func (t ConwayTransaction) Hash() string
func (ConwayTransaction) Inputs ¶
func (t ConwayTransaction) Inputs() []common.TransactionInput
func (ConwayTransaction) IsValid ¶
func (t ConwayTransaction) IsValid() bool
func (ConwayTransaction) Metadata ¶
func (t ConwayTransaction) Metadata() *cbor.LazyValue
func (ConwayTransaction) Outputs ¶
func (t ConwayTransaction) Outputs() []common.TransactionOutput
func (ConwayTransaction) Produced ¶
func (t ConwayTransaction) Produced() []common.Utxo
func (ConwayTransaction) ProposalProcedures ¶
func (t ConwayTransaction) ProposalProcedures() []common.ProposalProcedure
func (ConwayTransaction) ProtocolParameterUpdates ¶ added in v0.95.0
func (t ConwayTransaction) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (ConwayTransaction) ReferenceInputs ¶
func (t ConwayTransaction) ReferenceInputs() []common.TransactionInput
func (ConwayTransaction) RequiredSigners ¶
func (t ConwayTransaction) RequiredSigners() []common.Blake2b224
func (ConwayTransaction) ScriptDataHash ¶
func (t ConwayTransaction) ScriptDataHash() *common.Blake2b256
func (ConwayTransaction) TTL ¶
func (t ConwayTransaction) TTL() uint64
func (ConwayTransaction) TotalCollateral ¶
func (t ConwayTransaction) TotalCollateral() uint64
func (ConwayTransaction) Type ¶ added in v0.94.0
func (ConwayTransaction) Type() int
func (*ConwayTransaction) UnmarshalCBOR ¶ added in v0.114.1
func (t *ConwayTransaction) UnmarshalCBOR(data []byte) error
func (*ConwayTransaction) Utxorpc ¶
func (t *ConwayTransaction) Utxorpc() *utxorpc.Tx
func (ConwayTransaction) ValidityIntervalStart ¶
func (t ConwayTransaction) ValidityIntervalStart() uint64
func (ConwayTransaction) VotingProcedures ¶
func (t ConwayTransaction) VotingProcedures() common.VotingProcedures
func (ConwayTransaction) Withdrawals ¶
func (t ConwayTransaction) Withdrawals() map[*common.Address]uint64
func (ConwayTransaction) Witnesses ¶ added in v0.110.0
func (t ConwayTransaction) Witnesses() common.TransactionWitnessSet
type ConwayTransactionBody ¶
type ConwayTransactionBody struct {
babbage.BabbageTransactionBody
TxInputs ConwayTransactionInputSet `cbor:"0,keyasint,omitempty"`
TxVotingProcedures common.VotingProcedures `cbor:"19,keyasint,omitempty"`
TxProposalProcedures []common.ProposalProcedure `cbor:"20,keyasint,omitempty"`
TxCurrentTreasuryValue int64 `cbor:"21,keyasint,omitempty"`
TxDonation uint64 `cbor:"22,keyasint,omitempty"`
}
func NewConwayTransactionBodyFromCbor ¶
func NewConwayTransactionBodyFromCbor( data []byte, ) (*ConwayTransactionBody, error)
func (*ConwayTransactionBody) CurrentTreasuryValue ¶
func (b *ConwayTransactionBody) CurrentTreasuryValue() int64
func (*ConwayTransactionBody) Donation ¶
func (b *ConwayTransactionBody) Donation() uint64
func (*ConwayTransactionBody) Inputs ¶ added in v0.108.1
func (b *ConwayTransactionBody) Inputs() []common.TransactionInput
func (*ConwayTransactionBody) ProposalProcedures ¶
func (b *ConwayTransactionBody) ProposalProcedures() []common.ProposalProcedure
func (*ConwayTransactionBody) ProtocolParameterUpdates ¶ added in v0.95.0
func (b *ConwayTransactionBody) ProtocolParameterUpdates() (uint64, map[common.Blake2b224]common.ProtocolParameterUpdate)
func (*ConwayTransactionBody) UnmarshalCBOR ¶
func (b *ConwayTransactionBody) UnmarshalCBOR(cborData []byte) error
func (*ConwayTransactionBody) VotingProcedures ¶
func (b *ConwayTransactionBody) VotingProcedures() common.VotingProcedures
type ConwayTransactionInputSet ¶ added in v0.108.1
type ConwayTransactionInputSet struct {
// contains filtered or unexported fields
}
func NewConwayTransactionInputSet ¶ added in v0.112.0
func NewConwayTransactionInputSet( items []shelley.ShelleyTransactionInput, ) ConwayTransactionInputSet
func (*ConwayTransactionInputSet) Items ¶ added in v0.108.1
func (s *ConwayTransactionInputSet) Items() []shelley.ShelleyTransactionInput
func (*ConwayTransactionInputSet) SetItems ¶ added in v0.112.0
func (s *ConwayTransactionInputSet) SetItems( items []shelley.ShelleyTransactionInput, )
func (*ConwayTransactionInputSet) UnmarshalCBOR ¶ added in v0.108.1
func (s *ConwayTransactionInputSet) UnmarshalCBOR(data []byte) error
type ConwayTransactionWitnessSet ¶
type ConwayTransactionWitnessSet struct {
babbage.BabbageTransactionWitnessSet
WsRedeemers ConwayRedeemers `cbor:"5,keyasint,omitempty"`
WsPlutusV3Scripts [][]byte `cbor:"7,keyasint,omitempty"`
}
func (ConwayTransactionWitnessSet) PlutusV3Scripts ¶
func (w ConwayTransactionWitnessSet) PlutusV3Scripts() [][]byte
func (ConwayTransactionWitnessSet) Redeemers ¶
func (w ConwayTransactionWitnessSet) Redeemers() common.TransactionWitnessRedeemers
func (*ConwayTransactionWitnessSet) UnmarshalCBOR ¶
func (w *ConwayTransactionWitnessSet) UnmarshalCBOR(cborData []byte) error
type DRepVotingThresholds ¶
type DRepVotingThresholds struct {
cbor.StructAsArray
MotionNoConfidence cbor.Rat
CommitteeNormal cbor.Rat
CommitteeNoConfidence cbor.Rat
UpdateToConstitution cbor.Rat
HardForkInitiation cbor.Rat
PpNetworkGroup cbor.Rat
PpEconomicGroup cbor.Rat
PpTechnicalGroup cbor.Rat
PpGovGroup cbor.Rat
TreasuryWithdrawal cbor.Rat
}
type NonDisjointRefInputsError ¶ added in v0.112.0
type NonDisjointRefInputsError struct {
Inputs []common.TransactionInput
}
func (NonDisjointRefInputsError) Error ¶ added in v0.112.0
func (e NonDisjointRefInputsError) Error() string
Click to show internal directories.
Click to hide internal directories.