Documentation ¶
Index ¶
- func CreateName(scs *state.ContractState, tx *types.TxBody, sender, receiver *state.V, ...) error
- func ExecuteNameTx(bs *state.BlockState, scs *state.ContractState, txBody *types.TxBody, ...) ([]*types.Event, error)
- func GetAddress(scs *state.ContractState, name []byte) []byte
- func GetAddressLegacy(scs *state.ContractState, name []byte) []byte
- func GetNameInfo(r AccountStateReader, name string) (*types.NameInfo, error)
- func GetOwner(scs *state.ContractState, name []byte) []byte
- func Resolve(bs *state.BlockState, name []byte, legacy bool) ([]byte, error)
- func SetContractOwner(bs *state.BlockState, scs *state.ContractState, address string, ...) (*state.V, error)
- func UpdateName(bs *state.BlockState, scs *state.ContractState, tx *types.TxBody, ...) error
- func ValidateNameTx(tx *types.TxBody, sender *state.V, scs, systemcs *state.ContractState) (*types.CallInfo, error)
- type AccountStateReader
- type NameMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateName ¶
func ExecuteNameTx ¶
func ExecuteNameTx(bs *state.BlockState, scs *state.ContractState, txBody *types.TxBody, sender, receiver *state.V, blockInfo *types.BlockHeaderInfo) ([]*types.Event, error)
func GetAddress ¶
func GetAddress(scs *state.ContractState, name []byte) []byte
GetAddress is resolve name for mempool
func GetAddressLegacy ¶
func GetAddressLegacy(scs *state.ContractState, name []byte) []byte
GetAddressLegacy is resolve name for mempool by buggy logic, leaved for backward compatibility
func GetNameInfo ¶
func GetNameInfo(r AccountStateReader, name string) (*types.NameInfo, error)
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
Types ¶
type AccountStateReader ¶
type AccountStateReader interface {
GetNameAccountState() (*state.ContractState, error)
}
AccountStateReader is an interface for getting a name account state.
Click to show internal directories.
Click to hide internal directories.