refkey

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefKey

type RefKey struct {
	ChainSelector uint64                     `json:"chainSelector"`
	Type          cldfdatastore.ContractType `json:"type"`
	Version       *semver.Version            `json:"version"`
	Qualifier     string                     `json:"qualifier,omitempty"`
}

RefKey identifies a contract in the environment datastore without carrying its address.

func FromAddressRef

func FromAddressRef(ref cldfdatastore.AddressRef) RefKey

FromAddressRef derives a ref key from a full AddressRef.

func New

func New(chainSelector uint64, contractType cldfdatastore.ContractType, version *semver.Version, qualifier string) RefKey

New constructs a serializable ref key.

func (RefKey) Key

Key converts the serializable key into a datastore AddressRefKey.

func (RefKey) Resolve

Resolve loads the matching AddressRef from the environment datastore.

Jump to

Keyboard shortcuts

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