Documentation ¶
Index ¶
- type API
- func (api *API) AddPending(chainID uint64, packID *bigint.BigInt) error
- func (api *API) AddRecent(packID *bigint.BigInt, hash string) error
- func (api *API) BuyEstimate(ctx context.Context, chainID uint64, from types.Address, packID *bigint.BigInt) (uint64, error)
- func (api *API) BuyPrepareTx(ctx context.Context, chainID uint64, from types.Address, packID *bigint.BigInt) (interface{}, error)
- func (api *API) BuyPrepareTxCallMsg(chainID uint64, from types.Address, packID *bigint.BigInt) (ethereum.CallMsg, error)
- func (api *API) ClearRecent() error
- func (api *API) Install(chainID uint64, packID *bigint.BigInt) error
- func (api *API) Installed() (StickerPackCollection, error)
- func (api *API) Market(chainID uint64) ([]StickerPack, error)
- func (api *API) Pending() (StickerPackCollection, error)
- func (api *API) ProcessPending(chainID uint64) (pendingChanged StickerPackCollection, err error)
- func (api *API) Recent() ([]Sticker, error)
- func (api *API) RemovePending(packID *bigint.BigInt) error
- func (api *API) StickerMarketAddress(ctx context.Context, chainID uint64) (common.Address, error)
- func (api *API) Uninstall(packID *bigint.BigInt) error
- type Service
- type Sticker
- type StickerPack
- type StickerPackCollection
Constants ¶
This section is empty.
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(ctx context.Context, acc *accounts.Database, rpcClient *rpc.Client, accountsManager *account.GethManager, pendingTracker *transactions.PendingTxTracker, keyStoreDir string, downloader *ipfs.Downloader, httpServer *server.MediaServer) *API
func (*API) BuyEstimate ¶
func (*API) BuyPrepareTx ¶ added in v0.98.6
func (*API) BuyPrepareTxCallMsg ¶ added in v0.98.6
func (*API) ClearRecent ¶
func (*API) Installed ¶
func (api *API) Installed() (StickerPackCollection, error)
func (*API) Pending ¶
func (api *API) Pending() (StickerPackCollection, error)
func (*API) ProcessPending ¶ added in v0.98.6
func (api *API) ProcessPending(chainID uint64) (pendingChanged StickerPackCollection, err error)
func (*API) StickerMarketAddress ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a browsers service.
func NewService ¶
func NewService(acc *accounts.Database, rpcClient *rpc.Client, accountsManager *account.GethManager, config *params.NodeConfig, downloader *ipfs.Downloader, httpServer *server.MediaServer, pendingTracker *transactions.PendingTxTracker) *Service
NewService initializes service instance.
type StickerPack ¶
type StickerPack struct { ID *bigint.BigInt `json:"id"` Name string `json:"name"` Author string `json:"author"` Owner common.Address `json:"owner,omitempty"` Price *bigint.BigInt `json:"price"` Preview string `json:"preview"` Thumbnail string `json:"thumbnail"` Stickers []Sticker `json:"stickers"` Status stickerStatus `json:"status"` }
type StickerPackCollection ¶ added in v0.97.0
type StickerPackCollection map[uint]StickerPack
Click to show internal directories.
Click to hide internal directories.