common

package
v0.94.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

View Source
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
)
View Source
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
)
View Source
const (
	DrepTypeAddrKeyHash  = 0
	DrepTypeScriptHash   = 1
	DrepTypeAbstain      = 2
	DrepTypeNoConfidence = 3
)
View Source
const (
	PoolRelayTypeSingleHostAddress = 0
	PoolRelayTypeSingleHostName    = 1
	PoolRelayTypeMultiHostName     = 2
)
View Source
const (
	Blake2b256Size = 32
	Blake2b224Size = 28
	Blake2b160Size = 20
)
View Source
const (
	StakeCredentialTypeAddrKeyHash = 0
	StakeCredentialTypeScriptHash  = 1
)
View Source
const (
	VoterTypeConstitutionalCommitteeHotKeyHash    uint8 = 0
	VoterTypeConstitutionalCommitteeHotScriptHash uint8 = 1
	VoterTypeDRepKeyHash                          uint8 = 2
	VoterTypeDRepScriptHash                       uint8 = 3
	VoterTypeStakingPoolKeyHash                   uint8 = 4
)
View Source
const (
	GovVoteNo      uint8 = 0
	GovVoteYes     uint8 = 1
	GovVoteAbstain uint8 = 2
)
View Source
const (
	GovActionTypeParameterChange    = 0
	GovActionTypeHardForkInitiation = 1
	GovActionTypeTreasuryWithdrawal = 2
	GovActionTypeNoConfidence       = 3
	GovActionTypeUpdateCommittee    = 4
	GovActionTypeNewConstitution    = 5
	GovActionTypeInfo               = 6
)

Variables

View Source
var EraInvalid = Era{
	Id:   0,
	Name: "invalid",
}

Functions

func RegisterEra

func RegisterEra(era Era)

Types

type AddrKeyHash

type AddrKeyHash Blake2b224

type Address

type Address struct {
	// contains filtered or unexported fields
}

func NewAddress

func NewAddress(addr string) (Address, error)

NewAddress returns an Address based on the provided bech32 address string

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) Bytes

func (a Address) Bytes() []byte

Bytes returns the underlying bytes for the address

func (*Address) MarshalCBOR

func (a *Address) MarshalCBOR() ([]byte, error)

func (Address) MarshalJSON

func (a Address) MarshalJSON() ([]byte, error)

func (Address) PaymentAddress

func (a Address) PaymentAddress() *Address

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

func (a Address) StakeAddress() *Address

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) String

func (a Address) String() string

String returns the bech32-encoded version of the address

func (*Address) UnmarshalCBOR

func (a *Address) UnmarshalCBOR(data []byte) error

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

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) 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 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

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

type Drep

type Drep struct {
	Type       int
	Credential []byte
}

func (*Drep) UnmarshalCBOR

func (d *Drep) UnmarshalCBOR(data []byte) error

type Era

type Era struct {
	Id   uint8
	Name string
}

func EraById

func EraById(eraId uint8) Era

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

type GovAction

type GovAction interface {
	// contains filtered or unexported methods
}

type GovActionId

type GovActionId struct {
	cbor.StructAsArray
	TransactionId [32]byte
	GovActionIdx  uint32
}

type GovActionWrapper

type GovActionWrapper struct {
	Type   uint
	Action GovAction
}

func (*GovActionWrapper) MarshalCBOR

func (g *GovActionWrapper) MarshalCBOR() ([]byte, error)

func (*GovActionWrapper) UnmarshalCBOR

func (g *GovActionWrapper) UnmarshalCBOR(data []byte) error

type GovAnchor

type GovAnchor struct {
	cbor.StructAsArray
	Url      string
	DataHash [32]byte
}

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 MirSource

type MirSource int32
const (
	MirSourceUnspecified MirSource = 0
	MirSourceReserves    MirSource = 1
	MirSourceTreasury    MirSource = 2
)

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

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 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 PoolId

type PoolId [28]byte

func NewPoolIdFromBech32

func NewPoolIdFromBech32(poolId string) (PoolId, error)

func (PoolId) String

func (p PoolId) String() string

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

type PoolRelay

type PoolRelay struct {
	Type     int
	Port     *uint32
	Ipv4     *net.IP
	Ipv6     *net.IP
	Hostname *string
}

func (*PoolRelay) UnmarshalCBOR

func (p *PoolRelay) UnmarshalCBOR(data []byte) error

func (*PoolRelay) Utxorpc

func (p *PoolRelay) Utxorpc() *utxorpc.Relay

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

type ProposalProcedure

type ProposalProcedure struct {
	cbor.StructAsArray
	Deposit       uint64
	RewardAccount Address
	GovAction     GovActionWrapper
	Anchor        GovAnchor
}

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

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

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

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

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

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

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

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

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

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
	ProtocolParametersUpdate() map[Blake2b224]any
	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 TreasuryWithdrawalGovAction

type TreasuryWithdrawalGovAction struct {
	cbor.StructAsArray
	Type        uint
	Withdrawals map[*Address]uint64
	PolicyHash  []byte
}

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

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

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

type Voter

type Voter struct {
	cbor.StructAsArray
	Type uint8
	Hash [28]byte
}

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

Jump to

Keyboard shortcuts

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