addresses

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAddressSpec

func FromAddressSpec(as *sdkTypes.AddressSpec) (apiTypes.Address, error)

func FromEthAddress

func FromEthAddress(ethAddr []byte) (apiTypes.Address, error)

func FromOCAddress

func FromOCAddress(ocAddr address.Address) (apiTypes.Address, error)

func FromOCSAddress

func FromOCSAddress(ocsAddr staking.Address) (apiTypes.Address, error)

func FromRuntimeID

func FromRuntimeID(id coreCommon.Namespace) (apiTypes.Address, error)

func FromSdkAddress

func FromSdkAddress(sdkAddr *sdkTypes.Address) (apiTypes.Address, error)

func RegisterRelatedAddressSpec

func RegisterRelatedAddressSpec(addressPreimages map[apiTypes.Address]*PreimageData, relatedAddresses map[apiTypes.Address]struct{}, as *sdkTypes.AddressSpec) (apiTypes.Address, error)

func RegisterRelatedEthAddress

func RegisterRelatedEthAddress(addressPreimages map[apiTypes.Address]*PreimageData, relatedAddresses map[apiTypes.Address]struct{}, ethAddr []byte) (apiTypes.Address, error)

func RegisterRelatedOCAddress

func RegisterRelatedOCAddress(relatedAddresses map[apiTypes.Address]struct{}, ocAddr address.Address) (apiTypes.Address, error)

func RegisterRelatedOCSAddress

func RegisterRelatedOCSAddress(relatedAddresses map[apiTypes.Address]struct{}, ocsAddr staking.Address) (apiTypes.Address, error)

func RegisterRelatedRuntimeAddress

func RegisterRelatedRuntimeAddress(addressPreimages map[apiTypes.Address]*PreimageData, relatedAddresses map[apiTypes.Address]struct{}, id coreCommon.Namespace) (apiTypes.Address, error)

func RegisterRelatedSdkAddress

func RegisterRelatedSdkAddress(relatedAddresses map[apiTypes.Address]struct{}, sdkAddr *sdkTypes.Address) (apiTypes.Address, error)

func SliceFromSet

func SliceFromSet(accounts map[apiTypes.Address]struct{}) []string

Types

type PreimageData

type PreimageData struct {
	ContextIdentifier string
	ContextVersion    int
	Data              []byte
}

Jump to

Keyboard shortcuts

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