Documentation ¶
Index ¶
- func CreateName(scs *statedb.ContractState, tx *types.TxBody, ...) error
- func ExecuteNameTx(bs *state.BlockState, scs *statedb.ContractState, txBody *types.TxBody, ...) ([]*types.Event, error)
- func GetAddress(scs *statedb.ContractState, name []byte) []byte
- func GetAddressLegacy(scs *statedb.ContractState, name []byte) []byte
- func GetNameInfo(ncs *statedb.ContractState, name string) (*types.NameInfo, error)
- func GetOwner(scs *statedb.ContractState, name []byte) []byte
- func Resolve(bs *state.BlockState, name []byte, legacy bool) ([]byte, error)
- func SetContractOwner(bs *state.BlockState, scs *statedb.ContractState, address string, ...) (*state.AccountState, error)
- func UpdateName(bs *state.BlockState, scs *statedb.ContractState, tx *types.TxBody, ...) error
- func ValidateNameTx(tx *types.TxBody, sender *state.AccountState, scs *statedb.ContractState) (*types.CallInfo, error)
- type NameMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateName ¶
func CreateName(scs *statedb.ContractState, tx *types.TxBody, sender, receiver *state.AccountState, name string) error
func ExecuteNameTx ¶
func ExecuteNameTx(bs *state.BlockState, scs *statedb.ContractState, txBody *types.TxBody, sender, receiver *state.AccountState, blockInfo *types.BlockHeaderInfo) ([]*types.Event, error)
func GetAddress ¶
func GetAddress(scs *statedb.ContractState, name []byte) []byte
GetAddress is resolve name for mempool
func GetAddressLegacy ¶
func GetAddressLegacy(scs *statedb.ContractState, name []byte) []byte
GetAddressLegacy is resolve name for mempool by buggy logic, leaved for backward compatibility
func GetNameInfo ¶
func SetContractOwner ¶
func SetContractOwner(bs *state.BlockState, scs *statedb.ContractState, address string, nameState *state.AccountState) (*state.AccountState, error)
func UpdateName ¶
func UpdateName(bs *state.BlockState, scs *statedb.ContractState, tx *types.TxBody, sender, receiver *state.AccountState, name, to string) error
UpdateName is avaliable after bid implement
func ValidateNameTx ¶
func ValidateNameTx(tx *types.TxBody, sender *state.AccountState, scs *statedb.ContractState) (*types.CallInfo, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.