Documentation ¶
Index ¶
- Constants
- func ExtractCoordinates(pubkey string) ([32]byte, [32]byte)
- func NameHash(name string) common.Hash
- func UsernameToLabel(username string) [32]byte
- func ValidateENSUsername(username string) error
- type API
- func (api *API) Add(ctx context.Context, chainID uint64, username string) error
- func (api *API) AddressOf(ctx context.Context, chainID uint64, username string) (*common.Address, error)
- func (api *API) ContentHash(ctx context.Context, chainID uint64, username string) ([]byte, error)
- func (api *API) ExpireAt(ctx context.Context, chainID uint64, username string) (string, error)
- func (api *API) GetEnsUsernames(ctx context.Context) ([]*UsernameDetail, error)
- func (api *API) GetName(ctx context.Context, chainID uint64, address common.Address) (string, error)
- func (api *API) GetRegistrarAddress(ctx context.Context, chainID uint64) (common.Address, error)
- func (api *API) OwnerOf(ctx context.Context, chainID uint64, username string) (*common.Address, error)
- func (api *API) Price(ctx context.Context, chainID uint64) (string, error)
- func (api *API) PublicKeyOf(ctx context.Context, chainID uint64, username string) (string, error)
- func (api *API) Register(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (string, error)
- func (api *API) RegisterEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (uint64, error)
- func (api *API) RegisterPrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (interface{}, error)
- func (api *API) RegisterPrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (ethereum.CallMsg, error)
- func (api *API) Release(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (string, error)
- func (api *API) ReleaseEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (uint64, error)
- func (api *API) ReleasePrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (interface{}, error)
- func (api *API) ReleasePrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (ethereum.CallMsg, error)
- func (api *API) Remove(ctx context.Context, chainID uint64, username string) error
- func (api *API) Resolver(ctx context.Context, chainID uint64, username string) (*common.Address, error)
- func (api *API) ResourceURL(ctx context.Context, chainID uint64, username string) (*URI, error)
- func (api *API) SetPubKey(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (string, error)
- func (api *API) SetPubKeyEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (uint64, error)
- func (api *API) SetPubKeyPrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (interface{}, error)
- func (api *API) SetPubKeyPrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, ...) (ethereum.CallMsg, error)
- func (api *API) Stop()
- type Database
- func (db *Database) AddEnsUsername(details *UsernameDetail) error
- func (db *Database) GetEnsUsernames(removed *bool) (result []*UsernameDetail, err error)
- func (db *Database) RemoveEnsUsername(details *UsernameDetail) (bool, error)
- func (db *Database) SaveOrUpdateEnsUsername(details *UsernameDetail) error
- type Service
- type URI
- type UsernameDetail
Constants ¶
View Source
const StatusDomain = "stateofus.eth"
Variables ¶
This section is empty.
Functions ¶
func ExtractCoordinates ¶ added in v0.179.29
func UsernameToLabel ¶ added in v0.179.29
func ValidateENSUsername ¶ added in v0.179.29
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(rpcClient *rpc.Client, accountsManager *account.GethManager, pendingTracker *transactions.PendingTxTracker, config *params.NodeConfig, appDb *sql.DB, timeSource func() time.Time, syncUserDetailFunc *syncUsernameDetail) *API
func (*API) ContentHash ¶
func (*API) GetEnsUsernames ¶ added in v0.125.0
func (api *API) GetEnsUsernames(ctx context.Context) ([]*UsernameDetail, error)
func (*API) GetRegistrarAddress ¶ added in v0.98.1
func (*API) PublicKeyOf ¶
func (*API) RegisterEstimate ¶ added in v0.93.2
func (api *API) RegisterEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (uint64, error)
func (*API) RegisterPrepareTx ¶ added in v0.94.6
func (api *API) RegisterPrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (interface{}, error)
func (*API) RegisterPrepareTxCallMsg ¶ added in v0.94.6
func (api *API) RegisterPrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (ethereum.CallMsg, error)
func (*API) Release ¶ added in v0.93.2
func (api *API) Release(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, password string, username string) (string, error)
func (*API) ReleaseEstimate ¶ added in v0.93.2
func (api *API) ReleaseEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string) (uint64, error)
func (*API) ReleasePrepareTx ¶ added in v0.171.25
func (api *API) ReleasePrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string) (interface{}, error)
func (*API) ReleasePrepareTxCallMsg ¶ added in v0.171.25
func (api *API) ReleasePrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string) (ethereum.CallMsg, error)
func (*API) ResourceURL ¶
func (*API) SetPubKeyEstimate ¶ added in v0.93.2
func (api *API) SetPubKeyEstimate(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (uint64, error)
func (*API) SetPubKeyPrepareTx ¶ added in v0.94.6
func (api *API) SetPubKeyPrepareTx(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (interface{}, error)
func (*API) SetPubKeyPrepareTxCallMsg ¶ added in v0.94.6
func (api *API) SetPubKeyPrepareTxCallMsg(ctx context.Context, chainID uint64, txArgs transactions.SendTxArgs, username string, pubkey string) (ethereum.CallMsg, error)
type Database ¶ added in v0.125.0
type Database struct {
// contains filtered or unexported fields
}
func NewEnsDatabase ¶ added in v0.125.0
func (*Database) AddEnsUsername ¶ added in v0.125.0
func (db *Database) AddEnsUsername(details *UsernameDetail) error
func (*Database) GetEnsUsernames ¶ added in v0.125.0
func (db *Database) GetEnsUsernames(removed *bool) (result []*UsernameDetail, err error)
func (*Database) RemoveEnsUsername ¶ added in v0.125.0
func (db *Database) RemoveEnsUsername(details *UsernameDetail) (bool, error)
func (*Database) SaveOrUpdateEnsUsername ¶ added in v0.148.3
func (db *Database) SaveOrUpdateEnsUsername(details *UsernameDetail) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a browsers service.
func NewService ¶
func NewService(rpcClient *rpc.Client, accountsManager *account.GethManager, pendingTracker *transactions.PendingTxTracker, config *params.NodeConfig, appDb *sql.DB, timeSource func() time.Time) *Service
NewService initializes service instance.
func (*Service) Init ¶ added in v0.148.3
func (s *Service) Init(syncUserDetailFunc syncUsernameDetail)
Click to show internal directories.
Click to hide internal directories.