stickers

package
v0.179.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

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) AddPending

func (api *API) AddPending(chainID uint64, packID *bigint.BigInt) error

func (*API) AddRecent

func (api *API) AddRecent(packID *bigint.BigInt, hash string) error

func (*API) BuyEstimate

func (api *API) BuyEstimate(ctx context.Context, chainID uint64, from types.Address, packID *bigint.BigInt) (uint64, error)

func (*API) BuyPrepareTx added in v0.98.6

func (api *API) BuyPrepareTx(ctx context.Context, chainID uint64, from types.Address, packID *bigint.BigInt) (interface{}, error)

func (*API) BuyPrepareTxCallMsg added in v0.98.6

func (api *API) BuyPrepareTxCallMsg(chainID uint64, from types.Address, packID *bigint.BigInt) (ethereum.CallMsg, error)

func (*API) ClearRecent

func (api *API) ClearRecent() error

func (*API) Install

func (api *API) Install(chainID uint64, packID *bigint.BigInt) error

func (*API) Installed

func (api *API) Installed() (StickerPackCollection, error)

func (*API) Market

func (api *API) Market(chainID uint64) ([]StickerPack, 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) Recent

func (api *API) Recent() ([]Sticker, error)

func (*API) RemovePending

func (api *API) RemovePending(packID *bigint.BigInt) error

func (*API) StickerMarketAddress

func (api *API) StickerMarketAddress(ctx context.Context, chainID uint64) (common.Address, error)

func (*API) Uninstall

func (api *API) Uninstall(packID *bigint.BigInt) error

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.

func (*Service) API added in v0.113.0

func (s *Service) API() *API

func (*Service) APIs

func (s *Service) APIs() []ethRpc.API

APIs returns list of available RPC APIs.

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

Protocols returns list of p2p protocols.

func (*Service) Start

func (s *Service) Start() error

Start a service.

func (*Service) Stop

func (s *Service) Stop() error

Stop a service.

type Sticker

type Sticker struct {
	PackID *bigint.BigInt `json:"packID,omitempty"`
	URL    string         `json:"url,omitempty"`
	Hash   string         `json:"hash,omitempty"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL