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 ¶
func (k ContractMetadataKey) ToFrameworkKey() cldfdatastore.ContractMetadataKey
ToFrameworkKey returns the equivalent cldfdatastore.ContractMetadataKey.