Documentation ¶
Index ¶
- Constants
- 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) ([]*UsernameDetails, 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) 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
- type Service
- type URI
- type UsernameDetails
Constants ¶
View Source
const StatusDomain = "stateofus.eth"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(rpcClient *rpc.Client, accountsManager *account.GethManager, rpcFiltersSrvc *rpcfilters.Service, config *params.NodeConfig, appDb *sql.DB) *API
func (*API) ContentHash ¶
func (*API) GetEnsUsernames ¶ added in v0.125.0
func (api *API) GetEnsUsernames(ctx context.Context) ([]*UsernameDetails, 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) 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 UsernameDetails) error
func (*Database) GetEnsUsernames ¶ added in v0.125.0
func (db *Database) GetEnsUsernames() (result []*UsernameDetails, err 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, rpcFiltersSrvc *rpcfilters.Service, config *params.NodeConfig, appDb *sql.DB) *Service
NewService initializes service instance.
type UsernameDetails ¶ added in v0.125.0
Click to show internal directories.
Click to hide internal directories.