name

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateName

func CreateName(scs *state.ContractState, tx *types.TxBody, sender, receiver *state.V, name string) error

func ExecuteNameTx

func ExecuteNameTx(bs *state.BlockState, scs *state.ContractState, txBody *types.TxBody,
	sender, receiver *state.V, blockNo types.BlockNo) ([]*types.Event, error)

func GetAddress

func GetAddress(scs *state.ContractState, name []byte) []byte

GetAddress is resolve name for mempool

func GetNameInfo

func GetNameInfo(r AccountStateReader, name string) (*types.NameInfo, error)

func GetOwner

func GetOwner(scs *state.ContractState, name []byte) []byte

func Resolve

func Resolve(bs *state.BlockState, name []byte) []byte

Resolve is resolve name for chain

func SetContractOwner

func SetContractOwner(bs *state.BlockState, scs *state.ContractState,
	address string, nameState *state.V) (*state.V, error)

func UpdateName

func UpdateName(bs *state.BlockState, scs *state.ContractState, tx *types.TxBody,
	sender, receiver *state.V, name, to string) error

UpdateName is avaliable after bid implement

func ValidateNameTx

func ValidateNameTx(tx *types.TxBody, sender *state.V,
	scs, systemcs *state.ContractState) (*types.CallInfo, error)

Types

type AccountStateReader

type AccountStateReader interface {
	GetNameAccountState() (*state.ContractState, error)
}

AccountStateReader is an interface for getting a name account state.

type NameMap

type NameMap struct {
	Version     byte
	Owner       []byte
	Destination []byte
}

Jump to

Keyboard shortcuts

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