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 ¶
func (k RefKey) Key() (cldfdatastore.AddressRefKey, error)
Key converts the serializable key into a datastore AddressRefKey.
func (RefKey) Resolve ¶
func (k RefKey) Resolve(e cldf.Environment) (cldfdatastore.AddressRef, error)
Resolve loads the matching AddressRef from the environment datastore.
Click to show internal directories.
Click to hide internal directories.