keys

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: 2 Imported by: 0 modules, 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

Overview

Package keys provides JSON-friendly mirror types for the framework datastore key interfaces. Conversion to framework keys goes through the framework's public constructors, keeping this package datastore-implementation-agnostic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressRefKey

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

AddressRefKey is a JSON-serializable mirror of cldfdatastore.AddressRefKey.

func (AddressRefKey) ToFrameworkKey

func (k AddressRefKey) ToFrameworkKey() (cldfdatastore.AddressRefKey, error)

ToFrameworkKey returns the equivalent cldfdatastore.AddressRefKey, or cldfdatastore.ErrAddressRefVersionRequired if Version is nil.

type ChainMetadataKey

type ChainMetadataKey struct {
	ChainSelector uint64 `json:"chainSelector"`
}

ChainMetadataKey is a JSON-serializable mirror of cldfdatastore.ChainMetadataKey.

func (ChainMetadataKey) ToFrameworkKey

func (k ChainMetadataKey) ToFrameworkKey() cldfdatastore.ChainMetadataKey

ToFrameworkKey returns the equivalent cldfdatastore.ChainMetadataKey.

type ContractMetadataKey

type ContractMetadataKey struct {
	ChainSelector uint64 `json:"chainSelector"`
	Address       string `json:"address"`
}

ContractMetadataKey is a JSON-serializable mirror of cldfdatastore.ContractMetadataKey.

func (ContractMetadataKey) ToFrameworkKey

ToFrameworkKey returns the equivalent cldfdatastore.ContractMetadataKey.

Jump to

Keyboard shortcuts

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