refkey

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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