Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToUtxorpcCardanoCostModels(models map[uint][]int64) *cardano.CostModels
- func RegisterEra(era Era)
- type AddrKeyHash
- type Address
- func (a Address) Bytes() []byte
- func (a *Address) MarshalCBOR() ([]byte, error)
- func (a Address) MarshalJSON() ([]byte, error)
- func (a Address) PaymentAddress() *Address
- func (a *Address) PaymentKeyHash() Blake2b224
- func (a Address) StakeAddress() *Address
- func (a *Address) StakeKeyHash() Blake2b224
- func (a Address) String() string
- func (a *Address) UnmarshalCBOR(data []byte) error
- type AssetFingerprint
- type AuthCommitteeHotCertificate
- type Blake2b160
- type Blake2b224
- type Blake2b256
- type Block
- type BlockHeader
- type Certificate
- type CertificateWrapper
- type DeregistrationCertificate
- type DeregistrationDrepCertificate
- type Drep
- type Era
- type ExUnit
- type ExUnitPrice
- type GenesisKeyDelegationCertificate
- type GenesisRat
- type GovAction
- type GovActionId
- type GovActionWrapper
- type GovAnchor
- type HardForkInitiationGovAction
- type InfoGovAction
- type IssuerVkey
- type MirSource
- type MoveInstantaneousRewardsCertificate
- type MoveInstantaneousRewardsCertificateReward
- type MultiAsset
- func (m *MultiAsset[T]) Asset(policyId Blake2b224, assetName []byte) T
- func (m *MultiAsset[T]) Assets(policyId Blake2b224) [][]byte
- func (m *MultiAsset[T]) MarshalCBOR() ([]byte, error)
- func (m MultiAsset[T]) MarshalJSON() ([]byte, error)
- func (m *MultiAsset[T]) Policies() []Blake2b224
- func (m *MultiAsset[T]) UnmarshalCBOR(data []byte) error
- type MultiAssetTypeMint
- type MultiAssetTypeOutput
- type NewConstitutionGovAction
- type NoConfidenceGovAction
- type Nonce
- type ParameterChangeGovAction
- type PoolId
- type PoolKeyHash
- type PoolMetadata
- type PoolMetadataHash
- type PoolRegistrationCertificate
- type PoolRelay
- type PoolRetirementCertificate
- type ProposalProcedure
- type ProtocolParameterUpdate
- type ProtocolParameters
- type ProtocolParametersProtocolVersion
- type RedeemerExUnits
- type RegistrationCertificate
- type RegistrationDrepCertificate
- type ResignCommitteeColdCertificate
- type StakeCredential
- type StakeDelegationCertificate
- type StakeDeregistrationCertificate
- type StakeRegistrationCertificate
- type StakeRegistrationDelegationCertificate
- type StakeVoteDelegationCertificate
- type StakeVoteRegistrationDelegationCertificate
- type Transaction
- type TransactionBody
- type TransactionInput
- type TransactionOutput
- type TreasuryWithdrawalGovAction
- type UpdateCommitteeGovAction
- type UpdateDrepCertificate
- type Utxo
- type VoteDelegationCertificate
- type VoteRegistrationDelegationCertificate
- type Voter
- type VotingProcedure
- type VotingProcedures
- type VrfKeyHash
Constants ¶
const ( AddressHeaderTypeMask = 0xF0 AddressHeaderNetworkMask = 0x0F AddressHashSize = 28 AddressNetworkTestnet = 0 AddressNetworkMainnet = 1 AddressTypeKeyKey = 0b0000 AddressTypeScriptKey = 0b0001 AddressTypeKeyScript = 0b0010 AddressTypeScriptScript = 0b0011 AddressTypeKeyPointer = 0b0100 AddressTypeScriptPointer = 0b0101 AddressTypeKeyNone = 0b0110 AddressTypeScriptNone = 0b0111 AddressTypeByron = 0b1000 AddressTypeNoneKey = 0b1110 AddressTypeNoneScript = 0b1111 )
const ( CertificateTypeStakeRegistration = 0 CertificateTypeStakeDeregistration = 1 CertificateTypeStakeDelegation = 2 CertificateTypePoolRegistration = 3 CertificateTypePoolRetirement = 4 CertificateTypeGenesisKeyDelegation = 5 CertificateTypeMoveInstantaneousRewards = 6 CertificateTypeRegistration = 7 CertificateTypeDeregistration = 8 CertificateTypeVoteDelegation = 9 CertificateTypeStakeVoteDelegation = 10 CertificateTypeStakeRegistrationDelegation = 11 CertificateTypeVoteRegistrationDelegation = 12 CertificateTypeStakeVoteRegistrationDelegation = 13 CertificateTypeAuthCommitteeHot = 14 CertificateTypeResignCommitteeCold = 15 CertificateTypeRegistrationDrep = 16 CertificateTypeDeregistrationDrep = 17 CertificateTypeUpdateDrep = 18 )
const ( DrepTypeAddrKeyHash = 0 DrepTypeScriptHash = 1 DrepTypeAbstain = 2 DrepTypeNoConfidence = 3 )
const ( PoolRelayTypeSingleHostAddress = 0 PoolRelayTypeSingleHostName = 1 PoolRelayTypeMultiHostName = 2 )
const ( Blake2b256Size = 32 Blake2b224Size = 28 Blake2b160Size = 20 )
const ( StakeCredentialTypeAddrKeyHash = 0 StakeCredentialTypeScriptHash = 1 )
const ( VoterTypeConstitutionalCommitteeHotKeyHash uint8 = 0 VoterTypeConstitutionalCommitteeHotScriptHash uint8 = 1 VoterTypeDRepKeyHash uint8 = 2 VoterTypeDRepScriptHash uint8 = 3 VoterTypeStakingPoolKeyHash uint8 = 4 )
const ( GovVoteNo uint8 = 0 GovVoteYes uint8 = 1 GovVoteAbstain uint8 = 2 )
const ( GovActionTypeParameterChange = 0 GovActionTypeHardForkInitiation = 1 GovActionTypeTreasuryWithdrawal = 2 GovActionTypeNoConfidence = 3 GovActionTypeUpdateCommittee = 4 GovActionTypeNewConstitution = 5 GovActionTypeInfo = 6 )
const ( NonceType0 = 0 NonceType1 = 1 )
Variables ¶
var EraInvalid = Era{
Id: 0,
Name: "invalid",
}
var NeutralNonce = Nonce{ Type: NonceType0, }
Functions ¶
func ConvertToUtxorpcCardanoCostModels ¶ added in v0.102.0
func ConvertToUtxorpcCardanoCostModels( models map[uint][]int64, ) *cardano.CostModels
ConvertToUtxorpcCardanoCostModels converts a map of cost models for Plutus scripts into cardano.CostModels Only PlutusV(keys 1, 2, and 3) are supported.
func RegisterEra ¶
func RegisterEra(era Era)
Types ¶
type AddrKeyHash ¶
type AddrKeyHash Blake2b224
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func NewAddress ¶
NewAddress returns an Address based on the provided bech32/base58 address string It detects if the string has mixed case assumes it is a base58 encoded address otherwise, it assumes it is bech32 encoded
func NewAddressFromParts ¶
func NewAddressFromParts( addrType uint8, networkId uint8, paymentAddr []byte, stakingAddr []byte, ) (Address, error)
NewAddressFromParts returns an Address based on the individual parts of the address that are provided
func (*Address) MarshalCBOR ¶
func (Address) MarshalJSON ¶
func (Address) PaymentAddress ¶
PaymentAddress returns a new Address with only the payment address portion. This will return nil for anything other than payment and script addresses
func (*Address) PaymentKeyHash ¶
func (a *Address) PaymentKeyHash() Blake2b224
PaymentKeyHash returns a new Blake2b224 hash of the payment key
func (Address) StakeAddress ¶
StakeAddress returns a new Address with only the stake key portion. This will return nil if the address is not a payment/staking key pair
func (*Address) StakeKeyHash ¶
func (a *Address) StakeKeyHash() Blake2b224
StakeKeyHash returns a new Blake2b224 hash of the stake key
func (*Address) UnmarshalCBOR ¶
type AssetFingerprint ¶
type AssetFingerprint struct {
// contains filtered or unexported fields
}
func NewAssetFingerprint ¶
func NewAssetFingerprint(policyId []byte, assetName []byte) AssetFingerprint
func (AssetFingerprint) Hash ¶
func (a AssetFingerprint) Hash() Blake2b160
func (AssetFingerprint) String ¶
func (a AssetFingerprint) String() string
type AuthCommitteeHotCertificate ¶
type AuthCommitteeHotCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint ColdCredential StakeCredential HostCredential StakeCredential }
func (*AuthCommitteeHotCertificate) UnmarshalCBOR ¶
func (c *AuthCommitteeHotCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*AuthCommitteeHotCertificate) Utxorpc ¶
func (c *AuthCommitteeHotCertificate) Utxorpc() *utxorpc.Certificate
type Blake2b160 ¶
type Blake2b160 [Blake2b160Size]byte
func Blake2b160Hash ¶
func Blake2b160Hash(data []byte) Blake2b160
Blake2b160Hash generates a Blake2b-160 hash from the provided data
func NewBlake2b160 ¶
func NewBlake2b160(data []byte) Blake2b160
func (Blake2b160) Bytes ¶
func (b Blake2b160) Bytes() []byte
func (Blake2b160) String ¶
func (b Blake2b160) String() string
type Blake2b224 ¶
type Blake2b224 [Blake2b224Size]byte
func Blake2b224Hash ¶
func Blake2b224Hash(data []byte) Blake2b224
Blake2b224Hash generates a Blake2b-224 hash from the provided data
func NewBlake2b224 ¶
func NewBlake2b224(data []byte) Blake2b224
func (Blake2b224) Bytes ¶
func (b Blake2b224) Bytes() []byte
func (Blake2b224) MarshalJSON ¶ added in v0.100.0
func (b Blake2b224) MarshalJSON() ([]byte, error)
func (Blake2b224) String ¶
func (b Blake2b224) String() string
type Blake2b256 ¶
type Blake2b256 [Blake2b256Size]byte
func Blake2b256Hash ¶
func Blake2b256Hash(data []byte) Blake2b256
Blake2b256Hash generates a Blake2b-256 hash from the provided data
func NewBlake2b256 ¶
func NewBlake2b256(data []byte) Blake2b256
func (Blake2b256) Bytes ¶
func (b Blake2b256) Bytes() []byte
func (Blake2b256) String ¶
func (b Blake2b256) String() string
type Block ¶ added in v0.105.0
type Block interface { BlockHeader Header() BlockHeader Type() int Transactions() []Transaction Utxorpc() *utxorpc.Block }
type BlockHeader ¶ added in v0.105.0
type Certificate ¶
type Certificate interface { Cbor() []byte Utxorpc() *utxorpc.Certificate // contains filtered or unexported methods }
type CertificateWrapper ¶
type CertificateWrapper struct { Type uint Certificate Certificate }
func (*CertificateWrapper) MarshalCBOR ¶
func (c *CertificateWrapper) MarshalCBOR() ([]byte, error)
func (*CertificateWrapper) UnmarshalCBOR ¶
func (c *CertificateWrapper) UnmarshalCBOR(data []byte) error
type DeregistrationCertificate ¶
type DeregistrationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential Amount int64 }
func (*DeregistrationCertificate) UnmarshalCBOR ¶
func (c *DeregistrationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*DeregistrationCertificate) Utxorpc ¶
func (c *DeregistrationCertificate) Utxorpc() *utxorpc.Certificate
type DeregistrationDrepCertificate ¶
type DeregistrationDrepCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint DrepCredential StakeCredential Amount int64 }
func (*DeregistrationDrepCertificate) UnmarshalCBOR ¶
func (c *DeregistrationDrepCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*DeregistrationDrepCertificate) Utxorpc ¶
func (c *DeregistrationDrepCertificate) Utxorpc() *utxorpc.Certificate
type Drep ¶
func (*Drep) UnmarshalCBOR ¶
type ExUnitPrice ¶ added in v0.99.0
type GenesisKeyDelegationCertificate ¶
type GenesisKeyDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint GenesisHash []byte GenesisDelegateHash []byte VrfKeyHash VrfKeyHash }
func (*GenesisKeyDelegationCertificate) UnmarshalCBOR ¶
func (c *GenesisKeyDelegationCertificate) UnmarshalCBOR(cborData []byte) error
func (*GenesisKeyDelegationCertificate) Utxorpc ¶
func (c *GenesisKeyDelegationCertificate) Utxorpc() *utxorpc.Certificate
type GenesisRat ¶ added in v0.99.0
GenesisRat is a wrapper to big.Rat that allows for unmarshaling from a bare float from JSON
func (*GenesisRat) UnmarshalJSON ¶ added in v0.99.0
func (r *GenesisRat) UnmarshalJSON(data []byte) error
type GovActionId ¶
type GovActionId struct { cbor.StructAsArray TransactionId [32]byte GovActionIdx uint32 }
type GovActionWrapper ¶
func (*GovActionWrapper) MarshalCBOR ¶
func (g *GovActionWrapper) MarshalCBOR() ([]byte, error)
func (*GovActionWrapper) UnmarshalCBOR ¶
func (g *GovActionWrapper) UnmarshalCBOR(data []byte) error
type HardForkInitiationGovAction ¶
type HardForkInitiationGovAction struct { cbor.StructAsArray Type uint ActionId *GovActionId ProtocolVersion struct { cbor.StructAsArray Major uint Minor uint } }
type InfoGovAction ¶
type InfoGovAction struct { cbor.StructAsArray Type uint }
type IssuerVkey ¶
type IssuerVkey [32]byte
IssuerVkey represents the verification key for the stake pool that minted a block
func (IssuerVkey) Hash ¶
func (i IssuerVkey) Hash() Blake2b224
func (IssuerVkey) PoolId ¶
func (i IssuerVkey) PoolId() string
type MoveInstantaneousRewardsCertificate ¶
type MoveInstantaneousRewardsCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint Reward MoveInstantaneousRewardsCertificateReward }
func (*MoveInstantaneousRewardsCertificate) UnmarshalCBOR ¶
func (c *MoveInstantaneousRewardsCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*MoveInstantaneousRewardsCertificate) Utxorpc ¶
func (c *MoveInstantaneousRewardsCertificate) Utxorpc() *utxorpc.Certificate
type MoveInstantaneousRewardsCertificateReward ¶
type MoveInstantaneousRewardsCertificateReward struct { Source uint Rewards map[*StakeCredential]uint64 OtherPot uint64 }
func (*MoveInstantaneousRewardsCertificateReward) UnmarshalCBOR ¶
func (r *MoveInstantaneousRewardsCertificateReward) UnmarshalCBOR( data []byte, ) error
type MultiAsset ¶
type MultiAsset[T MultiAssetTypeOutput | MultiAssetTypeMint] struct { // contains filtered or unexported fields }
MultiAsset represents a collection of policies, assets, and quantities. It's used for TX outputs (uint64) and TX asset minting (int64 to allow for negative values for burning)
func NewMultiAsset ¶
func NewMultiAsset[T MultiAssetTypeOutput | MultiAssetTypeMint]( data map[Blake2b224]map[cbor.ByteString]T, ) MultiAsset[T]
NewMultiAsset creates a MultiAsset with the specified data
func (*MultiAsset[T]) Asset ¶
func (m *MultiAsset[T]) Asset(policyId Blake2b224, assetName []byte) T
func (*MultiAsset[T]) Assets ¶
func (m *MultiAsset[T]) Assets(policyId Blake2b224) [][]byte
func (*MultiAsset[T]) MarshalCBOR ¶
func (m *MultiAsset[T]) MarshalCBOR() ([]byte, error)
func (MultiAsset[T]) MarshalJSON ¶
func (m MultiAsset[T]) MarshalJSON() ([]byte, error)
func (*MultiAsset[T]) Policies ¶
func (m *MultiAsset[T]) Policies() []Blake2b224
func (*MultiAsset[T]) UnmarshalCBOR ¶
func (m *MultiAsset[T]) UnmarshalCBOR(data []byte) error
type MultiAssetTypeMint ¶
type MultiAssetTypeMint = int64
type MultiAssetTypeOutput ¶
type MultiAssetTypeOutput = uint64
type NewConstitutionGovAction ¶
type NewConstitutionGovAction struct { cbor.StructAsArray Type uint ActionId *GovActionId Constitution struct { cbor.StructAsArray Anchor GovAnchor ScriptHash []byte } }
type NoConfidenceGovAction ¶
type NoConfidenceGovAction struct { cbor.StructAsArray Type uint ActionId *GovActionId }
type Nonce ¶ added in v0.99.0
type Nonce struct { cbor.StructAsArray Type uint Value [32]byte }
func (*Nonce) UnmarshalCBOR ¶ added in v0.99.0
type ParameterChangeGovAction ¶
type ParameterChangeGovAction struct { cbor.StructAsArray Type uint ActionId *GovActionId ParamUpdate cbor.RawMessage // NOTE: we use raw to defer processing to account for per-era types PolicyHash []byte }
type PoolKeyHash ¶
type PoolKeyHash Blake2b224
type PoolMetadata ¶
type PoolMetadata struct { cbor.StructAsArray Url string Hash PoolMetadataHash }
func (*PoolMetadata) Utxorpc ¶
func (p *PoolMetadata) Utxorpc() *utxorpc.PoolMetadata
type PoolMetadataHash ¶
type PoolMetadataHash Blake2b256
type PoolRegistrationCertificate ¶
type PoolRegistrationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint Operator PoolKeyHash VrfKeyHash VrfKeyHash Pledge uint64 Cost uint64 Margin cbor.Rat RewardAccount AddrKeyHash PoolOwners []AddrKeyHash Relays []PoolRelay PoolMetadata *PoolMetadata }
func (*PoolRegistrationCertificate) UnmarshalCBOR ¶
func (c *PoolRegistrationCertificate) UnmarshalCBOR(cborData []byte) error
func (*PoolRegistrationCertificate) Utxorpc ¶
func (c *PoolRegistrationCertificate) Utxorpc() *utxorpc.Certificate
type PoolRelay ¶
func (*PoolRelay) UnmarshalCBOR ¶
type PoolRetirementCertificate ¶
type PoolRetirementCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint PoolKeyHash PoolKeyHash Epoch uint64 }
func (*PoolRetirementCertificate) UnmarshalCBOR ¶
func (c *PoolRetirementCertificate) UnmarshalCBOR(cborData []byte) error
func (*PoolRetirementCertificate) Utxorpc ¶
func (c *PoolRetirementCertificate) Utxorpc() *utxorpc.Certificate
type ProposalProcedure ¶
type ProposalProcedure struct { cbor.StructAsArray Deposit uint64 RewardAccount Address GovAction GovActionWrapper Anchor GovAnchor }
type ProtocolParameterUpdate ¶ added in v0.95.0
type ProtocolParameterUpdate interface { IsProtocolParameterUpdate() Cbor() []byte }
type ProtocolParameters ¶ added in v0.103.2
type ProtocolParametersProtocolVersion ¶ added in v0.99.0
type ProtocolParametersProtocolVersion struct { cbor.StructAsArray Major uint Minor uint }
type RedeemerExUnits ¶
type RedeemerExUnits struct { cbor.StructAsArray Memory uint64 Steps uint64 }
RedeemerExUnits represents the steps and memory usage for script execution
type RegistrationCertificate ¶
type RegistrationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential Amount int64 }
func (*RegistrationCertificate) UnmarshalCBOR ¶
func (c *RegistrationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*RegistrationCertificate) Utxorpc ¶
func (c *RegistrationCertificate) Utxorpc() *utxorpc.Certificate
type RegistrationDrepCertificate ¶
type RegistrationDrepCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint DrepCredential StakeCredential Amount int64 Anchor *GovAnchor }
func (*RegistrationDrepCertificate) UnmarshalCBOR ¶
func (c *RegistrationDrepCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*RegistrationDrepCertificate) Utxorpc ¶
func (c *RegistrationDrepCertificate) Utxorpc() *utxorpc.Certificate
type ResignCommitteeColdCertificate ¶
type ResignCommitteeColdCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint ColdCredential StakeCredential Anchor *GovAnchor }
func (*ResignCommitteeColdCertificate) UnmarshalCBOR ¶
func (c *ResignCommitteeColdCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*ResignCommitteeColdCertificate) Utxorpc ¶
func (c *ResignCommitteeColdCertificate) Utxorpc() *utxorpc.Certificate
type StakeCredential ¶
type StakeCredential struct { cbor.StructAsArray cbor.DecodeStoreCbor CredType uint Credential []byte }
func (*StakeCredential) Hash ¶
func (c *StakeCredential) Hash() Blake2b224
func (*StakeCredential) Utxorpc ¶
func (c *StakeCredential) Utxorpc() *utxorpc.StakeCredential
type StakeDelegationCertificate ¶
type StakeDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential *StakeCredential PoolKeyHash PoolKeyHash }
func (*StakeDelegationCertificate) UnmarshalCBOR ¶
func (c *StakeDelegationCertificate) UnmarshalCBOR(cborData []byte) error
func (*StakeDelegationCertificate) Utxorpc ¶
func (c *StakeDelegationCertificate) Utxorpc() *utxorpc.Certificate
type StakeDeregistrationCertificate ¶
type StakeDeregistrationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeDeregistration StakeCredential }
func (*StakeDeregistrationCertificate) UnmarshalCBOR ¶
func (c *StakeDeregistrationCertificate) UnmarshalCBOR(cborData []byte) error
func (*StakeDeregistrationCertificate) Utxorpc ¶
func (c *StakeDeregistrationCertificate) Utxorpc() *utxorpc.Certificate
type StakeRegistrationCertificate ¶
type StakeRegistrationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeRegistration StakeCredential }
func (*StakeRegistrationCertificate) UnmarshalCBOR ¶
func (c *StakeRegistrationCertificate) UnmarshalCBOR(cborData []byte) error
func (*StakeRegistrationCertificate) Utxorpc ¶
func (c *StakeRegistrationCertificate) Utxorpc() *utxorpc.Certificate
type StakeRegistrationDelegationCertificate ¶
type StakeRegistrationDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential PoolKeyHash []byte Amount int64 }
func (*StakeRegistrationDelegationCertificate) UnmarshalCBOR ¶
func (c *StakeRegistrationDelegationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*StakeRegistrationDelegationCertificate) Utxorpc ¶
func (c *StakeRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certificate
type StakeVoteDelegationCertificate ¶
type StakeVoteDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential PoolKeyHash []byte Drep Drep }
func (*StakeVoteDelegationCertificate) UnmarshalCBOR ¶
func (c *StakeVoteDelegationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*StakeVoteDelegationCertificate) Utxorpc ¶
func (c *StakeVoteDelegationCertificate) Utxorpc() *utxorpc.Certificate
type StakeVoteRegistrationDelegationCertificate ¶
type StakeVoteRegistrationDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential PoolKeyHash []byte Drep Drep Amount int64 }
func (*StakeVoteRegistrationDelegationCertificate) UnmarshalCBOR ¶
func (c *StakeVoteRegistrationDelegationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*StakeVoteRegistrationDelegationCertificate) Utxorpc ¶
func (c *StakeVoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certificate
type Transaction ¶
type Transaction interface { TransactionBody Type() int Metadata() *cbor.LazyValue IsValid() bool Consumed() []TransactionInput Produced() []Utxo }
type TransactionBody ¶
type TransactionBody interface { Cbor() []byte Fee() uint64 Hash() string Inputs() []TransactionInput Outputs() []TransactionOutput TTL() uint64 ProtocolParameterUpdates() (uint64, map[Blake2b224]ProtocolParameterUpdate) ValidityIntervalStart() uint64 ReferenceInputs() []TransactionInput Collateral() []TransactionInput CollateralReturn() TransactionOutput TotalCollateral() uint64 Certificates() []Certificate Withdrawals() map[*Address]uint64 AuxDataHash() *Blake2b256 RequiredSigners() []Blake2b224 AssetMint() *MultiAsset[MultiAssetTypeMint] ScriptDataHash() *Blake2b256 VotingProcedures() VotingProcedures ProposalProcedures() []ProposalProcedure CurrentTreasuryValue() int64 Donation() uint64 Utxorpc() *utxorpc.Tx }
type TransactionInput ¶
type TransactionInput interface { Id() Blake2b256 Index() uint32 Utxorpc() *utxorpc.TxInput }
type TransactionOutput ¶
type TransactionOutput interface { Address() Address Amount() uint64 Assets() *MultiAsset[MultiAssetTypeOutput] Datum() *cbor.LazyValue DatumHash() *Blake2b256 Cbor() []byte Utxorpc() *utxorpc.TxOutput }
type UpdateCommitteeGovAction ¶
type UpdateCommitteeGovAction struct { cbor.StructAsArray Type uint ActionId *GovActionId Credentials []StakeCredential CredEpochs map[*StakeCredential]uint Unknown cbor.Rat }
type UpdateDrepCertificate ¶
type UpdateDrepCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint DrepCredential StakeCredential Anchor *GovAnchor }
func (*UpdateDrepCertificate) UnmarshalCBOR ¶
func (c *UpdateDrepCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*UpdateDrepCertificate) Utxorpc ¶
func (c *UpdateDrepCertificate) Utxorpc() *utxorpc.Certificate
type Utxo ¶
type Utxo struct { Id TransactionInput Output TransactionOutput }
type VoteDelegationCertificate ¶
type VoteDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential Drep Drep }
func (*VoteDelegationCertificate) UnmarshalCBOR ¶
func (c *VoteDelegationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*VoteDelegationCertificate) Utxorpc ¶
func (c *VoteDelegationCertificate) Utxorpc() *utxorpc.Certificate
type VoteRegistrationDelegationCertificate ¶
type VoteRegistrationDelegationCertificate struct { cbor.StructAsArray cbor.DecodeStoreCbor CertType uint StakeCredential StakeCredential Drep Drep Amount int64 }
func (*VoteRegistrationDelegationCertificate) UnmarshalCBOR ¶
func (c *VoteRegistrationDelegationCertificate) UnmarshalCBOR( cborData []byte, ) error
func (*VoteRegistrationDelegationCertificate) Utxorpc ¶
func (c *VoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certificate
type VotingProcedure ¶
type VotingProcedure struct { cbor.StructAsArray Vote uint8 Anchor *GovAnchor }
type VotingProcedures ¶
type VotingProcedures map[*Voter]map[*GovActionId]VotingProcedure
VotingProcedures is a convenience type to avoid needing to duplicate the full type definition everywhere
type VrfKeyHash ¶
type VrfKeyHash Blake2b256